SSH Session


# Now you have the IP assigned to your device, you need to start a ssh session from your (remote) PC,
# this is required to enter the commands and update/install all packages

# putty.exe utility is recommended on Windows, obviously Terminal app will be used on Linux and MacOS:

# on other OS, use SSH app or Terminal with ssh pi@192.168.x.x

# click yes and accept the fingerprint key the first time you connect to audio server

# For Linux noob the $ prefix in all commands on this website must NOT be copied, the ‘$’ prefix symbolizes the prompt

# Start the SSH session on Raspberry PI

  1. $ login pi

# use the password of user pi your created during the installation,
# ‘raspberry’ is the password by default of the Raspberry PI device

# all basic steps done! now you have the prompt:

  1. pi@raspberrypi:~ $

# to change your password
# (password of our MusicLounge Audiophile distribution is musiclounge )

  1. $ passwd

# START on other distro with only root user,
# we recommend to add a user “pi” (or other name) to mach all our tutorials
# if you use a minimal Ubuntu/Debian distro for Odroid or other boards

# we strongly suggest to read carefully the tutorial to prepare your linux distro before going further

Prepare Your Minimal (light) Linux Distro

# Congrats! your linux distro is ready, an ssh session is pending
# and the user pi has been created

# add user to sudoers after installation
# enter root
# use ‘exit’ to leave root and back to PI user session

  1. $ su - root
  1. # nano /etc/sudoers

# or

  1. $ sudo nano /etc/sudoers

# add the line below after root ALL=(ALL:ALL) ALL

  1. user ALL=(ALL:ALL) ALL

# where <user> is your username (Ie. pi ALL=(ALL:ALL) ALL)

# save
CTRL+X then Y then ENTER
# create at least Downloads and scripts directories if they do not exist

  1. $ mkdir Downloads
  2. $ mkdir scripts

# ready to start!


# intial configuration, change the default hostname

# skip this step if you already configure the hostname musiclounge during the installation process

# if you intend to create a multi-rooms audiophile configuration sharing the same music library on your LAN network
# do not forget to change the hostname to avoid conflict between each audio server (see the corresponding tutorial)
# we suggest a name including ml for musiclounge followed by the room name (e.g mlbedroom, mllivingroom, mlkitchen,…)

# check your current settings

  1. hostnamectl

# and change it to musiclounge if needed

# on Raspberry PI 4 type:

  1. $ sudo raspi-config

# 0 network options: hostname choose replace raspberrypi by musiclounge for example
# 1 setup localisation choose with SPACE bar en US UTF8 only
# 2 expand SDCARD partition (Advanced Options/Expand)

# on Odroid C4 (Armbian arm64)
# launch armbian-config to make the same changes on ARM based device like on the Odroid C2 or C4

  1. $ sudo armbian-config

# to change the hostname manually

  1. sudo hostnamectl set-hostname musiclounge

# check the hostname

  1. hostnamectl

# check /etc/hostname entry

  1. $ sudo nano /etc/hostname

# check /etc/hosts entry

  1. $ sudo nano /etc/hosts       localhost       musiclounge

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


# Optional sanity check

  1. sudo apt update
  2. sudo apt upgrade -y

# reboot the system

  1. sudo reboot

# restart a SSH session

  1. $ login pi

Click the button NEXT below to continue…