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