-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlinux_template.sh
executable file
·37 lines (30 loc) · 1.01 KB
/
linux_template.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# SCRIPT:
# REV: Version 1.0
# PLATFORM: Linux
# AUTHOR: Coenraad
#
# PURPOSE: Linux template
#
##########################################################
########### DEFINE FILES AND VARIABLES HERE ##############
##########################################################
##########################################################
################ BEGINNING OF MAIN #######################
##########################################################
echo
echo -e "\e[40;38;5;82m [+] \e[30;48;5;82m Installing Need Repo's and software!!! This will take TIME.. \e[0m"
echo
echo "Installing system"
i cho
echo -e "Setup User for sudo"
echo
echo "Type in the user name that will get sudo role "
read usersudo
echo "$usersudo ALL = (root) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/$usersudo
chmod 0440 /etc/sudoers.d/$usersudo
####################################################
################ END OF MAIN #######################
####################################################
exit 0
# End of script