Tip: Make your server appear as Xserve in Finder

Open /etc/avahi/services/afpd.service for editing

sudo vi /etc/avahi/services/afpd.service

Copy and paste the following XML

<?xml version=”1.0″ standalone=”no”?>
<!DOCTYPE service-group SYSTEM “avahi-service.dtd”>
<service-group>
<name replace-wildcards=”yes”>%h</name>
<service>
<type>_device-info._tcp</type>
<port>0</port>
<txt-record>model=Xserve</txt-record>
</service>
</service-group>

Restart avahi daemon

sudo service avahi-daemon restart

Use Free Let’Encrypt SSL certificate in Webmin

For the purpose of demonstrating this tutorial I will be using Ubuntu 18.04 LTS.

Step1. Check Webmin version

Webmin can now request SSL certificates from Let’s Encrypt from within the UI. However to use this you will have to be at least on v 1.78

Step 2. Install Let’s Encrypt Client

Ubuntu 18.04

sudo apt-get install letsencrypt

Step3 – Configure Webmin

Goto Webmin –> Webmin Configuration

Click on the gear icon on the top left corner called the “Module Config”

Fill in the Full path to Let’s Encrypt client command field with the absolute path of letsencrypt

/usr/bin/letsencrypt

Goto Webmin –> Webmin Configuration and client on the box “SSL Encryption”

Click on the “Let’s Encrypt” Tab.

Click on the “Request Certificate” button

Step 4 – Completed

Refresh the Webmin interface and the site would now appear properly secured via HTTPS.

HOWTO: Setup a Time Machine Server on Ubuntu Server 14.04, 16.04, 18.04 & Debian

In this post lets look at the steps to quickly reconfigure a Ubuntu / Debian server to function as a Time Machine server. TM backup tested with OSX Mountain Lion , Mavericks, Yosemite and El Capitan.

  • Install following packages

sudo apt-get install netatalk avahi-daemon

  • Create a new folder which will contain the TM backup.

mkdir -R /data/TimeMachineBackup

  • Create a new user and grant access to the folder created in previous step

sudo adduser tux-networks

sudo chown -R tux-networks:tux-networks /data/TimeMachinebacku

  • Backup the default configuration file installed by apt-get

sudo mv /etc/netatalk/AppleVolumes.default /etc/netatalk/AppleVolumes.default.back

  • Create a new configuration file and edit using vi or other text editors

sudo vi /etc/netatalk/AppleVolumes.default

the following lines exist by default on my machine (this is default setting for all shares)

:DEFAULT: options:upriv,usedots

  • Add the new folder that was created earlier

/data/TimeMachineBackup “Tux Networks’s TM Backup” options:tm volsizelimit:500000 allow:tux-networks
options:tm –> timemachine
volsizelimit –> 500GB of space available for Time Machine
allow –> user id having access to this folder

  • Restart netatalk

sudo service netatalk restart

  • Connect to ubuntu server using Finder on your Mac in the “Go” menu, click “Connect to server…”. In the server address field type afp://192.168.x.x/ then click “Connect”, you will be asked to input a login and password which is the user created in step 3.
  • After connected, type Time Machine in search to open Time Machine app and click “Select Disk…” and select the new Ubuntu Time Machine server under “Available Disks”.
  • Provide login credentials if asked again.