Realize automatic mounting of Linux image files, build yum warehouse to realize remote desktop win7 system
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
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
Enter the df -h command to view the current disk mount status
Edit vim /etc/fstab so that the image file can be automatically mounted in the /mnt directory
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
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
Go to cd /etc/yum.repos.d/
Delete the files ending with ".repo" inside rm –rf *.repo
Create and edit again, vim abc.repo
yum install rdesktop –y run the yum repository to install the rdesktop feature package
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
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
The Linux01 remote connection to the desktop win7 system has been completed.