Difference between revisions of "Installing Debian 6.0 (squeeze) on a ThinkPad X220"

From ThinkWiki
Jump to: navigation, search
(←Created page with 'WORK IN PROGRESS I have just started installing Debian 6.0 (squeeze) on a ThinkPad X200. I am doing this on my home network so I opted to do a pure netw...')
 
m (Add X220 category.)
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
WORK IN PROGRESS
+
''(Please note: [[User:Jdthood|One user]] reported that the Debian 6.0 (Squeeze) installer did not include a driver for the Ethernet card in the X220. It is possible that this is due to hardware differences between models. Please check that your hardware is supported. As described below, the 4291 model works.)''
  
[[User:Jdthood|I]] have just started installing Debian 6.0 (squeeze) on a ThinkPad X200.
+
== Introduction ==
 +
Debian Squeeze can be installed without problems on the ThinkPad X220 (4291 model) using the [http://www.debian.org/CD/http-ftp/#stable 6.0.3 DVD].
  
I am doing this on my home network so I opted to do a pure network installation.
+
However, wireless does not work out of the box. Also, in order to get the GPU to work properly, it is necessary to install newer X and kernel packages from Backports.
  
* sudo aptitude install tftpd-hpa
+
== Wireless ==
* cd /tmp
+
Install the iwlagn kernel module [http://wiki.debian.org/iwlagn#Squeeze as described in the Debian wiki] (instructions are pasted below):
* wget http://http.us.debian.org/debian/dists/squeeze/main/installer-amd64/current/images/netboot/netboot.tar.gz
+
 
* cd /var/lib/tftpboot/
+
Add a "non-free" component to /etc/apt/sources.list, for example:
* sudo tar zxf /tmp/netboot.tar.gz
+
<pre>
* sudo aptitude install isc-dhcp-server
+
# Debian Squeeze/6.0
* sudo vi /etc/dhcp/dhcpd.conf
+
deb http://ftp.us.debian.org/debian squeeze main contrib non-free
 +
</pre>
 +
Update the list of available packages and install the firmware-iwlwifi and wireless-tools packages:
 +
<pre>
 +
# aptitude update
 +
# aptitude install firmware-iwlwifi wireless-tools
 +
</pre>
 +
The necessary kernel module should be automatically loaded. If necessary, it can be manually loaded via:
 +
<pre>
 +
# modprobe iwlagn
 +
</pre>
 +
Verify your device has an available interface:
 +
<pre>
 +
# iwconfig
 +
</pre>
 +
Raise the interface to activate the radio, for example:
 
<pre>
 
<pre>
$ cat /etc/dhcp/dhcpd.conf
+
# ifconfig wlan0 up
ddns-update-style none;
+
</pre>
option domain-name "jdthood.nl";
 
option domain-name-servers 172.19.3.1;
 
option routers 172.19.3.1;
 
option subnet-mask 255.255.0.0;
 
default-lease-time 600;
 
max-lease-time 7200;
 
allow booting;
 
allow bootp;
 
  
subnet 172.19.3.0 netmask 255.255.255.0 {
+
Additionally, I had to pass the parameter 11n_disable=0 to the iwlagn module. Either do this:
  range 172.19.3.220 172.19.3.229;
+
<pre>
}
+
sudo modprobe -r iwlagn
 +
sudo modprobe iwlagn 11n_disable=0
 +
</pre>
 +
...or create the file /etc/modprobe.d/intel-5300-iwlagn-disable11n.conf with the following content:
 +
<pre>
 +
options iwlagn 11n_disable=0
 +
</pre>
 +
Then reload the wireless driver:
 +
<pre>
 +
sudo modprobe -r iwlagn
 +
sudo modprobe iwlagn
 +
</pre>
 +
It might be necessary to repeat the last step a couple of times.
  
group {
+
== Newer kernel ==
  next-server 172.19.3.7;
+
Add the following line to /etc/apt/sources.list (or add a new file containing the line in /etc/apt/sources.list/d/):
  host trawsfynydd {
+
<pre>
    hardware ethernet f0:de:f1:6b:22:bf;
+
deb http://backports.debian.org/debian-backports squeeze-backports main
    fixed-address 172.19.3.220;
+
</pre>
    filename "/pxelinux.0";
+
Run apt-get update.
  }
 
}
 
  
 +
Install the new kernel image:
 +
<pre>
 +
apt-get -t squeeze-backports install linux-image-2.6-amd64
 
</pre>
 
</pre>
 +
 +
Reboot.
 +
 +
[http://backports-master.debian.org/Instructions/ Backports instructions].
 +
 +
== Graphics ==
 +
It is necessary to install a newer version of X from Backports. Please refer to [http://x.debian.net/reference/squeeze-backports.html this page] for instructions.
 +
 +
[[Category:X220]]
 +
[[Category:Debian]]

Latest revision as of 12:04, 18 June 2015

(Please note: One user reported that the Debian 6.0 (Squeeze) installer did not include a driver for the Ethernet card in the X220. It is possible that this is due to hardware differences between models. Please check that your hardware is supported. As described below, the 4291 model works.)

Introduction

Debian Squeeze can be installed without problems on the ThinkPad X220 (4291 model) using the 6.0.3 DVD.

However, wireless does not work out of the box. Also, in order to get the GPU to work properly, it is necessary to install newer X and kernel packages from Backports.

Wireless

Install the iwlagn kernel module as described in the Debian wiki (instructions are pasted below):

Add a "non-free" component to /etc/apt/sources.list, for example:

# Debian Squeeze/6.0
deb http://ftp.us.debian.org/debian squeeze main contrib non-free

Update the list of available packages and install the firmware-iwlwifi and wireless-tools packages:

# aptitude update
# aptitude install firmware-iwlwifi wireless-tools

The necessary kernel module should be automatically loaded. If necessary, it can be manually loaded via:

# modprobe iwlagn

Verify your device has an available interface:

# iwconfig

Raise the interface to activate the radio, for example:

# ifconfig wlan0 up

Additionally, I had to pass the parameter 11n_disable=0 to the iwlagn module. Either do this:

sudo modprobe -r iwlagn
sudo modprobe iwlagn 11n_disable=0

...or create the file /etc/modprobe.d/intel-5300-iwlagn-disable11n.conf with the following content:

options iwlagn 11n_disable=0

Then reload the wireless driver:

sudo modprobe -r iwlagn
sudo modprobe iwlagn

It might be necessary to repeat the last step a couple of times.

Newer kernel

Add the following line to /etc/apt/sources.list (or add a new file containing the line in /etc/apt/sources.list/d/):

deb http://backports.debian.org/debian-backports squeeze-backports main

Run apt-get update.

Install the new kernel image:

apt-get -t squeeze-backports install linux-image-2.6-amd64

Reboot.

Backports instructions.

Graphics

It is necessary to install a newer version of X from Backports. Please refer to this page for instructions.