You can now insert the USB key into the Fresh PC. Before that
make sure that your PC BIOS is well configured. The PC should
boot on the USB key (not on the hard disk). The PC should have
virtualization enabled if you wish to host virtual machines.
And the PC should be able to restart automatically after a power
failure (APM setting).
You can now boot. Wait for the boot sequence to finish. At the end connect as root. Login is :"root" and password is "linux". Then run:
# Run command:
slapprepare
# A dialogue will then appear:
Automatically register new computer to Vifib? [y,n]:
# If you don't have any configuration file ready answer "Y" else "N"
# Note about slapos configuration: If you already have your slapos
configuration (slapos.cfg, certificate, key) place it in
"/etc/opt/slapos/" or "/etc/slapos" before running "slapprepare"
command. To use ipv6 provided by vifib add line "ipv6_interface =
tapVPN" in [slapformat] part in slapos.cfg .
# You will be asked for a name of a computer. Put something you will remember as identification
Number of SlapOS partitions for this computer?
# You can put the value you want. We advise 20.
Is this a virtual Machine? [y,n]:
# Answer "n"
Do you want to use SlapOS with a second disk ? [y,n]:
# If you want to use your computer's hard disk answer "y" else "n"
Do you want to use vpn to provide ipv6? [y,n]:
# It is better to put "y" to have a more stable ipv6
# Note about ipv6: If you don't have ipv6 on your network the key
will connect automaticaly in vpn to a server to get a reliable ipv6. If
your ipv6 connection is not reliable you can force the use of Vifib ipv6
by naming a file "openvpn-needed" in the directory containing
slapos.cfg (by default /etc/opt/slapos/) .
Do you want to force the use lxc on this computer? [y,n]:
# If you plan to use LXC on this container answer 'y' else 'n' (if you don't know what is LXC just answer 'n')
Do you want a remote ssh access? [y,n]:
# WARNING: Slapprepare installs a boot script which reset root password.
If you do not want to loose access to your computer answer 'Y' and prepare a valide ssh public key available on internet
# A dialogue will then ask you to confirm this values. If everything seems right confirm.
You will be asked for your slapos community login and password.
You will also be asked for a ssh key. Enter the url of your public ssh key. You can use services like pastebin to enter your public key and get the "raw" link.
Once all software is installed, SlapOS will format the server and, if
you have chosen the second disk option, the hard disk. Formatting the hard
disk means that all your
data will be lost, unless SlapOS was already installed. Formatting the server in SlapOS world means that 20 IPv6 adresses
and 20 tap interfaces will be created and bridged. 20 users and
20 directories will also be created. Every resource which is
executed on a SlapOS server is attached to its dedicated address,
user and directory. This creates a simple form of compartment
between processes without the overload of virtualization or chrooting.
The result of server formatting is uploaded to https://www.slapos.org.