-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-debian-bullseye.sh
executable file
·52 lines (52 loc) · 2.07 KB
/
install-debian-bullseye.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
#!/bin/bash
SCRIPT=$(realpath -s "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
echo "Installing packages..."
sudo apt update && sudo apt upgrade -y
# Common tools
sudo apt install -y fish tmux vim htop curl bash-completion git ripgrep man fd-find
mkdir -p ~/.local/bin
ln -s $(which fdfind) ~/.local/bin/fd
# Python
sudo apt install -y python3 python3-venv python3-pip
# Python GUI requirements
sudo apt install -y tk-dev libmtdev-dev
curl https://pyenv.run | bash
# YouCompleteMe requirements
sudo apt install -y build-essential cmake vim-nox python3-dev mono-complete \
golang nodejs openjdk-17-jdk openjdk-17-jre
nvm_version=$(git ls-remote --sort=version:refname --tags https://github.com/nvm-sh/nvm.git | tail -n1 | sed 's/.*\/\([^$^]*\).*/\1/')
echo "Installing nvm ${nvm_version}..."
curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${nvm_version}/install.sh" | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
nvm install node --default
echo "Setting fish as the default shell..."
chsh -s /usr/bin/fish
echo "Copying dotfiles..."
"${SCRIPTPATH}/symlink-dotfiles.sh"
echo "Setting up vim..."
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
vim +PlugInstall +qa
(cd ~/.vim/plugged/YouCompleteMe && python3 install.py --all)
# ctags
sudo apt-get install -y gcc make \
pkg-config autoconf automake \
python3-docutils \
libseccomp-dev \
libjansson-dev \
libyaml-dev \
libxml2-dev
(git clone https://github.com/universal-ctags/ctags.git; cd ctags; git checkout 3af41354; ./autogen.sh; ./configure; make; sudo make install; cd ..; rm -rf ctags)
echo "Setting up python tools..."
curl -sSL https://install.python-poetry.org | python3 -
pip install black ruff mypy
echo "Installing npm tools..."
npm install -g jsonlint
npm install -g fixjson
npm install -g htmlhint
npm install -g jshint
npm install -g prettier
npm install -g stylelint
npm install -g stylelint-config-standard