LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-02-2005, 09:01 AM   #1
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
VMware 5.5 on Slackware how-to


I don't like posting stuff like this out of the blue, but someone emailed me this morning asking if my old script would work on the latest VMware.... It won't. Not really anyway... Here is an updated build script for 5.5.0... All you need is the tarball in the same directory as the script. The script will take care of the rest.

Code:
#!/bin/sh
#
# After you install the resulting Slackware package, and then run
# vmware-config.pl, It will ask where certain directories are located.
# Take the default answer by hitting [ENTER]. It will also report that
# some files already exist. We have placed them in the default
# locations via this script so just hit [ENTER] to overwrite.
# Nobody likes cruft when you uninstall.

CWD=`pwd`
TMP=/tmp
PKG=$TMP/package-vmware
VERSION=5.5.0
VMWAREBUILD=18463
ARCH=i386
BUILD=1

# The system has to be clean:
if [ -a /var/log/packages/vmware* ]; then
   removepkg /var/log/packages/vmware*
fi
if [ -d /usr/lib/vmware ]; then
   # Just incase
   rm -rf /usr/lib/vmware
fi
if [ -d /etc/vmware ]; then
   rm -rf /etc/vmware
fi

# We need these on the system first:
# We'll clean up at the end
mkdir -p /etc/rc.d/init.d
mkdir -p /etc/rc.d/rc{0,1,2,3,4,5,6}.d

rm -rf $PKG
mkdir -p $PKG/{install,usr,etc}
mkdir -p $PKG/usr/{lib,bin,doc,man/man1}
mkdir -p $PKG/usr/share/{applications,pixmaps,mime/packages,icons/hicolor}
mkdir -p $PKG/etc/rc.d

cd $TMP
rm -rf vmware-distrib
echo
echo "VMware-workstation-$VERSION-$VMWAREBUILD.tar.gz is now extracting..."
echo
tar xzf $CWD/VMware-workstation-$VERSION-$VMWAREBUILD.tar.gz
cd vmware-distrib
# Temporarily disable the configurator. We
# want the user to run it, not the builder..
sed -i 's@vmware-config.pl@IGNORE-THIS-ERROR@g' bin/vmware-uninstall.pl
perl vmware-install.pl -d
# Change the configurator back:
sed -i 's@IGNORE-THIS-ERROR@vmware-config.pl@g' /usr/bin/vmware-uninstall.pl

mv /usr/lib/vmware $PKG/usr/lib
mv /usr/doc/vmware $PKG/usr/doc
mv /usr/man/man1/vmware.1.gz $PKG/usr/man/man1
mv /etc/rc.d/init.d/vmware $PKG/etc/rc.d/rc.vmware
chmod 755 $PKG/etc/rc.d/rc.vmware
mv /usr/bin/vmware-* $PKG/usr/bin
mv /usr/bin/vmnet-* $PKG/usr/bin
mv /usr/bin/{vmrun,vmplayer,vm-support,vmware} $PKG/usr/bin
cp -a /etc/vmware $PKG/etc
# Remove any misc cruft...
sed -i 's@IGNORE-THIS-ERROR@vmware-config.pl@g' bin/vmware-uninstall.pl
perl bin/vmware-uninstall.pl

# This makes it easier to access the documentation...
( cd $PKG/usr/doc/vmware
  ln -sf ../../lib/vmware/help/workstation/index.htm Workstation
  ln -sf ../../lib/vmware/help/player/player_index.htm Vmware-Player
  ln -sf ../../lib/vmware/help-manual/index.htm General
  sed -i 's@href="@href="file:///usr/lib/vmware/help/workstation/@g' $PKG/usr/lib/vmware/help/workstation/index.htm
  sed -i 's@href="@href="file:///usr/lib/vmware/help/player/@g' $PKG/usr/lib/vmware/help/player/player_index.htm
  sed -i 's@href="@href="file:///usr/lib/vmware/help-manual/@g' $PKG/usr/lib/vmware/help-manual/index.htm
  # One of our links got changed that we didn't want to:
  sed -i 's@file:///usr/lib/vmware/help/player/#top@#top@g' $PKG/usr/lib/vmware/help/player/player_index.htm )

# When the user runs the configurator, some more stuff will
# get dropped on the system. Not good if we're using pkgtool..
# Let's try and get as much as we can in place now so we
# don't have a bunch of cruft if/when we 'removepkg'
touch $PKG/usr/share/mime/packages/vmware.xml
# I've never heard of icon 'size directories' going straight into /usr/share/icons
sed -i 's@/usr/share/icons@/usr/share/icons/hicolor@g' $PKG/usr/bin/vmware-config.pl
cp -a $PKG/usr/lib/vmware/share/icons/48x48 $PKG/usr/share/icons/hicolor
cp -a $PKG/usr/share/icons/hicolor/48x48/apps/vmware-workstation.png $PKG/usr/share/pixmaps
cp -a $PKG/usr/share/icons/hicolor/48x48/apps/vmware-player.png $PKG/usr/share/pixmaps

# We need to have SyVinit directories everytime vmware-config.pl is run:
cat << EOF > $TMP/vmware-config-slack.patch
--- ./vmware-config.pl.orig	2005-03-23 06:54:21.000000000 -0500
+++ ./vmware-config.pl	2005-10-08 08:53:29.000000000 -0400
@@ -5,6 +5,11 @@
 #
 # Host configurator for VMware
 
+# Slackware setup:
+!mkdir -p /etc/rc.d/init.d!;
+!ln -sf /etc/rc.d/rc.vmware /etc/rc.d/init.d/vmware!;
+!mkdir -p /etc/rc.d/rc{0,2,3,5,6}.d!;
+
 use strict;
 
 # Use Config module to update VMware host-wide configuration file
@@ -8560,6 +8565,13 @@
 
   show_PROMOCODE();
 
+  # Slackware cleanup:
+  !rm -f /etc/rc.d/init.d/vmware!;
+  !rmdir /etc/rc.d/init.d!;
+  !rm -f /etc/rc.d/rc{0,2,3,5,6}.d/K08vmware!;
+  !rm -f /etc/rc.d/rc{2,3,5}.d/S90vmware!;
+  !rmdir /etc/rc.d/rc{0,2,3,5,6}.d!;
+
   print wrap('The configuration of ' . vmware_longname() . ' for this ' .
              'running kernel completed successfully.' . "\n\n", 0);
   if ((vmware_product() ne 'wgs') && (vmware_product() ne 'server')) {

EOF
# sed a cat'ed patch.
sed -i 's@!@`@g' $TMP/vmware-config-slack.patch
( cd $PKG/usr/bin
  patch -Np1 -i $TMP/vmware-config-slack.patch )
#rm -f $TMP/vmware-config-slack.patch

# Make the menu launchers:
cat << EOF > $PKG/usr/share/applications/vmware-workstation.desktop
[Desktop Entry]
Encoding=UTF-8
Name=VMware Workstation
Comment=Run virtual machines
Exec=vmware
Terminal=false
Type=Application
Icon=/usr/share/pixmaps/vmware-workstation.png
StartupNotify=true
Categories=Application;System;
X-Desktop-File-Install-Version=0.10
MimeType=application/x-vmware-vm;application/x-vmware-team;
EOF

cat << EOF > $PKG/usr/share/applications/vmware-player.desktop
[Desktop Entry]
Encoding=UTF-8
Name=VMware Player
Comment=Run a virtual machine
Exec=vmplayer
Terminal=false
Type=Application
Icon=/usr/share/pixmaps/vmware-player.png
StartupNotify=true
Categories=Application;System;
X-Desktop-File-Install-Version=0.10
MimeType=application/x-vmware-vm;
EOF

cat << EOF > $PKG/install/doinst.sh
# Append to /etc/rc.d/rc.local if it's
# not already there, commented or not...
if ! grep /etc/rc.d/rc.vmware /etc/rc.d/rc.local 1> /dev/null 2> /dev/null ; then
  cat << EOF >> /etc/rc.d/rc.local

# Added by VMware install:
if [ -x /etc/rc.d/rc.vmware ]; then
   /etc/rc.d/rc.vmware start
fi
EOF
echo "EOF" >> $PKG/install/doinst.sh
echo "fi" >> $PKG/install/doinst.sh
echo "# Begin Symlinks:" >> $PKG/install/doinst.sh

# Keep everything seperated for future upgrades:
( cd $PKG/usr/lib
  mv vmware vmware-${VERSION}_${VMWAREBUILD}
  ln -sf vmware-${VERSION}_${VMWAREBUILD} vmware
  cd $PKG/usr/doc
  mv vmware vmware-${VERSION}_${VMWAREBUILD}
  ln -sf vmware-${VERSION}_${VMWAREBUILD} vmware )

# 54.8 Mb of Redhat 7.3 binaries are utterly useless:
rm -rf $PKG/usr/lib/vmware-${VERSION}_${VMWAREBUILD}/modules/binary/*

cat << EOF > $PKG/install/slack-desc
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.  Line
# up the first '|' above the ':' following the base package name, and the '|' on
# the right side marks the last column you can put a character in.  You must make
# exactly 11 lines for the formatting to be correct.  It's also customary to
# leave one space after the ':'.

      |-----handy-ruler-------------------------------------------------------|
vmware: vmware (Virtual Machine Software)
vmware:
vmware: VMware Workstation allows users to run multiple x86-based operating
vmware: systems, including Windows, Linux, and NetWare, and their applications
vmware: simultaneously on a single PC in fully networked, portable virtual
vmware: machines - no hard drive partitioning or rebooting required.
vmware:
vmware: Before running VMware Workstation for the first time, you need to
vmware: configure it by invoking the following command: vmware-config.pl
vmware:
vmware:	
EOF

# Restore the system. If you already had SysVinit
# scripts in place, this won't harm anything.
rmdir /etc/rc.d/init.d
rm -f /etc/rc.d/rc{0,2,3,5,6}.d/K08vmware
rm -f /etc/rc.d/rc{2,3,5}.d/S90vmware
rmdir /etc/rc.d/rc{0,1,2,3,4,5,6}.d

# Remove the extracted source:
#rm -rf $TMP/vmware-distrib

# Build the package:
cd $PKG
makepkg -l y -c n $TMP/vmware-${VERSION}_${VMWAREBUILD}-$ARCH-$BUILD.tgz
If you had a previous version of vmware running and you try to run 'vmware-config.pl', the vmnet module will fail to build. That's because there was already an existing vmnet module loaded. Do a "/etc/rc.d/rc.vmware stop" or "rmmod" and then run "vmware-config.pl" again....

Last edited by jong357; 12-03-2005 at 11:09 PM. Reason: Cleaned up build script so the final "uninstaller" cleaned the system like it was meant to. Also left the patch and source directory in /tmp for possible troubleshooting reasons.
 
Old 12-02-2005, 09:24 AM   #2
fireedo
Member
 
Registered: Feb 2005
Location: Indonesia,Sidoarjo
Posts: 342

Rep: Reputation: 30
wow...thanx a lot .....many many thanx
 
Old 12-02-2005, 09:38 AM   #3
fireedo
Member
 
Registered: Feb 2005
Location: Indonesia,Sidoarjo
Posts: 342

Rep: Reputation: 30
I got this problem :
root@darkstar:/home/Madslack# /usr/bin/vmware-config.pl
Making sure services for VMware Workstation are stopped.

sh: /etc/rc.d/init.d/vmware: No such file or directory
sh: /etc/rc.d/init.d/vmware: No such file or directory
Unable to stop services for VMware Workstation

Execution aborted.

root@darkstar:/home/Madslack#
 
Old 12-03-2005, 02:31 AM   #4
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Original Poster
Rep: Reputation: 52
Sounds like the patch didn't take.... That or you did a manual install straight from the vmware tarball which over wrote your modified vmware-config.pl from the slak-pak....

I don't know why the patch wouldn't have applied. I've ran that build script many many times with no problems. Look at ALL of the output closely when you run the build script. Something apparently went wrong.

Read it line by line and look for "no such file or directory" or "patch failed, saving rejects to..." or "sed: command not found".... You get the idea. It should be obvious what went wrong by looking thru the output.

Look at the very begining of /usr/bin/vmware-config.pl.... It should be missing the "# Slackware Setup:" part.... Not sure why but thats what's happening.

Last edited by jong357; 12-03-2005 at 02:41 AM.
 
Old 12-03-2005, 02:49 AM   #5
fireedo
Member
 
Registered: Feb 2005
Location: Indonesia,Sidoarjo
Posts: 342

Rep: Reputation: 30
hmm...I didnt do manual install with the tar bal....
here some message on building progress :

VMware-workstation-5.5.0-18463.tar.gz is now extracting...

Uninstalling the tar installation of VMware Workstation.

Unable to find the tar installer database file (/etc/vmware/locations)

Execution aborted.


and this :

Before running VMware Workstation for the first time, you need to configure it
by invoking the following command: "/usr/bin/IGNORE-THIS-ERROR". Do you want
this program to invoke the command for you now? [yes]

sh: /usr/bin/IGNORE-THIS-ERROR: No such file or directory
Uninstalling the tar installation of VMware Workstation.

Unable to find the tar installer database file (/etc/vmware/locations)

Execution aborted.

can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- ./vmware-config.pl.orig2005-03-23 06:54:21.000000000 -0500
|+++ ./vmware-config.pl2005-10-08 08:53:29.000000000 -0400
--------------------------
File to patch: Skip this patch? [y]

and at the end :

install/slack-desc
WARNING: zero length file ./etc/vmware/not_configured
WARNING: zero length file ./usr/share/mime/packages/vmware.xml

Gzipping vmware-5.5.0_18463-i386-1.tar...
 
Old 12-03-2005, 10:56 AM   #6
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Original Poster
Rep: Reputation: 52
You got me... All that output is normall except for the patching part. I don't understand why it wouldn't patch for you.

Code:
--- ./vmware-config.pl.orig	2005-03-23 06:54:21.000000000 -0500
+++ ./vmware-config.pl	2005-10-08 08:53:29.000000000 -0400
@@ -5,6 +5,11 @@
 #
 # Host configurator for VMware
 
+# Slackware setup:
+`mkdir -p /etc/rc.d/init.d`;
+`ln -sf /etc/rc.d/rc.vmware /etc/rc.d/init.d/vmware`;
+`mkdir -p /etc/rc.d/rc{0,2,3,5,6}.d`;
+
 use strict;
 
 # Use Config module to update VMware host-wide configuration file
@@ -8560,6 +8565,13 @@
 
   show_PROMOCODE();
 
+  # Slackware cleanup:
+  `rm -f /etc/rc.d/init.d/vmware`;
+  `rmdir /etc/rc.d/init.d`;
+  `rm -f /etc/rc.d/rc{0,2,3,5,6}.d/K08vmware`;
+  `rm -f /etc/rc.d/rc{2,3,5}.d/S90vmware`;
+  `rmdir /etc/rc.d/rc{0,2,3,5,6}.d`;
+
   print wrap('The configuration of ' . vmware_longname() . ' for this ' .
              'running kernel completed successfully.' . "\n\n", 0);
   if ((vmware_product() ne 'wgs') && (vmware_product() ne 'server')) {
That's the patch.... Try commenting out line in the build script that removes the patch from $TMP. Then run the script again. Do you have a "vmware-config-slack.patch" sitting in /tmp? And does it match the one from above?

You know, you can always just do the manual install from the tarball and then add your SysVinit directories BEFORE you run the tarball installer. Then add something in rc.local to fire it up on boot.

This way was supposed to be "hassel free".... I still don't understand what is happening. It works every time for me on Slack and my own distro that I rolled based on Slack. Must have run that script atleast 10 times in the past week and it always patches fine for me.....
 
Old 12-03-2005, 11:49 AM   #7
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Original Poster
Rep: Reputation: 52
email me if you can't figure it out... This 'new' forum keeps loging me out so it's kinda hard to post anything right now unless I'm quick.... :-) I'm going to take a stab in the dark and guess that vmware-config.pl isn't getting moved to your package for some reason. Not sure without being able to sit down at the box in question.

I just copied/pasted the build script from above and ran it... No problems. It patched and built fine... :-(

I modified the build script from above. Give that a whirl. It won't fix your patching problem tho. Read the REASONS FOR EDITING at the bottom of my first post...

Last edited by jong357; 12-03-2005 at 12:08 PM.
 
Old 12-03-2005, 12:19 PM   #8
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Original Poster
Rep: Reputation: 52
Quote:
Originally Posted by fireedo
|--- ./vmware-config.pl.orig2005-03-23 06:54:21.000000000 -0500
|+++ ./vmware-config.pl2005-10-08 08:53:29.000000000 -0400
Try using CODE tags next time. I assume the forum reformatted this part but if it didn't and this is how your patch header actually looks, then that's why it's not patching...
 
Old 12-03-2005, 10:39 PM   #9
fireedo
Member
 
Registered: Feb 2005
Location: Indonesia,Sidoarjo
Posts: 342

Rep: Reputation: 30
wow...thanx a ton I will try that
and sorry about Code tags ...I was too hurry
 
Old 06-19-2006, 11:39 AM   #10
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Original Poster
Rep: Reputation: 52
New Script

Sorry to bump an old thread but someone emailed me again asking about the script. The one from above will work on 5.5.1 as long as you change the version numbers... I tweaked it out and added some stuff but they are nearly identical.

Code:
#!/bin/sh
#
# After you install the resulting Slackware package, and then run
# vmware-config.pl, It will ask where certain directories are located.
# Take the default answer by hitting [ENTER]. It will also report that
# some files already exist. We have placed them in the default
# locations via this script so just hit [ENTER] to overwrite.
# Nobody likes cruft when you uninstall.

CWD=`pwd`
TMP=/tmp
PKG=$TMP/package-vmware
VERSION=5.5.1
VMWAREBUILD=19175
ARCH=i386
BUILD=1
# Start VMware at boot? anything other than a 'no' means a 'yes'...
AUTOSTART=yes

# The system has to be clean:
if [ -a /var/log/packages/vmware* ]; then
   echo
   echo "Detected an existing install. Removing..."
   removepkg /var/log/packages/vmware* > /dev/null 2>&1
fi
# Check for a tarball install. Really... We need it clean.
if [ -d /etc/vmware ]; then
   if [ -a /usr/bin/vmware-uninstall.pl ]; then
      echo
      echo "Detected an existing install. Removing..."
      perl /usr/bin/vmware-uninstall.pl > /dev/null 2>&1
   fi
   rm -rf /etc/vmware
fi
if [ -d /usr/lib/vmware ]; then
   rm -rf /usr/lib/vmware
fi

# We need these on the system first:
# We'll clean up at the end
mkdir -p /etc/rc.d/init.d
mkdir -p /etc/rc.d/rc{0,1,2,3,4,5,6}.d

rm -rf $PKG
mkdir -p $PKG/{install,usr,etc/rc.d}
mkdir -p $PKG/usr/{lib,bin,doc,man/man1}
mkdir -p $PKG/usr/share/{applications,pixmaps,mime/packages,icons/hicolor}

cd $TMP
rm -rf vmware-distrib
echo
echo "VMware-workstation-$VERSION-$VMWAREBUILD.tar.gz is now extracting..."
echo
tar xzf $CWD/VMware-workstation-$VERSION-$VMWAREBUILD.tar.gz
cd vmware-distrib
# Temporarily disable the configurator. We
# want the user to run it, not the builder..
sed -i 's@vmware-config.pl@IGNORE-THIS-ERROR@g' bin/vmware-uninstall.pl
perl vmware-install.pl -d
# Change the configurator back:
sed -i 's@IGNORE-THIS-ERROR@vmware-config.pl@g' /usr/bin/vmware-uninstall.pl

echo
mv /usr/lib/vmware $PKG/usr/lib
mv /usr/doc/vmware $PKG/usr/doc
mv /usr/man/man1/vmware.1.gz $PKG/usr/man/man1
mv /etc/rc.d/init.d/vmware $PKG/etc/rc.d/rc.vmware
chmod 755 $PKG/etc/rc.d/rc.vmware
mv /usr/bin/vmware-* $PKG/usr/bin
mv /usr/bin/vmnet-* $PKG/usr/bin
mv /usr/bin/{vmrun,vmplayer,vm-support,vmware} $PKG/usr/bin
cp -a /etc/vmware $PKG/etc
# Remove misc cruft, if any...
sed -i 's@IGNORE-THIS-ERROR@vmware-config.pl@g' bin/vmware-uninstall.pl
perl bin/vmware-uninstall.pl > /dev/null 2>&1

# This makes it easier to access the documentation...
( cd $PKG/usr/doc/vmware
  ln -sf ../../lib/vmware/help/workstation/index.htm Workstation
  ln -sf ../../lib/vmware/help/player/player_index.htm Vmware-Player
  ln -sf ../../lib/vmware/help-manual/index.htm General
  sed -i 's@href="@href="file:///usr/lib/vmware/help/workstation/@g' $PKG/usr/lib/vmware/help/workstation/index.htm
  sed -i 's@href="@href="file:///usr/lib/vmware/help/player/@g' $PKG/usr/lib/vmware/help/player/player_index.htm
  sed -i 's@href="@href="file:///usr/lib/vmware/help-manual/@g' $PKG/usr/lib/vmware/help-manual/index.htm
  # One of our links got changed that we didn't want to:
  sed -i 's@file:///usr/lib/vmware/help/player/#top@#top@g' $PKG/usr/lib/vmware/help/player/player_index.htm )

# When the user runs the configurator, some more stuff will
# get dropped on the system. Not good if we're using pkgtool..
# Let's try and get as much as we can in place now so we
# don't have a bunch of cruft if/when we 'removepkg'
touch $PKG/usr/share/mime/packages/vmware.xml
# I've never heard of icon 'size directories' going straight into /usr/share/icons
sed -i 's@/usr/share/icons@/usr/share/icons/hicolor@g' $PKG/usr/bin/vmware-config.pl
cp -a $PKG/usr/lib/vmware/share/icons/48x48 $PKG/usr/share/icons/hicolor
cp -a $PKG/usr/share/icons/hicolor/48x48/apps/vmware-workstation.png $PKG/usr/share/pixmaps
cp -a $PKG/usr/share/icons/hicolor/48x48/apps/vmware-player.png $PKG/usr/share/pixmaps

# We need to have SyVinit directories everytime vmware-config.pl is run:
cat << EOF > $TMP/vmware-config-slack.patch
--- ./vmware-config.pl.orig	2005-03-23 06:54:21.000000000 -0500
+++ ./vmware-config.pl	2005-10-08 08:53:29.000000000 -0400
@@ -5,6 +5,11 @@
 #
 # Host configurator for VMware
 
+# Slackware setup:
+!mkdir -p /etc/rc.d/init.d!;
+!ln -sf /etc/rc.d/rc.vmware /etc/rc.d/init.d/vmware!;
+!mkdir -p /etc/rc.d/rc{0,2,3,5,6}.d!;
+
 use strict;
 
 # Use Config module to update VMware host-wide configuration file
@@ -8560,6 +8565,13 @@
 
   show_PROMOCODE();
 
+  # Slackware cleanup:
+  !rm -f /etc/rc.d/init.d/vmware!;
+  !rmdir /etc/rc.d/init.d!;
+  !rm -f /etc/rc.d/rc{0,2,3,5,6}.d/K08vmware!;
+  !rm -f /etc/rc.d/rc{2,3,5}.d/S90vmware!;
+  !rmdir /etc/rc.d/rc{0,2,3,5,6}.d!;
+
   print wrap('The configuration of ' . vmware_longname() . ' for this ' .
              'running kernel completed successfully.' . "\n\n", 0);
   if ((vmware_product() ne 'wgs') && (vmware_product() ne 'server')) {

EOF
# sed a cat'ed patch.
sed -i 's@!@`@g' $TMP/vmware-config-slack.patch
( cd $PKG/usr/bin
  patch -Np1 -i $TMP/vmware-config-slack.patch
  rm -f vmware-config.pl~ )

# Make the menu launchers:
cat << EOF > $PKG/usr/share/applications/vmware-workstation.desktop
[Desktop Entry]
Encoding=UTF-8
Name=VMware Workstation
Comment=Run virtual machines
Exec=vmware
Terminal=false
Type=Application
Icon=/usr/share/pixmaps/vmware-workstation.png
StartupNotify=true
Categories=Application;System;
X-Desktop-File-Install-Version=0.10
MimeType=application/x-vmware-vm;application/x-vmware-team;
EOF

cat << EOF > $PKG/usr/share/applications/vmware-player.desktop
[Desktop Entry]
Encoding=UTF-8
Name=VMware Player
Comment=Run a virtual machine
Exec=vmplayer
Terminal=false
Type=Application
Icon=/usr/share/pixmaps/vmware-player.png
StartupNotify=true
Categories=Application;System;
X-Desktop-File-Install-Version=0.10
MimeType=application/x-vmware-vm;
EOF

# Keep everything seperated for future upgrades:
( cd $PKG/usr/lib
  mv vmware vmware-${VERSION}_${VMWAREBUILD}
  ln -sf vmware-${VERSION}_${VMWAREBUILD} vmware
  cd $PKG/usr/doc
  mv vmware vmware-${VERSION}_${VMWAREBUILD}
  ln -sf vmware-${VERSION}_${VMWAREBUILD} vmware )

# 54.8 Mb of Redhat 7.3 binaries are utterly useless:
rm -rf $PKG/usr/lib/vmware-${VERSION}_${VMWAREBUILD}/modules/binary/*

if [ "$AUTOSTART" = "no" ]; then
   chmod 644 $PKG/etc/rc.d/rc.vmware
fi

cat << EOF > $PKG/install/slack-desc
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.  Line
# up the first '|' above the ':' following the base package name, and the '|' on
# the right side marks the last column you can put a character in.  You must make
# exactly 11 lines for the formatting to be correct.  It's also customary to
# leave one space after the ':'.

      |-----handy-ruler--------------------------------------------------------|
vmware: vmware (Virtual Machine Software)
vmware:
vmware: VMware Workstation allows users to run multiple x86-based operating
vmware: systems, including Windows, Linux, and NetWare, and their applications
vmware: simultaneously on a single PC in fully networked, portable virtual
vmware: machines - no hard drive partitioning or rebooting required.
vmware:
vmware: Before running VMware Workstation for the first time, you need to
vmware: configure it by invoking the following command: vmware-config.pl
vmware:
vmware:	
EOF

cat << EOF > $PKG/install/doinst.sh
# Append to /etc/rc.d/rc.local if it's
# not already there, commented or not...
if ! grep /etc/rc.d/rc.vmware /etc/rc.d/rc.local 1> /dev/null 2> /dev/null ; then
  cat << EOF >> /etc/rc.d/rc.local

# Added by VMware install:
if [ -x /etc/rc.d/rc.vmware ]; then
   /etc/rc.d/rc.vmware start
fi
EOF
echo 'EOF
fi
# Our .desktop has a MimeType:
if [ -x usr/bin/update-desktop-database ]; then
   chroot . usr/bin/update-desktop-database 1>/dev/null 2>/dev/null
fi
# Update the icon cache:
ls -1 usr/share/icons | while read DIR
do
   if [ -d "usr/share/icons/$DIR" ]; then
      rm -f "usr/share/icons/$DIR/icon-theme.cache"
      chroot . usr/bin/gtk-update-icon-cache "/usr/share/icons/$DIR" \
         2>/dev/null 1>/dev/null
   fi
done
# Begin Symlinks:' >> $PKG/install/doinst.sh

# Restore the system. If you already had SysVinit
# scripts in place, this won't harm anything.
rmdir /etc/rc.d/init.d
rm -f /etc/rc.d/rc{0,2,3,5,6}.d/K08vmware
rm -f /etc/rc.d/rc{2,3,5}.d/S90vmware
rmdir /etc/rc.d/rc{0,1,2,3,4,5,6}.d

# Remove the extracted source:
rm -rf $TMP/vmware-distrib

# Build the package:
cd $PKG
makepkg -l y -c n $TMP/vmware-${VERSION}_${VMWAREBUILD}-$ARCH-$BUILD.tgz

Last edited by jong357; 06-19-2006 at 12:01 PM.
 
Old 06-21-2006, 12:12 AM   #11
wetnose23
LQ Newbie
 
Registered: Dec 2005
Posts: 28

Rep: Reputation: 15
thankx jong!


got winxp up and running.

wanted this so i can run Money & TaxCut

though i am having problems with the internet connection.. does anyone know how i can get it to work? point me in the right direction and stuff?


thankx
 
Old 06-21-2006, 01:51 AM   #12
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Original Poster
Rep: Reputation: 52
Hmmm... Yea. That's something I never bothered to figure out. I rarely use VMware. Your best bet might be to post/search in the Linux-Software section here on LQ or head over to the VMware forums and snoop around there...
 
Old 06-21-2006, 02:25 PM   #13
patrickdepingui
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 53

Rep: Reputation: 15
I was wondering, where do you download the vmware package. Is there an official way for it? The vmware website offers evaluation versions, for which you need a license key.
 
Old 06-21-2006, 03:19 PM   #14
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Original Poster
Rep: Reputation: 52
That's the package to download. You can sign up and get an evaluation key that's good for a certain ammount of days. After that, if you still want to use it, you'll need to purchase a serial number...
 
Old 06-21-2006, 05:08 PM   #15
Fluxx
Member
 
Registered: Aug 2005
Location: Bavaria, Germany
Distribution: Slackware (Current)
Posts: 225

Rep: Reputation: 30
You can download the VMWare-Workstation 5.5 and get a serial-number for free (30 days trial version). With your Workstation you can create your virtual machines and after 30 days you can run them with free VMPlayer.

Later on you can build new virtual machines with your Workstation. Just reinstall it and set your date/time back to the time your serial number was valid.

Or take VMPlayer to install new virtual machines in an existing *.vmdk. You just have to edit the vmx-file for the *.vmdk and you can install every os into it. I took the Browser-Appliance (Ubuntu 5.10) from VMWare homepage and installed Windows 2000 into the vmdk, just by changing two lines in the vmx-file. It is a 10 GB virtual harddrive which you can partition and format for Windows or any other Linux system.

If you store the iso-files out of directory /isoimages (in extracted VMWare-Workstation 5.5) you can install the VMWare-Tools for Linux or Windows at every time.

A lot of possibilities with VMWorkstation and VMPlayer.

Fluxx.

Last edited by Fluxx; 06-21-2006 at 05:11 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 10.0 on VMware danworth Slackware 4 03-21-2007 03:30 PM
Slackware 10 and VMware hairysocks Linux - Networking 4 09-27-2004 11:10 AM
VMWare + SlackWare 9 C.Loko Slackware 3 07-11-2003 09:46 PM
slackware 8.1 under VMWare... sqn Slackware 1 06-26-2003 04:27 AM
VMware on Slackware kruzta Slackware 3 05-19-2003 09:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration