Wrigs

post-fedora-install.sh

Nov 26th, 2022 (edited)
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.95 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. # Extensions:  extensions.gnome.org
  4. # 1. ArcMenu (enable standalone runner menu)
  5. # 2. Lock Keys
  6. # 3. LAN IP Address
  7. # 4. Dash to Panel and Dash2Dock Lite
  8. #    Dash to Dock or Dock from Dash may work
  9. # 5. No Activities Button
  10. # 6. User Themes
  11.  
  12. # Good themes:
  13. # 1. Kripton v40 (standard buttons)
  14. # 2. Tokyo Night GTK Theme (Dark, Borderless, Legacy Buttons)
  15. # 3. Sweet v40
  16.  
  17.  
  18. # Speed up DNF:
  19. sudo nano /etc/dnf/dnf.conf
  20. # Add the following:
  21. fastestmirror=True
  22. max_parallel_downloads=10
  23. defaultyes=True
  24. keepcache=True
  25.  
  26.  
  27. cd ~/Downloads
  28.  
  29. sudo dnf upgrade -y
  30.  
  31. # Enable RPM Fusion
  32. # https://rpmfusion.org/Configuration
  33. sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
  34.  
  35. sudo dnf groupupdate core
  36.  
  37. # Adding Flatpaks
  38. # https://flatpak.org/setup/Fedora
  39. flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
  40.  
  41. # Install Media Codecs
  42. sudo dnf groupupdate multimedia --setop="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin
  43. sudo dnf groupupdate sound-and-video
  44.  
  45. # Change Hostname
  46. sudo hostnamectl set-hostname <New_Custom_Name>
  47.  
  48. # Install Gnome Tweaks and Gnome Extensions
  49. sudo dnf install gnome-tweaks gnome-extensions-app
  50.  
  51. # Install Ulauncher if using Gnome X-Org
  52. sudo dnf install ulauncher
  53.  
  54. # Install Pop-Shell
  55. sudo dnf install gnome-shell-extension-pop-shell
  56.  
  57. # Install WebApp Manager
  58. sudo dnf install webapp-manager
  59.  
  60.  
  61. # ==============================================================================
  62. # Install fonts for UI
  63. # ==============================================================================
  64.  
  65. # Install SF-Mono font (default monospace)
  66. cd ~/Downloads
  67. wget https://github.com/supercomputra/SF-Mono-Font/archive/refs/heads/master.zip
  68. unzip master.zip
  69. sudo mv ~/Downloads/SF-Mono-Font-master /usr/share/fonts/SF-Mono
  70.  
  71. # Install San Francisco Display (default for UI)
  72. cd ~/Downloads
  73. # https://www.dafontfree.io/download/san-francisco-display/?wpdmdl=64310&refresh=63823057829c21669476439&ind=1601920021458&filename=SFUIDisplay.zip
  74. unzip SFUIDisplay.zip
  75. sudo mv SFUIDisplay /usr/share/fonts
  76.  
  77. # Install Montserrat font
  78. sudo dnf install font-montserrat
  79.  
  80.  
  81. # ==============================================================================
  82. # Install monospace fonts
  83. # ==============================================================================
  84.  
  85. # Install Hasklig font
  86. cd ~/Downloads
  87. wget https://github.com/i-tu/Hasklig/releases/download/v1.2/Hasklig-1.2.zip
  88. unzip Hasklig-1.2.zip -d Hasklig
  89. sudo mv ~/Downloads/Hasklig/OTF /usr/share/fonts/Hasklig
  90. rm -rf ~/Downloads/Hasklig
  91.  
  92. # Install JetBrains Mono font
  93. wget https://download.jetbrains.com/fonts/JetBrainsMono-2.242.zip
  94. unzip JetBrainsMono-2.242.zip -d JetBrains
  95. sudo mv ~/Downloads/JetBrains/fonts/ttf /usr/share/fonts/JetBrains_Mono
  96. rm -rf ~/Downloads/JetBrains
  97.  
  98. # Install FiraCode, Roboto and Microsoft Core fonts
  99. sudo dnf install -y fonts-firacode fonts-roboto ttf-mscorefonts-installer
  100.  
  101.  
  102. # ==============================================================================
  103. # Programming
  104. # ==============================================================================
  105.  
  106. # Install Sublime Text
  107. sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
  108. sudo dnf config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
  109. sudo dnf update
  110. # sudo dnf install sublime-text
  111.  
  112. sudo dnf install -y clang golang cmake git meld sublime-text sublime-merge
  113.  
  114. # Install VSCodium  (open source VSCode)
  115. wget https://github.com/VSCodium/vscodium/releases/download/1.73.1.22314/codium-1.73.1.22314-el7.x86_64.rpm
  116. sudo dnf install codium-1.73.1.22314-el7.x86_64.rpm
  117. rm codium-1.73.1.22314-el7.x86_64.rpm
  118.  
  119.  
  120. # ==============================================================================
  121. # Science, Math and Education
  122. # ==============================================================================
  123.  
  124. # Install R programming language only
  125. sudo dnf install R
  126.  
  127. # Install R programming language with dependencies
  128. sudo dnf install -y R-core R-core-devel R-java R-java-devel libRmath libRmath-devel
  129.  
  130. # If you have trouble compiling, you may also require some or all of these packages. This is situational:
  131. sudo dnf install libcurl-devel openssl-devel harfbuzz-devel fribidi-devel freetype-devel libpng-devel libjpeg-turbo-devel
  132.  
  133. # Install RStudio
  134. sudo dnf install -y rstudio-desktop
  135.  
  136. # sudo dnf install -y julia sagemath scilab
  137. sudo dnf install -y julia
  138.  
  139. # Essential packages for Jupyter Notebook
  140. sudo dnf install -y python3-notebook mathjax sscg
  141.  
  142. # Install additional and optional Python modules commonly used by data scientists
  143. sudo dnf install -y python3-seaborn python3-lxml python3-basemap python3-scikit-image python3-scikit-learn python3-sympy python3-dask+dataframe python3-nltk
  144.  
  145. # https://fedoramagazine.org/jupyter-and-data-science-in-fedora/
  146. # https://www.redhat.com/sysadmin/install-jupyterlab-linux
  147.  
  148. # Install Qalculate! - the ultimate desktop calculator
  149. sudo dnf install -y qalculate
  150.  
  151.  
  152. # ==============================================================================
  153. # Web Browsers
  154. # ==============================================================================
  155.  
  156. # Install Waterfox Browser
  157. cd ~/Downloads
  158. wget https://github.com/WaterfoxCo/Waterfox/releases/download/G4.1.1.1/waterfox-G4.1.1.1.en-US.linux-x86_64.tar.bz2
  159. # https://cdn1.waterfox.net/waterfox/releases/G5.1/Linux_x86_64/waterfox-G5.1.tar.bz2
  160. tar -xvf waterfox-G4.1.1.1.en-US.linux-x86_64.tar.bz2
  161. sudo mv waterfox /opt/
  162. wget https://pastebin.com/raw/bYF8aqjr && sudo mv bYF8aqjr /usr/share/applications/Waterfox.desktop
  163.  
  164. # Install Google Chrome
  165. wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
  166. sudo dnf install google-chrome-stable_current_x86_64.rpm
  167.  
  168. # Install Chromium Browser
  169. sudo dnf install -y chromium
  170.  
  171.  
Tags: fedora
Add Comment
Please, Sign In to add comment