Linux
Users
Create new user
useradd \
--gid 0 \
--groups sudo,docker,users \
--create-home \
--shell /bin/bash \
user
Groups
Services
Port Usage
Flags explained
| Flag | Description |
|---|---|
| -t | Show TCP sockets |
| -u | Show UDP sockets |
| -l | Show only listening sockets |
| -p | Show the process using each socket |
| -n | Show numeric addresses (no DNS) |
| -w | Show raw socket information (opt.) |
Mounting Drives
How to mount samba shares on the Linux system
Samba Share1
Home Assistant - Samba share
Home Assistant configuration files can be shared in the config folder share.
Example /etc/fstab entry
//homeassistant/config /home/docker/homeassistant cifs uid=1000,gid=1000,forceuid,forcegid,vers=3.0,credentials=/mnt/.smbcredentials
Synology - SMB Settings
CIFS Version
Synology only supports version 2.0
Example /etc/fstab entry
//JOHN-NAS/home/smarthome/homeassistant /home/docker/homeassistant_old cifs uid=1000,gid=1000,forceuid,forcegid,vers=2.0,credentials=/mnt/.nascredentials
Samba Share
How to share from the Linux system
Example SMB config entry
[appdaemon]
path = /root/appdaemon
browseable = yes
read only = no
writable = yes
guest ok = yes