CopyPasta

From Da Nerd Mage Wiki
Jump to navigation Jump to search

For doing basic setup of an LXC:

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/code>
  • apt -y upgrade/code>
  • apt -y install sudo vim curl mosquitto-clients/code>
  • wget https://www.nerdmage.ca/Downloads/RootStuff/.bashrc -O .bashrc/code>
  • wget https://www.nerdmage.ca/Downloads/RootStuff/.vimrc -O .vimrc/code>
  • mkdir bin/code>
  • source .bashrc/code>
  • adduser yourname/code>
  • adduser yourname sudo/code>
  • su - yourname/code>
    • wget https://www.nerdmage.ca/Downloads/UserStuff/.bashrc -O .bashrc/code>
    • wget https://www.nerdmage.ca/Downloads/UserStuff/.vimrc -O .vimrc/code>
    • mkdir bin/code>
    • source .bashrc