LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-18-2008, 04:32 PM   #1
gefst
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Rep: Reputation: 17
VirtualBox 2.1 PUEL on Slackware 12.2


I had some problems installing VirtualBox 2.1 PUEL (not OSE) on Slackware 12.2. This is what worked for me (this applies to a system upgraded to 12.2 from 12.1 using the official instructions):

I downloaded VirtualBox PUEL from http://www.virtualbox.org/wiki/Linux_Downloads selecting "All distributions - i386".

After installation (sh VirtualBox-2.1.0-41146-Linux_x86.run as root) VirtualBox would not start complaining about a missing libcap.so.1.

For some reason the package libcap-2.14-i486-1.tgz was not installed on my machine during upgrade and I had to manually download it from a Slackware ftp mirror (look under l/). After installing the package the same complaint about missing libcap.so.1 appeared, so I made a symbolic link as follows

(as root)
cd /lib
ln -s libcap.so.2.14 libcap.so.1

Everything works now.

Gefst
 
Old 12-18-2008, 04:47 PM   #2
sertmusluman
Member
 
Registered: Jan 2006
Location: Canakkale, Turkiye
Distribution: Slackware 12.2
Posts: 53

Rep: Reputation: 15
I have installed VirtualBox 2.1.0 yet, and applied your instructions but i have different problem now.

Quote:
sinem@slackware:~$ su
Password:
root@slackware:/home/sinem# VirtualBox
/opt/VirtualBox-2.1.0/VirtualBox: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory
root@slackware:/home/sinem# cd /lib
root@slackware:/lib# ln -s libcap.so.2.14 libcap.so.1
root@slackware:/lib# VirtualBox
No protocol specified
Qt WARNING: VirtualBox: cannot connect to X server :0.0
root@slackware:/lib#

Last edited by sertmusluman; 12-18-2008 at 04:55 PM.
 
Old 12-18-2008, 04:48 PM   #3
gefst
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Original Poster
Rep: Reputation: 17
try to run is a normal user.
 
Old 12-18-2008, 04:52 PM   #4
sertmusluman
Member
 
Registered: Jan 2006
Location: Canakkale, Turkiye
Distribution: Slackware 12.2
Posts: 53

Rep: Reputation: 15
Yes it works properly now.
Previous versions were requiring a bit work to install an OS on VirtualBox as USER. Now can i directly install an OS as user?
 
Old 12-18-2008, 05:04 PM   #5
gefst
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Original Poster
Rep: Reputation: 17
I think you can install guest OSes as a normal user, as was the case in previous versions.

Glad I helped
 
Old 12-24-2008, 03:22 PM   #6
Cuetzpallin
Member
 
Registered: Feb 2008
Location: Monterrey, MX
Distribution: Slackware since 3.4 and love it!!!
Posts: 162

Rep: Reputation: 31
Quote:
Originally Posted by gefst View Post
I had some problems installing VirtualBox 2.1 PUEL (not OSE) on Slackware 12.2. ....

Gefst
What is the difference between those versions?
 
Old 12-24-2008, 03:33 PM   #7
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 917

Rep: Reputation: 87
I installed VBox 2.1.0 two days ago but in a different way. I first tried libcap2 as you did, and had the same error. I thought of the linking trick but didn't do it, fearing it could cause some problems. Instead, I found libcap1 from the Debian repository. The original package doesn't compile but there is also a patch there, with that patch applied it compiles nicely and you can run VBox. Here is the page:

http://packages.debian.org/source/stable/libcap
 
Old 12-24-2008, 03:36 PM   #8
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 917

Rep: Reputation: 87
Quote:
Originally Posted by sertmusluman View Post
Yes it works properly now.
Previous versions were requiring a bit work to install an OS on VirtualBox as USER. Now can i directly install an OS as user?
You're getting that error because the root user can't create an X connection (any GUI program will give you that error). If you run an X session as root you won't get that. But it's a bad idea to run VBox as root anyway, so just run it as a regular user.
 
Old 12-25-2008, 02:46 AM   #9
ppr:kut
Member
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 356

Rep: Reputation: 91
Just a pointer here: VirtualBox binaries are installed suid root, so they *always* run as root....
 
Old 12-25-2008, 04:10 AM   #10
gefst
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Original Poster
Rep: Reputation: 17
Cuetzpallin, you can read about the differences between the two editions here:

http://www.virtualbox.org/wiki/Editions

Ilgar, how about a buildscript, with the patch? Perhaps you can submit it to slackbuilds.org for everyone. There is a buildscript for libcap1 for slackware 11 at slackbuilds.org but I don't see any patch. Perhaps you can expand this.

http://slackbuilds.org/repository/11...raries/libcap/

Gefst

Last edited by gefst; 12-25-2008 at 04:16 AM.
 
Old 12-25-2008, 04:23 AM   #11
ppr:kut
Member
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 356

Rep: Reputation: 91
Quote:
Ilgar, how about a buildscript, with the patch? Perhaps you can submit it to slackbuilds.org for everyone.
I guess this won't be accepted. libcap1 is old code, meant for the 2.4.x kernel series. For 2.6.x kernels there's libcap2, which is already included in Slackware 12.2 and won't be accepted by SlackBuilds.org either.
 
Old 12-25-2008, 07:07 AM   #12
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 917

Rep: Reputation: 87
Quote:
Originally Posted by ppr:kut View Post
I guess this won't be accepted. libcap1 is old code, meant for the 2.4.x kernel series. For 2.6.x kernels there's libcap2, which is already included in Slackware 12.2 and won't be accepted by SlackBuilds.org either.
In that case I should probably not bother. Isn't it strange that VBox asks for a 2.4 libcap library, because after all it's targeted for and it extensively uses 2.6 stuff...
 
Old 12-26-2008, 01:07 PM   #13
Cuetzpallin
Member
 
Registered: Feb 2008
Location: Monterrey, MX
Distribution: Slackware since 3.4 and love it!!!
Posts: 162

Rep: Reputation: 31
I installed VB and made the link trick and it works :-D
My question now is how can I activate my USB ports in order to attach an Ipodtouch to my virtual OS.
 
Old 12-26-2008, 01:41 PM   #14
jannekrille
Member
 
Registered: Jul 2005
Location: Dalsland, Sweden
Distribution: Slackware 13.0 and 13.1
Posts: 75

Rep: Reputation: 22
Usb in guest system

First off you need the guest additions, then you need to edit this line in /etc/rc.d/rc.S
Code:
/sbin/mount -v usbfs /proc/bus/usb -t usbfs
into this
Code:
/sbin/mount -v usbfs /proc/bus/usb -t usbfs -o devgid=10,devmode=0664
and finally add yourself in the group "wheel".

This is picked up from another thread here, which I can't find at the moment, so I cannot tell who's to credit. But it works well for me.

Jan-C
 
Old 12-26-2008, 03:56 PM   #15
zetabill
Member
 
Registered: Oct 2005
Location: Rhode Island, USA
Distribution: Slackware, Xubuntu
Posts: 348

Rep: Reputation: 30
I received an IPod Touch for Christmas (2G so no linux for me yet) and set this up in my Windows VM in VirtualBox 2.1.

I made the libcap link as above, I changed rc.S as above, I'm already in the wheel group, and I set up a USB filter in VirtualBox. When the device is plugged in and before you boot up the virtual machine, go to Settings->USB, enable USB and USB 2.0. On the right, click the "Add filter from Device" button (second one down) and it should autodetect the USB settings right from the IPod and you can add that filter (if not see if you can grab what its asking for using the lsusb -v command in shell). If you do not set up this filter and go to upgrade/jailbreak your firmware you could potentially brick your ipod! It's unlikely but I wouldn't take that chance.

As of today, there's no jailbreak for the 2G Ipod touch so it's important to seriously do your research on that before doing so. This might not apply to you but I feel obligated to mention it for others who might read this thread. It is too excellent of a device to brick despite the fact it is a prisoner in its own hardware with absolutely zero linux compatibility. Zero unless you have a USB-functional windows/mac virtual machine or physical host... and this method works beautifully in Slackware.

Last edited by zetabill; 12-26-2008 at 04:40 PM. Reason: If it works once without changing rc.S: after reboot, changing rc.S is necessary. Best to just do it...
 
  


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 in VirtualBox gmartin Slackware 6 07-03-2008 11:14 AM
A Mac OS X, VirtualBox and Slackware 12.1 batev Slackware 3 05-10-2008 02:14 AM
VirtualBox on Slackware won't install fr33KaZoidT Linux - Software 7 04-29-2008 02:44 AM
VirtualBox on Slackware: How? gargamel Slackware 94 04-26-2008 07:42 AM
Slackware and virtualbox packages satimis Slackware 6 07-21-2007 06:49 PM


All times are GMT -5. The time now is 06:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration