Difference between revisions of "CopyPasta"
Jump to navigation
Jump to search
| Line 3: | Line 3: | ||
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. | 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. | ||
* <code>apt update/code> | * <code>apt update</code> | ||
* <code>apt -y upgrade/code> | * <code>apt -y upgrade</code> | ||
* <code>apt -y install sudo vim curl mosquitto-clients/code> | * <code>apt -y install sudo vim curl mosquitto-clients</code> | ||
* <code>wget <nowiki>https://www.nerdmage.ca/Downloads/RootStuff/.bashrc</nowiki> -O .bashrc/code> | * <code>wget <nowiki>https://www.nerdmage.ca/Downloads/RootStuff/.bashrc</nowiki> -O .bashrc</code> | ||
* <code>wget <nowiki>https://www.nerdmage.ca/Downloads/RootStuff/.vimrc</nowiki> -O .vimrc/code> | * <code>wget <nowiki>https://www.nerdmage.ca/Downloads/RootStuff/.vimrc</nowiki> -O .vimrc</code> | ||
* <code>mkdir bin/code> | * <code>mkdir bin</code> | ||
* <code>source .bashrc/code> | * <code>source .bashrc</code> | ||
* <code>adduser '''yourname'''/code> | * <code>adduser '''yourname'''</code> | ||
* <code>adduser '''yourname''' sudo/code> | * <code>adduser '''yourname''' sudo</code> | ||
* <code>su - '''yourname'''/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/.bashrc</nowiki> -O .bashrc</code> | ||
** <code>wget <nowiki>https://www.nerdmage.ca/Downloads/UserStuff/.vimrc</nowiki> -O .vimrc/code> | ** <code>wget <nowiki>https://www.nerdmage.ca/Downloads/UserStuff/.vimrc</nowiki> -O .vimrc</code> | ||
** <code>mkdir bin/code> | ** <code>mkdir bin</code> | ||
** <code>source .bashrc</code> | ** <code>source .bashrc</code> | ||
Revision as of 00:46, 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 updateapt -y upgradeapt -y install sudo vim curl mosquitto-clientswget https://www.nerdmage.ca/Downloads/RootStuff/.bashrc -O .bashrcwget https://www.nerdmage.ca/Downloads/RootStuff/.vimrc -O .vimrcmkdir binsource .bashrc
adduser yournameadduser yourname sudosu - yournamewget https://www.nerdmage.ca/Downloads/UserStuff/.bashrc -O .bashrcwget https://www.nerdmage.ca/Downloads/UserStuff/.vimrc -O .vimrcmkdir binsource .bashrc