Created
August 20, 2021 13:35
-
-
Save MalteKiefer/84a1b2f3098896510a44442469dd42f1 to your computer and use it in GitHub Desktop.
fed.sh
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 | |
## update system | |
#### | |
sudo dnf update -y | |
## repos | |
#### | |
sudo dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm | |
sudo dnf install -y https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm | |
sudo dnf copr enable kwizart/fedy -y | |
sudo dnf copr enable alebastr/waybar -y | |
sudo dnf copr enable luminoso/Signal-Desktop -y | |
sudo dnf copr enable faezebax/crow-translate -y | |
sudo dnf copr enable evana/fira-code-fonts -y | |
## install software | |
#### | |
sudo dnf install -y git firefox htop python3-devel crow-translate | |
sudo dnf install -y fedy fish gimp php-pgsql composer telegram-desktop | |
sudo dnf install -y signal-desktop hplip fira-code-fonts util-linux-user dino libreoffice-writer | |
sudo dnf install -y libreoffice-calc libreoffice-impress liberation-fonts-common google-noto-fonts-common | |
sudo dnf install -y fontawesome-fonts dejavu-fonts-common gnu-free-fonts-common p7zip p7zip-plugins | |
sudo dnf install -y gnupg2 openssh php inkscape simple-scan gcc cmake make | |
sudo dnf install -y http://download.teamviewer.com/download/teamviewer.i686.rpm | |
rpm --import https://downloads.1password.com/linux/keys/1password.asc | |
sh -c 'echo -e "[1password]\nname=1Password Stable Channel\nbaseurl=https://downloads.1password.com/linux/rpm/stable/\$basearch\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=\"https://downloads.1password.com/linux/keys/1password.asc\"" > /etc/yum.repos.d/1password.repo' | |
dnf install -y 1password | |
dnf install -y https://dbeaver.io/files/dbeaver-ce-latest-stable.x86_64.rpm | |
dnf -y groupinstall multimedia | |
dnf -y install cabextract lzip p7zip p7zip-plugins unrar | |
dnf install -y https://gitfiend.com/resources/GitFiend-0.28.0.x86_64.rpm | |
rpm --import https://dl-ssl.google.com/linux/linux_signing_key.pub | |
dnf -y install https://dl.google.com/linux/direct/google-chrome-stable_current_$(uname -i).rpm | |
# Fix for double icon in dock | |
file="/usr/share/applications/google-chrome.desktop" | |
if [ -f ${file} ]; then | |
list=("Desktop Entry" "new-window" "new-private-window") | |
startupWMClass="StartupWMClass=Google-chrome-stable" | |
echo | |
for i in "${list[@]}"; do | |
pattern='^\[.*'"$i"'.*\]$' | |
section=$(grep "$pattern" $file) | |
lineNumber=$(grep -n "$pattern" $file | cut -d : -f 1) | |
if [[ $lineNumber ]]; then | |
echo "OK: Section [$i] found." | |
sed --in-place "$lineNumber a $startupWMClass" $file | |
else | |
echo "ERROR: Section [$i] not found." | |
exit 1 | |
fi | |
done | |
else | |
echo "Desktop file not found." | |
exit 1 | |
fi | |
dnf -y install java-1.8.0-openjdk java-1.8.0-openjdk-devel compat-libstdc++-296.i686 compat-libstdc++-33.i686 compat-libstdc++-33.x86_64 glibc.i686 ncurses-libs.i686 | |
CACHEDIR="/var/cache/fedy/phpstorm"; | |
mkdir -p "$CACHEDIR" | |
cd "$CACHEDIR" | |
URL=$(wget "https://data.services.jetbrains.com/products/releases?code=PS&latest=true" -O -| grep -o "https://download.jetbrains.com/webide/PhpStorm-[0-9.]*.tar.gz" | head -n 1) | |
FILE=${URL##*/} | |
wget -c "$URL" -O "$FILE" | |
if [[ ! -f "$FILE" ]]; then | |
exit 1 | |
fi | |
tar -xzf "$FILE" -C "/opt/" | |
mv /opt/PhpStorm* "/opt/PhpStorm" | |
ln -sf "/opt/PhpStorm/bin/phpstorm.sh" "/usr/bin/phpstorm" | |
xdg-icon-resource install --novendor --size 256 "/opt/PhpStorm/bin/webide.png" "phpstorm" | |
gtk-update-icon-cache -f -t /usr/share/icons/hicolor | |
cat <<EOF | tee /usr/share/applications/phpstorm.desktop | |
[Desktop Entry] | |
Name=PhpStorm | |
Type=Application | |
Icon=phpstorm | |
Exec=phpstorm | |
Comment=The Most Intelligent PHP IDE | |
Categories=Development;IDE; | |
Keywords=Idea;PHP;Web;Jetbrains;IDE; | |
StartupNotify=true | |
Terminal=false | |
StartupWMClass=jetbrains-phpstorm | |
EOF | |
dnf copr enable -y luminoso/Signal-Desktop | |
dnf install signal-desktop | |
CACHEDIR="/var/cache/fedy/zoom"; | |
mkdir -p "$CACHEDIR" | |
cd "$CACHEDIR" | |
wget https://zoom.us/client/latest/zoom_$(uname -m).rpm -O zoom.rpm | |
dnf -y install ./zoom.rpm | |
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment