Month: June 2013

  • Where is the crontab in Ubuntu?

    Where is the crontab in Ubuntu?

      If you’re looking to make a copy of a user’s crontab as a backup or just to view it without using the crontab editor, you can locate it at:   /var/spool/cron/crontabs   Each user’s crontab will be in this directory in a file named as their username (e.g. root). If you’re working with a…

  • Ubuntu: Where is the default tmux config file?

    Ubuntu: Where is the default tmux config file?

      This is a tricky one to find, mainly because by default it doesn’t exist. You create your custom configuration file in your home directory in a hidden file like so:   ~/.tmux.conf   …and add your desired configuration changes to that file. So, if you were the user bob, your config file would be…

  • New Mediawiki install produces error “Fatal exception of type MWException”

      Saw this on a new Mediawiki install where all of the optional extensions were selected, LocalSettings.php had been uploaded to the server and that’s as far as it would go.   To fix, open up LocalSettings.php and comment out the line:   require_once( “$IP/extensions/LocalisationUpdate/LocalisationUpdate.php” );   You should now be able to refresh the…

  • Performing a dry run with rsync

      One of the many useful options rsync offers is the ability to do a dry-run – in effect showing you what it would do without actually making any changes. To achive this we use the -n flag, like so:   rsync -n /source /destination   In practice we would likely use the -n switch…

  • Ubuntu: How to restore your files from a tape

      This is just like extracting a regular tar archive:   tar -xvf /dev/[path to tape] [directory or file to restore]   e.g.:   tar -xvf /dev/st0 backups   This will restore the “backups” file/folder to the current working directory. To check your current directory, you can use:   pwd   to make sure that…

  • Ubuntu: How to check the contents of a tape

    Ubuntu: How to check the contents of a tape

      To check the contents of a tape, insert the tape and run the following:   tar -tf /dev/[path to tape device]   e.g.:   tar -tf /dev/st0   Note that typically it’s a zero, not a letter o, at the end.

  • Ubuntu: How to write files to a tape

    Ubuntu: How to write files to a tape

      To put files onto a tape, run the following:   tar -cvf /dev/[path to tape] [file or directory] [file or directory] [file or directory]   An example would be:   tar -cvf /dev/st0 /home/bob   This will back up the user bob’s home directory to the tape, here located at /dev/st0 (a typical location…

  • How to stop Google going to the country-specific site (google.com.au instead of google.com)

      Sometimes you may wish to search Google without being redirected to your local country’s version, as you are likely to get different search results based on your location.   Try the following URL:   http://www.google.com/ncr   NCR here is no-country-redirect, and Google will leave you at simply google.com rather than google.com.au for Australians.

  • Seagate HDD Date Codes

        On Seagate drives you may see a Date Code – e.g. 07466. What does it mean?   Simply put, it’s in the format of YY:W:D, or YY:WW:D, where Y is year, W is week and D is day of week.   The year is fairly self-explanatory; the weeks aren’t measured from January, though,…

  • What CPU socket does Apple’s Mac Pro use?

      This is a question we have been asked a few times; to date Apple have used two different Intel sockets for their Mac Pro line. For the Mac Pro 1,1, 2,1 and 3,1 models (Mid-2006 to eatly-2008) it was Intel’s Socket 771, and for the 4,1 and 5,1 models (Early 2009, Mid 2010 an…