Last active
February 7, 2020 10:41
-
-
Save MalteKiefer/8368ad2459e8cdbcd2f167de39915ddd to your computer and use it in GitHub Desktop.
fedora_install.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 | |
## add latest kernel | |
#### | |
sudo cat <<EOF > /etc/yum.repos.d/fedora-kernel-vanilla-stable.repo | |
[fedora-kernel-vanilla-stable] | |
name=Linux vanilla kernels for Fedora, stable series | |
baseurl=http://repos.fedorapeople.org/repos/thl/kernel-vanilla-stable/fedora-$releasever/$basearch/ | |
enabled=1 | |
skip_if_unavailable=1 | |
gpgcheck=1 | |
gpgkey=http://repos.fedorapeople.org/repos/thl/kernel-vanilla-stable/RPM-GPG-KEY-fedora-kernel-vanilla | |
[fedora-kernel-vanilla-stable-source] | |
name=Linux vanilla kernels for Fedora, stable series - Source | |
baseurl=http://repos.fedorapeople.org/repos/thl/kernel-vanilla-stable/fedora-$releasever/SRPMS | |
enabled=0 | |
skip_if_unavailable=1 | |
gpgcheck=1 | |
gpgkey=http://repos.fedorapeople.org/repos/thl/kernel-vanilla-stable/RPM-GPG-KEY-fedora-kernel-vanilla | |
EOF | |
## add anydesk repo | |
#### | |
sudo cat > /etc/yum.repos.d/AnyDesk-Fedora.repo << "EOF" | |
[anydesk] | |
name=AnyDesk Fedora - stable | |
baseurl=http://rpm.anydesk.com/fedora/$basearch/ | |
gpgcheck=1 | |
repo_gpgcheck=1 | |
gpgkey=https://keys.anydesk.com/repos/RPM-GPG-KEY | |
EOF | |
## 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 atim/alacritty -y | |
dnf copr enable flatcap/neomutt -y | |
sudo dnf copr enable opuk/pamixer -y | |
sudo dnf copr enable faezebax/crow-translate -y | |
sudo dnf copr enable evana/fira-code-fonts -y | |
## install software | |
#### | |
sudo dnf install -y ffsend git firefox htop python3-devel python2-devel python2-pip python3-pip crow-translate | |
sudo dnf install -y fedy zsh sway rofi pamixer waybar light thunderbird vim alacritty wget curl nodejs nodejs-yarn | |
sudo dnf install -y signal-desktop telegram-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 anydesk p7zip p7zip-plugins | |
sudo dnf install -y swaylock gimp gnupg2 openssh php inkscape ruby iwl7260-firmware composer simple-scan gcc cmake make | |
sudo dnf install -y msmtp offlineimap notmuch neomutt | |
sudo dnf install -y http://download.teamviewer.com/download/teamviewer.i686.rpm | |
wget https://vault.bitwarden.com/download/\?app\=desktop\&platform\=linux\&variant\=rpm -O /tmp/bitwarden.rpm | |
sudo dnf install -y /tmp/bitwarden.rpm && rm /tmp/bitwarden.rpm | |
## php-cs-fixer | |
#### | |
wget https://cs.symfony.com/download/php-cs-fixer-v2.phar -O php-cs-fixer | |
sudo chmod a+x php-cs-fixer | |
sudo mv php-cs-fixer /usr/local/bin/php-cs-fixer | |
sudo php-cs-fixer self-update | |
## pip install | |
#### | |
pip2 install --user pybars pyyaml weasyprint===0.42.3 | |
pip3 install --user awscli ti s-tui vdirsyncer khal khard todoman | |
## android-studio | |
#### | |
wget https://dl.google.com/dl/android/studio/ide-zips/3.5.3.0/android-studio-ide-191.6010548-linux.tar.gz | |
sudo tar xf android-studio-ide-191.6010548-linux.tar.gz -C /opt | |
sudo ln -sf "/opt/android-studio/bin/studio.sh" "/usr/bin/android-studio" | |
sudo xdg-icon-resource install --novendor --size 128 "/opt/android-studio/bin/studio.png" "android-studio" | |
sudo gtk-update-icon-cache -f -t /usr/share/icons/hicolor | |
sudo cat <<EOF | tee /usr/share/applications/android-studio.desktop | |
[Desktop Entry] | |
Name=Android Studio | |
Icon=android-studio | |
Comment=Official IDE for Android application development | |
Exec=android-studio | |
Terminal=false | |
Type=Application | |
StartupNotify=true | |
Categories=IDE;Development; | |
Keywords=Idea;Java;Android;SDK;IDE; | |
EOF | |
## config | |
#### | |
mkdir -p ~/.config/sway | |
cp /etc/sway/config ~/.config/sway/ | |
## zsh | |
#### | |
chsh -s $(which zsh) | |
## vim plug | |
#### | |
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment