Day: 07/09/2010

ubuntu安装完成后应该做的工作

一、设置有线网络连接

临时获取DHCP地址可以用如下命令:
$ sudo dhclient eth0

长期网络设置则必须修改interfaces配置文件

  $ sudo gedit /etc/network/interfaces
  # 修改文件/etc/network/interfaces如下文

方式1:网卡通过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(配置环回口)
  auto lo                                       # 开机自动激lo接口
  iface lo inet loopback                        # 配置lo接口为环回口

  # The primary network interface (配置主网络接口)
  auto eth0                                     #开机自动激活eth0接口
  iface eth0 inet dhcp                          #配置eth0接口为DHCP自动获取
  #——————————————————————————-

Continue reading