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
| #!/bin/bash | |
| if [[ $EUID -ne 0 ]]; then | |
| exit 1 | |
| fi | |
| declare -A os_map=( | |
| ["apt"]="apt install -qq -y flatpak" | |
| ["dnf"]="dnf install -y -q flatpak" | |
| ["pacman"]="pacman -S --noconfirm --needed --quiet flatpak" |
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
| #!/bin/bash | |
| # This script compile Profile-sync-daemon from source and install it with stow. | |
| # To uninstall run 'sudo stow -D /usr/local/stow/psd'. | |
| # Support Fedora, Arch and Debian/Ubuntu based distros. | |
| # Despite that, you can run this in any Linux distro with stow installed. | |
| # Install stow if missing | |
| command -v stow >/dev/null && echo "Stow is already installed" || { echo "Installing Stow..."; (command -v apt >/dev/null && sudo apt update && sudo apt install -y stow) || (command -v dnf >/dev/null && sudo dnf install -y stow) || (command -v pacman >/dev/null && sudo pacman -S --noconfirm stow); } | |
| # Cleanup older install |
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
| #!/bin/bash | |
| # Ensure the script is run as root | |
| if [ "$EUID" -ne 0 ]; then | |
| echo "Please run as root (sudo)" | |
| exit 1 | |
| fi | |
| # Define the target directory for Firefox system-wide policies | |
| POLICY_DIR="/etc/firefox/policies" |
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
| #!/bin/bash | |
| # Install lsfg-vk on Linux systems with an alternative version of Lossless Scaling, without the need to purchase it. | |
| # Supports every Linux x86_64 machine | |
| DOWNLOAD_URL="https://github.com/PancakeTAS/lsfg-vk/releases/download/v1.0.0/lsfg-vk-1.0.0.x86_64.tar.zst" | |
| TEMP_FILE="/tmp/lsfg_install.tar.zst" | |
| INSTALL_DIR="/" | |
| # Install LSFG-VK Release |
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
| #!/bin/bash | |
| # This script optimizes Steam's background shader compilation by automatically configuring the steam_dev.cfg file | |
| # to use your total CPU threads minus four, a calculation designed to maximize processing speed while reserving | |
| # enough resources to prevent system freezes. It functions idempotently, meaning it first checks if the configuration | |
| # file exists (creating it if necessary) and then uses sed to either update the existing unShaderBackgroundProcessingThreads | |
| # line or append it if missing. | |
| CONFIG_FILE="$HOME/.local/share/Steam/steam_dev.cfg" | |
| TOTAL_THREADS=$(nproc) | |
| TARGET_THREADS=$((TOTAL_THREADS - 4)) |
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
| cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf - | |
| chmod +x ~/.dropbox-dist/dropboxd | |
| # Autostart Setup | |
| cat > ~/.config/autostart/dropbox-manual.desktop <<EOF | |
| [Desktop Entry] | |
| Type=Application | |
| Name=Dropbox Daemon | |
| Comment=Manual Autostart for ~/.dropbox-dist/dropboxd | |
| Exec=$HOME/.dropbox-dist/dropboxd |
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
| #!/bin/bash | |
| # estes pacotes são vitais pra interface funcionar | |
| sudo apt update -y | |
| sudo apt install -y libopengl0 wget libxkbcommon-x11-0 libxcb-shape0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xinerama0 libxcb-xinput0 | |
| wget https://gpt4all.io/installers/gpt4all-installer-linux.run | |
| chmod +x ./gpt4all-installer-linux.run | |
| ./gpt4all-installer-linux.run |
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
| ``` | |
| ssh-keygen -t rsa | |
| type $env:USERPROFILE\.ssh\id_rsa.pub | ssh usuario@IPADDRESS "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys" | |
| ``` | |
| Permissões dentro da VM | |
| ```bash | |
| chmod 700 ~/.ssh | |
| chmod 600 ~/.ssh/authorized_keys | |
| ``` |
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
| sudo apt-mark hold "grub-*" "grub2*" "linux-generic*" "linux-headers-generic*" "linux-image-generic*" "linux-signed-generic*" "linux-signed-image-generic*" linux-firmware intel-microcode amd64-microcode |
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
| sudo apt update -y && sudo apt remove --purge -y *thunderbird* libreoffice* celluloid sticky *calendar* cmatrix hypnotix rhythmbox *yaru* *papirus* && sudo apt autopurge -y |
NewerOlder