Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: Adam on August 17, 2013, 09:26:38 PM

Title: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: Adam on August 17, 2013, 09:26:38 PM
Hi, I was getting this error message when trying to install VirtualBox Guest Additions. Please help

Quote
tc@Core1:/mnt/sr0$ sudo ./VBoxLinuxAdditions.run
Verifying archive integrity… All good.
Uncompressing VirtualBox 4.2.16 Guest Additions for Linux…………
VirtualBox Guest Additions installer
Copying additional installer modules …
Killed
tar: short read

tc@Core1:/mnt/sr0$

http://firewallengineer.wordpress.com/2013/08/18/how-to-install-virtualbox-guest-additions-in-tiny-core-linux/
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: bmarkus on August 18, 2013, 01:25:50 AM
Short read means corrupted source tar file.
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: Adam on August 18, 2013, 01:49:34 AM
Short read means corrupted source tar file.
Hmm.. is there any way to fix this issue?
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: beerstein on September 20, 2013, 11:46:05 AM
HI:
May I ask this question here?

I installed VB in TCL 4.7,X and I can see the icon in wbar. But when I click on it nothing happens.
Did somebody install VB in TCL?

If yes please help
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: andyj on September 20, 2013, 02:48:27 PM
Short read can also mean that your VM doesn't have enough RAM.
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: beerstein on September 23, 2013, 05:49:17 AM
thank you - you might be right!

Here is what I have on my system where TCL is running and VB is installed:
686.2 MiB
AMD Athlon(tm) XP 1800+
32-bit
80.0 GB
Gallium 0.4 on softpipe

I will try it on another machine with 2GB of RAM
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: sebus on April 30, 2016, 05:55:17 AM
Anybody has any idea how to install VB Additions (for mouse integration) in VB 5 using TC7 x86

(http://i63.tinypic.com/mipj4p.png)
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: Juanito on April 30, 2016, 06:36:59 AM
Load the compiletc extension
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: sebus on April 30, 2016, 04:27:38 PM
Not yet:

(http://i65.tinypic.com/amt5sh.png)
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: Rich on April 30, 2016, 08:07:27 PM
Hi sebus
I think you need to install:
linux-kernel-sources-env.tcz
Be sure to read the info file for instructions.
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: sebus on May 01, 2016, 03:29:38 AM
Well, I can install it, but headers are still not found
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: Juanito on May 01, 2016, 03:39:47 AM
Did you see the extension download the linux source?
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: sebus on May 01, 2016, 03:53:28 AM
cliorx must be run from /mnt/sd1/tce/ondemand

Had to increase memory assigned to the VM, so /tmp had enough free space

This way headers do download & additions install (apart from X)

(http://i66.tinypic.com/2djz3g6.png)

but mouse integration still does NOT work

sebus

edit:
Had to:
remove Xvesa.tcz from onboot.lst
tce-load -iw Xorg-7.X
as per this (http://forum.tinycorelinux.net/index.php?action=post;quote=72945;topic=13201.0;last_msg=88274)

That will make mouse integration work in THAT only seession, but not on reboot, as VBoxClient-all could not be added to .xinitrc as this file does NOT exist!
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: sebus on May 01, 2016, 04:52:26 AM
In fact VBoxClient-all does not exist anywhere on the system, so I have no idea what needs to be executed to get additions working again in another session

Some info about VBox additions here (https://wiki.archlinux.org/index.php/VirtualBox)
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: Juanito on May 01, 2016, 05:12:11 AM
You need to make an extension out of the guest additions.

Note that tinycore uses .xsession and .X.d rather than .xinitrc
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: sebus on May 01, 2016, 05:45:58 AM
And how would I do that?
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: Juanito on May 01, 2016, 05:53:09 AM
See:

http://wiki.tinycorelinux.net/wiki:creating_extensions
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: sebus on May 01, 2016, 09:40:09 AM
Thanks, that was already mentioned here (http://forum.tinycorelinux.net/index.php?topic=18806.0), or here (http://forum.tinycorelinux.net/index.php?topic=17941.0), but without any final solution.

I really can not see how to do it easily (do not have time to spend on it really)

VB is such bog standard and free software that it really should not be too difficult for somebody that knows this stuff better than me to do it & share current .tcz

sebus
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: Juanito on May 01, 2016, 10:15:15 AM
This will get you a list of the files installed:
Code: [Select]
$ touch mymarker
$ sudo ./VBoxLinuxAdditions.run
$ sudo find / -not -type 'd' -cnewer mymarker | grep -v "\/proc\/" | grep -v "^\/sys\/" | tee files
$ beaver [or some other text editor] files

..it will be reasonably obvious which files you can delete with the text editor.

Then use the list to make a tar achive of the files, move it to a temporary location and make an extension out of it:
Code: [Select]
$ sudo tar -T files --numeric-owner -zcvf vb_guest_additions.tar.gz
$ mkdir /tmp/pkg
$ cp vb_guest_additions.tar.gz /tmp/pkg
$ cd /tmp/pkg
$ sudo tar xf vb_guest_additions.tar.gz
$ rm vb_guest_additions.tar.gz
$ cd ..
$ sudo mksquashfs pkg/ vb_guest_additions.tcz
$ sudo chown tc:staff vb_guest_additions.tcz
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: sebus on May 01, 2016, 11:20:32 AM
Thanks, I assume it would need to be done on plain system (that never had any additions installed), right?
Will give it a go

sebus
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: Juanito on May 01, 2016, 11:44:07 AM
I believe "sudo ./VBoxLinuxAdditions.run" will over-write anything already installed
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: sebus on May 02, 2016, 07:19:04 AM
Done it on clean install (x86) just to test.

It does seem to work fine. Here (https://www.datafilehost.com/d/968e3f00) is working extension, VB 5.0.20

sebus
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: Juanito on May 02, 2016, 07:52:14 AM
The download site seems a bit dodgy - it offers me the choice of an .exe file less than 1MB or a java install from a url that cannot possibly be genuine...
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: sebus on May 02, 2016, 09:35:51 AM
UNCHECK the downloader!

(http://i68.tinypic.com/2ytxpfm.png)
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: Juanito on May 02, 2016, 12:46:32 PM
I couldn't even see that it was checked, but got it now.

You need to move things around to /usr/local/{bin,lib,sbin,share} to submit it as an extension  ;)
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: sebus on May 02, 2016, 05:11:19 PM
I will pass on submitting it. Anybody with an ounce of brain can follow your perfect instructions!

Thanks

sebus
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: Juanito on May 03, 2016, 08:59:20 AM
The idea is that you give something back in return for the help you received...
Title: Re: How to install VirtualBox Guest Additions in Tiny Core Linux?
Post by: sebus on May 05, 2016, 04:04:27 PM
Well, I have. I have tested the procedure & it works. I do not know how legally it looks & what needs to be included (legal notices etc)
Also no way I would be able to answer any questions from anybody, and it is all ONLY good till VB gets updated, which can be tomorrow.

So anybody can follow themselves