-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_debian.sh
executable file
·76 lines (62 loc) · 3.11 KB
/
setup_debian.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/usr/bin/bash
# Instructions:
# Each command has been structured into (hopefully) logical sections that work
# independently of eachother (apart from dependencies that I have attempted to
# put around the top). Comment out the sections you don't want to install.
# Happy travels!
sudo apt update -y && sudo apt upgrade -y && \
sudo apt install -y git vim build-essential gnome-tweaks ninja-build gettext cmake unzip curl && \
# Install RipGrep!
sudo apt install ripgrep && \
# Install arandr - a GUI for xrandr
sudo apt install arandr -y && \
mkdir ~/.screenlayout && \
cp ./xrandr/* ~/.screenlayout/ && \
# Install Python3
sudo apt install -y python3 python3-pip ipython3 black
# Install Python modules
pip install -r requirements.txt
# Install graphical monitor brightness controller
sudo add-apt-repository ppa:apandada1/brightness-controller -y && \
sudo apt install brightness-controller -y && \
# Install Rust
sudo apt install -y curl && \
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh && \
# Install Octave
sudo apt install -y octave && \
# Install Go
sudo apt install -y golang-go
# Copy all dotfiles into ~ or their respective config documents
# ZSH, TMUX, Git, Vim, kitty
git clone https://github.com/temataro/dotfiles ~/Code/dotfiles && cd ~/Code/dotfiles && \
cp ./extra/fonts/jet-brains-mono ./extra/fonts/sf-mono-cufonfonts ~/.local/share/fonts && \
cp ./kitty.conf ~/.config/kitty/ && \
cp ./.tmux.conf ./.vimrc ./extra/.vim ./.gitconfig ./.zshrc ~ && \
# Install Zsh with oh-my-zsh and make it default shell
sudo apt install -y zsh && chsh -s $(which zsh) && \
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" && \
# Install tmux, kitty, and Konsole
sudo apt install -y kitty tmux && \
kitty +kitten themes Mayukai && \ # Set theme for Kitty.
tmux source ~/.tmux.conf && \
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && \ # Install Tmux Plugin Manager (TPM)
# TODO: select Kitty as the default terminal by using `sudo update-alternatives --config x-terminal-emulator` and picking it out of the options.
# Install other apps (Spotify, Microsoft Edge, ... VS Code)
sudo snap install spotify glow && \
# Install Lazygit
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
tar xf lazygit.tar.gz lazygit
sudo install lazygit /usr/local/bin && \
# Install misc
sudo apt install fastfetch btop vlc dictd # Fastfetch, VLC, process manager btop, terminal dictionary
sudo apt install golang-go && git clone [email protected]:BetaPictoris/wiki.git ~/Code/wiki && \
cd ~/Code/wiki && make && sudo make install && \
# NOTES:
# 1. SETUP TMUX GOODNESS:
# Quit Kitty with LDR + D to detach your current tmux session and jump right
# back in by having a keyboard shortcut for Kitty go to `/bin/kitty tmux
# attach` instead of just Kitty.
#
# Extras to install
# The AppImage for Cura-Slicer can be goten from https://www.thingiverse.com/software/ultimaker-cura#downloads