-
Notifications
You must be signed in to change notification settings - Fork 0
/
recommend.sh
executable file
·127 lines (73 loc) · 2.72 KB
/
recommend.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
#!/bin/env bash
# File : recommend.sh
systemctl enable NetworkManager.service
systemctl start NetworkManager.service
echo Connect to the Internet
nmtui
echo " Updating Mirrors Using reflector (Last 10 Recently Synchronised HTTPS mirrors sorted By Download Speed ) "
pacman -S reflector
reflector --verbose --protocol https --latest 10 --sort rate --save /etc/pacman.d/mirrorlist
echo General Recommendations And Installation Of Apps
#Adding A New User
echo "-----------------------------------------------------------------"
echo ""
echo " ADDING A USER NAME "
echo ""
echo "-------------------------------------------------------------------"
read -p "Enter User Name : " user_name
useradd -m $user_name
echo "To Check Whether The User Has Been Added or not (Check User Name , Should Be The Last Entry)"
sleep 2
passwd -Sa
echo "------------------------------------------------------------------"
echo ""
echo " ENTER USER PASSWORD "
echo ""
echo "---------------------------------------------------------------------"
passwd $user_name
# Privilege Elevation
pacman -S sudo vi reflector
#Adding a User to Wheel Group
echo "----------------------------------------------------------------------------------------"
echo ""
echo " Adding $user_name to the Wheel Group (Privilege Elevation for User (sudo )) "
echo ""
echo "--------------------------------------------------------------------------------------------"
sleep 4
usermod --append --groups wheel $user_name
sleep 3
echo "Uncomment Wheel Group (Using visudo Command , Use Del to Delete # and then Press Esc and enter :wq and then press enter "
visudo
#DISPLAY SERVER
echo " choosing Display "
sleep 1
#XORG -X WINDOW SERVER
sudo pacman -S xorg-server xorg-apps
#DRIVER INSTALLTION
echo " Please Identify Your Card (Ignore The Nvidia One For Now )"
lspci | grep -e VGA -e 3D
sudo pacman -S xf86-video-intel mesa
echo ""
echo ""
echo ""
echo "------------------------------------------------------------------------------------------"
echo Skipping Nvidia For Now
echo ""
echo ""
echo "--------------------------------------------------------------------------------------------"
# DESKTOP Environments
echo ""
echo ""
echo "-----------------------------------------------------------------------------------"
echo ""
echo Downloading KDE
echo ""
echo "-----------------------------------------------------------------------------------------"
sleep 3
sudo pacman -S plasma-desktop sddm plasma xdg-user-dirs
sudo systemctl enable sddm.service
sudo systemctl enable NetworkManager.service
sudo pacman -Sy archlinux-keyring
./applications.sh
echo "Reboot Now Or Install More Stuff "
sleep 2