mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-19 03:31:32 +01:00
debug...
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
## Note: Some text editors in some lines its wrong the "markup color" because much '"'($) things.
|
## Note: Some text editors in some lines its wrong the "markup color" because much '"'($) things.
|
||||||
|
|
||||||
if [[ $1 != "prepared" ]];then
|
if [[! -z "jkarch" ]];then
|
||||||
#Prepare system before install
|
#Prepare system before install
|
||||||
dialog --title "JKArch install script" --msgbox "Starting installation, please wait" 15 60
|
dialog --title "JKArch install script" --msgbox "Starting installation, please wait" 15 60
|
||||||
# First add exec permisson to me
|
# First add exec permisson to me
|
||||||
@@ -20,26 +20,23 @@ if [[ $1 != "prepared" ]];then
|
|||||||
#Delete programs (For not updating it)
|
#Delete programs (For not updating it)
|
||||||
sudo pacman -R clonezilla darkhttpd diffutils grml-zsh-config irssi linux-atm lvm2 man-db man-pages mc ndisc6 nmap smartmontools testdisk vi vim vim-runtime openconnect pcsclite python2 python reflector --noconfirm
|
sudo pacman -R clonezilla darkhttpd diffutils grml-zsh-config irssi linux-atm lvm2 man-db man-pages mc ndisc6 nmap smartmontools testdisk vi vim vim-runtime openconnect pcsclite python2 python reflector --noconfirm
|
||||||
sudo rm -rf /var/cache/pacman/pkg/*
|
sudo rm -rf /var/cache/pacman/pkg/*
|
||||||
read
|
|
||||||
#Needed progs (gparted)
|
#Needed progs (gparted)
|
||||||
sudo pacman -S gparted xf86-video-vesa xorg-xinit lwm xorg-xrandr --noconfirm
|
sudo pacman -S gparted xf86-video-vesa xorg-xinit lwm xorg-xrandr xterm --noconfirm
|
||||||
sudo rm -rf /var/cache/pacman/pkg/*
|
sudo rm -rf /var/cache/pacman/pkg/*
|
||||||
read
|
|
||||||
#Update progs
|
#Update progs
|
||||||
sudo pacman -Su --noconfirm --ignore linux #Do not upgrade kernel automatically
|
sudo pacman -Su --noconfirm --ignore linux #Do not upgrade kernel automatically
|
||||||
sudo rm -rf /var/cache/pacman/pkg/*
|
sudo rm -rf /var/cache/pacman/pkg/*
|
||||||
read
|
|
||||||
sudo rm /etc/X11/xinit/xinitrc
|
sudo rm /etc/X11/xinit/xinitrc
|
||||||
sudo touch /etc/X11/xinit/xinitrc
|
sudo touch /etc/X11/xinit/xinitrc
|
||||||
sudo chmod 777 /etc/X11/xinit/xinitrc
|
sudo chmod 777 /etc/X11/xinit/xinitrc
|
||||||
sudo echo "#Start gparted with startx command" > /etc/X11/xinit/xinitrc
|
sudo echo "#Start gparted with startx command" > /etc/X11/xinit/xinitrc
|
||||||
sudo echo "lwm &" >> /etc/X11/xinit/xinitrc
|
sudo echo "lwm &" >> /etc/X11/xinit/xinitrc
|
||||||
sudo echo "xrandr -s 1024x768 -r 60 &" >> /etc/X11/xinit/xinitrc
|
sudo echo "xrandr -s 1024x768 -r 60" >> /etc/X11/xinit/xinitrc
|
||||||
sudo echo "xterm bash /root/installer.sh prepared" >> /etc/X11/xinit/xinitrc
|
sudo echo "xterm -e 'bash /root/installer.sh'" >> /etc/X11/xinit/xinitrc
|
||||||
##sudo echo "gparted &" >> /etc/X11/xinit/xinitrc
|
|
||||||
sudo chmod 644 /etc/X11/xinit/xinitrc
|
sudo chmod 644 /etc/X11/xinit/xinitrc
|
||||||
sudo rm -rf /var/cache/pacman/pkg/*
|
sudo rm -rf /var/cache/pacman/pkg/*
|
||||||
# System prepared, now start installer
|
# System prepared, now start installer
|
||||||
|
touch /root/
|
||||||
startx
|
startx
|
||||||
#Exit this.
|
#Exit this.
|
||||||
exit
|
exit
|
||||||
|
|||||||
Reference in New Issue
Block a user