1. VI changed Ubuntu7.10 by default. vim-tiny is installed. Vim-tiny has weak functions. Install vim-ful (vim-gnome, which is also said to be okay, but I have never tried it). (I am prompted to put it on a CD ...) 2. Enable the ROOT permission and reset the root password: $ sudopasswdroot # follow the prompts to enter the new password twice and confirm it. 3. Modify the basic configuration and modify the host name.
1. VI Changes
Ubuntu7.10 by default, vim-tiny is installed. Vim-tiny has weak functions. Install vim-ful (vim-gnome, which is also said to be okay, but I have never tried it). (I am prompted to put it on a CD ...)
2. Enable ROOT permission
Reset the root password:
$ Sudo passwd root # Enter the new password twice as prompted and confirm it
3. Modify basic configurations
Modify host name
Vi/etc/hostname
Www
Vi/etc/networks
Www 192.168.0.103
Modify IP Address
Vi/etc/network/interfaces (different from RH9)
DHCP (configuration)
Auto etho
Iface etho inet dhcp
Static IP (configuration)
Suppose you want to assign the IP address 192.168.0.2 to the device eth1, And the mask is 255.255.255.0. The IP address of your default gateway is 192.168.0.1. You can enter a statement similar to the following in/etc/network/interfaces:
Iface eth1 inet static
Address 192.168.0.2
Netmask 255.255.255.0
Gateway 192.168.0.1
Restart the NIC
/Etc/init. d/networking restart
4. In this example, you will need to manually specify your DNS server in/etc/resolv. conf, which looks as follows:
Search mydomain.com
Nameserver 192.168.0.103
Nameserver 202.96.209.20.
When trying to resolve the network name, the search statement adds mydomain.com to the host name query. For example, if your network domain name is mydomain.com and you try to ping the host "mybox", the DNS query will be changed to "mybox.mydomain.com" during resolution ". The nameserver statement specifies the DNS server used to resolve the host name to an IP address. If you use your own name server, enter it here. Otherwise, you will be asked about the Primary and Secondary DNS servers to be used by your Internet service provider and input them to/etc/resolv. conf as shown above. It is possible to configure more interfaces, including dialing PPP interfaces, IPv6 networks, and VPN devices. For more information and support options, see man 5 interfaces. Remember that the/etc/network/interfaces used by the ifup/ifdown script is a more advanced configuration mode than some other Linux releases. Traditional low-level tools such as ifconfig, route, and dhclient are also available for ad hoc configuration.