Tag: linux

  • Snippet/Techy: Fixing Debian Signatures were invalid – Key Expired

    If you are running Debian/Ubuntu and you are getting “The following signatures are invalid” when running apt-get commands (such as apt-get upgrade) and the error looks like: Reading package lists… Done W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mysql.com […]

  • [Techy] localdomain settings in Linux Mint using DNSMasq

    If you are developing websites on Linux Mint, then you might want to set a DNS Wildcard so that anything on localdomain (*.localdomain) resolves to your machine (i.e. test.localdomain , anything.localdomain). So how can you do this? First of all, you need to install dnsmasq “a lightweight, easy to configure DNS forwarder and DHCP server”, […]

  • Funny: Funny Linux Commands

    Shamelessly stolen from Frank Mash (or, as UK news organisations will probably argue, “this orphaned content found was at …”): % cat “food in cans” cat: can’t open food in cans % nice man woman No manual entry for woman. % “How would you rate Quayle’s incompetence? Unmatched “. % Unmatched “. Unmatched “. % […]

  • Techy: Find and replace on Linux excluding SVN folders

    Just another snippet aid to memory, this find and replace (using perl) uses Linux’s find’s “prune” syntax to “prune” the path before it to avoid doing and search and replace on .svn folders: find -path ‘*/.svn’ -prune -o -type f -exec /usr/bin/perl -pi -e “s/ORIGINAL/NEW/g” {} \;

  • cPanel: Error: Package system can not be repaired automatically

    If, like myself, you have recently upgraded the cPanel control panel system on your Red Hat Enterprise Linux 5.2 server and received the error message “Error: Package system can not be repaired automatically” when upgrading Apache, then it’s probably caused by a problem with either the RedHat Package Manager (RPM) or YUM. To fix it, […]