My own handbook to Ubuntu 7.04

This time the patient is HP Compaq nw8440
I've updated from 6.10 to 7.04 and here is the things changed: 1. Hardware drivers, problem resolution
2. Networking
3. Protection
4. Software
5. Life sweetners
6. Kernels
7. A bit of clean up


Hardware drivers

alsa got updated and my changes related to HP audio are removed during update. I have yet to check if I need to put them back
Well suspend now works Solution is here. In short:
Added following scripts:
/etc/acpi/suspend.d/20-i8042-input.sh: # Unbind the AT keyboard interface
if [ -f /sys/bus/platform/drivers/i8042/unbind ]; then
echo -n "i8042" > /sys/bus/platform/drivers/i8042/unbind
fi
and /etc/acpi/resume.d/45-i8042-input.sh:
# Rebind the AT keyboard interface.
if [ -f /sys/bus/platform/drivers/i8042/bind ]; then
echo -n "i8042" > /sys/bus/platform/drivers/i8042/bind
fi
It looks like now cpu frequency scaling monitor changes frequency of both kernels at the same time at least after standby. Have to investigate it.
Removed thermal and fan from /etc/default/acpi-support MODULES. It looks like fans are running constantly after standby and I'm not sure these two are necessary in 7.04 fglrxI don't know why but fglrx was blacklisted in /etc/modprobe.d/blacklist-restricted and was not loading from /etc/modprobe... As a result DRI was mising... Fixed it. Thanks to this article I've found out that the main reason of my laptop noise is video card. the commands are:
aticonfig --lsp - to check video powerstates
aticonfig --set-powerstate 1 - for powersafe (ca. 230 FPS in fgl_glxgears)
aticonfig --set-powerstate 2 - for normal (ca. 440 FPS in fgl_glxgears)
aticonfig --set-powerstate 3 - for performance (ca. 620 FPS in fgl_glxgears)

Texas cardreader again. Now fiesty comes with buggy 0.7 drivers. The easiest solution I've found is here.
Downloaded the package, ran installation script and everything works great...

bluetooth the bluetooth built in into my nw8440 seems to be somehow swiched off, so I decided to test how everything works with USB dongle I have. Well it pluged in ans started up allright hciconfig returned all the info and hcitool scan can find my phone without problems
IPOD bunshee software. Required: boo libipod-cil libipoddevice0 libipodui-cil libmono-cairo2.0-cil libnjb5 libsgutils1

TV tuner AverMedia AverTV Hybrid+FM Installed tvtime, problem with f****g ATI video card and fglrx as well - now YUY2 is not supported... Tryed mythtv can't really make it work - seems too slow and too heavy for the job. xawtvlibzvbi-common libzvbi0 pia scantv v4l-conf xawtv-plugins vlc don't work so far, kdetv and motv - same. After some more googling it looks like saa7134 driver do not support my avermedia hybrid by default. Drivers available on aver website for FC3,4 and Suse... ubuntu is not there...


BerylUPDATE - no need to tweak around. New version of fglrx drivers support AIGLX
Full info may be found here and here. The walkthrough (assuming fgrlx fully works) is:
1. Since I'm a "lucky" owner of ATI X1600 I need to use xgl. This require another repository of Beryl:
Add deb http://ubuntu.beryl-project.org feisty main source to System -> Administration -> Software Sources
add this key to the Autentication tab
Do sudo gedit /etc/apt/preferences and put in:
Package: *
Pin: release o=lupine
Pin-Priority: 1001

Install beryl: sudo apt-get install xserver-xgl emerald-themes beryl the packeges for my PC wereberyl beryl-core beryl-manager beryl-plugins beryl-plugins-data beryl-settings beryl-settings-bindings emerald emerald-themes libberyldecoration0 libberylsettings0 libemeraldengine0 libglitz-glx1 libglitz1 xserver-xgl
Create new Xsession:
sudo gedit /usr/bin/startxgl paste:
#!/bin/sh
Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &
sleep 4
DISPLAY=:1
cookie="$(xauth -i nextract - :0 | cut -d ' ' -f 9)"
xauth -i add :1 . "$cookie"
exec dbus-launch --exit-with-session gnome-session

sudo chmod +xxxx /usr/bin/startxgl
sudo gedit /usr/share/xsessions/xgl.desktop
paste:
[Desktop Entry]
Encoding=UTF-8
Name=Xgl
Comment=Start an Xgl Session
Exec=/usr/bin/startxgl
Icon=
Type=Application

Add beryl-manager to System -> Preferences -> Sessions [Startup Programs] tab. logoff and choose to login to xgl. I had to restart before it actually works.
It's been a little tricky to get desktops working... final solution is: I have 3 desktops set up in workspaces properties (left click on workspaces and properties) I also have 3 vertical sides of the beryl cube and 1 vertical, 1 number of desktops
fgl_glxgears do not work, but glxgears return 2730 in what seems to be powersaving video-mode
Power modes on ATI don't work under Beryl so either you have to login to gnome first, reset it to powersafe and then login to xgl. Or you have to live with fans running quite high
Xgl+beryl makes laptop run much hotter and noisier, so I still primarely use original gnome and show-off sometimes with Beryl :)

Fingerprint reader in my Compaq nw 8440 is AuthenTec aes which doesn't work with ThinkFinger. One can get drivere here: http://gkall.hobby.nl/authentec.html and info here http://ubuntuforums.org/showthread.php?p=3129399 but how to make it work with PAM is a question. Anyway I'll try it later. Backend works and create fingerprints btw...

USB mount point I have external WD Passport HDD which was mounting to /media/WD Passport and because of that making some of the software I use to complain about the space in the name. Right clicked disk icon on the desktop went properties->volume->setting and changed mount point in settings to /media/WD after I've replugged the disk it wasn't able to mount complaining that / should not be in the name at all. Took me a while in google to figure out how to do it back:
1. Run gconf-editor as user
2. Go to /system/storage/volumes/_org_freedesktop_Hal_devices_voume_uuid_*/mount_point and change the mount point to just WD.
now it works.

USB modem Installed gnome-ppp.
dmesg after plugining in the phone returns: cdc_acm 3-2:1.0: ttyACM0: USB ACM device
I've tried wvdial and made ln -s /dev/ttyACM0 /dev/modem. Motorolla RAZR accepted *99# and since my mobile provider do not require name and password I've typed it's name into username and password since both gnome-ppp and wvdial refuse to connect without them.
IMPORTANT: the modem was connecting but until I switched eth0 to roaming profile I wasn't able to ping DNS. Modem was trying to use eth0 ping

Networking

Mounting remote directory via SSH. Good guide can be found . In short:
sudo apt-get install lufs-source lufs-utils (I don't see lufs-cryptofs in my Ubuntu 7.04)
I also did sudo apt-get install shfs-utils sshfs shfsf-source
module-assistant build lufs - fails! I've found some info about in on google but no solution...
module-assistant install lufs


Software

VMWare required a fix, see
here. In short:
Get latest vmware-any-any-updateXXX.tar.gz from here
Untar and run ./runme.pl
Tux Commander replaced gnome-commander and bsc. The only classical dual-panel file manager for linux having bookmarks and tabs I know of. I was missing Total Commander from Windows, but now sadness is gone...
kate kate-plugins konqueror installation list was: kate kate-plugins kcontrol kdebase-bin kdebase-data kdebase-kio-plugins kdelibs-data kdelibs4c2a kdesktop kfind kicker konqueror libarts1c2a libavahi-qt3-1 libdbus-qt-1-1c2 libkonq4 liblua50 liblualib50 libopenexr2c2a libtidy-0.99-0 tidy google-earth downloaded and installed from the web
gmail-notify and gmailfs. the second one requires fuse-utils, libfuse2, python-fuse, pyhton-libgmaliБикЮ To moung gmail use: sudo mount none $mntpoint -t gmailfs -o username=$usrnm,password=$pswrd,fsname=gmailfs_ubuntuБикЮ ssh apt-get install ssh openssh-server
Batch image resizer: 1. Thanks to
google and Aaron #download the script...
wget http://ossiriand.net/rhosgobel/scripts/Resize_images
#make it executable
chmod u x Resize_images
#copy it to the right place
cp Resize_images ~/.gnome2/nautilus-scripts/
#Make sure you have imagemagick and zenity packages installed
sudo apt-get install imagemagick zenity
flashplugin-nonfree
sun-java-6-plugin replaced sun-java-5-plugin
apt-get install swf-player bookmarkbridge gets: bookmarkbridge libmozjs0d libnspr4-0d libnss3-0d libqt4-core libqt4-gui libswfdec0.3 libxul-common libxul0d swf-player
gparted also required libcairomm-1.0-1 libglibmm-2.4-1c2a libgtkmm-2.4-1c2a
p7zip-full
k3blibflac++5c2, libk3b2. Gnome baker miserabely fails with multisession CDs so I'm giving k3b a chance. Works quite good except for the fact that it can't handle files larger then 4Gb...
gnochm with libchm1 and python-chm
Ufraw-gimp, ufraw for raw image processing and Greycstoration for the noise reduction
I'm now looking on the iPod software - tried banshee and gtkpod
Banshee froze after loading ca 1800 of songs out of 9000+ I have. More over I didn't quite licked the way it displays songs
gtkpod did everything just right - it loaded up almost all the files, complained about some names and *oggs I had so I re-processd them and loaded again. I like the way it sorts my music too. So gtkpod is here to stay and banshee have to go. KDevelop required also cvs kdevelop-data libcvsservice0. I also installed autoconf automake autotools-dev m4
Intel Fortran Compiler and Debugger 10.0.025
To use intel fortran compiler:
Project->Project Options->Configure Options->Fortran
> * Compiler Command: ifort
> * Compiler Flags: $(whatever appropiate)
> 3. Open configure.in and remove:
> AC_LANG_FORTRAN77, AC_F77_LIBRARY_LDFLAGS (AC_PROG_F77 has to be kept there despite suggestion in the web in my case)
> insert instead
> AC_PROG_FC([ifort ifc])
> 4. Automake & Friends
> 5. Configure
> 6. Compile as usual
dvd-slideshowwith dvdauthor ffmpeg libnetpbm10 mjpegtools netpbm libpulse0 libxine1 libxvmc1 qdvdauthor.
slcreator
Idea is to create DVD slidesshows playable on Windows and dvd players.
aptoncd This tool should back up all apt-get installed applications! Pretty cool if need to transfer to new machine...
xchat xchat-common - IRC client
audacious audacious-plugins libaudacious4 libtagc0 uadacious audacious-plugins-extra (libcurl3-gnutls libfreebob0 libjack0.100.0-0 libresid-builder0c2a libsidplay2 libwavpack1) - testing it as a replacement for xmms with cyrillic support for id3 tags.To make it work I've added СP1251 locale which I was missing (localedef -c -i ru_RU -f cp1251 ru_RU.cp1251) check with locale -a | grep RU.
In audacious playlist preferences typed CP-1251 as fallback character encoding. I was able to see russian symbols correctly once. AFter I've closed and re-open player still no luck.
Found solution:
Ok I have to remove audacious, audacious-plugins, audacious-plugins-extra leaving all dependencies in place, get the version from their web site and recompile it with the --enable-chardet passed to configure. To do it:
apt-get install libglade2-dev libvorbis-dev libogg-dev libflac-dev libsdl1.2-dev libmad0-dev
wget http://sacredspiral.co.uk/~nenolod/mcs/mcs-0.4.1.tgz
tar xzvf mcs-0.4.1.tgz
cd mcs-0.4.1
sh autogen.sh
./configure
make
sudo make install
then change to audacious dir and ./configure --enable-chardet then make and sudo make install
Finally, got the latest plugins for the web, compiled and installed - works like a charm!
Removing xmms xmms, -cdread,-flac,-fmradio,-mad,-mp4,-mpg123-ja,-skins,-wma,-status-plugin
How to install new font in Ubuntu Here is a good recepie - make new folder like /usr/share/fonts/myfonts put all new fonts there and run sudo fc-cach after font is copied there.
Playing latest Microsoft codecs like mss2. Get latest essentials here copy them to /usr/lib/win32 start mplayer and enjoy!
ogmrip for video encoding
avidemux video editing
gstreamer0.8-lame and -xvid
evolution-plugins-experimental - backup / restore functionality
dvgrab required by kino to correctly work with a camcorder. (raw1394 and video1394 modules should be loaded as well)
removed kino and has to rebuild it without dv1394 support (in my case it was just downloading and building the package. the key for dv support in case one have to remove it is --with-dv1394)
needed libdv4-dev,libiec618830dev, libraw1394-dev, libavc1394-dev, libxv-dev(x11-proto-video-dev) libsamplerate-devel
gonvert download-and-use unit converter
moto4lin working with Motorolla cell phones IPOD video. I've found following commands here. The problem is ffmpeg: unrecognized option '-acodec=aac' To get all working guide is here:
sudo apt-get build-dep ffmpeg (The following NEW packages will be installed: diffstat liba52-0.7.4-dev libdc1394-13-dev libdts-dev libgl1-mesa-dev libglu1-mesa-dev libglu1-xorg-dev libgsm1-dev libimlib2 libimlib2-dev libjpeg62-dev libltdl3-dev libogg-dev libsdl1.2-dev libtheora-dev libtiff4-dev libtiffxx0c2 libungif4-dev libvorbis-dev mesa-common-dev quilt texi2html)
sudo apt-get install ffmpeg
sudo apt-get install liblame-dev libfaad2-dev libfaac-dev libxvidcore4-dev liba52-0.7.4 liba52-0.7.4-dev libx264-dev x264-bin
sudo apt-get install gstreamer0.8-faac gstreamer0.8-faad
apt-get source ffmpeg
cd ffmpeg-*/
./configure --enable-gpl --enable-pp --enable-pthreads \
--enable-libogg --enable-a52 --enable-dts \
--enable-dc1394 --enable-libgsm --disable-debug --enable-mp3lame \
--enable-faad --enable-faac --enable-xvid --enable-x264
make dies with x264.c:147: error: ‘struct ’ has no member named ‘i_rf_constant’ according to : If during the make it dies at 'x264.c:147: error: `struct ` has no member name `i_rf_constant` you need to do the following. Open libavcodec/x264.c and goto line 147. Change 'i_rf_constant' to 'f_rf_constant' and retry.
sudo make install - still doesn't work for me
gpixpod sox for audio editing ./configure was giving X... configure: error: Can't find X libraries until I went ./configure --x-libraries=/usr/X11R6/lib --x-includes= /usr/X11R6/include
pitivi and liveslibjack0.100.0-0, libjack0.100.0-dev, jackd, libfreebob0 for video editing /usr/share/applications name.desktop would appear in the menu!
webcam:
svn checkout http://svn.berlios.de/svnroot/repos/linux-uvc/
cd linux-uvc/linux-uvc/trunk
make
sudo make install
Ekiga works great!
http://mirrors.optralan.com/videolan/debian/i386/
synergy Now I can share a mouse and keyboard between many PCs - worked from scratch just following the How to on the web. The only but is that i had to use IP rather then PC name on my client PC, since laptops are in different groups
dosbox sudo apt-get install dosbox --> dosbox libmikmod2 libsdl-net1.2 libsdl-sound1.2
ape audio format - downloaded libmac2_3.99-u4-b5~7.04mlk1_i386 and audacious-mac_0.2.0.3~7.04mlk1_i386.deb. Libmac installed fine - audacious-mac was complaining about dependencies so I've just copied libaudacious-max.so from the deb package into /usr/local/lib/audacious/Input.
What's left to do is to convert from ape format to mp3 sane for usb scaner use, very good link on how to set it up
here
scigraphicagdk-imlib11 imlib-base libgdk-pixbuf2 libgtkextra17 libxml1 psfontmgr python-gtk-1.2 - Origin like plotting
Desktop-data-manager schreenshots primerely
Abiword seems to be more lightweight then openoffice
scigraphica good plotting tool + gdk-imlib11 imlib-base libgdk-pixbuf2 libgtkextra17 libxml1 psfontmgr python-gtk-1.2
soundconvertersudo apt-get install mp3splt soundconverter gstreamer0.10-plugins-ugly-multiverse. Used it to convert flac to mp3 and then mp3splt -c file.cue -f file.mp3
kile for TeX editing. kile libt1-5 tetex-base tetex-bin tex-common. Later on I've added texlive-base texlive-base-bin texlive-common texlive-doc-base texlive-latex-base texlive-pdfetex
wesnoth< wesnoth-data - game to test
removing kde kde-amusements kdegames gnomegames
After kde cleanup: knetwalk kpat kpdf kdepim ksokoban kolf blinken kscreensaver-xsavers krdc krec korn krfb kscd kppp kshisen kmoon kmahjongg klaptopdaemon ksig ksim libkscan1 kwifimanager kcharselect kjumpingcube kdeartwork-style kdeartwork-misc kcoloredit artsbuilder kdessh kanagram ktip kdeprint kmrml katomic kleopatra ksvg kdegames-card-data kscreensaver kruler ktux klettres kgoldrunner kbackgammon kpoker libavahi-compat-libdnssd1 dirmngr kdepim-kfile-plugins libkiten1 ksnapshot kpackage liblockdev1 kooka kenolaba kblackbox kdebase fftw3 atlantikdesigner konsolekalendar klatin kfloppy kdegraphics-kfile-plugins kstars ttf-dustin ksame konqueror-nsplugins kbruch kpager libpoppler1-qt libkdegames1 kde-core kcalc keduca klipper kandy kdeedu-data kdemultimedia-kappfinder-data kdeadmin-kfile-plugins kdeartwork-theme-icon kmplot kweather ksmserver kalzium ksirc ksysguard librss1 klinkstatus klickety kpovmodeler ksayit kmouth kalarm noatun-plugins kworldclock mpeglib kalzium-data kdewebdev kmenuedit kicker-applets amor kdict ktouch ktnef khexedit ksplash kdeaccessibility kedit kbounce kvoctrain kdetoys kdenetwork-kfile-plugins libgai0 kimagemapeditor atlantik kbstate akregator arts ark kwordquiz kcron libjasper-runtime kview libdb4.3++c2 ktron libgmp3c2 ttf-sjfonts libt1-5 kdenetwork libtiff-tools kttsd kdeartwork-emoticons dcoprss ksysv kwin4 kdewallpapers kuser klettres-data kdeaddons kreversi kdf libksba8 kspaceduel kig gnupg-agent kpf juk noatun kdnssd klines kdemultimedia-kfile-plugins fifteenapplet kdemultimedia kfaxview kstars-data poster edict lskat libarts1-mpeglib kaddressbook-plugins kgamma libtunepimp5 kfilereplace kommander networkstatus kdeutils khelpcenter kdegraphics kaboodle khangman kmailcvt libindex0 kanjidic knetworkconf kdeartwork-theme-window ksysguardd ksmiletris konq-plugins psutils kpersonalizer libarts1-audiofile kxsldbg quanta kbattleship kiconedit kdeadmin kpilot kasteroids kfouleggs libmal1 libkdeedu3 libkgantt0 kwalletmanager knewsticker kopete ksnake kdelibs kiten kappfinder eyesapplet kdat karm indi kdeedu kdelirc kpercentage superkaramba kjots kfax secpolicy ksirtet kmines kget pinentry-qt libgtkglext1 kgpg konquest libboost-python1.33.1 kolourpaint gpgsm gnupg2 kmousetool kdeaddons-kfile-plugins libarts1-xine kmag libofa0 kdepim-kresources kdepim-wizards kmilo ktuberling kturtle kaudiocreator ktimer quanta-data kmid kteatime kverbos kdepasswd kmix kdeartwork kodo
abcde cd-diskid - repeaing with disc identification
latex to OO converter:
The following packages will be REMOVED:
texlive-base texlive-base-bin texlive-latex-base texlive-pdfetex
The following NEW packages will be installed:
bakomafonts epstool libt1-5 ooolatex tetex-base tetex-bin