Version 4 (modified by 12 years ago) (diff) | ,
---|
GENI-in-a-Box Tips
1 Creating additional user accounts
GENI-in-a-Box creates an account for user 'alice' on the virtual machines created for your slice. You can add additional accounts on these virtual machines; the following steps show how you can add an account for user 'chris':
- Create a public-private key-pair for Chris using the command
ssh-keygen -t rsa
. The public key created (chris.pub
) must be moved to the directory~/.gcf
and the private key to~/.ssh
. In the example below we used an empty passphrase i.e. hit <return> on the prompt for a passphrase.$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/gibuser/.ssh/id_rsa): chris Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in pat. Your public key has been saved in chris.pub. The key fingerprint is: 26:1a:48:91:bb:94:82:b3:83:ea:4e:e2:f7:95:00:08 gibuser@GiB The key's randomart image is: +--[ RSA 2048]----+ |E .. | |. o. | |...+ | |+.+.. | |.=..... S | |+ . o.o. | |oo . o | |= . . | |o+. .. | +-----------------+ $ mv chris.pub ~/.gcf $ mv chris ~/.ssh $
- Make the following changes to the file
~/.gcf/omni_config
:- Look for the string
users =
in the file~/.gcf/omni_config
and add Chris to the list of users:users = Alice, Chris
- Look for the section
# Define users here.
and add the following lines to that section:[Chris] urn=urn:publicid:IDN+geni.net:gpo:gcf+user+chris keys=~/.gcf/chris.pub
- Look for the string
All accounts will have the same password, stored in the file ~/.gcf/passwords of the GENI-in-a-Box account you are logged into when you start up GENI-in-a-Box.
2. Copying files to/from GENI-in-a-Box and your computer
GENI-in-a-Box Ubuntu flavor: You can use VirtualBox shared folders to copy files to/from GENI-in-a-Box. See http://www.virtualbox.org/manual/ch04.html#sharedfolders for instructions.
GENI-in-a-Box Fedora flavor: At this time VirtualBox shared folders do not work with GENI-in-a-Box. If you are running on Mac OS or Linux, you can scp from Geni-in-a-Box to your computer to copy files to and from GENI-in-a-Box and your computer. If you are on Windows you will need to install and run the ssh daemon on your computer before you can use scp to it from GENI-in-a-Box.
3. Continuing your GENI-in-a-Box session across shutdowns of your computer
To continue your GENI-in-a-Box session across shutdowns of your computer, you must hibernate your GENI-in-a-Box virtual machine before shutting down your computer.
To hibernate a virtual machine running Fedora,