This commit is contained in:
陆柯 2021-06-28 10:43:24 +08:00
commit c0dad58b57
5 changed files with 25 additions and 4 deletions

12
config-debian-xfce.sh Executable file
View File

@ -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

View File

@ -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

View File

@ -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 ]

View File

@ -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
screen ./lamp.sh --apache_option 1 --db_option 3 --php_option 7 --db_root_pwd $DBPWD --db_manage_modules phpmyadmin --kodexplorer_option 1

6
install-lnmp.sh Normal file
View File

@ -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