Skip to content

lionell/manjaro-guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Manjaro installation guide

Notes to reproduce my Manjaro setup.

screenshot

Preinstall

  1. Do a FULL BACKUP.
  2. Download Manjaro i3 community edition from here.
  3. Write .iso image to the USB drive. Here is how to do it from Linux:
    1. Find out the name of your USB drive with lsblk. If it's mounted run umount /where/it/is/mounted.
    2. Run the following command, replacing /dev/sdx with your drive, e.g. /dev/sdb/. (Do not apppend a partition number).
      sudo dd bs=4M if=/path/to/image.iso of=/dev/sdx status=progress && sync
    3. Wait for sync to complete before unplugging USB drive.

Install

  1. Select US-Colemak keyboard layout during installation.

  2. Partition table should look like this:

    size fs path
    500M FAT32 /boot/efi
    20G SWAP
    100G EXT4 /
    350G EXT4 /home

Setup

Update kernel

  1. List all available kernels mhwd-kernel -l

    ISSUE! If you see error: GPGME error: No data try running sudo pacman-key --init

  2. Look for latest stable kernel and run sudo mhwd-kernel -i linuxYY to install.

Find more information here.

Update pacman mirrors

  1. To generate mirrorlist run sudo pacman-mirrors -g
  2. Sync pacman local database with new mirrorlist by running sudo pacman -Syy

Find more information here

Upgrade your system

Run sudo pacman -Suy to upgrade all installed software.

Remap CTRL -> ALT -> WIN -> CTRL

  1. Open /usr/share/X11/xkb/symbols/pc for writing.
  2. Substitute include "altwin(alt_meta)" with include "altwin(ctrl_alt_win)"
  3. Open ~/.i3/config for writing.
  4. Change set $mod Mod4 to set $mod Mod1
  5. Restart the system sudo reboot

For more options see /usr/share/X11/xkb/symbols/ctrl and /usr/share/X11/xkb/symbols/altwin

Tune power usage

  1. Install TLP sudo pacman -S tlp
  2. Start TLP sudo tlp start
  3. Mask unnecessarry services.
    sudo systemctl mask systemd-rfkill.service
    sudo systemctl mask systemd-rfkill.socket
  4. Install ThinkPad specific kernel modules.
    sudo pacman -S linuxYY-tp_smapi
    sudo pacman -S linuxYY-acpi_call
  5. Install PowerTOP sudo pacman -S powertop
  6. Calibrate PowerTOP sudo powertop --calibrate
  7. Navigate to "Tunables" tab and fix all the remaining issues by pressing enter staying on it.

Find more information about TLP and PowerTOP.

Install Google Chrome

Run yaourt google-chrome and select stable chanel.

Setup git and generate new SSH keypair

  1. Run sudo pacman -S git to install.
  2. Generate new SSH keypair by running ssh-keygen -t rsa -b 4096 -C 'xlionell@gmail.com'
  3. Start SSH agent in background eval $(ssh-agent -s)
  4. Add key to SSH agent ssh-add ~/.ssh/id_rsa
  5. Install xclip sudo pacman -S xclip
  6. Copy public key to clipboard xclip -sel clip < ~/.ssh/id_rsa.pub
  7. Go to github.com/settings/keys and add new key.

Pull .dotfiles from GitHub

  1. Install Apache Stow sudo pacman -S stow
  2. Pull repo from GitHub git --recursive -j8 clone git@github.com:lionell/.dotfiles.git

Config terminal emulator

  1. Install Termite sudo pacman -S termite
  2. Install Adobe Source Code Pro font sudo pacman -S adobe-source-code-pro-fonts
  3. Use config from dotfiles stow termite

Configure program launcher

  1. Install Rofi sudo pacman -S rofi
  2. Use config from dotfiles stow xresources

Config git

Just run stow git

Setup i3

  1. Install Font Awesome yaourt ttf-font-awesome
  2. Install sysstat for cpu_usage script sudo pacman -S sysstat
  3. Install xbacklight for brightness control sudo pacman -S xorg-xbacklight
  4. Switch from Alsa Mixer to Pulse Audio by running premade script install_pulse
  5. Disable unnecessary services
    sudo systemctl disable alsa-state.service
    sudo systemctl disable alsa-restore.service
    
  6. Install i3blocks sudo pacman -S i3blocks
  7. Merge i3 configs. NOTE! This should be manual step as configs can differ from version to version.

Setup neovim

  1. Install neovim sudo pacman -S neovim
  2. Install python2 bindings for nvim sudo pacman -S python2-neovim
  3. To link vi to nvim run sudo ln -s /usr/bin/nvim /usr/bin/vi
  4. Open neovim and run :PlugInstall to install plugins from config.

Setup tmux

  1. Install tmux sudo pacman -S tmux
  2. Use config from dotfiles stow tmux

Config fish

  1. Install fish sudo pacman -S fish
  2. Change default shell to fish chsh -s $(which fish). You will need to login again to see changes.
  3. Install Oh-My-Fish curl -L https://get.oh-my.fish | fish
  4. Install pure theme omf install pure

Usefull plugins for fish

  1. Install z omf install z

Setup Yubikey support

  1. Go to https://github.com/Yubico/libu2f-host/blob/master/70-u2f.rules and place this file under /etc/udev/rules.d/
  2. Reboot

Remove redundant stuff

sudo pacman -R morc_menu

Setting up timezone

sudo cp /usr/share/zoneinfo/Europe/Kiev /etc/localtime

About

Manjaro setup steps

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published