diff --git a/config-debian-xfce.sh b/config-debian-xfce.sh new file mode 100755 index 0000000..5354dc9 --- /dev/null +++ b/config-debian-xfce.sh @@ -0,0 +1,12 @@ +#!/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 + echo "Successfully configured autologin as $UserName" +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 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 ] 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