From 0a0d5302050acba72f62b2599132a500514e6af8 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 18 Jan 2015 20:19:09 +0000 Subject: [PATCH] Updating the documentation for menuconfig --- README.md | 72 +++++++- doc/installation.org | 208 ++++++++++++----------- man/freedombone.1.gz | Bin 3528 -> 3721 bytes src/freedombone-prep | 2 +- website/installation.html | 346 +++++++++++++++++++++----------------- 5 files changed, 369 insertions(+), 259 deletions(-) diff --git a/README.md b/README.md index 25d63fcb..8f1e1173 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,10 @@ Freedombone has an emphasis on security and privacy, and when installed on a Bea Freedombone is, and shall remain, 100% free software. Non-free repositories are removed automatically upon installation. -Installation -============ +Preparation for the Beaglebone Black +==================================== +This section is specific to the Beaglebone Black hardware. If you're not using that hardware then just skip to the next section. + To get started you will need: - A Beaglebone Black @@ -40,12 +42,50 @@ You can either install from a debian package or manually as follows: Plug the microSD card into your laptop/desktop and then run the *freedombone-prep* command. For example: - freedombone-prep -d /dev/sdX --ip --iprouter + freedombone-prep -d /dev/sdX --ip freedombone_IP_address --iprouter router_IP_address where /dev/sdX is the device name for the microSD card. Often it's /dev/sdb or /dev/sdc, depending upon how many drives there are on your system. The script will download the Debian installer and update the microSD card. It can take a while, so be patient. When the initial setup is done follow the instructions on screen to run the main freedombone command. +Checklist +========= +Before running the freedombone command you will need a few things. + + * Have some domains, or subdomains, registered with a dynamic DNS service + * System with a new installation of Debian Jessie + * Ethernet connection to an internet router + * It is possible to forward ports from the internet router to the system + * If you want to set up a social network or microblog then you will need SSL certificates corresponding to those domains + * Have ssh access to the system + +GPG Keys +======== +If you have existing GPG keys then copy the .gnupg directory onto the system. + + scp -r ~/.gnupg username@freedombone_IP_address:/home/username + +Interactive Setup +================= +The interactive server configuration setup is recommended for most users. On the system where freedombone is to be installed create a configuration file. + + ssh username@freedombone_IP_address + su + apt-get install git + git clone https://github.com/bashrc/freedombone + cd freedombone + make install + +Now the easiest way to install the system is via the interactive setup. + + freedombone menuconfig + +You can select which variant you wish to install and then enter the details as requested. + +Non-Interactive Setup +===================== +If you don't want to install interactively then it's possible to manually create a configuration file as follows: + On the system where freedombone is to be installed create a configuration file. ssh username@freedombone_IP_address @@ -96,7 +136,9 @@ The above command should be run in the same directory in which your configuratio Also see the manpage for additional options which can be used instead of a configuration file. If you don't specify a variant type with the final option then everything will be installed. If you have a *freedombone.cfg* file then it should be in the same directory from which the *freedombone* command is run. -Installation is not quick, and depends upon which variant you choose and your internet bandwidth. Allow about three hours for a full installation on the Beaglebone Black. On the Beaglebone installation is in two parts, since a reboot is needed to enable the hardware random number generator and zram. +Post-Setup +========== +Setup of the server and installation of all the relevant packages is not quick, and depends upon which variant you choose and your internet bandwidth. Allow about three hours for a full installation on the Beaglebone Black. On the Beaglebone installation is in two parts, since a reboot is needed to enable the hardware random number generator and zram. When done you can ssh into the Freedombone with: @@ -104,6 +146,22 @@ When done you can ssh into the Freedombone with: Any manual post-installation setup instructions or passwords can be found in /home/username/README. You should remove any passwords from that file and store them within a password manager such as KeepassX. -Non-Beaglebone hardware -======================= -It's also possible to install Freedombone onto other hardware. Any system with a fresh installation of Debian Jessie will do. Just make sure that you change the variable INSTALLING_ON_BBB to "no" within *freedombone.cfg* or do not include the *--bbb* option within the *freedombone* command. Obviously, you don't need to run the *freedombone-prep* command on non-Beaglebone systems. +On your internet router, typically under firewall settings, open the following ports and forward them to your server. + + | Service | Ports | + |---------+------------| + | HTTP | 80 | + | HTTPS | 443 | + | SSH | 2222 | + | DLNA | 1900 | + | DLNA | 8200 | + | XMPP | 5222..5223 | + | XMPP | 5269 | + | XMPP | 5280..5281 | + | IRC | 6697 | + | IRC | 9999 | + | Git | 9418 | + | Email | 25 | + | Email | 587 | + | Email | 465 | + | Email | 993 | diff --git a/doc/installation.org b/doc/installation.org index ac5b8837..b544309c 100644 --- a/doc/installation.org +++ b/doc/installation.org @@ -7,18 +7,12 @@ #+BEGIN_CENTER [[./images/logo.png]] #+END_CENTER -| [[file:index.html][Home]] | [[Download the code]] | [[On a Beaglebone Black]] | [[On a laptop/PC/netbook]] | [[Internet Router]] | +| [[file:index.html][Home]] | [[Preparation for the Beaglebone Black]] | [[Checklist]] | [[GPG Keys]] | [[Interactive Setup]] | [[Non-Interactive Setup]] | [[Post-Setup]] | -* Download and install the code -Firstly you'll need to download the code as follows: -#+BEGIN_SRC bash -sudo apt-get install git -git clone https://github.com/bashrc/freedombone -cd freedombone -make install -#+END_SRC -* On a Beaglebone Black +* Preparation for the Beaglebone Black +This section is specific to the Beaglebone Black hardware. If you're not using that hardware then just skip to the next section. + To get started you will need: - A Beaglebone Black @@ -27,59 +21,133 @@ To get started you will need: - Optionally a 5V 2A power supply for the Beaglebone Black - Access to the internet via a router with ethernet sockets - USB thumb drive (for backups or storing media) - - One or more subdomains created on https://freedns.afraid.org + - One or more domains available via a dynamic DNS provider, such as https://freedns.afraid.org - A purchased domain name and SSL certificate (only needed for Red Matrix) - A laptop or desktop machine with the ability to write to a microSD card (might need an adaptor) You will also need to know, or find out, the IP address of your internet router and have a suitable static IP address for the Beaglebone on your local network. The router should allow you to forward ports to the Beaglebone (often this is under firewall or "advanced" settings). +You can either install from a debian package or manually as follows: + +#+BEGIN_SRC bash +sudo apt-get install git +git clone https://github.com/bashrc/freedombone +cd freedombone +sudo make install +#+END_SRC + Plug the microSD card into your laptop/desktop and then run the *freedombone-prep* command. For example: #+BEGIN_SRC bash -freedombone-prep -d /dev/sdX --ip --iprouter +freedombone-prep -d /dev/sdX --ip freedombone_IP_address --iprouter router_IP_address #+END_SRC -where */dev/sdX* is the device name for the microSD card. Often it's */dev/sdb* or */dev/sdc*, depending upon how many drives there are on your system. The script will download the Debian installer and update the microSD card. It can take a while, so be patient. +where /dev/sdX is the device name for the microSD card. Often it's /dev/sdb or /dev/sdc, depending upon how many drives there are on your system. The script will download the Debian installer and update the microSD card. It can take a while, so be patient. -When the initial setup is done follow the instructions on screen to run the main Freedombone script. You can create a separate configuration file called *freedombone.cfg* which contains those variables. Variables which you might want to put into a *freedombone.cfg* file are: +When the initial setup is done follow the instructions on screen to run the main freedombone command. + +* Checklist +Before running the freedombone command you will need a few things. + + * Have some domains, or subdomains, registered with a dynamic DNS service + * System with a new installation of Debian Jessie + * Ethernet connection to an internet router + * It is possible to forward ports from the internet router to the system + * If you want to set up a social network or microblog then you will need SSL certificates corresponding to those domains + * Have ssh access to the system + +* GPG Keys +If you have existing GPG keys then copy the .gnupg directory onto the system. #+BEGIN_SRC bash -MY_EMAIL_ADDRESS= -MY_NAME= -MY_BLOG_TITLE= -MY_BLOG_SUBTITLE=<subtitle of your blog> -SSH_PORT=2222 -FULLBLOG_DOMAIN_NAME=<freedns subdomain for your blog> -FULLBLOG_FREEDNS_SUBDOMAIN_CODE=<freedns subdomain code for your blog> -MICROBLOG_DOMAIN_NAME=<domain name for your microblog> -MICROBLOG_FREEDNS_SUBDOMAIN_CODE=1234 -REDMATRIX_DOMAIN_NAME=<domain name for your Red Matrix site> -OWNCLOUD_DOMAIN_NAME=<freedns subdomain for your Owncloud site> -OWNCLOUD_FREEDNS_SUBDOMAIN_CODE=<freedns subdomain code for your Owncloud site> -WIKI_TITLE=<title of your wiki> -WIKI_DOMAIN_NAME=<freedns subdomain for your wiki> -WIKI_FREEDNS_SUBDOMAIN_CODE=<freedns subdomain code for your wiki> -MY_GPG_PUBLIC_KEY=<exported public key filename> -MY_GPG_PRIVATE_KE=<exported private key filename> -PUBLIC_MAILING_LIST=<name of your mailing list> -LOCAL_NETWORK_STATIC_IP_ADDRESS=192.168.1.60 -ROUTER_IP_ADDRESS=192.168.1.254 +scp -r ~/.gnupg username@freedombone_IP_address:/home/username +#+END_SRC + +* Interactive Setup +The interactive server configuration setup is recommended for most users. On the system where freedombone is to be installed create a configuration file. + +#+BEGIN_SRC bash +ssh username@freedombone_IP_address +su +apt-get install git +git clone https://github.com/bashrc/freedombone +cd freedombone +make install +#+END_SRC + +Now the easiest way to install the system is via the interactive setup. + +#+BEGIN_SRC bash +freedombone menuconfig +#+END_SRC + +You can select which variant you wish to install and then enter the details as requested. + +* Non-Interactive Setup +If you don't want to install interactively then it's possible to manually create a configuration file as follows: + +On the system where freedombone is to be installed create a configuration file. + +#+BEGIN_SRC bash +ssh username@freedombone_IP_address +su +apt-get install git +git clone https://github.com/bashrc/freedombone +cd freedombone +make install +nano /home/username/freedombone/freedombone.cfg +#+END_SRC + +Add the following, and set the values as needed. + +#+BEGIN_SRC bash +MY_EMAIL_ADDRESS= +MY_NAME= +MY_BLOG_TITLE= +MY_BLOG_SUBTITLE= +FULLBLOG_DOMAIN_NAME= +MICROBLOG_DOMAIN_NAME= +REDMATRIX_DOMAIN_NAME= +OWNCLOUD_DOMAIN_NAME= +WIKI_DOMAIN_NAME= +WIKI_TITLE= ENABLE_CJDNS=no +LOCAL_NETWORK_STATIC_IP_ADDRESS= +ROUTER_IP_ADDRESS= #+END_SRC -The GPG public/private key variables are for the filenames of exported GPG keys, and if a private key filename is given then it will be automatically shredded after import. +Both of the IP addresses are local IP addresses, typically of the form 192.168.x.x, with one being for the system and the other being for the internet router. -The [[https://freedns.afraid.org/][FreeDNS]] subdomain codes can be found under "Dynamic DNS" and "quick cron example". On the last line it will be the string located between the '?' and the '==' characters. - -The syntax of the *freedombone* command is: +If you are using FreeDNS as a dynamic DNS provider then you can add the following to your configuration file, setting the subdomain codes as appropriate. You can find the codes on the FreeDNS site under "Dynamic DNS" followed by "quick cron example" then look for the code on the last line between the ? and = characters. #+BEGIN_SRC bash -freedombone --bbb -d [domain name] -u [username] -c [FreeDNS subdomain code] --ddnsuser [FreeDNS username] --ddnspass [FreeDNS password] -s [optional variant type] +FULLBLOG_FREEDNS_SUBDOMAIN_CODE= +REDMATRIX_FREEDNS_SUBDOMAIN_CODE= +MICROBLOG_FREEDNS_SUBDOMAIN_CODE= +OWNCLOUD_FREEDNS_SUBDOMAIN_CODE= +WIKI_FREEDNS_SUBDOMAIN_CODE= #+END_SRC +Save the configuration file and exit from your editor. + +Now you can begin the installation. If you are doing this on a Beaglebone Black: + +#+BEGIN_SRC bash +freedombone --bbb -d [default domain name] -u [username] --ddns [dynamic DNS provider domain] --ddnsuser [dynamic DNS username] --ddnspass [dynamic DNS password] +#+END_SRC + +Or on any other system don't include the *--bbb* option. + +#+BEGIN_SRC bash +freedombone -d [default domain name] -u [username] --ddns [dynamic DNS provider domain] --ddnsuser [dynamic DNS username] --ddnspass [dynamic DNS password] +#+END_SRC + +The above command should be run in the same directory in which your configuration file exists. You can use any of your domains as the default one, but typically the default domain is the same as the one for your wiki. If you are using FreeDNS as the dynamic DNS provider then also add the -c option to specify the code corresponding to the subdomain. + Also see the manpage for additional options which can be used instead of a configuration file. If you don't specify a variant type with the final option then everything will be installed. If you have a *freedombone.cfg* file then it should be in the same directory from which the *freedombone* command is run. -Installation is not quick, and depends upon which variant you choose and your internet bandwidth. Allow about three hours for a full installation on the Beaglebone Black. On the Beaglebone installation is in two parts, since a reboot is needed to enable the hardware random number generator and zram. +* Post-Setup +Setup of the server and installation of all the relevant packages is not quick, and depends upon which variant you choose and your internet bandwidth. Allow about three hours for a full installation on the Beaglebone Black. On the Beaglebone installation is in two parts, since a reboot is needed to enable the hardware random number generator and zram. When done you can ssh into the Freedombone with: @@ -87,65 +155,9 @@ When done you can ssh into the Freedombone with: ssh username@domain -p 2222 #+END_SRC -Any manual post-installation setup instructions or passwords can be found in */home/username/README*. You should remove any passwords from that file and store them within a password manager such as KeepassX. +Any manual post-installation setup instructions or passwords can be found in /home/username/README. You should remove any passwords from that file and store them within a password manager such as KeepassX. -* On a laptop/PC/netbook -It's also possible to install Freedombone onto other hardware, including other types of single board computer. Any system with a fresh installation of Debian Jessie will do. Just make sure that you change the variable INSTALLING_ON_BBB to "no" within *freedombone.cfg* or do not include the *--bbb* option within the *freedombone* command. Obviously, you don't need to run the *freedombone-prep* command on non-Beaglebone systems. - - * Download the [[https://www.debian.org/devel/debian-installer][Debian Jessie "netinst" installer]] - * Use [[https://apps.ubuntu.com/cat/applications/usb-creator-gtk/][Startup Disk Creator]] or [[https://en.wikipedia.org/wiki/UNetbootin][Unetbootin]] to copy the netinst image to a USB thumb drive - * Connect the machine to your internet router using an ethernet patch lead. Freedombone is a fully free (as in freedom) system and so wifi drivers may not work. A wired network connection will give better performance anyway. - * On the target machine boot from the USB drive and go through the installation. It's a good idea to use LVM and disk encryption together with a long passphrase which will be hard to crack by brute force methods. Keep a note of the passphrase in your password manager. - * Within the installer unselect the *print server* and select the *ssh server* - * After installation use ssh to access the machine and become the root user -#+BEGIN_SRC bash -ssh username@192.168.1.60 -su -#+END_SRC - * If you have GPG keys you may wish to transfer them to the */home/usernname* directory. If the machine has a second USB socket or an SD card slot then that may be the most secure way to do it. - * Run the following commands: -#+BEGIN_SRC bash -cd /home/<username> -apt-get install git -git clone https://github.com/bashrc/freedombone -cd freedombone -make install -nano freedombone.cfg -#+END_SRC - - * Now create a configuration file, such as the following, filling in the details for your [[https://freedns.afraid.org/][FreeDNS subdomains]]. -#+BEGIN_SRC bash -INSTALLING_ON_BBB=no -MY_EMAIL_ADDRESS=<your email address> -MY_NAME=<your name/nick/pseudonym> -MY_BLOG_TITLE=<title of your blog> -MY_BLOG_SUBTITLE=<subtitle of your blog> -SSH_PORT=2222 -FULLBLOG_DOMAIN_NAME=<freedns subdomain for your blog> -FULLBLOG_FREEDNS_SUBDOMAIN_CODE=<freedns subdomain code for your blog> -MICROBLOG_DOMAIN_NAME=<domain name for your microblog> -MICROBLOG_FREEDNS_SUBDOMAIN_CODE=1234 -REDMATRIX_DOMAIN_NAME=<domain name for your Red Matrix site> -OWNCLOUD_DOMAIN_NAME=<freedns subdomain for your Owncloud site> -OWNCLOUD_FREEDNS_SUBDOMAIN_CODE=<freedns subdomain code for your Owncloud site> -WIKI_TITLE=<title of your wiki> -WIKI_DOMAIN_NAME=<freedns subdomain for your wiki> -WIKI_FREEDNS_SUBDOMAIN_CODE=<freedns subdomain code for your wiki> -MY_GPG_PUBLIC_KEY=<exported public key filename> -MY_GPG_PRIVATE_KEY=<exported private key filename> -PUBLIC_MAILING_LIST=<name of your mailing list> -LOCAL_NETWORK_STATIC_IP_ADDRESS=192.168.1.60 -ROUTER_IP_ADDRESS=192.168.1.254 -ENABLE_CJDNS=no -#+END_SRC - - * Save and exit, then run: -#+BEGIN_SRC bash -freedombone -d [your wiki domain name] -u [your username] -c [your wiki FreeDNS domain code] --ddnsuser [FreeDNS username] --ddnspass [FreeDNS password] -#+END_SRC - -* Internet Router -On your internet router, typically under firewall settings, open the following ports and forward them to the Freedombone. +On your internet router, typically under firewall settings, open the following ports and forward them to your server. | Service | Ports | |---------+------------| diff --git a/man/freedombone.1.gz b/man/freedombone.1.gz index 1a35cfb905f953a33b57756a36ee47565450426b..fc6c8d7573a15fb292250675abe6f7d568bf0f44 100644 GIT binary patch literal 3721 zcmV;44tDV$iwFR761-FZ1Lay<b0WtTe&<(o@v_NApw)VJEve$fAh8l&1Qa04n~h5~ zmj=dyX*}H{gv*uRp6{IQndw1jotIRlDwJ(OU(e+`*LHh$E#{e&v08^JmEuG+PremD z1gUuY=Hz`-H1W?zZ~j)x?3ETbL7E4vW~0%bUW?|ibJJ@!{A2#v5*@KrYbmh)QD!1i z={#BFSzr>Cx^2_X!_j!!pEer;AAfr*7GLl^NYbB0D;HmKoRS7>iC<cL(K~JATA1BN z{`{)Jn_ElKYAxkzBmB>FskVYf8*X4N)7(;0uIUAOCz902EQn0<DDhpJV70P@x<##4 z7>2c@Mc*z<(uGi|=*nQRl1zJd6+{n~s2m%K^x8&}pfIYqN0=pqWH}17-4|n@W#8L( zDd$1HGQv%eIP7YT)$Ra~^-4w+6G>e>SY^OwBnF+K=#NDZ$C=bxsJTa!zdKX8@whp> zjb)iiBkbyGe;lW}cKhWHOyK&<;Z)%4$0Ww#mc9C}nhX!_DgaX7w+XcV`aW8*Raxv% z6k%heVp%7%E_kvAI)m0#*Wu($g)6lvw%-&3FKpN*4@vE+I}E(AR&CR0rSiC3KXL;v ztj}b;4osFj6&ohSzzZ9E!uivEM)(0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YjNQu&VCXL<<(hoU*ZO#Ga(286Gvk6O8kXmjF_%`x0FR`~k6BPU+t z{n&p|jeH?f8{ywrxIZ-bXwLm@!Kdcm5q$K&k4R4I3{DR4Bxj9t9RB}!`#Q3zo2d<! zOSEI7Ww&!%;}MOEd|+o;QoX*Y0UEW0$7Vk}Y$2gXtg~n+<l3rMuSM^dC<7gu*|-6j z447`>QbVR6avnqC#j}_=yn7277m8n^2gL@`SgJAqqu98NjX?)rO}JO@=8G=c(m>p3 zYmt`3UjrR{pX)%wCrrP1=v)1_PCv*yw{LGRfk;<kJoxsT*W*8a!>hv>SY`}Zz7oTm z-s|wb*zSgpKSt~P-FB+~v5HJ~{qSDJE1lmdvz+p-dlg(U!{E1lSLfej{mvDHB>(^e C)!tkH diff --git a/src/freedombone-prep b/src/freedombone-prep index 8073ceb6..d314173d 100755 --- a/src/freedombone-prep +++ b/src/freedombone-prep @@ -183,7 +183,7 @@ echo ' cd freedombone' echo '' echo 'Finally you can use the freedombone command to install a server configuration:' echo '' -echo " freedombone --bbb -d [domain] -u [username] --ip $BBB_FIXED_IP_ADDRESS --iprouter $ROUTER_IP_ADDRESS --ddns [dynamic DNS provider domain] --ddnsuser [dynamic DNS username] --ddnspass [dynamic DNS password]" +echo ' freedombone menuconfig' echo '' echo 'See the manpage for more information on how to use the freedombone command.' exit 0 diff --git a/website/installation.html b/website/installation.html index fce28439..759deb9c 100644 --- a/website/installation.html +++ b/website/installation.html @@ -4,7 +4,7 @@ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title> - + @@ -167,38 +167,33 @@ for the JavaScript code in this tag. + + + + Home -Download the code -On a Beaglebone Black -On a laptop/PC/netbook -Internet Router +Preparation for the Beaglebone Black +Checklist +GPG Keys +Interactive Setup +Non-Interactive Setup +Post-Setup +
-

Download the code

+

Preparation for the Beaglebone Black

-Firstly you'll need to download the code as follows: +This section is specific to the Beaglebone Black hardware. If you're not using that hardware then just skip to the next section.

-
- -
sudo apt-get install git
-git clone https://github.com/bashrc/freedombone
-cd freedombone
-
-
-
-
-
-

On a Beaglebone Black

-

To get started you will need:

@@ -216,7 +211,7 @@ To get started you will need:
  • USB thumb drive (for backups or storing media)
  • -
  • One or more subdomains created on https://freedns.afraid.org/ +
  • One or more domains available via a dynamic DNS provider, such as https://freedns.afraid.org/
  • A purchased domain name and SSL certificate (only needed for Red Matrix)
  • @@ -229,77 +224,213 @@ You will also need to know, or find out, the IP address of your internet router

    -Check that within initial_setup.sh the router IP address and static IP for the Beaglebone are set correctly. -

    - -

    -Plug the microSD card into your laptop/desktop and then run the initial_setup.sh script. For example: +You can either install from a debian package or manually as follows:

    -
    ./initial_setup.sh /dev/sdX
    +
    sudo apt-get install git
    +git clone https://github.com/bashrc/freedombone
    +cd freedombone
    +sudo make install
     

    -where /dev/sdX is the device name for the microSD card. Often it's /dev/sdb or /dev/sdc, depending upon how many drives there are on your system. The script will download the Debian installer and update the microSD card. It can take a while, so be patient. -

    - -

    -When the initial setup is done follow the instructions on screen to run the main Freedombone script. You can either edit the variables within the install-freedombone.sh script directly, or create a separate configuration file called freedombone.cfg which contains those variables. Variables which you might want to put into a freedombone.cfg file are: +Plug the microSD card into your laptop/desktop and then run the freedombone-prep command. For example:

    -
    MY_EMAIL_ADDRESS=<your email address>
    -MY_NAME=<your name/nick/pseudonym>
    -MY_BLOG_TITLE=<title of your blog>
    -MY_BLOG_SUBTITLE=<subtitle of your blog>
    -SSH_PORT=2222
    -FULLBLOG_DOMAIN_NAME=<freedns subdomain for your blog>
    -FULLBLOG_FREEDNS_SUBDOMAIN_CODE=<freedns subdomain code for your blog>
    -MICROBLOG_DOMAIN_NAME=<domain name for your microblog>
    -MICROBLOG_FREEDNS_SUBDOMAIN_CODE=1234
    -REDMATRIX_DOMAIN_NAME=<domain name for your Red Matrix site>
    -OWNCLOUD_DOMAIN_NAME=<freedns subdomain for your Owncloud site>
    -OWNCLOUD_FREEDNS_SUBDOMAIN_CODE=<freedns subdomain code for your Owncloud site>
    -WIKI_TITLE=<title of your wiki>
    -WIKI_DOMAIN_NAME=<freedns subdomain for your wiki>
    -WIKI_FREEDNS_SUBDOMAIN_CODE=<freedns subdomain code for your wiki>
    -MY_GPG_PUBLIC_KEY=<exported public key filename>
    -MY_GPG_PRIVATE_KE=<exported private key filename>
    -PUBLIC_MAILING_LIST=<name of your mailing list>
    -LOCAL_NETWORK_STATIC_IP_ADDRESS=192.168.1.60
    -ROUTER_IP_ADDRESS=192.168.1.254
    +
    freedombone-prep -d /dev/sdX --ip freedombone_IP_address --iprouter router_IP_address
    +
    +
    + +

    +where /dev/sdX is the device name for the microSD card. Often it's /dev/sdb or /dev/sdc, depending upon how many drives there are on your system. The script will download the Debian installer and update the microSD card. It can take a while, so be patient. +

    + +

    +When the initial setup is done follow the instructions on screen to run the main freedombone command. +

    +
    +
    + +
    +

    Checklist

    +
    +

    +Before running the freedombone command you will need a few things. +

    + +
      +
    • Have some domains, or subdomains, registered with a dynamic DNS service +
    • +
    • System with a new installation of Debian Jessie +
    • +
    • Ethernet connection to an internet router +
    • +
    • It is possible to forward ports from the internet router to the system +
    • +
    • If you want to set up a social network or microblog then you will need SSL certificates corresponding to those domains +
    • +
    • Have ssh access to the system +
    • +
    +
    +
    + +
    +

    GPG Keys

    +
    +

    +If you have existing GPG keys then copy the .gnupg directory onto the system. +

    + +
    + +
    scp -r ~/.gnupg username@freedombone_IP_address:/home/username
    +
    +
    +
    +
    + +
    +

    Interactive Setup

    +
    +

    +The interactive server configuration setup is recommended for most users. On the system where freedombone is to be installed create a configuration file. +

    + +
    + +
    ssh username@freedombone_IP_address
    +su
    +apt-get install git
    +git clone https://github.com/bashrc/freedombone
    +cd freedombone
    +make install
    +
    +
    + +

    +Now the easiest way to install the system is via the interactive setup. +

    + +
    + +
    freedombone menuconfig
    +
    +
    + +

    +You can select which variant you wish to install and then enter the details as requested. +

    +
    +
    + +
    +

    Non-Interactive Setup

    +
    +

    +If you don't want to install interactively then it's possible to manually create a configuration file as follows: +

    + +

    +On the system where freedombone is to be installed create a configuration file. +

    + +
    + +
    ssh username@freedombone_IP_address
    +su
    +apt-get install git
    +git clone https://github.com/bashrc/freedombone
    +cd freedombone
    +make install
    +nano /home/username/freedombone/freedombone.cfg
    +
    +
    + +

    +Add the following, and set the values as needed. +

    + +
    + +
    MY_EMAIL_ADDRESS=
    +MY_NAME=
    +MY_BLOG_TITLE=
    +MY_BLOG_SUBTITLE=
    +FULLBLOG_DOMAIN_NAME=
    +MICROBLOG_DOMAIN_NAME=
    +REDMATRIX_DOMAIN_NAME=
    +OWNCLOUD_DOMAIN_NAME=
    +WIKI_DOMAIN_NAME=
    +WIKI_TITLE=
     ENABLE_CJDNS=no
    +LOCAL_NETWORK_STATIC_IP_ADDRESS=
    +ROUTER_IP_ADDRESS=
     

    -The GPG public/private key variables are for the filenames of exported GPG keys, and if a private key filename is given then it will be automatically shredded after import. +Both of the IP addresses are local IP addresses, typically of the form 192.168.x.x, with one being for the system and the other being for the internet router.

    -The FreeDNS subdomain codes can be found under "Dynamic DNS" and "quick cron example". On the last line it will be the string located between the '?' and the '==' characters. -

    - -

    -The syntax of the install-freedombone.sh script is: +If you are using FreeDNS as a dynamic DNS provider then you can add the following to your configuration file, setting the subdomain codes as appropriate. You can find the codes on the FreeDNS site under "Dynamic DNS" followed by "quick cron example" then look for the code on the last line between the ? and = characters.

    -
    ./install-freedombone.sh <your wiki domain name> <your username> <your wiki FreeDNS domain code> [optional variant type]
    +
    FULLBLOG_FREEDNS_SUBDOMAIN_CODE=
    +REDMATRIX_FREEDNS_SUBDOMAIN_CODE=
    +MICROBLOG_FREEDNS_SUBDOMAIN_CODE=
    +OWNCLOUD_FREEDNS_SUBDOMAIN_CODE=
    +WIKI_FREEDNS_SUBDOMAIN_CODE=
     

    -If you don't specify a variant type with the final option then everything will be installed. If you have a freedombone.cfg file then it should be in the same directory as install-freedombone.sh. +Save the configuration file and exit from your editor.

    -Installation is not quick, and depends upon which variant you choose and your internet bandwidth. Allow about three hours for a full installation on the Beaglebone Black. On the Beaglebone installation is in two parts, since a reboot is needed to enable the hardware random number generator and zram. +Now you can begin the installation. If you are doing this on a Beaglebone Black: +

    + +
    + +
    freedombone --bbb -d [default domain name] -u [username] --ddns [dynamic DNS provider domain] --ddnsuser [dynamic DNS username] --ddnspass [dynamic DNS password]
    +
    +
    + +

    +Or on any other system don't include the –bbb option. +

    + +
    + +
    freedombone -d [default domain name] -u [username] --ddns [dynamic DNS provider domain] --ddnsuser [dynamic DNS username] --ddnspass [dynamic DNS password]
    +
    +
    + +

    +The above command should be run in the same directory in which your configuration file exists. You can use any of your domains as the default one, but typically the default domain is the same as the one for your wiki. If you are using FreeDNS as the dynamic DNS provider then also add the -c option to specify the code corresponding to the subdomain. +

    + +

    +Also see the manpage for additional options which can be used instead of a configuration file. If you don't specify a variant type with the final option then everything will be installed. If you have a freedombone.cfg file then it should be in the same directory from which the freedombone command is run. +

    +
    +
    + +
    +

    Post-Setup

    +
    +

    +Setup of the server and installation of all the relevant packages is not quick, and depends upon which variant you choose and your internet bandwidth. Allow about three hours for a full installation on the Beaglebone Black. On the Beaglebone installation is in two parts, since a reboot is needed to enable the hardware random number generator and zram.

    @@ -313,102 +444,11 @@ When done you can ssh into the Freedombone with:

    -Any manual post-installation setup instructions or passwords can be found in /home/username/README. You should remove any passwords from that file and store them within a password manager such as KeepassX. -

    -
    - - -
    -

    On a laptop/PC/netbook

    -
    -

    -It's also possible to install Freedombone onto other hardware, including other types of single board computer. Any system with a fresh installation of Debian Jessie will do. Just make sure that you change the variable INSTALLING_ON_BBB to "no" within freedombone.cfg or the install-freedombone.sh script. Obviously, you don't need to run the initial_setup.sh script on non-Beaglebone systems. +Any manual post-installation setup instructions or passwords can be found in /home/username/README. You should remove any passwords from that file and store them within a password manager such as KeepassX.

    -
      -
    • Download the Debian Jessie "netinst" installer -
    • -
    • Use Startup Disk Creator or Unetbootin to copy the netinst image to a USB thumb drive -
    • -
    • Connect the machine to your internet router using an ethernet patch lead. Freedombone is a fully free (as in freedom) system and so wifi drivers may not work. A wired network connection will give better performance anyway. -
    • -
    • On the target machine boot from the USB drive and go through the installation. It's a good idea to use LVM and disk encryption together with a long passphrase which will be hard to crack by brute force methods. Keep a note of the passphrase in your password manager. -
    • -
    • Within the installer unselect the print server and select the ssh server -
    • -
    • After installation use ssh to access the machine and become the root user -
    • -
    -
    - -
    ssh username@192.168.1.60
    -su
    -
    -
    -
      -
    • If you have GPG keys you may wish to transfer them to the /home/usernname directory. If the machine has a second USB socket or an SD card slot then that may be the most secure way to do it. -
    • -
    • Run the following commands: -
    • -
    -
    - -
    cd /home/<username>
    -apt-get install git
    -git clone https://github.com/bashrc/freedombone
    -cd freedombone
    -nano freedombone.cfg
    -
    -
    - -
      -
    • Now create a configuration file, such as the following, filling in the details for your FreeDNS subdomains. -
    • -
    -
    - -
    INSTALLING_ON_BBB=no
    -MY_EMAIL_ADDRESS=<your email address>
    -MY_NAME=<your name/nick/pseudonym>
    -MY_BLOG_TITLE=<title of your blog>
    -MY_BLOG_SUBTITLE=<subtitle of your blog>
    -SSH_PORT=2222
    -FULLBLOG_DOMAIN_NAME=<freedns subdomain for your blog>
    -FULLBLOG_FREEDNS_SUBDOMAIN_CODE=<freedns subdomain code for your blog>
    -MICROBLOG_DOMAIN_NAME=<domain name for your microblog>
    -MICROBLOG_FREEDNS_SUBDOMAIN_CODE=1234
    -REDMATRIX_DOMAIN_NAME=<domain name for your Red Matrix site>
    -OWNCLOUD_DOMAIN_NAME=<freedns subdomain for your Owncloud site>
    -OWNCLOUD_FREEDNS_SUBDOMAIN_CODE=<freedns subdomain code for your Owncloud site>
    -WIKI_TITLE=<title of your wiki>
    -WIKI_DOMAIN_NAME=<freedns subdomain for your wiki>
    -WIKI_FREEDNS_SUBDOMAIN_CODE=<freedns subdomain code for your wiki>
    -MY_GPG_PUBLIC_KEY=<exported public key filename>
    -MY_GPG_PRIVATE_KE=<exported private key filename>
    -PUBLIC_MAILING_LIST=<name of your mailing list>
    -LOCAL_NETWORK_STATIC_IP_ADDRESS=192.168.1.60
    -ROUTER_IP_ADDRESS=192.168.1.254
    -ENABLE_CJDNS=no
    -
    -
    - -
      -
    • Save and exit, then run: -
    • -
    -
    - -
    ./install-freedombone.sh <your wiki domain name> <your username> <your wiki FreeDNS domain code>
    -
    -
    -
    -
    - -
    -

    Internet Router

    -

    -On your internet router, typically under firewall settings, open the following ports and forward them to the Freedombone. +On your internet router, typically under firewall settings, open the following ports and forward them to your server.