Over the previous years, I had to install Manjaro a couple of times and to ease the process for the next time, I began to document more and more the command I typed. You will find below the procedure that I will try to follow the next time I want to install this distribution. 🤓
Warning: this procedure may be incomplete or may be not working on your setup. Follow it cautiously. 🚸
Create a bootable USB
- Download the distribution on the official website, such as the XFCE edition
- Insert a USB key into your computer
- Open a terminal
- Make yourself a superuser with
sudo su - Take note of the path of the inserted USB key with
fdisk -l - Burn the ISO on the USB key with
dd bs=4M if=/home/ranb2002/Downloads/manjaro-xfce-21.1.6-minimal-211017-linux513.iso of=/dev/sda status=progress - Remove the USB key
BIOS configuration
Depending on your computer, you may need to activate the UEFI mode to be able to boot from your USB key:
- Insert your USB key and restart the computer
- Repeatedly press on
ESCon your keyboard to enter the BIOS when your computer is booting - Activate the UEFI
- Boot from the USB key
Installation
Just follow the instructions on your screen! 😉
Install applications
Some applications may exist only on the AUR repository. If it is not already activated, you can look at this tutorial to activate it with Package Manager.
#######################################
# (su) Multiple applications from AUR #
#######################################
# Switch to the super user
sudo su
# Make sure all installed applications are up to date
pacman -Syyu
pacman -S --needed base-devel
# Install vim
pacman -S vim
# Install Zoom
# https://zoom.us/download?os=linux (Arch 64 bits - zoom_amd64.deb)
sudo pacman -U zoom_x86_64.pkg.tar.xz
# pacman -Rs pdfsam
# Enable color in Pacman by uncommenting "Color" under "Misc options"
vim /etc/pacman.conf
exit
# Install paru as an AUR helper
git clone https://aur.archlinux.org/paru.git
cd paru
makepkg -si
cd ..
rm -rf paru
# Switch to the super user
sudo su
# Install applications with paru
# Search a package with paru: paru PACKAGE_NAME
paru -S noto-fonts-emoji --noconfirm
paru -S dnsutils --noconfirm
paru -S docker --noconfirm
paru -S nvm --noconfirm
paru -S sshfs --noconfirm
paru -S system-config-printer --noconfirm
exit
paru -S dockbarx --noconfirm
paru -S firefox --noconfirm
paru -S thunderbird --noconfirm
paru -S libreoffice --noconfirm
paru -S google-chrome --noconfirm
paru -S jetbrains-toolbox --noconfirm
paru -S xfce4-dockbarx-plugin --noconfirm
paru -S inkscape --noconfirm
paru -S plex --noconfirm
paru -S notepadqq --noconfirm
# TODO Document commands used to install clamav
# with Synaptic (clamtk and clamtk-nautilus)
# paru -S teams --noconfirm
# paru -S vmware-horizon-client --noconfirm
# paru -S vmware-keymaps --noconfirm
# paru -S google-chrome-beta --noconfirm
# paru -S google-chrome-dev --noconfirm
# paru -S firefox-beta-bin --noconfirm
paru -S firefox-nightly --noconfirm
# paru -S jdk11-openjdk --noconfirm
# Remove cache
paru -Sc
#######################################
# Node.js #
#######################################
# Finish the setup of NVM
echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.bashrc
exec $SHELL
# Install the latest version of NVM
nvm install 20.9.0
#######################################
# (su) Misc #
#######################################
# Switch to the super user
sudo su
# Disable Linux PC speaker beep permanently
echo "blacklist pcspkr" | tee /etc/modprobe.d/nobeep.conf
# Set ntp so that the clock is set to the correct time
timedatectl set-ntp true
#######################################
# (su) Docker #
#######################################
# Start Docker now
systemctl start docker
# Start Docker when starting the computer
systemctl enable docker
# Show the version of Docker (ex. Docker version 20.10.9, build c2ea9bc90b)
docker --version
# Add your user ID to the docker group to be able to manage it as non-root
usermod -a -G docker benran
#######################################
# (su) Restart #
#######################################
# Restart the computer
shutdown --reboot
Generate SSH keys
# Generate SSH keys with ssh-keygen
ssh-keygen -t ed25519 -C "ranb2002-laptop"
ssh-keygen -t rsa -b 4096 -C "ranb2002-laptop"
# See the generated keys
cat ~/.ssh/id_ed25519.pub
cat ~/.ssh/id_rsa.pub
Git
# Set your identity
git config --global user.name "Benjamin Rancourt"
git config --global user.email benjamin.rancourt@email.com
# Set Vim as default editor for Git
git config --global core.editor vim
# Set some useful aliases (https://git-scm.com/book/tr/v2/Git-Basics-Git-Aliases)
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
# https://www.stefanjudis.com/snippets/a-git-alias-to-show-a-detailed-git-branch-overview/
git config --global alias.zup "for-each-ref --sort='authordate:iso8601' --format='%(color:green)%(authordate:relative)%09%(color:white)%(refname:short) / %(contents:subject)' refs/heads"
## Unstage a file (git unstage fileA)
git config --global alias.unstage 'reset HEAD --'
## See the last commit easily (git last)
git config --global alias.last 'log -1 HEAD'
## Set the push default config to simple
git config --global push.default simple
# Confirm your settings
git config --global --list
## Add Git completion
cd ~ && wget https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
echo "source ~/git-completion.bash" >> ~/.bashrc
## Add Git branch name to bash prompt
# Follow instructions on https://coderwall.com/p/fasnya/add-git-branch-name-to-bash-prompt
# TODO To document correctly
git config --global commit.gpgsign true
Upgrade
If you want to update applications and dependencies on your computer:
sudo pacman -Syu
sudo pacman --sync --refresh --sysupgrade
Hopes it could also help you if you want this distribution! 😇






