Update readme
This commit is contained in:
		
							
								
								
									
										20
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								README.md
									
									
									
									
									
								
							| @@ -21,14 +21,19 @@ There is no place like $HOME. All my dotfiles, and a guide for configuring a new | |||||||
| After installation, you should login as root instead of the user. As this gives us a chance to add users, change passwords, set groups, and change defaults. | After installation, you should login as root instead of the user. As this gives us a chance to add users, change passwords, set groups, and change defaults. | ||||||
|  |  | ||||||
|  |  | ||||||
| Step One: - [ ] Add users and assign passwords and groups <br> | Step One: - [ ] Change defaults <br> | ||||||
|  | I like to change my XDG user directory defaults. Located at `/etc/xdg/user-dirs.defaults`<br> | ||||||
|  | `wget -O /etc/xdg/user-dirs.defaults https://myrepos.dev/Randy-Jordan/eg/raw/branch/main/dot/xdg/user-dirs.custom`<br> | ||||||
|  | `curl https://myrepos.dev/Randy-Jordan/eg/raw/branch/main/dot/xdg/user-dirs.custom > /etc/xdg/user-dirs.defaults`<br> | ||||||
|  |  | ||||||
|  | Step Two: - [ ] Add users and assign passwords and groups <br> | ||||||
| Where required, add users to groups such as custom, sudo, dialout etc...<br> | Where required, add users to groups such as custom, sudo, dialout etc...<br> | ||||||
|  |  | ||||||
| `sudo useradd -m user_variable`<br> | `sudo useradd -m user_variable`<br> | ||||||
| `sudo passwd user_variable`<br> | `sudo passwd user_variable`<br> | ||||||
| `sudo usermod -aG user group`<br> | `sudo usermod -aG user group`<br> | ||||||
|  |  | ||||||
| Step Two: - [ ] Removing root login, and copying ssh keys.<br> | Step Three: - [ ] Removing root login, and copying ssh keys.<br> | ||||||
| Now that we have a new user, we can make some security changes. | Now that we have a new user, we can make some security changes. | ||||||
|  |  | ||||||
| `sed -i 's/^PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config`<br> | `sed -i 's/^PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config`<br> | ||||||
| @@ -43,25 +48,20 @@ Disable password logins<br> | |||||||
| `sudo systemctl restart sshd`<br> | `sudo systemctl restart sshd`<br> | ||||||
|  |  | ||||||
|  |  | ||||||
| Step Three: - [ ] Update and upgrade<br> | Step Four: - [ ] Update and upgrade<br> | ||||||
| `sudo apt update` <br> | `sudo apt update` <br> | ||||||
| `sudo apt upgrade`<br> | `sudo apt upgrade`<br> | ||||||
| `sudo apt dist-upgrade`<br> | `sudo apt dist-upgrade`<br> | ||||||
| `sudo apt autoremove`<br> | `sudo apt autoremove`<br> | ||||||
| `sudo apt clean`<br> | `sudo apt clean`<br> | ||||||
|  |  | ||||||
| Step Four: - [ ] Download Packages | Step Five: - [ ] Download Packages | ||||||
| Here is a list of packages to start with.<br> | Here is a list of packages to start with.<br> | ||||||
| `wget -O - https://myrepos.dev/Randy-Jordan/dot/raw/branch/main/.apt_defaults.list | xargs sudo apt-get -y install`<br> | `wget -O - https://myrepos.dev/Randy-Jordan/dot/raw/branch/main/.apt_defaults.list | xargs sudo apt-get -y install`<br> | ||||||
| `curl https://myrepos.dev/Randy-Jordan/dot/raw/branch/main/.apt_defaults.list | xargs apt-get -y install`<br> | `curl https://myrepos.dev/Randy-Jordan/dot/raw/branch/main/.apt_defaults.list | xargs apt-get -y install`<br> | ||||||
|  |  | ||||||
| Step Five: - [ ] Change defaults <br> |  | ||||||
| I like to change my XDG user directory defaults. Located at `/etc/xdg/user-dirs.defaults`<br> |  | ||||||
| `wget -O /etc/xdg/user-dirs.defaults https://myrepos.dev/Randy-Jordan/eg/raw/branch/main/dot/xdg/user-dirs.custom`<br> |  | ||||||
| `curl https://myrepos.dev/Randy-Jordan/eg/raw/branch/main/dot/xdg/user-dirs.custom > /etc/xdg/user-dirs.defaults`<br> |  | ||||||
|  |  | ||||||
| I also like to change the user shell to zsh.<br> | I also like to change the user shell to zsh.<br> | ||||||
| `chsh -s /path/to/new/shell username`<br> | `chsh -s /usr/bin/zsh username`<br> | ||||||
|  |  | ||||||
| Step Six: - [ ] Login as user and setup dotfiles<br> | Step Six: - [ ] Login as user and setup dotfiles<br> | ||||||
| If you are already tracking your dotfiles and this a fresh install, you can run these commands:<br> | If you are already tracking your dotfiles and this a fresh install, you can run these commands:<br> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user