From 27b3ff0800ed9002631291f3e0790ed5a470be74 Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Tue, 29 Dec 2020 14:19:50 +0100 Subject: 2020 update --- lxc/arch_roll | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lxc/arch_roll') diff --git a/lxc/arch_roll b/lxc/arch_roll index ce97bfe..cf1dfa7 100755 --- a/lxc/arch_roll +++ b/lxc/arch_roll @@ -16,8 +16,7 @@ lxc-attach -n $NAME -- pacman -Sy --noconfirm \ git sudo vim openssh xorg-xauth xorg-xhost fakeroot binutils # setup user -lxc-attach -n $NAME -- useradd $USER -lxc-attach -n $NAME -- mkdir /home/$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' @@ -29,9 +28,9 @@ lxc-attach -n $NAME -- bash -c 'cd /home/'$USER'/yay && sudo -u '$USER' makepkg 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 -- 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 -- cgit v1.2.3