mirror of
https://github.com/janishutz/arch-dev-vm.git
synced 2025-11-25 13:54:24 +00:00
split out userland stuff
This commit is contained in:
52
chroot.sh
52
chroot.sh
@@ -47,6 +47,9 @@ ${pwd}
|
|||||||
EOD
|
EOD
|
||||||
usermod -aG wheel arch-is-best
|
usermod -aG wheel arch-is-best
|
||||||
|
|
||||||
|
rm -rf /home/arch-is-best/arch-dev-vm
|
||||||
|
mv /root/arch-dev-vm/* /home/arch-is-best/arch-dev-vm
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
|
|
||||||
==> New user created! Please enter the password for the new user to switch to it
|
==> New user created! Please enter the password for the new user to switch to it
|
||||||
@@ -54,56 +57,11 @@ to finish up setup
|
|||||||
|
|
||||||
"
|
"
|
||||||
|
|
||||||
chmod 777 /home/arch-is-best/vscode-extensions
|
chmod 777 /home/arch-is-best/arch-dev-vm/vscode-extensions
|
||||||
|
|
||||||
su arch-is-best
|
su arch-is-best -c /home/arch-is-best/arch-dev-vm/userland.sh
|
||||||
|
|
||||||
|
|
||||||
echo "
|
|
||||||
|
|
||||||
==> Setup complete, adding config files to new user plus some other config
|
|
||||||
|
|
||||||
"
|
|
||||||
|
|
||||||
cd /tmp
|
|
||||||
git clone https://aur.archlinux.org/yay.git
|
|
||||||
cd yay
|
|
||||||
makepkg -si
|
|
||||||
|
|
||||||
echo "
|
|
||||||
|
|
||||||
==> AUR helper installed
|
|
||||||
|
|
||||||
"
|
|
||||||
|
|
||||||
read -p "Do you want to have a barebone (b) or complete (c) install? " installType
|
|
||||||
|
|
||||||
if [[ "$installType" != "c" ]]; then
|
|
||||||
yay -Syu --noconfirm nodejs npm rustup kate python-pip gcc
|
|
||||||
fi
|
|
||||||
|
|
||||||
yay -Syu --noconfirm vscodium
|
|
||||||
|
|
||||||
|
|
||||||
mkdir /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"
|
|
||||||
while read line; do
|
|
||||||
vscodium --install-extension "${line}"
|
|
||||||
done < "${file}"
|
|
||||||
|
|
||||||
echo "
|
|
||||||
|
|
||||||
==> We now need to change the shell to a more user-friendly one.
|
|
||||||
Please enter your password again
|
|
||||||
|
|
||||||
"
|
|
||||||
|
|
||||||
chsh -s /bin/fish
|
|
||||||
|
|
||||||
exit
|
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
|
|
||||||
|
|||||||
47
userland.sh
Executable file
47
userland.sh
Executable file
@@ -0,0 +1,47 @@
|
|||||||
|
# This runs in userland
|
||||||
|
|
||||||
|
echo "
|
||||||
|
|
||||||
|
==> Setup complete, adding config files to new user plus some other config
|
||||||
|
|
||||||
|
"
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
git clone https://aur.archlinux.org/yay.git
|
||||||
|
cd yay
|
||||||
|
makepkg -si
|
||||||
|
|
||||||
|
echo "
|
||||||
|
|
||||||
|
==> AUR helper installed
|
||||||
|
|
||||||
|
"
|
||||||
|
|
||||||
|
read -p "Do you want to have a barebone (b) or complete (c) install? " installType
|
||||||
|
|
||||||
|
if [[ "$installType" != "c" ]]; then
|
||||||
|
yay -Syu --noconfirm nodejs npm rustup kate python-pip gcc
|
||||||
|
fi
|
||||||
|
|
||||||
|
yay -Syu --noconfirm vscodium
|
||||||
|
|
||||||
|
|
||||||
|
mkdir /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"
|
||||||
|
while read line; do
|
||||||
|
vscodium --install-extension "${line}"
|
||||||
|
done < "${file}"
|
||||||
|
|
||||||
|
echo "
|
||||||
|
|
||||||
|
==> We now need to change the shell to a more user-friendly one.
|
||||||
|
Please enter your password again
|
||||||
|
|
||||||
|
"
|
||||||
|
|
||||||
|
chsh -s /bin/fish
|
||||||
|
|
||||||
|
exit
|
||||||
Reference in New Issue
Block a user