Oct 182008
 

to disable the splash screen change in /boot/grub/menu.lst a line similar to

kernel  /boot/vmlinuz-2.6.17-10-generic root=/dev/hda1 ro **quiet splash** locale=de_DE

to:

kernel  /boot/vmlinuz-2.6.17-10-generic root=/dev/hda1 ro locale=de_DE
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Oct 182008
 

The goad: compile you neat own kernel with Suspend2 (or any other patch)

prerequisits: get needed packages:

gcc, binutils, fakeroot, kernel-package, tk8.x, libqt3-dev, libncurses5-dev

1.get vanilla kernel sources: kernel.org → ftp://ftp.kernel.org/pub/
e.g.: linux-2.6.21.1.tar.bz2 save to directory /usr/src

2.unpack kernel using

tar -xf linux-2.6.21.1.tar.bz2

3.Get the Suspend2 patch (suspend2.net) e.g.: http://www.suspend2.net/downloads/all/suspend2-2.2.10-for-2.6.21.1.patch.bz2

4.Patch the kernel using

cd /usr/src/linux-2.6.21.1
bzcat ../suspend2-2.2.10-for-2.6.21.1.patch.bz2 | patch -p1

5.configure the Kernel with

make xconfig

6.build the kernel with

make-kpkg kernel_image --revision 20070604.01

7.Install the kernel with

dpkg -i ../linux-image-2.6.21.1_20070604.01_amd64.deb

8.create the file suspend2.sh with the following content in /etc/initramfs-tools/scripts/local-premount/

Oct 182008
 

Got hibernate working under ubuntu on the HP notebook nx8220:

install uswsusp

sudo apt-get install uswsusp

reconfigure uswsusp

sudo dpkg-reconfigure uswsusp

device node … uswsusp can talk to kernel: empty
Perform checksum on image? yes
Compress image? yes
Perform early write out? yes
preferred max image size: 487641333
log level & max log level: empty
Encrypt snapshot? No
Show splash screen? Yes

  • hibernate using
    s2disk

  • suspend using
    s2both

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Oct 182008
 

Add the Medibuntu repository:

sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list

Update repos and get the Medibuntu keyring manager:

sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update

Get Adobe Reader:

sudo apt-get install acroread

If you like to you can also install the acrobat plugin for firefox, konqueror etc.:

sudo apt-get install mozilla-acroread acroread-plugins
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Oct 182008
 

in order to mount smb shares you have to install smbfs (e.g. providing the command smbmount)

sudo aptitude install smbfs

then you can mount the share external on the computer 192.168.100.110 like this:

smbmount //192.168.100.110/external ~/tmpmount/ -o user=philipp,pass=xxxx,rw
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Oct 182008
 

vnstat

Install the command line program vnstat, a network traffic counter, on Ubuntu:

sudo aptitude install vnstat

Set up vnstat for your (e.g. dial-up: ppp0) internet connection:

sudo vnstat -u -i ppp0

View traffic:

vnstat

Set up a PHP based vnstat frontend

http://www.sqweek.com/sqweek/index.php?p=1

install:

cd ~/Downloads
git clone git://github.com/bjd/vnstat-php-frontend.git
sudo cp -R vnstat-php-frontend /var/www/vnstat

change the configuration file config.php

  • language: en
  • interfaces…
  • vnstat binary…

If something has changed, update like this (you have to do the setup again):

Oct 182008
 

Set up 3G UMTS connection using bluetooth

resources: http://ubuntu.sg/index.php/ubuntu-guides/network/47-nokia-n95-as-3g-modem
http://www.stefanux.de/wiki/doku.php/linux/bluetooth#mit-wvdial

hcitool scan

output:

00:4F:5D:5B:53:FB  p

Now let’s find out the channel for the modem connection using Bluetooth:

sdptool browse 00:4F:5D:5B:53:FB | grep -A 10 Dial-Up | grep Channel

output:

Channel: 2

Connect the phone to a serial port using rfcomm. Edit rfcomm.conf:

sudo gedit /etc/bluetooth/rfcomm.conf

and enter:

rfcomm0 {
# Automatically bind the device at startup
bind yes;
# Bluetooth address of the device
device 00:4F:5D:5B:53:FB;
# RFCOMM channel for the connection
channel2;
# Description of the connection
comment "Nokia N95";
}

Restart bluetooth to activate the rfcomm binding:

Oct 182008
 

For web development with CVS version control system

sudo aptitude install kompare cervisia quanta

A good svn gui is kdesvn:

sudo aptitude install kdesvn

For svn support in Nautilus is provided by a script collection:

sudo aptitude install nautilus-script-collection-svn
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)