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.

Revisions

  1. @davidalger davidalger revised this gist Mar 10, 2020. 1 changed file with 6 additions and 3 deletions.
    9 changes: 6 additions & 3 deletions fedora-setup.md
    Original file line number Diff line number Diff line change
    @@ -8,13 +8,16 @@ Ref: https://docs.docker.com/install/linux/docker-ce/fedora/
    --add-repo \
    https://download.docker.com/linux/fedora/docker-ce.repo

    sudo dnf install docker-ce docker-ce-cli containerd.io
    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 start docker
    sudo systemctl enable docker
    sudo systemctl enable --now docker

    docker run hello-world

  2. @davidalger davidalger revised this gist Jun 7, 2019. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions fedora-setup.md
    Original file line number Diff line number Diff line change
    @@ -41,3 +41,8 @@ Ref: https://docs.brew.sh/Homebrew-on-Linux

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


    ## Misc Foo

    * Running in VMWare Fusion, we must set QoS flags for SSH to work right:
    https://superuser.com/questions/1371506/from-vmware-and-fedora-29-ssh-to-remote-machine-cause-broken-pipe
  3. @davidalger davidalger revised this gist Jun 3, 2019. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions fedora-setup.md
    Original file line number Diff line number Diff line change
    @@ -38,3 +38,6 @@ Ref: https://docs.brew.sh/Homebrew-on-Linux
    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)

  4. @davidalger davidalger created this gist Jun 3, 2019.
    40 changes: 40 additions & 0 deletions fedora-setup.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,40 @@
    ## 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 install docker-ce docker-ce-cli containerd.io

    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 start docker
    sudo systemctl enable 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