home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Start using systemfiles/ dir instead of <EOFs in postinstall script.
[config]
/
jessie_start_server.sh
diff --git
a/jessie_start_server.sh
b/jessie_start_server.sh
index bf56165ffd62f377b8d7424858df08d7416cfc42..1ce290040790b4dfe62072045bc8a80915de25fb 100755
(executable)
--- a/
jessie_start_server.sh
+++ b/
jessie_start_server.sh
@@
-22,6
+22,12
@@
rm list_all_packages list_white_unsorted list_white list_black
echo 'APT::Install-Recommends "false";' >> /etc/apt/apt.conf.d/99mindeps
echo 'APT::Install-Suggests "false";' >> /etc/apt/apt.conf.d/99mindeps
echo 'APT::Install-Recommends "false";' >> /etc/apt/apt.conf.d/99mindeps
echo 'APT::Install-Suggests "false";' >> /etc/apt/apt.conf.d/99mindeps
+# Set hostname and FQDN.
+echo 'plomlompom' > /etc/hostname
+echo '127.0.0.1 localhost' > /etc/hosts
+ip=`hostname -I`
+echo "$ip plomlompom.com plomlompom" >> /etc/hosts
+
# Call dhclient on startup.
cat > /etc/systemd/system/dhclient.service << EOF
[Unit]
# Call dhclient on startup.
cat > /etc/systemd/system/dhclient.service << EOF
[Unit]
@@
-86,11
+92,11
@@
su plom -c 'mkdir -p /home/plom/mail/inbox/{cur,new,tmp}'
# Set up screen.
apt-get -y install screen
# Set up screen.
apt-get -y install screen
+# Set up ping.
+apt-get -y install iputils-ping
+
# Set up irssi.
apt-get -y install irssi
# 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
cat > /etc/systemd/system/irssi.service << EOF
[Unit]
Description=irssi screen
@@
-105,5
+111,11
@@
WantedBy=multi-user.target
EOF
systemctl enable /etc/systemd/system/irssi.service
EOF
systemctl enable /etc/systemd/system/irssi.service
+# Clean up.
+rm jessie_start_server.sh
+
# Set password for user.
passwd plom
# Set password for user.
passwd plom
+
+# Finalize everything with a reboot.
+reboot