ubuntu server 有关问题

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
the4king
帖子: 66
注册时间: 2009-09-13 20:04

ubuntu server 有关问题

#1

帖子 the4king » 2009-10-26 19:03

我在 虚拟机 里安装了一个 ubuntu server 9.04

我配置了半天 ,貌似让它联网了……


ping www.google.com 它说 不知道这个主机

ping google的IP ,能ping 通 ,是否说明已经连上网呢?


还有 换源 的问题,

我要配置成 cn99 的源

刚才刚照着网上这个输入了一遍……



——————————————————————————————————————
1、先备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup (备份下当前的源列表,有备无患嘛)
中国网管论坛bbs.bitsCN.com
2、修改更新源
sudo gedit /etc/apt/sources.list (打开Ubuntu 8.04源列表文件)
中国网管联盟www_bitscn_com

在最下面加入
deb http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse 网管网bitsCN.com
3、通知 ubuntu 8.40 启用新的更新源
sudo apt-get update

————————————————————————————————————————————


不能这么麻烦吧…… 有没有什么简便的方法?
头像
be00
帖子: 805
注册时间: 2008-07-28 19:51
来自: 长沙
联系:

Re: ubuntu server 有关问题

#2

帖子 be00 » 2009-10-26 19:25

要检查一下DNS的配置,可能不能解析www.google.com的域名,配置文件是/etc/resolv.conf,范例

代码: 全选

nameserver 172.18.2.6
可以让系统自动选择最好的服务器,操作见
Screenshot-8.png
我的乌斑兔儿:http://zhanggang.net/m/b/b1/ubuntu右键选择在新的窗体打开
右边有一只黄手 ----> 或者注册Dropbox中文版感谢我
头像
the4king
帖子: 66
注册时间: 2009-09-13 20:04

Re: ubuntu server 有关问题

#3

帖子 the4king » 2009-10-26 19:28

感谢LS 回复

DNS 的设置 已经做完了


我用的是 ubuntu server

不是 desktop
头像
the4king
帖子: 66
注册时间: 2009-09-13 20:04

Re: ubuntu server 有关问题

#4

帖子 the4king » 2009-10-26 19:36

我想学习一下 linux 服务器的配置

所以在虚拟机里这样弄的:

一个 win xp ,一个 fedora ,一个 ubuntu server 。

都通过网桥的方式 连接物理主机,并且和物理网卡配置在同一网段。

物理网卡IP 为 192.168.137.3

然后在 XP 和 fedora 中 IP 分别设置为 192.168.137.6 192.168.137.7

其他的 netmask, gateway ,DNS ,都一样,

这样 XP 和 fedora 都能上网了……

之后通过 sudo vi /etc/network/interfaces
填写入

address 192.168.137.8
netmask 255.255.255.0
gateway 192.168.137.1
dns-nameserver 202.118.176.2 202.97.224.68

并且在 resolv.conf 中也添加了 DNS 信息

然后 ifconfig eth0 的信息 是这样的

那个 Bcast 是什么意思???


我发现这样设置后 还是没上网……
附件
.png
头像
the4king
帖子: 66
注册时间: 2009-09-13 20:04

Re: ubuntu server 有关问题

#5

帖子 the4king » 2009-10-26 22:28

已经搞定了
回复