Once upon a timeon aThinkpad A31pwolfgang.loeffl[email protected] is the true story of a valiant hero, who sallied forth to do battle withGNU/Debian Lin
62.Preparation Work
3Installation of the Debian Base System3. 1. Partitioning the Hard DiskOne of the biggest questions while installing Linux is: Howshould we partion ou
83.Installation of the Debian Base Systemdue to geometric constraints of the drive.Lastly note: It may be a good idea to reservealarge enough partitio
3. 3. Configuration of the Keyboard 9/dev/hda4 hibernation 577MB 619.32MB A0 IBM Thinkpad HibernationWe use fdisk and repartition into:Fourth prelimina
10 3. Installation of the Debian Base System#> cp /usr/share/keymaps/i386/include/euro.inc.gz .#> mv uk.kmap.gz uk−mod.kmap.gz#> gunzip uk−mo
3. 5. Configuration of LVM 11Kernel Config for LVM support:—— Multi−Device Support (RAID and LVM) ——yes Multiple devices driver support (RAID and LVM)ye
12 3. Installation of the Debian Base System/dev/disk/usr /usr ext3 defaults,ro 02/dev/disk/var /var ext3 defaults,errors=remount−ro 02/dev/disk/tmp /
4Configuration of the Custom Kernel4. 1. Kernel Configuration SummaryEverytime we buy a newlaptop, we are amazed about the lack of useful documentation
14 4. Configuration of the Custom Kernelyes CardBus supportyes System VIPCyes Sysctl supportELF Kernel coreyes Kernel support for ELF binariesmod Kerne
4. 2. VESA Framebuffer 151200 Vertical screen resolution—— Character Devices ——yes Virtual terminalyes Support for console on virtual terminalmod Stan
16 4. Configuration of the Custom KernelKernel configuration for VESA framebuffer:—— Console Drivers ——yes VGA text consoleyes Video mode selection supp
4. 6. Hotplug (Modem, Ethernet, Scanner) 17mod ATI RadeonAt boot time, somebody or something tries to access DRI but does not howtodoso. This produces
18 4. Configuration of the Custom Kernelyes CardBus support—— Character Devices ——mod Standard generic (8250/16550 and compatible UARTs) serial support
4. 9. Ethernet 19/etc/alsa/modutils/0.9:#ALSAalias char−major−116 sndalias snd−card−0 snd−intel8x0#OSS/Freealias char−major−14 soundcorealias sound−sl
20 4. Configuration of the Custom KernelIf we want that the modular ethernet driverisloaded automagically,wehav e to create the file /etc/modutils/eth0a
4. 13. SCSI (DVD/CD-RW, Scanner) 214. 11. BluetoothBluetooth is attached via the Intel 82801CAM (ICH3-M) USB controllers. This setup is supported by B
22 4. Configuration of the Custom KernelUpdate of /etc/lilo.conf:image=/boot/vmlinuzlabel=linuxread−onlyvga=792append="hdc=ide−scsi"The DVD/C
4. 16. Thinkpad Control Tools 23/etc/modutils/lvm:alias block−major−8 off # SCSI disksalias block−major−33 off #3rd IDE controlleralias block−major−34
24 4. Configuration of the Custom Kernel4. 17. Thinkpad ButtonsAnother nice program is tpb (ThinkPad Buttons), which monitors volume, brightness and ot
5Debian and other SoftwarePackages5. 1. Updating DebianKeeping our Debian system up to date is very simple. Weonly need to configure apt for network up
Contents iiiContents1. Once upon a time on a Thinkpad A31p ... 11. 1. Hardware Information ... 11. 2. Unsolved Probl
26 5. Debian and other Software Packages5. 2. Local Debian TreeThe Debian distribution is currently organised along three releses: “stable” (a.k.a. “w
5. 4. Debian Source Packages (Gendroolification ;-) 27The Debian Packages web-page is a good starting point to find all the packages we need (and their
28 5. Debian and other Software PackagesFirst we have toconfigure the system for this kind of “gendroolification”. To doso, we install some additionalap
5. 6. Xi Graphics Accelerated-X Server 29#> mv zlib1g*.deb ../binary−i386/local#> echo "zlib1g optional local" >> /usr/local/deb
30 5. Debian and other Software Packages#> make install#> modprobe xsvcmodprobe barfs an informal message that loading this module will taint th
5. 7. XFree86 4.2.1 Radeon Server 31Removing the XiG server is also simple and easy:Removing the XiG Accelerated-X server:#> cd /usr/local/stow#>
32 5. Debian and other Software PackagesMonitor "TFT UXGA Monitor"DefaultDepth 24SubSection "Display"Depth 24Modes "1600x1200
5. 8. Laptop-Net 33Addition of Intel e100 driverto/etc/default/laptop-net:#MODULE_NAME="eepro100"MODULE_NAME="e100"Addition of Int
34 5. Debian and other Software Packagesif [ −z "$DHCP" ]; thenADDRESS=‘grep "address" ${IFACE} | awk ’{print $2}’‘NETMASK=‘grep &
5. 8. Laptop-Net 35Nowwegotothe rc.d directories and create the newsymlinks by hand.Creating the new startup/shutdown symlinks (example):#> cd /etc
iv Contents5. 9. PCMCIA-CS . ...365. 10. Sub-Pixel Font-Rendering . ...375. 11. Xprint — the X11 print system ...
36 5. Debian and other Software PackagesAll in all, our installation of laptop-net is hideous and slow. But it works.5. 9. PCMCIA-CSAlthough we don’tn
5. 10. Sub-Pixel Font-Rendering 375. 10. Sub-Pixel Font-RenderingSub-Pixel Font-Rendering is a Good Thing™. It’sactually an old idea, whose time has fi
38 5. Debian and other Software Packages#> dpkg−divert −−remove /usr/include/X11/Xft/Xft.h#>#> rm /usr/X11R6/lib/libXrender.so#> rm /usr/X
5. 12. Mozilla 39#> mv init.d/xprint laptop−net/init.d#> rmdir init.d#> cd /usr/local/stow#> ln −s ../packages/xprint .#> stow −v −−tar
40 5. Debian and other Software PackagesMozilla Configuration File ˜/mozconfig:#sh#Build configuration script##See http://www.mozilla.org/build/unix.html
5. 13. tpb (ThinkPad Buttons) 41fiif [ −x $MOZILLA_HOME/bin/mozilla ]; thenexec $MOZILLA_HOME/bin/mozilla "$@"elseecho "$MOZILLA_HOME/bi
42 5. Debian and other Software Packages#> mv tpb tpb.bin#> vi tpb#> cd /usr/local/stow#> ln −s ../packages/tpb−0.4.1 .#> stow −v tpb−0
5. 15. Linux WLAN 43LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATHfiexport LD_LIBRARY_PATHexport −n IA32ROOT; unset IA32ROOT;if [ $# != 0 ]thenexec −a
44 5. Debian and other Software Packages#> depmod −aEdit of /usr/src/modules/linux-wlan-ng-0.1.15/debian/rules:#line 29:#export DH_OPTIONS=−p$(PACK
5. 15. 1. Special Case: The USR-2410 PC Card 45Diverting /etc/pcmcia/wlan-ng:#> dpkg−divert −−rename /etc/pcmcia/wlan−ngNew /etc/pcmcia/wlan-ng:#!/
1Once upon a time on a Thinkpad A31pThis is the true story of a valiant hero, who sallied forth to do battle with GNU/Debian Linux on an IBMThinkpad A
46 5. Debian and other Software Packagesfi;;*)SCHEME=‘cat $SCHEMEFILE | sed "s/−/ /" | awk ’{print $2}’‘SCHEMES=‘grep iface /etc/network/inte
5. 17. CD Recording as non-root User 475. 16. Cisco VPN ClientThere exists a piece of software called vpnclient, which lets us establish a secure, end
48 5. Debian and other Software Packagession in /usr/local/bin will automagically executed, if a non-root user not in the group cdrom types cdrecord a
6Manual System Configuration6. 1. EnvironmentWe find it amazing howbroken the default setup is. Depending on howwelogin, we end up with a completelydiff
50 6. Manual System Configuration/etc/profile:#/etc/profile: system−wide shell profile for#−interactive login bash#−all sh#source the default environmenti
6. 1. Environment 51if [ −f $HOME/.bashrc ]; then.$HOME/.bashrcfi;;*);;esac$HOME/.bashrc:#$HOME/.bashrc: local shell profile for#−interactive non−login
52 6. Manual System Configurationbindkey "\e[2˜" overwrite−mode #Insbindkey "\e[3˜" delete−char #Deletebindkey "\e[4˜" en
6. 2. Network Profile Management 53#start fvwm as window/session managerfvwmNote: Contrary to popular belief, the existence of the environment variable
54 6. Manual System Configuration/etc/network/interfaces:#List of automatically initialised interfaces:auto lo#Definition of the loop−back interface:ifa
6. 2. Network Profile Management 55/usr/local/bin/eth0:#!/bin/shprog=‘basename $0‘test "X$SUPERCMD" = "X$prog" || exec /usr/bin/sup
21.Once upon a time on a Thinkpad A31pVideo Chipset:ATIMobility FireGL 7800 with 64MB DDR RAM and 4xAGP bus — ATI Radeon Mobility M6compatibleAudio Ch
56 6. Manual System Configurationif [ −r "$PATTERNS" ]; thenfor PATTERN in $(cat $PATTERNS); docase $ADDRESS in($PATTERN)PROFILE_NEW=$PROFILE
6. 2. Network Profile Management 57case "$SCRIPT" in(*.sh)/bin/sh ./$SCRIPT stop &> /dev/null;;(*)./$SCRIPT stop &> /dev/null;;
58 6. Manual System ConfigurationDiverting the boot scripts from init:#!/bin/shmkdir /etc/network/init.dPACKAGES="dns−clean fetchmail ippl lprng n
6. 2. Network Profile Management 59/usr/local/packages/bin/vpn-select:#!/bin/shPROFILE_DIR="/etc/network/profiles"PROFILE_STATE_FILE="/va
60 6. Manual System Configuration#Load the current and new profilePROFILE_CUR=‘cat $VPN_STATE_FILE |awk ’{print $3}’‘PROFILE_NEW=‘cat $PROFILE_STATE_FIL
6. 4. Installing the Cyberbit Unicode TrueType Fonts 61these fonts turn out to be somewhat small when displayed at 133 dpi. Scaling bitmapped fonts is
62 6. Manual System ConfigurationWeight = MediumWidth = VariableShape = Serif UprightFoundry = bitstreamPriority = 20X−Foundry = bitstreamX−Family = cy
6. 7. Extending a Logical Volume 636. 6. Three Finger SaluteWe want to be able to shutdown or reboot our machine from the text console by pressing <
2Preparation Work2. 1. Removing the StickersOnce upon a time computers were delivered unadorned. Nowadays you will find anynumber of stupid stickersglu
42.Preparation WorkAfter having booted from the Debian installation CD-ROM and having selected our favourite language as well askeyboard layout, we la
2. 3. To ols for the Creation of the Hibernation File 5We will have toexecute phdisk.exe after we have installed Linux. Therefore we also need some “m
Komentarze do niniejszej Instrukcji