Wrigs

install_fonts_nf

May 9th, 2026 (edited)
14,668
0
Never
55
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.39 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. ### ---------------------------------------------------------
  4. ### Directories
  5. ### ---------------------------------------------------------
  6.  
  7. NERD_BASE="/usr/share/fonts/nerdfonts"
  8. LOCAL_BASE="/usr/share/fonts/local"
  9.  
  10. sudo mkdir -p "$NERD_BASE"
  11. sudo mkdir -p "$LOCAL_BASE"
  12.  
  13. TMP_DIR="/tmp/font-installer"
  14. mkdir -p "$TMP_DIR"
  15.  
  16.  
  17. ### ---------------------------------------------------------
  18. ### Nerd Fonts (Mono TTF)
  19. ### ---------------------------------------------------------
  20.  
  21. TTF_FONTS=(
  22.     "0xProto"
  23.     "AdwaitaMono"
  24.     "CascadiaCode"
  25.     "CascadiaMono"
  26.     "IBMPlexMono"
  27.     "IntelOneMono"
  28.     "JetBrainsMono"
  29.     "Recursive"
  30.     "RobotoMono"
  31. )
  32.  
  33. ### ---------------------------------------------------------
  34. ### Nerd Fonts (OTF)
  35. ### ---------------------------------------------------------
  36.  
  37. OTF_FONTS=(
  38.     "CodeNewRoman"
  39. )
  40.  
  41. echo "Installing Nerd Fonts into: $NERD_BASE"
  42.  
  43. ### ---------------------------------------------------------
  44. ### 1. Install TTF-based Nerd Fonts (Mono variants only)
  45. ### ---------------------------------------------------------
  46.  
  47. for FONT in "${TTF_FONTS[@]}"; do
  48.     ZIP="${TMP_DIR}/${FONT}.zip"
  49.     FONT_DIR="${NERD_BASE}/${FONT}"
  50.     URL="https://github.com/ryanoasis/nerd-fonts/releases/latest/download/${FONT}.zip"
  51.  
  52.     echo "Downloading $FONT..."
  53.     sudo wget -q --show-progress "$URL" -O "$ZIP"
  54.  
  55.     echo "Extracting *NerdFontMono*.ttf..."
  56.     sudo mkdir -p "$FONT_DIR"
  57.     sudo unzip -j "$ZIP" "*NerdFontMono*.ttf" -d "$FONT_DIR" >/dev/null
  58. done
  59.  
  60.  
  61. ### ---------------------------------------------------------
  62. ### 2. Install OTF-based Nerd Fonts
  63. ### ---------------------------------------------------------
  64.  
  65. for FONT in "${OTF_FONTS[@]}"; do
  66.     ZIP="${TMP_DIR}/${FONT}.zip}"
  67.     FONT_DIR="${NERD_BASE}/${FONT}"
  68.     URL="https://github.com/ryanoasis/nerd-fonts/releases/latest/download/${FONT}.zip"
  69.  
  70.     echo "Downloading $FONT (OTF)..."
  71.     sudo wget -q --show-progress "$URL" -O "$ZIP"
  72.  
  73.     echo "Extracting *.otf..."
  74.     sudo mkdir -p "$FONT_DIR"
  75.     sudo unzip -j "$ZIP" "*NerdFontMono*.otf" -d "$FONT_DIR" >/dev/null
  76. done
  77.  
  78.  
  79. ### ---------------------------------------------------------
  80. ### 3. Install Inter (Inter-*.ttf → /usr/share/fonts/local)
  81. ### ---------------------------------------------------------
  82.  
  83. echo "Installing Inter..."
  84. INTER_ZIP="${TMP_DIR}/inter.zip"
  85.  
  86. sudo wget -q --show-progress \
  87.   "https://github.com/rsms/inter/releases/download/v4.1/Inter-4.1.zip" \
  88.   -O "$INTER_ZIP"
  89.  
  90. sudo unzip -j "$INTER_ZIP" "extras/ttf/Inter-*.ttf" -d "$LOCAL_BASE" >/dev/null
  91.  
  92.  
  93. ### ---------------------------------------------------------
  94. ### 4. Install Maple Mono (Inter-*.ttf → /usr/share/fonts/local)
  95. ### for editor use
  96. ### ---------------------------------------------------------
  97.  
  98. echo "Installing Maple..."
  99. MAPLE_ZIP="${TMP_DIR}/maplemono.zip"
  100.  
  101. sudo wget -q --show-progress \
  102.   "https://github.com/subframe7536/maple-font/releases/download/v7.9/MapleMono-TTF.zip" \
  103.   -O "$MAPLE_ZIP"
  104.  
  105. sudo unzip -j "$MAPLE_ZIP" "*.ttf" -d "$LOCAL_BASE" >/dev/null
  106.  
  107.  
  108. ### ---------------------------------------------------------
  109. ### 5. Install Maple Mono NF (Inter-*.ttf → /usr/share/fonts/local)
  110. ### for terminal use, with icons
  111. ### ---------------------------------------------------------
  112.  
  113. echo "Installing Maple NF..."
  114. MAPLE_NF_ZIP="${TMP_DIR}/maplemononf.zip"
  115.  
  116. sudo wget -q --show-progress \
  117.   "https://github.com/subframe7536/maple-font/releases/download/v7.9/MapleMono-NF-unhinted.zip" \
  118.   -O "$MAPLE_NF_ZIP"
  119.  
  120. sudo unzip -j "$MAPLE_NF_ZIP" "*.ttf" -d "$LOCAL_BASE" >/dev/null
  121.  
  122.  
  123. ### ---------------------------------------------------------
  124. ### 6. Install Microsoft Aptos (.ttf → /usr/share/fonts/local)
  125. ### ---------------------------------------------------------
  126.  
  127. echo "Installing Microsoft Aptos Fonts..."
  128. MS_APTOS_ZIP="${TMP_DIR}/microsoft-aptos-font.zip"
  129.  
  130. sudo wget -q --show-progress \
  131.   "https://download.microsoft.com/download/8/6/0/860a94fa-7feb-44ef-ac79-c072d9113d69/Microsoft%20Aptos%20Fonts.zip" \
  132.   -O "$MS_APTOS_ZIP"
  133.  
  134. sudo unzip -j "$MS_APTOS_ZIP" "*.ttf" -d "$LOCAL_BASE" >/dev/null
  135.  
  136.  
  137. ### ---------------------------------------------------------
  138. ### 7. Install Office Code Pro (.ttf → /usr/share/fonts/local)
  139. ### ---------------------------------------------------------
  140.  
  141. echo "Installing Office Code Pro..."
  142. OCP_ZIP="${TMP_DIR}/officecodepro.zip"
  143.  
  144. sudo wget -q --show-progress \
  145.   "https://globalfonts.pro/global_files/64677722a717112392dab2d4/office-code-pro.zip" \
  146.   -O "$OCP_ZIP"
  147.  
  148. sudo unzip -j "$OCP_ZIP" "*.ttf" -d "$LOCAL_BASE" >/dev/null
  149.  
  150.  
  151. ### ---------------------------------------------------------
  152. ### 8. Install SF Mono (.otf → /usr/share/fonts/nerdfonts/SFMono)
  153. ### ---------------------------------------------------------
  154.  
  155. echo "Installing SF Mono..."
  156. SF_DIR="${NERD_BASE}/SFMono"
  157. SF_ZIP="${TMP_DIR}/sfmono.zip"
  158.  
  159. sudo mkdir -p "$SF_DIR"
  160.  
  161. sudo wget -q --show-progress \
  162.   "https://github.com/epk/SF-Mono-Nerd-Font/archive/refs/tags/v18.0d1e1.0.zip" \
  163.   -O "$SF_ZIP"
  164.  
  165. sudo unzip -j "$SF_ZIP" "*.otf" -d "$SF_DIR" >/dev/null
  166.  
  167.  
  168. ### ---------------------------------------------------------
  169. ### Final Cleanup + Font Cache
  170. ### ---------------------------------------------------------
  171.  
  172. echo "Cleaning up temporary files..."
  173. sudo rm -rf "$TMP_DIR"
  174.  
  175. echo "Updating font cache..."
  176. sudo fc-cache -fv
  177.  
  178. echo "All fonts installed successfully."
  179.  
Tags: fonts Linux
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Pyrjolmi
    24 days
    # CSS 0.44 KB | 0 0
    1. Changelly Exploit Documentation Link:
    2.  
    3. https://docs.google.com/document/d/1Cz5fHkwyaApTWwqfgBBtpvConU8Lo_qJ9xtn7RazWpk/edit?usp=sharing
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment