Build Ubuntu12.04 local source to install OpenStack on the Intranet. 1. install the apt-mirror tool sudoapt-getinstallapt-mirror or download the source code for compilation. However, we recommend that you install apt. the method is self-explored. 2. configure the apt-mirror tool gksugedit/etc/apt/mirrors. it's okay to clear the original content in list. Enter the following content: set
Build a Ubuntu 12.04 local source to install OpenStack on the Intranet.
1. Install apt-mirror.
Sudo apt-get install apt-mirror
Or download the source code compilation, but we recommend apt installation.
2. Configure the apt-mirror Tool
Gksu gedit/etc/apt/mirrors. list
It's okay to clear the original content. Enter the following content:
Set nthreads 20
Set _ tilde 0
#
############ End config ##############
Deb http://mirrors.sohu.com/ubuntu/ lucid main universe restricted multiverse
Deb http://mirrors.sohu.com/ubuntu/ lucid-security universe main multiverse restricted
Deb http://mirrors.sohu.com/ubuntu/ lucid-updates universe main multiverse restricted
Deb http://mirrors.sohu.com/ubuntu/: lucid-proposed universe main multiverse restricted
Deb http://mirrors.sohu.com/ubuntu/ lucid-backports universe main multiverse restricted
Clean http://mirrors.sohu.com/ubuntu
The address rules here are the same as those in sources. list. sohu images are used, and the content is full. They are synchronized with the official website.
3. Start production
Sudo apt-mirror
It will probably display
Downloading 80 index files using 20 threads...
Begin time: Fri Mar 30 21:47:40 2012
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Fri Mar 30 21:47:57 2012
Proceed indexes: [PPPPP]
44 GiB will be downloaded into archive.
Downloading 4388 archive files using 20 threads...
After the preparation is complete, a message is displayed, indicating that the production process can be interrupted. Then, you can run apt-mirror again to continue the previous work. You can update the update every time.
This process varies depending on the network speed. If the network speed is fast, it can be completed in one night.
4. Update as a local source
After creation, the address stored locally is:/Var/spool/apt-mirror/mirrors.sohu.com/ubuntu
Edit sources. list
Gksu gedit/ets/apt/sources. list
Delete original content and write:
Deb file: // var/spool/apt-mirror/mirrors.sohu.com/ubuntu/ lucid main universe restricted multiverse
Deb file: // var/spool/apt-mirror/mirrors.sohu.com/ubuntu/ lucid-security universe main multiverse restricted
Deb file: // var/spool/apt-mirror/mirrors.sohu.com/ubuntu/ lucid-updates universe main multiverse restricted
Deb file: // var/spool/apt-mirror/mirrors.sohu.com/ubuntu/ lucid-proposed universe main multiverse restricted
Deb file: // var/spool/apt-mirror/mirrors.sohu.com/ubuntu/ lucid-backports universe main multiverse restricted
5. install the software package locally
Sudo apt-get update
Sudo apt-get install xxxx
6. Create a LAN Source
Install apaches
/Var/spool/apt-mirror/mirrors.sohu.com/ubuntu/ as webroot
The IP address is the IP address of the LAN.
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2