mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-22 21:13:44 +01:00
Backup. WIP of new python script
This commit is contained in:
52
installer/prepare.sh
Normal file
52
installer/prepare.sh
Normal file
@@ -0,0 +1,52 @@
|
||||
#!/bin/bash
|
||||
##Script that prepares a ArchLinux iso for installing JKArch
|
||||
# Prepare system for install
|
||||
echo "Dont run this"
|
||||
exit
|
||||
if [[ ! -f "jkarch" ]];then
|
||||
#Prepare system before install
|
||||
dialog --title "JKArch install script" --msgbox "Starting installation, please wait" 15 60
|
||||
# First add exec permisson to me
|
||||
chmod +x installer.sh
|
||||
# Grow cowspace
|
||||
comm "Grow cowspace for installer" "1" "sudo" "mount -o remount,size=700M /run/archiso/cowspace"
|
||||
|
||||
#Enable pacman
|
||||
pacman-key --init
|
||||
pacman-key --populate
|
||||
pacman -Sy archlinux-keyring --noconfirm
|
||||
|
||||
pacman -S reflector --noconfirm
|
||||
reflector --verbose -l 6 --sort rate --save /etc/pacman.d/mirrorlist
|
||||
|
||||
#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 --noconfirm
|
||||
sudo rm -rf /var/cache/pacman/pkg/*
|
||||
|
||||
#Needed progs (gparted,python)
|
||||
sudo pacman -S gparted xf86-video-vesa xorg-xinit lwm xorg-xrandr xterm --noconfirm --needed
|
||||
sudo rm -rf /var/cache/pacman/pkg/*
|
||||
sudo pacman -S python python-pythondialog --noconfirm --needed
|
||||
sudo rm -rf /var/cache/pacman/pkg/*
|
||||
#Update progs
|
||||
sudo pacman -Su --noconfirm --ignore linux #Do not upgrade kernel automatically
|
||||
sudo rm -rf /var/cache/pacman/pkg/*
|
||||
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 -e '/usr/bin/python3 /root/installer.py' -geometry 120x35" >> /etc/X11/xinit/xinitrc
|
||||
sudo chmod 644 /etc/X11/xinit/xinitrc
|
||||
sudo rm -rf /var/cache/pacman/pkg/*
|
||||
|
||||
# No black screensaver
|
||||
setterm -blank 0 -powerdown 0 -powersave off
|
||||
|
||||
# System prepared, now start installer
|
||||
touch /root/jkarch
|
||||
startx
|
||||
#Exit this.
|
||||
exit
|
||||
fi
|
||||
Reference in New Issue
Block a user