Scripting

Ubuntu Stuff

Taken from VNtutor :

Reduce reliance on swap file :

Step 1: see what is the current value for setting
sudo cat /proc/sys/vm/swappiness
(It should give a number 60 here)
Step 2: change to a lower number
sudo sysctl -w vm.swappiness=5
Step 3: check again
sudo cat /proc/sys/vm/swappiness
(Now, it should give a number 5 here)
Step 4: append this line vm.swappiness=5 to file /etc/sysctl.conf

Disable IPV6?

vi /etc/modprobe.d/aliases

Make a search this line: alias net-pf-10 ipv6
and replaced by this line: alias net-pf-10 off #ipv6
Then comment out all ipv6 lines in /etc/hosts

Reduce menu delay

cd ~
touch .gtkrc-2.0
echo "gtk-menu-popup-delay = 0"| tee -a .gtkrc-2.0

Getting USB devices properly detected by VMWare?.

To re-enable it edit the file '/etc/init.d/mountdevsubfs.sh' and uncomment the code after line 40 so it reads:

 # Magic to make /proc/bus/usb work
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount --rbind /dev/bus/usb /proc/bus/usb

Get MP3? ripping in Sound Juicer (and probably other apps too)

sudo apt-get install gstreamer0.10-plugins-ugly-multiverse

Problems installing ruby-debug-ide

Make sure you install ruby1.8-dev and ruby-pkg-tools.