Wrigs

setup-lmde-debian.sh

May 29th, 2024 (edited)
926
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.21 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. # Created with Linux Mint/Debian/LMDE in mind, these commands should work with
  4. # Ubuntu, Zorin OS, PopOS! and other Ubuntu based distros
  5.  
  6. cd ~/Downloads
  7.  
  8. sudo apt update && sudo apt upgrade -y
  9.  
  10. # Install Nala APT Frontend =====================================================
  11.  
  12. # For Ubuntu 22.04+ / Debian Sid:
  13. sudo apt update && sudo apt install nala
  14.  
  15. # Install Utilties =============================================================
  16.  
  17. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  18.  
  19. sudo apt install curl wget git gdebi bat btop eza fzf ripgrep glances tealdeer zoxide
  20. sudo apt install keepassxc catfish
  21. sudo apt install qalculate-gtk
  22. # sudo apt install speedcrunch
  23.  
  24. # Install Terminals ============================================================
  25.  
  26. # Install Starship Cross-Shell Prompt
  27. curl -sS https://starship.rs/install.sh | sh
  28. echo 'eval "$(starship init bash)"' >> ~/.bashrc
  29. mkdir ~/.config/starship
  30. wget -O ~/.config/starship/starship.toml https://pastebin.com/CCVm1uYz
  31.  
  32. # Install Alacritty terminal
  33. sudo apt install alacritty
  34. mkdir ~/.config/alacritty
  35. wget -O ~/.config/alacritty/alacritty.toml https://pastebin.com/raw/A1G58t6f
  36.  
  37. # Alacritty Themes
  38. mkdir -p ~/.config/alacritty/themes
  39. git clone https://github.com/alacritty/alacritty-theme ~/Downloads/alacritty_themes
  40. mv ~/Downloads/alacritty_themes/themes ~/.config/alacritty
  41. rm -rf ~/Downloads/alacritty_themes
  42.  
  43. # Install Ghostty terminal (Debian 12)
  44. echo 'deb http://download.opensuse.org/repositories/home:/clayrisser:/bookworm/Debian_12/ /' | sudo tee /etc/apt/sources.list.d/home:clayrisser:bookworm.list
  45. curl -fsSL https://download.opensuse.org/repositories/home:clayrisser:bookworm/Debian_12/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_clayrisser_bookworm.gpg > /dev/null
  46. sudo apt update
  47. sudo apt install ghostty
  48.  
  49. # Install wezterm
  50. curl -fsSL https://apt.fury.io/wez/gpg.key | sudo gpg --yes --dearmor -o /usr/share/keyrings/wezterm-fury.gpg
  51. echo 'deb [signed-by=/usr/share/keyrings/wezterm-fury.gpg] https://apt.fury.io/wez/ * *' | sudo tee /etc/apt/sources.list.d/wezterm.list
  52. sudo chmod 644 /usr/share/keyrings/wezterm-fury.gpg
  53.  
  54. sudo apt update
  55. sudo apt install wezterm
  56.  
  57. mkdir ~/.config/wezterm
  58. wget -O ~/.config/wezterm/wezterm.lua https://pastebin.com/raw/LbPbVfrg
  59.  
  60. # Install if necessary
  61. sudo apt install libfuse2
  62.  
  63. # Install Application Launchers =================================================
  64.  
  65. # Install Rofi
  66. sudo apt install rofi
  67. mkdir -p ~/.config/rofi/
  68. mkdir -p ~/.local/share/rofi/themes/
  69. cd ~/Downloads
  70. git clone https://github.com/lr-tech/rofi-themes-collection.git
  71. # mv ~/Downloads/rofi-themes-collection/themes/spotlight-dark.rasi ~/.local/share/rofi/themes/
  72. mv ~/Downloads/rofi-themes-collection/themes/*.rasi ~/.local/share/rofi/themes/
  73. # rofi-theme-selector
  74. # rofi -show drun -show-icons -icon-theme "Papirus"
  75.  
  76. # Install Ulauncher
  77. wget https://github.com/Ulauncher/Ulauncher/releases/download/5.14.4/ulauncher_5.14.4_all.deb
  78. sudo gdebi ulauncher_5.14.4_all.deb
  79.  
  80. # Gnome Utilties ===============================================================
  81. # sudo apt install gnome-tweaks chrome-gnome-shell gnome-extensions-app gnome-shell-extension-prefs
  82.  
  83. # Gnome Extensions =============================================================
  84. # see https://pastebin.com/edit/5BLYUAGh
  85.  
  86.  
  87. # Install fonts ================================================================
  88.  
  89. wget -O ~/Downloads/install-fonts.sh https://pastebin.com/raw/Ak9ZvPwC
  90. chmod +x ~/Downloads/install-fonts.sh
  91.  
  92. # Software Developoment ========================================================
  93.  
  94. sudo apt install -y clang golang cmake meld spyder lazarus
  95.  
  96. # install curl, if necessary
  97. sudo apt install curl
  98.  
  99. # installs NVM (Node Version Manager)
  100. curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
  101.  
  102. # download and install Node.js
  103. nvm install 20
  104.  
  105. # verifies the right Node.js version is in the environment
  106. node -v # should print `v20.12.0`
  107.  
  108. # verifies the right NPM version is in the environment
  109. npm -v # should print `10.5.0`
  110.  
  111. # install pgp key for yarn
  112. curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
  113.  
  114. # enable yarn repository
  115. echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  116.  
  117. # install yarn with apt
  118. sudo apt install yarn -y
  119.  
  120. # Install Github CLI
  121. (type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
  122. && sudo mkdir -p -m 755 /etc/apt/keyrings \
  123. && wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
  124. && sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
  125. && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
  126. && sudo apt update \
  127. && sudo apt install gh -y
  128.  
  129. # Install Docker
  130. curl -fsSL https://get.docker.com -o get-docker.sh
  131. sh get-docker.sh
  132. sudo usermod -aG docker $USER
  133.  
  134.  
  135. # Code Editors =================================================================
  136.  
  137. sudo apt install sublime-text sublime-merge -y
  138.  
  139. # Install Sublime Text
  140. wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
  141. sudo apt-get install apt-transport-https
  142. echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
  143. sudo apt-get update
  144. sudo apt-get install sublime-text
  145.  
  146. # Install Visual Studio Code
  147. curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
  148. sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
  149. sudo apt update
  150. sudo apt install code
  151.  
  152. # Database Tools ===============================================================
  153. sudo apt-get install sqlitebrowser
  154.  
  155. wget https://dbeaver.io/files/dbeaver-ce_latest_amd64.deb -P ~/Downloads
  156. sudo gdebi ~/Downloads/dbeaver-ce_latest_amd64.deb
  157.  
  158.  
  159. # Science and Education ========================================================
  160.  
  161. sudo apt-get install -y julia sagemath
  162.  
  163. # Install Octave and plug-ins
  164. sudo nala install octave octave-arduino octave-statistics octave-database octave-dataframe octave-data-smoothing octave-financial octave-general octave-io octave-linear-algebra octave-missing-functions octave-signal octave-sockets octave-specfun octave-tsa
  165.  
  166. # Install Miniconda 3
  167. mkdir -p ~/miniconda3
  168. wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
  169. bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
  170. rm ~/miniconda3/miniconda.sh
  171.  
  172. ## After installing, close and reopen your terminal application or refresh it by running the following command:
  173. source ~/miniconda3/bin/activate
  174.  
  175. ## Then, initialize conda on all available shells by running the following command:
  176. conda init --all
  177.  
  178. ## Prevent Conda from activating base environment on terminal launch:
  179. conda config --set auto_activate_base false
  180.  
  181. ## Create New Conda virtual environment:
  182. conda create -n <env-name> python=3.13.5
  183.  
  184.  
  185.  
  186.  
  187. # Install browsers =============================================================
  188.  
  189.  
  190. # Install Brave Browser
  191. curl -fsS https://dl.brave.com/install.sh | sh
  192.  
  193. # Install Google Chrome
  194. wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
  195. # sudo dpkg -i google-chrome-stable_current_amd64.deb
  196. sudo gdebi google-chrome-stable_current_amd64.deb
  197.  
  198. # Install Waterfox Browser
  199. cd ~/Downloads
  200. wget https://github.com/WaterfoxCo/Waterfox/releases/download/G4.1.1.1/waterfox-G4.1.1.1.en-US.linux-x86_64.tar.bz2
  201. tar -xvf waterfox-G4.1.1.1.en-US.linux-x86_64.tar.bz2
  202. sudo mv waterfox /opt/
  203. wget https://pastebin.com/raw/bYF8aqjr && sudo mv bYF8aqjr /usr/share/applications/Waterfox.desktop
  204.  
  205. # Install Chromium Browser
  206. sudo apt-get install -y chromium-browser
  207.  
  208.  
  209. # Install i3wm =================================================================
  210. sudo apt install i3 lxappearance nitrogen rofi pavucontrol
  211. sudo apt install pulseaudio-module-bluetooth pulseaudio-equalizer pulseaudio-module-jack alsa-utils playerctl
  212.  
Advertisement
Add Comment
Please, Sign In to add comment