freedombonee/usage.org

18 KiB

/free/freedombonee/src/commit/202fe8d66b68ac70df4c7ad9755e3b69b6625924/images/logo.png

/free/freedombonee/src/commit/202fe8d66b68ac70df4c7ad9755e3b69b6625924/Readme /free/freedombonee/src/commit/202fe8d66b68ac70df4c7ad9755e3b69b6625924/Operating%20Systems /free/freedombonee/src/commit/202fe8d66b68ac70df4c7ad9755e3b69b6625924/Using%20Email /free/freedombonee/src/commit/202fe8d66b68ac70df4c7ad9755e3b69b6625924/Mailing%20List /free/freedombonee/src/commit/202fe8d66b68ac70df4c7ad9755e3b69b6625924/Syncing%20to%20the%20Cloud /free/freedombonee/src/commit/202fe8d66b68ac70df4c7ad9755e3b69b6625924/Play%20Music /free/freedombonee/src/commit/202fe8d66b68ac70df4c7ad9755e3b69b6625924/Microblogging /free/freedombonee/src/commit/202fe8d66b68ac70df4c7ad9755e3b69b6625924/Social%20Network /free/freedombonee/src/commit/202fe8d66b68ac70df4c7ad9755e3b69b6625924/Chat%20Services

Readme

After the system has installed a README file will be generated which contains passwords and some brief advice on using the installed systems. You can read this with the following commands:

ssh username@domainname -p 2222
emacs ~/README

You should transfer any passwords to a password manager such as KeepassX and then delete them from the README file. To save the file after removing passwords use CTRL-x CTRL-s.

To exit you can either just close the terminal or use CTRL-x CTRL-c followed by the exit command.

Operating Systems

Since many of the systems on the Freedombone are web based your choice of operating system for laptops or desktop machines doesn't matter all that much, but some version of GNU/Linux or on mobile devices Android/Cyanogenmod is recommended. Microsoft Windows may be fine for playing games and other trivia but do not use it for any serious private communications or data storage purpose. If you are a journalist, political activist, systems administrator or other professional with a need for confidentiality then using Microsoft Windows will put yourself and your sources, colleages or other group members at heightened risk of surveillance.

Using Email

A technical note about email transport security

Port 465 is used for SMTP and this is supposedly deprecated for secure email. However, using TLS from the start of the communications seems far more secure than starting off with insecure communications and then trying to upgrade it with a command to begin TLS, as happens with STARTTLS. There are possible attacks against STARTTLS in which the command to begin secure communications is removed or overwritten which could then result in email being transferred in plain text over the internet and be readable by third parties.

Add a password to your GPG key

If you didn't use existing GPG keys during the Freedombone installation then you'll need to add a password to your newly generated private key. This is highly recommended. Go through the following sequence of commands to ssh into the Freedombone and then change your GPG password.

ssh username@domainname -p 2222
gpg --edit-key username@domain
passwd
save
quit
exit

Having a password on your GPG key will prevent someone from reading your email even if your server gets lost or stolen or if someone else has physical access to it. Make the password something long and unlikely to be guessable or vulnerable to a brute force dictionary attack.

Publishing your GPG public key

If you havn't already then you should publish your GPG public key so that others can find it.

ssh username@domainname -p 2222
gpg --send-keys username@domainname
exit

Mutt email client

Mutt is a terminal based email client which comes already installed onto the Freedombone. To access it you'll need to access it via ssh with:

ssh username@domainname -p 2222

If you're using Windows there is an ssh client called putty, on Linux just open a terminal and enter the above command with your username and domain name. On Android you can use the ConnectBot app with the hostname username@domain:2222

Once you have logged in via ssh then just type mutt. Like most terminal programs mutt is quite easy once you've learned the main keys.

Some useful keys to know are:

"/" Search for text within headers
* Move to the last message
TAB Move to the next unread message
d Delete a message
u Undelete a mail which is pending deletion
$ Delete all messages selected and check for new messages
a Add to the address book
m Send a new mail
ESC-m Mark all messages as having been read
S Mark a message as spam
H Mark a message as ham
CTRL-b Toggle side bar on/off
CTRL-n Next mailbox (on side bar)
CTRL-p Previous mailbox (on side bar)
CTRL-o Open mailbox (on side bar)
] Expand or collapse all threads
[ Expand of collapse the current thread
CTRL-k Import a PGP/GPG public key
q Quit

To use the address book system open an email by pressing the enter key on it and then to add the sender to the address list press the A key. It will ask you for an alias which may be used the next time you want to send a mail. Alternatively you may just edit the ~/.mutt-alias file directly to add email addresses.

One of the most common things which you might wish to do is to send an email. To do this first press m to create a new message. Enter the address to send to and the subject, then after a few seconds the Emacs editor will appear with a blank document. Type your email then press CTRL-x CTRL-s to save it and CTRL-x CTRL-c to exit. You will then see a summary of the email to be sent out. Press y to send it and then enter your GPG key passphrase (the one you gave when creating a PGP/GPG key). The purpose of that is to add a signature which is a strong proof that the email was written by you and not by someone else.

When reading emails you will initially need to enter your GPG password. It will be retained in RAM for a while afterwards.

Thunderbird

Another common way in which you may want to access email is via Thunderbird. This may be especially useful if you're trying to convert former Windows users who may previously have been using some version of Outlook.

The following instructions should be carried out on the client machines (laptop, etc), not on the BBB itself.

Initial setup

Install Thunderbird and Enigmail. How you do this just depends upon your distro and software manager or "app store".

Open Thinderbird

Select "Skip this and use existing email"

Enter your name, email address (myusername@mydomainname.com) and the password for your user (the one from /free/freedombonee/src/commit/202fe8d66b68ac70df4c7ad9755e3b69b6625924/Add%20a%20user).

You'll get a message saying "Thunderbird failed to find the settings"

The settings should be as follows, substituting mydomainname.com for your domain name and myusername for the username given previously in /free/freedombonee/src/commit/202fe8d66b68ac70df4c7ad9755e3b69b6625924/Add%20a%20user.

  • Incoming: IMAP, mydomainname.com, 993, SSL/TLS, Normal Password
  • Outgoing: SMTP, mydomainname.com, 465, SSL/TLS, Normal Password
  • Username: myusername

Click Done.

Click Get Certificate and make sure "permanently store this exception" is selected", then click Store Security Exception.

From OpenPGP setup select "Yes, I would like the wizard to get me started". If the wizard doesn't start automatically then "setup wizard" can be selected from OpenPGP on the menu bar.

Select "Yes, I want to sign all of my email"

Select "No, I will create per-recipient rules"

Select "yes" to change default settings.

Import your GPG keys

On the Freedombone export your GPG public and private keys.

gpg --output ~/public_key.gpg --armor --export KEY_ID
gpg --output ~/private_key.gpg --armor --export-secret-key KEY_ID

On your laptop or desktop you can import the keys with:

scp -P 2222 username@domain:/home/username/*.gpg ~/

Select "I have existing public and private keys".

Select your public and private GPG exported key files.

Select the account which you want to use and click Next, Next and Finish.

Remove your exported key files, both on your laptop/desktop and also on the Freedombone.

shred -zu ~/public_key.gpg
shred -zu ~/private_key.gpg

Using for the first time

Click on the Thunderbird menu, which looks like three horizontal bars on the right hand side.

Hover over preferences and then Account settings.

Select OpenPGP Security and make sure that use PGP/MIME by default is ticked. This will enable you to sign/encrypt attachments, HTML bodies and UTF-8 without any problems.

Select Synchronization & Storage.

Make sure that Keep messages for this account on this computer is unticked, then click Ok.

Click on Inbox. Depending upon how much email you have it may take a while to import the subject lines.

Note that when sending an email for the first time you will also need to accept the SSL certificate.

Get into the habit of using email encryption and encourage others to do so. Remember that you may not think that your emails are very interesting but the Surveillance State is highly interested in them and will be actively trying to data mine your private life looking for "suspicious" patterns, regardless of whether you are guilty of any crime or not.

Making folders visible

By default you won't be able to see any folders which you may have created earlier using the mailinglistrule script. To make folders visible select:

Menu, hover over Preferences, select Account Settings, select Server Settings then click on the Advanced button.

Make sure that "show only subscribed folders" is not checked. Then click the ok buttons. Folders will be re-scanned, which may take some time depending upon how much email you have, but your folders will then appear.

K9 Android client

NOTE: Currently the K9 email client will not work with the Freedombone since it doesn't support PGP/MIME encoding. However, there is development work taking place on that feature and it is hoped that K9 may be usable in the near future.

Incoming server settings

  • Select settings/account settings
  • Select Fetching mail/incoming server
  • Enter your username and password
  • IMAP server should be your domain name
  • Security: SSL/TLS (always)
  • Authentication: Plain
  • Port: 993

Outgoing (SMTP) server settings

  • Select settings/account settings
  • Select Sending mail/outgoing server
  • Set SMTP server to your domain name
  • Set Security to SSL/TLS (always)
  • Set port to 465
  • Set authentication to PLAIN
  • Enter your username and password
  • Accept the SSL certificate

Folders

To view any new folders which you may have created using the mailinglistrule script from your inbox press the K9 icon at the top left to access folders, then press the menu button and select refresh folder list.

If your folder still doesn't show up then press the menu button, select show folders and select all folders.

Subscribing to mailing lists

To subscribe to a mailing list so that it appears within Mutt or Thunderbird.

ssh username@domainname -p 2222
addmailinglist <username> <mailinglistname> <subjecttag>
exit

The subject tag should be the word or phrase which appears within the brackets in the subject line of emails from the mailing list. The mailing list name should be something short so that it is readable within the left side column of the mutt email client.

Adding email addresses to a group/folder

Similar to adding mailing list folders you can also add specified email addresses into a folder.

ssh username@domainname -p 2222
addemailtofolder <username> <emailaddress> <mailinglistname>
exit

The mailing list name should be something short so that it is readable within the left side column of the mutt email client.

Mailing List

If you want to set up a public mailing list then when installing the system remember to set the PUBLIC_MAILING_LIST variable within freedombone.cfg to the name of your list. The name should have no spaces in it. Public mailing lists are unencrypted so anyone will be able to read the contents, including non subscribers.

To subscribe to your list send a cleartext email to:

mymailinglistname+subscribe@domainname

Tip: When using the Mutt email client if you want to send an email in cleartext then press p (for PGP) on the sending screen and select clear. Unsecure email is treated as being the exception rather than the default.

Syncing to the Cloud

Initial install

Within a browser go to your owncloud domain, then create an administrator account. The username and password can be anything, and ideally should be generated from a password manager.

You will also need to enter database details:

Owncloud database user owncloudadmin
Owncloud database password See the /free/freedombonee/src/commit/202fe8d66b68ac70df4c7ad9755e3b69b6625924/Readme file
Owncloud database name owncloud

After creating an administrator account then create a user account via the Users dropdown menu entry on the right hand side and log the details in a password manager. Give the user a quota suitable for the size of your microSD card or other storage.

Log out from the administrator account and then log back in as the user you just created.

On Android

Within F-droid search for owncloud and install the client. Also install CalDAV Sync Adapter.

Open the owncloud app and enter your owncloud domain name (including the https prefix) and login details for the user you created.

Open the calendar app and under settings add a CalDav account with the url:

https://myownclouddomain/remote.php/caldav/principals/myowncloudusername

You will also be prompted to enter login details. Your Android and Owncloud calendars should now be synchronised.

On Linux

Open your software center and search for "owncloud client". Enter your owncloud domain name (with the https prefix) and login details.

You can now drag files into the ~/owncloud directory and they will automatically sync to your server. It's that easy.

Play Music

With the DLNA service

An easy way to play music on any mobile device in your home is to use the DLNA service. Copy your music into a directory called "Music" on a USB thumb drive and then insert it into from socket on the Beaglebone.

ssh into the system with:

ssh myusername@mydomain.com -p 2222

Then mount the USB drive with:

su
attach-music

The system will scan the Music directory, which could take a while if there are thousands of files, but you don't need to do anything further with the Beaglebone other than perhaps to log out by typing exit a couple of times.

If you have an Android device then go to F-Droid (if you don't already have it installed then it can be downloaded here) and search for ControlDLNA. On running the app you should see a red Debian icon which you can press on, then you may need to select "local". After a few seconds the list of albums or tracks should then appear and you can browse and play them.

The DLNA service will only work within your local home network, and isn't remotely accessible from other locations via the internet. That can be both a good and a bad thing. Another consideration is that there are no access controls on DLNA services, so any music or videos on the USB drive will be playable by anyone within your home network. If you need to restrict access to certain files then it may be better to use the music player within Owncloud.

With Owncloud

The main advantage of playing music via Owncloud is that you can do that from anywhere - not only within your home network.

By default a music player is installed into Owncloud, so all you need to do is to visit your Owncloud web site, select the music directory and then upload some music files. Afterwards you can select the music icon from the top left drop down menu and albums will then appear which can be played. If you want to share music with other users then you can select the share option from within the files view to make the tracks available.

Microblogging

Initial configuration

To set up your microblog go to:

https://yourmicroblogdomainname/install.php

and enter the following settings:

Server SSL enable
Hostname localhost
Type MySql/MariaDB
Name gnusocial
DB username root
DB Password See the MariaDB password in the /free/freedombonee/src/commit/202fe8d66b68ac70df4c7ad9755e3b69b6625924/Readme file
Administrator nickname Your username
Administrator password See the /free/freedombonee/src/commit/202fe8d66b68ac70df4c7ad9755e3b69b6625924/Readme file
Subscribe to announcements ticked
Site profile Community

When the install is complete you will see a lot of warnings but just ignore those and navigate to your microblog domain and you can then complete the configuration via the Admin section on the header bar. Some recommended admin settings are:

Site settings Text limit 140, Dupe Limit 60000
User settings Bio limit 1000
Access settings Invite only ticked

Social Network

Chat Services