Build Local Area Network Ubuntu Software Package source server

Source: Internet
Author: User
Recently, several colleagues have encountered various problems when installing Ubuntu11.0464. It is found that Ubuntu11.04 is not supported on all major backup storages. However, due to work requirements, many computers in the company still need to install the Ubuntu11.0464-bit version. As a result, we have built Ubuntu11.04-64Bit and Ubuntu12.04-64Bit source servers for internal use. The following describes how to build the SDK for your reference. Apt-ge

Recently, several colleagues have encountered various problems when installing Ubuntu 11.04 64-bit. It is found that Ubuntu11.04 is not supported on all major backup storages. However, due to work requirements, many computers in the company still need to install Ubuntu11.04 64-bit. As a result, we have built Ubuntu11.04-64Bit and Ubuntu12.04-64Bit source servers for internal use. The following describes how to build the SDK for your reference.

When apt-get or the new software is installed, the downloaded deb files will be stored under/var/cache/apt/archives/. In order to reinstall or use the software for others in the future, especially when there is no network, these deb packages can also have another, that is, they can be used to create the cost ground.

Therefore, the local source created using this method is called the source of some software packages. The following describes feasible and practical steps for local ground source production:

I. Production of local sources of some software packages

1.1 install required software packages

# Sudo apt-get install nautilus-open-terminal dpkg-dev

1.2 package deb Software Package

Copy all the deb files under/var/cache/apt/archives/to the directory (cp command and graphic interface are all correct). We recommend that you run the following command before copying the files:

# Sudo apt-get autoclean

For example, copy to the Natty directory under/home/packages/:/home/packages/Natty

1.3 enter the upper-level directory of the specified directory in the terminal

After copying the file, go to the top-level directory of the newly created directory Natty in the terminal, that is,/home/packages.

1.4 generate a software package dependency File

Run the following command on the terminal:

# Sudo dpkg-scanpackages Natty/dev/null | gzip> Natty/Packages.gz

At this point, the software package for local ground source has been prepared. The following describes how to use the software package.

Ii. Use of local sources

The use of local ground source can be divided into two methods. If you only back up your own machine software package and reinstall the system, you can refer to the construction of the 2.1 local source server; if you want to share it with others on the LAN, or even other people on the Internet, you can refer to the local ground source server in LAN 2.2.

2.1 local source server Construction

2.1.1 Add the address to the update source list file

# Sudo gedit/etc/apt/sources. list

Put deb file: // home/packages/Natty/

Note that there is a slash at the end of Natty and a space at the front.

Add it to sources. list.

2.1.2 update source information and install software

Open the terminal and enter

# Sudo apt-get update

To update the local package list

Then you can use the apt-get command to install the software package contained in the local source or directly execute it like me.

# Sudo apt-get dist-upgrade

Command to update the system. If you are more lazy, enter the following command:

# Sudo apt-get update; sudo apt-get dist-upgrade

.

Then you can install the required software.

2.2 local ground source server construction in LAN

2.2.1 install and configure the apache2 server

N has been introduced on the Internet, so I will not introduce it here. Just pay attention to it. When configuring apache2, do not configure the port that may be used by other network applications.

2.2.2 configure the Ubuntu source on the server

If you have installed apache2, you can also open this part of the source to the outside, the method is as follows:

Create a soft connection:

# Sudo ln-s/home/packages/Natty // var/www/ubuntu-local

Add the source address to the system source list file

# Sudo gedit/etc/apt/sources. list

Add deb http: // 127.0.0.1/ubuntu-local/to sources. list

Note that there is a slash after the space

Change 127.0.0.1 to your IP address or domain name

Note: If the software can be updated but cannot be installed, an error occurred while adding the source address. You can change it to the following method:

Deb http: // 192.168.1.20./ ubuntu-local/should be added to the LAN/

Add a space after the address

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.