Difference between revisions of "CopyPasta"
| Line 37: | Line 37: | ||
Running <code>TMUX-console</code> 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. | Running <code>TMUX-console</code> 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. | ||
= Improved installation techniques = | = Improved installation techniques = | ||
Revision as of 17:21, 3 March 2024
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 updateapt -y upgradeapt -y install sudo vim curl mosquitto-clientswget https://www.nerdmage.ca/Downloads/RootStuff/DOT.bashrc -O .bashrcwget https://www.nerdmage.ca/Downloads/RootStuff/DOT.vimrc -O .vimrcmkdir binsource .bashrcapt -y install gnupg tmux ### Optional...adduser yournameadduser yourname sudosu - yournamewget https://www.nerdmage.ca/Downloads/UserStuff/DOT.bashrc -O .bashrcwget https://www.nerdmage.ca/Downloads/UserStuff/DOT.vimrc -O .vimrcmkdir binsource .bashrc
Useful console display for Proxmox Virtual Environment
apt updateapt -y upgradeapt -y install tmux htopcd /usr/local/binwget https://www.nerdmage.ca/Downloads/PVEStuff/bin/TMUX-console -O TMUX-consolewget https://www.nerdmage.ca/Downloads/PVEStuff/bin/TM-guestlist -O TM-guestlistwget https://www.nerdmage.ca/Downloads/PVEStuff/bin/TM-clusterstatus -O TM-clusterstatuswget https://www.nerdmage.ca/Downloads/PVEStuff/bin/TM-systemstatus -O TM-systemstatuswget https://www.nerdmage.ca/Downloads/PVEStuff/bin/TM-UPSstatus -O TM-UPSstatuswget https://www.nerdmage.ca/Downloads/PVEStuff/bin/TM-FixThis -O TM-FixThiswget https://www.nerdmage.ca/Downloads/PVEStuff/bin/TM-ShowMe -O TM-ShowMechmod +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.
Improved installation techniques
Some cross-platform software seems to have Linux installation instructions written by people who have never actually used Linux.
(Or, at least, people who believe in making life difficult...)
So...
Building/Installing things from source
You may have noticed that the various distro repositories tend to have outdated versions of some (most) packages. While this makes perfect sense, sometimes you want the newest features & fixes. (Or maybe you just want to enable something that the repo managers figured wouldn't be useful...)
Annoyingly, it is rather common for build instructions to suck really badly.
So...