Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computer:lighting_server [2017/03/27 17:10]
tdobes
computer:lighting_server [2017/03/27 17:37]
tdobes
Line 7: Line 7:
   * ''%%apt-get --no-install-recommends install aptitude%%''   * ''%%apt-get --no-install-recommends install aptitude%%''
   * ''aptitude install ssh'' (deselect xauth)   * ''aptitude install ssh'' (deselect xauth)
-  * ''aptitude install screen rsync psmisc file patch ethtool strace tcpdump vim less''+  * ''aptitude install screen rsync psmisc file patch ethtool strace tcpdump vim less net-tools man-db''
   * ''%%aptitude --without-recommends install dnsutils%%''   * ''%%aptitude --without-recommends install dnsutils%%''
   * ''adduser tdobes adm''   * ''adduser tdobes adm''
Line 38: Line 38:
 wget http://ftp.us.debian.org/debian/pool/main/m/mosquitto/python-mosquitto_1.3.4-2_all.deb wget http://ftp.us.debian.org/debian/pool/main/m/mosquitto/python-mosquitto_1.3.4-2_all.deb
 dpkg -i python-mosquitto_1.3.4-2_all.deb dpkg -i python-mosquitto_1.3.4-2_all.deb
 +</code>
 +  * <code>
 +systemctl stop olad && killall olad
 +shopt -s extglob
 +sed -i 's/enabled = true/enabled = false/g' /etc/ola/!(*artnet.conf)
 +shopt -u extglob
 +
 +sed -i 's/^ip =.*$/ip = ens19/g' /etc/ola/ola-artnet.conf
 +
 +echo '[Unit]' > /etc/systemd/system/olad.service
 +echo 'Description=OLA daemon' >> /etc/systemd/system/olad.service
 +echo 'After=network.target' >> /etc/systemd/system/olad.service
 +echo >> /etc/systemd/system/olad.service
 +echo '[Service]' >> /etc/systemd/system/olad.service
 +echo 'ExecStart=/usr/bin/olad --syslog --log-level 3 --config-dir /etc/ola' >> /etc/systemd/system/olad.service
 +echo 'User=olad' >> /etc/systemd/system/olad.service
 +echo 'Restart=always' >> /etc/systemd/system/olad.service
 +echo 'RestartSec=2' >> /etc/systemd/system/olad.service
 +echo >> /etc/systemd/system/olad.service
 +echo '[Install]' >> /etc/systemd/system/olad.service
 +echo 'WantedBy=multi-user.target' >> /etc/systemd/system/olad.service
 +systemctl daemon-reload && systemctl enable olad.service
 +
 +** setup files to copy artnet port 10 to ftdi and restore config in case of issues:
 +mkdir /root/ola-backup
 +echo '2-1-I-0 = 5' > /root/ola-backup/ola-port.conf
 +echo 'uni_5_merge = LTP' > /root/ola-backup/ola-universe.conf
 +echo 'uni_5_name = magicq' >> /root/ola-backup/ola-universe.conf
 +chown olad:olad /root/ola-backup/ola-port.conf /root/ola-backup/ola-universe.conf
 +chmod 664 /root/ola-backup/ola-port.conf /root/ola-backup/ola-universe.conf
 +echo '#!/bin/sh' > /root/ola-backup/restore.sh
 +echo 'cp -a `dirname $0`/*.conf /etc/ola/' >> /root/ola-backup/restore.sh
 +chmod +x /root/ola-backup/restore.sh
 +
 +echo '[Unit]' > /etc/systemd/system/restore_ola_backup.service
 +echo 'Description=Restore OLA backup' >> /etc/systemd/system/restore_ola_backup.service
 +echo 'Before=olad.service' >> /etc/systemd/system/restore_ola_backup.service
 +echo >> /etc/systemd/system/restore_ola_backup.service
 +echo '[Service]' >> /etc/systemd/system/restore_ola_backup.service
 +echo 'Type=oneshot' >> /etc/systemd/system/restore_ola_backup.service
 +echo 'ExecStart=/root/ola-backup/restore.sh' >> /etc/systemd/system/restore_ola_backup.service
 +echo >> /etc/systemd/system/restore_ola_backup.service
 +echo '[Install]' >> /etc/systemd/system/restore_ola_backup.service
 +echo 'WantedBy=multi-user.target' >> /etc/systemd/system/restore_ola_backup.service
 +systemctl enable restore_ola_backup.service
 +
 +systemctl start restore_ola_backup && systemctl start olad
 </code> </code>
computer/lighting_server.txt · Last modified: 2017/03/27 17:37 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS