Skip to content

Instantly share code, notes, and snippets.

@rbudiharso
Created December 4, 2020 02:43
Show Gist options
  • Save rbudiharso/f686a38fee285e7ab6eae503d1905e5e to your computer and use it in GitHub Desktop.
Save rbudiharso/f686a38fee285e7ab6eae503d1905e5e to your computer and use it in GitHub Desktop.
Fedora setup
#!/bin/sh
set -x
# Manual
# download dotfiles from gdrive and put them in homedir except config
# Automatic
chmod 600 $HOME/.kube/config
chmod -R 400 $HOME/.ssh/*
mkdir -p $HOME/.local/bin
mkdir -p $HOME/.local/share/applications
# sudo dnf update -y
sudo dnf install -y zsh stow fzf tmux vifm kitty sway swaylock swayidle bat wofi grim slurp waybar libnsl wl-clipboard xclip awscli gammastep mako curl git util-linux-user neofetch
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.8.0
source $HOME/.asdf/asdf.sh
for name in neovim starship kubectl helm k9s; do asdf plugin-add $name; done
asdf install helm 3.4.1 && asdf global helm 3.4.1
asdf install neovim 0.4.4 && asdf global neovim 0.4.4
asdf install starship 0.47.0 && asdf global starship 0.47.0
asdf install kubectl 1.19.4 && asdf global kubectl 1.19.4
asdf install k9s 0.24.1 && asdf global k9s 0.24.1
git clone https://github.com/rbudiharso/dotfiles.git $HOME/.dotfiles && cd $HOME/.dotfiles
ln -s $HOME/.dotfiles/zsh/.config/zsh/.zshenv $HOME/.zshenv
stow nvim zsh tmux vifm starship sway kitty mako swaylock swaynag waybar wofi wlogout
git clone https://github.com/k-takata/minpac.git ~/.config/nvim/pack/minpac/opt/minpac
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
chsh -s $(which zsh)
pip install awscli awsebcli
mkdir -p $HOME/.config/zsh/.zim
curl -Lso $HOME/.config/zsh/.zim/zimfw.zsh https://github.com/zimfw/zimfw/releases/latest/download/zimfw.zsh
zsh ~/.config/zsh/.zim/zimfw.zsh install
nvim +Pu +qall
cd $HOME/Downloads
# Slack
# curl -Lso slack.rpm https://downloads.slack-edge.com/linux_releases/slack-4.11.3-0.1.fc21.x86_64.rpm
# sudo dnf install -y slack.rpm
# Telegram
# curl -Lo telegram.desktop.tar.xz https://telegram.org/dl/desktop/linux
# tar -xf telegram.desktop.tar.xz
# mv Telegram/Telegram $HOME/.local/bin/Telegram
# chmod +x $HOME/.local/bin/Telegram
cat > $HOME/.local/share/applications/Telegram.desktop <<END
[Desktop Entry]
Version=1.0
Name=Telegram Desktop
Comment=Official desktop version of Telegram messaging app
TryExec=/home/rbudiharso/.local/bin/Telegram/Telegram
Exec=/home/rbudiharso/.local/bin/Telegram/Telegram -workdir /home/rbudiharso/.local/share/TelegramDesktop/ -- %u
Icon=telegram
Terminal=false
StartupWMClass=TelegramDesktop
Type=Application
Categories=Chat;Network;InstantMessaging;Qt;
MimeType=x-scheme-handler/tg;
Keywords=tg;chat;im;messaging;messenger;sms;tdesktop;
X-GNOME-UsesNotifications=true
END
# Lens
# curl -Lo $HOME/.local/bin/Lens.AppImage https://github.com/lensapp/lens/releases/download/v3.6.9/Lens-3.6.9.AppImage
# chmod +x $HOME/.local/bin/Lens.AppImage
cat > $HOME/.local/share/applications/Lens.desktop <<END
[Desktop Entry]
Version=1.0
Name=Lens Kubernetes Dashboard
TryExec=/home/rbudiharso/.local/bin/Lens.AppImage
Exec=/home/rbudiharso/.local/bin/Lens.AppImage
Icon=Lens
Terminal=false
StartupWMClass=LensDashboard
Type=Application
END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment