This is one of a number of posts detailing how to install Ubuntu 6.10 (codename Edgy) on a Thinkpad X41. This post focuses on upgrading from Ubuntu Edgy Eft (version 6.10) to Ubuntu Feisty Fawn (version 7.04).
Upgrading from 6.10 to 7.04 is a relatively straightforward operation, however there are a few issues I’ve found so I’ll start with those before you decide whether or not to upgrade.
Ubuntu seems to be running more slowly than before. Applications take longer to start up, with the desktop freezing while they’re loading in some instances. I can’t remember seeing this happen before. Other people have reported the same issue.
The Beryl desktop manager seems to have some issues with the new release. Sometimes when a new application is loaded it doesn’t initialise properly when Beryl is enabled. E.g. an xterm window will load but you can’t type in it, or when I load QuickSynergy I can see the contents of the application window but can’t click on them. In each case, logging out then in again solves the problem, but I’d rather find a proper fix for it, obviously enough.
The update failed the first time I attempted it. I got the following error: Could not install ‘/var/cache/cpt/archives/fuse-utils_2.6.3-lubuntu2_i386.deb’
This package is used to map to the Windows NTFS partition on my hard drive, and this failure caused the upgrade process to fail. However, trying the same upgrade a few days later, the problem seems to have been resolved.
Another problem with accessing NTFS partition is that it seems to have problems allowing me to rename files using the File Browser. It’s not a permission issue, I can rename them just fine using the Terminal (I have the ntfs-3g package installed which gives me read/write access to NTFS partitions).
The Desktop Effects option (aka the Compiz window manager, admittedly it’s labelled as a beta product) seems pretty flaky, displaying many of the same issues that Beryl seems to have with this Ubuntu release. This suggests to me that the 3D graphics drivers for my Thinkpad may be faulty, and it is something I’ll look in to.
Java seems to have gone back from version 1.5 to version 1.4.2. Some applications require Java 1.5 or later, and refuse to execute without it.
Long story short, I’m less happy with Ubuntu now than when I was back on Edgy, and there’s nothing in the new release that makes me glad I upgraded. By far the worst issue is the length of time it takes to start a new application. Pain in the ass. So, if you still want to upgrade, read on!
Update May 3rd 2007: Problems 1, 2 and 4 seem to have gone away after installing the latest updates with Update Manager, so I am now very happy with my new install of Ubuntu
Performing the Upgrade
Click System->Administration->Update Manager
There should be a notice on the top of the window telling you that a new release is available. Click on this button.
Follow the simple steps, essentially just clicking OK at each prompt.
The upgrade seems to uninstall the ntfs-3g package, which allows you to mount a Windows NTFS hard drive partition in read/write mode. Apparently it’s a known problem. To reinstall this:
Scroll down to ntfs-3g, right click on the check box and choose Mark for Installation
Click the Apply button then close the window.
To mount your NTFS partition (if you’ve already set it up to be mounted at boot time, if not see here), open a terminal window by clicking Applications->Accessories->Terminal
Type sudomount -a and hit Enter. This remounts all mount points listed in your /etc/fstab file.
To upgrade to Java 1.6.0 from the system default of 1.4.2, do the following (source link):
Open a terminal and type: sudo apt-get install sun-java6-jdk sun-java6-plugin
sudo update-java-alternatives -s java-6-sun
Type: java -version and you should be told that you are using version 1.6.0.
As I mentioned, there are still some issues that I have with the upgraded version, and as (… if…) I solve them, I’ll update this post with extra information.
I recently went through the relatively painless but lengthy process of installing Ubuntu 6.10 on my Thinkpad X41 and getting all the programs I want on it (you can read the instructions I posted based on it here if you like). However, I’ve just come across a distro with pretty all these programs already installed over at http://ubuntusoftware.info/ultimate/. It contains loads of very handy programs, and also the very sexy Beryl window manager.
I haven’t tried it out myself, so caveat emptor, but if you’re thinking of installing Ubunty Edgy (6.10) and would like lots of the extras listed on that page, then it could be worth giving a go. If you have a Thinkpad X41 and want to get it’s pen and screen features working however, you will still have to install these yourself. I’ve posted instructions here.
This is one of a number of posts detailing how to install Ubuntu 6.10 (codename Edgy) on a Thinkpad X41.
This post explains how to install the Beryl window manager on Ubuntu Edgy. Beryl is a very impressive window manager for Linux that adds many extremely cool effects and themes to the desktop. These include things like a 3D cube workspace switcher, a tab switcher with window preview, many minimize/maximize animations, and much much more. Watch this video to see Beryl in action.
First the Beryl repository must be added. Open a terminal by clicking Applications->Accessories->Terminal
Type sudo gedit /etc/apt/sources.list
Add the two lines
deb http://ubuntu.beryl-project.org/ edgy main
deb-src http://ubuntu.beryl-project.org/ edgy main
Note: If you are installing Ubuntu Feisty (version 7.04), replace the ‘edgy‘ with ‘feisty‘ in the lines above.
For safety’s sake, so that Beryl can be disabled easily later if it turns out to be buggy, create a new Session. Save the file http://www.skynet.ie/~sos/ubuntu/Beryl.desktop to /usr/share/xsessions
When Ubuntu next starts up, you will have the option to use Beryl. To do this, in the log in screen
Click Options->Select Session
Choose Beryl
Click Change Session
To play around with Beryl settings, once logged in click the red diamond icon in the top right corner task bar.
To see the cool cube effect, press Ctrl-Alt-Left and Ctrl-Alt-Right keys. you may only have one workspace open, so add more by right clicking on the Workspace switcher at the bottom right of the screen, choosing “Preferences” and setting the number of workspaces.
To edit or change themes, open System->Preferences->Emerald Theme Manager and play around.
To make double clicking on title bars maximise the window, which on my laptop changed this behaviour to the irritating “collapse window” effect, open System->Preferences->Emerald Theme Manager->Emerald Settings->Titlebar Double-Click-Action->Maximise/Restore
This is one of a number of posts detailing how to install Ubuntu 6.10 (codename Edgy) on a Thinkpad X41.
This post explains how to install some programming tools on Ubuntu. Since I am a Java developer these days, and also participate in open source projects, I’ll be showing you how to install the Java runtime, the Eclipse IDE and Subversion for working with remote repositories. I also describe installing a tool for uploading to the Flickr photo sharing site, jEdit, my text editor of choice, and WLAssistant, a utility for working with Wireless networks.
Eclipse
To install Sun Java 5.0 and Eclipse 3.2:
Click Application->Add/Remove & search for “Java”
Check the “Sun Java 5.0 Plugin”, “Sun Java 5.0 Runtime” and “Eclipse” plug-ins.
Click “OK”.
If the download fails, try going to System->Administration->Software Sources and changing the Server, and repeat steps 1 to 3.
Subversion
Subversion is a source control program used by many open source projects.It does not come as standard with Ubuntu Edgy, which is strange enough, but it also seems to have disappeared from most of the software repositories, which is even stranger.To install it:
Open a Terminal by clicking Applications->Accessories->Terminal
Type sudo apt-get install subversion
If this doesn’t work, it means that subversion is not in your selected software repository, and you need to change the list of software sources.
To be able to extract RAR archives,open a terminal and type sudo apt-get install rar unrar
Wireless Assistant
Wireless networking support in Ubuntu Edgy is pretty terrible - essentially, there is no wireless network browser to show you what wireless networks are available provided by default. However, there is a utility, called “wlassistant”, that you can install that provides similar functionality to the wireless connection tool in Windows.
Open a Terminal by clicking Applications->Accessories->Terminal
Type sudo apt-get install wlassistant
To run it, type sudo wlassistant. You can also run it by clicking Applications->Internet->Wireless Assistant, but the application requires root permission to run, which you don’t get unless you launch it from the command line.
To run Wireless Assistant from the menu with super-user permissions, click System->Preferences->Menu Layout.
In the left menu, choose the Internet button.
Right click on the Wireless Assistant button in the right menu and choose Properties.
Change the execution command from wlassistant to sudo wlassistant. That should do it! You’ll be prompted for the super-user password when executing it from the menu from now on.
Synergy
To install Synergy, a useful program for sharing a mouse and keyboard among multiple computers:
This is one of a number of posts detailing how to install Ubuntu 6.10 (codename Edgy) on a Thinkpad X41.
The Thinkpad X41 Tablet has some very cool features that unfortunately Ubuntu Edgy doesn’t support out of the box. This post details how to get them working.
Next check if /dev/wacom exists using ls -al /dev | grep wacom
If it does exist:
type sudo gedit /etc/X11/xorg.conf
Check the file to see if InputDevice elements exist with the Identifiersstylus, eraser andcursor. If not, then add the following text to the bottom of the file. Note that pasting this text or editing it directly in gEdit may introduce invalid characters into your xorg.conf file, causing Ubuntu to fail on startup. So you’re better off typing in the text (I know, there’s a lot of it).
If the stylus still does not work after suspending (even after applying the fix above) try replacing all the “/dev/wacom“’s in your xorg to “/dev/ttyS0“, and restart Ubuntu.
To get the trackpoint scrolling working, type:
sudo gedit /etc/X11/xorg.conf
Find the “Input Device” section whose “Identifier” is “Configured Mouse”, and add the following two lines to the section: Option “EmulateWheel” “true” Option “EmulateWheelButton” “2″
To get the auto-rotate of the screen working, where the screen switches to portrait mode when in tablet mode, do the following (this is copied more or less directly from here):
Open a terminal and type acpi_listen. This should give the following result:
The previous steps define what to do when the laptop screen being closed or opened fires a particular event. Now we must register these scripts to be fired when that event is triggered. Copy the following two files to /etc/acpi/events.
This is one of a number of posts detailing how to install Ubuntu 6.10 (codename Edgy) on a Thinkpad X41. This post focuses on installing multimedia components.
Out of the box, Ubuntu Edgy has problems playing MP3s and some video codecs, due to the fact that it cannot ship non-open sourced software, while most codecs are free, they are not open source. For this reason, you have to download them yourself.
To get MP3s to play:
Click Applications->Add/Remove, choose to show “All Available Applications“and search for GStreamer
Check the “GStreamer extra plugins” box and click “Apply“
Check the “Software restricted by copyright or legal issues” box.
Click OK. If downloading fails, change the server to “Main Server” and try again.
Open a Terminal by clicking Applications->Accessories->Terminal and type sudo apt-get install gstreamer0.10-pitfdll gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gxine libxine-main1libxine-extracodecs ogle ogle-gui
When asked if you want to continue, type “Y” and hit Enter.
Firefox should prompt you to open with the package installer, but if not, double click on the downloaded file and install it.
To make RealPlayer work inside Firefox you have to delete the Totem plugins that tell Firefox to play RealMedia files with the open source program Totem. Source Link. Type: cd /usr/lib/mozilla-firefox/plugins/
sudo rm libtotem-complex-plugin.*
Burn this CD image to a blank CD with the CD burning software of your choice. I used Nero.
Create backup disks for Windows XP, in case something goes horribly wrong and you need to reinstall Windows. The Thinkpad X41 usually doesn’t come shipped with Windows XP on a disc (or at least mine didn’t), so you’ll need these disks if you ever want to reinstall Windows. To do this, click Start/.. tbc
Connect your CD/DVD drive to your laptop, and place the Ubuntu CD in it. Restart your laptop and boot from the CD. If your system is not set to boot from CD (i.e. it always uses the hard drive), then when the laptop is starting to boot, hit the blue “Access IBM” button, and change the boot options to boot from CD before hard drive.
Ubuntu should now load. You will see an icon labelled “Install” on the desktop. Double click on this, and click your way through the install wizard. The defaults are generally the right choice. The installations should take around twenty minutes, without a progress bar - don’t worry, it hasn’t hung, it’s working just fine.
Restart the laptop, removing the CD from the drive.
Since you’ve installed Ubuntu as a dual-boot partition alongside Windows, you will probably want to be able to access your Windows hard drive. The help document provided by Ubuntu at “Partitions and Booting/Make Windows Partitions available from Ubuntu” is out of date - there is no System->Administrators->Disks menu item, as it claims. Instead, open the Help system with System->Help->System Documentation, and click on “Working with your Desktop“. From the left menu, choose “Partitions and Booting/Make Windows Partitions automatically available“.By default, Ubuntu (as with pretty much all Linux distros) provides read-only access to NTFS partitions. To get read-write access, you have to install an extra package called ntfs-3g
You now have to find out the name of your Windows hard drive. type:
cd /dev/disk/by-label ls
This will list the disks available to you. See if you can recognise the name of your C drive in Windows - originally mine was called IBM_PRELOAD. Take note of it
At the end of the fstab file we opened earlier append /dev/disks/by-label/IBM_PRELOAD /media/windows ntfs-3g locale=en_US.utf8 0 0
Save and close the file, and type “sudo mount -a“so the changes take effect. If you still can’t access the windows partition at /media/windows then restart Ubuntu to force the changes to take effect.
On a personal side note, to speed up access to the drive, I created a soft link to it, called “C”, from my home folder. To this open a terminal and type ln -s /media/windows ~/C
If you find your internet connection is slow, then it could be due to the IPv6 protocol interfering with you network requests. To fix this (source link):
Open a terminal and type sudo gedit /etc/modprobe.d/aliases
Locate “alias net-pf-10 ipv6″ and replace it with
#alias net-pf-10 ipv6 alias net-pf-10 off ipv6 alias net-pf-10 off
Save the file and exit gedit.
Open Firefox and type into the address bar about:config.
Find and set the following values in the list:
Set network.dns.disableIPv6 to “true” by double clicking on it
Set network.http.pipelining to “true”
Set network.http.pipeining.maxrequests to 8
Set network.http.proxy.pipelining to “true”
Reboot your system.
To share folders over a Windows network (through Samba) network, a couple of steps are required [source link]:
Click System->Administration->Shared Folders
Click Add and choose the folder you want to share.
Next you must add a password for whatever users you want to be able to connect to your machine over the network. Open a terminal and type sudo smbpasswd -a myusername where ‘myusername’ is, of course, your user name.
You will be prompted for a password twice. Enter it, and you will then be able to connect to that share over a windows network.
This is the first in a series of of posts detailing what is required in order to install the Linux distribution Ubuntu 6.10 (codename Edgy) on a Thinkpad X41 Tablet PC on a separate partition to Windows XP Tablet Edition. It is entirely based on my experiences, and I don’t claim it to be either an official nor all-encompassing list of required actions, merely what I had to do to get what I personally wanted on my laptop.
All of the information contained in this series of posts is available elsewhere on the web, but it is fractured into sepearate wiki posts, blog posts, discussion forums and official documentation. With these other sources, many different options are often covered, e.g. Gnome & KDE, i386 and 64 bit architectures - my posts are just concerned with the Gnome edition of Ubuntu Edgy on i386, specifically as it applies the the Lenovo (IBM) Thinkpad X41.
As such, these articles will cover both generic issues, such as getting MP3s working, and also issues specific to the X41, e.g. getting the screen to rotate when in tablet mode and getting the tablet pen to work. Also, for the eye-candy junkies, I also install the Beryl window manager, which looks so damn pretty that Vista should be ashamed of itself.