Skip to content

Instantly share code, notes, and snippets.

sudo chmod +x /lib/systemd/system/home-assistant@pi.service
sudo systemctl --system daemon-reload
sudo systemctl enable home-assistant@pi
sudo systemctl start home-assistant@pi
sudo nano /lib/systemd/system/home-assistant@pi.service
# Paste this into the file:
[Unit]
Description=Home Assistant
After=network.target
[Service]
Type=simple
User=%i
sudo pip3 install homeassistant
hass --open-ui # Will create config, etc.
sudo smbpasswd -a pi
sudo nano /etc/samba/smb.conf
# Ensure the file has:
workgroup = WORKGROUP
wins support = yes
# At the bottom add:
[pi]
comment= Pi
sudo apt-get install samba samba-common-bin
tightvncserver -geometry 1600x900 :1
sudo chmod +x /etc/systemd/system/vncserver@:1.service
sudo systemctl daemon-reload
sudo systemctl enable vncserver@:1
sudo systemctl start vncserver@:1
sudo nano /etc/systemd/system/vncserver@:1.service
# Paste this into the file:
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
sudo apt-get install tightvncserver