home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In server config irssi screen, start reconnecting to server.
[config]
/
jessie_start_server.sh
diff --git
a/jessie_start_server.sh
b/jessie_start_server.sh
index c77c1749c5c6088e50f9f4bbc24661d5d260d506..bf56165ffd62f377b8d7424858df08d7416cfc42 100755
(executable)
--- a/
jessie_start_server.sh
+++ b/
jessie_start_server.sh
@@
-78,11
+78,32
@@
su plom -c 'mkdir -p /home/plom/.vimbackups/'
# Set up openssh-server.
apt-get -y install openssh-server
# Set up openssh-server.
apt-get -y install openssh-server
+# Set up mail client system.
+apt-get -y install getmail4 procmail mutt
+su plom -c 'mkdir -p /home/plom/mail'
+su plom -c 'mkdir -p /home/plom/mail/inbox/{cur,new,tmp}'
+
+# Set up screen.
+apt-get -y install screen
+
# Set up irssi.
apt-get -y install irssi
# Clean up.
rm jessie_start_server.sh
# Set up irssi.
apt-get -y install irssi
# Clean up.
rm jessie_start_server.sh
+cat > /etc/systemd/system/irssi.service << EOF
+[Unit]
+Description=irssi screen
+
+[Service]
+Type=forking
+User=plom
+ExecStart=/bin/sh /home/plom/config/other/screen-irssi.sh
+
+[Install]
+WantedBy=multi-user.target
+EOF
+systemctl enable /etc/systemd/system/irssi.service
# Set password for user.
passwd plom
# Set password for user.
passwd plom