Installing LAMP and WordPress Multisite on AWS Ubuntu 14.04

Starting from a fresh Ubuntu image;

  1. First I followed these instructions from digital ocean.
  2. Then set the timezone using these instructions. I didn’t yet add a swap partition – I’ll look into this once I’ve moved everything over. Also a firewall isn’t required as it’s set using AWS security groups.
  3. Then I installed WordPress.
  4. I then made a Snapshot of this basic system working on AWS.
  5. As far as having several WordPress sites I need to sort permissions to contain separate WordPress sites, this may involve the following:
    • apache2-suexec-pristine
    • apache2-suexec-custom
      These were suggested packages during apt-get. Also suhp has been recommended. Currently the WordPress root directory runs with 774 www-data www-data recursive permissions. Where user ubuntu has www-data group added.
      These permissions allow updating plugins etc from the web ui.
  6. I set pretty permalinks using this info
    -Enabling the rewrite mod
    -Editing apache2.conf in /etc/apache2/ so to allow the FileInfo directive within <Directory /var/www/>
    -The directory write permissions allowed me to set pretty permalinks and create a .htaccess file in the WP root automatically under the permalinks setting in WP dashboard.
  7. I also set a favicon using the new recommended way (Appearance -> Customize and clicking on Site Identity.)
  8. Using the WordPress Instructions of creating a networked WordPress installation I went with the Sub-directory option. This seems to work fine with separate domains using the WordPress MU Domain Mapping plugin.
  9. I installed the WordPress MU Domain Mapping using it’s recommended settings, this was easy enough considering it wasn’t officially supported for my WordPress version yet.
  10. I had a read though the final step in the WordPress Network instructions; referring to other material which I haven’t really used.. things like:
  11. I was able to get around having WordPress as the default Virtual host in Apache simply by creating a virtual host for any new domain and pointing it to the WordPress root directory.
  12. Setting Auto updates for WordPress core is done as guided here. (adding this line to wp-config.php)
     define( 'WP_AUTO_UPDATE_CORE', true );

    The above guide mentioned that critical plugin updates happen automatically. So I’ll leave it at that I guess. Lucky 13

  13. Add auto security updates.
  14. Perhaps change user home directory permissions..
    sudo chmod 0750 /home/username
  15. Aand.. another snapshot.

DNScrypt with Ubuntu 14.04 on RPi 2

EDIT: Instructions remade for Ubuntu 16.02

Got this working on a Raspberry Pi 2 by using several sets of instructions… All commands are done on the command line in a terminal instance.

    1. These instructions got the actual software onto my machine. Since there is no build for ubuntu, the code must be compiled on the local machine – starting with the dependent encryption suite ‘libsodium’ first .
      • From the linked instructions “I also recommend installing the build-essential packages in case you’re missing compilers.”
        apt-get install build-essential
      • Download the libsodium to a useable directory, I used /media/libsodium which I created first using
        sudo mkdir /media/libsodium
        cd /media/libsodium

        Continue reading “DNScrypt with Ubuntu 14.04 on RPi 2”

Installing an FTP server on RPi 2 running ubuntu

My RPi 2 is running Ubuntu-trusty from here, and I needed to add an FTP server. The FTP server will host a folder on a ntfs USB drive. Initially I tried vsftpd, but the vsftpd FTP server sucks and I ended up using a different FTP, proftpd. What I did was loosely based around these instructions.

  1. install proftpd from a terminal window:
    sudo apt-get update
    sudo apt-get install proftpd

    (when a window popped up, I (eventually) I installed as a service since the other option requires more stuff I haven’t installed)

  2. Modify config file using nano text editor:
    sudo nano /etc/proftpd/proftpd.conf

    Continue reading “Installing an FTP server on RPi 2 running ubuntu”

Raspberry PI 2 as a NAS device with torrenting

Update: Installing Ubuntu 14.04 is here (Supported through early 2019).
Note: The RPi2 with officially supported Ubuntu is proving problematic, I want to move to something more reliable.


Use a Raspberry PI as a NAS Seed Box (Network Attached Storage running torrent software). RPi 2 is perfect for this due to running at very low electrical low power and being faster than a Fast Ethernet bottleneck. I initially bought a RPi version 1B which I returned as it couldn’t send files over a wired LAN at 10MB per second (basically the bottleneck for Fast Ethernet (100mbps)). Also I can use a thin client for torrenting on my PC with Deluge rather than just a webUI.


  • RPi version 2B running Ubuntu (yay linux).
  • USB Drive formatted in NTFS.
  • Install Samba (windows file sharing).
  • Install Deluge torrent software with a web interface (deluge also supports a remote thin client 🙂 ).


Using a HDMI monitor and keyboard:

  1. Install Ubuntu.
    Continue reading “Raspberry PI 2 as a NAS device with torrenting”