https://www.thinkwiki.org/w/api.php?action=feedcontributions&user=Kyanos&feedformat=atomThinkWiki - User contributions [en]2024-03-29T04:54:59ZUser contributionsMediaWiki 1.31.12https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_6.06_on_a_ThinkPad_T43&diff=26592Installing Ubuntu 6.06 on a ThinkPad T432006-11-26T16:35:02Z<p>Kyanos: correction of typos in dd command in backup section</p>
<hr />
<div>Installation Log of {{Ubuntu}} 6.06 on a {{T43}}<br />
<br />
__TOC__<br />
<br />
<br />
==Overview==<br />
Worked right out of the box<br />
* 1400*1050 resolution<br />
* Battery Management<br />
* Ultra Nav (Trackpoint and synaptic touchpad)<br />
* WLAN (Atheros, IBM 11a/b/g Wireless LAN Mini PCI Adapter II)<br />
* Hibernate and Standby<br />
* Fn keys (switch between monitors untested)<br />
* Audio Keys <br />
* ThinkLight<br />
<br />
Was easy or required some work<br />
* easy ubuntu (includes skype and some codecs) <br />
* middle key of Ultra Nav (Trackpoint)<br />
* ATI 3D Acceleration (Mobility Radeon X300)<br />
* Xgl / Compiz<br />
<br />
Still TODO<br />
* Fingerprint reader<br />
* Forward/Backward keys, Access IBM Key<br />
<br />
Untested<br />
* Bluetooth (light indicates working)<br />
* Modem <br />
* IrDA<br />
* TV out, VGA out<br />
<br />
Failed / still requires work<br />
* Active Protection System (solved 'out of the box' in edgy)<br />
<br />
==Installation==<br />
<br />
===Recovery copy of data===<br />
<br />
Before installing a new OS you should create a security copy of your old system. As the IBM Rescue and Recovery tool quit with an error message I used the Ubuntu live CD, mounted and cd'ed into my external hard drive and ran the following command:<br />
<br />
$ cmduser|sudo dd if=/dev/sda1 | gzip | dd of=./sda1.img<br />
<br />
where /dev/sda1 is the device with my windows partition and sda1.img the gzipped security copy.<br />
In case of problems one can now restore lost information using<br />
<br />
$ sudo dd if=./sda1.img | gzip -d | dd of=/dev/sda1 <br />
<br />
After creating the recovery copy we are ready to resize the existing windows partition. This article assumes you want to keep your IBM Rescue and Recovery Partition, shrink in size, but keep your windows partition and create a new partition for Dapper Drake.<br />
<br />
===Resizing Partitions===<br />
<br />
Probably the best choice is now to boot from the alternate CD (read [http://gawrysiak.org/corvus/?p=4] to know why) and use it to resize the existing NTFS partition. Unfortionately in my case it didn't work. So I booted the Live CD, but gparted and parted refused to resize my Windows, too. If the same happens to you, use the example [http://crashrecovery.org/CrashRecoveryKit/iso/2.4.21/HOWTO.ntfs.html here] to know how to resize it "manually" using ntfsresize and fdisk.<br />
<br />
After resizing your windows partition you should reboot window to check everything's in order. It probably will run checkdisk and reboot two times - according to experieces you can read in the web, you should better let windows do that.<br />
<br />
===Installation of Ubuntu===<br />
<br />
Now it's the time to install Ubuntu. I used the alternate CD for that because I chose to install grub into the Linux partition and not into the Master Boot Record ([http://gawrysiak.org/corvus/?p=4 read why]). The graphical LiveCD installer automatically installs grub to the MBR. If you want to use grub in the MBR read [[Rescue and Recovery]]. There is a description of what you have to do in order to still be able to use the IBM R'n'R partition.<br />
<br />
* remember that you're installing GRUB to an '''sda''' mount, not an hda mount like the GRUB installer will prompt you for what you should enter after you tell GRUB not to install in the MBR will be something like this:<br />
<br />
/dev/sda3<br />
<br />
After the installation is finshed it will reboot your system. Now windows should start. In my case it didn't, but playing around, booting into the R'n'R partition, starting PC Doctor and doing some Diagnostics (no changes) somehow and surprisingly made windows boot again.<br />
<br />
To boot you freshly installed Linux you have to reboot the LiveCD one last time. Use<br />
<br />
$ sudo dd if=/dev/sda5 of=ubuntu.img bs=512 count=1<br />
<br />
to copy the first block of grub into an image file and use e.g. an usb flash drive to transfer it to your newly booted windows. Copy paste the image to C:\ and add the following line to your C:\boot.ini:<br />
<br />
C:\ubuntu.img="Ubuntu Dapper Drake"<br />
<br />
At the next restart the windows boot manager should now welcome you with the choice to boot windows or ubuntu. Choose ubuntu to (finally ;-) boot your newly installed linux for the first time.<br />
<br />
==Configuration==<br />
<br />
===Easyubuntu===<br />
<br />
[http://easyubuntu.freecontrib.org/ Easyubuntu] is a helpful tool to install Skype, codecs, ATi 3D drivers and further things that can make your live easier.<!-- Should this even be here? --><br />
<br />
===Keyboard Layout===<br />
<br />
My T43 has a German keyboard layout. Most worked just fine, but some keys (in my case the "at" and the "tilde" among others) just didn't. If the same happens to you, just go to the Gnome System Preferences menu and choose the right layout for your keyboard (probably named after your language and something like eliminate-dead-keys or no-dead-keys)<br />
<br />
===3D Acceleration and Xgl/Compiz===<br />
<br />
If you have an ATI Radeon X300, use [http://wiki.cchtml.com/index.php/Ubuntu_Dapper_Installation_Guide this explanation] to make your hardware 3d acceleration work.<br />
<br />
To test if it works type<br />
<br />
$ glxinfo | grep rendering<br />
<br />
The answer should be: "direct rendering: Yes". If it says "No", you don't have 3D acceleration.<br />
<br />
<br />
If you want to install Xgl/Compiz like me, [http://www.compiz.net/viewtopic.php?id=389 here] is a great installation help for ATI cards (use way two.) <br />
<br />
<br />
If you have another card you might find a good explanation [http://ubuntuforums.org/showthread.php?t=148351 here].<br />
<br />
<br />
===3D Acceleration using open-source radeon driver and AIGLX/Beryl===<br />
From my experience it was better to use "radeon" driver, the open source one, on top of "drm" driver, <br />
also part of the kernel, instead of fglrx. I get direct rendering and similar purformance---maybe fglrx <br />
driver gives 50-100 more fps. The most annoying thing about fglrx driver is that it can cause hard locks <br />
every now and then and your suspend doesn't work properly...believe me I tried the ones that the Thinkwiki <br />
says supposed to work. <br />
<br />
$ glxinfo | grep rendering<br />
direct rendering: Yes<br />
OpenGL renderer string: Mesa DRI R300 20060815 TCL<br />
<br />
Use the directions in the previous section to install fglrx driver, library. (I just installed them from shell<br />
rather than making them into packages, I found the uninstall script in /usr/share/fglrx to work properly). <br />
FYI, I used the version 8.26.18-x86.<br />
<br />
If you don't get rendering use ''LIBGL_DEBUG=verbose glxinfo'' to diagnose the problem. The most common problem<br />
is that xorg looks for DRI library files in ''/usr/X11R6/lib/dri'', which didn't exist for me. A simple way to <br />
solve this is creating a symlink to where those files are located (/usr/lib/dri/):<br />
$ cd /usr/X11R6/lib/<br />
$ ln -s /usr/lib/dri/ .<br />
<br />
Open your ''/etc/modules'' file and add these lines and comment 'fglrx' if there is any:<br />
intel-agp<br />
drm<br />
radeon<br />
<br />
Also, from my experience, it was better to use '''AIGLX''' than Xgl and '''Beryl''' instead of Compiz<br />
in terms of performance and integration---things like suspend and hibernate. And you can use nice <br />
start/shutdown scripts to disable beryl-manager since it can cause hang when you resume from suspension. <br />
For more information about suspend/resume scripts, [http://ubuntuforums.org/showthread.php?p=1656484 here]. <br />
For more information about installing aiglx and beryl, see [http://wiki.beryl-project.org/index.php/Install/Ubuntu/Dapper/AiGLX here]).<br />
<br />
ATI X300 is pretty pitiful though...I get around ~570 average FPS when running AIGLX/beryl<br />
$ glxgears<br />
2850 frames in 5.0 seconds = 569.997 FPS<br />
2925 frames in 5.0 seconds = 584.925 FPS<br />
2904 frames in 5.0 seconds = 580.741 FPS<br />
2923 frames in 5.0 seconds = 584.524 FPS...<br />
With metacity (default Gnome window manager) I get around slightly over 1000 FPS<br />
$ glxgears<br />
5073 frames in 5.0 seconds = 1014.423 FPS<br />
5073 frames in 5.0 seconds = 1014.531 FPS<br />
5252 frames in 5.0 seconds = 1049.326 FPS<br />
5803 frames in 5.0 seconds = 1160.502 FPS...<br />
<br />
If anyone know how to get rid of the weird warning, I would really appreciate it:<br />
libGL warning: 3D driver claims to not support visual 0x4b<br />
<br />
I added the following options under ati Device section of ''/etc/X11/xorg.conf''<br />
Option "EnablePageFlip" "True"<br />
Option "ColorTiling" "True"<br />
Then after that the performance boosted by quite a bit:<br />
7026 frames in 5.0 seconds = 1405.147 FPS<br />
7058 frames in 5.0 seconds = 1411.493 FPS<br />
7062 frames in 5.0 seconds = 1412.393 FPS...<br />
<br />
===Active Protection System===<br />
<br />
See end of this chapter if you have ubuntu edgy eft.<br />
<br />
The T43 has a great system to protect your hard disk, the Active Protection System APS. [[How to protect the harddisk through APS]] describes how you can use it.<br />
<br />
{{WARN|Only follow these instructions if you know what you are doing!}}<br />
<br />
If you didn't until now you will have to install make, libc, gcc, ... Best is you use<br />
<br />
$ sudo apt-get install build-essentials<br />
<br />
Determine your kernel version using <br />
<br />
$ uname -a<br />
<br />
You should see somthing like<br />
<br />
Linux ibm 2.6.15-26-386 #1 PREEMPT Thu Aug 3 02:52:00 UTC 2006 i686 GNU/Linux<br />
<br />
Install the kernel sources "linux-source" e.g. using Synaptic.<br />
Download the right kernel patch from [[HDAPS#Applications]] according to your kernel version and system (I chose "sata/ide disk protection patch for 2.6.15")<br />
adapt following steps to your needs:<br />
<br />
$ cd /usr/src/<br />
$ sudo su<br />
# bunzip2 linux-source-2.6.15.tar.bz2<br />
# tar -xf linux-source-2.6.15.tar<br />
# cd linux-source-2.6.15<br />
# patch -p1 -l < /home/silvan/hdaps_protect.20060118.patch<br />
<br />
You should see several lines with the word "suceeded". If you see many "failed" instead you probably chose the wrong patch for your kernel. You can use the --dry-run option to try it out first. If you get errors in the following steps you should better stop unless you know what you are doing.<br />
<br />
# make clean<br />
# make oldconfig # use old config, ask for new items, only<br />
# make clean<br />
# make # takes quite a long time, several minutes<br />
# make modules<br />
# make modules_install<br />
<br />
Afterwards use the debian sources mentioned in [[How to protect the harddisk through APS]] to install the user space deamon hdapsd and the gnome applet gnome-hdaps-applet, e.g. using Synaptic.<br />
<br />
If this worked for you, you can find some nice applications at [[HDAPS#Applications]] which make use of the APS.<br />
<br />
{{HELP|For me unfortunately it didn't work as making the patched kernel failed. Please update ths section if you have different experiences and a better, more detailed working explanation.}}<br />
<br />
<br />
{{NOTE|After I updated to edgy eft hdaps works without further work: edgy comes with hdaps built in. You can check if it is working by installing hdaps-utils<br />
<br />
# sudo apt-get install hdaps-utils<br />
<br />
and calling <br />
<br />
# hdaps-gl<br />
<br />
for a nice 3D show. If it is not, load the kernel module using <br />
<br />
# sudo modprobe hdaps<br />
<br />
and it should work. But if you want to use hdaps for disk protection, you have to recompile your kernel in edgy, too. Follow this post for an howto:<br />
<br />
}}<br />
[http://ubuntuforums.org/showthread.php?t=122863 Howto for edgy]<br />
<br />
===Track Point Middle Key Scrolling===<br />
<br />
In my case the track point worked out of the box, but the middle mouse button for scrolling did not. [[How to configure the TrackPoint]] explains how to solve this. The steps you need to follow are in section "Using the X server (kernel 2.6.11+)".<br />
However you don't need to follow the steps in "EmulateWheelTimeout temporarily broken (-> fix for Ubuntu Dapper)" as this is fixed already if you have all your packages up-to-date.<br />
<br />
Follow the instructions in the sections "Configure firefox for using trackpoint horizontal scrolling" and "Configure Opera for using trackpoint horizontal scrolling" as well, if you are using one of the two browsers.<br />
<br />
<br />
===Fingerprint Reader===<br />
{{Todo|Needs editing}}<br />
Look at [[How to enable the fingerprint reader]] if you want to use your fingerprint reader.<br />
<br />
===Forward / Backward Keys, Access IBM===<br />
{{Todo|Needs editing}}<br />
You'll find more here: [[How to get special keys to work]]<br />
<br />
===IrDA===<br />
{{Todo|Needs editing}}<br />
Find information here: [[How to make use of IrDA]]<br />
<br />
<br />
===VGA out ===<br />
{{Todo|Needs editing}}<br />
I didn't try it, but it looks easy: [http://help.nceas.ucsb.edu/index.php/Enable_vga_out_on_ATI_Thinkpads How to enable VGA out]<br />
<br />
==References==<br />
* [http://gawrysiak.org/corvus/?p=4 Dapper Drake on T42]<br />
<br />
==External Sources==<br />
* This guide is listed at the [http://tuxmobil.org/ibm.html TuxMobil Linux laptop and notebook installation survey (IBM/Lenovo)].<br />
<br />
Hope this helped somehow :-)<br />
tec</div>Kyanos