This customization aims to become my Linux environment more elegant and more productive. Includes the most important DevOps tools.
sudo dnf install -y https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install -y gcc gcc-c++ make automake autoconf \
vim-enhanced dnf-utils util-linux-user util-linux xclip \
zsh whois nmap python3-pip python3-virtualenv tilix vlc \
gnome-tweaks gnome-shell-extension-common gnome-shell-extension-dash-to-dock gnome-extensions-app
ZSH Environment: Installing ZSH
+ oh-my-zsh
+ Powerlevel10k
chsh -s SHELL USERNAME
sudo chsh -s /usr/bin/zsh $USERNAME
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- Install
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
- Setting
powerlevel10k
- Replace the ZSH_THEME in .zshrc:
vim ~/.zshrc
ZSH_THEME="powerlevel10k/powerlevel10k"
:wq
source ~/.zshrc
- Customize according to preferences.
- Download/enable
zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
- Download/enable
zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
- Add plugins to ZSH Environment
vim ~/.zshrc
plugins=(git
zsh-autosuggestions
zsh-syntax-highlighting)
- Reopen terminal
- Option 01 (dnf repository):
sudo dnf -y install gnome-tweaks gnome-shell-extension-common gnome-shell-extension-dash-to-dock
- Alternative Option 02 (by compilation):
dnf install gcc gcc-c++ automake autoconf
dnf install sassc
git clone https://github.com/frantisekz/dash-to-dock.git
cd dash-to-dock
git switch fzatlouk/gnome-41
make
make install
- Applications Menu
- User Themes
- Launch new instance
- Places Status Indicator
- Frippery Move Clock
- Coverflow Alt-Tab
- Dash2Dock Animated
- Screenshot Tool
- Compiz alike magic lamp effect
- Net speed Simplified
- Logo Menu
- Quick Setting Tweaker
- Blur my Shell
- Gnome 4x UI Improvements
sudo rpm --import https://rpm.opera.com/rpmrepo.key
/etc/yum.repos.d/opera.repo
[opera]
name=Opera packages
type=rpm-md
baseurl=https://rpm.opera.com/rpm
gpgcheck=1
gpgkey=https://rpm.opera.com/rpmrepo.key
enabled=1
sudo dnf -y install opera-stable
sudo dnf -y install dnf-plugins-core && \
sudo dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/x86_64/ && \
sudo rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc && \
sudo dnf -y install brave-browser
sudo dnf config-manager --add-repo https://repo.vivaldi.com/archive/vivaldi-fedora.repo && \
sudo dnf -y install vivaldi-stable
sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg && \
sudo dnf config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo && \
sudo dnf install -y sublime-text
- Package Control
- Open the command palette:
ctrl+shift+p
Type 'Install Package Control', pressenter
- Open the command palette:
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' && \
sudo dnf check-update && \
sudo dnf install -y code
- Add the Docker CE repository to Fedora
sudo dnf -y install dnf-plugins-core
sudo tee /etc/yum.repos.d/docker-ce.repo<<EOF
[docker-ce-stable]
name=Docker CE Stable - \$basearch
baseurl=https://download.docker.com/linux/fedora/37/\$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://download.docker.com/linux/fedora/gpg
EOF
- Install Docker CE
sudo dnf makecache && \
sudo dnf install -y docker-ce docker-ce-cli containerd.io
- User permission on Docker
sudo usermod -aG docker $(whoami) && \
newgrp docker
- Start/Enable Docker Daemon
sudo systemctl enable --now docker
curl -sfL https://get.k3s.io | sh - && \
sudo k3s kubectl get nodes
cp -piv /etc/rancher/k3s/k3s.yaml /home/ext.alex.barbosa/.kube/config
curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash
sudo dnf config-manager --add-repo https://rpm.releases.hashicorp.com/fedora/hashicorp.repo && \
sudo dnf install -y terraform
sudo dnf install -y dnf-plugins-core && \
sudo dnf config-manager --add-repo https://rpm.releases.hashicorp.com/fedora/hashicorp.repo && \
sudo dnf -y install packer
sudo dnf install -y dnf-plugins-core && \
sudo dnf config-manager --add-repo https://rpm.releases.hashicorp.com/fedora/hashicorp.repo && \
sudo dnf -y install vagrant
sudo dnf install -y ansible
mkdir /tmp/apps && cd /tmp/apps && \
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
sudo ./aws/install
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo echo -e "[azure-cli]
name=Azure CLI
baseurl=https://packages.microsoft.com/yumrepos/azure-cli
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc" | sudo tee /etc/yum.repos.d/azure-cli.repo
sudo dnf install azure-cli
dnf install https://download.postgresql.org/pub/repos/yum/reporpms/F-35-x86_64/pgdg-fedora-repo-latest.noarch.rpm
dnf -y install https://dev.mysql.com/get/mysql80-community-release-fc35-1.noarch.rpm
dnf install community-mysql
sudo dnf copr enable copart/dbeaver && \
sudo dnf install dbeaver-ce
- To install the Go tools, type on a terminal:
sudo dnf install golang
The go and gofmt binaries will become available on the system.
- Go code lives in a workspace which is defined by the GOPATH environment variable. A common choice among developers, and the default value of GOPATH starting from the Go 1.8 release, is to use $HOME/go:
mkdir -p $HOME/go && \
echo 'export GOPATH=$HOME/go' >> $HOME/.zshrc && \
source $HOME/.zshrc
- Check that GOPATH is set correctly with this command:
go env GOPATH
/home/$USER/go
Where ‘$USER’ will be your user name.