[Home] [Linguistics:] [Fieldwork:] [Databases:] [Linux:] [Debian:] [Windows:] [Miscellaneous]

Ubuntu 6.10 edgy, Xubuntu 6.06 dapper and Debian GNU/Linux on an IBM ThinkPad X31 (2672A9J)

1590x1405(1476585bytes) Contents

Specs
Links

Ubuntu 6.10 edgy (an installation record 06-09 Nov 2007)
  • Ubuntu live desktop CD 7.04 fetsy boot problem with the X31
  • Xubuntu 6.06 dapper (an installation record 28 May 2007)
  • Partitions
  • Network
  • Wireless netowork
  • Guarddog
  • How to use ifup ifdown
  • Window Managers
  • Fluxbox
  • Left-hand mouse settings
  • Key bindings
  • Startup
  • Date and time on the title bar
  • Themes
  • Emacs font settings
  • LaTeX settings
  • Japanese language settings
  • SCIM Key bindings
  • Anthy on emacs21
  • Japanese true type font
  • Adobe Reader 7.* problem with SCIM
  • ACPI
  • Debian GNU/Linux (An instrallation record Sept 2006)
  • Debian-testing etch netinstall -386 (24 sept 2006)
  • Debian Installer pre-re2 sarge 3.1 i386 (Dec 2004)
  • Basic packages and security settings
  • Wireless network
  • Packages
  • setting Japanese environments
  • setting LaTeX
  • setting Emacs
  • audio and multimedia
  • ACPI
  • Current problems
  • Partitions
  • This page shows how I installed Debian GNU Linux and Xubuntu Linux to an IBM ThinkPad X31 (1024 MB of RAM; apprx.75 GB of HDD, 4200RPM, 8MB; Wireless lan a/b/g). I originally started using Debian in Dec 2004 and, when I replaced the HDD with a Seagate ST9160821A (160 GB, 5400RPM, 8MB) in May 2007, I changed into Xubuntu. Both distributions work fine on the X31.

    Specs

    Links:

    Ubuntu 6.10 edgy on an IBM ThinkPad X31 (2672A9J) (06-09 Nov 2007)

    I successfully installed Ubuntu 6.10 edgy with the live desktop CD. However, I Originally tried to install 7.04 fetsy and had the problem as shown in the next section.

    Ubuntu live desktop CD 7.04 fetsy boot problem with the X31

    When I reboot the X31 after I installing 7.04 with the CD, the machine became unbootable and I got the following error messages at start up: The 7.04 live desktop CD seems to be the cause of the problem. I did the followings to recover from the problem:

    First, I checked Microsoft Home to find out the cause in vain.

    Second, I deleted 7.04 completely from the HDD and did clean installation of Windows XP with the 5 Recovery Disks for X31. Then, I got Grub Error 22 problem.

    Third, I tried the installiation of 7.04 again. Again, I got the error messages above (not the grub one). The messages came up before grub starts. Thus, there is no chance to boot into 7.04.

    Fourth, I overwrote (installed) 6.10 onto 7.04 and got Grub Error 22 again. Fortunately, Grub Super Disk fixed the error.

    7.04 did not give any chances to use the Grub Super Disk as 0x00000-like messages occurred before grub starts. The 7.04 CD seems to cause some boot problems to the X31, whereas there was no difficulity in installing 6.10.

    Ubuntu 6.10 installation

    I installed the following packages.

    $ sudo apt-get install guarddog emacs21 ispell ibritish ncftp firefox yatex emacs-goodies-el snownews gkrellm gkrellm-bfm gkrellm-hdplop gkrellm-ibam gkrellm-leds gkrellm-reminder gkrellmd gkrellongrun gkrelltop gkrelltopd gkrellkam gkrellm-alltraxclock gkrellm-mldonkey gkrellm-volume gkrellmitime gkrellmoon gkrellmss gkrellmwireless vlc wine gkrellm anthy-el ptex-bin w3m w3m-el cvs (clamav mozilla-browser mozilla-psm mew migemo ruby)

    Xubuntu 6.06 dapper on an IBM ThinkPad X31 (2672A9J) (May 2007)

    I reinstalled Windows XP to dualboot the machine with Xubuntu with a new HDD (Seagate ST9160821A, 160GB, 5400RPM, 8MB) in May 2007. Below is the procedures of the installation.

    Partitions

  • Current partitions
  • Procedures

    1. to install Windows XP with the recovery CDs.
    2. to resize the ntfs partition from about 140 GB to 30 GB (at this stage the bios of x31 does not fully recognize the whole 160 GB of the new HDD but it will by proceding the partitioning.)
    3. to install xubuntu 6.06 to the HDD with the live CD. Partition the unallocated disc spase like this with Gnome Partition Editorw.

    Network

    Change /etc/network/interfaces like this. After basic installation with the live CD, change /etc/apt/sources.list like this:

    #################################
    ## Australia (for example)##
    deb http://mirrors.uwa.edu.au/ubuntu dapper main restricted
    deb-src http://mirrors.uwa.edu.au/ubuntu dapper main restricted

    deb http://mirrors.uwa.edu.au/ubuntu dapper-updates main restricted
    deb-src http://mirrors.uwa.edu.au/ubuntu dapper-updates main restricted

    deb http://mirrors.uwa.edu.au/ubuntu dapper universe
    deb-src http://mirrors.uwa.edu.au/ubuntu dapper universe

    deb http://mirrors.uwa.edu.au/ubuntu dapper-backports main restricted universe multiverse
    deb-src http://mirrors.uwa.edu.au/ubuntu dapper-backports main restricted universe multiverse

    deb http://security.ubuntu.com/ubuntu dapper-security main restricted
    deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
    deb http://security.ubuntu.com/ubuntu dapper-security universe
    deb-src http://security.ubuntu.com/ubuntu dapper-security universe
    ###################################

    $ sudo apt-get update

    $ sudo apt-get install clamav guarddog emacs21 ispell ibritish ncftp firefox yatex emacs-goodies-el snownews gkrellm vlc wine gkrellm anthy-el (mozilla-browser mozilla-psm mew migemo ruby)

    Wireless netowork

    To use ifup ifdown to change network settings (to change settings manually), change /etc/network/interfaces like below. The settings are for one wireless and two ethernet connetctions.

    ##############################
    auto lo
    iface lo inet loopback

    iface eth1 inet dhcp

    iface eth2 inet dhcp

    iface ath0 inet dhcp

    iface wlan0 inet dhcp

    iface work inet static
    address 111.222.333.123
    netmask 255.255.255.0
    gateway 111.222.333.1
    dns-search anu.edu.au
    dns-nameservers 111.222.333.1.10

    iface home inet static
    address 111.222.333.456
    netmask 255.255.255.1
    gateway 111.222.333.2
    dns-search anu.edu.au
    dns-nameservers 111.222.333.2.10
    ##############################


    Instead of using the settings above, if adding auto * as shown below, X31 will automatically find wireless access points. Ifup and ifdown to change settings manually do not seem to work. This setting is not good when you have both wireless and ethernet accesss and don't want to use wireless as the settings always detect wireless network first and do not allow manually to change into ethernet. I don't know how to configure settings in which the machine firstly try to detect available wireless network and we can also change into ethernet manually.

    ##############################
    auto lo
    auto eth0
    iface lo inet loopback

    auto eth1
    iface eth1 inet dhcp

    auto eth2
    iface eth2 inet dhcp

    auto ath0
    iface ath0 inet dhcp

    auto wlan0
    iface wlan0 inet dhcp
    ##############################


    Guarddog
    If using guarddog, need to permit the network settings below to enable wireless connection. Guarddog - network settings Also see HOWTO guarddog.
    How to use ifup ifdown
    $sudo ifup eth0=work # to bring up ethernet at work
    $sudo ifup eth0=home # to bring up ethernet at home
    $sudo ifup ath0 # to bring up wireless connetion (if wlan0 is not configured.)

    Network can be restarted by doing:

    $ sudo /etc/init.d/networking restart

    Also see Network.

    Window Managers

    I use Fluxbox for Xfce4.

    Fluxbox

    Left-hand mouse settings
    Add the following lines in ~/.bashrc for left-hand mouse button settings. Only the 9 number setting shown below worked for the X31 to use a 3 buttom mouse (May 07).

    ##########################

    ### /.bashrc my settings ###

    ### Left-handed mouse ####
    xmodmap -e "pointer = 3 2 1 4 5 6 7 8 9"
    #xmodmap -e "pointer = 3 2 1 4 5"
    #xmodmap -e "pointer = 3 2 1 6 7 4 5"
    #xmodmap -e "pointer = default"

    ##########################

    Key bindings
    Change ~/.fluxbox/keys shown below (Mod1 is Meta key (alt key) and Mod4 Windows key):

    ##########################

    Mod1 Tab :NextWindow
    Mod1 Shift Tab :PrevWindow
    Mod1 1 :Workspace 1
    Mod1 2 :Workspace 2
    Mod1 3 :Workspace 3
    Mod1 F3 :ExecCommand vlc &
    Mod1 F4 :ExecCommand thunar &
    Mod1 F5 :ExecCommand emacs21 &
    Mod1 F6 :ExecCommand firefox &
    Mod1 F7 :ExecCommand wine /e/home/Program_Files/BibEdit11b9/Bibedit.exe &
    Mod1 F8 :ExecCommand acroread &
    Mod1 t :ExecCommand xfce4-terminal &
    Mod1 g :ExecCommand gkrellm &
    Mod1 m :ExecCommand mozilla &
    Mod1 r :ExecCommand akregator &
    Mod1 s :ExecCommand wine /usr/share/ToolboxWine/Toolbox.exe &
    Mod1 x :ExecCommand /usr/bin/oocalc2 &
    Mod1 x :ExecCommand /usr/bin/oowriter2 &

    ##########################

    Startup
    To always use your own pictures for background:

    $ emacs /.fluxbox/startup

    ##########################

    bsetbg -f ~/wallpapers/moon.png

    # This sets a black background
    #
    #/usr/bin/fbsetroot -solid black

    ##########################


    To run applications with fluxbox, add the lines:

    ##########################

    xscreensaver &
    gkrellm &
    emacs21 &
    xfce4-terminal &

    #########################

    According to machines to use, startup for applications does not work (it works on my ThinkPad x31 but does not on Optiplex 150). If this happens, try the following:

    $ emacs ~/.fluxbox/init

    add the following line:

    #####################################

    session.screen0.rootCommand: exec /usr/bin/startfluxbox

    #####################################
    Date and time on the title bar
    $ emacs ~/.fluxbox/init

    Adding the line:

    ###################################

    session.screen0.strftimeFormat: %D - %I:%M:%S

    ###################################

    looks like:

    06/12/07 - 01:05:34

    Adding the line:

    ###################################

    session.screen0.strftimeFormat: %K:%M

    ###################################

    looks like:

    01:05:34

    Themes
    To install themes, get tar balls from freshmenat.net and do the followings:

    Tar balls are downloaded in ~/Desktop in the example below:

    $ cd ~/.fluxbox
    ~/.fluxbox$ tar xzf ~/Dekstop/XXXXXX.tar.gz


    Themes will be installed in to ~/.fluxbox/styles, pixmaps and backgorunds.

    Emacs font settings

    I don't like default font size on emacs21 and I change the settings like this. This settings make fonts too small in size on B5 size screen.

    LaTeX settings

    $ sudo apt-get install ptex-bin dvipsk-ja xdvik-ja xpdf-reader okumura-clsfiles vfdata-morisawa5 dvipdfmx

    $ sudo jisftconfig add
    [Do this after you installed vfdata-morisawa5 to enable Japanese on dvips.]

    $ emacs /etc/texmf/texmf.d/50dvipdfmx.cnf [chage the file as follows:]

    * CMAPINPUTS=.;/usr/share/fonts/cmap/adobe-japan1//;/usr/share/fonts/cmap/adobe-japan2// ;/usr/share/fonts/cmap/adobe-gb1//;/usr/share/fonts/cmap/gs-cjk-resource//

    $ sudo update-texmf

    Japanese language settings

    Xubuntu uses SCIM by default and SCIM works fine (I use Anthy with SCIM). You don't have to set up Japanese input settings for Xubuntu as shown in The Japanese language settings that I did for Debian GNU Linux. All you need do is to install anthy (or kinput, prime etc) related packages.

    SCIM Key bindings

    The defalut key binding of CTRL + SPACE to toggle between Japanese and English conflicts with CTRL + SPACE to set marks when using emacs. If you like to change the key binding for the function, click on the SCIM icon on the bar which appears on the desktop when toggling and you can change the settings. Alternatively, you can change ~/.scim/config manually:

    $ emancs ~/.scim/config

    #########################

    /Hotkeys/FrontEnd/Trigger = Shift+space,Zenkaku_Hankaku,Hangul

    #########################


    Anthy on emacs21

    $ sudo apt-get install anthy anthy-el

    I use the following settings in my dot emacs file to use Anthy with SCIM on Xubuntu.

    ;; Anthy on emacs
    (push "/usr/share/emacs/site-lisp/anthy/" load-path)
    (load-library "anthy") [load anthy.el]
    (setq default-input-method "Japanese-anthy")

    Japanese true type font

    To use IPA font, click here.

    Adobe Reader 7.* problem with SCIM

    Adobe Reader 7.0* does not work if SCIM is running on Ubuntu 6.06 Dapper. You need to edit /usr/bin/acread as shown below:

    $sudo emacs /usr/bin/acroread

    Change:

    ########################

    #!/bin/sh
    #

    ########################


    to:

    ########################

    #!/bin/sh
    #
    GTK_IM_MODULE=xim

    ########################


    Save the file. Adobe Reader 7.0 should work and SCIM also work on the desktop.

    References: Unofficial Ubuntu 6.06 (Dapper Drake) Starter Guide

    ACPI

    See here.

    Debian GNU/Linux

    The sections that follow show how I installed Debian GNU/Linux (etch and sarge) in Sept 2006 and Dec 2004.

    Debian-testing etch netinstall -i386 (24 sept 2006)

    This section shows how I installed etch (Debian-testing netinstall i386 CD-ROM) on 24 Sep 2006.

    To see my current partitions, click here.

    Boot from the netinstall CD. Follow the installer'snavigation.

    # aptget install xorg kde ;; etch doesn't use x-window-system and xserver-xfree86.

    # apt-get install clamav guarddog kdm [Do this after installing xorg and kde ]


    # apt-get install ntpdate mozilla-browser mozilla-psm firefox mew yatex openoffice.org oooqs-kde digikam html-helper-mode w3m w3m-img w3m-el html-helper-mode migemo ruby emacs-goodies-el tpb

    # chmod +s /usr/bin/tpb [ This enables all users to use tpb.]

    Debian Installer pre-re2 i386 (Dec 2004)

    This section shows how I installed sarge 3.1 to my IBM ThinkPad X31 in December 2004.

    After shrinked the ntfs partition from 75 GB to 19.55 GB. I used Debian Installer pre-re2 i386 for X31. I didn't have any problems to set up a dual-boot machine.

    To see my partitions, click here.

    # $ boot: linux26 [Follow the installer's navigation.]

    Basic packages and security settings

    # apt-get install sudo
    # visudo [non-root user name] ALL=(ALL) ALL

    # apt-get install x-windows-system
    # apt-get install emacs21 ispell ibritish

    # emacs /etc/ssh/sshd_config # /etc/init.d/ssh restart [restart the ssh server.]

    Also need to do this.

    KDE

    # apt-get install kde
    # apt-get install clamav guarddog kdm [Do this after installing x-window-system and kde ]

    Wireless network

    Working on it.......

    Packages

    This section is for those who use emacs and LaTeX on Kde in Japanese environments on Debian. You need to adjust language locales etc for your languages to use. I don't need file menu and help to be displayed in Japanese as long as Japanese fonts can be shown properly when I actually use packages.

    # apt-get install ntpdate mozilla-browser mozilla-psm mozilla-firefox flashplayer-mozilla mew yatex mozilla-thunderbird openoffice.org oooqs-kde digikam camera html-helper-mode w3m w3m-img w3m-el html-helper-mode migemo ruby emacs-goodies-el

    # apt-get install tpb [tpb is a ThinkPad buttom software for on screen display for brightness and volume.]
    # chmod +s /usr/bin/tpb [ This enables all users to use tpb.]

    The Japanese language settings: LaTeX settings: Emacs settings:

    Audio and multimedia

    Alsa works fine with my X31.

    ACPI

    # apt-get install modconf
    # modconf

    Current problems

    Transcriber related:
    At the moment, key bidings such as tab to play and pause do not work when non-root.



    Partitions

    Current partitions of the X31 (150 GB, 1024 MB), May 2007
    Name Flags Part Type FS type Label Size
    1 Boot Primary ntfs /c 30 GB
    2
    Primary Linux etx3 / 5 GB
    3
    Primary fat32 /d 10 GB
    4
    Logical fat32 /f 120 GB
    5
    Logical linux swap
    1000 MB


    Update history:

    Partitions of the ThinkPad X31 (75 GB, 1024MB), Sept 2006
    Name Flags Part Type FS type Label Size
    1 Boot Primary ntfs /c 21.0 GB
    2
    Primary Linux etx3 / 650.0 MB
    3
    Primary Linux ext3 /home 2 GB
    5
    Logical Linux ext3 /usr 4.5 GB
    6
    Logical Linux etx3 /var 650.2 MB
    7
    Logical Linux ext3 /tmp 179.1 MB
    9
    Logical fat32 /e 33.2 GB
    10
    Logical fat32 /g 11 GB
    8
    Logical Linux swap
    2 GB


    Partitions of the ThinkPad X31 (75 GB, 1024MB), March 2005
    Name Flags Part Type FS type Label Size
    1 Boot Primary ntfs /C 21.0 GB
    2
    Primary Linux etx3 / 626.0 MB
    3
    Primary Linux ext3 /home 9.2 GB
    5
    Logical Linux ext3 /usr 9.2 GB
    6
    Logical Linux etx3 /var 537.2 MB
    7
    Logical Linux ext3 /tmp 179.1 MB
    9
    Logical fat32 /E 33.2 GB
    8
    Logical Linux swap
    2 GB


    Partitions of the ThinkPad X31 (75 GB, 1024MB), Dec 2004
    Name Flags Part Type FS type Label Size
    1 Boot Primary ntfs /C 19.55 GB
    2
    Primary Linux etx3 / 626 MB
    3
    Primary Linux ext3 /home 9.2 GB
    5
    Logical Linux ext3 /usr 9.2 GB
    6
    Logical Linux etx3 /var 537 MB
    7
    Logical Linux ext3 /tmp 179 MB
    8
    Logical Linux swap
    2 GB
    9
    Logical vfat /E 30 GB

    TOP