Tuesday, December 1, 2009

Installing Debian OS

The story is from email Rayn sent to me.

This Article is writen for reffering when reinstall Debian 4.0 etch someday.
Box:
Dell D600

1 Mount File system
/etc/fstab
/dev/hda5 /mnt/d vfat defaults,umask=000,codepage=936,iocharset=cp936 0 0
/dev/hda6 /mnt/e vfat defaults,umask=000,codepage=936,iocharset=cp936 0 0
(ntfs is support after ntfs-3g package installed )

#aptitude install ntfs-3g
( e.g. mount.ntfs-3g /dev/sda1 /mnt/win -o force)

"umask=000″ is usefull when you want comman user have the read/write privilege on
this filesystem

#uname -a
Linux debian 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 GNU/Linux

2, source list

/etc/apt/sources.list
————-
deb http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main contrib
deb http://quozl.netrek.org/pptp/pptpconfig ./

deb http://debian.cn99.com/debian stable main non-free contrib
deb http://debian.cn99.com/debian-non-US stable/non-US main contrib non-free
deb-src http://debian.cn99.com/debian stable main non-free contrib
deb-src http://debian.cn99.com/debian-non-US stable/non-US main contrib non-free

deb http://debian.beryl-project.org/ etch main
deb-src http://debian.beryl-project.org/ etch main
————-

More…

3, something else
apt-get update
apt-get dist-upgrade

4, Locales

locale-gen zh_CN zh_CN.gbk zh_CN.gb2312 zh_CN.utf8

then
Edit /etc/environment

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games"
LANG="zh_CN.gbk"
LANGUAGE="zh_CN:zh"
LC_ALL="zh_CN.gbk"

5, Multi media

sudo apt-get install beep-media-player totem-xine w32codecs gstreamer0.8-plugins krusader
(krusader is File Manager for KDE)

6, use fcitx
apt-get install fcitx
edit /etc/X11/Xsession.d/95im-launch
export XMODIFIERS=@im=fcitx
fcitx&

7, Install Firefox and so on , it depends on GTK compponents
apt-get install vim bzip2 qterm

8, Really good chinese fonts YouYuanTi

0, before use Yuanti: apt-get install xfonts-wqy
1, wget -c http://download.ubuntu.org.cn/software/VeraSansYuanTi.tar.gz
2, tar -xzvf VeraSansYuanTi.tar.gz
3, sudo mv VeraSansYuanTi /usr/share/fonts/
4, sudo cp /etc/fonts/fonts.conf /etc/fonts/fonts.conf.old
5, sudo cp /usr/share/fonts/VeraSansYuanTi/fonts.conf /etc/fonts/

Ctrl+Alt+Breakspace to RESTART X

9, Install Tor and Privoxy

$sudo apt-get install tor(can not find tor in Debian source yet)
$sudo apt-get install privoxy
$sudo gedit /etc/privoxy/config

add this line on the top:

forward-socks4a / localhost:9050 .

Then config the proxy of FireFox
install Google bookmark sync

10, About Thunderbird ,use the mail base under windows vfat system, so thunder must have root privilege
configure thunderbird acount qianych: locate the "Locale Directory" to /mnt/d/mail/LocalFolders
then: sudo thunderbird

11, FireFox Flash Plugin
get new FireFox Flash Plugin 9

12, Cool dropdown console
apt-get install x-dev libx11-dev kdebase-dev
download kuake-0.3.tar.gz (Google it or find)
OR
you can us yakuake
apt-get install yakuake

13, PPTP VPN
sudo apt-get install pptp-linux
add This to /etc/apt/sourses.list
deb http://quozl.netrek.org/pptp/pptpconfig ./
then apt-get update,apt-get install pptconfig
sudo pptpconfig

14,Install Beryl

Reffer http://wiki.beryl-project.org/wiki/Install/Debian
Follow is the steps in my box
1, add items in sources.list
2, atp-get install THESE SOFTWARE
beryl-core
beryl-plugins-data
beryl-plugins
aquamarine
beryl-settings
beryl-manager
beryl
emerald-themes
3,
edit /etc/X11/xorg.conf
add :
—–
Option "XAANoOffscreenPixmaps" "true"# Optional if NVIDIA drivers are used
Option "AddARGBGLXVisuals" "true" # see note below
Option "AllowGLXWithComposite" "true"
—–
inside the Section "Device"
add
—–
Section "Extensions"
Option "Composite" "Enable"
EndSection
—–
in the end of xorg.xonf
4, add these to /usr/bin/beryl-settings
—–
export LC_ALL=zh_CN.utf8
export LC_CTYPE=zh_CN.utf8
export LANG=zh_CN.utf8
—–

15 INSTALL other software of Debian

apt-get install stardict
(stardict is not stardic)
and the dictionary dirctory is /usr/share/stardict/dic

apt-get install linux-headers-2.6.18-4-686
apt-get install alien fakeroot rpm
aptitude install parted qtparted

16 INSTALL openoffice 2.2
download openoffice from http://www.openoffice.org
that's all rpm packages so:
alien -k –scripts *rpm
install jre package first
then
dpkg -i *.deb without openoffice.org-kde*deb
dpkg -i openoffice.org-kde-integration_2.2.0-6_i386.deb

then adjust the chinese display and input in openoffice.
use font repalce option to change display.

17 Install other wonderful software

uswsusp (for suspend system just use s2disk .That's fine)
gimp (like photoshop )
apt-show-versions (check dpkg version , USEfull)
rar , tor (download from tor.eff.org)
scrot (for screen snapshot)
kpowersave(power saving)
ssh

———————-

18 Install Ruby

apt-get install gcc-3.3
apt-get install ruby1.8

apt-get install libgems-ruby1.8 rubygems

moneylinux:~# ruby -v
ruby 1.8.5 (2006-08-25) [i486-linux]

gem install rails -y
apt-get install rails

apt-get install mysql-server-5.0
apt-get install libfcgi-ruby1.8

———————–

19, Install printer CUPS

# apt-get install cupsys foomatic-filters
# apt-get install cupsys-client cupsys-bsd
http://localhost:631
add printer :701 Printer use "HP LaserJet Series PCL 4/5 CUPS v1.2″
———————-
VMware License

9ATFH-YUN2L-20K5J-431TT
98R6J-YRM0K-20L74-433TR
90TDN-YU10Q-22KE0-4C68N
988DM-YUN87-20Q7N-434V0
92W6H-YHHA7-2A2E1-4C6JN
90DF5-YR582-28L5M-496UN
9A8FH-YK583-207GH-4179T
98844-YRJ0P-222GM-416RX
90R6N-YUN8K-28KE4-436AD
92EFJ-YKH82-22K5N-43PC1
Vist http://www.virtualbox.org/ to get latest Virtualbox software

20 ,Debian java chinese fonts setup

Easy Way:
#cd /usr/lib/jvm/java-6-sun/jre/lib/fonts
#mkdir fallback;cd fallback
#cp /some/path/msyh.ttf .
#mkfontscale
#mv font.scale font.dir

OK, note: must use dir name fallback but not others

21, aptitude install resolvconf
After installation of resolvconf ,you can add dns-nameservers to /etc/network/interfaces as below:

iface eth0 inet static
address 192.168.1.3
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 10.0.0.86 200.72.1.5 200.72.1.1

No comments: