-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdesktop.sh
More file actions
144 lines (122 loc) · 5.41 KB
/
desktop.sh
File metadata and controls
144 lines (122 loc) · 5.41 KB
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
#! /bin/bash
#
##########################################
# #
# presented : Anon404 #
# Author : William Steven #
# #
##########################################
#____colors____
black='\033[1;30m'
red='\033[1;31m'
green='\033[1;32m'
yellow='\033[1;33m'
blue='\033[1;34m'
magenta='\033[1;35m'
cyan='\033[1;36m'
white='\033[1;37m'
user=$(cat user.user)
banner(){
clear
echo -e "${blue}################################################################"
echo ""
echo " ___ ___ _______ __ _ ________"
echo " / _ | / _ \/ ___/ // /___| |/_< < /"
echo " / __ |/ , _/ /__/ _ /___/> < / // / "
echo "/_/ |_/_/|_|\___/_//_/ /_/|_|/_//_/ "
echo " "
echo -e "${green}presented by : Anon404"
echo "created by : William Steven"
echo -e "${blue}"
echo "################################################################"
echo ""
}
pkgInstaller(){
echo ""
echo -e "${yellow}[+] ${green}Updating system before installation ${white}"
pd sh archlinux --user $user -- bash -c "sudo pacman -Syu --noconfirm"
for i in wget base-devel dialog tzdata gnupg dbus curl nano git xz at-spi2-core xfce4 xfce4-goodies xfce4-terminal librsvg inetutils dbus firefox vlc pulseaudio fakeroot go
do
pd sh archlinux --user $user -- bash -c "sudo rm -rf /var/lib/pacman/db.lck"
echo ""
echo -e "${yellow}[+] ${green}Installing $i ${white}"
echo ""
while ! pd sh archlinux --user $user -- bash -c "sudo pacman -S --noconfirm $i --needed"; do
echo -e "${red}[-] Failed to install $i. Retrying...${white}"
sleep 2
done
echo -e "${green}[+] Successfully installed $i ${white}"
done
}
yayInstaller(){
echo -e "${yellow}[+] ${green}Installing yay ${white}"
pd sh archlinux --user $user -- bash -c "git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si"
echo -e "${green}[+] Successfully installed yay ${white}"
pd sh archlinux --user $user -- bash -c "rm -rf yay"
}
vscode(){
echo -e "${yellow}[+] ${green}Installing vscode${white}"
echo ""
pd sh archlinux --user $user -- bash -c "git clone https://aur.archlinux.org/visual-studio-code-bin.git
cd visual-studio-code-bin
while ! makepkg -si ; do
echo -e "${red}[-] Failed to installing vscode. Retrying...${white}"
sleep 2
done
cd
sudo rm -rf visual-studio-code-bin"
}
note(){
# creating x11-start file
pd sh archlinux -- bash -c "touch x11-start"
pd sh archlinux -- bash -c "echo '#! /bin/bash' >> x11-start"
pd sh archlinux -- bash -c "echo 'export DISPLAY=:1' >> x11-start"
pd sh archlinux -- bash -c "echo 'xfce4-session > /dev/null 2>&1' >> x11-start"
pd sh archlinux -- bash -c "chmod 777 x11-start && sudo mv x11-start /usr/bin"
banner
echo -e "${yellow}[+] ${green}install ${cyan}termux x11${green} app from github"
echo ""
echo -e "${yellow}[+] ${green}simply type ${cyan}x11-start ${green}to start desktop environment"
echo ""
echo -e "${yellow}[+] ${green}open ${cyan}termux x11 ${green}app and enjoy"
echo ""
echo -e "${yellow}[+] ${green}stop x11 service by ${cyan}CTRL + C"
echo ""
}
envsetup(){
banner
echo -e "${yellow}[+] ${green}installing and setting up themes icons wallpapers"
echo ""
pd sh archlinux --user $user -- bash -c "
wget https://raw.githubusercontent.com/Anon-404/arch-x11/refs/heads/main/assets/archives/candy-icons-master.tar.xz
wget https://raw.githubusercontent.com/Anon-404/arch-x11/refs/heads/main/assets/archives/Sweet-Ambar-Blue-Dark-v40.tar.xz
wget https://raw.githubusercontent.com/Anon-404/arch-x11/refs/heads/main/assets/archives/01-WhiteSur.tar.xz
wget https://raw.githubusercontent.com/Anon-404/arch-x11/refs/heads/main/assets/archives/WhiteSur-Dark.tar.xz
wget https://raw.githubusercontent.com/Anon-404/arch-x11/refs/heads/main/assets/archives/Sweet-cursors.tar.xz
wget https://raw.githubusercontent.com/Anon-404/arch-x11/refs/heads/main/assets/archives/arch-linux-1920-x-1080-wallpaper-n3wmkn6n4ctn2j9m.jpg -O /usr/share/backgrounds/arch-linux-1920-x-1080-wallpaper-n3wmkn6n4ctn2j9m.jpg
wget https://raw.githubusercontent.com/Anon-404/arch-x11/refs/heads/main/assets/archives/com0613.jpg -O /usr/share/backgrounds/com0613.jpg
wget https://raw.githubusercontent.com/Anon-404/arch-x11/refs/heads/main/assets/archives/config.tar.xz
sudo rm -rf .config
sudo tar -xvf Sweet-cursors.tar.xz -C \"/usr/share/icons\"
sudo tar -xvf Sweet-Ambar-Blue-Dark-v40.tar.xz -C \"/usr/share/themes/\"
sudo tar -xvf candy-icons-master.tar.xz -C \"/usr/share/icons\"
sudo tar -xvf WhiteSur-Dark.tar.xz -C \"/usr/share/themes\"
sudo tar -xvf 01-WhiteSur.tar.xz -C \"/usr/share/icons\"
sudo sudo tar -xvf config.tar.xz -C \"$HOME/\"
"
sleep 3
}
cleanup(){
echo ""
echo -e "${yellow}[+] ${green}refreshing system ${white}"
echo ""
pd sh archlinux --user $user -- bash -c "rm -rf candy-icons-master.tar.xz Sweet-cursors.tar.xz Sweet-Ambar-Blue-Dark-v40.tar.xz config.tar.xz WhiteSur-Dark.tar.xz 01-WhiteSur.tar.xz"
pd sh archlinux --user $user -- bash -c "sudo pacman -Syu --noconfirm"
}
banner
pkgInstaller
yayInstaller
vscode
envsetup
cleanup
note