Ching-Chuan Chen's Blogger

Statistics, Machine Learning and Programming

0%

Installation of VMs

這篇主要是紀錄在Windows安裝VM的一些紀錄

紀錄安裝ssh, sshpass以及VMware-tools

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
ssh-keygen -t rsa -b 2048 -f ~/.ssh/id_rsa -q -N ""
echo cat ~/.ssh/id_rsa.pub

yum install -y sshpass
for i in {121..123}; do
ssh-keyscan 192.168.1.$i >> ~/.ssh/known_hosts
sshpass -p XXXXXXXX ssh-copy-id root@192.168.1.$i
done

tee -a /etc/hosts << EOF
192.168.1.121 jamalvm11
192.168.1.122 jamalvm12
192.168.1.123 jamalvm13
EOF

for i in {122..123}; do
scp /etc/hosts root@192.168.1.$i:/etc
done

## Installation of VMware-tools
yum install -y git
git clone https://github.com/rasa/vmware-tools-patches.git
cd vmware-tools-patches
./patched-open-vm-tools.sh
if [ -d "/etc/vmware-tools" ]; then
perl /root/vmware-tools-patches/vmware-tools-patches/vmware-tools-distrib/bin/vmware-uninstall-tools.pl
fi
perl /root/vmware-tools-patches/vmware-tools-patches/vmware-tools-distrib/vmware-install.pl

# link host computer to guest
for i in {121..123}; do
ssh root@192.168.1.$i ln -s /mnt/hgfs/F ~/F
done

# installation of Intel Parallel Studio XE 2017
yum install gcc gcc-c++ gcc-gfortran -y
./install.sh
# step 1: Enter and key accept to accept End User License Agreement
# step 3: to activate by using a license file => 1 to Activate offline => give the location of license
# step 4: 2 to not help
# step 5: 2 to go to Customize installation => cancel IA-32 installation
# step 6: y to install now