X61 Tablet – Ubuntu

No Gravatar

This install guide in incomplete, but it is the most advanced guide you will find for the X61 tablet running Ubuntu Jaunty (unless google likes you more than it likes me). I will attempt to keep is somewhat organized with the following Table of Contents:

Installing Ubuntu Jaunty 64 from the Alt. CD

Following this setup, YOU WILL LOSE ALL OF YOUR DATA. So backup your drive.

  • Download the CD here

  • Burn the ISO image onto a CD.

    • Things get a little sticky here. Reasons being, the X61T does not have a CD-ROM drive, Ultrabase aside. I personally went out and purchased the LG GSA-E5OL (External Super Multi DVD Rewriter) which is pretty slick itself… very slim, and very much perfect for the X61T. It’s bootable and 100% linux friendly.. and it has lightscribe! Other options you have: network install, usb install, external HD install. But really, the easiest, and the way that I have chosen is just get a plug-n-play external CD-ROM drive.
  • Backup your information and get ready to roll with the install.

  • Put your new Alternate CD in your drive, say goodbye to your hard work on your laptop and begin the journey to a fresh install of Jaunty.

  • The first thing you should get is a language menu. I chose English…duh.

  • Before you move on to the install, check the cd for defects, this usually only takes about 10-15 minutes max. It’s very important not to skip this, it’s only 10 minutes and if you have a bad CD, you may get 10 minutes into a semi-bricked laptop.

  • Once the CD is confirmed Okay, you should find yourself back at the menu (I think I had to do a restart). Press

    f6

    This will give you the advanced options of going into `expert` mode. Select this mode by using your arrow keys and pressing

    enter

    To exit, press

    escape

    on your keyboard.

  • Select to ‘Install Ubuntu’ with your arrow keys and press

    enter

    You’re now going to be put into an internal menu. I will underline the options that you will click on. All of them will be clicked, and in order from top/down.

    • Choose the language… I selected all defaults here. You may or may not need to change anything, but the defaults are for all english speaking individuals.

    • Detect and Mount the CD-ROM… I went over this before, hopefully you are using a CD-ROM.

    • Load debconf preconfiguration file

    • Load installer components from CD… Now, I winged this here. You are given a menu with some short descriptions. Yes, I know i chose the `expert` mode and I guess I lied slightly (I was curious?). Ok, so I chose the `lvmcfg` selection and the `parted-udeb` selection on the grounds I simply MUST have full drive encryption AND ext4… which you would think is just common sense in this day and age.

    • Detect network hardware… you need this step, whether you need it or not. My computer runs off Wifi internet, so the next step will obviously fail, to which it asks you to skip it after it fails, in which that is what I would suggest you also do. If you are wired to the internet, you should disconnect before this step? Why, because you’re possibly going to get mixed results on the rest of the steps I’m going to be following.

    • Configure the network… Choose Auto. Not configured -> continue. Explained in the last post, this step will fail, but you must attempt it to get the menu selection of `do not configure network at this time`. Please select this step.

    • Hostname… Unless you are a guru of some sort, to which I ask “why are you reading this?”, you will not need the hostname for much. It will however help you if you’re going to be web programing. I will be. So my hostname is ‘coyote’ as it matches my Desktops hostname ‘bear’ and my servers hostname, ‘den’.

    • Configure the clock… I selected all the defaults, other than my timezone, `central` time. Yes, your bios is using UTC.

    • Partition disks… The FUN!!! part. I am NOT the best person to ask when it comes to the greatest Linux setup for disk partitioning. Some people are fanatic about separation of home/root/var etc. I’m not in the least, in fact, I chose `Guided – use entire disk and setup an encrypted LVM` and you should too. It’s just too much effort for the benefit to do anything but that option. Follow through this option with the default selections until you get to `passwords`. Make your password a passphrase. Mine is a complete sentence, replacing some letters with special characters, and is a 33 character long sentence with no spaces. You will need this to get into your computer, NO MATTER WHAT. Do not forget it and make it easy to remember. Choose more defaults until it asks you to `write changes`. Do NOT write the changes yet, we need to tweak it.

    • You can select with the arrow keys the primary partition that has the `/` character as the mount point and is an `ext3` drive. Select this drive and press

      enter
    • Using your arrow keys again, go up to the `ext3` volume option and press

      enter

      Move the dropdown to `ext4` and press

      enter

      Why are we selecting ext4? Well.. because it’s better. You will find your system acting, more efficiently and that’s a good thing.

    • Now you can go back and write the changes. The screen scrolls so you may have to use your arrow keys to go all of the way down to get access to the selection.

    • Install the base system… This will bring up the kernel choice. I chose `linux-generic`, rather than the others. I only chose this because I may be making some ‘fixes’ to the kernel later, and the most generic option will have the least consequences to these actions. I also chose the `targetted image` so that I would have a more streamlined setup. If I’m missing things later, it really won’t matter as chances are I will have to get the source files to make the changes.

    • Set up all users & passwords… You will want shadow passwords. Do not encrypt the home folder, it will have negative performance impacts and your entire drive can’t be mounted without the password you chose, so you should be ok enough without this option

    • Configure the package manager… I took no notes here, so I’m assuming that I didn’t have anything to do here.

    • Install Grub… Do not install Grub 2, it will fail. It’s not really going to be necessary and may cause issues later because it’s still undergoing some big changes.

    • Install the MBR… I think I wrote this note wrong, but I’m going with it as an option, even though my best guess says it’s actually an option of the last one. In any case, you need to install the MBR so that you can boot your new partitions.

  • And that should be pretty much it. After the system is finished, it should tell you that it needs to restart. Your CD should eject, and then it will restart and load up to the point of having to put in your Crypt Password that you created earlier.

  • The first thing you should do when getting into your new setup is this:

    • go to the top right menu Applications -> Accessories -> Terminal

    • inside of the terminal enter these commands:

      sudo apt-get update

      Enter your password to confirm

      sudo apt-get upgrade

      Hit `Y` and `enter` if any updates are found. Your system is now fully up to date!

What works out of the box?

Sound, Pen, Touch, Nearly all Function Keys, Led’s, Wifi, Bluetooth. It’s actually a very robust system out of the box.


Using the middle mouse for vertical and horizontal scrolling

This is actually much easier to do in Jaunty on a clean system. This will also work in Intrepid, as long as you haven’t already configured Xorg.conf to handle the same functions.

  1. Open up a terminal. On the top left menu choose Applications -> Accessories -> Terminal.

  2. Within the terminal type these commands

    cd /usr/share/hal/fdi/policy/20thirdparty sudo touch x61t-scroll.fdi

    Enter your password

    sudo gedit x61t-scroll.fdi

    A new window should open (GEdit) that is blank. Enter the following into the new window.

    <match key="info.product" string="TPPS/2 IBM TrackPoint">  <merge key="input.x11_options.EmulateWheel" type="string">true</merge>
    			<merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
    			<merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
    			<merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
    			<merge key="input.x11_options.Emulate3Buttons" type="string">false</merge>
    			<merge key="input.x11_options.EmulateWheelTimeout" type="string">200</merge>
    			</match>
  3. Save and Close the new GEdit window.

  4. Restart your computer and the settings should now work for both horizontal and vertical scroll

Getting Touch to Work with Just HAL

These steps follow right in line with the last steps. From a clean system, it’s actually not that hard.

  1. Get the packages
    sudo apt-get install wacom-tools xserver-xorg-input-wacom
  2. Download the libraries
    sudo apt-get update
    		sudo apt-get install build-essential libx11-dev libxi-dev x11proto-input-dev xserver-xorg-dev tk8.4-dev tcl8.4-dev libncurses5-dev
    		sudo apt-get upgrade
  3. Now the kernel headers for your kernel are needed. To determine your kernel version:
    uname -r

    If you have the generic kernel:

    sudo apt-get install linux-headers-generic

    If you have the rt kernel:

    sudo apt-get install linux-headers-rt

    (Remember if you update to a newer kernel, then the module won’t work on restart because the module is compiled for a specific kernel. You will have to recompile the module for the newer kernel.)

  4. Okay now unpack the source code tar and go into the unpacked source code directory.
     tar xjvf linuxwacom-0.8.3-2.tar.bz2
    			cd linuxwacom-0.8.3-2
  5. Then we compile and install the linuxwacom kernel module.
    (To see the options the linuxwacom configure script offers you type “./configure –help | less”.)

    ./configure --enable-wacom --prefix=/usr
    			make
  6. (using –prefix=/usr installs to /usr instead of the default /usr/local)!!!!We DO NOT run “sudo make install” since we only want the module.
  7. Next we copy the module to the appropriate directory:
     sudo cp ./src/2.6.28/wacom.ko /lib/modules/`uname -r`/kernel/drivers/input/tablet/wacom.ko
  8. Now, simply run this command to calibrate your touchscreen to remove that annoying distance issue.
    wacomcpl

    Your all set, should run great!

    A big pain in the butt though is when these things don’t stick after a logout or restart. Well, this is how I solved that!

    sudo chmod 755 $HOME/.xinitrc
    			sudo gedit $HOME/.xinitrc

    comment out the line that says “. /etc/X11/xinit/xinitrc” by adding a # in front of it. Save the file.

  9. From ubuntu’s menu, go to
    System -> Preferences -> Startup Applications

    Create a new one… I called mine TouchCalibration
    for the command put

    sh $HOME/.xinitrc

    And save that. Now it should run on login… which will really help!

    Details were partially gathered from this thread Thanks gali98!

Install and run Google Gears on Ubuntu 64 -bit

Google Gears allows sites configured with gears to run in offline mode. For instance, I’m editing this post in offline mode as I type. Basically, FF3 + 64 bit Ubuntu do not match with the binary code. Luckily, Google has made Gears open sourced, so some smart people have taken this problem and have solved it. So far, I know that this app will work with 3.09 and 3.1 Firefox. Chances are, that is what you have running right now if you have been keeping updated.

It’s simple to install,
Click the link. gears-linux-opt-05210.xpi via http://nielspeen.com/blog/2009/02/google-gears-64-bit/
Allow the program to install.
Click yes when it asks if you would like to restart.

At that point, whenever you encounter a gears enabled website, you can add it as a trusted site, download the info and your can then go offline!

Enjoy!