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)

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. Write Ubuntu to an SD card and boot..Rpi pic
    If you google Ubuntu Rpi you will be taken to the Snappy version of Ubuntu for IoT. This isn’t the one I want, as it doesn’t use the normal Ubuntu method for getting software (apt-get). I used version 14.04 (Supported through early 2019) linked here. Writing the image to SD is explained here.
    Continue reading “Installing Ubuntu on a RPi”