
在执行最小化安装的debian安装完成后虽然处于能用的状态,但要加装一些需要的软件和进行系统设置使得这个系统能更好的发挥作用,更能满足自己的需求。
下文的代码,都是我在学习Linux的过程中从网络上收集到的。感谢将这些代码分享出来的Linux爱好者,这对我这不愿看书的Linux beginner是笔宝贵的财富!
欢迎将此页存为书签:)
以下是配置代码,根据自己的需求进行配置。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
//配置网络 //安装pppoeconf #apt-get install pppoeconf //联网前的准备 #vi /etc/network/interfaces //设置静态ip地址 auto lo iface lo inet loop auto eth0 iface eth0 inet static address 192.168.201.1 netmask 255.255.255.0 network 192.168.201.0 broadcast 192.168.201.255 gateway 192.168.2011.1 mtu 1500 //DHCP自动获得ip地址 auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp //配置联网 #pppoeconf //查看网络是否连接成功 #plog #ping -c 3 www.mitgai.net |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
//apt-spy设置最快源 //先添加一个官方源列表,否则无法安装apt-spy #vi /etc/apt/sources.list //添加 deb http://http.us.debian.org/debian stable main contrib non-free deb-src http://http.us.debian.org/debian stable main contrib non-free #apt-get update #apt-get install apt-spy //备份源列表 #cp -v /etc/apt/sources.list /etc/apt/sources.list.bak #apt-spy update //查看apt-spy的用法 #man apt-spy #apt-spy -d testing -a asia |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
//设置sudo //安装sudo #apt-get install sudo //将我们创建的普通用户加入到sudoers里面(允许使用sudo命令) #chmod +w /etc/sudoers #cat "添加到sudo的用户 ALL=(ALL) ALL" >> /etc/sudoers #chmod 0440 /etc/sudoers //或 #vi /etc/sudoers //找到root ALL=(ALL) ALL //按这个格式在下面加上一条 用户名 ALL=(ALL) ALL |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
//安装基本图形界面 # apt-get install x-window-system-core //启动 # startx //如果不成功,可以用下面的命令重新配置: # dpkg-reconfigure xserver-xorg //安装GNOME桌面环境 //安装核心 # apt-get install gnome-core gdm //安装完整的gnome # apt-get install gnome //安装KDE桌面环境 //安装核心 # apt-get install kde-core kde-i18n-zhcn //安装完整的KDE # apt-get install kde |
1 2 3 4 5 6 7 8 9 |
//允许root用户登录图形界面 #vi /etc/pam.d/gdm3 //把下面这行注释起来(在前面加一个“#”): auth required pam_succeed_if.so user != root quiet_success #vi /etc/gdm3/daemon.conf //在“[security]”下面增加一行: AllowRoot=true |
1 2 3 4 5 6 7 8 9 |
//系统默认从命令行启动 //首先,我们需要安装sysv-rc-conf,这是个强大的系统配置工具: #apt-get update #apt-get install sysv-rc-conf #sysv-rc-conf //找到gdm那一项,将1、2取消 #reboot |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
//常用软件安装 //安装OpenOffice.org #apt-get install openoffice.org-writer openoffice.org-calc openoffice.org-math openoffice.org-impress openoffice.org-gtk openoffice.org-help-en-us //中文界面和中文帮助 #apt-get install openoffice.org-l10n-zh-cn openoffice.org-help-zh-cn //安装中文字体 #apt-get install xfonts-wqy ttf-arphic-uming ttf-freefont //压缩与解压缩 #apt-get install file-roller p7zip-full cabextract //安装视频播放器 #apt-get install mplayer //PDF阅读 #apt-get install evince //图像处理 #apt-get install gimp //网络通讯 #apt-get install pidgin |
1 2 3 4 |
//更新系统 #apt-get update #apt-get upgrade |
So, enjoy IT.
如无注明,均为原创。转载请注明: 转载自MITGAI`S THINKING
本文链接地址: 怎样配置你的 Debian GNU/Linux
本文链接地址: 怎样配置你的 Debian GNU/Linux
本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议进行许可。
如果本文对您生活或工作产生了积极影响,那我非常高兴。
如果您愿意为文章的内容或想法提供支持,欢迎点击下边的捐赠按钮,资助作者创作更多高价值高品质的内容。
如果您愿意为文章的内容或想法提供支持,欢迎点击下边的捐赠按钮,资助作者创作更多高价值高品质的内容。