by lamasbr
16 deployments · 10 still active · last rev. 6 months ago

Install AzuraCast, a free and open-source self-hosted web radio ( on a linode instance using docker.

Note: provide an username, password and if you have, your SSH public key. After install AzuraCast, this StackScript will disable SSH root login. If you provide your SSH public key, SSH logins with password will be disabled too.

After deployed, access http://YOUR-LINODE-IP/ to configure your AzuraCast instalation.

If you want install AzuraCast without Docker, see this StackScript:

Compatible with: Ubuntu 18.04 LTS
#<UDF name="USERNAME" label="Username">
#<UDF name="USERPASSWORD" label="Password">
#<UDF name="USERPUBKEY" label="User SSH public key" default="">
#<UDF name="HOSTNAME" label="Hostname (FQDN)" default="">

# Last update: November 04th, 2018
# Author: Lincoln Lamas <>

set -e

if [ ! -z "$HOSTNAME" ]; then
  hostnamectl set-hostname $HOSTNAME
  echo "   $HOSTNAME" >> /etc/hosts

# Set up user account
adduser $USERNAME --disabled-password --gecos ""
echo "$USERNAME:$USERPASSWORD" | chpasswd
adduser $USERNAME sudo

# If user provided an SSH public key, whitelist it, disable SSH password authentication, and allow passwordless sudo
if [ ! -z "$USERPUBKEY" ]; then
  mkdir -p /home/$USERNAME/.ssh
  echo "$USERPUBKEY" >> /home/$USERNAME/.ssh/authorized_keys
  chown -R "$USERNAME":"$USERNAME" /home/$USERNAME/.ssh
  chmod 600 /home/$USERNAME/.ssh/authorized_keys
  sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config
  echo "$USERNAME ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers

# Installing Docker and AzuraCast
mkdir -p /var/azuracast \
  && cd /var/azuracast \
  && curl -L > \
  && chmod a+x \
  && yes | ./ install

# Disable root SSH access
sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config