This commit is contained in:
kneutron 2024-12-11 19:34:56 -07:00 committed by GitHub
parent d2aa01f769
commit 6ebffff8c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,14 +2,17 @@
# 2024.Dec kneutron # 2024.Dec kneutron
# This is script 2 of 2 - run the below one 1st to create the LXC
# https://github.com/kneutron/ansitest/blob/master/proxmox/proxmox-create-lxc-xrdp-icewm-thunderbird-debian.sh
# Goal: Setup Unprivileged LXC with Debian Standard 12, 2xvCPU (you can probably get away with 1), rootfs 10GB, RAM 1GB, 512MB Swap, IP = DHCP or static, DNS as appropriate
# REF: https://www.reddit.com/r/Proxmox/comments/1hayp1j/comment/m1ilo4n/?context=3 # REF: https://www.reddit.com/r/Proxmox/comments/1hayp1j/comment/m1ilo4n/?context=3
# Setup Unprivileged LXC with Debian Standard 12, 2xvCPU (you can probably get away with 1), rootfs 10GB, RAM 2GB, 512MB Swap, IP = DHCP or static, DNS as appropriate
# Fire up LXC console after it builds, login as root with the password you set # Fire up LXC console after it builds, root login should already be there, no password needed: #
# Run this script INSIDE the running LXC # Run this script INSIDE the running LXC, you may need to ' chmod +x ' it first
# TODO 2nd script for pct create
# (root) Cmds to accomplish everything: # (root) Cmds to accomplish everything:
@ -17,15 +20,12 @@
myid=dave myid=dave
apt update apt update
apt upgrade -y apt upgrade -y
# SKIP # apt install fluxbox # rdesktop clicking did nothing, so went with icewm # SKIP # apt install fluxbox # rdesktop clicking did nothing, so went with icewm
apt install -y icewm xterm xfce4-terminal apt install -y icewm xterm xfce4-terminal
ip a
apt install -y xrdp apt install -y xrdp
adduser xrdp ssl-cert adduser xrdp ssl-cert
@ -38,14 +38,20 @@ apt install -y thunderbird
# Requires input for passwd # Requires input for passwd
adduser $myid adduser $myid
echo ''
#screen -aAO -h 2000 #screen -aAO -h 2000
# ============= # =============
echo "Fire up rdesktop client, login as $myid, you should see icewm minimal desktop with 4 virtual screens preconfigured." echo "Fire up rdesktop client / mstsc, point it to the below IP address, login as $myid"
echo " You should see icewm minimal desktop with 4 virtual screens preconfigured."
echo '' echo ''
echo "Right-click desktop, open Terminal, enter ' thunderbird & '" echo "Right-click the desktop, open Terminal, enter ' thunderbird & '"
echo '(or use the "Start" menu) and setup your email account.' echo '(or use the "Start" menu) and setup your email account(s).'
ip a
date; date;
# NOTE you can install e.g. fluxbox afterward to save RAM, and switching to it from icewm should work