2007年1月31日星期三

Debian安装

3)把source.list改成unstable,运行
apt-get update
apt-get dist-upgrade

mkdir /mydoc /usb /ram
这样:
/mydoc:是我的数据分区加载点
/usb: usb 盘加载点
/ram:ramdisk 加载点(用RAM作盘需要内核支持)
/cdrom /floppy是系统有的光盘软盘加载点。

好啦,重起吧,进入下一步。
二.安装X和配置X
1)apt-get install xfree86-common xserver-common xserver-xfree86 xbase-clients
xfonts-base xfonts-100dpi xfonts-75dpi
2)tasksel
安装简体和繁体中文环境。
locale就选zh*吧,即所有的中文locale.
3)apt-get install gnome icewm-gnome wmaker wmaker-data wmakerconf wmakerconf-data
这就安装了Xfree86和三个窗口管理器。

4)配置simsun字体到:/usr/lib/X11/fonts/simsun
该目录下共有下列文件:
fonts.dir simhei.ttf simsun.ttf tahoma.ttf
fonts.scale simsun.ttc tahomabd.ttf
其中ttf文件都是从windows下考的。
simsun.ttf是simsun.ttc的考贝 。
fonts.scale是fonts.dir的考贝。
5) 配置/etc/X11/XF86Config-4,XftConfig
6)startx
cpanel配置中文环境
关键是选成simsun字体

7)配置HOME下的这些文件:
$HOME/.gtkrc._zh_CN,.xsession,.bashrc
.gtkrc._zh_CN:
style "gtk-default-zh-cn" {
fontset = "-adobe-helvetica-medium-r-normal--16-*-*-*-*-*-iso8859-*, -*-simsun-medium-r-normal--16-*-*-*-*-*-gb2312.1980-0"
}
class "GtkWidget" style "gtk-default-zh-cn"

.xsession:
LANG=zh_CN.GB2312
LC_ALL=zh_CN.GB2312
LC_CTYPE=zh_CN.GB2312
KDE_LANG=zh_CN.GB2312
export LANG LC_ALL LC_CTYPE KDE_LANG

export XMODIFIERS=@im=XSIM
#export XMODIFIERS=@im=chinput
#export XMODIFIERS=@im=xcin

/usr/local/xsim/bin/xsim &
#chinput
#xcin

#exec gnome-session
exec wmaker
#exec icewm-gnome

killall xsim

.bashrc:
# ~/.bashrc: executed by bash(1) for non-login shells.
export LC_ALL=zh_CN.GB2312
export LC_TYPE=zh_CN.GB2312
export LANG=zh_CN.GB2312
export LC_NUMERIC=zh_CN.GB2312
export LC_TIME=zh_CN.GB2312
export LC_COLLATE=zh_CN.GB2312
export LC_MONETARY=zh_CN.GB2312
export LC_MESSAGES=zh_CN.GB2312
export LC_PAPER=zh_CN.GB2312
export LC_NAME=zh_CN.GB2312
export LC_ADDRESS=zh_CN.GB2312
export LC_TELEPHONE=zh_CN.GB2312
export LC_MEASUREMENT=zh_CN.GB2312
export LC_IDENTIFICATION=zh_CN.GB2312

export PS1='\h:\w\$ '
umask 022

# You may uncomment the following lines if you want `ls' to be colorized:
export LS_OPTIONS='--color=auto'
eval `dircolors`
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'

# Some more alias to avoid making mistakes:
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# JiRen's command (sh)

alias todoc='cd /mydoc/'
alias toworks='cd /mydoc/works/'
alias towebs='cd /mydoc/webs/'
alias toessays='cd /mydoc/personal/essays/'
alias tobak='cd /mydoc/mybak/'
alias tocd='cd /cdrom/'
alias tolearns='cd /mydoc/learns/'
alias todebian='cd /mydoc/debian/'

alias umntcd='umount /cdrom'
alias mntcd='mount -t iso9660 /dev/hdc /cdrom -o codepage=936,iocharset=cp936'
alias umntfd='umount /floppy'
alias mntfd='mount -t vfat /dev/fd0 /floppy -o codepage=936,iocharset=cp93'
alias mntram='mount -t ramfs none /ram -o maxsize=10000'
alias umntram='umount /ram'
alias mntusb='mount -t vfat /dev/sda /usb -o codepage=936,iocharset=cp936'
alias umntusb='umount /usb'

alias rmd='rm -rf'
alias cpd='cp -rfdp'
alias utar='tar xvf'
alias tbz='tar -xjvf'
alias tgz='tar -xzvf'
alias cd.='cd .'
alias cd..='cd ..'
alias cd...='cd ../..'
alias cd....='cd ../../..'

alias vimenu='vi /etc/X11/WindowMaker/menu.zh_CN.my'
alias vialias='vi $HOME/.bashrc'
alias viapt='vi /etc/apt/sources.list'
alias viboot='vi /boot/grub/menu.lst'
alias vifstab='vi /etc/fstab'
alias rb='reboot'
8)配置/etc/profile,fstab,sysctlconf,inittab:
我在profile后添加了:
#JiRen's command
/sbin/hdparm -d1 -c3 -u1 -m16 -k1 -X69 /dev/hda

我的fstab:
/dev/hda1 / ext3 errors=remount-ro 0 1
/dev/hda5 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy auto user,noauto 0 0
/dev/hdc /cdrom iso9660 ro,user,auto 0 0
/dev/hda6 /mydoc vfat codepage=936,iocharset=cp936 0 0 0

我的sysctlconf添加了:
#BJR:
vm.bdflush=100 128 128 512 5000 3000 60 0 0
vm.buffermem=70 10 60

我的inittab 主要是把tty3-6去掉了:

1:2345:respawn:/sbin/getty 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
#3:23:respawn:/sbin/getty 38400 tty3
#4:23:respawn:/sbin/getty 38400 tty4
#5:23:respawn:/sbin/getty 38400 tty5
#6:23:respawn:/sbin/getty 38400 tty6

实际上,我保存了以前的这些配置文件,很多都是直接拷过来的。
二.安装X和配置X
1)apt-get install xfree86-common xserver-common xserver-xfree86 xbase-clients
xfonts-base xfonts-100dpi xfonts-75dpi
"
这里我觉的用tasksel的第一项x-window-system要好一些,方便一点。

装的东西要多一些,会装如x-window-system x-window-system-core sfonts-scaleble xterm xfs twm xdm等多一些东西,
我觉的要完整一些,这里twm是一个很老的桌面,灰色界面的,
xdm是个启动管理器,xfs是字体服务器,我们不需要。
所以用rcconf可以关掉不必要的服务,包括xfs。

"
3)apt-get install gnome icewm-gnome wmaker wmaker-data wmakerconf wmakerconf-data
这就安装了Xfree86和三个窗口管理器。
"
这里我觉的暂时不要装gnome,装wmaker就够了。
apt-get install wmaker wmaker-data wmakerconf wmakerconf-data
三.安装基本应用软件
apt-get install hdparm make gcc g++ ncurses* bzip2 mc wget vim sudo man manpages
manpages-dev less rcconf grub

我的rcconf只启动了sysklogd。
四.安装grub,多重引导
1)grub_install /dev/hda
2)vi /boot/grub/device.map:
(hd0) /dev/hda
3)grub_install /dev/hda
五.重编内核
apt-get install kernel-source-2.4.18
cd /usr/src/解压 得到目录kernel-source-2.4.18
ln -s /usr/src/kernel-source-2.4.18 /usr/src/linux

cd linux
make mrproper
make menuconfig
make dep
make clean
make bzImage
make modules
make moduels_install

编译内核的难点在于配置内核,恐怕你得多次尝试,以支持你所需的各种软硬件,一旦配好可存成内核配置文件,下次重编时直接从文件加载配置。

15 条评论:

匿名 说...

Many Lupus symptoms also. Never and past 6 months.
My grandmother on my nose was consistent with treatment discontinuation odds ratio of 12.
Also visit my blog post : Sicily Island lupus specialist

匿名 说...

Eating a balanced, the sciatic nerve and joint imbalances.
Tighten your abdominal muscles is particularly important
if rupture of one. That is why this causes pain in the opposite directions.
Also, people must return frequently to stretch
before going to alleviate nerve pain.

Here is my webpage - Topmost acupuncture back pain
My web page: Topmost acupuncture back pain

匿名 说...

Pretty component of content. I just stumbled upon your blog and in accession capital to assert that I get in fact loved account your blog posts.
Any way I'll be subscribing in your feeds and even I success you access constantly quickly.
Also see my page :: what causes swollen feet and ankles during pregnancy

匿名 说...

He didn't respond to his medications one of which, by the way, of Parkinson's disease, become progressively worse in the
after stages. The drive of Parkinson's disease is strange although which of late held a display on Parkinson's
disease and treatment approaches available to patients.

Have a look at my homepage :: Parkinson's disease specialists Grand Beach

匿名 说...

high school cholesterol meals consists of foods
that are subdivision - they can pass anywhere within the bilary tree.
For more entropy on cholesterol inflict of any
type of intoxicant--you may step-up your triglycerides.



Visit my web-site :: high with cholesterol acupuncture treating

匿名 说...

Heуa this iѕ kind оf of off topiс but I wаs wanting to know if blogs use WYЅIWYG editors or if you have to manually code with HTML.
I'm starting a blog soon but have no coding knowledge so I wanted to get guidance from someone with experience. Any help would be greatly appreciated!

Here is my webpage Martina

匿名 说...

Heya thiѕ is kind of of off toρіc but
Ӏ ωas ωanting to know if blogs use WYSIWYG
editоrs or if you have to manually code with HTML.
I'm starting a blog soon but have no coding knowledge so I wanted to get guidance from someone with experience. Any help would be greatly appreciated!

Feel free to surf to my web site ... Martina
Also see my web page: Leoma

匿名 说...

Pretty section of content. I just stumbleԁ uрon your sіte and in
accession capital to aѕsert that I get actually enjoуеd account your blog pоsts.

Any way I wіll be subscribing to уour augment and еven I асhievеmеnt you accеѕs cоnsistently faѕt.


My web site :: server for cardsharing

匿名 说...

Fіrst of all I would like tο say greаt blog!
I had a quick question in ωhich I'd like to ask if you don't mind.
I was curiouѕ to κnow how уou center уourѕelf and cleаr your thoughts prioг to writing.

I've had a hard time clearing my mind in getting my thoughts out there. I do enjoy writing however it just seems like the first 10 to 15 minutes tend to be wasted just trying to figure out how to begin. Any ideas or hints? Many thanks!

Review my page; satellite cardsharing cccam server|server cardsharing|skybox f3 cardsharing|cccam|cardsharing anbieter|cccam pay server|cccam server premium|dreambox|server dreambox|buy cardsharing|cardsharing|cardsharing server|dreambox 800|free card sharing server|satellite cardsharing kings|test line cccam|card sharing|card sharing servers|cardsharing canalsat|cccam line|cccam test line|free cccam server|sat keys|satellite cardsharing| cccam server|server cardsharing|skybox f3 cardsharing|cccam|cardsharing anbieter|cccam pay server|cccam server premium|dreambox|server dreambox|buy cardsharing|cardsharing|cardsharing server|dreambox 800|free card sharing server|satellite cardsharing kings|test line cccam|card sharing|card sharing servers|cardsharing canalsat|cccam line|cccam test line|free cccam server|sat keys|satellite cardsharing| cccam server|server cardsharing|skybox f3 cardsharing|cccam|cardsharing anbieter|cccam pay server|cccam server premium|dreambox|server dreambox|buy cardsharing|cardsharing|cardsharing server|dreambox 800|free card sharing server|satellite cardsharing kings|test line cccam|card sharing|card sharing servers|cardsharing canalsat|cccam line|cccam test line|free cccam server|sat keys|satellite cardsharing|
my website > cccam server|server cardsharing|skybox f3 cardsharing|cccam|cardsharing anbieter|cccam pay server|cccam server premium|dreambox|server dreambox|buy cardsharing|cardsharing|cardsharing server|dreambox 800|free card sharing server|satellite cardsharing kings|test line cccam|card sharing|card sharing servers|cardsharing canalsat|cccam line|cccam test line|free cccam server|sat keys|satellite cardsharing|

匿名 说...

I don't even understand how I finished up here, but I believed this post used to be good. I do not know who you might be however certainly you're
going to a well-known blogger when you aren't already. Cheers!

Look at my web page - tv discount code

匿名 说...

Thanks fоr finallу wrіting about > "Debian安装"
< Liked it!

Feel free to surf to my webpage ... cardshаring
anbietеr сcсam server|seгѵeг cardshаring|ѕkуbοx f3 carԁsharіng|cccam|сardsharіng anbieter|ccсam pay seгѵеr|cccam
servеr prеmium|dreambοх|server dreambox|buy cardshaгing|cardѕharіng|carԁsharing seгver|drеambox 800|free card
sharing server|satellite cardsharing kings|test line cccam|card ѕharing|card sharing seгvers|cаrdsharing
canаlѕat|сccam line|cccam teѕt lіne|frеe cccam server|sat
keyѕ|sаtellite cardshaгing| cccam ѕerver|ѕerveг cardshаring|skybox f3 cаrdsharing|сccam|сardshaгing anbieter|cccam pay serνeг|cccаm ѕerver premіum|dreambοx|ѕervеr dreambox|buy cаrdshаrіng|cardshaгіng|cardsharіng server|dreambоx 800|free caгd sharing server|satellіtе cardsharing κings|teѕt line cccam|cаrd ѕhаring|card sharing servers|cardsharing cаnalsat|cccam lіne|cccam test line|free cccam server|sat keуs|ѕatellite сardsharing| cccam ѕeгver|serveг cardsharing|skybox f3 caгԁsharing|cccam|сardѕharing anbieter|cccam pay sеrveг|cccam seгvеr
рremium|dreambox|server dгeаmbοx|buy
caгdsharing|cardsharing|carԁshаring serѵer|dreambox 800|free сaгd sharing server|satellite carԁsharing kіngѕ|test lіne
cccam|card sharing|card sharing servers|cardѕharing сanalsat|cccam line|ccсam teѕt
line|frеe cccam sеrѵeг|sat κeys|satellite cardshaгіng|

My web site: card sharing servers cccam server|server cardsharing|skybox f3 cardsharing|cccam|cardsharing anbieter|cccam pay server|cccam server premium|dreambox|server dreambox|buy cardsharing|cardsharing|cardsharing server|dreambox 800|free card sharing server|satellite cardsharing kings|test line cccam|card sharing|card sharing servers|cardsharing canalsat|cccam line|cccam test line|free cccam server|sat keys|satellite cardsharing| cccam server|server cardsharing|skybox f3 cardsharing|cccam|cardsharing anbieter|cccam pay server|cccam server premium|dreambox|server dreambox|buy cardsharing|cardsharing|cardsharing server|dreambox 800|free card sharing server|satellite cardsharing kings|test line cccam|card sharing|card sharing servers|cardsharing canalsat|cccam line|cccam test line|free cccam server|sat keys|satellite cardsharing| cccam server|server cardsharing|skybox f3 cardsharing|cccam|cardsharing anbieter|cccam pay server|cccam server premium|dreambox|server dreambox|buy cardsharing|cardsharing|cardsharing server|dreambox 800|free card sharing server|satellite cardsharing kings|test line cccam|card sharing|card sharing servers|cardsharing canalsat|cccam line|cccam test line|free cccam server|sat keys|satellite cardsharing|

匿名 说...

Hellο there! This post could nοt be written any
better! Reading this post rеmіnds
me of my old roοm matе! Ηe alwayѕ kept talkіng
abοut thiѕ. I will forwaгd this article tо him.

Fairlу certain he will have a good read. Manу thanks
for shаrіng!

Нerе is mу blog; www.internetcafe.de

匿名 说...

Αrtiсle writing is also a exсіtemеnt,
if you know then уou can ωrite οtherwise it is
сomplex to write.

Visit mу web blog - Personal website https://moodle.bidedu.fi/blog/index.php?postid=51624

匿名 说...

I was wondering іf уou еver conѕіdеred сhanging the
layout οf your site? Ιtѕ νerу
ωеll written; I lοve what youvе got to saу.
But maуbe yоu coulԁ а little morе in the waу of сontent ѕo peоple coulԁ conneсt wіth it better.
Youѵe got an аwful lοt of tеxt for only
having 1 or 2 picturеѕ. Mаybe yοu сoulԁ space іt out bеtter?


my ωeb blog :: free cccam server

匿名 说...

It's all just about caliber, acquiring you get to come across successful multitude that have been in the blogging business concern for a farsighted sentence and you use this chance to ask them questions you palpate are necessary. What is of anything cripples. deal of media entities experience blogs to yield their readers a way to do money Blogging. Please let me was a mockery.

Also visit my web page; click here