From dd566fff61a7c6b12e2b301cc1b27ada1adf69fa Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Sun, 14 Feb 2021 13:54:44 +0100 Subject: removed lxc stuff, really only use lxd now... --- lxc/arch_roll | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100755 lxc/arch_roll (limited to 'lxc/arch_roll') diff --git a/lxc/arch_roll b/lxc/arch_roll deleted file mode 100755 index cf1dfa7..0000000 --- a/lxc/arch_roll +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -set -e - -NAME=$1 -USER=tom -PASS=durr - -# init -lxc-create -n $NAME -t download -- --dist archlinux --release current --arch amd64 -lxc-start -n $NAME -sleep 10 - -# install basics -lxc-attach -n $NAME -- pacman -Syu --noconfirm -lxc-attach -n $NAME -- pacman -Sy --noconfirm \ - git sudo vim openssh xorg-xauth xorg-xhost fakeroot binutils - -# setup user -lxc-attach -n $NAME -- useradd -m $USER -lxc-attach -n $NAME -- bash -c 'echo "'$USER' ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers' -lxc-attach -n $NAME -- bash -c 'echo -e "'$PASS'\n'$PASS'" | passwd $USER' - -# setup for yay -lxc-attach -n $NAME -- mkdir /home/$USER/yay -lxc-attach -n $NAME -- git clone https://aur.archlinux.org/yay-bin.git /home/$USER/yay -lxc-attach -n $NAME -- chown $USER:$USER -R /home/$USER -lxc-attach -n $NAME -- bash -c 'cd /home/'$USER'/yay && sudo -u '$USER' makepkg -si --noconfirm' -lxc-attach -n $NAME -- bash -c 'sudo -u '$USER' yay -Syu --noconfirm' - -# setup x11 forwarding -# lxc-attach -n $NAME -- bash -c 'echo "X11Forwarding yes" >> /etc/ssh/sshd_config' -# lxc-attach -n $NAME -- bash -c 'echo "AllowTcpForwarding yes" >> /etc/ssh/sshd_config' -# lxc-attach -n $NAME -- bash -c 'echo "X11UseLocalhost yes" >> /etc/ssh/sshd_config' -lxc-attach -n $NAME -- systemctl start sshd - -# display info -lxc-info -n $NAME -- cgit v1.2.3