From c27c5c235ddbd6fd671dd1d56881023e1f50e745 Mon Sep 17 00:00:00 2001 From: "luk.lu" Date: Wed, 9 Oct 2019 11:39:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=20/etc/rc.local=20=E5=92=8C?= =?UTF-8?q?=20/root/autostart.sh=20=E7=9A=84=E8=87=AA=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E6=9C=BA=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup-debian.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/setup-debian.sh b/setup-debian.sh index bd47385..20fcf68 100644 --- a/setup-debian.sh +++ b/setup-debian.sh @@ -34,6 +34,15 @@ sed -i "s/^PermitRootLogin yes/#PermitRootLogin yes/g" /etc/ssh/sshd_config # emacs /etc/ssh/sshd_config service sshd restart +echo ">>> set autostart" +touch /etc/rc.local +chmod +x /etc/rc.local +echo "#!/bin/bash" +echo "exec /root/autostart.sh" +echo "exit 0" +touch /root/autostart.sh +chmod +x /root/autostart.sh + echo ">>> configure locales: install all-locales, default to zh-CN.UTF-8" dpkg-reconfigure locales