mirror of
https://github.com/janishutz/arch-dev-vm.git
synced 2025-11-25 05:44:23 +00:00
some userland fixes
This commit is contained in:
23
chroot.sh
23
chroot.sh
@@ -54,10 +54,6 @@ echo "
|
|||||||
|
|
||||||
==> Bootloader set up.
|
==> Bootloader set up.
|
||||||
|
|
||||||
"
|
|
||||||
|
|
||||||
echo "
|
|
||||||
|
|
||||||
==> Creating new user, please choose a password once prompted!
|
==> Creating new user, please choose a password once prompted!
|
||||||
|
|
||||||
"
|
"
|
||||||
@@ -66,6 +62,7 @@ read -p "Choose a password: " pwd
|
|||||||
|
|
||||||
# Create users
|
# Create users
|
||||||
useradd -m arch-is-best
|
useradd -m arch-is-best
|
||||||
|
sleep 2
|
||||||
passwd arch-is-best << EOD
|
passwd arch-is-best << EOD
|
||||||
${pwd}
|
${pwd}
|
||||||
${pwd}
|
${pwd}
|
||||||
@@ -80,6 +77,7 @@ mkdir --parent /home/arch-is-best/arch-dev-vm
|
|||||||
ls /root/arch-dev-vm
|
ls /root/arch-dev-vm
|
||||||
|
|
||||||
|
|
||||||
|
# Prepare for switching to new user
|
||||||
mv -v /root/arch-dev-vm /home/arch-is-best/
|
mv -v /root/arch-dev-vm /home/arch-is-best/
|
||||||
|
|
||||||
sleep 2
|
sleep 2
|
||||||
@@ -93,11 +91,26 @@ to finish up setup
|
|||||||
|
|
||||||
"
|
"
|
||||||
|
|
||||||
# Head into userland with userland.sh script
|
sleep 2
|
||||||
|
|
||||||
|
# Add additional packages
|
||||||
|
read -p "Do you want to have a barebone (b) or complete (c) install? " installType
|
||||||
|
|
||||||
|
if [[ "$installType" != "c" ]]; then
|
||||||
|
pacman -Syu --noconfirm nodejs npm rustup kate python-pip gcc
|
||||||
|
fi
|
||||||
|
|
||||||
|
pacman -Syu --noconfirm vscodium
|
||||||
|
|
||||||
|
chmod -R 777 /home/arch-is-best/arch-dev-vm/config
|
||||||
|
|
||||||
|
|
||||||
|
# Head into userland with userland.sh script (run all operations requiring root before!)
|
||||||
chmod 777 /home/arch-is-best/arch-dev-vm/vscode-extensions
|
chmod 777 /home/arch-is-best/arch-dev-vm/vscode-extensions
|
||||||
su arch-is-best -c /home/arch-is-best/arch-dev-vm/userland.sh
|
su arch-is-best -c /home/arch-is-best/arch-dev-vm/userland.sh
|
||||||
|
|
||||||
|
|
||||||
|
sleep 2
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
|
|
||||||
|
|||||||
13
userland.sh
13
userland.sh
@@ -6,21 +6,8 @@ echo "
|
|||||||
|
|
||||||
"
|
"
|
||||||
|
|
||||||
read -p "Please enter your password again: " pwd
|
|
||||||
|
|
||||||
read -p "Do you want to have a barebone (b) or complete (c) install? " installType
|
|
||||||
|
|
||||||
if [[ "$installType" != "c" ]]; then
|
|
||||||
echo $pwd | sudo -S pacman -Syu --noconfirm nodejs npm rustup kate python-pip gcc
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo $pwd | sudo -S pacman -Syu --noconfirm vscodium
|
|
||||||
|
|
||||||
|
|
||||||
mkdir /home/arch-is-best/.config
|
mkdir /home/arch-is-best/.config
|
||||||
|
|
||||||
echo $pwd | sudo -S chmod -R 777 /home/arch-is-best/arch-dev-vm/config
|
|
||||||
|
|
||||||
mv /home/arch-is-best/arch-dev-vm/config/* /home/arch-is-best/.config
|
mv /home/arch-is-best/arch-dev-vm/config/* /home/arch-is-best/.config
|
||||||
|
|
||||||
file="/home/arch-is-best/vscode-extensions"
|
file="/home/arch-is-best/vscode-extensions"
|
||||||
|
|||||||
Reference in New Issue
Block a user