blob: e1b412c60867b22cd562fe75340f73a8804aa0f6 (
plain) (
blame)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
#!/bin/sh
echo "This script will download and install vmplayer from http://www.vmware.com/"
echo "Please go to http://vmware.com/download/player/player_reg.html"
echo "and ..."
echo " * complete this registration form"
echo " * click on \"Download Now\""
echo " * read and decide if you want to accept the VMware master end user license agreement"
echo
echo "If you have done this and accepted the enduser licence type in yes in uppercase."
echo "This will install vmplayer on your vendor-os. If you don't agree this license"
echo "vmplayer won't be installed."
echo
read
echo
if [ ${REPLY} == "YES" ]; then
cd /opt/openslx/plugin-repo/vmwarebinary
echo " * Downloading vmplayer now. This may take a while"
cd /opt/openslx/plugin-repo/vmwarebinary/
todo, during development we have this file and dont need to download it
wget -c http://download3.vmware.com/software/vmplayer/VMware-player-2.0.2-59824.i386.tar.gz
echo " * Unpacking vmplayer"
tar xfz VMware-player-2.0.2-59824.i386.tar.gz
echo " * copying files..."
mkdir root
mkdir -p root/lib
mv vmware-player-distrib/lib root/lib/vmware
mv vmware-player-distrib/bin root/
mv vmware-player-distrib/sbin root/
mv vmware-player-distrib/doc root/
mv vmware-player-distrib/installer/services.sh /etc/init.d/vmware
echo " * creating /etc/vmware/locations and /etc/vmware/not_configured"
mkdir -p /etc/vmware
touch /etc/vmware/not_configured
mv locations /etc/vmware/
echo " * Faking kernelversion"
mv /bin/uname /bin/uname.orig
mv /sbin/depmod /sbin/depmod.orig
mv /sbin/insmod /sbin/insmod.orig
#for development purpose
cp uname.sh /bin/uname
cp depmod.sh /sbin/depmod
cp insmod.sh /sbin/insmod
chmod 755 /bin/uname /sbin/depmod /sbin/insmod
echo " * Start vmware configuration"
/opt/openslx/plugin-repo/vmwarebinary/root/bin/vmware-config.pl \
--default
echo " * undo fake environment"
mv /bin/uname.orig /bin/uname
mv /sbin/depmod.orig /sbin/depmod
mv /sbin/insmod.orig /sbin/insmod
echo " * finishing installation"
rm -rf /etc/vmware/not_configured
else
echo "You didnt't accept the end user license. vmplayer is not installed."
fi
|