Websites | Photography | Video Editing | 3D Animations

From the Blog

You first need to ssh in to your RaspberryPi and run the following command lines.

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install samba samba-common-bin

Then you and to create a shared folder:

sudo mkdir -m 1777 /share

Next you want to edit Samba config file to include shared folder:

sudo nano /etc/samba/smb.conf

Insert the below settings to the bottom of the page:

Comment = Pi shared folder
Path = /share
Browseable = yes
Writeable = Yes
only guest = no
create mask = 0777
directory mask = 0777
Public = yes
Guest ok = yes

Press `ctrl` + `x` to close file and press `y` to save and hit enter.

Next you want to create a password for Samba:

sudo smbpasswd -a pi

Here it will prompt you to insert password. This is separate to you Pi login but there is no harm inserting the same password if you like.

Final you need to reboot Samba:

sudo /etc/init.d/samba restart

Now you should find that your RaspberryPi is discoverable on your next work.

Posted by Paul Costan at 10:17 am

Step 1. DNS
First you need to visit your host provider and go to Manage your Domain Name System (DNS) settings. For example I use Cloudflare to manage DNS. There you will need to add a new CNAME record. So for example I want a subdomain

To do this you add new DNS Records:

NAME – helloworld
TTL – Automatic
Status – DNS Only

Step 2. Router
Make sure your router is setup with port forwarding point to your Synology server.
ie `,443`

Step 3. Synology server
Finally login to you Synology box and go to Control Panel > Application Portal > Reverse Proxy. Here you will need to add new Revers Proxy Rules. The rest is straight forward. So now you can check is your new domain URL works. If not, go back and check all three setting are correct.