Realize automatic mounting of Linux image files, build yum warehouse to realize remote desktop win7 system

Realize automatic mounting of Linux image files, build yum warehouse to realize remote desktop win7 system

 

 

blob.png

Environment description:

Linux01 (IP address 192.168.10.10/24) realizes automatic mounting of image files, builds yum warehouse, configures remote desktop function, and can remotely desktop win7 system (IP address 192.168.10.20/24)

 

Automatically mount image files

First open the virtual machine of Linux01 and configure the IP address 192.168.10.10/24

blob.png

After restarting the network card with the service network restart command, use Xshell to connect to the virtual machine for operation

Make sure that the optical drive device of the virtual machine has been connected and the image file has been loaded

blob.png

Enter the df -h command to view the current disk mount status

blob.png

Edit vim /etc/fstab so that the image file can be automatically mounted in the /mnt directory

blob.png

Enter the mount -a command to remount, and then df -h to check the current disk mount status, and find that the /dev/sr0 image file has been automatically mounted

blob.png

Create a yum repository

Enter cd /mnt/Packages, first install the following three dependent installation packages

rpm –ivh libao-0.8.8-7.1.el6.x86_64.rpm

rpm –ivh libsamplerate-0.1.7-2.1.el6.x86_64.rpm

rpm –ivh libsndfile-1.0.20-5.el6.x86_64.rpm

blob.png

Go to cd /etc/yum.repos.d/

Delete the files ending with ".repo" inside rm –rf *.repo

blob.png

Create and edit again, vim abc.repo

blob.png

yum install rdesktop –y run the yum repository to install the rdesktop feature package

blob.png

Open the virtual machine of the win7 system, configure the IP address, and then set the remote settings in the computer properties to allow remote desktop computer connections

blob.png

blob.png

Enter the virtual machine, open the terminal and enter the rdesktop 192.168.10.20 command to remotely connect to the virtual machine of the win7 system

blob.png

The Linux01 remote connection to the desktop win7 system has been completed.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325343912&siteId=291194637