Last active
April 30, 2024 00:26
-
-
Save takitani/4858f17ac64fb78fed5acdaca0980aaa to your computer and use it in GitHub Desktop.
Fedora Setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Version: 39 | |
# Muda hostname | |
hostnamectl set-hostname opikdev | |
sudo dnf update | |
sudo dnf upgrade | |
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 | |
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo | |
sudo dnf install google-chrome-stable dropbox obs-studio vlc curl zsh git neofetch autokey-qt imwheel wkhtmltopdf -y | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting | |
sudo dnf update \ | |
--enablerepo=updates-testing \ | |
'kernel*' '*v4l2loopback' | |
sudo dnf install \ | |
--enablerepo=updates-testing \ | |
akmod-intel-ipu6 | |
# netac 2 tb | |
sudo mkdir -p /mnt/storage | |
sudo nano /etc/fstab | |
UUID=975f3804-73e7-462d-90db-e1d107120a2e /mnt/storage ext4 defaults 0 1 | |
# Depois de logar no dropbox, quitar e: | |
sudo rm -rf Dropbox | |
ln -s /mnt/storage/Dropbox ~/Dropbox | |
flatpak install flathub com.authy.Authy | |
flatpak install flathub io.github.Qalculate.qalculate-qt | |
flatpak install flathub com.meetfranz.Franz | |
flatpak install flathub com.getpostman.Postman | |
flatpak install flathub md.obsidian.Obsidian | |
rm -rf /home/opik/.ssh || true | |
ln -s /mnt/storage/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 ; | |
ln -s /mnt/storage/Dropbox/linux/home/.bashrc /home/opik/.bashrc ; | |
ln -s /mnt/storage/Dropbox/linux/home/.bash_history /home/opik/.bash_history ; | |
ln -s /mnt/storage/Dropbox/linux/home/.zshrc /home/opik/.zshrc ; | |
rm -rf /home/opik/.zsh_history || true ; | |
ln -s /mnt/storage/Dropbox/linux/home/.zsh_history /home/opik/.zsh_history ; | |
rm -rf /home/opik/.gitconfig || true ; | |
ln -s /mnt/storage/Dropbox/linux/home/.gitconfig /home/opik/.gitconfig ; | |
mkdir -p /home/opik/Devel ; | |
ln -s /mnt/storage/Dropbox/linux/home/Devel/tools/ /home/opik/Devel/ ; | |
mkdir -p /home/opik/Devel/exato/datasources | |
ln -s /mnt/storage/Dropbox/linux/home/Devel/exato/datasources/tessdata /home/opik/Devel/exato/datasources ; | |
rm -rf /home/opik/.config/JetBrains/DataGrip2023.3 || true ; | |
ln -s /mnt/storage/Dropbox/linux/.config/JetBrains/DataGrip2023.3 /home/opik/.config/JetBrains/DataGrip2023.3 ; | |
rm -rf /home/opik/.config/JetBrains/Rider2023.3 || true ; | |
ln -s /mnt/storage/Dropbox/linux/.config/JetBrains/Rider2023.3 /home/opik/.config/JetBrains/Rider2023.3; | |
#flatpak install flathub org.remmina.Remmina | |
# rm -rf /home/opik/.var/app/org.remmina.Remmina/data/remmina || true ; | |
# ln -s /home/opik/Dropbox/linux/.local/share/remmina /home/opik/.var/app/org.remmina.Remmina/data/remmina ; | |
rm -rf /home/opik/.config/autokey/ || true ; | |
ln -s /mnt/storage/Dropbox/linux/.config/autokey /home/opik/.config/autokey ; | |
ln -s /mnt/storage/Dropbox/linux/home/.pgpass /home/opik/.pgpass | |
rm -rf /home/opik/.local/share/remmina/ || true ; | |
ln -s /mnt/storage/opik/Dropbox/linux/.local/share/remmina /home/opik/.local/share/remmina ; | |
sudo dnf install dotnet-sdk-6.0 | |
sudo dnf install dotnet-sdk-8.0 | |
# 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 | |
# 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 | |
flatpak override --user --env=GTK_IM_MODULE=com.meetfranz.Franz | |
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 --user 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 | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment