Dynamic DNS on Ubuntu

With these settings I can plug my RPi into a router and it will configure a web URL to it’s routers IP address (although I haven’t set and UPNP stuff).

I’m using Namecheap so I simply combine this with this..
and it works! ­čÖé

I tested with

 sudo ddclient -daemon=0 -debug -verbose -noquiet

Returns this at the bottom

SUCCESS:  rpi: skipped: IP address was already set to 'My WAN IP'.

Also I edited my SSH config since apparently my home NAT router didn’t like keeping the connections alive. These settings went at the bottom of sshd_config – initially I used ServerAlive, which stopped SSH from working :/

ClientAliveInterval 300
ClientAliveCountMax 24

Install Samba on Ubuntu (on an RPi 2)

Note: The RPi2 with officially supported Ubuntu is proving problematic, I want to move to something more reliable.

After installing Ubuntu on my RPi, I’ll now install Samba. This will allow USB drives attached to the RPi to be accessed by other computers, making the RPi into a NAS device.

  1. Install Samba:
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install samba
  2. Duplicate original samba settings:
    sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.old

    Continue reading “Install Samba on Ubuntu (on an RPi 2)”

Installing Ubuntu on a RPi

  1. I will be using┬á Ubuntu 16.04 LTS ‘classic’.
    On the RPi site they mention Rpi pic
    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”