← Back to team overview

torios team mailing list archive

Some help with virtual box image

 

Hi,
For anyone wanting to use the virtual box image, this is the thread I
intend to use to address those issues, and update everyone with
answers...  this is basically our pre-alpha test.

The file I uploaded is a virtual DISK file.  So load it into a premade
machine with whatever 'hardware' specs you want to test.

I do hope I linked in the correct image for everyone :)  So...
if you are having the long boot time 'waiting for network configuration'
screen (may or may not...)
I don't remember if I fixed this in the vdi or not... sorry.
open a terminal and
sudo pico /etc/network/interfaces

comment out everything EXCEPT
|auto lo iface lo inet loopback|
Those other lines were there to get network at first while building from
the mini... if this doesn't happen in the image, excuse me, as I built
that one and I am working on the real one simultaneously (as well as a
few other things :)

To get shutdown to work right you need to modify the way xinit
initializes everything..
Don't worry it is pretty easy, though figuring this out took me WAY too long

ok, so in /etc/X11/xinit there is a file called xserverrc
it looks like this:
!#/bin/bash
exec /usr/bin/X -nolisten tcp "$@"
And it works fine if you are using a display manager such as lightdm, or
whatever..
If you aren't you will not be able to do a lot of critical things... 
which is what happened to me.
So you can simply copy that file to your $HOME  via:
cp /etc/X11/xinit/xserverrc ~/.xserverrc

Now, you need to make it activate the virtual terminal you are using
vt$XDG_VTNR

in bash (for all of you who don't know this)
the $XDG_VTNR is a variable.
The $ tells bash to expand that variable into the real value.
this variable is a built in shell variable, like $HOME
you can run echo $VARIABLE to view the contents... where VARIABLE is an
actual variable
i.e.
echo $XDG_VTNR
this will give you a number, like 7
echo $HOME
will tell you:
/home//username/
echo $0 will tell you your shell
i.e. bash

and so on....

BACK TO THE POINT :)
Add the vt$XDG_VTNR into the script so it will use your virtual terminal


!#/bin/bash
exec /usr/bin/X -nolisten tcp vt$XDG_VTNR "$@"

if your $XDG_VTNR is actually 7
the computer will see this as
exec /usr/bin/X -nolisten tcp vt*7* "$@"

I am writing all of this down, so everyone here can do this!
For all of you who know nothing about Bash, you really should learn, the
more I learn the more amazing it becomes.

p.s. sorry this was so long...

-- 
Regards