Skip to content

Commit dc67784

Browse files
committed
Ubuntu 22 installer test
1 parent c372b38 commit dc67784

File tree

14 files changed

+256
-59
lines changed

14 files changed

+256
-59
lines changed

APT/EL/el22.sh

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#!/bin/bash
2+
3+
#Get the necessary components
4+
apt update -y
5+
apt install udisks2 -y
6+
echo "" > /var/lib/dpkg/info/udisks2.postinst
7+
sudo dpkg --configure -a
8+
sudo apt-mark hold udisks2
9+
sudo apt-get install keyboard-configuration -y
10+
sudo apt-get install tzdata -y
11+
sudo apt-get install sudo wget nano inetutils-tools dialog exo-utils tigervnc-standalone-server tigervnc-common tigervnc-tools -y
12+
apt install enlightenment -y
13+
14+
mkdir -p ~/.vnc
15+
wget https://raw.githubusercontent.com/Techriz/AndronixOrigin/master/APT/XFCE4/vncserver-start -P /usr/local/bin/
16+
wget https://raw.githubusercontent.com/Techriz/AndronixOrigin/master/APT/XFCE4/vncserver-stop -P /usr/local/bin/
17+
chmod +x /usr/local/bin/vncserver-start
18+
chmod +x /usr/local/bin/vncserver-stop
19+
20+
echo '#!/bin/bash
21+
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
22+
export PULSE_SERVER=127.0.0.1
23+
LANG=en_US.UTF-8
24+
export LANG
25+
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
26+
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
27+
echo $$ > /tmp/xsession.pid
28+
dbus-launch --exit-with-session enlightenment_start' > ~/.vnc/xstartup
29+
30+
chmod +x ~/.vnc/xstartup
31+
32+
apt install epiphany-browser -y
33+
34+
echo "You can now start vncserver by running vncserver-start"
35+
echo " "
36+
echo "It will ask you to enter a password when first time starting it."
37+
echo " "
38+
echo "The VNC Server will be started at 127.0.0.1:5901"
39+
echo " "
40+
echo "You can connect to this address with a VNC Viewer you prefer"
41+
echo " "
42+
echo "Connect to this address will open a window with Xfce4 Desktop Environment"
43+
echo " "
44+
echo " "
45+
echo " "
46+
echo "Running vncserver-start"
47+
echo " "
48+
echo " "
49+
echo " "
50+
echo "To Kill VNC Server just run vncserver-stop"
51+
echo " "
52+
echo " "
53+
echo " "
54+
55+
echo "export DISPLAY=":1"" >> /etc/profile
56+
source /etc/profile

APT/LXDE/lxde22.sh

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#!/bin/bash
2+
3+
#Get the necessary components
4+
sudo apt-mark hold udisks2
5+
sudo apt-get update
6+
sudo apt-get install keyboard-configuration -y
7+
sudo apt-get install tzdata -y
8+
sudo apt-get install sudo wget nano inetutils-tools dialog -y
9+
sudo apt-get install lxde-core lxterminal tigervnc-standalone-server tigervnc-common tigervnc-tools dbus-x11 --no-install-recommends -y
10+
sudo apt-get clean
11+
12+
#Setup the necessary files
13+
mkdir -p ~/.vnc
14+
15+
echo "#!/bin/bash
16+
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
17+
export PULSE_SERVER=127.0.0.1
18+
LANG=en_US.UTF-8
19+
export LANG
20+
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
21+
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
22+
echo $$ > /tmp/xsession.pid
23+
dbus-launch --exit-with-session startlxde" > ~/.vnc/xstartup
24+
25+
chmod +x ~/.vnc/xstartup
26+
27+
echo " "
28+
29+
echo "Running browser patch"
30+
wget https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Uninstall/ubchromiumfix.sh && chmod +x ubchromiumfix.sh
31+
./ubchromiumfix.sh && rm -rf ubchromiumfix.sh
32+
33+
echo "You can now start vncserver by running vncserver-start"
34+
echo " "
35+
echo "It will ask you to enter a password when first time starting it."
36+
echo " "
37+
echo "The VNC Server will be started at 127.0.0.1:5901"
38+
echo " "
39+
echo "You can connect to this address with a VNC Viewer you prefer"
40+
echo " "
41+
echo "Connect to this address will open a window with LXDE Desktop Environment"
42+
echo " "
43+
echo " "
44+
echo " "
45+
echo "Running vncserver-start"
46+
echo " "
47+
echo " "
48+
echo " "
49+
echo "To Kill VNC Server just run vncserver-stop"
50+
echo " "
51+
echo " "
52+
echo " "
53+
54+
vncpasswd
55+
vncserver-start

APT/LXQT/lxqt22.sh

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#!/bin/bash
2+
3+
#Get the necessary components
4+
sudo apt-mark hold udisks2
5+
sudo apt-get update -y
6+
sudo apt-get install keyboard-configuration -y
7+
sudo apt-get install tzdata -y
8+
sudo apt-get install sudo wget nano inetutils-tools dialog -y
9+
sudo apt-get install lxqt-core lxqt-config qterminal tigervnc-standalone-server tigervnc-tools dbus-x11 openbox -y
10+
sudo apt-get install xfe -y
11+
sudo apt-get clean
12+
13+
#Setup the necessary files
14+
mkdir -p ~/.vnc
15+
echo "#!/bin/bash
16+
export PULSE_SERVER=127.0.0.1
17+
LANG=en_US.UTF-8
18+
export LANG
19+
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
20+
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
21+
echo $$ > /tmp/xsession.pid
22+
dbus-launch --exit-with-session startlxqt" > ~/.vnc/xstartup
23+
24+
chmod +x ~/.vnc/xstartup
25+
26+
echo " "
27+
28+
echo "Running browser patch"
29+
wget https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Uninstall/ubchromiumfix.sh && chmod +x ubchromiumfix.sh
30+
./ubchromiumfix.sh && rm -rf ubchromiumfix.sh
31+
32+
echo "You can now start vncserver by running vncserver-start"
33+
echo " "
34+
echo "It will ask you to enter a password when first time starting it."
35+
echo " "
36+
echo "The VNC Server will be started at 127.0.0.1:5901"
37+
echo " "
38+
echo "You can connect to this address with a VNC Viewer you prefer"
39+
echo " "
40+
echo "Connect to this address will open a window with LXQt Desktop Environment"
41+
echo " "
42+
echo " "
43+
echo " "
44+
echo "Running vncserver-start"
45+
echo " "
46+
echo " "
47+
echo " "
48+
echo "To Kill VNC Server just run vncserver-stop"
49+
echo " "
50+
echo " "
51+
echo " "
52+
53+
echo "export DISPLAY=":1"" >> /etc/profile
54+
source /etc/profile
55+
56+
vncpasswd
57+
vncserver-start

APT/XFCE4/xfce22.sh

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#!/bin/bash
2+
3+
#Get the necessary components
4+
sudo apt-get update
5+
sudo apt install udisks2 -y
6+
echo "" > /var/lib/dpkg/info/udisks2.postinst
7+
sudo dpkg --configure -a
8+
sudo apt-mark hold udisks2
9+
sudo apt-get install keyboard-configuration -y
10+
sudo apt-get install tzdata -y
11+
sudo apt-get install sudo wget nano inetutils-tools dialog -y
12+
sudo apt-get install xfce4 xfce4-goodies xfce4-terminal exo-utils tigervnc-standalone-server tigervnc-common tigervnc-tools dbus-x11 --no-install-recommends -y
13+
sudo apt-get clean
14+
mkdir -p ~/.vnc
15+
wget https://raw.githubusercontent.com/Techriz/AndronixOrigin/master/APT/XFCE4/vncserver-start -P /usr/local/bin/
16+
wget https://raw.githubusercontent.com/Techriz/AndronixOrigin/master/APT/XFCE4/vncserver-stop -P /usr/local/bin/
17+
chmod +x /usr/local/bin/vncserver-start
18+
chmod +x /usr/local/bin/vncserver-stop
19+
20+
echo '#!/bin/bash
21+
export PULSE_SERVER=127.0.0.1
22+
LANG=en_US.UTF-8
23+
export LANG
24+
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
25+
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
26+
echo $$ > /tmp/xsession.pid
27+
dbus-launch --exit-with-session /usr/bin/startxfce4' > ~/.vnc/xstartup
28+
29+
chmod +x ~/.vnc/xstartup
30+
31+
echo " "
32+
33+
echo "Running browser patch"
34+
wget https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Uninstall/ubchromiumfix.sh && chmod +x ubchromiumfix.sh
35+
./ubchromiumfix.sh && rm -rf ubchromiumfix.sh
36+
37+
echo "You can now start vncserver by running vncserver-start"
38+
echo " "
39+
echo "It will ask you to enter a password when first time starting it."
40+
echo " "
41+
echo "The VNC Server will be started at 127.0.0.1:5901"
42+
echo " "
43+
echo "You can connect to this address with a VNC Viewer you prefer"
44+
echo " "
45+
echo "Connect to this address will open a window with Xfce4 Desktop Environment"
46+
echo " "
47+
echo " "
48+
echo " "
49+
echo "Running vncserver-start"
50+
echo " "
51+
echo " "
52+
echo " "
53+
echo "To Kill VNC Server just run vncserver-stop"
54+
echo " "
55+
echo " "
56+
echo " "
57+
58+
echo "export DISPLAY=":1"" >> /etc/profile
59+
source /etc/profile
60+
61+
vncpasswd
62+
vncserver-start

Installer/Ubuntu20/ubuntu20.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,6 @@ chmod +x $bin
250250
echo "removing image for some space"
251251
rm $tarball
252252
clear
253-
echo "You can now launch Ubuntu with the ./${bin} script form next time"
253+
echo "You can now launch Ubuntu with the ./${bin} script from next time"
254254
bash $bin
255255

Installer/Ubuntu22/ubuntu22-awesome.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,15 +220,12 @@ EOM
220220
mkdir -p ubuntu22-fs/var/tmp
221221
rm -rf ubuntu22-fs/usr/local/bin/*
222222

223-
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/.profile -O ubuntu22-fs/root/.profile.1 > /dev/null
224-
cat $folder/root/.profile.1 >> $folder/root/.profile && rm -rf $folder/root/.profile.1
225223
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/vnc -P ubuntu22-fs/usr/local/bin > /dev/null
226224
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/vncpasswd -P ubuntu22-fs/usr/local/bin > /dev/null
227225
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/vncserver-stop -P ubuntu22-fs/usr/local/bin > /dev/null
228226
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/vncserver-start -P ubuntu22-fs/usr/local/bin > /dev/null
229227

230228
chmod +x ubuntu22-fs/root/.bash_profile
231-
chmod +x ubuntu22-fs/root/.profile
232229
chmod +x ubuntu22-fs/usr/local/bin/vnc
233230
chmod +x ubuntu22-fs/usr/local/bin/vncpasswd
234231
chmod +x ubuntu22-fs/usr/local/bin/vncserver-start

Installer/Ubuntu22/ubuntu22-el.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,19 +223,19 @@ rm $tarball
223223

224224
#DE installation addition
225225

226-
wget --tries=20 $dlink/EL/el20.sh -O $folder/root/el20.sh
226+
wget --tries=20 $dlink/EL/el22.sh -O $folder/root/el22.sh
227227
clear
228228
echo "Setting up the installation of Enlightenment VNC"
229229

230230
echo "APT::Acquire::Retries \"3\";" > $folder/etc/apt/apt.conf.d/80-retries #Setting APT retry count
231231
echo "#!/bin/bash
232232
apt update -y && apt install wget sudo -y
233233
clear
234-
if [ ! -f /root/el20.sh ]; then
235-
wget --tries=20 $dlink/EL/el20.sh -O /root/el20.sh
236-
bash ~/el20.sh
234+
if [ ! -f /root/el22.sh ]; then
235+
wget --tries=20 $dlink/EL/el22.sh -O /root/el22.sh
236+
bash ~/el22.sh
237237
else
238-
bash ~/el20.sh
238+
bash ~/el22.sh
239239
fi
240240
clear
241241
if [ ! -f /usr/local/bin/vncserver-start ]; then

Installer/Ubuntu22/ubuntu22-i3.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,15 +220,12 @@ EOM
220220
mkdir -p ubuntu22-fs/var/tmp
221221
rm -rf ubuntu22-fs/usr/local/bin/*
222222

223-
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/.profile -O ubuntu22-fs/root/.profile.1 > /dev/null
224-
cat $folder/root/.profile.1 >> $folder/root/.profile && rm -rf $folder/root/.profile.1
225223
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/vnc -P ubuntu22-fs/usr/local/bin > /dev/null
226224
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/vncpasswd -P ubuntu22-fs/usr/local/bin > /dev/null
227225
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/vncserver-stop -P ubuntu22-fs/usr/local/bin > /dev/null
228226
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/vncserver-start -P ubuntu22-fs/usr/local/bin > /dev/null
229227

230228
chmod +x ubuntu22-fs/root/.bash_profile
231-
chmod +x ubuntu22-fs/root/.profile
232229
chmod +x ubuntu22-fs/usr/local/bin/vnc
233230
chmod +x ubuntu22-fs/usr/local/bin/vncpasswd
234231
chmod +x ubuntu22-fs/usr/local/bin/vncserver-start

Installer/Ubuntu22/ubuntu22-lxde.sh

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,11 @@ EOM
219219
mkdir -p ubuntu22-fs/var/tmp
220220
rm -rf ubuntu22-fs/usr/local/bin/*
221221
echo "127.0.0.1 localhost localhost" > $folder/etc/hosts
222-
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/.profile -O ubuntu22-fs/root/.profile.1 > /dev/null
223-
cat $folder/root/.profile.1 >> $folder/root/.profile && rm -rf $folder/root/.profile.1
224222
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/vnc -P ubuntu22-fs/usr/local/bin > /dev/null
225223
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/vncpasswd -P ubuntu22-fs/usr/local/bin > /dev/null
226224
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/vncserver-stop -P ubuntu22-fs/usr/local/bin > /dev/null
227225
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/vncserver-start -P ubuntu22-fs/usr/local/bin > /dev/null
228226

229-
chmod +x ubuntu22-fs/root/.profile
230227
chmod +x ubuntu22-fs/usr/local/bin/vnc
231228
chmod +x ubuntu22-fs/usr/local/bin/vncpasswd
232229
chmod +x ubuntu22-fs/usr/local/bin/vncserver-start
@@ -241,7 +238,7 @@ rm $tarball
241238

242239
#DE installation addition
243240

244-
wget --tries=20 $dlink/LXDE/lxde19.sh -O $folder/root/lxde19.sh
241+
wget --tries=20 $dlink/LXDE/lxde22.sh -O $folder/root/lxde22.sh
245242
clear
246243
echo "Setting up the installation of LXDE VNC"
247244

@@ -255,11 +252,11 @@ nameserver 1.1.1.1' > /etc/resolv.conf
255252
mkdir -p ~/.vnc
256253
apt update -y && apt install sudo wget -y > /dev/null
257254
clear
258-
if [ ! -f /root/lxde19.sh ]; then
259-
wget --tries=20 $dlink/LXDE/lxde19.sh -O /root/lxde19.sh
260-
bash ~/lxde19.sh
255+
if [ ! -f /root/lxde22.sh ]; then
256+
wget --tries=20 $dlink/LXDE/lxde22.sh -O /root/lxde22.sh
257+
bash ~/lxde22.sh
261258
else
262-
bash ~/lxde19.sh
259+
bash ~/lxde22.sh
263260
fi
264261
clear
265262
if [ ! -f /usr/local/bin/vncserver-start ]; then
@@ -271,7 +268,7 @@ fi
271268
if [ ! -f /usr/bin/vncserver ]; then
272269
apt install tigervnc-standalone-server -y
273270
fi
274-
rm -rf /root/lxde19.sh
271+
rm -rf /root/lxde22.sh
275272
rm -rf ~/.bash_profile" > $folder/root/.bash_profile
276273
clear
277274
bash $bin

Installer/Ubuntu22/ubuntu22-lxqt.sh

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -221,15 +221,12 @@ EOM
221221
mkdir -p ubuntu22-fs/var/tmp
222222
rm -rf ubuntu22-fs/usr/local/bin/*
223223
echo "127.0.0.1 localhost localhost" > $folder/etc/hosts
224-
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/.profile -O ubuntu22-fs/root/.profile.1 > /dev/null
225-
cat $folder/root/.profile.1 >> $folder/root/.profile && rm -rf $folder/root/.profile.1
226224

227225
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/vnc -P ubuntu22-fs/usr/local/bin > /dev/null
228226
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/vncpasswd -P ubuntu22-fs/usr/local/bin > /dev/null
229227
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/vncserver-stop -P ubuntu22-fs/usr/local/bin > /dev/null
230228
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/vncserver-start -P ubuntu22-fs/usr/local/bin > /dev/null
231229

232-
chmod +x ubuntu22-fs/root/.profile
233230
chmod +x ubuntu22-fs/usr/local/bin/vnc
234231
chmod +x ubuntu22-fs/usr/local/bin/vncpasswd
235232
chmod +x ubuntu22-fs/usr/local/bin/vncserver-start
@@ -244,7 +241,7 @@ rm $tarball
244241

245242
#DE installation addition
246243

247-
wget --tries=20 $dlink/LXQT/lxqt19.sh -O $folder/root/lxqt19.sh
244+
wget --tries=20 $dlink/LXQT/lxqt22.sh -O $folder/root/lxqt22.sh
248245
clear
249246
echo "Setting up the installation of LXQT VNC"
250247

@@ -259,11 +256,11 @@ mkdir -p ~/.vnc
259256
touch ~/.hushlogin
260257
apt update -y && apt install sudo wget -y > /dev/null
261258
clear
262-
if [ ! -f /root/lxqt19.sh ]; then
263-
wget --tries=20 $dlink/LXQT/lxqt19.sh -O /root/lxqt19.sh
264-
bash ~/lxqt19.sh
259+
if [ ! -f /root/lxqt22.sh ]; then
260+
wget --tries=20 $dlink/LXQT/lxqt22.sh -O /root/lxqt22.sh
261+
bash ~/lxqt22.sh
265262
else
266-
bash ~/lxqt19.sh
263+
bash ~/lxqt22.sh
267264
fi
268265
clear
269266
if [ ! -f /usr/local/bin/vncserver-start ]; then
@@ -275,7 +272,7 @@ fi
275272
if [ ! -f /usr/bin/vncserver ]; then
276273
apt install tigervnc-standalone-server -y
277274
fi
278-
rm -rf /root/lxqt19.sh
275+
rm -rf /root/lxqt22.sh
279276
rm -rf ~/.bash_profile" > $folder/root/.bash_profile
280277
clear
281278
bash $bin

0 commit comments

Comments
 (0)