Gen 2 is go
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
# Adobe Flash Player. Copyright 1996-2015. Adobe Systems Incorporated. All Rights Reserved.
|
||||
rpi-chromium-mods rpi-chromium-mods/adobe note
|
||||
@@ -1,10 +1 @@
|
||||
gstreamer1.0-x gstreamer1.0-omx gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-alsa gstreamer1.0-libav
|
||||
xpdf gtk2-engines alsa-utils
|
||||
desktop-base
|
||||
git-core rpi-update
|
||||
omxplayer
|
||||
raspberrypi-artwork
|
||||
policykit-1
|
||||
gvfs
|
||||
rfkill
|
||||
chromium-browser rpi-chromium-mods
|
||||
git python3 python3-venv python3-pip bluetooth libbluetooth-dev rng-tools htop tmux
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
xserver-xorg-video-fbdev xserver-xorg xinit xserver-xorg-video-fbturbo
|
||||
epiphany-browser
|
||||
lxde lxtask menu-xdg gksu
|
||||
netsurf-gtk zenity xdg-utils
|
||||
gvfs-backends gvfs-fuse
|
||||
lightdm gnome-themes-standard-data gnome-icon-theme
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
on_chroot << EOF
|
||||
update-alternatives --install /usr/bin/x-www-browser \
|
||||
x-www-browser /usr/bin/chromium-browser 86
|
||||
update-alternatives --install /usr/bin/gnome-www-browser \
|
||||
gnome-www-browser /usr/bin/chromium-browser 86
|
||||
EOF
|
||||
|
||||
@@ -1,3 +1,26 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
rm -f ${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d/wait.conf
|
||||
on_chroot << EOF
|
||||
groupadd -f -r -g 1001 homeassistant
|
||||
useradd -u 1001 -g 1001 -rm homeassistant
|
||||
EOF
|
||||
|
||||
install -v -o 1001 -g 1001 -d ${ROOTFS_DIR}/srv/homeassistant
|
||||
install -m 644 files/[email protected] ${ROOTFS_DIR}/etc/systemd/system/
|
||||
install -m 644 files/install_homeassistant.service ${ROOTFS_DIR}/etc/systemd/system/
|
||||
wget -O files//install_homeassistant.sh https://raw.githubusercontent.com/home-assistant/hassbian-scripts/master/install_homeassistant.sh
|
||||
install -m 755 files/install_homeassistant.sh ${ROOTFS_DIR}/usr/local/bin/
|
||||
|
||||
on_chroot << EOF
|
||||
systemctl enable install_homeassistant.service
|
||||
EOF
|
||||
|
||||
on_chroot << \EOF
|
||||
for GRP in dialout gpio spi i2c video; do
|
||||
adduser homeassistant $GRP
|
||||
done
|
||||
for GRP in homeassistant; do
|
||||
adduser pi $GRP
|
||||
done
|
||||
EOF
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
# This is a simple service file for systems with systemd to tun HA as user.
|
||||
#
|
||||
# For details please check https://home-assistant.io/getting-started/autostart/
|
||||
#
|
||||
[Unit]
|
||||
Description=Home Assistant for %i
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=%i
|
||||
ExecStart=/srv/homeassistant/bin/hass
|
||||
SendSIGKILL=no
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
# This is a simple service file for systems with systemd to tun HA as user.
|
||||
#
|
||||
# For details please check https://home-assistant.io/getting-started/autostart/
|
||||
#
|
||||
[Unit]
|
||||
Description=Install Home Assistant
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/install_homeassistant.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,41 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "Home Assistant install script for Hassbian"
|
||||
echo "Copyright(c) 2017 Fredrik Lindqvist <https://github.im/Landrash>"
|
||||
|
||||
echo "Changing to homeassistant user"
|
||||
sudo -u homeassistant -H /bin/bash << EOF
|
||||
|
||||
echo "Creating Home Assistant venv"
|
||||
python3 -m venv /srv/homeassistant
|
||||
|
||||
echo "Changing to Home Assistant venv"
|
||||
source /srv/homeassistant/bin/activate
|
||||
|
||||
echo "Install latest version of Home Assistant"
|
||||
pip3 install homeassistant
|
||||
|
||||
echo "Deactivating virtualenv"
|
||||
deactivate
|
||||
|
||||
echo "Downloading HASSbian helper scripts"
|
||||
cd /home/pi
|
||||
git clone https://github.com/home-assistant/hassbian-scripts.git
|
||||
|
||||
EOF
|
||||
|
||||
echo "Enable Home Assistant service"
|
||||
systemctl enable [email protected]
|
||||
sync
|
||||
|
||||
echo "Disable and remove Home Assitant install"
|
||||
systemctl disable install_homeassistant
|
||||
rm /etc/systemd/system/install_homeassistant.service
|
||||
rm /usr/local/bin/install_homeassistant.sh
|
||||
systemctl daemon-reload
|
||||
|
||||
echo "Start Home Assistant"
|
||||
systemctl start [email protected]
|
||||
|
||||
echo "Installation done. To continue have a look at "
|
||||
echo "If this script failed then this Raspberry Pi most likely did not have a fully functioning internet connection."
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
on_chroot << EOF
|
||||
apt-get clean
|
||||
EOF
|
||||
Reference in New Issue
Block a user