Ubuntu running level and local ISO software source

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.