Difference between revisions of "Installing Ubuntu 12.04 (Precise Pangolin) on a ThinkPad X220"
Line 6: | Line 6: | ||
With every release of Ubuntu configuration becomes easier. Here is a summary of what I had to do to get the machine back to the way I like it. | With every release of Ubuntu configuration becomes easier. Here is a summary of what I had to do to get the machine back to the way I like it. | ||
− | * | + | * Associate my bluetooth HIDs. |
+ | |||
* Adjust display layout | * Adjust display layout | ||
** Problem: With some layouts the machine hangs! Will look into this. | ** Problem: With some layouts the machine hangs! Will look into this. | ||
+ | |||
* Disable Unity automaximization | * Disable Unity automaximization | ||
** Install and run <tt>gconf-editor</tt> and set <tt>apps|compiz-1|plugins|grid|screen0|options|top_edge_action</tt> to 0 (originally 10). | ** Install and run <tt>gconf-editor</tt> and set <tt>apps|compiz-1|plugins|grid|screen0|options|top_edge_action</tt> to 0 (originally 10). | ||
+ | |||
* Adjust touchpad | * Adjust touchpad | ||
** Switch to two-finger scrolling | ** Switch to two-finger scrolling | ||
** Disable mouse clicks | ** Disable mouse clicks | ||
+ | |||
* Set desktop background image | * Set desktop background image | ||
+ | |||
* Install compizconfig-settings-manager and run ccsm: | * Install compizconfig-settings-manager and run ccsm: | ||
** Assign the Resize Windows function to Alt-Button3 which is easier than the default | ** Assign the Resize Windows function to Alt-Button3 which is easier than the default | ||
+ | |||
* Enable terminal bell: | * Enable terminal bell: | ||
** Run <tt>gconf-editor</tt> and use it to change desktop | gnome | peripherals | keyboard | bell_mode from "<tt>off</tt>" to "<tt>on</tt>" | ** Run <tt>gconf-editor</tt> and use it to change desktop | gnome | peripherals | keyboard | bell_mode from "<tt>off</tt>" to "<tt>on</tt>" | ||
** Add "pactl upload-sample /usr/share/sounds/gnome/default/alerts/glass.ogg bell.ogg" to .xprofile | ** Add "pactl upload-sample /usr/share/sounds/gnome/default/alerts/glass.ogg bell.ogg" to .xprofile | ||
** Add "<tt>[ "$DISPLAY" ] && xset b 100</tt>" to <tt>~/.bashrc</tt> | ** Add "<tt>[ "$DISPLAY" ] && xset b 100</tt>" to <tt>~/.bashrc</tt> | ||
+ | |||
* Install tp-smapi module | * Install tp-smapi module | ||
** Install the <tt>tp-smapi-dkms</tt> package | ** Install the <tt>tp-smapi-dkms</tt> package | ||
** Add "<tt>tp-smapi</tt>" to <tt>/etc/modules</tt> | ** Add "<tt>tp-smapi</tt>" to <tt>/etc/modules</tt> | ||
+ | |||
* Install HDAPS stuff: | * Install HDAPS stuff: | ||
** Add "<tt>hdaps</tt>" to <tt>/etc/modules</tt> | ** Add "<tt>hdaps</tt>" to <tt>/etc/modules</tt> | ||
Line 33: | Line 41: | ||
hdaps-gl | hdaps-gl | ||
</pre> | </pre> | ||
+ | |||
* In /etc/sudoers add "<tt>Defaults timestamp_timeout=0</tt>" | * In /etc/sudoers add "<tt>Defaults timestamp_timeout=0</tt>" | ||
(Without this, every program I run after executing any command with <tt>sudo</tt> also effectively has full root privileges. This is ungood. If I want to run a sequence of commands as root without having to authenticate every time I'll just do "<tt>sudo su</tt>" to start a root shell!) | (Without this, every program I run after executing any command with <tt>sudo</tt> also effectively has full root privileges. This is ungood. If I want to run a sequence of commands as root without having to authenticate every time I'll just do "<tt>sudo su</tt>" to start a root shell!) | ||
+ | |||
* Enable fingerprint reader as I described [[How to enable integrated fingerprint reader with fprint|here]]: | * Enable fingerprint reader as I described [[How to enable integrated fingerprint reader with fprint|here]]: | ||
<pre> | <pre> | ||
Line 42: | Line 52: | ||
sudo vi /etc/pam.d/lightdm | sudo vi /etc/pam.d/lightdm | ||
</pre> | </pre> | ||
− | + | ||
* Set up hotkeys (zoom and micmute) as [[Installing Ubuntu 11.04 (Natty Narwhal) on a ThinkPad X220#Fix for hotkey shortcomings|I described earlier]] | * Set up hotkeys (zoom and micmute) as [[Installing Ubuntu 11.04 (Natty Narwhal) on a ThinkPad X220#Fix for hotkey shortcomings|I described earlier]] | ||
+ | |||
+ | * Move documents, pictures and other personal files from old to new home directory | ||
+ | |||
+ | * Set up Empathy accounts, etc. | ||
[[Category: Ubuntu 12.04]] | [[Category: Ubuntu 12.04]] |
Revision as of 11:17, 16 May 2012
I installed Ubuntu 12.04 LTS (Natty Narwhal) on a ThinkPad X220, model 42902GW.
This is the same machine on which I previously installed Ubuntu 11.04. For this LTS release I decided to do a clean install rather than an upgrade from 11.10.
With every release of Ubuntu configuration becomes easier. Here is a summary of what I had to do to get the machine back to the way I like it.
- Associate my bluetooth HIDs.
- Adjust display layout
- Problem: With some layouts the machine hangs! Will look into this.
- Disable Unity automaximization
- Install and run gconf-editor and set apps|compiz-1|plugins|grid|screen0|options|top_edge_action to 0 (originally 10).
- Adjust touchpad
- Switch to two-finger scrolling
- Disable mouse clicks
- Set desktop background image
- Install compizconfig-settings-manager and run ccsm:
- Assign the Resize Windows function to Alt-Button3 which is easier than the default
- Enable terminal bell:
- Run gconf-editor and use it to change desktop | gnome | peripherals | keyboard | bell_mode from "off" to "on"
- Add "pactl upload-sample /usr/share/sounds/gnome/default/alerts/glass.ogg bell.ogg" to .xprofile
- Add "[ "$DISPLAY" ] && xset b 100" to ~/.bashrc
- Install tp-smapi module
- Install the tp-smapi-dkms package
- Add "tp-smapi" to /etc/modules
- Install HDAPS stuff:
- Add "hdaps" to /etc/modules
sudo add-apt-repository ppa:linrunner/thinkpad-extras sudo apt-get update sudo apt-get install hdaps-utils sudo modprobe hdaps hdaps-gl
- In /etc/sudoers add "Defaults timestamp_timeout=0"
(Without this, every program I run after executing any command with sudo also effectively has full root privileges. This is ungood. If I want to run a sequence of commands as root without having to authenticate every time I'll just do "sudo su" to start a root shell!)
- Enable fingerprint reader as I described here:
sudo add-apt-repository ppa:fingerprint/fprint sudo apt-get install libpam-fprintd fprintd fprintd-enroll sudo vi /etc/pam.d/lightdm
- Set up hotkeys (zoom and micmute) as I described earlier
- Move documents, pictures and other personal files from old to new home directory
- Set up Empathy accounts, etc.