Authored by Hermann Mayer

Fedora Setup

Change Wayland to X11

Problem: Chrome screen share shows black screen. Solution:

$ sudo vi /etc/gdm/custom.conf

# Add:

Install Google Chrome

Install Vim

$ sudo dnf install vim

Passwordless Sudo

$ sudo su
$ sudo bash -c "echo '${USER} ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/${USER}"


$ sudo dnf -y install dnf-plugins-core
$ sudo dnf config-manager --add-repo
$ sudo dnf install docker-ce docker-ce-cli
$ sudo systemctl enable --now docker.service
$ sudo usermod -aG docker $USER

Afterwards logout of the session (GUI), and re-login. Then try:

$ docker info

And don't see permission issues.

Docker Compose

$ sudo curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose

mDNS Stack

$ sudo dnf install nss-mdns avahi avahi-tools
$ sudo systemctl enable --now avahi-daemon.service
$ sudo vim /etc/nsswitch.conf

# Change the hosts line to this pattern:
# hosts: ... mdns4 [NOTFOUND=return] resolve [!UNAVAIL=return] dns ...

$ sudo vim /etc/mdns.allow

# Add the following contents:


Install Ruby 2.7 / Nodejs 14

Terminal emulator settings for a login shell:

$ sudo dnf module install nodejs:14/development

$ sudo dnf module install ruby:2.7/default
$ sudo dnf groupinstall "Development Tools" "Development Libraries"
$ sudo dnf install ruby-devel libffi-devel gcc-c++ libpq-devel

$ curl -sSL | gpg2 --import -
$ curl -sSL | gpg2 --import -
$ curl -sSL | bash -s stable
$ rvm install 2.5
$ rvm use 2.5 --default
$ gem install bundler


$ sudo dnf install snapd
$ sudo ln -s /var/lib/snapd/snap /snap

Hamster, Time Tracking

$ sudo snap install hamster-snap

Git Config

$ vim ~/.gitconfig

    name  = Ann-Kristin Drumm
    email =

    diff   = auto
    status = auto
    branch = auto

    pretty = "%nCommit:  %C(bold white)%H%nRefs:   %C(cyan bold)%d%nDate:    (%C(red)%ar%Creset) %ai%nAuthor:  %C(yellow)%aN <%aE>%nSubject: %C(green)%B"
    signOff = true

    decorate = full

    attributesfile = /home/jack/.gitattributes
    autocrlf = input

    autosetuprebase = always

    default = current
    followTags = true

    st = status
    ci = commit -S -s
    br = branch
    co = checkout
    df = diff
    dc = diff --cached
    tags = !sh -c 'git tag | sort -V'
    a = add -A .
    s = status
    c = checkout
    cm = checkout master
    p = pull
    f = fetch
    b = branch -va
    l = log
    ll = "!sh -c 'git --no-pager log -3 --reverse'"
    d = diff
    weg = push -u
    ab = "!sh -c 'git a; git ci -am \"one of many\"; git weg'"
    steil = "!sh -c 'git a; git ci -am \"one of many [ci skip]\"; git weg'"
    rco = "!git reset $1 && git checkout $1"
    dh = diff HEAD~

Generate SSH Keys

$ ssh-keygen # press always enter, no inputs, just enter
$ cat ~/.ssh/

Add the terminal output here as new key:

Project Setup

$ mkdir -p ~/projects
$ cd ~/projects
$ git clone
$ cd env
$ make clone

Visual Studio Code

ZSH as default shell (optional)

$ sudo dnf install zsh wget curl
$ sudo bash -c "usermod -s $(which zsh) ${USER}"

# Open a new terminal
$ chsh -s $(which zsh)
$ zsh
# press (0) and (enter)
$ zsh

$ sh -c "$(curl -fsSL"

See for configuration details on oh-my-zsh.

Some common shell aliases

Open ~/.bashrc or ~/.zshrc (decide which you use) and add the following lines at the end of the file:

alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ls='ls $COLOR_OPTIONS --group-directories-first --time-style="+%F, %T "'
alias ll='ls $COLOR_OPTIONS -lh'
alias l='ls $COLOR_OPTIONS -lAh'
alias grep='grep $COLOR_OPTIONS'
alias egrep='egrep $COLOR_OPTIONS'
alias g='git'
alias p='pwd'
alias mkdir='mkdir -p -v'
alias less='less -R'

alias mpchat="make -C ~/projects/env start-identity-api start-jabber start-asset-api start-preferences start-maklerportal-api start-property-api start-calendar-api && make -C ~/projects/env/projects/maklerportal-frontend start"
alias mp="make -C ~/projects/env start-message-bus start-analytic-api start-identity-api start-asset-api start-preferences start-maklerportal-api start-property-api start-calendar-api && make -C ~/projects/env/projects/maklerportal-frontend start"
alias vpmp="make -C ~/projects/env start-message-bus start-analytic-api start-identity-api start-jabber start-asset-api start-preferences start-calendar-api start-property-api start-maklerportal-api start-verkaeuferportal-api start-maklerportal-frontend"
alias lf="make -C ~/projects/env start-message-bus start-identity-api start-preferences start-leads-api start-payment-api start-gateway && make -C ~/projects/env/projects/leads-frontend start"
4 Bytes
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment