From e86ff290472d1c4f6f32c86168e36298306180ec Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Sat, 19 Jun 2021 10:10:35 +0800 Subject: [PATCH 1/4] u --- config-debian-xfce.sh | 11 +++++++++++ config-debian.sh | 6 ++++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100755 config-debian-xfce.sh diff --git a/config-debian-xfce.sh b/config-debian-xfce.sh new file mode 100755 index 0000000..e96d238 --- /dev/null +++ b/config-debian-xfce.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +read -p "Enable autologin as user? >>> " UserName +if [ $UserName ] +then + sed -i "s/^.*autologin-user=.*$/autologin-user=$UserName/g" /etc/lightdm/lightdm.conf + sed -i "s/^.*autologin-user-timeout=.*$/autologin-user-timeout=0/g" /etc/lightdm/lightdm.conf +else + echo 'Nothing changed.' +fi + diff --git a/config-debian.sh b/config-debian.sh index 87e9bc0..176a2f1 100755 --- a/config-debian.sh +++ b/config-debian.sh @@ -1,5 +1,7 @@ -echo "Usage: setup.sh [NewUser]" -echo "Example: setup.sh alice" +#!/bin/bash + +echo "Usage: this.sh [NewUser]" +echo "Example: this.sh alice" if [ v$1 != v ] then From 4473a6ed4e1470a28c310b3704e353f38ac9a8ea Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Sat, 19 Jun 2021 10:44:18 +0800 Subject: [PATCH 2/4] u --- config-debian-xfce.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/config-debian-xfce.sh b/config-debian-xfce.sh index e96d238..5354dc9 100755 --- a/config-debian-xfce.sh +++ b/config-debian-xfce.sh @@ -5,6 +5,7 @@ if [ $UserName ] then sed -i "s/^.*autologin-user=.*$/autologin-user=$UserName/g" /etc/lightdm/lightdm.conf sed -i "s/^.*autologin-user-timeout=.*$/autologin-user-timeout=0/g" /etc/lightdm/lightdm.conf + echo "Successfully configured autologin as $UserName" else echo 'Nothing changed.' fi From 8a8cdbe76f1411f8c4101568db4942a9b7203a60 Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Sun, 20 Jun 2021 07:50:24 +0800 Subject: [PATCH 3/4] u --- config-home.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config-home.sh b/config-home.sh index 2615acd..bdac5c7 100755 --- a/config-home.sh +++ b/config-home.sh @@ -19,7 +19,7 @@ if [ ! -d $SourcePath ] then echo "!!! Not existing $SourcePath, please try again" else - echo "Config home from $SourcePath" + echo "Copy home scripts from $SourcePath" echo "---------------------------------------------" if [ -e ~/.emacs ] From cf2402cc070d152f0f1ad4d9ffebd8c27ad4557b Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Sun, 27 Jun 2021 21:57:13 +0800 Subject: [PATCH 4/4] u --- install-lamp.sh | 3 ++- install-lnmp.sh | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 install-lnmp.sh diff --git a/install-lamp.sh b/install-lamp.sh index 5618d91..6f3790e 100755 --- a/install-lamp.sh +++ b/install-lamp.sh @@ -5,7 +5,8 @@ git clone https://github.com/teddysun/lamp.git cd lamp chmod 755 *.sh +echo "LAMP https://lamp.sh" echo "Don't select php 7.2 or above, it fails due to lacking of freetype-config. Please use php 7.1" read -p "Enter root password of MySQL Server >> " DBPWD -screen ./lamp.sh --apache_option 1 --db_option 3 --php_option 3 --db_root_pwd $DBPWD --db_manage_modules phpmyadmin --kodexplorer_option 1 \ No newline at end of file +screen ./lamp.sh --apache_option 1 --db_option 3 --php_option 7 --db_root_pwd $DBPWD --db_manage_modules phpmyadmin --kodexplorer_option 1 diff --git a/install-lnmp.sh b/install-lnmp.sh new file mode 100644 index 0000000..ecd6442 --- /dev/null +++ b/install-lnmp.sh @@ -0,0 +1,6 @@ +echo "LNMP https://www.lnmp.org" + +wget http://soft.vpser.net/lnmp/lnmp1.8.tar.gz -cO lnmp1.8.tar.gz +tar zxf lnmp1.8.tar.gz +cd lnmp1.8 +./install.sh lnmp