My own handbook to Ubuntu
This time the patient is HP Compaq nw8440
All additionally installed (to Ubuntu 6.10) software is devided into several groups:
1. Hardware drivers, problem resolution
2. Networking
3. Protection
4. Software
5. Life sweetners
6. Kernels
7. A bit of clean up
Hardware drivers
The installation went smooth, all of my software except for microfon worked instantly.
Screen brightness control buttons work. Sound buttons currently don't
ATI FireGl drivers apt-get install xorg-driver-fglrx. Device section reads:
Section "Device"
Identifier "aticonfig-Device[0]"
Driver "fglrx"
Option "DesktopSetup" "horizontal"
Option "OverlayOnCRTC2" "1" # this one and the next two are recommended by all guides...
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
Option "UseFastTLS" "2" #this is for wine - overwise it crashes
EndSection
VERY important:
Section "Extensions"
Option "Composite" "0"
EndSection
Without section above glxgears are below 100, fullscreen video is not possible and even firefox is slow...
With it software flys and glxgears (glxgears -iacknowledgethatthistoolisnotabenchmark) top up to 2000+ (yes I know glxgears is not the way to measure performance)
apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5 linux-headers-$(uname -r) - I honestly don't think these were necessary
I've managed to have dual screen in any config: laptop (1920x1200) + 1 external (1280x1024), two externals at 1280x1024 each. The necessary commands are:
aticonfig --enable-monitor=lvds,crt1 --effective=now # laptop screen + crt external
aticonfig --enable-monitor=lvds --effective=now #laptop screen only
aticonfig --enable-monitor=tmds1,crt1 --effective=now #two external (dvi+crt) via dock station
work beautifully however you also need to switch screen resolution.
In dual screen the resolution is 3840x1200 (even if two externals are used) - overwise the screens are in clone mode and for internal 1920x1200 overwise "ghost" screen is presented on the right.
Sound Sound was fine, but Microphone produced a lot of noise in recorder and didn't work in skype. Installing alsa drivers, library and utils from their web site(I got latest 1.0.14rc3.
Now configure and install everything:
cd //alsa-driver-
./configure --with-cards=hda-intel
make
sudo make install
cd //alsa-lib-
./configure
make
sudo make install
apt-get install libncurses5 libncurses5-dev
cd //alsa-utils-
./configure
make
sudo make instal
very important:
open /etc/modprobe.d/alsa-base, add to the end of file:
options snd-hda-intel model=hp
this is according to distro/alsa/alsa-driver-1.0.14rc3/alsa-kernel/Documentation/ALSA-Configuration.txt for AD1981 device. Reboot and check that the volumes. I left mic boost and internal mic boost at zero, raised capture (the only thing I have in capture tag) to about 50% and unmutted everything. Left all switches intact (Microfone, Mix, Docking enabled)
POST_VIDEO=false in /etc/default/acpi-support should help to get out of hibernation / sleep - no difference for me. Hibernation works, suspend still doesn't
Concurrent booting allows Ubuntu to take advantage of dual-core processors, as well as processors that hyperthread or multithread or what ever the different companies call it now.
sudo gedit /etc/init.d/rc
Cange it to: CONCURRENCY=shell
Built in card reader:02:06.3 Class 0805: Texas Instruments Unknown device 803c
modprobe tifm_core
modprobe tifm_sd
modprobe tifm_7xx1
For me only the following order worked!
Added all this modules to /etc/modprobe - didn't help so far... so I have a script which I have to run before using the MMCard
Epson Stylus Photo R200 CUPS uses it without any problem now I'm trying to make a CD label with GIMP. I used http://ubuntuforums.org/showthread.php?t=180580&page=2 to download the CD template from:
http://www.shallowsky.com/software/cdplugins/ and copy it to ~/.gimp2-2/scripts. Now GIMP->Xtns->Script-Fu->CD-Label gives the template for the CD
CPU scaling Well, my Core2Duo goes up only to 1.67 and sometimes second core goes up to 2.17, but now always ;) Then battery status often do not report. After googling I've found the soultion
to be manualy unload psmouse module before halt or reboot by adding /sbin/modprobe -r psmouse after do_stop () { into /etc/init.d reboot and halt scripts
See for example: http://emisca.altervista.org/nx7400/
I've also modified /etc/default/acpi-support:
MODULES="psmouse"
SAVE_VIDEO_PCI_STATE=true
to fix cpu scaling:
Well, funny but common bug.
cat /sys/devices/system/cpu/cpu?/cpufreq/scaling_available_frequencies correctly return:
2167000 1667000 1333000 1000000
2167000 1667000 1333000 1000000
However cat /sys/devices/system/cpu/cpu?/cpufreq/scaling_max_freq gives:
1667000
1667000
sudo echo 2170000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq && echo 2170000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freqа
fixes the issue.
After using laptop for almost 3 weeks I suddenly got a problem with fans not restarting after hibernate.
Here a very similar problem is fixed by removing
/usr/share/initramfs-tools/hooks/thermal - seems to work for me too...
Networking
Home network - samba over WiFi
Installed Jags,smbclient,smbfs,tksmb, gsambad, winbnd
jags looks like a nice tool, howether for now the simplest way is the best ;) -
just smb://ip_adress in Nautilus...
Set up smb shares in my linux machine. I still cann't access these shares by smb_server name, but ip works fine (I tried from another PCs and VMWare).
Office network - Novell, wired
Got ipx and ncp. Commands:
ipx_configure --auto_interface=on --auto_primary=on to configure IPX if wired net props are changed
and
ncpmount -S server_name -U user_name -V server_share local_folder
ncpumount -S server_name
do a good job for me.
Network printer worked fine but only when LDP que was selected. Printer is Xerox business center
running on IP with PS driver.
problem with citrix- before running citrix after the restart I have to go xset fp rehash.
After installation citrix also required libmotif3 (from multiverse source). It is also important to have a look in a readme file - it might be necessary to remove some fonts from the configuration file.
Remember if your citrix server use certificates they must be in /usr/lib/ICAClient/keystore/cacerts folder with crt extension.
Protection
Firestarter Wifi connects to inet, wired to local network in the office. Default parameters
AVG the installation manual is here:http://ubuntuforums.org/showthread.php?t=13606
Just followed the manual and it installed allright
dpkg-reconfigure gnome-applets allows you to have frequency and governor control in cpufreq-applet.
Software
got wine from ubuntu sources textpad and dictionary worked instanly. More software to come. Added cabextract and msttcorefonts
installed gstreamer plugins and libraries like ffmpeg, lame, etc for audio/video
VLC video player - totem was not really working that good for me...
installed bittorent-gui
kino for dv capture and editing
thoggen for dvd ripping
dvd decrypter under wine. Pretty straightforward - insert DVD so it would appear in Wine dosdrives overwise: ln -s /media/cdrom d:. Set up winever to Windows Nt 4.0 overwise no device detected by Decrypter.
See http://appdb.winehq.org/appview.php?iVersionId=2587&iTestingId=1568
dvd::rip, xvid4conf, libxvidcore to encode the decrypted dvds. Dependencies: anyevent-perl dvdrip gawk gtk2-ex-formfactory-perl imagemagick libevent-execflow-perl libevent-perl libevent-rpc-perl libfame-0.9 libintl-perl liblame0 libmjpegtools0c2a libpvm3 libquicktime0 libvorbisfile3 lsdvd transcode xvid4conf
I use baobab,df,du to keep disk space usage under control
cups + Guteprint did the great job automatically detecting and installing my Epson Photo R200
gftp good "old school" GUI ftp client
lm-sensors, sensors-applet - temperatures. fans do not report
VMPlayer and virtual xp system
Xarchiver to handle rar archives (popular compression in Russia)
And mc, gnome-commander since I'm coming from DOS generation and remember Norton :)
alien with dependencies for rpm package installation.
Schlumberger Eclipse Only simulators work, the graphical interface return:
symbol lookup error: /ecl/2005a_1/lib/linux/libInventor.so: undefined symbol:
_ZNSt24__default_alloc_templateILb1ELi0EE12_S_force_newE rm: No match.
Tech support gave up on me - not possible to solve.
installed libinventor0(+gsfonts-x11+lesstif2) didn't help - if anybdody know what to do - I'd appreciate that.
CMG simulators Well CMG do not offer any GUI, but simulators are there.
I didn't use the installation script just untared simulators to default location: /usr/cmg and added the library info:export LD_LIBRARY_PATH=/usr/cmg/stars/2006.10/Linux32/lib, thanks to the excelent tech. support again. I also have to sk them for several libraries to be mailed to me for 32 bit security tools CMG uses. This problem should be taken care of in 2007 release.
xxdiff GUI file/dir comparison and merging
gnomebaker + cdda2wav package to burn dvds.
xmms with a number of dependencies and plug-ins: libfaad2-0, libmikmod2, xmmms,xmmms-cdread,-flac,-fmradio,-mad,-mp4,-skins,-status-plugin
gxneur - automatic keyboard switcher. As root:sudo gedit /etc/apt/sources.list add deb http://gq.net.ru/debian ubuntu/ and deb-src http://gq.net.ru/debian ubuntu/ then apt-get update and apt-get install gxneur you also get gxneur libxnconfig3 xneur.
opensync-plugin-evolution and libopensync0. For PocketPC synchronisation. Synce-multisync-plugin, libmimedir0, librapi2, librra0, libsynce0, multisync,synce-dccm, librapi2-tools,sox,synce-serial,librra0-tools.
You have to type in your router ip in the synce-serial config
Now thanks to Arun's blog (http://www.blog.arun-prabha.com/2007/02/21/how-to-sync-your-pocket-pc-with-ubuntu/) and ubuntu forums(http://www.ubuntuforums.org/showthread.php?t=30936), I did
sudo synce-serial-config /dev/ttyUSB0 -> you get "You can now run synce-serial-start to start a serial connection." back
dccm -d 4 -f to start the deamon (reply is
dccm[xxxx]: Running in foreground
dccm[xxxx]: Listening for connections on port xxxxand
from another terminal:
sudo synce-serial-start
synce-matchmaker create INDEX
Firestarter permissions:
$IPT -I FORWARD 1 -s 192.168.131.0/24 -d 192.168.131.0/24 -j ACCEPT
$IPT -I OUTPUT 1 -s 192.168.131.0/24 -d 192.168.131.0/24 -j ACCEPT
$IPT -I INPUT 1 -s 192.168.131.0/24 -d 192.168.131.0/24 -j ACCEPT
more plugins for multisync: libmultisync-plugin-backup and libmultisync-plugin-evolution.
In multisync I needed to set the new connection between sunce and evolution.
Now I've mannaged the sync only if I fire up the following: 1. dccm deamon and 2. synce-serial-start 3. myltisync
Sbackup I intend to use PartImage (see for example http://www.psychocats.net/ubuntu/partimage) for major back-ups and Sbackup to keep important docs backed up.
VMWare vmware player works out of the box. To prepare Virtual Machine you can use this manual.
I had a problem with /dev/dsp not being available on the system, but the vmwaredsp worked and running
vmwareesd works perfectly.
You might need to install esound-clients but I'm not quite sure.
There was a problem with Time running too fast in virtual machine but:
According to: http://www.vmware.com/community/thread.jspa;jsessionid=D38A95B794C722BDF715E4F0AD1E11F7?messageID=7818Ẋ
I've added:
host.cpukHz = 2170000
hostinfo.noTSC = TRUE
tools.syncTime = TRUE
to /etc/vmware/config and now the clocks in my virtual host runs fine!
One more issue with vmware complaining that it is not configured after reboot is fixed either by running vmware-configure.pl and just clicking enter all the time
or by issuing sudo rm -fv /etc/vmware/not_configured
I'm also using 2xapplication server to be able to run excel, word etc outside vmserver.
Life sweetners
gedithiglight definitions are in http://ubuntuforums.org/showthread.php?t=13606
to add programs to start up to the current session:
System->Preferences->Sessions->Startup Programs
Bit of clean up
Removed: Thoggen dvd-ripper
In progress
My company have symantec antivirus. The package avialable for RedHat as rpm. Since I have the alien installed
this is not a problem I did alien -ic sav-{}.rpm wich returned chmod:avdefs error, so I created a new group called
avdefs. Now all for modules installed, GUI runs but returns no info about program versions and everything is disabled.
running /opt/Symantec/symantec_antivirus/sav returned missing libecomlodrlin.so
xgl is set as in https://help.ubuntu.com/community/CompositeManager/Xgl
Xgl Session on Login Window. We will need to create two new files: a startup script and a X session file.
Open up a terminal and create a new script named startxgl.sh: gksudo gedit /usr/bin/startxgl.sh
(!) Note that /usr/bin is the place where most of the system's binaries get installed;
/usr/local/bin or ~/bin are usually regarded as better places for locally installed and administered software.
If you decide to create your script in one of these places be aware that you may need to create the directories
as well. Don't forget to change the script's location accordingly throughout the tutorial.
ATI and Intel (using GNOME):
#!/bin/sh
Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &
DISPLAY=:1
dbus-launch --exit-with-session gnome-session
Make the script executable with the following command:sudo chmod +x /usr/bin/startxgl.sh
Now we'll add an option to the gnome login manager so that we can choose to log into our new Xgl-gnome session.
Create an Xsession file like so:gksudo gedit /usr/share/xsessions/xgl.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Xgl
Comment=Start an Xgl Session
Exec=/usr/bin/startxgl.sh
Icon=
Type=Application
To log into Xgl, logout of your current session, and from the login screen click "Options" and "Session chooser".
When you login, gdm will ask if you would like to make the "Xgl" session the default session. For now, choose
"Just for this session".
(!) When your Xgl desktop appears for the first time, gnome may ask you about your keyboard localization preference. Choose "Use Gnome keyboard localization" to continue using your usual keyboard settings.
Now Beryl. As root: Add repository to /etc/apt/sources.list deb http://ubuntu.beryl-project.org/ edgy main
apt-get install beryl emerald-themes with dependencies: beryl beryl-core beryl-manager beryl-plugins beryl-plugins-data beryl-settings beryl-settings-bindings emerald emerald-themes libberyldecoration0 libberylsettings0 libemeraldengine0 libxcomposite1
well, beryl works REALLY slow 'cause fglrx doesn't support composite and hardware acc... anyway you need:
Option "AIGLX" "true" in serverlayout, Load "dre" in Module, Option "XAANoOffscreenPixmaps" "true" in Device and Option "Composite" "Enable" in Extensions.
in soundjuicer I added a new mp3 porfile with gstreamer pipeline: audio/x-raw-int,rate=44100,channels=2 ! lame name=enc ! id3mux - not tested and tuned yet
Network managerdhcdbd libn1-pre6 libnm-util0 network-manager network-manager-gnome.
NetworkManager, nm-apllet
Now devices with static config are not managed by nm (see /usr/share/doc/network-manager/README.Debian)
keep only the lines (/etc/network/interfaces) similar to auto wlan0
iface wlan0 inet dhcp
Kernels
Edgy came with 2.6.17-10 and 2.6.17-11.
To be done
- tv connection
- wine: ie6,office
- sound buttons
- bluetooth access to internet via cellphone
bluez-passkey-gnome,btscanner,gnome-bluetooth
- dvd shrink
- folder sync solution
- change resolution with the script
At kernel recompilation:
- Suspend2
- r300_dri driver support