Difference between revisions of "Installing Ubuntu on a ThinkPad T21"

From ThinkWiki
Jump to: navigation, search
(Ubuntu 7.10 Gutsy Gibbon)
 
(14 intermediate revisions by 8 users not shown)
Line 1: Line 1:
'''Ubuntu 6.06 Desktop'''
+
== Ubuntu 7.10 Gutsy Gibbon ==
  
The Ubuntu 6.06 Desktop CD is both a Live CD and a installation CD.  You can boot directly from the CD and it will run Ubuntu in live mode in X Windows so you can play with it.  Your hard drive will not be changed at all in this mode. You can then choose to install it to your hard dirve by clicking the install icon on your desktop. After going through 5-6 screens and 15 minutes later, you are done.
+
The upgrade from {{Ubuntu 7.04}} to {{Ubuntu 7.10}} also goes smoothly.
  
Well, things are always more difficult than I thought.  My Thinkpad froze a few times during installation, when it tries to boot into X windows.  Later I found out that Ubuntu 6.06 Desktop has trouble with the S3 Savage video hardware on my thinkpad.  The only solution at the install stage is to keep rebooting from the CD.  I tried to boot 5-6 times, and finally got though.
+
To get a high resolution terminal you should use the vga=792 option in /boot/grub/menu.lst
  
I did the following to get things working.
+
If the screen goes blank with this option:
  
1) Make sure that the ethernet port on your Thinkpad T21 is connected to the internet. My Thinkpad froze again halfway through copying files to the hard drive.  I guess it was trying to find some files on the internet, so I plugged in the ethernet cable and reinstalled the OS.  My guess was right, and the second installation went through smoothly.
+
1. sudo vi /etc/initramfs-tools/modules and add fbcon and vesafb
  
After installation.  Ubuntu will often freeze when it tries to boot into X windows.  My Thinkpad T21 kept getting stuck on a blank screen with "_" on the upper left corner.  Here is a solution that worked for me:
+
so my /etc/initramfs-tools/modules looks like:
  
1)  Choose Safe Boot instead of Normal Boot.  It is the second line on the boot menu.
+
fbcon
 +
vesafb
  
2)  Click Applications > Accessories > Terminal
+
2. sudo update-initramfs -u
  
3)  Type:  Sudo -H -s      (This command gives you power to modify the xorg.conf file later.)
+
3. sudo vi /etc/modprobe.d/blacklist-framebuffer
  
4)  Type:  gedit /etc/X11/xorg.conf  (Make sure that the "X" in "X11" is capital X, and the "11" is number "eleven" not lowercase "LL".)
+
change the line "blacklist vesafb" to "# blacklist vesafb"
  
5)  Add the following two lines into the "Device" section of your xorg.conf.
+
4. reboot and everything is fine
  
Option "BusType" "PCI"
+
== Ubuntu 7.04 Feisty Fawn ==
Option "DmaMode" "None"
 
  
6)  Save the file. Done!  Your Thinkpad won't freeze anymore when booting into X Windows.
+
The upgrade from {{Ubuntu 6.10}} to {{Ubuntu 7.04}} goes smoothly.  
  
The X tip also applies to the {{T20}}, and probably the {{T22}} and {{T23}} as well.
+
You may need the [[:Installing Ubuntu on a ThinkPad T20#Fixing Sound-After-Suspend|Sound-After-Suspend]] fix that the {{T20}} also uses. (please first look at [[:Talk:Installing_Ubuntu_on_a_ThinkPad_T21|discussion]] for hints about this point)
  
paulistano says:
+
== Ubuntu 6.10 Desktop ==
  
I had a black screen problem on starting ubuntu and resolved it with changing
+
To install {{Ubuntu 6.10}}, we have to use the "alternate install" CD because X freezes on boot.
 +
Note: Safe boot won't work.
 +
 
 +
Once it is installed and reboots,
 +
press ESC to get to the grub menu,
 +
'e' to edit the menu entry,
 +
then DOWN to get to the "kernel ..." line.
 +
Press 'e' to edit the kernel boot entry,
 +
then type "init=/bin/sh", ENTER.
 +
Press 'b' to boot the modified entry.
 +
This should get you in single-user mode.
 +
 
 +
Type  (without the # signs)
 +
        # mount -o remount,rw /
 +
        # cd /etc/init.d
 +
        # mv gdm gdm.old
 +
        # mv x11-common x11-common.old
 +
 
 +
To prevent X from booting the next time around.
 +
Press CTRL-ALT-DEL to reboot the computer.
 +
 
 +
Let Ubuntu boot normally.
 +
Don't edit the entry.
 +
 
 +
You should get a login prompt in a text-terminal.
 +
Login with your username and password, then type (don't type the $ sign)
 +
        $ sudo vi /etc/X11/xorg.conf
 +
 
 +
Once in vi, type in order
 +
 
 +
        /DefaultDepth
 +
        ENTER
 +
        :s/16/24
 +
        ENTER
 +
        ESC
 +
        ZZ
 +
 
 +
Once this is done, try starting X manually
 +
 
 +
        $ X
 +
 
 +
Which should get you a X screen.
 +
No window manager will be running,
 +
so you can't do much but exit by pressing CTRL-ALT-BACKSPACE.
 +
 
 +
Once X is known to work,
 +
you can enable gdm and X again by undoing to first steps:
 +
 
 +
        $ cd /etc/init.d
 +
        $ sudo mv gdm.old gdm
 +
        $ sudo mv x11-common.old x11-common
 +
 
 +
Then reboot the computer
 +
 
 +
        $ sudo reboot
 +
 
 +
You should then be greeted by the usual gdm login prompt.
  
"DefaultDepth 16" to "DefaultDepth 24" in the xorg.conf
 
  
 
Crapulon says:
 
Crapulon says:
Line 49: Line 104:
 
3)  Write the changes and exit vim.
 
3)  Write the changes and exit vim.
  
4)  Now use update-grub to rewrite the boot options
+
4)  Once the file has been re-saved, you can re-install the bootloader. The command for that is:
 +
 
 +
sudo grub-install /dev/hda
  
    Type: sudo update-grub
+
'''NOTE''': This assumes your hard drive is at /dev/hda. Use "df" to see your hard drive names if you are not sure.
 +
This operation can  potentially make your computer unbootable if there are mistakes, so be careful! (Of course, even if the hard drive became unbootable, you could most likely boot off a CD and fix it. )
  
 
Reboot, and check that all is well.
 
Reboot, and check that all is well.

Latest revision as of 13:46, 17 February 2008

Ubuntu 7.10 Gutsy Gibbon

The upgrade from Ubuntu 7.04 to Ubuntu 7.10 also goes smoothly.

To get a high resolution terminal you should use the vga=792 option in /boot/grub/menu.lst

If the screen goes blank with this option:

1. sudo vi /etc/initramfs-tools/modules and add fbcon and vesafb

so my /etc/initramfs-tools/modules looks like:

fbcon vesafb

2. sudo update-initramfs -u

3. sudo vi /etc/modprobe.d/blacklist-framebuffer

change the line "blacklist vesafb" to "# blacklist vesafb"

4. reboot and everything is fine

Ubuntu 7.04 Feisty Fawn

The upgrade from Ubuntu 6.10 to Ubuntu 7.04 goes smoothly.

You may need the Sound-After-Suspend fix that the T20 also uses. (please first look at discussion for hints about this point)

Ubuntu 6.10 Desktop

To install Ubuntu 6.10, we have to use the "alternate install" CD because X freezes on boot. Note: Safe boot won't work.

Once it is installed and reboots, press ESC to get to the grub menu, 'e' to edit the menu entry, then DOWN to get to the "kernel ..." line. Press 'e' to edit the kernel boot entry, then type "init=/bin/sh", ENTER. Press 'b' to boot the modified entry. This should get you in single-user mode.

Type (without the # signs)

       # mount -o remount,rw /
       # cd /etc/init.d
       # mv gdm gdm.old
       # mv x11-common x11-common.old

To prevent X from booting the next time around. Press CTRL-ALT-DEL to reboot the computer.

Let Ubuntu boot normally. Don't edit the entry.

You should get a login prompt in a text-terminal. Login with your username and password, then type (don't type the $ sign)

       $ sudo vi /etc/X11/xorg.conf

Once in vi, type in order

       /DefaultDepth
       ENTER
       :s/16/24
       ENTER
       ESC
       ZZ

Once this is done, try starting X manually

       $ X

Which should get you a X screen. No window manager will be running, so you can't do much but exit by pressing CTRL-ALT-BACKSPACE.

Once X is known to work, you can enable gdm and X again by undoing to first steps:

       $ cd /etc/init.d
       $ sudo mv gdm.old gdm
       $ sudo mv x11-common.old x11-common

Then reboot the computer

       $ sudo reboot

You should then be greeted by the usual gdm login prompt.


Crapulon says:

I also found it is a good idea to have "acpi=off apm=on" as GRUB kernel options. Without this Ubuntu could not recognise the Ethernet port or internal modem. Edit the GRUB menu.lst file so that update-grub automagically adds these options. To do this:

1) Type: sudo vim /boot/grub/menu.lst

2) Find the section titled ## Start Default Options ##, then add the two new options to the line that begins with "# kopt=" eg. in my menu.lst file the new line (line 66) reads:

   # kopt=root/dev/hda1 ro acpi=off apm=on

3) Write the changes and exit vim.

4) Once the file has been re-saved, you can re-install the bootloader. The command for that is:

sudo grub-install /dev/hda

NOTE: This assumes your hard drive is at /dev/hda. Use "df" to see your hard drive names if you are not sure. This operation can potentially make your computer unbootable if there are mistakes, so be careful! (Of course, even if the hard drive became unbootable, you could most likely boot off a CD and fix it. )

Reboot, and check that all is well.