Setting up Manjaro Linux | ahampriyanshu

Table of Contents

Basic Setup

sudo pacman -Syu

sudo pacman -S --needed base-devel git vim noto-fonts-emoji python-pip

Gnome

Change the scaling factor, if using small screen with small pixel resolution. {: .prompt-tip }

sudo pacman -S gnome-tweaks

To enable Media Transfer Protocol (This may help if you have trouble connecting your Android device) {: .prompt-tip }

sudo pacman -S gvfs-mtp

Enable gnome-extensions and install

To prevent grouping of chrome/vscode/xyz windows together {: .prompt-tip }

KDE

Installing yay

git clone https://aur.archlinux.org/yay-git.git

cd yay-git

makepkg -sri

Installing snap

sudo pacman -S snapd

sudo systemctl enable --now snapd.socket

sudo systemctl start --now snapd.socket

sudo ln -s /var/lib/snapd/snap /snap

Installing node

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

nvm install node

npm i -g yarn nodemon

To use legacy versions of node

nvm install v1X.XX.X
nvm use v1X.XX.X
nvm default alias v1X.XX.X

Installing mongodb

yay -S mongodb-bin

sudo systemctl enable mongodb

sudo systemctl start mongodb

Installing postgres

sudo pacman -S postgresql

initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data/'

sudo systemctl enable postgresql

sudo systemctl start postgresql

Installing docker

sudo pacman -S docker

sudo systemctl enable docker

sudo systemctl start docker

sudo usermod -aG docker $USER

docker login

Configuring git

ssh-keygen -t ed25519 -C "ahampriyanshu@gmail.com"

eval "$(ssh-agent -s)"

ssh-add ~/.ssh/id_ed25519

cat ~/.ssh/id_ed25519.pub

Add the new shh key

git config --global user.name "ahampriyanshu"

git config --global user.email "ahampriyanshu@gmail.com"

Switching to zsh

sudo pacman -S zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

chsh -s `which zsh`

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10k

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf && ~/.fzf/install

Add these to plugins list in ~/.zshrc:

plugins=(git zsh-autosuggestions zsh-syntax-highlighting pip colorize)

Utilities

sudo pacman -S vlc qbittorrent

yay -S google-chrome visual-studio-code-bin telegram-desktop slack-desktop

npm i -g nodemon

pip3 install youtube-dl orange3