Difference between revisions of "CopyPasta"

From Da Nerd Mage Wiki
Jump to navigation Jump to search
(Created page with "= For doing basic setup of an LXC: = * apt update * apt -y upgrade * apt -y install sudo vim curl mosquitto-clients * wget <nowiki>https://www.nerdmage.ca/Downloads/RootStuff/.bashrc</nowiki> -O .bashrc * wget <nowiki>https://www.nerdmage.ca/Downloads/RootStuff/.vimrc</nowiki> -O .vimrc * mkdir bin * source .bashrc * adduser '''yourname''' * adduser '''yourname''' sudo * su - '''yourname''' ** wget <nowiki>https://www.nerdmage.ca/Downloads/UserStuff/.bashrc</nowiki> -O...")
 
Line 1: Line 1:
= For doing basic setup of an LXC: =
= For doing basic setup of an LXC: =


* apt update
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 -y upgrade
* apt -y install sudo vim curl mosquitto-clients
* wget <nowiki>https://www.nerdmage.ca/Downloads/RootStuff/.bashrc</nowiki> -O .bashrc
* wget <nowiki>https://www.nerdmage.ca/Downloads/RootStuff/.vimrc</nowiki> -O .vimrc
* mkdir bin
* source .bashrc


* adduser '''yourname'''
* <code>apt update/code>
* adduser '''yourname''' sudo
* <code>apt -y upgrade/code>
* su - '''yourname'''
* <code>apt -y install sudo vim curl mosquitto-clients/code>
** wget <nowiki>https://www.nerdmage.ca/Downloads/UserStuff/.bashrc</nowiki> -O .bashrc
* <code>wget <nowiki>https://www.nerdmage.ca/Downloads/RootStuff/.bashrc</nowiki> -O .bashrc/code>
** wget <nowiki>https://www.nerdmage.ca/Downloads/UserStuff/.vimrc</nowiki> -O .vimrc
* <code>wget <nowiki>https://www.nerdmage.ca/Downloads/RootStuff/.vimrc</nowiki> -O .vimrc/code>
** mkdir bin
* <code>mkdir bin/code>
** source .bashrc
* <code>source .bashrc/code>
 
* <code>adduser '''yourname'''/code>
* <code>adduser '''yourname''' sudo/code>
* <code>su - '''yourname'''/code>
** <code>wget <nowiki>https://www.nerdmage.ca/Downloads/UserStuff/.bashrc</nowiki> -O .bashrc/code>
** <code>wget <nowiki>https://www.nerdmage.ca/Downloads/UserStuff/.vimrc</nowiki> -O .vimrc/code>
** <code>mkdir bin/code>
** <code>source .bashrc</code>

Revision as of 00:45, 1 December 2023

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