summaryrefslogtreecommitdiff
path: root/lxc
diff options
context:
space:
mode:
authorTom Barrett <tom@tombarrett.xyz>2020-12-29 14:19:50 +0100
committerTom Barrett <tom@tombarrett.xyz>2020-12-29 14:19:50 +0100
commit27b3ff0800ed9002631291f3e0790ed5a470be74 (patch)
tree2e730d0b3be329264b54c1e1c1a1b1b28d8a7e3a /lxc
parentec7da27759c08e0741fe9151f056a8378c9a8aa1 (diff)
2020 update
Diffstat (limited to 'lxc')
-rwxr-xr-xlxc/arch_roll9
-rwxr-xr-xlxc/debian_roll6
-rwxr-xr-xlxc/debian_setup (renamed from lxc/setup)0
3 files changed, 7 insertions, 8 deletions
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
diff --git a/lxc/debian_roll b/lxc/debian_roll
index 7ea23c3..5ae7b7e 100755
--- a/lxc/debian_roll
+++ b/lxc/debian_roll
@@ -20,9 +20,9 @@ lxc-attach -n $NAME -- adduser $USER --gecos "" --disabled-password
lxc-attach -n $NAME -- bash -c 'echo -e "'$PASS'\n'$PASS'" | passwd $USER'
# setup x11 forwarding
-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 restart sshd
+# 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 restart sshd
# display info
lxc-info -n $NAME
diff --git a/lxc/setup b/lxc/debian_setup
index 6cfe699..6cfe699 100755
--- a/lxc/setup
+++ b/lxc/debian_setup