Debian Etch AMD64 Install Notes

This is my brief notes on how to install Debian Etch AMD64

Base System

Compile kernel

required packages

build-essential gcc-3.3 fakeroot debhelper libncurses5-dev wget bzip2 udev yaird

build kernel

cd /usr/src
wget ... linux-2.6.20.1.tar.bz2
tar xvvjf linux-2.6.20.1.tar.bz2
ln -s linux-2.6.20.1 linux
cd linux
make menuconfig
	# [Intel P4;CONFIG_SATA_*;...]
make-kpkg clean
sudo fakeroot make-kpkg --revision=whatever kernel_image
cd /usr/src
sudo dpkg -i linux-2.6.20.1-whatever.deb

cd /boot
mkinitrd.yaird -o initrd.img-2.6.20.1 2.6.20.1
update-grub

now check /boot/grub/menu.lst

Ati x300 Driver fglrx

get latest driver

required packages

module-assistant gcc-3.3 ...

compile & install

chmod +x ati-*.bin
[sudo ./ati-*.bin --listpkg]
sudo ./ati-*.bin --buildpkg Debian/etch
cd ..
sudo dpkg fglrx*.deb

cd /usr/src

[tar xvvjf fglrx.tar.bz2]
sudo module-assistant prepare
sudo module-assistant build fglrx
sudo module-assistant install fglrx

for kernel 2.6.22 (up tp 070718), the following patch is need to avoid the “ioctl32.h” problem. (from http://www.phoronix.com/forums/showthread.php?t=2849)

--- firegl_public.c-orig    2007-05-16 14:52:12.000000000 -0500
+++ firegl_public.c    2007-05-16 14:52:48.000000000 -0500
@@ -144,12 +144,14 @@
 #define EXPORT_NO_SYMBOLS
 #endif
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
 #ifdef __x86_64__
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12)
 #include "linux/ioctl32.h"
 #else
 #include "asm/ioctl32.h"
 #endif
+#endif
 
 #ifdef __x86_64__
 #include "asm/compat.h"

Then restart X

modprobe -v fglrx

Chinese Env

apt-get install locales
dpkg-reconfigurer locales
apt-get install msttcorefonts
apt-get install ttf-arphic-*
apt-get install xfonts-intl-chinese*
install wenquanyi
    # optional: [simsun msyh...]
apt-get install scim*

For using zh_CN.UTF-8 as default locale:

touch /etc/X11/XSession.d/95locale-xinput-set

It looks like:

/usr/bin/scim -d    # or fcitx &
XMODIFIERS=@im=scim # or fcitx
GTK_IM_MODULE=scim  # or fcitx
export XMODIFIERS GTK_IM_MODULE
export LANG=zh_CN.UTF-8
export G_FILENAME_ENCODING=@UTF-8

Or choosing C as default locale and do the similar thing.

chroot

see https://alioth.debian.org/docman/view.php/30192/21/debian-amd64-howto.html#id292205

apt-get install ia32-libs # [for 32-bit libs in x86_64 env]
   
apt-get install debootstrap
debootstrap --arch i386 sid /opt/chroot/sid-ia32 http://ftp.debian.org/debian/
sodu chroot /opt/chroot/sid-ia32
apt-get install libx11-6 
apt-get install build-essnitial whatever

edit /etc/fstab

# chroot
/home		/opt/chroot/sid-ia32/home none	bind	0	0
/tmp		/opt/chroot/sid-ia32/tmp  none	bind	0	0
/dev		/opt/chroot/sid-ia32/dev  none	bind	0	0
/proc		/opt/chroot/sid-ia32/proc none	bind	0	0
apt-get install schroot
   # [edit /etc/schroot/schroot.conf]
schroot -c sid -p firefox

MuiltMedia

apt-get install vlc vlc-plugin*
apt-get install mplayer mplayer-plugin* gmplayer
apt-get install win32codec [sid-32 chroot]

download mac-port from http://sourceforge.net/projects/mac-port/

download gstream-monkeyaudio from http://gstreamer.freedesktop.org/src/gst-monkeysaudio/gst-monkeysaudio-0.8.2.tar.gz

download audacious-mac from http://morgoth.free.fr/ubuntu/pool/main/a/audacious-mac/

java

a) get jdk from sun

b) put it to /opt/jdk1.6.x

c) sudo ln -s /opt/jdk1.6.x /opt/jdk1.6

d)

sudo update-alternatives --install /usr/bin/java java /opt/jdk1.6/bin/java 1
sudo update-alternatives --config java

do the similar things for javac, javah, jarsigner

emacs

apt-get install ecb
apt-get install (emacs+mode)
 
sci/cs/linux/etchinstall.txt · Last modified: 2007/07/18 16:28 by flanker27
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki