Skip to content

Instantly share code, notes, and snippets.

@takitani
Last active April 30, 2024 02:38
Show Gist options
  • Save takitani/dc9741b9af0d8decaefd60f720c9761d to your computer and use it in GitHub Desktop.
Save takitani/dc9741b9af0d8decaefd60f720c9761d to your computer and use it in GitHub Desktop.
Os Setup - Fedora
# Version: 39
# Muda hostname
hostnamectl set-hostname opikdev
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install google-chrome-stable dropbox obs-studio vlc -y
# Depois de logar no dropbox, quitar e:
sudo rm -rf Dropbox
ln -s /mnt/storage/Dropbox ~/Dropbox
flatpak install flathub com.authy.Authy
# Troca shortcut:
Contrl + alt + T = gnome-terminal
Contrl + E = nautilus
# Repeat rate - ou ir em universal access e mudar na munheca
gsettings set org.gnome.desktop.peripherals.keyboard repeat-interval 30
gsettings set org.gnome.desktop.peripherals.keyboard delay 250
sudo reboot
sudo dnf update
sudo dnf upgrade
sudo dnf install -y curl zsh git vim cmake neofetch autokey-gtk copyq imwheel gnome-tweaks
# Zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Se nao mudar automaticamente o shell
sudo usermod -s $(which zsh) opik
# Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)
# Download zsh-autosuggestions by
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
# Download zsh-syntax-highlighting by
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
wget https://github.com/meetfranz/franz/releases/download/v5.10.0/Franz-5.10.0.AppImage
sudo chmod a+x Franz-5.10.0.AppImage
./Franz-5.10.0.AppImage
sudo rm -rf Franz-5.10.0.AppImage
# Copiar por cima zshrc, zsh_history, .ssh, .pgpass, .gitconfig, .pem para home
# Rodar manualmente uma vez o mousewhell.sh no home
criar o arquivo em ~/.config/autostart/imwheel.desktop
sudo touch ~/.config/autostart/imwheel.desktop
[Desktop Entry]
Type=Application
Exec=imwheel --kill --buttons "45"
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_US]=mousewhell
Name=mousewhell
Comment[en_US]=
Comment=
# Vmware
sudo dnf install -y kernel-devel-$(uname -r) kernel-headers
boot
wget https://www.vmware.com/go/getworkstation-linux -O vmware.bundle --user-agent="Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"
sudo chmod a+x vmware.bundle
sudo ./vmware.bundle --console --required --eulas-agreed --set-setting vmware-workstation
sudo nano ~/.vmware/preferences
mks.gl.allowBlacklistedDrivers = TRUE
# Arrumando zica após kernel update
wget https://github.com/mkubecek/vmware-host-modules/archive/workstation-x.y.z.tar.gz
tar -xzf workstation-x.y.z.tar.gz
cd vmware-host-modules-workstation-x.y.z
make
sudo make install
sudo systemctl restart vmware.service
sudo dnf makecache --refresh
sudo dnf -y install imwheel
sudo dnf install borgbackup
$ sudo dnf copr enable luminoso/vorta
$ sudo dnf install vorta
Franz
flatpak install --user https://flathub.org/repo/appstream/com.meetfranz.Franz.flatpakref
# Postman
flatpak install flathub com.getpostman.Postman
sudo dnf install remmina
# Cedilha (teclado us-intl)
https://github.com/marcopaganini/gnome-cedilla-fix
# https://www.vivaolinux.com.br/dica/Cedilha-c-nao-funciona-no-Debian-10-Buster
sudo nano /etc/environment
GTK_IM_MODULE=cedilla
QT_IM_MODULE=cedilla
# Amd GPU
sudo dfn install ./amdgpu-install-VERSION.rpm
# Postman - usar flatpak
# sudo dnf install snapd
# sudo ln -s /var/lib/snapd/snap /snap
# sudo snap install postman
# net intelligence
sudo dnf install tesseract-devel leptonica-devel
sudo dnf install dotnet-sdk-5.0
sudo dnf install dotnet-sdk-6.0
postgre
bctb git:(master) ✗ pg_config | grep VERSION
➜ bctb git:(master) ✗ pg_config | grep VERSION
zsh: pg_config: command not found...
Packages providing this file are:
'postgresql-private-devel'
'libpq-devel'
'libpq5-devel'
sudo yum install libpq5-devel
# vs code
https://pt.linuxcapable.com/how-to-install-visual-studio-code-vs-code-on-fedora-34-35/
# Remove old kernels (mantem 2 ultimos)
sudo dnf remove $(dnf repoquery --installonly --latest-limit=-2 -q)
# Mitm proxy
# Move the PEM cert and update the CA trust
sudo mv xxxxx.pem /etc/pki/ca-trust/source/anchors/
sudo update-ca-trust
# Se o bluetooth nao funfar:
$ sudo systemctl enable bluetooth.service
$ sudo systemctl start bluetooth.service
$ systemctl status bluetooth.service
sudo chmod u+s /bin/mount
sudo chmod u+s /bin/umount
sudo chmod u+s /usr/sbin/mount.cifs
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.11.3
rm -rf /home/opik/.ssh || true
ln -s /home/opik/Dropbox/linux/.ssh /home/opik/.ssh
chmod 400 ~/.ssh/id_rsa
eval $(ssh-agent)
ssh-add
rm -rf /home/opik/.bashrc || true ;
rm -rf /home/opik/.bash_history || true ;
rm -rf /home/opik/.zshrc || true ;
rm -rf /home/opik/.zsh_history || true ;
ln -s /home/opik/Dropbox/linux/home/.bashrc /home/opik/.bashrc ;
ln -s /home/opik/Dropbox/linux/home/.bash_history /home/opik/.bash_history ;
ln -s /home/opik/Dropbox/linux/home/.zshrc /home/opik/.zshrc ;
ln -s /home/opik/Dropbox/linux/home/.zsh_history /home/opik/.zsh_history ;
rm -rf /home/opik/.gitconfig || true ;
ln -s /home/opik/Dropbox/linux/home/.gitconfig /home/opik/.gitconfig ;
sudo apt install libfuse2
mkdir -p /home/opik/Devel ;
ln -s /home/opik/Dropbox/linux/home/Devel/tools/ /home/opik/Devel/ ;
rm -rf /home/opik/.config/JetBrains/DataGrip2024.1 || true ;
ln -s /home/opik/Dropbox/linux/.config/JetBrains/DataGrip2024.1 /home/opik/.config/JetBrains/DataGrip2024.1 ;
rm -rf /home/opik/.config/JetBrains/Rider2024.1 || true ;
ln -s /home/opik/Dropbox/linux/.config/JetBrains/Rider2024.1 /home/opik/.config/JetBrains/Rider2024.1 ;
rm -rf /home/opik/.local/share/remmina/ || true ;
ln -s /home/opik/Dropbox/linux/.local/share/remmina /home/opik/.local/share/remmina ;
rm -rf /home/opik/.config/autokey/ || true ;
ln -s /home/opik/Dropbox/linux/.config/autokey /home/opik/.config/autokey ;
ln -s /home/opik/Dropbox/linux/home/.pgpass /home/opik/.pgpass
mkdir -p /home/opik/Devel ;
ln -s /home/opik/Dropbox/linux/home/Devel/exato/datasources/tessdata /home/opik/Devel/exato/datasources ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment