33echo Insert the host name, please.
44read HOSTNAME
55
6+ echo Insert the root password
7+ read PASS
8+
69echo Are you running a Vmware Workstation VM? If you are, write y. If not, write n.
710read workstation
811
912echo Are you running on a Virtualbox VM mate? If you are, write y. If not, write n.
1013read virtualbox
1114
12- echo Do you want to install XFCE mate? If you want, write y. If not, write n.
13- read XFCE
15+ # echo Do you want to install XFCE mate? If you want, write y. If not, write n.
16+ # read XFCE
1417
1518mkdir /mnt/boot
1619pacman -Sy --noconfirm pacman-contrib
@@ -37,26 +40,24 @@ arch-chroot /mnt pacman -S --noconfirm --needed networkmanager curl
3740arch-chroot /mnt systemctl enable NetworkManager.service
3841arch-chroot /mnt pacman -S --noconfirm dhcpcd
3942arch-chroot /mnt useradd -m -G wheel,storage,optical -s /bin/bash windowsagent
40- cat << EOT > /mnt/home/windowsagent /temp.sh
43+ cat << EOT > /mnt/tmp /temp.sh
4144pacman -S --noconfirm pacman-contrib
42- echo -en "2006\n2006" | passwd windowsagent
43- echo -en "2006\n2006" | passwd root
45+ echo -en "$PASS \n$PASS " | passwd root
4446curl -s "https://archlinux.org/mirrorlist/?country=US&protocol=https&use_mirror_status=on" | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors -n 5 -
4547EOT
46- arch-chroot /mnt chmod +x /home/windowsagent/temp.sh
47- arch-chroot /mnt ./home/windowsagent/temp.sh
48- rm -rf /mnt/home/windowsagent/temp.sh
48+ arch-chroot /mnt chmod +x /mnt/tmp/temp.sh
49+ arch-chroot /mnt bash /mnt/tmp/temp.sh
4950
5051mkdir /mnt/home/windowsagent
5152arch-chroot /mnt pacman -S --noconfirm --needed sudo git curl zip unzip wget
5253arch-chroot /mnt systemctl enable dhcpcd
5354
5455# Sudoers
55- curl https://raw.githubusercontent.com/windowsagent/Modified-Arch-install-script/master/sudoers > /mnt/etc/sudoers
56+ # curl https://raw.githubusercontent.com/windowsagent/Modified-Arch-install-script/master/sudoers > /mnt/etc/sudoers
5657
5758# Install desktop environment
58- arch-chroot /mnt pacman -S --noconfirm lightdm xorg lightdm-gtk-greeter xorg-server
59- arch-chroot /mnt systemctl enable lightdm
59+ # arch-chroot /mnt pacman -S --noconfirm lightdm xorg lightdm-gtk-greeter xorg-server
60+ # arch-chroot /mnt systemctl enable lightdm
6061
6162# Drop post installation script on user's home directory
6263curl -LO https://raw.githubusercontent.com/windowsagent/LARBS/master/larbs.sh
7475 arch-chroot /mnt systemctl enable vmtoolsd
7576fi
7677
77- if [ $XFCE = y ]
78- then
79- echo Installing XFCE
80- arch-chroot /mnt pacman -S --noconfirm xfce4 xfce4-goodies xfce4-whiskermenu-plugin
81- fi
78+ # if [ $XFCE = y ]
79+ # then
80+ # echo Installing XFCE
81+ # arch-chroot /mnt pacman -S --noconfirm xfce4 xfce4-goodies xfce4-whiskermenu-plugin
82+ # fi
8283
8384if [ $virtualbox = y ]
8485then
8788fi
8889
8990echo " "
90- echo -e " ${GREEN} Arch Linux has been installed successfully owo" ' ! ' " ${NC} "
91+ echo " Arch Linux has been installed successfully owo" ' ! ' " ${NC} "
9192echo " "
9293echo " You can now proceed to reboot your system, and tell your friends about it."
9394echo " Do not forget to run the file on your home directory, in your user home directory, future Knox!"
0 commit comments