Skip to content

Commit

Permalink
Ubuntu 22 installer test
Browse files Browse the repository at this point in the history
  • Loading branch information
ultrahacx committed Jan 17, 2023
1 parent c372b38 commit dc67784
Show file tree
Hide file tree
Showing 14 changed files with 256 additions and 59 deletions.
56 changes: 56 additions & 0 deletions APT/EL/el22.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#!/bin/bash

#Get the necessary components
apt update -y
apt install udisks2 -y
echo "" > /var/lib/dpkg/info/udisks2.postinst
sudo dpkg --configure -a
sudo apt-mark hold udisks2
sudo apt-get install keyboard-configuration -y
sudo apt-get install tzdata -y
sudo apt-get install sudo wget nano inetutils-tools dialog exo-utils tigervnc-standalone-server tigervnc-common tigervnc-tools -y
apt install enlightenment -y

mkdir -p ~/.vnc
wget https://raw.githubusercontent.com/Techriz/AndronixOrigin/master/APT/XFCE4/vncserver-start -P /usr/local/bin/
wget https://raw.githubusercontent.com/Techriz/AndronixOrigin/master/APT/XFCE4/vncserver-stop -P /usr/local/bin/
chmod +x /usr/local/bin/vncserver-start
chmod +x /usr/local/bin/vncserver-stop

echo '#!/bin/bash
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
export PULSE_SERVER=127.0.0.1
LANG=en_US.UTF-8
export LANG
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
echo $$ > /tmp/xsession.pid
dbus-launch --exit-with-session enlightenment_start' > ~/.vnc/xstartup

chmod +x ~/.vnc/xstartup

apt install epiphany-browser -y

echo "You can now start vncserver by running vncserver-start"
echo " "
echo "It will ask you to enter a password when first time starting it."
echo " "
echo "The VNC Server will be started at 127.0.0.1:5901"
echo " "
echo "You can connect to this address with a VNC Viewer you prefer"
echo " "
echo "Connect to this address will open a window with Xfce4 Desktop Environment"
echo " "
echo " "
echo " "
echo "Running vncserver-start"
echo " "
echo " "
echo " "
echo "To Kill VNC Server just run vncserver-stop"
echo " "
echo " "
echo " "

echo "export DISPLAY=":1"" >> /etc/profile
source /etc/profile
55 changes: 55 additions & 0 deletions APT/LXDE/lxde22.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#!/bin/bash

#Get the necessary components
sudo apt-mark hold udisks2
sudo apt-get update
sudo apt-get install keyboard-configuration -y
sudo apt-get install tzdata -y
sudo apt-get install sudo wget nano inetutils-tools dialog -y
sudo apt-get install lxde-core lxterminal tigervnc-standalone-server tigervnc-common tigervnc-tools dbus-x11 --no-install-recommends -y
sudo apt-get clean

#Setup the necessary files
mkdir -p ~/.vnc

echo "#!/bin/bash
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
export PULSE_SERVER=127.0.0.1
LANG=en_US.UTF-8
export LANG
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
echo $$ > /tmp/xsession.pid
dbus-launch --exit-with-session startlxde" > ~/.vnc/xstartup

chmod +x ~/.vnc/xstartup

echo " "

echo "Running browser patch"
wget https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Uninstall/ubchromiumfix.sh && chmod +x ubchromiumfix.sh
./ubchromiumfix.sh && rm -rf ubchromiumfix.sh

echo "You can now start vncserver by running vncserver-start"
echo " "
echo "It will ask you to enter a password when first time starting it."
echo " "
echo "The VNC Server will be started at 127.0.0.1:5901"
echo " "
echo "You can connect to this address with a VNC Viewer you prefer"
echo " "
echo "Connect to this address will open a window with LXDE Desktop Environment"
echo " "
echo " "
echo " "
echo "Running vncserver-start"
echo " "
echo " "
echo " "
echo "To Kill VNC Server just run vncserver-stop"
echo " "
echo " "
echo " "

vncpasswd
vncserver-start
57 changes: 57 additions & 0 deletions APT/LXQT/lxqt22.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#!/bin/bash

#Get the necessary components
sudo apt-mark hold udisks2
sudo apt-get update -y
sudo apt-get install keyboard-configuration -y
sudo apt-get install tzdata -y
sudo apt-get install sudo wget nano inetutils-tools dialog -y
sudo apt-get install lxqt-core lxqt-config qterminal tigervnc-standalone-server tigervnc-tools dbus-x11 openbox -y
sudo apt-get install xfe -y
sudo apt-get clean

#Setup the necessary files
mkdir -p ~/.vnc
echo "#!/bin/bash
export PULSE_SERVER=127.0.0.1
LANG=en_US.UTF-8
export LANG
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
echo $$ > /tmp/xsession.pid
dbus-launch --exit-with-session startlxqt" > ~/.vnc/xstartup

chmod +x ~/.vnc/xstartup

echo " "

echo "Running browser patch"
wget https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Uninstall/ubchromiumfix.sh && chmod +x ubchromiumfix.sh
./ubchromiumfix.sh && rm -rf ubchromiumfix.sh

echo "You can now start vncserver by running vncserver-start"
echo " "
echo "It will ask you to enter a password when first time starting it."
echo " "
echo "The VNC Server will be started at 127.0.0.1:5901"
echo " "
echo "You can connect to this address with a VNC Viewer you prefer"
echo " "
echo "Connect to this address will open a window with LXQt Desktop Environment"
echo " "
echo " "
echo " "
echo "Running vncserver-start"
echo " "
echo " "
echo " "
echo "To Kill VNC Server just run vncserver-stop"
echo " "
echo " "
echo " "

echo "export DISPLAY=":1"" >> /etc/profile
source /etc/profile

vncpasswd
vncserver-start
62 changes: 62 additions & 0 deletions APT/XFCE4/xfce22.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#!/bin/bash

#Get the necessary components
sudo apt-get update
sudo apt install udisks2 -y
echo "" > /var/lib/dpkg/info/udisks2.postinst
sudo dpkg --configure -a
sudo apt-mark hold udisks2
sudo apt-get install keyboard-configuration -y
sudo apt-get install tzdata -y
sudo apt-get install sudo wget nano inetutils-tools dialog -y
sudo apt-get install xfce4 xfce4-goodies xfce4-terminal exo-utils tigervnc-standalone-server tigervnc-common tigervnc-tools dbus-x11 --no-install-recommends -y
sudo apt-get clean
mkdir -p ~/.vnc
wget https://raw.githubusercontent.com/Techriz/AndronixOrigin/master/APT/XFCE4/vncserver-start -P /usr/local/bin/
wget https://raw.githubusercontent.com/Techriz/AndronixOrigin/master/APT/XFCE4/vncserver-stop -P /usr/local/bin/
chmod +x /usr/local/bin/vncserver-start
chmod +x /usr/local/bin/vncserver-stop

echo '#!/bin/bash
export PULSE_SERVER=127.0.0.1
LANG=en_US.UTF-8
export LANG
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
echo $$ > /tmp/xsession.pid
dbus-launch --exit-with-session /usr/bin/startxfce4' > ~/.vnc/xstartup

chmod +x ~/.vnc/xstartup

echo " "

echo "Running browser patch"
wget https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Uninstall/ubchromiumfix.sh && chmod +x ubchromiumfix.sh
./ubchromiumfix.sh && rm -rf ubchromiumfix.sh

echo "You can now start vncserver by running vncserver-start"
echo " "
echo "It will ask you to enter a password when first time starting it."
echo " "
echo "The VNC Server will be started at 127.0.0.1:5901"
echo " "
echo "You can connect to this address with a VNC Viewer you prefer"
echo " "
echo "Connect to this address will open a window with Xfce4 Desktop Environment"
echo " "
echo " "
echo " "
echo "Running vncserver-start"
echo " "
echo " "
echo " "
echo "To Kill VNC Server just run vncserver-stop"
echo " "
echo " "
echo " "

echo "export DISPLAY=":1"" >> /etc/profile
source /etc/profile

vncpasswd
vncserver-start
2 changes: 1 addition & 1 deletion Installer/Ubuntu20/ubuntu20.sh
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,6 @@ chmod +x $bin
echo "removing image for some space"
rm $tarball
clear
echo "You can now launch Ubuntu with the ./${bin} script form next time"
echo "You can now launch Ubuntu with the ./${bin} script from next time"
bash $bin

3 changes: 0 additions & 3 deletions Installer/Ubuntu22/ubuntu22-awesome.sh
Original file line number Diff line number Diff line change
Expand Up @@ -220,15 +220,12 @@ EOM
mkdir -p ubuntu22-fs/var/tmp
rm -rf ubuntu22-fs/usr/local/bin/*

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

chmod +x ubuntu22-fs/root/.bash_profile
chmod +x ubuntu22-fs/root/.profile
chmod +x ubuntu22-fs/usr/local/bin/vnc
chmod +x ubuntu22-fs/usr/local/bin/vncpasswd
chmod +x ubuntu22-fs/usr/local/bin/vncserver-start
Expand Down
10 changes: 5 additions & 5 deletions Installer/Ubuntu22/ubuntu22-el.sh
Original file line number Diff line number Diff line change
Expand Up @@ -223,19 +223,19 @@ rm $tarball

#DE installation addition

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

echo "APT::Acquire::Retries \"3\";" > $folder/etc/apt/apt.conf.d/80-retries #Setting APT retry count
echo "#!/bin/bash
apt update -y && apt install wget sudo -y
clear
if [ ! -f /root/el20.sh ]; then
wget --tries=20 $dlink/EL/el20.sh -O /root/el20.sh
bash ~/el20.sh
if [ ! -f /root/el22.sh ]; then
wget --tries=20 $dlink/EL/el22.sh -O /root/el22.sh
bash ~/el22.sh
else
bash ~/el20.sh
bash ~/el22.sh
fi
clear
if [ ! -f /usr/local/bin/vncserver-start ]; then
Expand Down
3 changes: 0 additions & 3 deletions Installer/Ubuntu22/ubuntu22-i3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -220,15 +220,12 @@ EOM
mkdir -p ubuntu22-fs/var/tmp
rm -rf ubuntu22-fs/usr/local/bin/*

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

chmod +x ubuntu22-fs/root/.bash_profile
chmod +x ubuntu22-fs/root/.profile
chmod +x ubuntu22-fs/usr/local/bin/vnc
chmod +x ubuntu22-fs/usr/local/bin/vncpasswd
chmod +x ubuntu22-fs/usr/local/bin/vncserver-start
Expand Down
15 changes: 6 additions & 9 deletions Installer/Ubuntu22/ubuntu22-lxde.sh
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,11 @@ EOM
mkdir -p ubuntu22-fs/var/tmp
rm -rf ubuntu22-fs/usr/local/bin/*
echo "127.0.0.1 localhost localhost" > $folder/etc/hosts
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/.profile -O ubuntu22-fs/root/.profile.1 > /dev/null
cat $folder/root/.profile.1 >> $folder/root/.profile && rm -rf $folder/root/.profile.1
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/vnc -P ubuntu22-fs/usr/local/bin > /dev/null
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/vncpasswd -P ubuntu22-fs/usr/local/bin > /dev/null
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/vncserver-stop -P ubuntu22-fs/usr/local/bin > /dev/null
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/vncserver-start -P ubuntu22-fs/usr/local/bin > /dev/null

chmod +x ubuntu22-fs/root/.profile
chmod +x ubuntu22-fs/usr/local/bin/vnc
chmod +x ubuntu22-fs/usr/local/bin/vncpasswd
chmod +x ubuntu22-fs/usr/local/bin/vncserver-start
Expand All @@ -241,7 +238,7 @@ rm $tarball

#DE installation addition

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

Expand All @@ -255,11 +252,11 @@ nameserver 1.1.1.1' > /etc/resolv.conf
mkdir -p ~/.vnc
apt update -y && apt install sudo wget -y > /dev/null
clear
if [ ! -f /root/lxde19.sh ]; then
wget --tries=20 $dlink/LXDE/lxde19.sh -O /root/lxde19.sh
bash ~/lxde19.sh
if [ ! -f /root/lxde22.sh ]; then
wget --tries=20 $dlink/LXDE/lxde22.sh -O /root/lxde22.sh
bash ~/lxde22.sh
else
bash ~/lxde19.sh
bash ~/lxde22.sh
fi
clear
if [ ! -f /usr/local/bin/vncserver-start ]; then
Expand All @@ -271,7 +268,7 @@ fi
if [ ! -f /usr/bin/vncserver ]; then
apt install tigervnc-standalone-server -y
fi
rm -rf /root/lxde19.sh
rm -rf /root/lxde22.sh
rm -rf ~/.bash_profile" > $folder/root/.bash_profile
clear
bash $bin
15 changes: 6 additions & 9 deletions Installer/Ubuntu22/ubuntu22-lxqt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -221,15 +221,12 @@ EOM
mkdir -p ubuntu22-fs/var/tmp
rm -rf ubuntu22-fs/usr/local/bin/*
echo "127.0.0.1 localhost localhost" > $folder/etc/hosts
wget -q https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/.profile -O ubuntu22-fs/root/.profile.1 > /dev/null
cat $folder/root/.profile.1 >> $folder/root/.profile && rm -rf $folder/root/.profile.1

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

chmod +x ubuntu22-fs/root/.profile
chmod +x ubuntu22-fs/usr/local/bin/vnc
chmod +x ubuntu22-fs/usr/local/bin/vncpasswd
chmod +x ubuntu22-fs/usr/local/bin/vncserver-start
Expand All @@ -244,7 +241,7 @@ rm $tarball

#DE installation addition

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

Expand All @@ -259,11 +256,11 @@ mkdir -p ~/.vnc
touch ~/.hushlogin
apt update -y && apt install sudo wget -y > /dev/null
clear
if [ ! -f /root/lxqt19.sh ]; then
wget --tries=20 $dlink/LXQT/lxqt19.sh -O /root/lxqt19.sh
bash ~/lxqt19.sh
if [ ! -f /root/lxqt22.sh ]; then
wget --tries=20 $dlink/LXQT/lxqt22.sh -O /root/lxqt22.sh
bash ~/lxqt22.sh
else
bash ~/lxqt19.sh
bash ~/lxqt22.sh
fi
clear
if [ ! -f /usr/local/bin/vncserver-start ]; then
Expand All @@ -275,7 +272,7 @@ fi
if [ ! -f /usr/bin/vncserver ]; then
apt install tigervnc-standalone-server -y
fi
rm -rf /root/lxqt19.sh
rm -rf /root/lxqt22.sh
rm -rf ~/.bash_profile" > $folder/root/.bash_profile
clear
bash $bin
Loading

0 comments on commit dc67784

Please sign in to comment.