Skip to content

Manjaro KDE based on Arch Linux

This is a short overview what I installed and configured on my new laptop.


I use a HP EliteBook 640G but will not go in detail about hardware settings. The following is based on my personal needs.

OS Installation

To install I had to disable UEFI and switch the BIOS into legacy mode. After that booting with a bootable USB stick (used unetbootin to create it) I could start the installation. I installed Manjaro KDE 20.2.

Sudo without password

Add a new file for user allowance:

$ sudo vi /etc/sudoers.d/50-user

Fix Audio

To enable audio I had to install the following packages:

$ sudo pacman -S  sof-firmware alsa-ucm-conf

Fix Brightness Keys

To make the fn brightness keys working use the vendor based drivers instead of the default ones.

Open the file /etc/default/grub and change the below line:

# hhange above line to:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

Now update the grub boot loader and reboot:

$ sudo update-grub
$ sudo shutdown -r now

Fix pkgfile

When I open my laptop, before loading the SDDM, the screen will say:

[FAILED] failed to start pkgfile database update

I checked there this is used:

$ pactree -r pkgfile

And then fixed it by initializing pkgfile/:

$ sudo pkgfile -u
:: Updating 4 repos...
warning: download failed: [error 403]
  download complete: multilib             [   262,5 KiB   297K/s  3 remaining]
  download complete: extra                [     9,4 MiB  2,60M/s  2 remaining]
  download complete: core                 [  1578,9 KiB   361K/s  1 remaining]
  download complete: community            [    29,1 MiB  1910K/s  0 remaining]
:: download complete in 15,59s            <    40,3 MiB  2,58M/s  4 files    >
:: waiting for 1 process to finish repacking repos...

Software Installation

I added the following applications, which I installed with the pamac-manager (graphical installation):

  • LibreOffice
  • Gimp
  • peek
  • Terminator
  • KeePassXC
  • Calibre
  • curlftpfs
  • vim
  • openssh
  • npm
  • jq
  • postgresql
  • vsftpd
  • bind (host, nslookup, dig)
  • FileZilla
  • DBeaver

And then I enabled AUR (settings within the pamac) to install from user repositories:

  • vi-vim-symlink
  • google-chrome
  • visual-studio-code-bin
  • yed
  • mongodb-bin
  • mongodb-tools-bin
  • mongodb-compass

I also removed things I dont'use:

  • thunderbird


The pacman package manager combines a simple binary package format with an easy-to-use build system. The goal of pacman is to make it possible to easily manage packages, whether they are from the official repositories or the user's own builds.

Pacman keeps the system up to date by synchronizing package lists with the master server. This server/client model also allows the user to download/install packages with a simple command, complete with all required dependencies.

A package is an archive containing:

  • all of the (compiled) files of an application
  • metadata about the application, such as application name, version, dependencies, ...
  • installation files and directives for pacman
  • (optionally) extra files to make your life easier, such as a start/stop script

Usage: pacman <command> <package> [<package>...]

Install commands

# Update package list
sudo pacman -Sy
# Update package list (refresh also if up to date)
sudo pacman -Syy

# Update package list and update all
sudo pacman -Syu
# Update package list and update/install
sudo pacman -Syu <package>

# Remove package
sudo pacman -Rsc <package>


# List explictly-installed packages
pacman -Qe 
# List all installed packages   
pacman -Qqe
# List installed AUR packages
pacman -Qqm

# List packages which can be upgraded
# Search for packages
pacman -Ss <keywords>

# What files does this package have?
pacman -Ql <package>    
# List information on package
pacman -Qii <package>   

# Who owns this file?
pacman -Qo <file>   
# Search installed packages for keywords
pacman -Qs <keyword>    


# List orphaned packages which may be removed
pacman -Qtd
# Uninstall unneeded packages
sudo pacman -Rns $(pacman -Qdtq)    


# What does pkg depend on?
pactree <package>   
# What depends on package?
pactree -r <package>    

Find more commands under pacman/Tips and tricks.


To install packages from the AUR you have to build the package first. There are different tools which will do this for you. One of it is yay.

Install it using:

$ git clone
$ cd yay-git
$ makepkg -si

And then use it like pacman:

$ yay -S yed



Problem: When I mark a text with the mouse, it’s automatically copied to the clipboard. But you want to use different copy/paste clipboard and select/middle click.

Solution: You can configure this. Open the settings from the "Clipboard" application (maybe added to the desktop first) and set General > Selection and Clipboard > Ignore selection.


set mouse=v
syntax on

Bash completion

Tab completion was not running correctly if using sudo.

# The following has to be deactivated to be replaced with a better function below
#complete -cf sudo

# completion.bash
_vault_complete() {
    local word="${COMP_WORDS[COMP_CWORD]}"
    local completions="$(vault --cmplt "$word")"
    COMPREPLY=( $(compgen -W "$completions" -- "$word") )
complete -f -F _vault_complete vault

export PATH=$PATH:/home/alex/bin

This will complete all your commands with infinite possibilities. See the description of James Coglan.

I also added the binaries under my homedir.


I copied my ssh keys (folder .ssh) from my previous server directly.

Further to not get a disconnect on long running sessions without data change set a keep alive ping in /etc/ssh_config:

ServerAliveInterval 120


I had to setup login first with user name and email.

Code Plugins:

See description under Code for detailed description of:


Under settings enable Firefox Sync if used to get the same plugins and bookmarks on all your devices.


As described under KeePass I had to mount the ftp shares containing my private and work KeePass databases.

  • /mnt/ftp-fritzbox
  • /mnt/ftp-itbetrieb


Some middleware is not needed everyday so I disable it generally:

$ sudo systemctl disable mongo.service

And start it then needed (I made a script for it to start all such development/test services):

$ sudo systemctl start sshd.service
$ sudo systemctl start mongo.service