Sunday, June 20, 2010

Untrack file in git


git rm --cached FILENAME

Saturday, June 19, 2010

Blank screen after resuming from suspend in Ubuntu

Of late I'm getting blank screen from suspend on my Ubuntu netbook after starting to use a second external monitor. Not sure the reason why but the fix for me is to hit "CTRL + ALT + F7".

Friday, June 18, 2010

X11 error: BadAlloc (insufficient resources for operation) while using mplayer


mplayer -vo x11 PATH_TO_FILE

Use mplayer to play stuttering web flash videos on browsers (high CPU load)

Playing web flash videos on my Ubuntu Firefox can yield super high CPU load as flash is poorly supported on Linux. Couple that with a sub-optimal Firefox Flashplayer plugin which causes CPU load to spike up to almost 100% and this makes the video stutter like mad.

One solution is to start and pause the video to initiate caching and use mplayer to play the cached flash video instead.


mplayer /tmp/Flash*

Now it plays smooth. Fullscreen? No problem. Just toggle "F" on your keyboard!

Tuesday, June 8, 2010

Share iTunes playlist and files over network using Ubuntu as fileserver


# Install mt-daapd
sudo apt-get install mt-daapd

# Edit mt-daapd.conf and specify media folder
sudo vi /etc/mt-daapd.conf

# Restart mt-daapd
sudo /etc/init.d/mt-daapd stop
sudo /etc/init.d/mt-daapd start

# Configurations can be done on webpage
# Remember to port forward 3689 to ubuntu machine
http://localhost:3689