Category Archives: Linux Stuff

Using dd to fill/wipe your disk

dd if=/dev/zero of=/dev/hda dd if=dev/urandom of=/dev/hda dd if=/dev/random of=/dev/hda Using /dev/zero is a load quicker, but not as thorough. /dev/urandom takes longer but is more thorough and doesn’t require you to be doing anything on the machine to help create … Continue reading

Posted in Linux Stuff, Reminders | Tagged , | Leave a comment

Bash One-Liners

http://www.bashoneliners.com/ – Exactly what it says on the tin. Among our favourites were: Do something in another directory without going there for example: (cd /tmp; tar c . ) > tmp.tar Find the target path a symlink is pointing to … Continue reading

Posted in Linux Stuff, Reminders | Tagged , | Leave a comment

MP3 to OGG Vorbis

We all know that it’s not a good idea to convert from MP3 to Ogg, but sometimes, when you have to, this might help: mpg321 input.mp3 -w – | oggenc -o output.ogg –

Posted in Linux Stuff | Tagged | Leave a comment

WPA and the Dell Mini 9

Reminder to Logan: If you are still running that old 9.04 Ubuntu on your Netbook, you need to make sure that the Access Point uses AES encryption only for the WPA. Thank you to dhalbert in this post from many … Continue reading

Posted in Linux Stuff, Reminders | Tagged , , | Leave a comment

Vim autoindent driving you mad?

Try this towards the end of your .vimrc filetype indent off and if you want to turn autoindent off just for the current document, try this :setlocal noautoindent Or even: :setl noai Reference The Vim Tips Wiki: http://vim.wikia.com/wiki/How_to_stop_auto_indenting (accessed 2011.07.23) … Continue reading

Posted in Linux Stuff, Reminders | Tagged , , | Leave a comment

Line by line in BASH, coping with the spaces

When I do something like this: for line in `cat some_file` do <whatever with> $line done It works fine when there are no spaces in the lines in $line. But if there are spaces, it does <whatever> to each expression … Continue reading

Posted in Linux Stuff | Tagged , , , | 3 Comments

SSH Port Forwarding Tunnels

This is a handy trick to view pages directly on a web server running on a machine that is behind a firewall and not connected directly to the Internet. I used to use this to connect to machines in my … Continue reading

Posted in Linux Stuff, Reminders | Leave a comment