Skip to content

Instantly share code, notes, and snippets.

@khiemdoan
Last active March 3, 2023 09:54
Show Gist options
  • Save khiemdoan/8e476fa5342708b785381033f0bd92cd to your computer and use it in GitHub Desktop.
Save khiemdoan/8e476fa5342708b785381033f0bd92cd to your computer and use it in GitHub Desktop.

Fedora Setup

Update packages

sudo dnf update

Install Gnome extensions

sudo dnf install gnome-extensions-app

Install snap

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

Zsh

sudo dnf install zsh

Docker

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 docker-buildx-plugin docker-compose-plugin
sudo systemctl enable docker
sudo usermod -a -G docker $USER

Add cron: sudo crontab -e

@daily docker system prune --all --force
@reboot docker system prune --all --force

Edit /etc/docker/daemon.json

{
  "log-driver": "json-file",
  "log-opts": {
    "max-size": "10m",
    "max-file": "3"
  }
}

Exa - A modern replacement for ls

sudo dnf install exa

Neovim - hyperextensible Vim-based text editor

sudo dnf install neovim

Visual Studio Code

sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
dnf check-update
sudo dnf install code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment