Debian
Monday, 21 December 2009 11:58

1 Install CD

  • Plug the cable
  • Do not choose X window
  • Comment out the cd from the /etc/apt/source.list
#deb cdrom:[Debian GNU/Linux 4.0 r5 _Etch_ - Official i386 NETINST Binary-1 20081024-15:53]/ etch contrib main
#deb cdrom:[Debian GNU/Linux 4.0 r5 _Etch_ - Official i386 NETINST Binary-1 20081024-15:53]/ etch contrib main

http://martin.wuertele.net/x40/

2 Wireless card

 

2.1 Install the driver

http://www.sumardi.net/2007/06/21/how-to-install-madwifi-on-debian-40-etch/

First of all, make sure your /etc/apt/source.list doesn't only contain "main" but “main contrib non-free”. And then, update your APT.

  1. Update
    apt-get update
    
  2. Install Build Environment
    apt-get install build-essential module-assistant wireless-tools 
    module-assistant prepare
    
  3. Install the driver
    module-assistant auto-install madwifi-source
    
  4. Load it!
    modprobe ath_pci
    

That’s it! Have fun and happy surfing.

2.2 Automatic script to load wireless when start up

Create link2future.sh:

#!/bin/bash
# Network startup script for wireless "link2future"
ifconfig ath0 up
iwconfig ath0 essid "link2future"
dhclient ath0

Save it to /etc/init.d/ and chage the mode 755 with root.

Then

update-rc.d link2future.sh defaults

http://www.debian-administration.org/articles/28

3 WPA Support

sudo apt-get install wpasupplicant

/etc/wpa_supplicant/wpa_supplicant.conf: Pay attention to the = sign

ctrl_interface=/var/run/wpa_suplicant
network={ 
ssid="Newwork Name"
        key_mgmt=WPA-PSK
        psk="XXXXXXXXXX"
        }
wpa_supplicant -B -i ath0 -c/etc/wpa_supplicant/wpa_supplicant.conf -D wext -dd

4 X system

http://www.debian-administration.org/articles/432

apt-get install xserver-xorg-core xorg xdm

5 Install sudo

apt-get install sudo

edit: /etc/sudoers:

root    ALL=(ALL) ALL
username    ALL=(ALL) NOPASSWD: ALL

6 Sound card

http://newbiedoc.berlios.de/wiki/Sound_in_Debian_GNU/Linux#Install_ALSA_packagesrd

apt-get install alsa-base alsa-utils alsamixergui alsaplayer

Configure:

alsaconf

Add user to audio group:

adduser username audio

7 Video

  • Mplayer -> Preference -> Video -> gl X11(OpenGL)
  • Download the codec
    wget http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
    

    Unpack and move all the files into /usr/lib/win32

8 Install public keys

as root:

# gpg --keyserver hkp://wwwkeys.eu.pgp.net --recv-keys A70DAF536070D3A1
# gpg --armor --export A70DAF536070D3A1 | apt-key add -

Other method:

For opera repository

wget -q http://deb.opera.com/archive.key -O - | sudo apt-key add -

For debian-multimedia.org

wget -q http://debian-multimedia.org/gpgkey.pub -O - | sudo apt-key add -

9 Adobe Reader

http://www.geocities.com/reverendsky/debianlinuxtips.html

deb http://www.debian-multimedia.org etch main
deb http://www.debian-multimedia.org stable main

10 Chinese Support

http://xjqian.wordpress.com/2007/11/13/chinese-fonts-in-debian/

  1. Generate locales
    dpkg-reconfigure locales
    
en_US.ISO-8859-1
en_US.UTF-8
zh_CN.GB2312
zh_CN.UTF-8
zh_CN.GBK
zh_TW.BIG5
zh_TW.UTF-8
  1. Install fonts
    deb http://apt.debian.org.tw/ unstable main/ttf-arphic-newsung
    
    apt-get install ttf-arphic-newsung ttf-arphic-ukai ttf-arphic-uming
    apt-get install ttf-arphic-gbsn00lp ttf-arphic-bkai00mp 
    apt-get ttf-arphic-bsmi00lp ttf-arphic-gkai00mp
    
  2. Scim
    apt-get install scim scim-pinyin  im-switch
    
  3. Input setup
    mkdir ~/.xinput.d/
    
    ln -s /etc/X11/xinit/xinput.d/scim ~/.xinput.d/en_US
    
    im-switch -z en_US -s scim
    

11 Use Scribus to make photo calendar

http://www.scribus.net/?q=debian

deb http://debian.scribus.net/debian/ stable main non-free contrib
deb http://debian.tagancha.org/debian/ stable main non-free contrib

gpg --keyserver hkp://wwwkeys.eu.pgp.net --recv-keys 5BC4CFB8EEF818CF
gpg --armor --export 5BC4CFB8EEF818CF | apt-key add -

apt-get install scribus scribus-ng

12 Change Date and time

date -s 21:01
hwclock --systohc --utc

13 Video files

link downloaded the latest source for mplayer plugins 3.55 and built the plugins.

  1. Download the built plugins from http://mo-de.net/d/mplayerplug-in_3.55.zip
  2. Install mplayer plugins if you have not yet.

a. aptitude install mozilla-mplayer

  1. Uncompress the plugins itheir should be ten files.

Open this folder \usr\lib\mozilla\plugins and cros reference what files are in the compressed file I gave you. If it exists within the \usr\lib\mozilla\plugins Then move them to a different folder named backup.

  1. Place the files from within mplayerplug-in3.55.zip into \usr\lib\mozilla\plugins

[What I Did Wrong Initially]

Initially I would build the plugins then uninstall mozilla-plugins. Mozilla-plugins has dependencies that it installs. I totally did not bother to take that into consideration. Now that you install version 3.4 and replaced the plugins files the dependencies are taken care of and Debian thinks you have 3.4 install but you actually have version 3.55 plugins running the show. You will notice when you type “about-plugins” into the browser windows it will tell you, the plugins are version 3.4. This update works for Realplayer, Apple and Windows Media streams.

You can test the plugins at these locations.

/// How To test plugins // Real Customer Support - RealAudio and RealVideo Test Clips Apple Quicktime Apple - Movie Trailers Windows Media Windows Media test MPEG ftp://ftp.tek.com/tv/test/streams/Element/index.html

////////////////////////

Mostly problem free computing from Lindylex!

14 IPod with GNUPod

From GNUPod page

  1. Install
    apt-get install gnupod-tools
    
  2. Mount Ipod
    modprobe sbp2
    mount /dev/sda2 /mnt/ipod/
    
  3. Initialize
    gnupod_INIT -m /mnt/ipod
    
  4. Add songs
    gnupod_addsong -m /mnt/ipod /home/xshi/file/audio/French/cd4/*
    
  5. Creating playlists
    emacs -nw /mnt/ipod/iPod_Control/.gnupod/GNUtunesDB.xml
    

Then create section:

<playlist name="sweet">
<add album="CD4" artist="French" />
</playlist>
  1. Unplug
    mktunes -m /mnt/ipod
    umount /mnt/ipod
    rmmod sbp2
    

15 Audacity

sudo modprobe snd-pcm-oss
sudo modprobe snd-mixer-oss
sudo modprobe snd-seq-oss

To load automatically modules at boot time, you must append this lines in the file "/etc/modules" or "/etc/modules.conf":

# OSS Support
snd-pcm-oss
snd-mixer-oss
snd-seq -oss

Save and close the file. Reboot the system.

16 Printing

apt-get install cups cupsys-bsd
apt-get install openprinting-ppds
sudo adduser xin lpadmin

Open page http://localhost:631/

Administration -> Add New Printer:

  • Name : N223XRX2125
  • Device : LPD/LPR Host or Printer
  • Device URI : lpd://lns61.lns.cornell.edu/N223XRX2125
  • Make : Generic
  • Model : Generic PostScript Printer (en)

17 Kerbros

apt-get install krb5-user

18 Suspend and Hibernate

http://wiki.debian.org/Suspend

sudo apt-get install gnome-power-manager
sudo adduser xshi powerdev

20 AFS

http://www.debian-administration.org/articles/610

apt-get install openafs-client

Pause here.

Date: 2009-12-21 12:00:08 EST