Wrigs

setup-pop_os.sh

May 29th, 2024 (edited)
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.28 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. # Created with Pop_OS! in mind, these commands should work with
  4. # Ubuntu, Zorin OS, Debian and other Ubuntu based distros running Gnome DTE
  5. # Should also work with non-Gnome Ubuntu based distros sans extensions.
  6.  
  7. cd ~/Downloads
  8.  
  9. sudo apt update && sudo apt upgrade -y
  10.  
  11. # Install Nala APT Frontend =====================================================
  12.  
  13. # For Ubuntu 22.04+ / Debian Sid:
  14. sudo apt update && sudo apt install nala
  15.  
  16. # For Debian 11 stable, Ubuntu 21.04 and older versions, you need to install the nala-legacy package
  17.  
  18. echo "deb [arch=amd64,arm64,armhf] http://deb.volian.org/volian/ scar main" | sudo tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list
  19. wget -qO - https://deb.volian.org/volian/scar.key | sudo tee /etc/apt/trusted.gpg.d/volian-archive-scar-unstable.gpg > /dev/null
  20.  
  21. sudo apt install nala-legacy
  22.  
  23. # Install utilties =============================================================
  24.  
  25. sudo apt install gnome-tweaks chrome-gnome-shell gnome-extensions-app gnome-shell-extension-prefs
  26. sudo apt install curl wget gdebi keepassxc tilix libfuse2
  27.  
  28.  
  29. # Install Rofi
  30. sudo apt install rofi
  31. mkdir -p ~/.config/rofi/
  32. mkdir -p ~/.local/share/rofi/themes/
  33. cd ~/Downloads
  34. git clone https://github.com/lr-tech/rofi-themes-collection.git
  35. # cd rofi-themes-collection
  36. mv rofi-themes-collection/themes/spotlight-dark.rasi ~/.local/share/rofi/themes/
  37. # rofi-theme-selector
  38.  
  39. # Install Ulauncher
  40. wget https://github.com/Ulauncher/Ulauncher/releases/download/5.14.4/ulauncher_5.14.4_all.deb
  41. sudo gdebi ulauncher_5.14.4_all.deb
  42.  
  43.  
  44. # Gnome Extensions =============================================================
  45. # see https://pastebin.com/edit/5BLYUAGh
  46.  
  47.  
  48. # Install fonts ================================================================
  49.  
  50. # Install Hasklig font
  51. cd ~/Downloads
  52. wget https://github.com/i-tu/Hasklig/releases/download/v1.2/Hasklig-1.2.zip
  53. unzip Hasklig-1.2.zip -d Hasklig
  54. sudo mkdir /usr/share/fonts/opentype/Hasklig
  55. sudo mv ~/Downloads/Hasklig/OTF/*.* /usr/share/fonts/opentype/Hasklig
  56. rm -rf ~/Downloads/Hasklig
  57.  
  58. # Install JetBrains Mono font
  59. wget https://download.jetbrains.com/fonts/JetBrainsMono-2.242.zip
  60. unzip JetBrainsMono-2.242.zip -d JetBrains
  61. sudo mkdir /usr/share/fonts/truetype/JetBrains_Mono
  62. sudo mv ~/Downloads/JetBrains/fonts/ttf/*.* /usr/share/fonts/truetype/JetBrains_Mono
  63. rm -rf ~/Downloads/JetBrains
  64.  
  65. # Install FiraCode, Roboto and Microsoft Core fonts
  66. sudo apt-get install -y fonts-firacode fonts-roboto ttf-mscorefonts-installer
  67.  
  68. # Software Developoment ========================================================
  69.  
  70. sudo apt install -y clang golang cmake meld
  71.  
  72. # install curl, if necessary
  73. sudo apt install curl
  74.  
  75. # installs NVM (Node Version Manager)
  76. curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
  77.  
  78. # download and install Node.js
  79. nvm install 20
  80.  
  81. # verifies the right Node.js version is in the environment
  82. node -v # should print `v20.12.0`
  83.  
  84. # verifies the right NPM version is in the environment
  85. npm -v # should print `10.5.0`
  86.  
  87. # install pgp key for yarn
  88. curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
  89.  
  90. # enable yarn repository
  91. echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  92.  
  93. # install yarn with apt
  94. sudo apt install yarn -y
  95.  
  96. # Install Github CLI
  97. (type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
  98. && sudo mkdir -p -m 755 /etc/apt/keyrings \
  99. && wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
  100. && sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
  101. && 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 \
  102. && sudo apt update \
  103. && sudo apt install gh -y
  104.  
  105. # Install Docker
  106. curl -fsSL https://get.docker.com -o get-docker.sh
  107. sh get-docker.sh
  108. sudo usermod -aG docker $USER
  109.  
  110.  
  111. # Code Editors =================================================================
  112.  
  113. # Install Sublime Text
  114. wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
  115. sudo apt-get install apt-transport-https
  116. echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
  117. sudo apt-get update
  118. sudo apt-get install sublime-text
  119.  
  120. # Install Visual Studio Code
  121. curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
  122. sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
  123. sudo apt update
  124. sudo apt install code
  125.  
  126.  
  127. # Science and Education ========================================================
  128.  
  129. sudo apt-get install -y julia sagemath
  130.  
  131. # Install Octave and plug-ins
  132. 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
  133.  
  134.  
  135. # Install browsers =============================================================
  136.  
  137. # Install Waterfox Browser
  138. cd ~/Downloads
  139. wget https://github.com/WaterfoxCo/Waterfox/releases/download/G4.1.1.1/waterfox-G4.1.1.1.en-US.linux-x86_64.tar.bz2
  140. tar -xvf waterfox-G4.1.1.1.en-US.linux-x86_64.tar.bz2
  141. sudo mv waterfox /opt/
  142. wget https://pastebin.com/raw/bYF8aqjr && sudo mv bYF8aqjr /usr/share/applications/Waterfox.desktop
  143.  
  144. # Install Google Chrome
  145. wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
  146. sudo dpkg -i google-chrome-stable_current_amd64.deb
  147.  
  148. # Install Chromium Browser
  149. sudo apt-get install -y chromium-browser
  150.  
  151.  
  152. # Keyboard Shortcuts ===========================================================
  153.  
  154. # Navigation - MOVE WINDOW COMMANDS
  155. gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-1 "['<Primary><Alt>KP_1']" &&
  156. gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-2 "['<Primary><Alt>KP_2']" &&
  157. gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-3 "['<Primary><Alt>KP_3']" &&
  158. gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-4 "['<Primary><Alt>KP_4']" &&
  159. gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-5 "['<Primary><Alt>KP_5']" &&
  160. gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-6 "['<Primary><Alt>KP_6']" &&
  161. gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-7 "['<Primary><Alt>KP_7']" &&
  162. gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-8 "['<Primary><Alt>KP_8']" &&
  163. gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-9 "['<Primary><Alt>KP_9']"
  164.  
  165.  
  166. gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-left "['<Primary><Alt>Left']" &&
  167. gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-right "['<Primary><Alt>Right']"
  168.  
  169.  
  170. # Navigation - SWITCH WINDOW COMMANDS
  171. gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-1 "['<Primary><Super>KP_1']" &&
  172. gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-2 "['<Primary><Super>KP_2']" &&
  173. gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-3 "['<Primary><Super>KP_3']" &&
  174. gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-4 "['<Primary><Super>KP_4']" &&
  175. gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-5 "['<Primary><Super>KP_5']" &&
  176. gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-6 "['<Primary><Super>KP_6']" &&
  177. gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-7 "['<Primary><Super>KP_7']" &&
  178. gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-8 "['<Primary><Super>KP_8']" &&
  179. gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-9 "['<Primary><Super>KP_9']"
  180.  
  181. gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "['<Control><Super>Left']" &&
  182. gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "['<Control><Super>Right']"
  183.  
  184.  
  185. # Install i3wm =================================================================
  186. sudo apt install i3 lxappearance nitrogen rofi pavucontrol
  187. sudo apt install pulseaudio-module-bluetooth pulseaudio-equalizer pulseaudio-module-jack alsa-utils playerctl
  188.  
  189.  
Add Comment
Please, Sign In to add comment