Kubuntu - tips and tricks

Greg's Kubuntu-guide

I started this little guide in 2007 so I wouldn't forget all the cool stuff I discovered (This used to be a .txt file).

After clean install: 1) Upgrade software. 2) Install proprietary hardware drivers with jockey (if the system cracks you minimize your wasted time).

32 vs 64 bit: http://ubuntuforums.org/showthread.php?t=655377

Kubuntu 9.04 with kde 3.x: http://apt.pearsoncomputing.net/cdimages/

http://webdrive.dk - free file server service.
http://wdsupport.dk - Logistics and IT support site.

Special thanks to really good info: http://ubuntulondon.wordpress.com/2006/08/21/needed-extras/

Very nice guide: http://kubuntuguide.org/
The Hardy Heron guide: http://ubuntuguide.org/wiki/Ubuntu:Hardy
The forums: http://kubuntuforums.net/

Please let me know if there are any problems with the instructions below. This is designed for (K)Ubuntu 9.10 Codename: Karmic Koala and is currently being tested on kernel 2.6.31-16-generic.

Other repos
Medibuntu: https://help.ubuntu.com/community/Medibuntu
Any Ubuntu Release and keyring: sudo wget http://www.medibuntu.org/sources.list.d/`lsb_release -cs`.list --output-document=/etc/apt/sources.list.d/medibuntu.list; sudo apt-get -q update; sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring; sudo apt-get -q update
Opera repository: https://help.ubuntu.com/community/OperaBrowser

The top of my sources.list:
#Google Chrome
deb http://dl.google.com/linux/deb/ stable main
deb http://deb.opera.com/opera/ stable non-free

Total niceness multimedia plus java etc: http://ubuntuforums.org/showthread.php?t=766683

Single line program installation

Lucid Lynx
sudo aptitude install wondershaper firefox zimpl g++ gawk doxygen doxygen-doc autoconf libxml2 zlib1g-dev graphviz-dev mencoder flac gimp gimp-gap gimp-data-extras flashplugin-nonfree sun-java6-fonts sun-java6-jdk sun-java6-plugin gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-ffmpeg vorbis-tools lame sox ffmpeg mjpegtools mplayer libdvdread4 libdvdnav4 totem-xine rar unrar libbz2-1.0 kdirstat p7zip-full lzma arj rpm p7zip hydrogen vkeybd zynaddsubfx lmms audacity blop caps cmt fil-plugins ladspa-sdk mcp-plugins omins swh-plugins tap-plugins dssi-host-jack dssi-example-plugins kino avidemux libreadline5-dev wine tightvncserver xtightvncviewer vnc4server xinetd vino directvnc xtightvncviewer xvnc4viewer gmail-notify glpk kiso ssh gksu gparted synaptic easytag nmap knmap ivman samba smbfs nfs-common ttf-mscorefonts-installer opera vlc libstdc++6-4.1-dev quanta k9copy acroread ntfsprogs dia imagemagick cpuburn mbmon lingot ntfs-3g coreutils tidy php5-tidy tidy-doc kdesvn subversion dvgrab maxima wxmaxima xmaxima pidgin ntfs-config txt2html kdenlive mesa-utils ubuntustudio-video non-free-codecs googleearth-package xine-console xine-ui libx11-dev xorg-dev libjpeg62-dev checkinstall kdelibs4-dev curlftpfs recordmydesktop neverball extremetuxracer frozen-bubble warzone2100 btanks libsvn-java tree kq libavutil-dev ubuntustudio-graphics openoffice.org language-support-da language-support-pl language-support-de ktorrent jockey-kde libdvdcss2 libdvdnav4 gisomount fuseiso fuse-utils cdrecord cdrdao mkisofs jack libkonq5-dev libkonq5 cmake libplasma-dev kdelibs5-dev kdebase-workspace-dev gcc-4.4-base ncftp libavcodec-unstripped-52 gphoto2 gphotofs pulseaudio gpsbabel powermanagement-interface kde-devel startupmanager -y

suggested: libavcodec52
Removed when I am angry: audacious

stdby: ubuntu-studio ubuntustudio-graphics openoffice.org-starter-guide openoffice.org-kde openoffice.org-draw openoffice.orgh language-support-da language-support-pl language-support-de oooqs2-kde

sudo aptitude purge update-manager-core update-manager-kde -remove annoying icon on the desktop.. I will upgrade when I wan't!! ;-) I know there are updates almost every day!!

Slimming: rosegarden timidity-interfaces-extra jackd jackeq jack-rack jamin qjackctl qsynth seq24

Note: if you use aptitude install.. you can use --force-yes in the above.

sudo aptitude dist-upgrade -y;sudo aptitude autoclean;sudo aptitude clean;sudo aptitude autoclean

test removed apps: tetex-doc libxine-extracodecs libdvdplay0 ardour-gtk vcf-plugins dssi-plugin-fluidsynth dssi-plugin-hexter dssi-plugin-xsynth cinelerra w32codecs

home .folders to copy
cp .kde .mozilla .opera .purple .Skype .ssh ~/ -R

Pulseudio recording in Skype does not work?
and maybe: https://wiki.ubuntu.com/PulseAudio but it's old.

Local reminders

trackpoint in Jaunty 64 bit: Source: http://psung.blogspot.com/2008/09/scrolling-with-thinkpads-trackpoint-in...
wget http://launchpadlibrarian.net/19254960/preinit.diff
sudo apt-get build-dep xserver-xorg-input-evdev; apt-get source xserver-xorg-input-evdev; cd xserver-xorg-input-evdev-2.0.99+git20080912; bash autogen.sh --prefix/usr;./configure; make; sudo make install

printer on ip:; port 9102

These are the options your grub menu.lst should contain : kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=60779687-a745-417b-bbed-f554f2169ea8 ro vga=791
removed from kernel: acpi=force
(vga?0x31B): http://wiki.antlinux.com/pmwiki.php?n=HowTos.VgaModes

Vodafone mobile internet modem: https://forge.vodafonebetavine.net/frs/?group_id=12
addgroup username dip
sudo addgroup gnowak dip
sudo chown gnowak:gnowak /home/gnowak/.vmc2 -R
user: three
pass: three
apn: internet

Apps I would rather be without
sudo aptitude purge dolphin adept-notifier -y
can't do -> http://kubuntuforums.net/forums/index.php?topic=3094052.0
removed from list: slocate backup-manager keep skim kopete

The upgrade: sudo aptitude dist-upgrade -y

at last clean up: sudo aptitude autoclean; sudo aptitude clean

Copy your old home folder back in place when you are in the old folder position:
cp -a .* /home/user/
Change owner from root to you.
chown -R user:user /home (should work not tested)

List of extra cool apps

Codecs vid and audio
aptitude install libxine-extracodecs gstreamer0.10-pitfdll gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-pitfdll gstreamer0.10-ffmpeg vorbis-tools lame sox ffmpeg mjpegtools lame-extras w32codecs non-free-codecs

aptitude install rar unrar libbz2-1.0 p7zip-full lzma xarchive arj rpm p7zip

text to html: txt2html -> usage: txt2html test.txt > test.html

DVD Playback
sudo aptitude install vlc libdvdread3 libdvdcss2 libdvdplay0 libdvdnav4 totem-xine libxine-extracodecs ogle ogle-gui

Eclipse-sdk - Extensible Tool Platform and Java IDE
sudo aptitude install eclipse-sdk
Eclipse manual
tab-size: Rightclick in the editor -> Preferences -> Typing -> (Tabulators) formatter preference page -> Edit OR show -> set tab size.
OR Ant -> Editor -> Formatter -> Tab size.
OR window -> preferences -> General -> Editors -> Text Editors -> Displayed tab width.

File sharing
sudo aptitude install samba smbfs nfs-user-server nfs-common

File system tools
sudo aptitude install ntfsprogs ntfs-config ntfs-3g

aptitude install msttcorefonts

FTPFS (File transfer protocol file system)

neverball extremetuxracer frozen-bubble warzone2100 btanks kq

GFX test utility
aptitude install mesa-utils


Gmail notify
aptitude install gmail-notify


Guitar tuner

Hardware stress tools
cpuburn - a collection of programs to put heavy load on CPU

HDD partitioning
aptitude install gparted qtparted

aptitude install pidgin
compiling pidgin
sudo apt-get build-dep pidgin
Image manipulation
If you want to compile ImageMagick install png and jpeg libraries before configuration and installation! (if you want png and jpeg support)

Install manager
aptitude install synaptic

Java Dev
aptitude install sun-java6-fonts sun-java6-jdk sun-java6-plugin

KDE bonus
aptitude install kicker-applets kdeaddons oooqs2-kde

kdirstat - graphical disk usage display with cleanup facilities
aptitude install kdirstat

Language support
aptitude install language-support-da language-support-pl language-support-de

aptitude install tetex-base tetex-bin tetex-doc gv

Linear programming
aptitude install glpk
Installation of another MILP solver
The math lang package: aptitude install zimpl
aptitude install g++-3.4 g++ gawk doxygen doxygen-doc libstdc++6-4.0-dev autoconf libxml2 zlib1g-dev graphviz-dev
DL soplex -> make COMP=gnu OPT=opt
make doc -requires latex
Readline required by scip
aptitude install libreadline5-dev
DL scip -> Read INSTALL -> make LPS=spx
cp binaries to /bin

sudo aptitude install maxima wxmaxima xmaxima scilab
maxima bonusinfo:
(sum(i^2,i,1,8)-4!-15)/sqrt(25); Anne 33 years old :-)

Net: sudo aptitude install knetload
Motherbaord fan temperature: mbmon

Mount auto
sudo aptitude install ivman

Mount iso (daemon tools)
aptitude install gisomount fuseiso fuse-utils cdrecord cdrdao mkisofs
acetoneiso2: http://www.kde-apps.org/content/show.php/AcetoneISO2?content=44805

Mplayer The best player in the universe
Some options for dvd playback: mplayer -vo sdl -sid 1 −refreshrate 60 −vsync -fs −fixed-vo *.VOB
Testing: mplayer -vo sdl -sid 1 -autosync 0 -refreshrate 60 -vsync -fs -fixed-vo -ignore-start *.VOB
mplayer -vo sdl -sid 0 -refreshrate 60 -vsync -fixed-vo *.VOB
aptitude install mplayer mozilla-mplayer
the encoder: aptitude install mencoder
another player: aptitude install vlc vlc-plugin-arts

Music: Thanks to: https://help.ubuntu.com/community/UbuntuStudioPreparation
aptitude install ardour-gtk hydrogen jackd jackeq jack-rack jamin qjackctl qsynth seq24 vkeybd zynaddsubfx lmms audacity
Effect Plugins and Instruments
aptitude install blop caps cmt fil-plugins ladspa-sdk mcp-plugins omins swh-plugins tap-plugins vcf-plugins
Install the DSSI host and plugins:
aptitude install dssi-host-jack dssi-example-plugins dssi-plugin-fluidsynth dssi-plugin-hexter dssi-plugin-xsynth

Other music stuff:
aptitude install noteedit lilypond cowbell easytag

nano /usr/share/applications/noteedit.desktop
Insert the following lines into the new file
[Desktop Entry]
Comment=A free music score editor

Network scanners (ping tool)
aptitude install nmap knmap

Network statistics
check for connections and kill with pkill

aptitude install openoffice.org-starter-guide openoffice.org-kde openoffice.org-draw openoffice.org

PDF reader
acroread mozilla-acroread acroread-escript acroread-plugins

Programming syntax checkers
sudo aptitude install tidy php5-tidy tidy-doc
tidy command convert html to xhtml: tidy -o output.xhtml -icb -asxml -utf8 input.htm

Rosegarden thanks to: http://www.cs.cornell.edu/~djm/ubuntu/#timidity ;https://help.ubuntu.com/community/MidiSoftwareSynthesisHowTo
aptitude install rosegarden4 timidity-interfaces-extra flac

sudo nano /etc/modules
Append the following:

Then inform Timidity to start automatically:
sudo nano /etc/default/timidity
Uncomment the line to enable the sequencer. That is, change:

start timidity manually.. avoids delay: timidity -iA -B2,8 -Os1l -s 44100

(optional) Reduce Timidity's CPU usage:
sudo nano /etc/timidity/timidity.cfg
uncomment relevant lines

low latency: http://kubuntuforums.net/forums/index.php?topic=3088346.0
sudo aptitude install linux-rt linux-image-2.6.22-14-rt

aptitude install ssh
export screen after ssh login: http://x.cygwin.com/docs/ug/using-remote-apps.html
export DISPLAY

The Gimp
The nice GIMP book: http://books.google.com/books?id=qxrKDP1jHr4C&pg=PA294&lpg=PA294&dq=wher...
aptitude install gimp gimp-gap gimp-data-extras
Gimp Guide thanks to Beginning GIMP From Novice to Professional
Improving Digital Photos
Brightening and Darkening
1) Brightness-Contrast - Good values: 35; 60.
2) Levels - input sliders: shadow, midtone, and highlight.
3) and Curves -> move slider.
Red eye removal
1) select pupil with elipse or other selection tool.
2) Colors -> Hue saturation -> Choose red -> saturation to the left -> adjust lightness.

ubuntustudio-audio ubuntustudio-graphics ubuntustudio-video

mc recover e2undel magicrescue
strings /dev/sda7 > /path/to/big_text_file (not same partition)

Video editing

Openshot: http://www.openshotvideo.com/2009/09/openshot-ppa-come-and-get-it.html
aptitude install cinelerra kino avidemux dvgrab kdenlive
  grab cvs
  aptitude install bjam libboost-dev libfreetype6-dev NOT COMPLETE


Thanks to: http://www.ubuntuforums.org/showthread.php?t=25911
aptitude install wondershaper

nano /etc/network/interfaces

add these lines under eth0 if eth0 is your internetconnection. Change eth1,upspeed and downspeed to your settings, Speeds are in kilobits per second.
up /sbin/wondershaper eth0 downspeed upspeed
down /sbin/wondershaper clear eth0

Smartness video desktop capture screen

Edit 2010-05-24: the tweaks below weren't necessary in my latest video. I just used the recordmydesktop command.
Thanks to: http://aptitude.biffster.org/
recording my desktop tools xvidcap ,vnc2swf,Wink, Byzanz, recordmydesktop
sudo aptitude install byzanz istanbul deskscribe gtk-recordmydesktop
xvidcap --gui no --cap_geometry 1440x900[+1440+900] --audio yes
xvidcap --gui no --cap_geometry 800x600[+800+600] --quality 1
xvidcap compilation from svn source
recordmydesktop --width 600 --height 800 --quick-subsampling --fps 10

Normalize mp3 files: find . -iname '*.mp3' -execdir mp3gain -a -k "{}" + &


3gp to avi (3gptoavi/3gp2avi): http://goinggnu.wordpress.com/2007/02/13/convert-avi-to-3gp-using-ffmpeg/
ffmpeg -i clip.3gp -f avi -vcodec xvid -acodec mp3 -ar 22050 file.avi

Autostart options in KDE: http://kubuntuforums.net/forums/index.php?topic=6490.0
/usr/share/autostart/ and ~/.kde/Autostart
/etc/init.d and the RC* under /etc for scripts

ATI Mobility fireGL 9000 installation
aptitude install xlibmesa* libgl1-mesa-glx libgl1-mesa-dri libglu1-mesa expat freetype1-tools ftgl-dev
And other ATI-radeon cards, open source: https://help.ubuntu.com/community/RadeonDriver
ATI tv-out - xrandr- tvout - svideo - s-video
Thanks to: http://wiki.debian.org/XStrikeForce/HowToRandR12 and

cvt 1024 768
xrandr --newmode "1024x768_60.00" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
xrandr --addmode S-video 1024x768_60.00
xrandr --output S-video --mode 800x600

list: xrandr --prop

xrandr --addmode S-video 800x600; xrandr --output S-video --mode 800x600
xrandr --output S-video --auto

swith off output:
xrandr --output S-video --off

/usr/X11R6/bin/X :1 -xf86config xorg.conf.vesa -depth 24 -auth /var/gdm/:1.Xauth vt8 &
export DISPLAY
sleep 5
atitvout ntsc
atitvout -f t
gmplayer -vo sdl -fs
atitvout -f lc
export DISPLAY

Backup entire disc:http://www.cyberciti.biz/tips/how-do-i-make-linux-filesystem-backup-wit… andhttp://wiki.linuxquestions.org/wiki/Dd
dd if=/dev/sda of=/mnt/sdb1/backup.img
Backup MBR: dd if=/dev/hdX of=/backup/mbr.bak bs=512 count=1

Backup MySQL:
stop mysql: sudo /etc/init.d/mysql stop
make backup of location: /var/lib/mysql
sudo /etc/init.d/mysql start
Backup folder: http://www.mikerubel.org/computers/rsync_snapshots/
rsync -av source/ destination/
or: rsync -av --delete source/ destination/
FTP-folder: http://www.linuxbeacon.com/doku.php/articles:lftp
lftp -u username,password -e "mirror --delete --only-newer --verbose path/to/source_directory path/to/target_directory" ftpsite

Bluetooth enable on IBM laptop T40p and maybe others:
sudo -s
echo enable > /proc/acpi/ibm/bluetooth
disable: echo disable > /proc/acpi/ibm/bluetooth

Bluetooth scan for devices: hcitool scan

Camera connection works with (Canon Ixus 80 is): gphoto2 and gphotofs
get all files from camera: gphoto2 -P

Change program defaults: update-alternatives --all (example: sudo update-alternatives --config javac).
Display manager:
sudo dpkg-reconfigure gdm
sudo dpkg-reconfigure kdm
sudo update-alternatives --config x-session-manager

Check disk for errors: fsck.ext3 -f -n -c -v /dev/sdb1
badblocks -s /dev/sda
Check kernel version: uname -r
Change root: chroot (mounted folder)

Check system encoding: echo $LANG

Combine pdf docs: pdftk *.pdf cat output combined.pdf

common: checkinstall auto-apt
thanks to https://help.ubuntu.com/community/CheckInstall
auto-apt run ./configure
sudo checkinstall


qt: libqt4-dev libqt4-qt3support libqt3-headers libqt3-compat-headers libqt3-mt libqt3-mt-dev
thanks to http://kubuntuforums.net/forums/index.php?topic=3085626.0
You need to set the qt directory in the PATH. Do this, add thes lines to your ~/.bashrc file


jpeg support: sudo aptitude install libjpeg62-dev
X app remember to have: sudo aptitude install libx11-dev xorg-dev
KDE: kdelibs4-dev
Berkeley DB: libdb4.5 libdb4.5++-dev libdb4.5-dev db4.5-util

Convert formats (iso8859-1 to utf-8): iconv -f iso8859-1 -t utf-8 -o utf8.txt iso.txt
utf-8 iso8859-1: iconv -f utf-8 -t iso8859-1 -o iso.txt utf8.txt

Convert background color: (imagemagick http://redux.imagemagick.org/discussion-server/viewtopic.php?f=1&t=8964)
convert tr.png -background '#82bd81' -flatten out.png
batch script
mkdir output
for f in *.png
do convert $f -background '#82bd81' -flatten output/$f


Disable beeping when ctrl and stuff is pressed for a long time: System Settings -> Accessibility

Disable K Wallet: Settings -> Privacy.. -> K Wallet

Disable jumping icon on program launch: kcontrol launch feedback

GPXtoKML - Garmin gpx to Google Earth kml:
gpsbabel -i gpx -f input.gpx -o kml -F output.kml

Graphics benchmark: glxgears
(IBM laptop t40p firegl 9000 gfx: around 1.500 fps

KDE3 in Jaunty

KDE proper shutdown:
Add -> TerminateServer=True
to -> /etc/kde3/kdm/kdmrc in the [X-:*-Core] section.

Konqueror file associations
Play Matroska (MKV): mplayer -subfont-text-scale 3 -fs -vf expand=0:-110:0:55 -utf8 -subfont-outline 3 -slang und
NEW: mplayer -subfont-text-scale 3 -fs -vf expand=0:-210:0:55 -subfont-outline 3

Latex file to pdf: pdflatex filename.tex filename.pdf

MIDI connections check: aconnect -li

Mount iso: sudo mount -o loop -t iso9660 dvd.iso folder

Mount usb-drive NTFS: http://ubuntuforums.org/showthread.php?t=601210
-Open "System Settings" KDE
-Go to the "Advanced" tab
-Open "Disk & Filesystems"
-Click the "Administrator Mode..." button on the bottom right
-Right-click on the partition that isn't mounting properly and Select "Modify"
-Change "Mount Path" to a valid path
-Change "Mount Permission: " to "Any User may enable/disable anytime"
-Click the "Ok" button
-Click the "Enable" button at the near bottom of the window. problems:

Restart network: killall knetworkmanager; knetworkmanager

Nice level. Set process priority to the konsoles/xterm etc in the "quick menu": nice -n 19 bash

phpmyadmin access: sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin

Postscript to pdf (pstopdf; ps to pdf; ps2pdf): ps2pdf input.ps output.pdf

Reboot and shut down properly from within KDE: kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=60779687-a745-417b-bbed-f554f2169ea8 ro acpi=force vga=791

Refresh the Kmenu: kbuildsycoca --noincremental

Renice gdebi-kde:
sudo nano /usr/share/applications/kde4/gdebi-kde.desktop
Find the line with Exec and change it to: Exec=nice -n 19 gdebi-kde
or this: /usr/share/applications/kde/gdebi-kde.desktop

Replace database string (mysql): update DB-table SET Table-field = replace(Table-field, 'Replace-this', 'With-this');
update pretty_urls_cache SET replacement = replace(replacement, 'localhost/logistikforum.dk', 'logistikforum.org');
update pretty_urls_cache SET url_id = replace(url_id, 'localhost/logistikforum.dk', 'logistikforum.org');
update settings SET value = replace(value, 'localhost/logistikforum.dk', 'logistikforum.org');
update sessions SET data = replace(data, 'localhost/logistikforum.dk', 'logistikforum.org');
update themes SET value = replace(value, 'localhost/logistikforum.dk', 'logistikforum.org');
update settings SET value = replace(value, '/var/www/logistikforum.dk', '/var/www/logistikforum.org');
update themes SET value = replace(value, '/var/www/logistikforum.dk', '/var/www/logistikforum.org');

Resize/scale/shrink with Imagemagick auto orient I use it for my galleries on grn.dk (drupal)
convert *.jpg -resize 1200x1200\> -quality 100
Example: convert *.JPG -resize 1024x1024\> -quality 75 out/00-2008-04-25_Azores.jpg
Example 2: convert *.JPG -resize 1200x1200\> -quality 80 -auto-orient %03d-name.jpg
Example 3: convert *.JPG -resize 1200x1200\> -quality 80 -auto-orient %03d-Diving-Juelsminde.jpg

Restore Grub to MBR: http://ubuntuforums.org/showthread.php?t=504678
Boot from the liveCD and open a terminal window. Do:
sudo grub
That should change the prompt to "grub". Then the following:

find /boot/grub/stage1 < the "1" is the number one
That will return a value that looks like

where X and Y are numbers. Remember the values. Then:

root (hdX,Y)
where X and Y are the values returned by the find command. This tells GRUB where the boot partition of your linux installation is now located. Then:
setup (hd0) < 0 is zero

Run IE on Linux (license required): http://www.tatanka.com.br/ies4linux/page/Installation:Ubuntu

Scroll fix for thinkpad trackpoint in firefox (http://ubuntuforums.org/showthread.php?t=537476).
Type "about:config" in the firefox address bar and adjust:
mousewheel.horizscroll.withcontrolkey.action = 3;
mousewheel.horizscroll.withcontrolkey.numlines = 1;
mousewheel.horizscroll.withcontrolkey.sysnumlines = true;

mousewheel.horizscroll.withnokey.action = 0;
mousewheel.horizscroll.withnokey.numlines = 1;
mousewheel.horizscroll.withnokey.sysnumlines = true;

mousewheel.horizscroll.withshiftkey.action = 1;
mousewheel.horizscroll.withshiftkey.numlines = 1;
mousewheel.horizscroll.withshiftkey.sysnumlines = true;

Set process priority (nice) or change it (renice)
renice 19 mencoder //changes the priority of mencoder to 19 the lowest priority available

Sharing internet connection: http://ubuntuforums.org/showthread.php?t=91370
my connection is as folows: adapter connected to the internet = ath0; adapter connected internally = eth0
ifconfig eth0; iptables -t nat -A POSTROUTING -o ath0 -j MASQUERADE; echo 1 > /proc/sys/net/ipv4/ip_forward; aptitude install dnsmasq ipmasq; ifconfig eth0; iptables -t nat -A POSTROUTING -o ath0 -j MASQUERADE; echo 1 > /proc/sys/net/ipv4/ip_forward; /etc/init.d/dnsmasq restart; dpkg-reconfigure ipmasq;
nano /etc/sysctl.conf -> add: "net.ipv4.ip_forward = 1" to /etc/sysctl.conf

Sound check sound recources: lsof |grep snd

SSH - howto set shortcut and std. user for login at specific host:
Create or edit ~/.ssh/config and insert:
hostname HOST

SVN - tutorlial: http://artis.imag.fr/~Xavier.Decoret/resources/svn/index.html

Switch default sound card:
cat /proc/asound/modules
nano /etc/modprobe.d/alsa-base

remove/comment the lines that refer to the unwanted soundcard (worked for me)

At the end of the file
At the very end of the file, add the following (assuming you have 3 cards with module names A, B and C and you want to have them in the order CAB)
options snd-C index=0
options snd-A index=1
options snd-B index=2

Or http://ubuntuguide.org/wiki/Ubuntu:Edgy/Hardware (didn't work for me)
asoundconf list
asoundconf set-default-card example
!Switch default sound card End!

Symbolic links
soft: ln -s /original/file /new/link
System Menu customization: /usr/share/apps/systemview/

Thumbnails with imagemagick: http://www.imagemagick.org/Usage/thumbnails/
mkdir thumbs; mogrify -format gif -thumbnail '150x150>' -bordercolor black -border 2 -path thumbs -gravity center *.jpg
old mkdir thumbs; mogrify -format gif -thumbnail '140x140>' -bordercolor black -border 2 -path thumbs -gravity center -crop '150x150+0+0!' *.jpg
mogrify -format gif -thumbnail '140x140>' -bordercolor black -border 2 -path thumbs -gravity center *.jpg
(use this option in new imagemagick "-path thumbs")
Small images:
make jpg lowercase
for file in *; do mv $file $(echo $file | tr [[:upper:]] [[:lower:]]); done
for file in `ls *.JPG`; do
convert $file -resize 50% -quality 80 small-${file}

Upgrade distribution

sudo do-release-upgrade --devel

The latter is rather outdated.

Find the correct upgrade route.
lsb_release -a
Replace release name in sources.list: Example with jaunty to karmic:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.back; sudo sed -e 's/\jaunty/karmic/g' -i /etc/apt/sources.list
One Line: aptitude dist-upgrade -y; aptitude -f install;dpkg --configure -a

Use specifik version of a program: update-alternatives -progamname

VLC saving stream (VLC media player 0.9.9a)
Open network stream "ctrl" + "n"
Verify it's the right stream
Convert/save "ctrl" + "r"
Choose Network
Outputs -> file
Encapsulation: Ogg/Ogm
Choose Convert/save
Videocodec: DIVX 3
Bitrate: any
Choose Transcode audio
Codec: MP3
Bitrate: any
Choose Save
End saving stream with Stop.


Very fast on low bandwith: vncviewer LowColourLevel=0
OR: xtightvncviewer
With password: vncviewer -passwd ~/.vnc/passwd
vncviewer -passwd ~/.vnc/passwd t40p::5900 FullColor=1 -AutoSelect=0

vncviewer -fullscreen -depth 8 -compresslevel 0 -quality 0
vncviewer -fullscreen -depth 8 -compresslevel 0 -quality 0 -encodings tight


!Howtos End!

!Smart Terminal Commands!

Change file owner and or group: chown

Change file access permissions: chmod

Detach proces parallel: &

Detach proces sequential: ;

Disk free human readable: df -h

export screen over ssh: export DISPLAY=:0.0

Ubuntu version: lsb_release -a

SSH copy: scp -r sourcefolder/ [email protected]:destinationfolder

!Smart Terminal Commands End!


can't access tty; job control turned off :apt get install ubuntu-minimal

IBM trackpoint scroll thanks to http://www.thinkwiki.org/wiki/Installing_Ubuntu_5.04_on_a_ThinkPad_T43_…
Add the following lines to /etc/X11/xorg.conf
In the editor, find the section headed Section ?InputDevice? / Identifier ?Configured Mouse? and the following lines above the ?EndSection? line:
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"

You may also need to add the following to enable horizontal scrolling:
Option "XAxisMapping" "6 7"
#Option "YAxisMapping" "4 5"

IBM laptop buttons
aptitude install tpb
adduser username nvram
in one:
sudo aptitude install tpb; sudo adduser username nvram

How to see at what nice level a app is running: Hit "ctrl" + "Esc"

Target filesystem doesn't have /sbin/init :apt get install ubuntu-minimal

Sleep/suspend does not work in Karmic Koala:cmd:
sudo aptitude install powermanagement-interface
pmi action suspend

!Fixes End!

Shutdown problems:
Can't reboot or shutdown from kde, but reboot and init 0 works fine:
I can't get this to work?? on my desktop computer

suggestions: shutdown -h now

Graphical root access
aptitude install gksu

Konqueror detailed list view
Go to Settings/Config Konq/File Associations.
select Inode from the list and within the Embedded tab, move Detailed List view to the top.
konqueror --profile filemanagement ~/Desktop

autoPassword: https://help.ubuntu.com/community/WifiDocs/WPAHowTo
/etc/rc.local I added at the bottom:
ifdown eth1
ifup eth1
exit 0
scanning tools
iwlist ath0 scanning

Ubuntu as a router - http://ubuntulinuxhowto.blogspot.com/2006/06/setup-your-computer-to-be-r...

Kernel panic: aptitude install ubuntu-minimal.

Kewl logs:

Kewl conf

Kewl Kate
aptitude install kate-plugins

Internet tv
sudo aptitude install mozilla-mplayer
sudo cp /usr/lib/firefox/plugins/mplayerplug-in.so /usr/lib/opera/plugins
Download and install mplayer codecs from: http://www.mplayerhq.hu/design7/dload.html
mozilla-helix-player totem-mozilla mozilla-plugin-gnash helix-player

App names:

Sound control, audio, volume, mixer: kmix, alsamixer

Last modified