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

From ThinkWiki
Jump to: navigation, search
(info about how I installed Debian 6.0.3 on the X220)
m (Add X220 category.)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
''(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.)''
 
''(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.)''
  
 
+
== Introduction ==
Debian Squeeze can be installed without problems using the [http://www.debian.org/CD/http-ftp/#stable 6.0.3 DVD] on the ThinkPad X220 (4291 model).
+
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].
  
 
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.
 
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 ==
 
== Wireless ==
Install the iwlagn kernel module [http://wiki.debian.org/iwlagn#Squeeze as described in the Debian wiki]:
+
Install the iwlagn kernel module [http://wiki.debian.org/iwlagn#Squeeze as described in the Debian wiki] (instructions are pasted below):
  
 
Add a "non-free" component to /etc/apt/sources.list, for example:
 
Add a "non-free" component to /etc/apt/sources.list, for example:
Line 31: Line 31:
 
# ifconfig wlan0 up
 
# ifconfig wlan0 up
 
</pre>
 
</pre>
Configure your wireless interface as appropriate.
+
 
 +
Additionally, I had to pass the parameter 11n_disable=0 to the iwlagn module. Either do this:
 +
<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.
  
 
== Newer kernel ==
 
== Newer kernel ==
Line 50: Line 65:
  
 
== Graphics ==
 
== Graphics ==
Please refer to [http://x.debian.net/reference/squeeze-backports.html this page].
+
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 11: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.