Take the following steps to set up a new machine from scratch:
-
Start here (install Linux OS and desktop environment)
-
Download/install additional tools not available in
apt
-
- NOTE: You may want to checkout any
onetimeInstalls.sh
scripts found in a profile
- NOTE: You may want to checkout any
$ sudo apt update && sudo apt install git git-lfs cifs-utils arandr xfce4-terminal xclip maim flameshot xdotool pavucontrol bat tmux
-
xfce4-terminal terminal emulator of choice
-
arandr GUI for resolution/display configurations (generates xrandr commands)
-
cifs-utils required to mount drives in Berkeley
-
xclip allows CLI to clipboard selections, useful copying stdout
-
maim screenshots
-
flameshot screenshoots as well
-
xdotool programmatically simulate keyboard input and mouse activity
-
pavucontrol graphical volume control
-
bat better than cat
-
tmux terminal multiplexer
-
Follow instructions on zsh wiki
-
Follow instructions on ohmyzsh wiki
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
-
$
git clone https://github.com/DukeOfEtiquette/dotfiles.git && cd dotfiles
-
$
mkdir -p ~/screenshots
- Review
$HOME/.config/i3/config
, there are system bindings for taking screenshots
- Review
DEPRECATED
LS_COLORS script now part of repo, just if it needs updated but no need to install.
-
Install .dircolors
- $
mkdir /tmp/LS_COLORS && curl -L https://api.github.com/repos/trapd00r/LS_COLORS/tarball/master | tar xzf - --directory=/tmp/LS_COLORS --strip=1 && ( cd /tmp/LS_COLORS && sh install.sh )
- You may want to checkout any
onetimeInstalls.sh
scripts found in a profile
- $
-
Verify
installDotfiles
is setup properly and run:./installDotfiles --profile gomez
-
$
source ~/.zshrc
Turn on Settings Sync!
RUN THIS sudo usermod -a -G docker $USER
Logout after adding user to the docker group
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
Custom notification window (comes with Lubuntu)
NOTE
For a new user, you must run the oh-my-zsh and dircolors install before running this installDotfiles.sh!
For this example, let us assume we are adding a new user named spare
-
Create the user:
sudo adduser spare
-
Add to sudo group:
sudo usermod -a -G sudo spare
-
Log into new user:
su - spare
-
Install oh-my-zsh for user
- $
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- $
-
Install dircolors for user
mkdir -p $HOME/.local/share && ( cd /tmp/LS_COLORS && sh install.sh )
-
Clone this repo
- $
git clone https://github.com/DukeOfEtiquette/dotfiles.git && cd dotfiles
- $
-
Install dotfiles
- $
./installDotfiles.sh && source ~/.zshrc
- $
For this example, let us assume the following old and new user names:
- old user name: alpha
- new user name: beta
-
Update user's name
- $
sudo usermod -l beta alpha
- $
-
Update user's group name
- $
sudo groupmod --new-name beta alpha
- $
For this example, let us assume we are deleting the user named spare
-
Ensure you are logged into a user that is not the one intended for removal
-
Kill running processes: $
sudo killall -u spare
-
Delete and remove home directory: $
sudo userdel -r spare
iw dev | grep "Interface" | awk -F ' ' '{print $2}'
nmtui