This article takes the Ubuntu-12.04.1 server version as an example, ISO version: ubuntu-12.04.1-server-i386.iso1. the default running level of the running level server version is 2, but there is no inittab file in the/etc directory. We can create one manually, and Ubuntu also recognizes this file. Vim/etc/inittabid: 3: initdefault: restart to enter Level 3 2
This article takes the Ubuntu-12.04.1 server version as an example, ISO version: ubuntu-12.04.1-server-i386.iso
1. Run level
The default running level of the server version is 2, but there is no inittab file in the/etc directory. We can create one manually. Ubuntu also recognizes this file.
Vim/etc/inittab
Id: 3: initdefault:
Restart to enter 3 levels
2. Local ISO software source
The Ubuntu software source file is/etc/apt/sources. list. We can back up the file and directly execute the mv command, so that there is no sources. list file. The following is an ISO image mounted. Generally, if a DVD is attached, it will be automatically mounted. You can also manually mount it to/media/cdcrom.
Mount/dev/cdrom/media/cdrom
Add software source:
Apt-cdrom-m-d =/media/cdrom add
We can view the following information:
Now the file is automatically generated and added after we add the local source.
Run now
Apt-get update
Then you can use apt-get install to install the software.
Apt-get install openssh-server
Summary:
The reason for this is that sometimes the network environment of the data center or our local or virtual machine is limited, we can use the local ISO software source to solve many problems.