apt-get -y install cron
su plom -c "echo '0 18 * * 0 ~/config/bin/simplemail.sh ~/config/mails/update_reminder' | crontab -"
-# Set up tmux.
-apt-get -y install tmux
-
-# Set up weechat, OTR, bitlbee.
-apt-get -y install weechat-plugins python-potr bitlbee
+# Set up screen, weechat, OTR, bitlbee.
+apt-get -y install screen weechat-plugins python-potr bitlbee
cp config/systemfiles/weechat.service /etc/systemd/system/weechat.service
systemctl enable /etc/systemd/system/weechat.service
# /etc/systemd/system/weechat.service
[Unit]
-Description=tmux weechat
+Description=weechat screen
[Service]
Type=forking
User=plom
-ExecStart=/usr/bin/tmux new-session -d '~/config/bin/weechat-wrapper.sh'
+ExecStart=/bin/sh -c 'LC_ALL=en_US.UTF8 screen -d -m ~/config/bin/weechat-wrapper.sh'
[Install]
WantedBy=multi-user.target