Skip to content

Instantly share code, notes, and snippets.

@alphaolomi
Created May 25, 2022 19:18
Show Gist options
  • Save alphaolomi/1dd2f0f2a8fb10061bbabe3693311f37 to your computer and use it in GitHub Desktop.
Save alphaolomi/1dd2f0f2a8fb10061bbabe3693311f37 to your computer and use it in GitHub Desktop.
Fresh Parrot Linux

fresh linux

sudo apt update
sudo apt full-upgrade

ToC

  1. php
  2. node
  3. rust
  4. python
  5. composer
  6. xampp

1. php

2. node

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

ensure this is in the ~/.zshrc

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
# 14 12
nvm install 16
nvm use 16
node -v

if absent install

npm i -g yarn npm

3. rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

5. composer

sudo apt install composer

6. xampp

chmod +x ./xamp TAB sudo ./xamp TAB /opt/lampp

7. alacritty terminal

# install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# 
source $HOME/.cargo/env
# other needed
sudo apt-get install cmake pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev python3
# install from cargo
cargo install alacritty

# alacritty

8. OMZ + plugins

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
git clone https://github.com/spaceship-prompt/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
nano ~/.zshrc
# ZSH_THEME="spaceship"
# plugins=(git zsh-autosuggestions zsh-syntax-highlighting)

===========================================================================

# Fonts
sudo apt install fonts-cantarell lmodern ttf-aenigma ttf-georgewilliams  ttf-bitstream-vera  ttf-sjfonts  ttf-tuffy  tv-fonts
sudo apt install ubuntustudio-font-meta
sudo apt install msttcorefonts
sudo apt install fonts-noto
sudo apt install --reinstall ttf-mscorefonts-installer
sudo apt install sl figlet toilet neofetch
# install-firacode.sh
mkdir -p ~/.local/share/fonts
for type in Bold Light Medium Regular Retina; do wget -O ~/.local/share/fonts/FiraCode-$type.ttf "https://github.com/tonsky/FiraCode/blob/master/distr/ttf/FiraCode-$type.ttf?raw=true"; done
fc-cache -f
# Brave

sudo apt install apt-transport-https curl

curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -

echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list

sudo apt update && sudo apt install brave-browser


# cat alternative
sudo apt install bat
# sublime
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt update 
sudo apt install sublime-text
# java 
sudo apt-get install openjdk-8-jre
# cd ~
# touch ~/.alacritty.yml
# nano ~/.alacritty.yml
# Configuration for Alacritty, the GPU enhanced terminal emulator.

env:
  TERM: xterm-256color

window:
  dimensions:
    columns: 100
    lines: 32
  padding:
    x: 4
    y: 8
  decorations: full

scrolling:
  history: 10000
  multiplier: 50

font:  
  normal:
    family: Fira Code
  size: 14.0

colors:
  primary:
    background: '0x282c34'
    foreground: '0xabb2bf'

  cursor:
    text: '0x282c34'
    cursor: '0xabb2bf'

  normal:
    black:   '0x282c34'
    red:     '0xe06c75'
    green:   '0x98c379'
    yellow:  '0xe5c07b'
    blue:    '0x61afef'
    magenta: '0xc678dd'
    cyan:    '0x56b6c2'
    white:   '0xabb2bf'

  # Bright colors
  bright:
    black:   '0x545862'
    red:     '0xe06c75'
    green:   '0x98c379'
    yellow:  '0xe5c07b'
    blue:    '0x61afef'
    magenta: '0xc678dd'
    cyan:    '0x56b6c2'
    white:   '0xc8ccd4'

  indexed_colors:
    - { index: 16, color: '0xd19a66' }
    - { index: 17, color: '0xbe5046' }
    - { index: 18, color: '0x353b45' }
    - { index: 19, color: '0x3e4451' }
    - { index: 20, color: '0x565c64' }
    - { index: 21, color: '0xb6bdca' }

mouse_bindings:
  - { mouse: Middle, action: PasteSelection }

mouse:
  double_click: { threshold: 300 }
  triple_click: { threshold: 300 }
  hide_when_typing: false

selection:
  semantic_escape_chars: ",│`|:\"' ()[]{}<>"  
  save_to_clipboard: true

dynamic_title: true

cursor:
  style: Block  
  unfocused_hollow: true


live_config_reload: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment