Chinaunix首页 | 论坛 | 博客
  • 博客访问: 342145
  • 博文数量: 97
  • 博客积分: 3996
  • 博客等级: 中校
  • 技术积分: 750
  • 用 户 组: 普通用户
  • 注册时间: 2005-05-24 22:27
文章分类

全部博文(97)

文章存档

2012年(1)

2011年(8)

2010年(5)

2008年(2)

2007年(26)

2006年(54)

2005年(1)

我的朋友

分类: LINUX

2011-07-07 00:02:22

1.安装Ubuntu 时出现的Configuring the Apt 82% scanning the mirror

While installing the Ubuntu 8.04 LTS Desktop edition on my VMware, I encounter an halting error which just show progress bar with the message “Configuring the Apt 82% scanning the mirror”.

solutions:I remedy the issue by disabling the virtual network card and it proceed with it installation,that is to say,open the setting item,choose hardware—NetworkAdapter—device status,cancel the connection.

2.Ubuntu root用户登录/切换

打开 系统>系统管理>登录窗口

点“安全”选项页,选择“允许本地管理员登录”。

sudo -i 输入密码登录root账号

可以使用sudo password root命令修改root用户密码

3.查看网关

route -n

4.ip/dns设置

编辑文件/etc/network/interfaces:

sudo vi /etc/network/interfaces

并用下面的行来替换有关eth0的行:# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.3.90
gateway 192.168.3.1
netmask 255.255.255.0
#network 192.168.3.0
#broadcast 192.168.3.255

将上面的ip地址等信息换成你自己就可以了.用下面的命令使网络设置生效:
sudo /etc/init.d/networking restart


设定第二个IP地址(虚拟IP地址)

编辑文件/etc/network/interfaces:

sudo vi /etc/network/interfaces

在该文件中添加如下的行:
auto eth0:1
iface eth0:1 inet static
address 192.168.1.60
netmask 255.255.255.0
network x.x.x.x
broadcast x.x.x.x
gateway x.x.x.x


假设DNS服务器的IP地址是192.168.3.2, 那么/etc/resolv.conf文件的内容应为:

search test.com
nameserver 192.168.3.2



5.启动eth0接口

ifconfig eth0 up

6.VMware设置成桥接模式bridge

 
阅读(1286) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~