Debian学习笔记(1),debian学习笔记
Debian学习笔记(1),debian学习笔记
Debian学习笔记(1)
以前在windows下装了虚拟机,然后装了RedHat。前一阵,突然看见了Debian。我就决定开始用Debian,因为在在看来,Debian用上KDE太漂亮了。这里,对自己学习Debian的过程简单记录。就为将来回味做准备吧。
首先得装上它吧。因为对于Debian,刚开始是一点概念都没有。所以,就让一位李同学帮忙弄一下。看他装了一遍过后,因为出现些问题。所以我重装了几次。就这样,还算对整个过程有了较深刻的体会。
其实,Debian的安装是很简单的。一路回车,几乎就能搞定。但在过程中,会配置一下source.list,好像叫做是安装源吧。(管它呢,反正E文是这样说的)。然后就是配置一下网络。对于前者,我选的是cn99,听说这个速度挺快的。对于网络,后面再说。
在安装过程中,让我记忆犹新的有一个问题。就是在通过网络安装一个软件的时候,刚开始总是出现错误。具体是e2fsprogs的一个什么循环(这里记不清楚了,反正挺长的提示)。我是这样解决的。
apt-get clean (remove the files in the apt cache)
apt-get -d install e2fsprogs (download but not install)
dpkg -i --force-all /var/cache/apt/archives/*.deb
(这样安装后,wike不能用)
网上有人建议还有另外的方法,我没有用。这里列举出来
apt-get remove --purge e2fsprongs
然后,要马上,机得马上做
apt-get install e2fsprongs
如果不马上做,内核就没有了。那就安装失败。
看到有人说过,有了网络的Debian是彩色的,没有网络的Debian是灰色的。我觉得说得很贴切。因为Debian的很多操作,特别是软件的安装,几乎都是通过网络完成的。网上的一些高人,连基本系统都是通过网络安装的。
下面就说一下网络。(下面的一些内容是网上找的,这里对作者表示感谢)
Debian的网络的设置都是在/etc/network/interfaces文件中进行的,具体可分为三种不同的方式来配置:DHCP自动获取、静态分配IP地址和PPPoE宽带拨号。具体设置如下:(vi /etc/network/interfaces)
- 通过DHCP自动获取IP地址
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
#
# The loopback network interface(配置环回口)
# 开机自动激lo接口
auto lo
# 配置lo接口为环回口
iface lo inet loopback
#
# The primary network interface (配置主网络接口)
#开机自动激活eth0接口
auto eth0
#配置eth0接口为DHCP自动获取
iface eth0 inet dhcp - 静态分配IP地址(因为我是和其他同学共享宽待上网的,所以以我的设置来说)
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
#
# The loopback network interface(配置环回口)
# 开机自动激lo接口
auto lo
# 配置lo接口为环回口
iface lo inet loopback
#
# The primary network interface (配置主网络接口)
#开机自动激活eth0接口
auto eth0
#配置eth0接口为静态设置IP地址
iface eth0 inet static
address 192.168.0.9
netmask 255.255.255.0
#network 192.168.0.1
#broadcast **************(可以不用,我现在还没有去问为什么可以不用)
gateway 192.168.0.1
# dns-* options are implemented by the resolvconf package, if installed(DNS设置)
dns-nameservers 192.168.0.1
dns-search fireteam.org
这样设置后,还要在/etc/resolv.conf中设置nameserver ***.***.***.***(共享的一个IP地址)
- 用PPPoE宽带拨号配置(我想这样上网,可是到现在还没有弄成功,以后弄好了再说吧)
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
#
# The loopback network interface(配置环回口)
# 开机自动激lo接口
auto lo
# 配置lo接口为环回口
iface lo inet loopback
#
# The primary network interface (配置主网络接口)
#开机自动激活eth0接口
auto eth0
#配置eth0接口为静态设置IP地址
iface eth0 inet static
address 10.16.3.99
netmask 255.255.255.0
network 10.16.3.0
broadcast 10.16.3.255
配置完毕后,重启计算机或网络服务即可将网卡配好。如进行PPPoE宽带拨号,可运行pppoeconf命令进行配置。
网络弄好了,现在就可以给自己的系统加很多很好的东西了。^_^
这些都弄好了,然后该做什么呢?对了,安装X window。
首先,apt-get install kdelibs
apt-get install kdebase
(因为我想安装kde的桌面,前面我已经说了,kde的比gnome的漂亮,个人意见)
然后是,apt-get install x-window-system-core
安装完后,startx试试,应该可以进入x window了。(这里,同许帮我装的时候,删掉了一个文件。/etc/x11/xorg.conf,现在用起来倒不会有什么问题,但是看到相关资料说这是显卡的一些配置信息。汗!)
然后,安装输入法,apt-get install fcitx,这个还是可以用的。
(先写到这里,以后再写吧。)
评论暂时关闭