Skip to content

Instantly share code, notes, and snippets.

@alexander-danilenko
Last active November 20, 2020 11:15
Show Gist options
  • Save alexander-danilenko/039f0c9d4fbb941608943a847d6ed118 to your computer and use it in GitHub Desktop.
Save alexander-danilenko/039f0c9d4fbb941608943a847d6ed118 to your computer and use it in GitHub Desktop.
Manjaro/Arch Cheatsheet

System

USB WiFi Drivers

Adapter Chip name Kernel AUR Driver sources
Asus USB AC53-Nano RTL8822BU 5.4 rtl8822bu
Asus USB AC56 RTL8812AU 5.4 rtl8812au-dkms-git https://github.com/gordboy/rtl8812au-5.6.4.2

Nvidia Non-free drivers

See what drivers currently in use:

inxi -G

If Nouveau driver used, install non-free:

sudo mhwd -a pci nonfree 0300

Apps

Prerequisites:

Prerequisite packages:

sudo pacman -S --noconfirm --needed base-devel fakeroot git yay

Kernels: LTS + Latest

LTS kernel:

yay -S linux-lts linux-lts-headers linux-latest linux-latest-headers dkms

Update pacman mirrors and upgrade system:

sudo pacman-mirrors -g && sudo pacman -Syyu --noconfirm

Apps:

PACKAGES=(
    google-chrome
    firefox

    zsh
    antigen
    htop
    jq
    mc
    nvm
    tree
    unrar
    unzip
    yq
    zip

    php
    php-gd

    jdk-openjdk
    jre-openjdk
    libheif

    dia
    evolution
    evolution-ews
    flameshot
    inkscape
    skypeforlinux-stable-bin
    slack-electron
    synology-drive-client
    teamviewer
    telegram-desktop
    transmission-gtk
    zoom

    #google-cloud-sdk
    jetbrains-toolbox
    postman-bin
    skypeforlinux-stable-bin
    visual-studio-code-bin

    ttf-ms-fonts
    ttf-droid
    ttf-jetbrains-mono
    ttf-opensans
    ttf-roboto
    ttf-roboto-mono

    qogir-gtk-theme
    qogir-icon-theme
    elementary-wallpapers

    grub-theme-manjaro
    grub-customizer
); yay -S --quiet --needed --asexplicit --noconfirm ${PACKAGES[*]}

Sublime Text + Merge

curl -O https://download.sublimetext.com/sublimehq-pub.gpg && \
sudo pacman-key --add sublimehq-pub.gpg && \
sudo pacman-key --lsign-key 8A8F901A && rm sublimehq-pub.gpg && \
echo -e "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/stable/x86_64" | sudo tee -a /etc/pacman.conf && \

yay -S sublime-text sublime-merge

Docker + Docksal:

Docker:

yay -S docker docker-compose && \
sudo usermod -aG docker $USER  && \
sudo systemctl enable docker && \
sudo systemctl restart docker && \
newgrp docker

Docksal:

bash <(curl -fsSL https://get.docksal.io)

Extend inotify

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

Terminal

.profile

INCLUDE_FILES=(
    "/usr/share/nvm/init-nvm.sh"
    "$HOME/.bashrc"
)
for INCLUDE_FILE in ${INCLUDE_FILES[@]}; do
  if [ -f "$INCLUDE_FILE" ]; then
    . "$INCLUDE_FILE"
  fi
done

PATH_DIRS=(
  "$HOME/bin"
  "$HOME/.local/bin"
  "$HOME/.config/composer/vendor/bin"
)
for PATH_DIR in ${PATH_DIRS[@]}; do
  if [ -d "$PATH_DIR" ]; then
    PATH="$PATH_DIR:$PATH"
  fi
done

.zshrc

export NVM_LAZY_LOAD=true

source ~/.profile
source /usr/share/zsh/share/antigen.zsh

antigen use oh-my-zsh
antigen bundle git
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-completions
antigen theme gentoo
antigen apply

NAS directory automount

mkdir -p /mnt/nas && \
MNT_LINE="192.168.1.123:/volume1/homes/admin /mnt/nas nfs rsize=8192,wsize=8192,timeo=14,_netdev 0 0"  && \
grep -qxF "$MNT_LINE" /etc/fstab || echo "$MNT_LINE" | sudo tee -a /etc/fstab && \
sudo mount -a

QT apps scaling fix

Add to ~/.profile following and restart

export QT_SCALE_FACTOR=1
export QT_AUTO_SCREEN_SCALE_FACTOR=0
export QT_SCREEN_SCALE_FACTORS=2

Evolution

Server outlook.office365.com
Username [email protected]
Password <app password>
Script https://outlook.office365.com/ews/exchange.asmx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment