Skip to content

Commit 43e0554

Browse files
committed
Removed post installation script
1 parent 3f40c12 commit 43e0554

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

Install.sh

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@
33
echo Insert the host name, please.
44
read HOSTNAME
55

6+
echo Insert the root password
7+
read PASS
8+
69
echo Are you running a Vmware Workstation VM? If you are, write y. If not, write n.
710
read workstation
811

912
echo Are you running on a Virtualbox VM mate? If you are, write y. If not, write n.
1013
read 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

1518
mkdir /mnt/boot
1619
pacman -Sy --noconfirm pacman-contrib
@@ -37,26 +40,24 @@ arch-chroot /mnt pacman -S --noconfirm --needed networkmanager curl
3740
arch-chroot /mnt systemctl enable NetworkManager.service
3841
arch-chroot /mnt pacman -S --noconfirm dhcpcd
3942
arch-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
4144
pacman -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
4446
curl -s "https://archlinux.org/mirrorlist/?country=US&protocol=https&use_mirror_status=on" | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors -n 5 -
4547
EOT
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

5051
mkdir /mnt/home/windowsagent
5152
arch-chroot /mnt pacman -S --noconfirm --needed sudo git curl zip unzip wget
5253
arch-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
6263
curl -LO https://raw.githubusercontent.com/windowsagent/LARBS/master/larbs.sh
@@ -74,11 +75,11 @@ then
7475
arch-chroot /mnt systemctl enable vmtoolsd
7576
fi
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

8384
if [ $virtualbox = y ]
8485
then
@@ -87,7 +88,7 @@ then
8788
fi
8889

8990
echo " "
90-
echo -e "${GREEN}Arch Linux has been installed successfully owo" ' ! ' "${NC}"
91+
echo "Arch Linux has been installed successfully owo" ' ! ' "${NC}"
9192
echo " "
9293
echo "You can now proceed to reboot your system, and tell your friends about it."
9394
echo "Do not forget to run the file on your home directory, in your user home directory, future Knox!"

0 commit comments

Comments
 (0)