Before clean install, save current settings -> override in dotfiles
dconf dump / > .dconf;
wget https://raw.githubusercontent.com/AaronWeinberg/init/master/scripts/init.sh && sudo chmod +x init.sh && command="./init.sh"; echo $command | tee init.log; eval $command | tee -a init.log && rm init.sh
- after initial script run:
sudo apt-get install -y ttf-mscorefonts-installer;
- In ~/.ssh/config --> replace with VPS ip and with VPS port
- In ~/.ssh/id_ed25519 --> add private ssh key
- On Ubuntu Desktop, install GNOME Shell Integration extensions:
- App Icons Taskbar
- Autohide Battery
- Autohide Volume
- DDTERM
- Hide Network Icon
- Just Perfection
- On VPS:
- change domains in Caddyfile
- in /etc/ssh/sshd_config --> uncomment # Port and replace with correct value
# with default port 22
ssh ubuntu@<VPS IP>
# with SSH port changed
ssh ubuntu@<VPS IP> -p <NEW PORT>
echo "box1" | sudo tee /etc/hostname
sudo ufw enable
rm -f ~/.ssh/authorized_keys && wget -P ~/.ssh https://raw.githubusercontent.com/AaronWeinberg/init/master/dotfiles/authorized_keys;
rm -f /etc/ssh/sshd_config && wget -P /etc/ssh https://raw.githubusercontent.com/AaronWeinberg/init/master/dotfiles/sshd_config;
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy
rm -f /etc/caddy/Caddyfile && wget -P /etc/caddy https://raw.githubusercontent.com/AaronWeinberg/init/master/dotfiles/Caddyfile;
sudo systemctl restart caddy
mkdir ~/Development/myProj.git
cd ~/Development/myProj.git
# start a bare repo
git init --bare
# add a listener to listen to `git push`
cd ~/Development/myProj.git/hooks
# create listener
touch post-receive
# give it user-exec permissions
chmod u+x post-receive
# enter script content into post-receive
set -eu
proj=~/Development/myProj
rm -rf ${proj}
mkdir -p ${proj}
echo "checkout to $proj"
git --work-tree=${proj} checkout -f
echo "prod installed"
# add a remote to your local git folder
git remote add prod box1:~/Development/myProj.git
# change/commit code
# push to prod, runs your post-receive hook
git push prod
- Windows updates (several restarts)
- Microsoft Store -> update all apps
$command = 'Set-ExecutionPolicy Unrestricted; (Invoke-webrequest -URI "https://raw.githubusercontent.com/AaronWeinberg/init/master/scripts/init.ps1").Content | out-file -filepath init.ps1; .\init.ps1; rm C:\Users\aaron\init.ps1'; echo $command | Tee-Object -FilePath init.log; Invoke-Expression $command | Tee-Object -FilePath init.log -Append
- Display: Night light: on
- Notifications:
- Notifications: disable
- Additional Settings: disable all
- Multitasking:
- Show tabs from apps...: "Don't show tabs"
- Add device:
- keyboard
- mouse
- controller
- Themes:
- Theme: dark
- Desktop Icon Settings: Recycle Bin: disable
- Background:
- Personalize your background: slideshow: C:\Users\aaron\OneDrive\Backgrounds
- change picture every: 1 minute
- shuffle the picture order: on
- Lock Screen:
- Personalize your lockscreen: slideshow: C:\Users\aaron\OneDrive\Backgrounds
- Get fun facts, tips tricks and more on your lock screen: uncheck
- Start:
- Show recently added apps: disable
- Show recently opened items: disable
- Show tips: disable
- Taskbar:
- Taskbar Apps: Disable search/taskview/widgets/chat
- Startup: disable all
- Sign-in options:
- Facial Recognition
- Fingerprint
- Date & Time:
- Set time zone automatically
- Language & Region: Regional Format: change all to yyyy-mm-dd + 24-hour time
- For Developers:
- File Explorer:
- Show file extensions: on
- Show hidden and system files: on
- Show full path in title bar: on
- File Explorer:
- Get the latest updates as soon as they're available: on
- Advanced Options
- Receive updates for other Microsoft products
- Optional updates
- OneDrive -> Backgrounds -> Always keep on this device
- Dell Command Update -> updates
- Explorer:
- Remove from Quick Access:
- Pictures
- Documents
- Music
- Videos
- Remove from Quick Access:
- Unpin all apps from taskbar + start menu
- In Nvidia Control Panel --> Desktop:
- Add Desktop Context Menu: uncheck
- Show Notification Tray Icon: uncheck
- Printer drivers:
- Setup extensions + settings on Edge, Firefox, and Google
- Create WireGuard tunnel from .conf file