Skip to content

Instantly share code, notes, and snippets.

@davidalger
Last active November 9, 2023 15:37
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save davidalger/9ced8f2291a4c785065b606d6cfcc459 to your computer and use it in GitHub Desktop.
Save davidalger/9ced8f2291a4c785065b606d6cfcc459 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 install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

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 procps-ng curl file git

## Install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/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)

Install SFTPGo

VER=$(curl -s https://api.github.com/repos/drakkan/sftpgo/releases/latest|grep tag_name | cut -d '"' -f 4 |sed 's/v//g')
wget https://github.com/drakkan/sftpgo/releases/download/v$VER/sftpgo-$VER-1.x86_64.rpm
sudo rpm -i sftpgo-$VER-1.*.rpm
sudo systemctl enable --now sftpgo
systemctl status sftpgo

https://computingforgeeks.com/setup-secure-ftp-server-sftp-with-webdav-using-sftpgo/

https://github.com/drakkan/sftpgo/blob/main/docs/howto/getting-started.md

Install 1Password (ARM)

curl -sSO https://downloads.1password.com/linux/tar/stable/aarch64/1password-latest.tar.gz
tar -xf 1password-latest.tar.gz
sudo mkdir -p /opt/1Password
sudo mv 1password-*/* /opt/1Password
sudo /opt/1Password/after-install.sh
1password 

If you use GNOME and the 1Password icon doesn’t appear in your system tray, install the AppIndicator shell extension

https://support.1password.com/install-linux/#other-distributions-or-arm-targz

Note that to use SSH Agent on Linux, you must first enable and unlock 1Password using System Authentication.

Legible Fonts on Hi-Res Screens

Console

  1. Install and configure font for current TTY

    sudo dnf terminus-fonts-console
    setfont ter-v28n
    
  2. Persist the console font setting by adding the following line to /etc/vconsole.conf

    FONT="ter-v28n"
    

Grub

sudo dnf install terminus-fonts-grub2
cp /usr/share/grub/ter-u28n.pf2 /boot/grub2/fonts/
echo 'GRUB_FONT="/boot/grub2/fonts/ter-u28n.pf2"' >> /etc/default/grub
grub2-mkconfig -o /boot/grub2/grub.cfg

Misc Foo

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