1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-02-16 18:21:33 +01:00
This commit is contained in:
2017-02-12 13:07:26 +01:00
parent a244f20de4
commit 9e255c8f87

View File

@@ -1,7 +1,7 @@
#!/bin/bash
## 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
dialog --title "JKArch install script" --msgbox "Starting installation, please wait" 15 60
# First add exec permisson to me
@@ -20,26 +20,23 @@ if [[ $1 != "prepared" ]];then
#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 rm -rf /var/cache/pacman/pkg/*
read
#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/*
read
#Update progs
sudo pacman -Su --noconfirm --ignore linux #Do not upgrade kernel automatically
sudo rm -rf /var/cache/pacman/pkg/*
read
sudo rm /etc/X11/xinit/xinitrc
sudo touch /etc/X11/xinit/xinitrc
sudo chmod 777 /etc/X11/xinit/xinitrc
sudo echo "#Start gparted with startx command" > /etc/X11/xinit/xinitrc
sudo echo "lwm &" >> /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 "gparted &" >> /etc/X11/xinit/xinitrc
sudo echo "xrandr -s 1024x768 -r 60" >> /etc/X11/xinit/xinitrc
sudo echo "xterm -e 'bash /root/installer.sh'" >> /etc/X11/xinit/xinitrc
sudo chmod 644 /etc/X11/xinit/xinitrc
sudo rm -rf /var/cache/pacman/pkg/*
# System prepared, now start installer
touch /root/
startx
#Exit this.
exit