From d855ff6942d3398a807de8f66a0e8f6b056240d5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 30 Jun 2017 16:00:08 +0100 Subject: [PATCH] Create warning emails from daily tests --- doc/EN/index.org | 2 +- doc/EN/release3.org | 68 +++++++ src/freedombone-utils-cron | 9 +- website/EN/index.html | 8 +- website/EN/release3.html | 364 +++++++++++++++++++++++++++++++++++++ 5 files changed, 444 insertions(+), 7 deletions(-) create mode 100644 doc/EN/release3.org create mode 100644 website/EN/release3.html diff --git a/doc/EN/index.org b/doc/EN/index.org index a976c7c0..51bbe8b3 100644 --- a/doc/EN/index.org +++ b/doc/EN/index.org @@ -17,7 +17,7 @@ #+end_quote #+BEGIN_CENTER -[[file:images/beaglebone_logo.jpg]] +[[./release3.html][New version 3 (Stretch)]] #+END_CENTER So you want to run your own internet services? Email, chat, VoIP, web sites, file synchronisation, wikis, blogs, social networks, media hosting, backups. Freedombone enables you to do all of that in a self-hosted way, where you keep control of your data and it resides in your own home. diff --git a/doc/EN/release3.org b/doc/EN/release3.org new file mode 100644 index 00000000..15c55dde --- /dev/null +++ b/doc/EN/release3.org @@ -0,0 +1,68 @@ +#+TITLE: +#+AUTHOR: Bob Mottram +#+EMAIL: bob@freedombone.net +#+KEYWORDS: freedombone +#+DESCRIPTION: Version 3 +#+OPTIONS: ^:nil toc:nil +#+HTML_HEAD: + +#+BEGIN_CENTER +[[file:images/logo.png]] +#+END_CENTER + +#+BEGIN_EXPORT html +
+

Version 3: Building an internet run by the users, for the users

+
+#+END_EXPORT + +The internet may still be mostly in the clutches of a few giant megacorporations and dubious governments with sketchy agendas, but it doesn't have to remain that way. With the third version of the Freedombone system there is now more scope than before to take back your privacy, have ownership of personal data and run your own online communities without unnecessary or unwelcome intermediaries. + +Freedombone version 3 is based on Debian 9 (Stretch). It was released in July 2017 and includes: + + * Faster initial setup + * More [[./apps.html][installable apps]] than the previous release, including CryptPad, Koel, NextCloud, PostActiv, Friendica and Matrix/RiotWeb + * Automated [[https://github.com/hardenedlinux/STIG-4-Debian][security tests]] + * Improved XMPP configuration to support all of the XEPs needed by the [[https://conversations.im][Conversations]] app + * Improved account and domain blocking controls for GNU Social and PostActiv for a better federated network experience + * Uses [[https://en.wikipedia.org/wiki/EdDSA][elliptic curve]] based GPG keys by default for better performance on low power single board computers + * Pre-downloaded repos distributed within images for faster and more autonomous app installs + +* Installation + +The simplest way to install is from a pre-made disk image. Images can be [[https://freedombone.net/downloads/v3][downloaded here]]. You will need to have previously obtained a domain name and have a dynamic DNS account somewhere. + +Copy the image to a microSD card or USB thumb drive, replacing sdX with the identifier of the USB thumb drive. Don't include any numbers (so for example use sdc instead of sdc1). + +#+BEGIN_SRC bash +dd bs=1M if=myimagefile.img of=/dev/sdX conv=fdatasync +#+END_SRC + +And wait. It will take a while to copy over. When that's done plug the microSD or USB drive into the target hardware which you want to use as a server and power on. If you're using an old laptop or netbook as the server then you will need to set the BIOS to boot from USB. + +As the system boots for the first time the login is: + +#+BEGIN_SRC bash +username: fbone +password: freedombone +#+END_SRC + +If you're installing from a microSD card on a single board computer without a screen and keyboard attached then you can ssh into it with: + +#+BEGIN_SRC bash +ssh fbone@freedombone.local -p 2222 +#+END_SRC + +Using the initial password "freedombone". If you have trouble accessing the server then make sure you have Avahi installed and [[https://en.wikipedia.org/wiki/Multicast_DNS][mDNS]] enabled. + +You will then be shown a new randomly generated password. It's very important that you write this down somewhere or transfer it to a password manager before going further, because you'll need this to log in later. + +* Upgrading from a previous install + +To upgrade from the Debian Jessie version first create a master keydrive. Go to the *Administrator control panel* and select *Backup and restore* then *Backup GPG key to USB (master keydrive)*. Insert a LUKS encrypted USB drive. When that is done Create a full backup by selecting *Backup data to USB drive* and using another LUKS encrypted USB drive. + +Follow the installation infstructions for the new Freedombone version, as described in the previous section. When the new system starts installing it will ask if you want to restore your GPG keys. Select *yes* and plug in your master keydrive. + +When the initial setup is complete go to the *Administrator control panel* and select *Backup and restore* then *Restore data from USB drive* followed by *all*. Insert the backup USB drive which you made previously. This will restore the base system, including any emails. + +You can now go to *Add/Remove apps* on the *Administrator control panel* and add the apps you want. Once they're installed you can recover their content and settings from *Backup and Restore*. diff --git a/src/freedombone-utils-cron b/src/freedombone-utils-cron index 2bca0b3d..be7bed73 100755 --- a/src/freedombone-utils-cron +++ b/src/freedombone-utils-cron @@ -79,9 +79,16 @@ function randomize_cron { function schedule_stig_tests { echo '#!/bin/bash' > /etc/cron.daily/stig_tests + echo "ADMIN_EMAIL_ADDRESS=${MY_USERNAME}@\${HOSTNAME}" >> /etc/cron.daily/stig_tests echo "pkill ${PROJECT_NAME}-tests" >> /etc/cron.daily/stig_tests echo 'rm -rf /tmp/*' >> /etc/cron.daily/stig_tests - echo "${PROJECT_NAME}-tests --stig yes" >> /etc/cron.daily/stig_tests + echo "${PROJECT_NAME}-tests --stig yes 2> /tmp/daily-stig-tests" >> /etc/cron.daily/stig_tests + echo 'if [ ! "$?" = "0" ]; then' >> /etc/cron.daily/stig_tests + echo " echo \"\$(cat /tmp/daily-stig-tests)\" | mail -s \"${PROJECT_NAME} STIG test failures\" \$ADMIN_EMAIL_ADDRESS" >> /etc/cron.daily/stig_tests + echo 'fi' >> /etc/cron.daily/stig_tests + echo 'if [ -f /tmp/daily-stig-tests ]; then' >> /etc/cron.daily/stig_tests + echo ' rm /tmp/daily-stig-tests' >> /etc/cron.daily/stig_tests + echo 'fi' >> /etc/cron.daily/stig_tests chmod +x /etc/cron.daily/stig_tests } diff --git a/website/EN/index.html b/website/EN/index.html index 7488e7eb..ac373155 100644 --- a/website/EN/index.html +++ b/website/EN/index.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + @@ -255,12 +255,10 @@ for the JavaScript code in this tag.
- - -

So you want to run your own internet services? Email, chat, VoIP, web sites, file synchronisation, wikis, blogs, social networks, media hosting, backups. Freedombone enables you to do all of that in a self-hosted way, where you keep control of your data and it resides in your own home. diff --git a/website/EN/release3.html b/website/EN/release3.html new file mode 100644 index 00000000..3ef2b25e --- /dev/null +++ b/website/EN/release3.html @@ -0,0 +1,364 @@ + + + + + + + + + + + + + + + + + +

+ +
+
+
+ +
+

logo.png +

+
+
+ +
+

Version 3: Building an internet run by the users, for the users

+
+ +

+The internet may still be mostly in the clutches of a few giant megacorporations and dubious governments with sketchy agendas, but it doesn't have to remain that way. With the third version of the Freedombone system there is now more scope than before to take back your privacy, have ownership of personal data and run your own online communities without unnecessary or unwelcome intermediaries. +

+ +

+Freedombone version 3 is based on Debian 9 (Stretch). It was released in July 2017 and includes: +

+ + + +
+

Installation

+
+

+The simplest way to install is from a pre-made disk image. Images can be downloaded here. You will need to have previously obtained a domain name and have a dynamic DNS account somewhere. +

+ +

+Copy the image to a microSD card or USB thumb drive, replacing sdX with the identifier of the USB thumb drive. Don't include any numbers (so for example use sdc instead of sdc1). +

+ +
+
dd bs=1M if=myimagefile.img of=/dev/sdX conv=fdatasync
+
+
+ +

+And wait. It will take a while to copy over. When that's done plug the microSD or USB drive into the target hardware which you want to use as a server and power on. If you're using an old laptop or netbook as the server then you will need to set the BIOS to boot from USB. +

+ +

+As the system boots for the first time the login is: +

+ +
+
username: fbone
+password: freedombone
+
+
+ +

+If you're installing from a microSD card on a single board computer without a screen and keyboard attached then you can ssh into it with: +

+ +
+
ssh fbone@freedombone.local -p 2222
+
+
+ +

+Using the initial password "freedombone". If you have trouble accessing the server then make sure you have Avahi installed and mDNS enabled. +

+ +

+You will then be shown a new randomly generated password. It's very important that you write this down somewhere or transfer it to a password manager before going further, because you'll need this to log in later. +

+
+
+ +
+

Upgrading from a previous install

+
+

+To upgrade from the Debian Jessie version first create a master keydrive. Go to the Administrator control panel and select Backup and restore then Backup GPG key to USB (master keydrive). Insert a LUKS encrypted USB drive. When that is done Create a full backup by selecting Backup data to USB drive and using another LUKS encrypted USB drive. +

+ +

+Follow the installation infstructions for the new Freedombone version, as described in the previous section. When the new system starts installing it will ask if you want to restore your GPG keys. Select yes and plug in your master keydrive. +

+ +

+When the initial setup is complete go to the Administrator control panel and select Backup and restore then Restore data from USB drive followed by all. Insert the backup USB drive which you made previously. This will restore the base system, including any emails. +

+ +

+You can now go to Add/Remove apps on the Administrator control panel and add the apps you want. Once they're installed you can recover their content and settings from Backup and Restore. +

+
+
+
+
+ + + + +
+ +