See also:

Keep in mind to explore:


Pick up *NIX skills

Installing OpenJDK on Mac OSX

Burning ISO images to CD/DVD from shell


$ growisofs -dvd-compat -Z /dev/hdc=dvd.iso

CD: Find out the cd recording device using cdrecord -scanbus

$ $ cdrecord -scanbus
        2,0,0   200) 'HL-DT-ST' 'DVDRAM GH22NS50 ' 'TN01' Removable CD-ROM

Use cdrecord to burn.

$ cdrecord -v -dao dev=2,0,0 speed=8 file.iso

don’t want namservers handed out by local DHCP server?

Comment out domain-name-servers, in /etc/dhcp/dhclient.conf.

Tell apt to add new pgp key to its list

$ curl -s http://someurl/key.pgp | sudo apt-key add -
$ sudo apt-key list

Label Drives using e2label command

$ sudo e2label /dev/sdg1 emdebian

Compiling stuff in 32 bit mode on Mac OSX 10.6

Add these flags to ./configure.

CFLAGS="-O -arch i386" CXXFLAGS="-O -arch i386" LDFLAGS="-arch i386"

Produce print ready copies of man docs

$ man -t `man -w tmux` | ps2pdf - tmux.pdf

Change keyboard layout in the shell

$ setxkbmap us

2014/11/25: swapped caps and left-ctrl. Put line below in /etc/default/keyboard


and run sudo dpkg-reconfigure keyboard-configuration and confirm changes to keep the changes you have made.

find memory usage by a process(?)

$ ps -Ao pid,rsz,args | grep <name>


Enabling anti-aliased fonts on Ubuntu

Edit $IDEA/bin/idea.vmoptions file and add these options:


The above options managed to get smooth font rendering on Ubuntu 12.10 using OpenJDK7.





Measuring stuff

Running log of things