# Installing VmWare 5.0 on ALTLinux Sisyphus # using WRAR's specs (ftp://ftp.altlinux.ru/pub/people/wrar/vmware/5.0/) # if you want to run this file as a script, be sure you are allowed to # run sudo, when needed. If you are installing manually step by step, # just ignore the following variable, but run all command beginning # with it as root AS_ROOT=sudo # Once per VmWare build version: # ------------------------------ # get official vmware release in tar.gz format wget http://download3.vmware.com/software/wkst/VMware-workstation-5.0.0-13124.tar.gz # get WRAR's src.rpm wget ftp://ftp.altlinux.ru/pub/people/wrar/vmware/5.0/vmware-5.0.0-alt0.4.1.nosrc.rpm # build vmware rpm for ALTLinux ln -s VMware-workstation-5.0.0-13124.tar.gz ~/RPM/SOURCES/ rpm -bb vmware-5.0.0-alt0.4.1.nosrc.rpm # (AS ROOT) install built rpms $AS_ROOT rpm -ihv ~/RPM/RPMS/i586/kernel-source-vmware-5.0.0-5.0.0-alt0.4.1.i586.rpm $AS_ROOT rpm -ihv ~/RPM/RPMS/i586/vmware-5.0.0-alt0.4.1.i586.rpm # Once per running kernel version: # -------------------------------- # set proper environment: $kversion, $krelease, $kflavour, $kreleasebuild `uname -r | sed 's/\(2\.6\.[0-9]*\)-\(.*-.*\)-\(alt\)\(.*\)$/export kversion=\1\nkrelease=\3\4\nkflavour=\2\nkreleasebuild=\4/'` export MYSPEC="kernel-modules-vmware-`uname -r`.spec" # (AS ROOT) install all needed headers $AS_ROOT apt-get install kernel-headers-modules-$kflavour # get WRAR's spec wget ftp://ftp.altlinux.ru/pub/people/wrar/vmware/5.0/kernel-modules-vmware.spec #set proper @kreleasebuild@ @kversion@ @krelease@ @kflavour@ in above spec sed "s/@kversion@/$kversion/ s/@krelease@/$krelease/ s/@kflavour@/$kflavour/ s/@kreleasebuild@/$kreleasebuild/" < kernel-modules-vmware.spec > "$MYSPEC" # compile vmware modules rm ~/RPM/RPMS/you_arch/kernel-modules-vmware-5.0.0-*.rpm rpm -bb "$MYSPEC" # (AS ROOT) install vmware modules $AS_ROOT rpm -ihv ~/RPM/RPMS/you_arch/kernel-modules-vmware-5.0.0-*.rpm # (AS ROOT) standard vmware configure script, no need to compile the modules $AS_ROOT vmware-config.pl # (AS ROOT) do it every time, vmware thinks it's "not configured", but # you've already done all the above for your currently running kernel $AS_ROOT rm -f /etc/vmware/not_configured