Linux mounts the ISO on the remote Windows Server, installs the software to the intranet server

Source: Internet
Author: User

Original: http://blog.csdn.net/chagaostu/article/details/45195817

Install software to the intranet server

If you install xxx directly with Yum, you will be notified that you cannot find the source. Company shielding outside the network is annoying ah.

Discover the source on your company's Windows Server,centos-6.5-x86_64-bin-dvd1.iso

The first step is to mount the remote server, using Samba

Mount-t cifs-o username= "user", Password=xxx//xxx. Xx. Xx.xxx/it-resource/linux/os/centos/mnt/smb/cdrom

Note that the [\] of Windows systems is changed to [/]

Go to/mnt/smb/cdrom under View, the various versions of the ISO files are available.

The second step to mount the ISO, do not ask why the two-time mount, the master said only this, I can only believe.

Mount-o Loop/mnt/smb/cdrom/centos-6.5-x86_64-bin-dvd1.iso/mnt/smb/cdrom2

The third step is to set the local Yum source

cd/etc/yum.repos.d/

You'll see 4 repo files

Centos-media.repo is a configuration file for the Yum local source, which modifies the

Find Baseurl=

Add file:///mnt/smb/cdrom2/below (that is, the mount point just now)

Change Enabled=0 to 1

Save

Fourth step, shielding the outside of the Yum source (for our kind of machine not connected to the outside network seems meaningless)

Change the other *.repo to *.repo.bak.

OK, you can install the software with Yum

Linux mounts the ISO on the remote Windows Server, installs the software to the intranet server

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.