From a4feee1172c977a0ef823e1ef34f5a531db11e35 Mon Sep 17 00:00:00 2001 From: Randy Jordan Date: Fri, 10 Oct 2025 12:04:45 -0500 Subject: [PATCH] Update readme --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 9cb70d9..6aba04e 100644 --- a/README.md +++ b/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. -Step One: - [ ] Add users and assign passwords and groups
+Step One: - [ ] Change defaults
+I like to change my XDG user directory defaults. Located at `/etc/xdg/user-dirs.defaults`
+`wget -O /etc/xdg/user-dirs.defaults https://myrepos.dev/Randy-Jordan/eg/raw/branch/main/dot/xdg/user-dirs.custom`
+`curl https://myrepos.dev/Randy-Jordan/eg/raw/branch/main/dot/xdg/user-dirs.custom > /etc/xdg/user-dirs.defaults`
+ +Step Two: - [ ] Add users and assign passwords and groups
Where required, add users to groups such as custom, sudo, dialout etc...
`sudo useradd -m user_variable`
`sudo passwd user_variable`
`sudo usermod -aG user group`
-Step Two: - [ ] Removing root login, and copying ssh keys.
+Step Three: - [ ] Removing root login, and copying ssh keys.
Now that we have a new user, we can make some security changes. `sed -i 's/^PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config`
@@ -43,25 +48,20 @@ Disable password logins
`sudo systemctl restart sshd`
-Step Three: - [ ] Update and upgrade
+Step Four: - [ ] Update and upgrade
`sudo apt update`
`sudo apt upgrade`
`sudo apt dist-upgrade`
`sudo apt autoremove`
`sudo apt clean`
-Step Four: - [ ] Download Packages +Step Five: - [ ] Download Packages Here is a list of packages to start with.
`wget -O - https://myrepos.dev/Randy-Jordan/dot/raw/branch/main/.apt_defaults.list | xargs sudo apt-get -y install`
`curl https://myrepos.dev/Randy-Jordan/dot/raw/branch/main/.apt_defaults.list | xargs apt-get -y install`
-Step Five: - [ ] Change defaults
-I like to change my XDG user directory defaults. Located at `/etc/xdg/user-dirs.defaults`
-`wget -O /etc/xdg/user-dirs.defaults https://myrepos.dev/Randy-Jordan/eg/raw/branch/main/dot/xdg/user-dirs.custom`
-`curl https://myrepos.dev/Randy-Jordan/eg/raw/branch/main/dot/xdg/user-dirs.custom > /etc/xdg/user-dirs.defaults`
- I also like to change the user shell to zsh.
-`chsh -s /path/to/new/shell username`
+`chsh -s /usr/bin/zsh username`
Step Six: - [ ] Login as user and setup dotfiles
If you are already tracking your dotfiles and this a fresh install, you can run these commands: