setup.sh and installing on new system
This commit is contained in:
81
install_the_dotfiles.sh
Normal file
81
install_the_dotfiles.sh
Normal file
@@ -0,0 +1,81 @@
|
||||
# TODO:
|
||||
# - [x] Mount /krk-pc on startup
|
||||
# - [x] Add server SSH keys and PC ssh keys
|
||||
# - [ ] Mount /proton on startup
|
||||
# - [x] Hibernate if not using PC for 10 minutes
|
||||
#
|
||||
# - [ ] Mount /lenovo-laptop
|
||||
# - [ ] Mount server /server-vps
|
||||
#
|
||||
# - [ ] Combine apps + bin + bookmarks
|
||||
# - [ ] Use .desktop file name instead of "Name" parameter
|
||||
# - [x] everything relevant wmenu browser (programs and scripts without arguments, bookmarks, files)
|
||||
# - [x] plocate + wmenu > xdg-open
|
||||
# - [x] applications + bin folder
|
||||
# - [x] bookmarks
|
||||
#
|
||||
# - [ ] Kakoune setup
|
||||
#
|
||||
# Solutions in search for problems:
|
||||
# - [ ] tmux automation
|
||||
#
|
||||
|
||||
|
||||
## Setup sudo for user
|
||||
# su root
|
||||
# export PATH="$PATH:/usr/sbin"
|
||||
# apt install sudo git
|
||||
# usermod -aG sudo kk
|
||||
# exit # exit root
|
||||
# exit # exit user to reload config
|
||||
|
||||
## Basic utilities
|
||||
# sudo apt install -y clang cmake build-essential make tcc vim ripgrep curl git man-db plocate tmux zip unzip fzf
|
||||
# sudo updatedb
|
||||
|
||||
## Update grub to not wait on bootloader screen @todo: automate
|
||||
# sudo vi /etc/default/grub
|
||||
# GRUB_TIMEOUT=0
|
||||
# GRIM_TIMEOUT_STYLE=hidden
|
||||
|
||||
## Drivers
|
||||
## Need to update /etc/apt/sources.list (add contrib non-free non-free-firmware) @todo: automate
|
||||
# sudo apt update
|
||||
# sudo apt install -y nvidia-driver firmware-misc-nonfree linux-headers-amd64
|
||||
## Then do some nvidia configuration (set modeset=1, update ramfs, reboot)
|
||||
|
||||
# # Standard enviroment setup
|
||||
# sudo apt install -y xdg-desktop-portal-wlr xdg-desktop-portal-gtk xdg-user-dirs
|
||||
|
||||
# # DE setup
|
||||
# sudo apt install -y sway swayidle swaybg swaylock foot wmenu brightnessctl xwayland wl-clipboard
|
||||
|
||||
# # Issue fix
|
||||
# # there were issues because user was not in render group (error messages on start of sway)
|
||||
# sudo usermod -aG video,render kk
|
||||
|
||||
# # Setup audio
|
||||
# sudo apt install -y pipewire pipewire-pulse wireplumber pavucontrol
|
||||
|
||||
## Copy over ssh keys to relevant machines @user_action
|
||||
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N ""
|
||||
|
||||
## Setup ssh drives
|
||||
# sudo apt install -y sshfs
|
||||
## Mount the drives using /etc/fstab automatically
|
||||
## Example:
|
||||
##
|
||||
## root@157.90.144.237:/ /server-vps fuse.sshfs noauto,x-systemd.automount,_netdev,x-systemd.idle-timeout=2min,x-systemd.mount-timeout=10s,reconnect,ServerAliveInterval=15,ServerAliveCountMax=3,IdentityFile=/home/kk/.ssh/id_ed25519,UserKnownHostsFile=/home/kk/.ssh/known_hosts,StrictHostKeyChecking=accept-new,allow_other,default_permissions 0 0
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#
|
||||
# # Setup internet
|
||||
# # sudo apt install w3m surfraw
|
||||
# sudo apt install chromium
|
||||
|
||||
# Extra
|
||||
## Clipboard history
|
||||
# sudo apt install cliphist
|
||||
Reference in New Issue
Block a user