CopyPasta
For doing basic setup of an LXC (or pretty much any Linux VM...):
I run this set of commands on nearly every new VM or LXC I spin up. That way, I have a consistant environment to work in with all the tools I rely on.
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 htop ### Optional...apt -y install qemu-guest-agent ### Only on VMs. (Wish it worked for LXCs as well tho...)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
I find it nice to have stats & such on the console of a server. This way I can just look & see what's happening with the machine.
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.
New System Cleanup & Prep
Freshly installed systems usually have a bunch of stuff installed that you will never use.
For myself, I don't generally have any interest in the games. I also don't use some of the Internet apps that seem important to the developers/maintainers.
These instructions are based on running Debian with the Cinnamon Desktop Environment...
Remove all the Games
sudo apt purge gnome-2048 aisleriot atomix gnome-chess five-or-more hitori iagno gnome-klotski lightsoff gnome-mahjongg gnome-mines gnome-nibbles quadrapassel four-in-a-row gnome-robots gnome-sudoku swell-foop tali gnome-taquin gnome-tetravex -ysudo apt autoremove -y
Remove obsolete and/or silly Internet apps
sudo apt purge hexchat pidgin transmission-gtk thunderbird -ysudo apt autoremove -y
Simplified installation techniques & instructions
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...
- Installing Brave Browser (Properly... Not FLATPAK)
- Installing TP-Link Omada SDN Controller on a Debian-based LXC
Also, many installation instructions are long-winded or confusing...
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...