deiban 4指南

作者: oslive
来自: Linuxsir.org
提要:
本指南将分5个部分:
1 . 基本系统安装
2 . Xorg安装与声卡驱动安装
2 . gnome 安装与美化
3 . kde 安装与美化
4 . 常用软件的安装
5 . Beryl 安装

声明:本人刚学习debian不久,如有错误,请指正!谢谢
QQ: 502502510
MSN: oslive at msn dot com
mail: oslive at gmial dot com
=============================================================================

基本系统安装

采用硬盘安装的方式,从businesscard CD 开始安装。
如果你需要拨号的话请用networkinstall CD (我的adsl自动拨号的^_^)

准备工作

1 、 安装光盘:http://cdimage.debian.org/cdimage/da...sinesscard.iso
或者http://debian.linux.org.tw/debian-te...sinesscard.iso
2 、 硬盘启动映像:
vmlinuz : http://people.debian.org/~joeyh/d-i/...-media/vmlinuz
initrd : http://people.debian.org/~joeyh/d-i/...edia/initrd.gz

3 、 GRUB DOS : http://sourceforge.net/projects/grub4dos/
将压缩包里面的grldr 和 boot/ 文件夹放到 c:/下面 。
编辑 c:/boot.ini 添加 C:/GRLDR="Start GRUB" 保存。

4 、 在一个fat32分区上面(如 F:/)建立一个boot文件夹,把下载的vmlinuz 和 initrd.gz 放 到里面。把下载的CD放到f:/下面。

5 、 重启电脑,选择GRUB,按C 键进入 GRUB> 状态, 输入 root (hd0, 按下TAB 键,看看你的FAT
分区是哪个,比如我的是 (hd0,4) , 回车。 输入 kernel /boot/vmlinuz 回车 , 输入 initrd /boot/initrd.gz 回车 。 途中是可以用TAB补全的。 (NTFS分区我没试过,你可以试试。)

------------------------------------------------------------------------------------------------------------------------------------------

现在就开始安装了:(注意以下选项)

1 、 开始选择ENGLISH,选中文的话他将自动安装 zhcon 和 unicon,这不是我想要的。

2 、 在国家选项中选择 other中的 asia / china (中国)

3 、 然后是配置IP 地址 ,这个每个人都不同,根据自己的情况来 。

4 、 分区要小心,不要选择 自动,而要选手动,推荐这样分, 100M /boot 2x内存大小 swap 剩下的 /

5 、 安装源自己选,不要选vmmatrix.net 它目前正在维修。

6 、 在tasksel选择里面部要选任何东西。base system也部要选 (^_^ 我有洁癖 !)

到此你已经有一个基本的系统了。下面开始基本配置

1 、 配置你的locale 执行 dpkg-reconfigure locales 选择你要用的locale,比如我选择了 en_US.UTF-8 zh_CN.GB2312 zh_CN.UTF-8 zh_CN.GB18030 zh_CN.GBK ,回车,选择你的系统默认locale 我选择的en_US.UTF-8 因为我觉得linux控制台没必要用中文,还要装个ZHCON,麻烦。

2 、 现在更新下你的源,apt-get update && apt-get upgrade

3 、 现在安装localepurge , apt-get install localepurge 在对话框中选择你要保留使用的locale .默认情况下它已经选好了你现前设置的那些locale,所以直接回车。当然你也可以 dpkg-reconfigure localepurge 进行详细的配置。 现在执行localepurge 这步将清除你用不着的locale,让他们释放你的磁盘空间。以后你不管安装什么软件,它都将自动帮你清除那些没用的locale。
清除完,它会提示你释放了多少磁盘空间。当然你可以配置它让它显示清除了哪些locale。

4 、 安装VIM,它是个好东西。apt-get install vim (可选,主要是为了方便)

5 、 修改 .bashrc ,打开bash_completion,让apt-get install 在ROOT 登录的情况下自动补全,其他用户自动设置好了的,不用修改。你可以先用VI打开 /etc/bash.bashrc ,在最下面用命令模式下的V 再按上下左右键老选择,按y键复制,(默认打开VI就处于命令模式。i a o s键插入,编辑模式,ESC返回,:q! 退出。) 然后 vi ~/.bashrc 按p 键粘贴。最后象这样
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
当然你也可以用nano ,更简单。要复制功能,那么apt-get install gpm 然后 /etc/init.d/gpm start ,现在动下鼠标。是不是在动了,gpm是一个控制台下的鼠标服务。用鼠标左击拖动选中,右键粘贴。

6 、 安装rcconf (服务管理器)。apt-get install rcconf 以后你可以通过rcconf来管理你要启动的服务。

7 、 修改/boot/grub/menu.lst, vi /boot/grub/menu.lst 在kernel /vmlinuz-2.6.18-3-k7 root=/dev/sda8 ro 后面加 vga=791 或者788, 来启动framebuffer ,791是1024X768,788是800X600。 :wq 保存退出。

8 、 现在 reboot 重启。

到此为止,基本系统安装完成!
恭喜你!

================================================================================

安装Xorg服务器与声卡配置(alsa)

1 、 安装xorg , apt-get install xorg (现在你已经可以用tab键来补全了,很方便。)选择你使用的分辨率。

2 、如果你是NVIDIA的显卡。那么你现在可以安装它的驱动。当然你要现确定9746的驱动支持你的显示卡吗 ?

先安装必须的编译环境:apt-get install xserver-xorg-dev pkg-config build-essential linux-header-`uname -r` (注意` 是左面TAB键上面的那个键)

然后wget http://us.download.nvidia.com/XFree8...-9746-pkg1.run

./NVIDIA-Linux-x86-1.0-9746-pkg1.run 一路回车。

如果你是ATI的显示卡

先从ATI的官方网站下载驱动
http://ati.amd.com/support/driver.html

安装编译驱动所需的环境
sudo apt-get update
sudo apt-get install module-assistant build-essential
sudo apt-get install fakeroot dh-make debconf libstdc++5 linux-headers-$(uname -r)

创建安装包
sudo ./ati-driver-installer-8.x.x.run --buildpkg debian/testing

安装这些创建的包
sudo dpkg -i xorg-driver-fglrx_8.x.x-1_i386.deb -f
sudo dpkg -i fglrx-kernel-source_8.x.x-1_i386.deb -f
sudo dpkg -i fglrx-control_8.x.x-1_i386.deb -f

删除旧的源码包
sudo rm /usr/src/fglrx-kernel*.deb

编译并安装驱动模块
sudo module-assistant build fglrx
sudo module-assistant install fglrx
sudo depmod -a

编辑你的/etc/X11/xorg.conf
在 Section "Module" 中加入
Load "fglrx"
Load "dri"
Load "glx"
在Section "Device" 中把驱动换成
Driver "fglrx"

这有篇文章,大家可以参考 http://forum.openrays.org/read-htm-tid-3209.html

如果你是其他显卡,(我也没用过)你可以自己找其他资料,或者暂时用系统自带的驱动。(不知道谁能帮我补全)

3 、 dpkg-reconfigure xserver-xorg 选择你的显卡驱动(nvidia),不清楚的话选vesa。后面是一些简单的键盘阿,鼠标阿配置,可以按默认的,键盘一般是pc105的。

4 、 删除一些字体 apt-get --purge remove xfonts-100dpi xfonts-75dpi xfonts-scalable

5 、 删除不存在的字体路径 vi /etc/X 11/xorg.conf

Section "Files"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection
像这样,其他的删除。

-------------------------------------------------------------------------------------------------------------------------------------------------------

6 、 让alsa 把你的声卡驱动起来。
apt-get install alsa-base alsa-utils
执行 alsaconf 一路回车。 再执行alsa-mixer 设置音量,M键取消静音,ESC 键退出。
保存设置 alsactl store
测试 cat /dev/urandom > /dev/dsp 你将会听到非常好听的声音,恭喜你,你的声卡工作了。
ctrl+c 终止它,当然你喜欢它的话,可以不那么做^_^

到这里,你的X服务器和声卡就安装配置好了。
下面你可以选择你安装Gnome 还是 KDE。

Gnome 桌面篇

1 、 安装hal (硬件抽象层)、pmount (gnome下自动挂载)以实现你的移动设备(usb)自动挂载。
apt-get install hal pmount
它将会自动安装dbus (信息总线)以实现hal与gnome应用程序通信,实现设备自动发现。

2 、 安装gnome
apt-get install gnome-core (如果你需要所有gnome 套件的话 apt-get install gnome 或者 gnome-desktop-environment

4 、 安装gnome下的声音支持。
apt-get install gnome-media gnome-audio esound
esound是gnome下的软件混音器。(安装后在gnome的桌面--首选项-->音效里面选择 启用软件混音器,重启。)

5 、 安装必要的gnome管理工具或程序
apt-get install gksu gnome-utils gnome-system-tools file-roller gconf-editor gnome-system-monitor gnome-volume-manager

其中:
gksu是执行管理任务时 su或者sudo的。 gnome-utils是一些小工具(如:抓屏 printscreen键)
gnome-system-tools是一些管理工具 桌面-->系统管理里面的。
file-roller是归档管理器。
gnome-system-monitor是任务管理器。
gnome-volume-manager是卷管理器。管理本地磁盘的。

如果你喜欢gnome控制中心,那么
apt-get install gnome-control-center

6 、 安装登录管理器。
apt-get install gdm

7 、 把你安装时建立的那个用户加入sudoers
visudo
在 root ALL=(ALL) ALL 下面加入
%adm ALL=(ALL) ALL
然后执行 gpasswd -a username adm
如我的是 gpasswd -a oslive adm

8 、 安装字体,这里我们安装bitstream-vera 加 uming (ubuntu用的)。
当然你也可以安装WQY的点整字体(目前的Debian里的WQY字体是经过压缩的,所以可能会影响系统速度。)

apt-get install ttf-bitstream-vera ttf-arphic-uming

WQY点整字体: apt-get install xfonts-wqy

简单美化

1、 安装主题
apt-get install gnome-themes
如果你喜欢更多主题,apt-get install gnome-themes-extra
2、 安装一个简单的图标,apt-get install tango-icon-theme
Dropline gnome 的这个图标也不错,apt-get install gnome-icon-theme-dlg-neu
你也可以去www.gnome-look.org自己找一个你喜欢的。
3、 安装桌面背景 apt-get install gnome-backgrounds

然后可以到主题里面更改你喜欢的主题了,图标在主题细节里面。
4、我将在附件中上传一个主题,配合tango-icon-theme很好看。

到这里,gnome 安装完毕,你可以选择安装输入法了。

==============================================================================

KDE 桌面篇

1、 apt-get install kde-core (他将自动安装hal、dbus、arts等)

2 、 安装中文支持 apt-get install kde-i18n-zhcn

2 、安装调音器 apt-get install kmix

3 、给你将会用到的gtk程序(如firefox)安装主题,如比较经典的clear-look主题。
apt-get install gtk2-engines-clearlooks gtk-qt-engine
这样在你的KDE控制中心里面将多一项GTK Styles and fonts 选项,可以为GTK程序选择主题和字体。

4 、 安装登录管理器
apt-get install kdm (你也可以用GDM)

5、 安装sudo apt-get install sudo
把你安装时建立的那个用户加入sudoers
visudo
在 root ALL=(ALL) ALL 下面加入
%adm ALL=(ALL) ALL
然后执行 gpasswd -a username adm
如我的是 gpasswd -a oslive adm

6 、 安装字体,这里我们安装bitstream-vera 加 uming (ubuntu用的)。
当然你也可以安装WQY的点整字体(目前的Debian里的WQY字体是经过压缩的,所以可能会影响系统速度。)

apt-get install ttf-bitstream-vera ttf-arphic-uming

WQY点整字体: apt-get install xfonts-wqy

7、dpkg-reconfigure locales 选择默认locale为中文的,如zh_CN.UTF-8。

8、重启后在kde控制中心把字体全部选成bitstream-vera 打开圆整字体边角。

到这里,KDE基本桌面安装完成,你可以去安装输入法了。

输入法

选择1 、 fcitx 小企鹅输入法(强烈建议kde用户使用)skim+scim 可能不太稳定,不过我暂时没发现。

不管你是kde还是gnome 安装fcitx就这样:
apt-get install fcitx im-switch
im-switch -s fcitx -z default

选择2 、 scim 通用的输入法平台
如果你是kde用户
apt-get install scim-pinyin skim (如果要五笔等 apt-get install scim-tables)
然后在KDE菜单里面运行skim,它会提示你做两个设置,其中一个是kconfig选项,还有个我忘了,按提示来。
如果你是gnome用户
apt-get install scim-pinyin im-switch (如果要五笔等 apt-get install scim-tables)
im-switch -s scim -z default

没出错误的话,现在你已经能输入中文了,别忘了用中文回帖。

(可选)优化清理
优化: apt-get install prelink
执行 prelink -a -m
清理 : apt-get clean (清理你apt-get install 所下载的包,在/var/cache/apt/archives/partial下面)

(可选)本地的ntfs fat磁盘自动挂载
编辑 /etc/fstab sudo vi /etc/fstab

/dev/sda1 /media/sda1 ntfs nls=utf8,umask=222,user 0 0
/dev/sda2 /media/sda2 ntfs nls=utf8,umask=222,user 0 0
/dev/sda3 /media/sda3 ntfs nls=utf8,umask=222,user 0 0
/dev/sda5 /media/sda5 vfat utf8,umask=000,user 0 0

象上面这样加
如我的sata 的c:/ 是ntfs 那么就这样
/dev/sda1 /media/sda1 ntfs nls=utf8,umask=222,user 0 0

我的sata 的f:/是fat32 那么就这样
/dev/sda5 /media/sda5 vfat utf8,umask=000,user 0 0

保存

建立挂载点 mkdir /media/sda1 (- 5) 你有几个建立几个
测试 (这很重要!)
mount /dev/sda1
mount /dev/sda2
.........
每个都测试下!
少数常见应用程序安装

1、上网浏览 iceweasel (就是firefox) 版本2.0.0.1 KDE 的 Konqueror
sudo apt-get install iceweasel iceweasel-l10n-zh-cn

安装flash插件:
先下载9,0,31,0稳定版
http://www.adobe.com/shockwave/downl...ShockwaveFlash
tar zxvf install_flash_player_9_linux.tar.gz
cd install_flash_player_9_linux
sudo ./flashplayer-installer
安装路径填写/usr/lib/iceweasel而不是/usr/lib/mozilla
install another时选no

让Konqueror 调用 这个插件。
打开配置konqueror选项,在插件里面新建 /usr/lib/iceweasel/plugins
扫描,确定!

2、 电子邮件
看你自己喜欢什么?
icedove? (thunderbird) sudo apt-get install icedove icedove-locale-zh-cn
Kmail? apt-get install kmail
..................

3、电子书pdf
evince? sudo apt-get install evince (gnome 下常用的)
kpdf? sudo apt-get install kpdf (kde 下常用)

apt-get install acroread 

4、即时消息
gnome中 gaim搞定 sudo apt-get install gaim
kde中 kopete + eva
sudo apt-get install kopete qca-tls
安装eva要先添加源 deb http://planet.time.net.my/TechnologyPark/evadeb ./
sudo apt-get install eva
你要是嫌慢的话,我这有个暂时的解决方案。
wget http://www.hppp.cn/pub/eva_0.4.1+cvs20060908-1_i386.deb
dpkg -i eva_0.4.1+cvs20060908-1_i386.deb
apt-get -f install
eva真好用,能传文件,表情,截图^_^

5、MP3+WMA...............
GNOME中 sudo apt-get install rhythmbox gstreamer0.10-ffmpeg
kde中 sudo apt-get install amarok

6、电影 DVD+VCD+RM............
首先添加debian-multimedia的源,这里提供一个国内的,电信的ADSL下载很快。
#testing: (etch)
deb http://update.inlsd.org/debian-multimedia testing main
deb-src http://update.inlsd.org/debian-multimedia testing main

#unstable: (sid)
deb http://update.inlsd.org/debian-multimedia unstable main
deb-src http://update.inlsd.org/debian-multimedia unstable main

导入公钥 gpg --keyserver hkp://wwwkeys.eu.pgp.net --recv-keys 1F41B907
gpg --armor --export 1F41B907 | sudo apt-key add -

apt-get install mplayer w32codecs libdvdcss
去http://www.mplayerhq.hu下载个皮肤。
推荐PowerPlayer wget http://www3.mplayerhq.hu/MPlayer/ski...er-1.1.tar.bz2
tar jxvf PowerPlayer-1.1.tar.bz2 (不能解压的话sudo apt-get install bzip2)
sudo cp -R PowerPlayer/ /usr/share/mplayer/skins/

设置
打开mplayer 选择这个皮肤。video 里面选xv,subtitles & OSD 里面 Encoding 选cp936,font 填/usr/share/fonts/truetype/arphic/uming.ttf

mplayer没什么好说的,棒就一个字,我只说一次。
结合firefox的MediaPlayerConnectivity 和MediaWrap 扩展能很好的播放在线电影。
MediaPlayerConnectivity http://addons.mozine.org/firefox/23/
MediaWrap http://addons.mozine.org/firefox/116/

但是mplayer在播放在线电影的时候可能提示你 Couldn't resolve name for AF_INET6: ................
那么 sudo vi /etc/mplayer/mplayer.conf
在里面加入
# Disable IPV6
prefer-ipv4 = yes
来禁用ipV6。

7、 下载,BT.............
gnome下 d4x sudo apt-get install d4x
kde下 kget sudo apt-get install kget

firefox 的下载扩展DownThemAll!,很好用。 http://addons.mozine.org/firefox/89/

电骡: sudo apt-get install amule
BT(KDE) sudo apt-get install ktorrent
gnome中azureus sudo apt-get install azureus

=================================================================================

3D桌面beryl安装

前提,你必须已经安装好显卡驱动。


安装步骤
1)确认是否安装了xcomposite library
# apt-get install libxcomposite1

2)确认在/etc/X11/xorg.conf文件的末尾是否有这样的配置

Section "Extensions"
Option "Composite" "Enable"
EndSection



3)添加 beryl官方的源的gpg-key

wget -O - http://debian.beryl-project.org/root@lupine.me.uk.gpg | apt-key add -


或者

wget http://debian.beryl-project.org/root@lupine.me.uk.gpg -O- | apt-key add -




4)添加源到/etc/apt/sources.list

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



5)更新源
#apt-get update

6)安装
# apt-get install emerald-themes
会自动满足依赖关系
不放心的话,用这个


# apt-get install beryl beryl-core beryl-dev /
beryl-manager beryl-plugins beryl-plugins-data /
beryl-settings emerald emerald-themes


sudo apt-get install beryl emerald-themes (如果你是KDE用户可以安装aquamarine窗口管理器,sudo apt-get install aquamarine)

在菜单中开始beryl-manager。



install build-essential


Install Beryl on Debian

From Beryl Wiki

Jump to: navigation, search

Contents

[hide]
<script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
[ edit]

Beryl, with or without AIGLX



[ edit]

Install Beryl in just a few easy steps for Debian Etch

  • Install the libxcomposite1 and mesa-utils packages from apt.

  # apt-get install libxcomposite1 mesa-utils

 

  • Make sure these parameters are present at the end of /etc/X11/xorg.conf

Section "Extensions"

   Option "Composite" "Enable"

EndSection

  • Add the following to your Device section in /etc/X11/xorg.conf if you wish to have window decorations.
Option "AddARGBGLXVisuals"


  • Add the gpg key :

wget -O - http://debian.beryl-project.org/root@lupine.me.uk.gpg | sudo apt-key add -

  • Edit your /etc/apt/sources.list file

Packages are available from debian.beryl-project.org. To enable this repository, add the following two lines to your /etc/apt/sources.list:


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

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


Then run:

  # apt-get update

 

Notice this is for Etch and not the "testing" release. Now that Etch is the Debian stable release, Lenny is the new Testing version. Please be sure you have etch named in your sources.list file and not testing.

  • Download and install the packages:

  # apt-get install beryl beryl-core beryl-dev /
beryl-manager beryl-plugins beryl-plugins-data /
beryl-settings emerald emerald-themes

Emerald is the default window manager for Gnome and can also be used with KDE. It is included in the above to provide a simple cut-and-paste one line install.


For KDE users you can use the new aquamarine window decorator:

# apt-get install aquamarine

(note: apt-cache search aquamarine returns zero packages currently)



[ edit]

Debian Unstable distribution

As of January 11th, 2007 beryl has been submitted for upload to Debian unstable. This will take a week to appear on the mirrors and will contain the beryl 0.1.4 release ONLY.


Unsupported repository information



(This is an Ubuntu repository. Download them manually, then use dpkg -i to install. )


  • For amd64 architecture you can use:

deb http://boisson.homeip.net/amd64/ beryl ./


  • Another (faster if you are in the EU) repository for amd64 architecture is:

deb http://franboisson.free.fr/beryl/ ./


Or alternatively, grab the packages for the official Debian unstable and install in the below order (use "dpkg -i").

beryl-core
beryl-plugins-data
beryl-plugins
emerald and or aquamarine
beryl-settings
beryl-manager
beryl
emerald
emerald-themes



[ edit]

Compiling Beryl for other non-Debian distributions

[ edit]

Requirements

Before starting, please read the spec files in trunk/distro-specific-build-files directory.

Example beryl-core.spec:

BuildRequires: X11-devel >= 1.0.0
BuildRequires: x11-util-macros >= 1.0.1
BuildRequires: x11-proto-devel
BuildRequires: libpng-devel
BuildRequires: libwnck-devel
BuildRequires: libgnome-window-settings-devel
BuildRequires: gnome-desktop-devel
BuildRequires: libxcomposite-devel
BuildRequires: libxdamage-devel
BuildRequires: intltool


[ edit]

Building

Example for beryl-core:

In trunk directory:

cd /trunk
cp -r distro-specific-build-files/beryl-core/debian/ beryl-core/
cd beryl-core/
chmod +x autogen.sh
chmod +x debian/rules
./autogen.sh --prefix=/usr
dpkg-buildpackage -rfakeroot

 

When the above is complete, you will have the beryl-core and beryl-core-dev debian packages. Install them with dpkg -i.

The other packages listed above depend on beryl-core and beryl-core-dev. Repeat the above process for them.

Example

....
BuildRequires: beryl-core-devel
[ edit]

Other Notes

  • Install nvidia beta drivers. Note that you need XGL, your session runs and it executes beryl-manage.
  • If libtool is not installed, autoconf might complaint.
  • There is an alternative script in python to automate the build. Start with a fresh svn checkout, change to the beryl directory and execute the script. In addition to build automation, this will attempt to correct for bug #1261.
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值