CopyPasta
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.
Installing Brave Browser
sudo apt install apt-transport-https curlsudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpgecho "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.listsudo apt updatesudo apt install brave-browser
Installing TP-Link Omada SDN Controller on a Debian-based LXC
(Debian 12, 4GB RAM, 4 cores)
Start with the prerequisites:
sudo apt update && sudo apt install openjdk-17-jre-headless jsvc curl gnupg -ywget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.23_amd64.debsudo dpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.23_amd64.deb
curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.listsudo apt update && sudo apt install mongodb-orgsudo systemctl start mongod.servicesudo systemctl status mongodsudo systemctl enable mongod
Install SDN:
sudo wget wget https://static.tp-link.com/upload/software/2023/202312/20231201/Omada_SDN_Controller_v5.13.22_Linux_x64.tar.gztar zxvf Omada_SDN_Controller_v5.12.7_linux_x64.tar.gzcd Omada_SDN_Controller_v5.12.7_linux_x64sudo bash ./install.sh
or (Tho this seems to fail weirdly whenever they update the version while the tar.gz version doesn't):
wget https://static.tp-link.com/upload/software/2023/202312/20231201/Omada_SDN_Controller_v5.13.22_Linux_x64.debsudo dpkg -i ./Omada_SDN_Controller_v5.13.22_Linux_x64.deb
Upon install, Omada Controller will start up. Eventually. It does seem to take a VERY long time for it's first start...
https://SERVERADDRESS:8043/
CERTS!!!
You'll need to have your proper certs downloaded & then mess with making a .PFX file from them...
(Really, just Part B, Step 1 at that link.)
Then install/update via the UI & fully reboot the server/VM/LXC to activate it... :(
Building FreeCAD from source on LMDE6
Based on: FreeCAD Documentation / Compile on Linux
The required tools:
sudo apt install git cmakecmake-gui
Get the source:
Note: This builds a non-stable version. (Whatever state the code is currently in...)
git clone --recurse-submodules https://github.com/FreeCAD/FreeCAD.git freecad-source
or maybe:
Note: This should build a stable version. (You can change branch to match current stable version...)
git clone --recurse-submodules https://github.com/FreeCAD/FreeCAD.git --branch releases/FreeCAD-0-21 freecad-source
The prerequisites:
sudo apt install libboost-date-time-dev libboost-dev libboost-filesystem-dev libboost-graph-dev libboost-iostreams-dev libboost-program-options-dev libboost-python-dev libboost-regex-dev libboost-serialization-dev libboost-thread-dev libcoin-dev libeigen3-dev libgts-bin libgts-dev libkdtree++-dev libmedc-dev libocct-data-exchange-dev libocct-ocaf-dev libocct-visualization-dev libopencv-dev libproj-dev libpyside2-dev libqt5opengl5-dev libqt5svg5-dev qtwebengine5-dev libqt5x11extras5-dev libqt5xmlpatterns5-dev libshiboken2-dev libspnav-dev libvtk9-dev libx11-dev libxerces-c-dev libzipios++-dev occt-draw pyside2-tools python3-dev python3-matplotlib python3-packaging python3-pivy python3-ply python3-pyside2.qtcore python3-pyside2.qtgui python3-pyside2.qtsvg python3-pyside2.qtwidgets python3-pyside2.qtnetwork python3-pyside2.qtwebengine python3-pyside2.qtwebenginecore python3-pyside2.qtwebenginewidgets python3-pyside2.qtwebchannel python3-markdown python3-git qtbase5-dev qttools5-dev swig libyaml-cpp-dev
Set it up:
cd freecad-source/mkdir buildcd build
cmake ../
Build it:
make -j$(nproc --ignore=2)
Install it:
sudo make install
Installing arp-scan from source:
Get ready...
apt updateapt upgrade -yapt install git build-essential autoconf libpcap-dev
Get the source...
git clone https://github.com/royhills/arp-scan.git
Build it...
cd arp-scanautoreconf --install./configuremake
Test it...
make check
Install it...
sudo make install
Use it...
arp-scan 192.168.8.0/22