Install ubuntu in visual box. The problem is summarized in Chinese when installing Linux Ubuntu Server. After installation, many commands are displayed with garbled characters, now, you only need to switch to "en_US" and display it in English, which is better than garbled characters. sudo vim/var/lib/locales/supported. d/local change to en_US.UTF-8 UTF-8frank @ ubuntu-server :~ $ Sudo vim/etc/default/locale change the following content to LANG = "zh_CN.UTF-8" LANGUAGE = "zh_CN: zh" to: LANG = "en_US.UTF-8" LANGUAGE = "en_US: en "there are many lines of text below, which can be set as needed. I replaced all "zh_CN" with "en_US ". Then the date and cal commands are used to show that English is not messy. Frank @ ubuntu-server :~ $ Sudo locale-gen Generating locales... en_US.UTF-8... done zh_CN.UTF-8... up to-date zh_HK.UTF-8... up to-date zh_SG.UTF-8... up to-date zh_TW.UTF-8... up-to-dateGeneration complete. remember that reboot installed Ubuntu today, but found that the Internet is not available, and began to troubleshoot: 1. First, determine whether the network connection is correct, check whether the network cable used works normally. 2. Check whether the network card works properly. The detection method is as follows: a. ping 127.0.0.1b, ping static gateway address c, ping Host Name (hostname can be seen) 3. Check whether the NIC address is configured correctly (ifconfig command to view the NIC information of the local host, compares with DNS, Default getway, and Sever addresses to check whether the NIC address is correct. Indeed) My device has a problem in the third aspect. Then, modify the NIC configuration information and run the following command: (of course, you can use the graphic window. I only use it to learn about Linux) 1. Use commands to set the IP address of ubuntu 1. modify the configuration file blacklist. conf disable IPV6: sudo vi/etc/modprobe. d/blacklist. conf2. add blacklist ipv6 at the end of the document and view the Modification result: cat/etc/modprobe. d/blacklist. conf3. set the IP address (set the IP address and subnet mask of the network adapter eth0) sudo ifconfig eth0 192.168.2.1 netmask 255.255.255.04. set the gateway sudo route add default gw 192.168.2.2545. set DNS modification/etc/resolv. conf, add the nameserver DNS address 1 and nam Eserver DNS address 2 is complete. 6. restart the network service (if not, restart ubuntu: sudo reboot): sudo/etc/init. d/networking restart7. view the current IP Address: ifconfig 2. directly modify the Ubuntu Linux configuration file. The network Ubuntu Linux configuration file is: after/etc/network/interfaces is enabled, you can set DHCP or manually set static IP addresses. In front of auto eth0, enable automatic Nic mounting. 1. configure the NIC in DHCP mode to edit the file/etc/network/interfaces: sudo vi/etc/network/interfaces and replace the eth0 row with the following line: # The primary network interface-use DHCP to find our addressauto eth0iface eth0 inet dhcp use The following command to make The network settings take effect: sudo/etc/init. d/networking restart can also directly enter the following command under the command line to obtain the address sudo dhclient eth02. configure the static IP address for the NIC to edit the file/etc/network/interfaces: sudo vi/etc/network/interfaces Replace The eth0 row with The following row: # The primary network interfaceauto eth 0 iface eth0 inet staticaddress 192.168.2.1gateway 192.168.2.254netmask 255.255.255.255.0 # network 192.168.2.0 # broadcast 192.168.2.255 replace the above IP address and other information with your own. run the following command to make the network settings take effect: sudo/etc/init. d/networking restart3. set the second IP address (virtual IP address). edit the file/etc/network/interfaces: sudo vi/etc/network/interfaces and add the following lines to the file: auto eth0: 1 iface eth0: 1 inet staticaddress x. x. x. xnetmask x. x. x. xnetwork x. x. x. xbroadcast x. x. x. xgateway x. x. x. X fill in all information such as address, netmask, network, broadcast, and gateways according to your situation: Use the following command to make the network settings take effect: sudo/etc/init. d/networking restart4. set Host Name (hostname) use the following command to view the Host Name of the current host: sudo/bin/hostname use the following command to set the Host Name of the current host: when the sudo/bin/hostname newname system is started, it reads the host name from/etc/hostname. 5. Configure DNS in Ubuntu Linux. First, you can add some IP addresses corresponding to these host names to/etc/hosts. This is a simple static query on the local machine. To access the DNS server for query, you need to set/etc/resolv. conf file. If the IP address of the DNS server is 192.168.2.2,/etc/resolv. the content of the conf file should be: search chotim. comnameserver 192.168.2.26. manually restart the network service: sudo/etc/init. d/networking restart of course, ubuntu has a graphical interface, so the above settings on some addresses can also be completed by setting like windows, find the corresponding configuration options under System-> Preference in the upper part of the window. In addition, it is inconvenient to modify the vi command when you use the command line to modify the configuration file, therefore, you can select gedit to edit the configuration file.