Difference between revisions of "CopyPasta"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
= For doing basic setup of an LXC: = | = For doing basic setup of an LXC (or pretty much any Linux VM...): = | ||
Note: You CAN copyPasta groups of commands all at once. BUT: in this case, everything indented (after <code>su - '''yourname'''</code>) needs to be pasted AFTER that command has run. | Note: You CAN copyPasta groups of commands all at once. BUT: in this case, everything indented (after <code>su - '''yourname'''</code>) needs to be pasted AFTER that command has run. |
Revision as of 10:18, 13 December 2023
For doing basic setup of an LXC (or pretty much any Linux VM...):
Note: You CAN copyPasta groups of commands all at once. BUT: in this case, everything indented (after su - yourname
) needs to be pasted AFTER that command has run.
apt update
apt -y upgrade
apt -y install sudo vim curl mosquitto-clients
wget https://www.nerdmage.ca/Downloads/RootStuff/DOT.bashrc -O .bashrc
wget https://www.nerdmage.ca/Downloads/RootStuff/DOT.vimrc -O .vimrc
mkdir bin
source .bashrc
adduser yourname
adduser yourname sudo
su - yourname
wget https://www.nerdmage.ca/Downloads/UserStuff/DOT.bashrc -O .bashrc
wget https://www.nerdmage.ca/Downloads/UserStuff/DOT.vimrc -O .vimrc
mkdir bin
source .bashrc
Useful console display for Proxmox Virtual Environment
apt update
apt -y upgrade
apt -y install tmux htop
cd /usr/local/bin
wget https://www.nerdmage.ca/Downloads/PVEStuff/bin/TMUX-console -O TMUX-console
wget https://www.nerdmage.ca/Downloads/PVEStuff/bin/TM-guestlist -O TM-guestlist
wget https://www.nerdmage.ca/Downloads/PVEStuff/bin/TM-clusterstatus -O TM-clusterstatus
wget https://www.nerdmage.ca/Downloads/PVEStuff/bin/TM-systemstatus -O TM-systemstatus
wget https://www.nerdmage.ca/Downloads/PVEStuff/bin/TM-UPSstatus -O TM-UPSstatus
wget https://www.nerdmage.ca/Downloads/PVEStuff/bin/TM-FixThis -O TM-FixThis
wget https://www.nerdmage.ca/Downloads/PVEStuff/bin/TM-ShowMe -O TM-ShowMe
chmod +x TM*
You will need to edit TM-UPSstatus to match local configurations (i.e. UPS name).
Running TMUX-console
at the console will create a formatted screen of useful system information that you can reach by attaching to the tmux session from a terminal (SSH) session.