dotfiles/installFedoraSystem.sh

69 lines
3.4 KiB
Bash

#/bin/bash
[ ! -f "$HOME/.ssh/id_ed25519" ] && echo "Please import ssh keys before going further"
# check sudoer for install
groups | grep -q wheel || echo "Please, as root, add $(whoami) to sudo group with : sudo usermod -aG sudo $(whoami), then reboot and relaunch this script"
groups | grep -q wheel || return
#yadm sur https://software.opensuse.org//download.html?project=home%3ATheLocehiliosan%3Ayadm&package=yadm
sudo dnf config-manager addrepo --from-repofile=https://download.opensuse.org/repositories/home:TheLocehiliosan:yadm/Fedora_42/home:TheLocehiliosan:yadm.repo
sudo dnf update
sudo dnf install -y neovim yadm java-21-openjdk-devel fzf cmake browserpass-firefox mozilla-ublock-origin.noarch pass ripgrep postgresql postgresql-server steam nextcloud-client sensors tig make gcc pdfarranger neomutt fd-find
[ ! -f "$HOME/.local/bin/passmenu2" ] && yadm init && yadm remote add origin git@git.portenseigne.ovh:pgil/dotfiles.git && yadm fetch --all && yadm checkout main
git config --global user.email "gil.portenseigne@nereide.fr"
git config --global user.name "Gil Portenseigne"
# Installation oh my bash
[ ! -d "$HOME/.oh-my-bash/" ] && bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)" || echo "oh-my-bash installed"
# Installation config specif bash + aliases
grep -q "gil_specific" "$HOME/.bashrc" && echo "Bash configured" || sed -i -e '$asource "$HOME/.config/bash/gil_specific.sh"\' $HOME/.bashrc
# Installation sdkman
[ ! -d "$HOME/.sdkman/" ] && curl -s "https://get.sdkman.io" | bash
exit 0
# récupération yadm si necessaire
#config imagemagick
sudo sed -i '/"PDF"/s/none/read|write/' /etc/ImageMagick-6/policy.xml
echo "Maintenant à installer : Idea-Eclipse,
Nexcloud sync, parsec"
echo "https://github.com/nordtheme/gnome-terminal"
echo "https://fostips.com/install-latest-firefox-non-esr-debian/"
echo "https://freetubeapp.io/"
echo "faire un source .bashrc"
#[ ! -d "$HOME/workspace/suckless/st" ] && git clone git@git.portenseigne.ovh:pgil/st.git
#[ ! -d "$HOME/workspace/suckless/dwm" ] && git clone git@git.portenseigne.ovh:pgil/dwm.git
#[ ! -d "$HOME/workspace/suckless/dwm-to-gdm" ] && git clone git@git.portenseigne.ovh:pgil/dwm-to-gdm.git
#[ ! -d "$HOME/workspace/suckless/slstatus" ] && git clone git@git.portenseigne.ovh:pgil/slstatus.git
#[ ! -d "$HOME/workspace/suckless/nextvi" ] && git clone https://github.com/kyx0r/nextvi.git
cd
#cd ~/workspace/suckless/st && git checkout gil && git pull --rebase && make && sudo make install
#cd ~/workspace/suckless/dwm && git checkout gil && git pull --rebase && make && sudo make install
#cd ~/workspace/suckless/dwm-to-gdm && git checkout gil && git pull --rebase && sudo make install
#cd ~/workspace/suckless/slstatus && git checkout gil && git pull --rebase && make && sudo make install
###### dwm install :
#sudo apt install libx11-dev libxinerama-dev libxft-dev libx11-xcb-dev libxcb-res0-dev arandr make gcc pulsemixer, unclutter libnotify-bin ncal dmenu brightnessctl brightness-udev
# git clone git@git.portenseigne.ovh:pgil/dwm.git
# git clone git@git.portenseigne.ovh:pgil/dwm-to-gdm.git
# Install bruno
# sudo mkdir -p /etc/apt/keyrings
# sudo gpg --no-default-keyring --keyring /etc/apt/keyrings/bruno.gpg --keyserver keyserver.ubuntu.com --recv-keys 9FA6017ECABE0266
# echo "deb [signed-by=/etc/apt/keyrings/bruno.gpg] http://debian.usebruno.com/ bruno stable" | sudo tee /etc/apt/sources.list.d/bruno.list
# sudo apt update
# sudo apt install bruno