Today installs an Ubuntu 14.4 All-in-one next, with only the most basic system requirements installed. Even SSH is not installed, the results can be imagined, of course, SSH is not up, only to keep in front of the server to work.
All right, from the start.
A: First put the network configuration, at least also first connected to the network to apt-get it. Because it was often under CentOS, came in and found that the original Ubuntu network configuration is not like CentOS in the/etc/sysconfig/network-script (like this bar, anyway tab can come out) under. Ubuntu put the network configuration file under the/etc/network. The primary configuration file is interface
1,dhcp
Usually in the installation of the automatic configuration of the DHCP, we do not have to toss. If not, simply edit the/etc/network/interfaces file
Catfile More information, see Interfaces (5). # The Loopback Network Interfaceauto loiface Lo inet loopback# The primary network Interfaceauto eth0iface eth0 inet dhcp[email protected ]:
Two main sentences of entry into force:
Auto Eth0iface eth0 inet DHCP
2, configure static IP
Configuring static IP and Configuring dynamic IP is not much, it is also modifying the/etc/network/interfaces file. Just fill in the IP address, subnet mask (netmask), and default gateway.
[Email protected]:~$ cd/etc/Network[email protected]:/etc/network$Catinterfaces# Thisfiledescribes the network interfaces available on your system# and how to activate them. for Moreinformation, see Interfaces (5). # The loopback network Interfaceauto loiface Lo inet loopback# The primary network Interfaceauto eth0#iface eth0 ine T dhcpiface eth0 inet staticaddress192.168.179.133netmask255.255.255.0Gateway192.168.179.2[email protected]:/etc/network$
Then modify the/etc/resolv.conf file (specify DNS)
cat /etc/resolv.conf # Dynamic resolv.conf (5file for glibc Resolver ( 3) generated by resolvconf (8) # --192.168. 179.2Search Localdomain[email protected]:
Restart Network
sudo /etc/init.d/networking Status # # #居然没有status参数 ..... [sudofor/etc/init.d/networking {start|stop|reload|restart|force-reload}
Carefully tried again,/etc/init.d/netwoking Start,stop,restart,reload incredibly did not respond. Can only Ifdown again ifup.
Look for the answer later on.
Two. Change to domestic sources
I am used to the source of 163, and the site can be remembered. Mirrors.163.com/.help thereupon:
sudo Install wget [email protected]: wget http://mirrors.163.com/.help/sources.list.trusty[email protected]:~$ cd/etc/apt/ [email protected]:/etc/apt$ sudocp sources.list sources.list-bak[ Email protected]:/etc/apt$ cd[email protected]:sudocp sources.list.trusty/ Etc/apt/sources.list
[Email protected]:~$ sudo apt-get update
Three. Install the SSH service.
sudo Install Openssh-server
Can ssh connected, you can go back to Windows XX side slowly according to the needs of the configuration. Specific SSH configuration, in the future.
Summary below:
In general, this Ubuntu server basically has nothing to install. Many features are not, just start the operation will be troublesome point. But this is what OPS personnel should do: minimize the installation, what needs to be installed later, keep the system clean and stable, less conflict. There is also a change from CentOS, a few configuration files. However, from the experience of using CentOS, you can know where the configuration file is, and then you can find the required files by pressing the TAB completion.
What to do after Ubuntu 14.04 mini-Installation