Skip to content

Instantly share code, notes, and snippets.

@mdheller
Forked from davidalger/fedora-setup.md
Created May 24, 2022 03:25
Show Gist options
  • Select an option

  • Save mdheller/be6bc9e6f8ef038fd145999e8bce46c0 to your computer and use it in GitHub Desktop.

Select an option

Save mdheller/be6bc9e6f8ef038fd145999e8bce46c0 to your computer and use it in GitHub Desktop.

Install Docker on Fedora

Ref: https://docs.docker.com/install/linux/docker-ce/fedora/

sudo dnf -y install dnf-plugins-core

sudo dnf config-manager \
  --add-repo \
  https://download.docker.com/linux/fedora/docker-ce.repo

sudo dnf -y install docker-ce docker-ce-cli containerd.io

## Cgroups Exception For Fedora 31 (https://fedoraproject.org/wiki/Common_F31_bugs#Other_software_issues)
sudo dnf -y install grubby
sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"

sudo usermod -aG docker "$(logname)"
sudo shutdown -r now  # Reboot is required to gain group privileges when in a VM (logout/login otherwise)

sudo systemctl enable --now docker

docker run hello-world

Install brew.sh on Fedora

Ref: https://docs.brew.sh/Homebrew-on-Linux

## Install dependencies for homebrew
sudo dnf group -y install 'Development Tools'
sudo dnf -y install curl file git
sudo dnf -y install libxcrypt-compat # needed by Fedora 30 and up

## Install homebrew
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"

## Add homebrew to $PATH and ~/.bash_profile
test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)
test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile
echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile

## Logout/login for changes to ~/.profile to take effect

## Run "brew doctor" and addressing any issues it highlights (in my case, a few missing directories)

Misc Foo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment