MicroDC2 Seems to be a good client to use for a headless server. It is configured by command line and there appears to be an update released just recently (first update in 5 years). The package installs using apt-get in Debian (I’m using Debian since there isn’t a proper Ubuntu release for the RPI3 yet).
Config rsync daemon. In mine I set the path to a symlink for a users private shared folder, and added settings for that user.
I started the daemon with sudo /opt/etc/init.d/S57rsyncd start
and played with this until it was reachable from my Synology (some celebrations may have been had)
I made a symlink for the rsync opt init script in the system init folder: sudo ln -s /home/opt/etc/init.d/S57rsyncd /etc/rc.d/init.d/rsyncd
Then symlinked that with a startup link in runlevel 3. sudo ln -s /etc/rc.d/init.d/rsyncd /etc/rc.d/rc3.d/S57rsyncd
Create a pair of LED’s and push buttons on my RPi which can run scripts. One will shut down the Pi (updated here), the other will rsync a directory to a USB. Also I will read the status of a UPS. This may/will become more complicated since the UPS doesn’t have any useful interface (requiring an Arduino to:
Watch the UPS battery voltage and tell the RPi to power down.
Monitor whether mains power is applied.
Once mains is re-powered, restart the RPi after a UPS shut down using the hardware reset pins on the Pi.)
As in these RPi ubuntu instructions I installed python.. I removed sudo from the last command to make the command output happy
This process has so far hit a few hurdles – initially I tried to use the CyanogenMod instructions although these just lead me to a bunch of problems… (not updated for lollipop ((also this wouldn’t have necessarily rooted the phone)) etc), but it looks like I’ve got it successfully working. Here’s how:
I used the latest ‘Odin’ which can set the device to load a recovery file.
I moved the stable .zip release of SuperSU from here onto the phones SD card.
Shut down the Galaxy, then boot to ‘download’ mode by holding the volume down + home key+ power key at the same time.
basically once the phone is connected to odin in download mode, click the AP button and select the philz touch file – probably should have found a better source for this file :/ . Also under options auto reboot was selected. This just means as soon as the file is loaded it will reboot. At this time you need to hold volume up+ home key+ power key at the same time to boot into the philz touch recovery
I accidentally read method 3 and applied step 7 from Method 3. Seems ok..
I loaded the SuperSU .zip from the SD card, noting that I downloaded SuperSU from here.. which doesn’t seem totally un-reputable
Rebooted the phone using the reboot option and installed SuperSU from google play (I also installed f.lux to help my sleeping pattern).
EDIT: looks like I broke wifi so I then installed cyanogen using the recovery boot with Odin (after a factory reset in recovery mode)
After Wifi broke I needed to perform a factory reset using recovery mode in order to get Cyanogen to work. Which I’m kinda stoked it did. Now I’m installing the google play store.
So that didn’t work.. Trying the latest cyogenmod (release version). Now for the corresponding Open Gapps.. keyboard doesn’t work (maybe could try a different Gapps version, or the latest nightly cyogen (more stable lol?))..
Now for Google Play Edition 5.1 | Untouched.. wipe system in recovery mode, install from .zip on SD card.. again.. reboot system.. and… ooh new loading screen. take that Telstra.
So far so good, although I’m assuming the phone will want to restart every-time the sim card is disconnected, which is usually a couple times per day.. Something that cyogenmod would allow me to ignore. New Sim in the mail, so we’ll see. I won’t be installing another SIM reader any time soon.
Grass is always greener, I kinda want cyogenmod now :/ hmm we’ll see.
I will be using Ubuntu 16.04 LTS ‘classic’.
On the RPi site they mention
the Snappy version of Ubuntu for IoT. This is not the one I want, as it doesn’t use the normal Ubuntu method for getting software (apt-get). The classic Ubuntu image is linked here. This image has SSH pre-installed, so you can boot without ever using a monitor.
Writing the image to an SD card on Windows can be done with Win32 Disk Imager Continue reading “Installing Ubuntu on a RPi”
We will start with a trusty DigitalOcean instructional – at least step 1 of that instructional.
sudo apt-get install mailutils
I want to send mail using mailgun, which allows for ports 25, 587 and 465 (SSL/TLS). I’ll use 587 which is called submission in postfix terminology, I guess due to 587 being the proper port for TLS email submission. Because I want to use encryption (SASL) (or whatever), I need to setup Postfix accordingly. I changed my Postfix config file as such