Merge branch 'master' of https://git.faronear.org/lib/sysconfig
This commit is contained in:
		
						commit
						c0dad58b57
					
				
							
								
								
									
										12
									
								
								config-debian-xfce.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										12
									
								
								config-debian-xfce.sh
									
									
									
									
									
										Executable 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 | ||||||
|  | 
 | ||||||
| @ -1,5 +1,7 @@ | |||||||
| echo "Usage: setup.sh [NewUser]" | #!/bin/bash | ||||||
| echo "Example: setup.sh alice" | 
 | ||||||
|  | echo "Usage: this.sh [NewUser]" | ||||||
|  | echo "Example: this.sh alice" | ||||||
| 
 | 
 | ||||||
| if [ v$1 != v ] | if [ v$1 != v ] | ||||||
| then | then | ||||||
|  | |||||||
| @ -19,7 +19,7 @@ if [ ! -d $SourcePath ] | |||||||
| then | then | ||||||
|   echo "!!! Not existing $SourcePath, please try again" |   echo "!!! Not existing $SourcePath, please try again" | ||||||
| else | else | ||||||
|   echo "Config home from $SourcePath" |   echo "Copy home scripts from $SourcePath" | ||||||
| 
 | 
 | ||||||
|   echo "---------------------------------------------" |   echo "---------------------------------------------" | ||||||
|   if [ -e ~/.emacs ] |   if [ -e ~/.emacs ] | ||||||
|  | |||||||
| @ -5,7 +5,8 @@ git clone https://github.com/teddysun/lamp.git | |||||||
| cd lamp | cd lamp | ||||||
| chmod 755 *.sh | 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" | 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 | 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
									
								
							
							
						
						
									
										6
									
								
								install-lnmp.sh
									
									
									
									
									
										Normal 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 | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user