SlapOS Home SlapOS

    How To Install SlapOS Standalone

    How to install SlapOS Standalone with the single line installer.
    • Last Update:2021-11-03
    • Version:001
    • Language:en

    How to Install SlapOS Standalone

    The currently recommended way of installing a SlapOS Standalone is using the single line installer.

    Verify Linux Version

    Example of Debian: 

    debian@slapostest:~$ lsb_release -a
    No LSB modules are available.
    Distributor ID:    Debian
    Description:    Debian GNU/Linux 10 (buster)
    Release:    10
    Codename:    buster
    

    Start by ssh-ing into your server or using your own Linux PC and verifying the Linux version using:

    lsb_release -a

    Call Single Line Installer

    su - # change to root user in Debian
    wget https://deploy.erp5.net/slapos-standalone
    bash slapos-standalone

    Change to root user and call the single line installer.

    This will download, build and install the required packages (slapos-node, slapos-proxy), configure the computer as a SlapOS standalone node. 

     

    Installer Tasks

    • Ensure software directory exists ​​
    • Ensure instance directory exists
    • Install packages using apt Uninstall firewalld on CentOS
    • Install re6stnet on CentOS Download slapos.node from Shacache for CentOS 7
    • Install re6stnet on CentOS 7
    • Check if configuration exists already
    • Configure SlapOS with slapos configure local
    • Disable multimaster
    • Wait for proxy
    • Add ipv6 to lo interface
    • Run slapos format for initial bootstrap
    • Set ownership for /opt/slapgrid
    • Disable "slapos node boot"
    The Slapos standalone installer basically do these tasks. You can also refer to the source code

    Result of the Installer

    PLAY RECAP *********************************************************************
    127.0.0.1                  : ok=17   changed=11   unreachable=0    failed=0  
    
    root@debian:~# slapos --version
    slapos 1.6.2
    
    

    With 0 failed as the result, the SlapOS Standalone has been installed on your PC or your server. You can check your SlapOS version by slapos --version

    Local Node Reference

    root@debian:~# slapos proxy show --cfg /etc/opt/slapos/slapos-proxy.cfg
    Using database: /opt/slapos/slapproxy.db
    table computer14
    -------------------------------------------------
       reference    address         netmask          
    -------------------------------------------------
     local_computer fd46::1 ffff:ffff:ffff:ffff::/64 
    -------------------------------------------------
     
    table software14: empty
     
    table partition14: empty
     
    table slave14: empty
    

    As the output indicates, "local_computer" is your local node(computer) name. Keep that in mind, you will need this for the further lessons.