home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extend maildrop mailfilter rules.
[config]
/
jessie_start_server.sh
diff --git
a/jessie_start_server.sh
b/jessie_start_server.sh
index 4a2e4af5f0a7008e9b49bd5549f249c989e8b3a5..244167dae57fd0427968262c3bf45ceaa664a9d4 100755
(executable)
--- a/
jessie_start_server.sh
+++ b/
jessie_start_server.sh
@@
-5,7
+5,7
@@
set -e
# Set root pw.
passwd
# Set root pw.
passwd
-# Post-installation reduction.
(Answer "no" to GRUB question.)
+# Post-installation reduction.
dpkg-query -Wf '${Package} ${Priority}\n' | grep ' required' | sed 's/ required//' > list_white_unsorted
echo 'ifupdown' >> list_white_unsorted
echo 'isc-dhcp-client' >> list_white_unsorted
dpkg-query -Wf '${Package} ${Priority}\n' | grep ' required' | sed 's/ required//' > list_white_unsorted
echo 'ifupdown' >> list_white_unsorted
echo 'isc-dhcp-client' >> list_white_unsorted
@@
-82,6
+82,9
@@
apt-get -y install vim
mkdir -p .vimbackups
su plom -c 'mkdir -p /home/plom/.vimbackups/'
mkdir -p .vimbackups
su plom -c 'mkdir -p /home/plom/.vimbackups/'
+# Set up ssh-guard.
+apt-get -y install sshguard rsyslog
+
# Set up openssh-server.
apt-get -y install openssh-server
# Set up openssh-server.
apt-get -y install openssh-server
@@
-89,26
+92,39
@@
apt-get -y install openssh-server
su plom -c 'mkdir -p /home/plom/mail/'
su plom -c 'mkdir -p /home/plom/mail/inbox/{cur,new,tmp}'
su plom -c 'mkdir -p /home/plom/mail/new_inbox/{cur,new,tmp}'
su plom -c 'mkdir -p /home/plom/mail/'
su plom -c 'mkdir -p /home/plom/mail/inbox/{cur,new,tmp}'
su plom -c 'mkdir -p /home/plom/mail/new_inbox/{cur,new,tmp}'
+sed -i 's/^delete = true$/delete = false/g' /home/plom/config/dotfiles_user_server/getmail/getmailrc
DEBIAN_FRONTEND=noninteractive apt-get -y install getmail4 procmail mutt postfix maildrop
cp config/systemfiles/main.cf /etc/postfix/main.cf
cp config/systemfiles/aliases /etc/aliases
newaliases
service postfix restart
DEBIAN_FRONTEND=noninteractive apt-get -y install getmail4 procmail mutt postfix maildrop
cp config/systemfiles/main.cf /etc/postfix/main.cf
cp config/systemfiles/aliases /etc/aliases
newaliases
service postfix restart
-# Set up screen.
-apt-get -y install screen
+# Set up regular system update reminder.
+apt-get -y install cron
+su plom -c "echo '0 18 * * 0 ~/config/bin/simplemail.sh ~/config/mails/update_reminder' | crontab -"
-# Set up ping.
-apt-get -y install iputils-ping
+# 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
+# Set up screen.
+#apt-get -y install screen
+#
+# Set up ping.
+#apt-get -y install iputils-ping
+#
# Set up irssi.
# Set up irssi.
-apt-get -y install irssi
-cp config/systemfiles/irssi.service /etc/systemd/system/irssi.service
-systemctl enable /etc/systemd/system/irssi.service
+
#
apt-get -y install irssi
+
#
cp config/systemfiles/irssi.service /etc/systemd/system/irssi.service
+
#
systemctl enable /etc/systemd/system/irssi.service
# Clean up.
rm jessie_start_server.sh
# Clean up.
rm jessie_start_server.sh
+# Send instructions mail.
+config/bin/simplemail.sh config/mails/server_postinstall_finished
+
# Set password for user.
passwd plom
# Set password for user.
passwd plom