LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 11-26-2003, 04:15 PM   #1
Kjetil4455
Member
 
Registered: Jul 2003
Location: Norway/Drammen
Distribution: Slackware~
Posts: 250

Rep: Reputation: 30
Question vmware, and a module question.


yeah, ok. vmware workstation says i need the rc0 etc in folders. like debian etc have. but slackware DO NOT. any1 know how to fix this?

my second question is: where do i disable and enable modules from startup? and services from startup?

thanks

( i know about /etc/rc.d/rc.modules, but even if i disable something there- it still loads up )
 
Old 11-26-2003, 04:20 PM   #2
Kjetil4455
Member
 
Registered: Jul 2003
Location: Norway/Drammen
Distribution: Slackware~
Posts: 250

Original Poster
Rep: Reputation: 30
nevermind vmware, i got the answers for that one.

any1 on the rest?
 
Old 11-26-2003, 07:46 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Which version of Slack are you running?

Cheers,
Tink
 
Old 11-29-2003, 07:30 AM   #4
deNiro
Member
 
Registered: Jun 2003
Distribution: Slackware-Current and Salix 14.2
Posts: 274
Blog Entries: 1

Rep: Reputation: Disabled
The correct way to install vmware (and enable modules) on slackware is like this:
BTW, this is just a copy paste from some site i don't remeber, didn(t wrote this myself, but i used that for installing it here)


Slackware Linux isn't officially *supported* by the folks at VMware - but it's not a big deal to get everything working... once you realize the only immediate bump in the road is with the install/setup scripts that come with VMware. I would also suggest 'forcing' the installation to compile the various VMware modules for your system.

In a nutshell... the VMware installation script assumes 'System V' style startup directories, scripts, etc... and Slackware just doesn't come setup that way since it has adopted something closer to a BSD scenario.

BTW - If you happen to be running a 2.4.x kernel - do yourself a favor and grab a copy of VMware 2.0.4. You shouldn't have problems installing/compiling modules w/VMware 2.0.3 with kernels through 2.4.3... but you'd need to edit some of the modules source to compile with a 2.4.4 kernel or later (just grab the latest VMware release and save yourself some trouble ;-)

The Suggested Solution - Preparation

Let's just assume we'll temporarily create the 'missing' System V setup in /etc

You might want to do the following:

cd /etc
mkdir init.d
for i in {0,1,2,3,4,5,6}; do mkdir rc$i.d; done

Since VMware will run suid root, you might want to limit program execution to a particular group of users (I created a 'vmware' group in /etc/group and added the desired users).

Running the installation

ok... let's assume you already downloaded the latest VMware .tar.gz archive and untarred & unzipped the distribution (creates a vmware-distrib directory wherever you did this).

(you need to be root to actually run the install)

cd vmware-distrib
./vmware-install.pl

If you didn't create the directories as mentioned above... the install should blow-up on you... and you'll need to go back and create the directories as mentioned.

When it asks you for the location of your startup scripts... and mentions rc0.d to rc6.d... you want to tell it /etc is the directory - since that's where we just created the temporary directories.

So... run through the prompts, answer the questions according to your preferences, etc... until you get to the part where it asks you if you want to run vmware-config.pl. DO NOT choose to run this now - you need to start the script manually with arguments. The setup should quit after you decline to run vmware-config.pl

I choose to install the binaries in /usr/local/bin - so we want to run vmware-config.pl from /usr/local/bin now. This might run OK if /usr/local/bin happens to be in your PATH setting, but I just 'cd' to /usr/local/bin in case it matters.

cd /usr/local/bin
./vmware-config.pl --compile

The extra --compile switch above forces vmware-config.pl to compile fresh modules for your system. If you forget the switch... it might appear that everything will work OK - modules are loaded without complaints, etc... but on *my* system, the pre-compiled modules segfault on startup and shutdown - and among other things... VMware isn't going to work.

(Just use the --compile switch to increase your chances for success)

Run through the remainder of the prompts, etc... until the script eventually finishes.

Back to Slackware reality

Once you are done running the install/config scripts - you probably want to make some minor changes to fit the Slackware/BSD scenario.

Copy the vmware script in /etc/init.d to /etc/rc.d/rc.vmware and make it executable.

cp /etc/init.d/vmware /etc/rc.d/rc.vmware
chmod +x /etc/rc.d/rc.vmware

Add a few lines to /etc/rc.d/rc.local to set up VMware when you boot the computer

(In /etc/rc.d/rc.local)

if [ -x /etc/rc.d/rc.vmware ]; then
/etc/rc.d/rc.vmware start
fi

Now... you can go back and get rid of the temporary /etc/init.d, /etc/rc[0-6].d fixes.

rm -rf /etc/init.d
for i in {0,1,2,3,4,5,6}; do rm -rf /etc/rc$i.d; done

Last edited by deNiro; 11-29-2003 at 07:35 AM.
 
Old 11-29-2003, 05:28 PM   #5
fskmh
Member
 
Registered: Jun 2002
Location: South Africa
Distribution: Custom slackware64-current
Posts: 307

Rep: Reputation: 92
Not to take anything away from de Niro's comprehensive answer, I thought I'd add a few comments.
While it is true that Slack's init is closer to BSD than SysV, Slack is capable of handling packages that install SysV-type init files in /etc/rc.d/init.d. (Check out /etc/rc.d/rc.sysvinit.) If you installed VMware correctly after making the /etc/rc.d/rc[0-6].d dirs, it should have installed symbolic links in dirs /etc/rc.d/rc3.d and /etc/rc.d/rc4.d. This simply means that the /etc/rc.d/init.d/vmware will automatically be run when Slack starts up in runlevel 3 or 4, provided that the vmware script is executable. The numerical prefix to the symbolic link is a priority level set for that "service", a feature that Red Hat and other SysV-style Linuxes adapted from a proprietary version of Unix, I forget which one.
 
Old 11-29-2003, 06:14 PM   #6
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
enabling and disabling modules at startup:

specific modules that you want loaded at boot-time should be placed in command form in /etc/rd.d/rc.local

in this file, type
modprobe nameofmodule
modprobe anothermodule

and then those modules will be automatically loaded with dependencies already fixed

to stop a module from loading a boot-time, there are several ways, but normally i add the module to /etc/hotplug/blacklist

in this file, anywhere in the file, add the name of a module you don't want loaded
 
Old 12-02-2003, 03:12 PM   #7
Whitehat
Senior Member
 
Registered: Feb 2003
Location: The Cold North
Distribution: SuSE 9.1
Posts: 1,289

Rep: Reputation: 46
Holy Crap........that is a lot of work to get VM working in Slack.......

dang...........I was gonna do the same thing but I don't want to spend half of my evening getting it to work

Good day...

....see my post below...

Last edited by Whitehat; 12-02-2003 at 03:59 PM.
 
Old 12-02-2003, 03:37 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
It's not that hard :} and it took me about 10
minutes to install ... it all comes down to the
fact that vmware wants some sort of SysV
directory structure during install (or later
for modifications), and that you need to
call their script from your rc.local.


Cheers,
Tink
 
Old 12-02-2003, 03:55 PM   #9
Whitehat
Senior Member
 
Registered: Feb 2003
Location: The Cold North
Distribution: SuSE 9.1
Posts: 1,289

Rep: Reputation: 46


Hehe........I actually just did it myself.

It works kick butt

Funny thing is this:

I have Windows XP pro running in a VM on Slackware 9.1 which is running in a VM on a Windows XP Pro laptop.

Hahahahha. I did it just because I can

Freakin' deNiro hit it right on the head. We should sticky his instructions for "How to install VMware 4.0 on Slackware Linux"....or put it in Linux Answers

Peace,
Whitehat
 
Old 12-03-2003, 10:00 AM   #10
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
Quote:
Originally posted by Whitehat
Freakin' deNiro hit it right on the head. We should sticky his instructions for "How to install VMware 4.0 on Slackware Linux"....or put it in Linux Answers
Yeah, or (crazy idea here) people could use the search function to find this or any of the other threads that have already answered this question.

BTW here's the link to those instructions: http://www.cs.ucr.edu/~jbyrne/vmware.htm

Enjoy!
--- Cerbere
 
  


Reply



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
Load vmware module at boot joelescoulie Slackware 3 01-26-2005 09:52 AM
VMware module building kernel error ^^ ZoNicONE Linux - Newbie 3 09-09-2003 01:52 PM
compiling vmware module on mandrake 9.1 psychonic Linux - Newbie 4 07-21-2003 08:14 PM
VMWare kernel module build fails jpbarto Linux From Scratch 8 05-23-2003 04:27 PM
Vmware vmnet module error in slackware 9.0 Gordon Linux - Software 1 04-11-2003 08:57 AM

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

All times are GMT -5. The time now is 11:45 PM.

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