Enable shell colored prompt on Ubuntu / Debian

Look at your home directory and the file .bashrc. Find these lines:

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
Uncomment force_color_prompt=yes, save and login again.

Continue reading “Enable shell colored prompt on Ubuntu / Debian”

MK802 compile rtorrent from source with rutorrent web GUI

Install necessary packages:

sudo apt-get --purge remove libxmlrpc* libtorrent* rtorrent
sudo apt-get install build-essential checkinstall libcurl4-openssl-dev libncurses5-dev libncursesw5-dev libsigc++-2.0-dev libtool git autoconf automake libcppunit-dev

Fresh xmlrpc-c lib install

svn co https://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/advanced xmlrpc-c
cd xmlrpc-c
./configure --prefix=/usr
make

Continue reading “MK802 compile rtorrent from source with rutorrent web GUI”

Ubuntu 12.04 proper LCDd suspend

Please edit this file: /usr/lib/pm-utils/sleep.d/LCDd and make it executable chmod +x LCDd.

#!/bin/sh
# If we are running LCDd stop and restart
# Otherwise lirc_* modules won't get unloaded and
# they do not work properly with suspend/resume
 
. "${PM_FUNCTIONS}"
 
suspend_lcd()
{
if [ -x /etc/init.d/LCDd ]; then
/etc/init.d/LCDd stop 2>&1 > /dev/null
fi
}
 
resume_lcd()
{
if [ -x /etc/init.d/LCDd ]; then
/etc/init.d/LCDd start 2>&1 > /dev/null
fi
}
 
case "$1" in
hibernate|suspend)
suspend_lcd
;;
thaw|resume)
resume_lcd
;;
*) exit $NA
;;
esac