Ubuntu Linux 7.10 Gutsy Gibbon fresh install on Lenovo (IBM) ThinkPad R61 8918-5QG
Last edited May 4, 2008
More by Ajnász »
System

Lenovo ThinkPad R61 8918-5QG
Page of the notebook on ibm.com

OS

Ubuntu 7.10 Gutsy Gibbon

Kernel Version
$ uname -a
Linux maiev 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux

VGA
NVIDIA Driver Version: 169.12

BIOS

Version: 7KETA9WW (2.09-1.08)
hRelease Date: 2007-12-27

Related contents
$ lspci
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port (rev 0c)
00:19.0 Ethernet controller: Intel Corporation 82566MC Gigabit Network Connection (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Contoller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 03)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
01:00.0 VGA compatible controller: nVidia Corporation Quadro NVS 140M (rev a1)
03:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN Network Connection (rev 61)
15:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ba)
15:00.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 04)
15:00.2 Generic system peripheral [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 21)
15:00.3 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 11)
15:00.4 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 11)
15:00.5 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 11)
$ lsusb
Bus 002 Device 005: ID 045e:00e1 Microsoft Corp.
Bus 002 Device 001: ID 0000:0000
Bus 002 Device 002: ID 05e3:0606 Genesys Logic, Inc.
Bus 002 Device 003: ID 08ec:204a M-Systems Flash Disk Pioneers
Bus 001 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 003 Device 003: ID 147e:2016
Bus 003 Device 002: ID 0a5c:2110 Broadcom Corp.
Bus 003 Device 001: ID 0000:0000
Bus 007 Device 001: ID 0000:0000
Bus 006 Device 001: ID 0000:0000 
External Devices

  • Microsoft Wireless Notebook Optical Mouse 4000 v1.0
  • WD Passport® Portable 60GB
  • Kingston DataTraveller U3 1GB
  • Trust HU-4440P 4 Port USB2 Mini Hub
What I required

Display
  • nVidia Quadro NVS 140M with 3D acceleration
  • Full display resolution: 1680x1050
  • 3D Desktop with Compiz Fusion
Network
  • Ethernet network
  • Wireless with WPA2
Multimedia
  • Internal sound output
  • Internal sound intput
  • Sound output with headphone
  • Skype input
  • Skype output
  • Video Play
  • Audio Play
Virtalization
Others
  • USB slots
  • Card Reader - especiall the XD card reader
  • External Notebook Mouse
  • Kingston DataTraveller
  • Trust USB Hub
Works out of the box

  • Ethernet network
  • Wireless with WPA2 - driver in linux-backports-modules-2.6.22-14-generic package
  • Internal sound output - driver in linux-backports-modules-2.6.22-14-generic package
  • Sound output with headphone
  • Skype output
  • Video Play
  • Audio Play
  • Touchpad
  • Trackpoint
  • SD Card Reader
  • Kingston DataTraveller
  • Trust USB Hub
  • Bluetooth
Works with some hack

  • nVidia Quadro NVS 140M with 3D acceleration
  • Full display resolution: 1680x1050
  • 3D Desktop with Compiz Fusion
  • LG L1953TR as additional display
When the Ubuntu booted first, the X didn't started. I had to change in the /etc/X11/xorg.conf the nv device driver to vesa (or use the dpkg-reconfigure xserver-xorg command)
Then the X is started but only with vesa driver in 1680x1050 resolution, and I didn't have any 3D acceleration. The Ubuntu notified me, that there is restricted driver available for my computer, which driver was the nVidia driver. After I installed it everything was fine, after login the Compiz started too and it works.
I attched my LG L1953TR monitor to the external vga output, and then started the nvidia-settings. In the X Server Display Configuration menu I clicked on the Detect Display button. Then the tool configured the external monitor properly, so it works.
  • Notebook Mouse
The notebook mouse works fine. I installed the imwheel stuff and configured the extra button to work as "Back" button - see xorg.conf and imwheelrc in desktop apps configs
  • Windows XP on KVM
First I had to enable the virtalization in BIOS, then install the kvm module (aptitude install kvm). For more details see the Microsoft Windows XP with KVM section.
  • Windows XP on VMware
Enable the virtualization in BIOS, then download the server tar.gz package from VMware home page then install.
The VMware got into the Ubuntu repository, so you can install it if you type aptitude install vmware-server.
  • Play sound in more than one application in the same time
The sound is works out of the box, but only one application can play at the same time. To enable multiple sound activities just install the esound, esound-clients, esound-common packages. Then I can play flash in Firefox, play movie in Totem and play songs in Rhythmbox/Exaile at the same time.
  • Screen brightness
You can change the screen brightness if you switch to a terminal (Ctrl+Alt+F1). In the 169.07 nvidia driver they fixed this problem, so after you installed it, you can change the brightness directly from the X.
First you have to download the latest driver from nvidia.com. Then you have to uninstall the Ubuntu driver: sudo aptitude remove nvidia-glx-new and after it you should install the new driver: sudo sh NVIDIA-Linux-x86-169.07-pkg1.run.
My video about the compiz fusion on YouTube:
http://www.youtube.com/watch?v=8fm9_Vf8AtU
If you want to use mpd and esound, try this configuration in the mpd.conf:
audio_output {
  type                    "alsa"
  name                    "ALSA Output"
#  device                  "hw:0,0"     # optional
#  format                  "44100:16:2" # optional
}


You don't have to specify the alsa device, it can cause problems! You can receive the next error messages into your mpd error log:

Error opening alsa device "hw:0,0": Device or resource busy
problems opening audio device while playing


esd.conf
[esd]
# autospawning is not recommended, since it can't really be done
# right.  If you want your login session to be using a sound daemon,
# you should start it from the session controller, not some random
# app inside.
auto_spawn=1
spawn_options=-noterminate -nobeeps -as 5
spawn_wait_ms=100
# default options are used in spawned and non-spawned mode
default_options=


Works with limitations

USB
The two USB slot on the right side doesn't handle my Microsoft Notebook Optical Mouse 4000 just once, so when I plug the receiver into one of these slots after login, it works properly, but if I remove and want to plug in again, the light doesn't flash, so It doesn't work. If I plug it into the USB slot which is on the left side of the notebook, it works fine every time. If I plug an external USB light into the right side USB, it's flash up. When I plug an USB hub, its led is flashing too, but when I'm plugging in the mouse receiver, it doesn't work.
http://bugzilla.kernel.org/show_bug.cgi?id=8853
https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/126369
Maybe fixed the USB problem in the BIOS 1.09, because the USB ports aren't disabled yet. The notebook is up more than 7 hours. But I'm not sure, because I updated the BIOS yesterday night, and ~25 mins after the boot the ports were disabled. So, I don't know that the BIOS update is solved the problem or not. I think it's just better, but not the best.
If I use my USB hub, the IRQ does not gets disabled for a long time.
2007. 12. 17. The bug is fixed in the 2.07-1.08 BIOS. See Fixed problems section.
Maybe works, but didn't tested yet

Firewire IEEE 1394 
Fixed problems

Skype Input
In skype device configuration everything is default, turn on the internal mic boost in your mixer (alsamixer). It's noisy, but works. When I don't use the mic, I switch it off. I don't use external microphone!
Internal Input
It can work on the same way than with Skype
Disabling USB
The bug was caused by unexpected interrupts from the USB controller. The bug is fixed in the BIOS version 2.07-1.08. If you don't have 32 bit Vista or XP on your machine, download the bootable CD image which allows you to update your machines BIOS. Don't worry, it's not a hard job to upgrade, but be careful, when you do the procedure, and read every instructions.
Suspend to RAM
http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.10...
After I made those changes and I uninstalled the uswsusp, the suspend is works fine. Below you can check my /etc/default/acpi-support configuration file.
Does not works yet

XD Card reader - plugged an XD card, but nothing happened
Fingerprint reader

 Skype Input and Internal Input are fixed - see Fixed problems section
Framebuffer setup

$ sudo vim /etc/initramfs-tools/modules

add these lines:
vesafb
fbcon

$ sudo vim /etc/modprobe.d/blacklist-framebuffer
insert # before vesafb

$ sudo vim /etc/modules
insert fbcon
insert vesafb

vga=865 (1680x1050)
vga=791 (1024x768)
vga=834 (1400x150)

$ sudo vim /boot/grub/menu.lst
find line begins with # defoptions...

# defoptions=quiet vga=865

$ update-initramfs -u
$ update-grub

/etc/X11/xorg.conf

# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "InputDevice"
  Identifier "Notebook Keyboard"
  Driver "kbd"
  Option "CoreKeyboard"
  Option "XkbRules" "xorg"
  Option "XkbModel" "pc105"
  Option "XkbLayout" "hu"
EndSection

Section "InputDevice"
  Identifier "Microsoft Wireless Notebook Optical Mouse 4000"
  Driver "mouse"
  Option "CorePointer"
  Option "Device" "/dev/input/mice"
  Option "Protocol" "ExplorerPS/2"
  Option "Buttons" "6"
  Option "ZAxisMapping" "5 6"
EndSection

Section "Device"
  Identifier "nVidia Corporation G80 [Quadro NVS 140M]"
  Driver "nvidia"
  Busid "PCI:1:0:0"
  Option "AddARGBVisuals" "True"
  Option "AddARGBGLXVisuals" "True"
  Option "RenderAccel" "True"
  Option "NoLogo" "True"
EndSection

Section "Monitor"
  Identifier "Notebook Monitor"
  Option "DPMS"
EndSection

Section "Screen"
  Identifier "Notebook Screen"
  Device "nVidia Corporation G80 [Quadro NVS 140M]"
  Monitor "Notebook Monitor"
  Defaultdepth 24
  SubSection "Display"
    Modes "1680x1050"
  EndSubSection
EndSection

Section "ServerLayout"
  Identifier "Default Layout"
  Screen "Notebook Screen"
  Inputdevice "Notebook Keyboard"
  Inputdevice "Microsoft Wireless Notebook Optical Mouse 4000"
EndSection
Section "Module"
  Load "glx"
EndSection
Section "Extensions"
  Option "Composite" "Enable"
EndSection
Microsoft Windows XP with KVM

To install the XP:
$ sudo modprobe kvm-intel

$ sudo chmod 777 /dev/kvm
$ qemu-img create windows.img -f qcow 6G
start install the windows:
$ kvm -no-acpi -m 384 -cdrom /dev/cdrom -boot d windows.img
boot the image:
$ kvm -no-acpi -m 384 -cdrom /dev/cdrom windows.img

To start the XP I just run my startxp.sh script:
startxp.sh

#!/bin/bash


w="windows.img";

kvm=`lsmod | grep kvm_intel`;

if [ -z "$kvm" ]; then
  echo "Load kvm-intel module";
  sudo modprobe kvm-intel;
  sleep 3;
  echo "Chmod /dev/kvm"
  sudo chmod 777 /dev/kvm
fi

echo "Booting Microsoft Windows XP";
kvm -no-acpi -m 384 -cdrom /dev/cdrom $w;

exit 0;
Crypted FS

I use my DataTraveller to store sensitive data like passwords, cookies, etc. I use it with crypted filesystem.

An example howto create crypted filesystem:

BE SURE THAT YOU ARE WORKING ON THE RIGHT PARTITION!

$ sudo dd if=/dev/urandom of=/dev/sdb1 bs=1M
$ sudo modprobe cryptoloop
$ sudo losetup -e aes /dev/loop0 /dev/sdb1
$ sudo mkfs.ext3 /dev/loop0
$ sudo mkdir /mnt/crypto
$ sudo mount -t ext3 /dev/loop0 /mnt/crypto


Here is my bash script which mounts the datatraveller which filesystem is crypted. Th script creates a symlink for cookies:

#!/bin/bash
#
# Name: crypt.sh
# Last modified: 2007 nov 24 11:41
# Author: Lajos Koszti ajnasz@ajnasz.hu
# Licence: General Publick Licence v2

MOUNTDIR="/home/ajnasz/crypto"; # dirname, where want to mount the drive
DRIVE="/dev/sdb1"; # default mountable drive
LOOP_DEV="/dev/loop0"; # loop device path
DESTCOOKIE="/home/ajnasz/.mozilla/firefox/******/cookies.txt"; # firefox cookie path
SRCCOOKIE="$MOUNTDIR/.mozilla/cookies.txt"; # firefox cookie path on the crypted device

# Create a symlink for Firefox cookies
function createCookie {
  echo "Start cookie test";

  # Check, that that the cookie exists
  if [ ! -e $DESTCOOKIE ]; then
    echo "No cookie found, create symlink"

    # if the cookie does not extists, check for the source cookie
    if [ ! -e $SRCCOOKIE ]; then
      echo "Source cookie does not exits";
      exit 3; # exit status 3 eq the src cookie does not exists

    # if the source cookie exists, create a symlink
    else
      ln -s $SRCCOOKIE $DESTCOOKIE;
    fi
    exit;
  # check that the cookie is symlink or not
  elif [ ! -L $DESTCOOKIE ]; then
    echo "The cookie not a symlink, try to replace";

    # if the source cookie does not exists, exit
    if [ ! -e $SRCCOOKIE ]; then
      echo "Source cookie does not exits";
      exit 3; # exit status 3 eq the src cookie does not exists

    # delete the existing cookie and create the symlink
    else
      echo "Cookie exists, but it's not a symlink, so delete cookie";
      rm $DESTCOOKIE;
      echo "Create cookie simlink";
      ln -s $SRCCOOKIE $DESTCOOKIE;
    fi
  fi
}
# get the crypted drive
function getDrive {

  # if the default drive does not exists
  if [ ! -e $DRIVE ]; then
    echo "Get drive";
    for disk in `ls /dev/sd?1`
    do
      if [ "$disk" != "/dev/sda1" ]; then
        DRIVE=$disk;
        echo "Drive: $DRIVE";
        echo "Drive OK? (y|n)";

        # ask that the drive is what you want to mount
        read DRIVEOK;

        # if this is the wanted drive, break the loop
        if [ "$DRIVEOK" == "y" ] || [ "$DRIVEOK" == "i" ] || [ "$DRIVEOK" == "Y" ] || [ "$DRIVEOK" == "I" ]; then
          break;

        # if this is isn't the wanted drive, check the next drive
        elif [ "$DRIVEOK" == "n" ] || [ "$DRIVEOK" == "N" ];then
          DRIVE="";
          continue;

        # if wrong answer typed, exit
        else
          DRIVE="";
          echo "Type y or n";
          echo "Exit";
          exit 1; # exit status 1 eq wrong param
        fi
      fi
      DRIVE="";
    done
  fi

  # if the dirve isn't selected, exit
  if [ -z $DRIVE ]; then
    echo "No drive selected";
    exit 2; # exit status 2 eq no drive
  fi
}

# main
# check for parameter
if [ "start" = "$1" ]; then
  echo "modprobe cryptoloop";
  sudo modprobe cryptoloop;
  sleep 3;
  getDrive;
  echo "losetup";
  sudo losetup -e aes $LOOP_DEV $DRIVE;
  echo "mount"
  sudo mount -t ext3 $LOOP_DEV $MOUNTDIR;
  sleep 1;
  createCookie;
  echo "done";
elif [ "stop" = "$1" ]; then
  sudo umount $MOUNTDIR;
  sudo losetup -d $LOOP_DEV;
  sudo rmmod cryptoloop;
fi;



Usage: ./crypto.sh start, ./crypto.sh stop
/etc/apt/sources.list

#
# deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016.1)]/ gutsy main restricted

# deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016.1)]/ gutsy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://hu.archive.ubuntu.com/ubuntu/ gutsy main restricted
deb-src http://hu.archive.ubuntu.com/ubuntu/ gutsy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://hu.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
deb-src http://hu.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://hu.archive.ubuntu.com/ubuntu/ gutsy universe
deb-src http://hu.archive.ubuntu.com/ubuntu/ gutsy universe
deb http://hu.archive.ubuntu.com/ubuntu/ gutsy-updates universe
deb-src http://hu.archive.ubuntu.com/ubuntu/ gutsy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://hu.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb-src http://hu.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb http://hu.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
deb-src http://hu.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://hu.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
# deb-src http://hu.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
deb http://archive.canonical.com/ubuntu gutsy partner
# deb-src http://archive.canonical.com/ubuntu gutsy partner

deb http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb http://security.ubuntu.com/ubuntu gutsy-security universe
deb-src http://security.ubuntu.com/ubuntu gutsy-security universe
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
deb http://hu.archive.ubuntu.com/ubuntu/ gutsy-proposed restricted main multiverse universe
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse
 
Partitions

$ sudo fdisk -l /dev/sda

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cilinderek of 16065 * 512 = 8225280 bytes
Disk identifier: 0xfa73ad82

  Eszköz Boot      Start         End      Blocks   Id  System
/dev/sda1               1           1        8001   83  Linux
/dev/sda2               2          14      104422+  83  Linux
/dev/sda3              15       14593   117105817+   f  W95 Ext'd (LBA)
/dev/sda5              15        2626    20980858+  83  Linux
/dev/sda6            2627        3279     5245191   83  Linux
/dev/sda7            3280       14412    89425791   83  Linux
/dev/sda8           14413       14593     1453851   82  Linux swap / Solaris

$ cat /etc/fstab
# /etc/fstab: static file system information.
#
#  -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

proc /proc proc defaults 0 0

# Entry for /dev/sda2 :
UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /boot ext3 defaults,errors=remount-ro 0 1

# Entry for /dev/sda5 :
UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx / ext3 defaults,errors=remount-ro 0 1

# Entry for /dev/sda6 :
UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /var/www ext3 defaults 0 2

# Entry for /dev/sda7 :
UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /home ext3 defaults 0 2

# Entry for /dev/sda8 :
UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx none swap sw 0 0

# Entry for /dev/scd0 :
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0

h$ cat /boot/grub/menu.lst
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default        0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout        3

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title        Windows 95/98/NT/2000
# root        (hd0,0)
# makeactive
# chainloader    +1
#
# title        Linux
# root        (hd0,1)
# kernel    /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,1)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=vga=865

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title        Ubuntu 7.10, kernel 2.6.22-14-generic
root        (hd0,1)
kernel        /vmlinuz-2.6.22-14-generic root=UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ro vga=865
initrd        /initrd.img-2.6.22-14-generic
quiet

title        Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root        (hd0,1)
kernel        /vmlinuz-2.6.22-14-generic root=UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ro single
initrd        /initrd.img-2.6.22-14-generic

### END DEBIAN AUTOMAGIC KERNELS LIST

Manual WPA2 Configuration

$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
# iface eth0 inet dhcp

auto wlan0
iface wlan0 inet dhcp
  wpa-driver wext
  wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

Generate a WPA PSK from an ASCII passphrase for a SSID

$ wpa_passphrase YourESSID > /etc/wpa_supplicant/wpa_supplicant.conf
Your password

Edit the
/etc/wpa_supplicant/wpa_supplicant.conf fileoo
$ cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0

eapol_version=1
ap_scan=1
fast_reauth=1

# WPA2
network={
  ssid="YourESSID"
  scan_ssid=1
  proto=WPA2
  key_mgmt=WPA-PSK

  #psk="Your password"
  psk=af48399b01947881d27bb7a7426a1b61dd0928efdda4c3f60ef54e4817bba31b
  priority=5
}

## Single key 128bit WEP
# network={
#   ssid="My-Home"
#   key_mgmt=NONE
#   wep_key0=ABCDEF01234567890123456789
#   wep_tx_keyidx=0
#   priority=1
# }

network={
    ssid=""
    key_mgmt=NONE
    priority=2
}

/etc/default/acpi-support

# Comment the next line to disable ACPI suspend to RAM
ACPI_SLEEP=true

# Comment the next line to disable suspend to disk
# ACPI_HIBERNATE=true

# Change the following to "standby" to use ACPI S1 sleep, rather than S3.
# This will save less power, but may work on more machines
ACPI_SLEEP_MODE=mem

# Add modules to this list to have them removed before suspend and reloaded
# on resume. An example would be MODULES="em8300 yenta_socket"
#
# Note that network cards and USB controllers will automatically be unloaded
# unless they're listed in MODULES_WHITELIST
MODULES="iwl4965 iwlwifi_mac80211 cfg80211"

# Add modules to this list to leave them in the kernel over suspend/resume
MODULES_WHITELIST=""

# Should we save and restore state using the VESA BIOS Extensions?
SAVE_VBE_STATE=false

# The file that we use to save the vbestate
VBESTATE=/var/lib/acpi-support/vbestate

# Should we attempt to warm-boot the video hardware on resume?
POST_VIDEO=false

# Save and restore video state?
# SAVE_VIDEO_PCI_STATE=true

# Should we switch the screen off with DPMS on suspend?
USE_DPMS=true

# Use Radeontool to switch the screen off? Seems to be needed on some machines
# RADEON_LIGHT=true

# Uncomment the next line to switch away from X and back again after resume.
# This is needed for some hardware, but should be unnecessary on most.
# DOUBLE_CONSOLE_SWITCH=true

# Set the following to "platform" if you want to use ACPI to shut down
# your machine on hibernation
HIBERNATE_MODE=platform

# Comment this out to disable screen locking on resume
LOCK_SCREEN=true

# Uncomment this line to have DMA disabled before suspend and reenabled
# afterwards
# DISABLE_DMA=true

# Uncomment this line to attempt to reset the drive on resume. This seems
# to be needed for some Sonys
# RESET_DRIVE=true

# Add services to this list to stop them before suspend and restart them in
# the resume process.
STOP_SERVICES=""

# Restart Infra Red services on resume - off by default as it crashes some
# machines
RESTART_IRDA=false

# Switch to laptop-mode on battery power - off by default as it causes odd
# hangs on some machines
ENABLE_LAPTOP_MODE=false

# Spindown time on battery
SPINDOWN_TIME=12
Videos

Links

Document License

The content on this page is provided by a Google Notebook user, and Google assumes no responsibility for this content.