Use IIS to create an Intranet Ubuntu image in Windows

Source: Internet
Author: User
Tags rsync
A Ubuntu image is made in the school. Unfortunately, all the servers with space are Windows, so I am too lazy to create another Linux server. So I will do it in Windows. You need to enable IIS or FTP on a Windows server. I use IIS. About 296 GB of storage (I synchronized all files, including the source code, versions, and hardware support. The current size is 398504 GB and files). Linux images use rsync, in Windows, cwRs is used.

A Ubuntu image is made in the school. Unfortunately, all the servers with space are Windows, so I am too lazy to create another Linux server. So I will do it in Windows.

Environment required
Windows Server (nonsense), enabling IIS or FTP. I use IIS.
Storage of around 296 GB (I synchronized all files, including the source code, versions, and hardware support. The current size is 398504 GB and files)
Rsync is used for Linux images, so cwRsync is used for Windows.
Configure cwRsync
Run the following code to create a new batch.

Rsync-vzrtopg-progress-delete rsync: // ubuntu.srt.cn/ubuntu// cygdrive/L/mirror/ubuntu/

As you can see, I synchronized the Ubuntu from ubuntu.srt.cn/ubuntuto the actual Ubuntu directory under the Local ldisk.

For the complete domestic image, refer to images. However, USETC will be automatically disconnected after a certain period of time, lupa synchronization will die, and I will use srt to complete it. In fact, there are also many sources such as souhu, but rsync is not supported.

In addition, remember to put the batch processing in the scheduled task.

Configure IIS
This is simple. Just put out the directory of disk l. I opened directory browsing. In addition, a MIME type must be added to IIS. Otherwise, 404 is reported in the. deb file of ubuntu. For details, see here: iis mime type settings.

Client Configuration
Take Ubuntu 9.10 As an example to modify the/etc/apt/source. list file (backup first !)

Deb http://linux.nau.edu.cn/ubuntu/ karmic main restricted universe multiverse
Deb http://linux.nau.edu.cn/ubuntu/ karmic-security main restricted universe multiverse
Deb http://linux.nau.edu.cn/ubuntu/ karmic-updates main restricted universe multiverse
Deb http://linux.nau.edu.cn/ubuntu/ karmic-proposed main restricted universe multiverse
Deb http://linux.nau.edu.cn/ubuntu/ karmic-backports main restricted universe multiverse
Deb-src http://linux.nau.edu.cn/ubuntu/ karmic main restricted universe multiverse
The deb-src http://linux.nau.edu.cn/ubuntu/ karmic-security main restricted universe multiverse
Deb-src http://linux.nau.edu.cn/ubuntu/ karmic-updates main restricted universe multiverse
Deb-src http://linux.nau.edu.cn/ubuntu/ karmic-proposed main restricted universe multiverse
Deb-src Co., http://linux.nau.edu.cn/ubuntu/. karmic-backports main restricted universe multiverse

Then refresh the list to use the new capabilities.

Sudo apt-get update

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.