Improved redhat installtions
This commit is contained in:
parent
ee00077533
commit
d0d8f9d221
@ -2,9 +2,8 @@
|
||||
|
||||
install_brave() {
|
||||
echo "Installing brave-browser"
|
||||
sudo dnf install dnf-transport-https curl
|
||||
sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-dnf-release.s3.brave.com/brave-browser-archive-keyring.gpg
|
||||
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-dnf-release.s3.brave.com/ stable main" | sudo tee /etc/dnf/sources.list.d/brave-browser-release.list
|
||||
sudo dnf update
|
||||
sudo dnf install dnf-plugins-core
|
||||
sudo dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/x86_64/
|
||||
sudo rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
|
||||
sudo dnf install brave-browser
|
||||
}
|
||||
|
@ -2,8 +2,7 @@
|
||||
|
||||
install_chrome() {
|
||||
echo 'Installing Google Chrome'
|
||||
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
||||
sudo dpkg -i ./google-chrome-stable_current_amd64.deb
|
||||
rm google-chrome-stable_current_amd64.deb
|
||||
sudo dnf install chrome-gnome-shell -y
|
||||
sudo dnf install fedora-workstation-repositories
|
||||
sudo dnf config-manager --set-enabled google-chrome
|
||||
sudo dnf install google-chrome-stable -y
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
install_discord() {
|
||||
echo 'Installing Discord'
|
||||
wget -O discord.deb "https://discordapp.com/api/download?platform=linux&format=deb"
|
||||
sudo dpkg -i discord.deb
|
||||
sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
|
||||
sudo dnf update
|
||||
sudo dnf install discord -y
|
||||
}
|
@ -2,8 +2,7 @@
|
||||
|
||||
install_etcher() {
|
||||
echo 'Installing Etcher'
|
||||
echo "deb https://deb.etcher.io stable etcher" | sudo tee /etc/dnf/sources.list.d/balena-etcher.list
|
||||
sudo dnf-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys 379CE192D401AB61
|
||||
sudo dnf update -y
|
||||
curl -1sLf 'https://dl.cloudsmith.io/public/balena/etcher/setup.rpm.sh' | sudo -E bash
|
||||
sudo dnf update
|
||||
sudo dnf install balena-etcher-electron -y
|
||||
}
|
||||
|
@ -11,9 +11,7 @@ install_lsd() {
|
||||
sudo cp -r hack /usr/share/fonts/
|
||||
sudo chmod -R 775 /usr/share/fonts/hack
|
||||
rm -r hack
|
||||
wget https://github.com/Peltoche/lsd/releases/download/0.19.0/lsd_0.19.0_amd64.deb
|
||||
sudo dpkg -i lsd_0.19.0_amd64.deb
|
||||
sudo rm lsd_0.19.0_amd64.deb
|
||||
dnf install lsd -y
|
||||
# echo "alias ls='lsd'" | sudo tee -a /home/*/.bashrc > /dev/null
|
||||
# todos
|
||||
# write py script to comment line: alias="ls --color=auto"
|
||||
|
@ -2,10 +2,9 @@
|
||||
|
||||
install_sublime_text() {
|
||||
echo "Installing sublime-text"
|
||||
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo dnf-key add -
|
||||
sudo dnf install dnf-transport-https -y
|
||||
sudo add-dnf-repository "deb https://download.sublimetext.com/ dnf/stable/"
|
||||
sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
|
||||
sudo dnf config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
|
||||
|
||||
sudo dnf update
|
||||
sudo dnf install sublime-text -y
|
||||
}
|
@ -2,8 +2,15 @@
|
||||
|
||||
install_vscode() {
|
||||
echo "Installing VS Code"
|
||||
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo dnf-key add -
|
||||
sudo add-dnf-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
|
||||
sudo dnf update
|
||||
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
|
||||
cat <<EOF | sudo tee /etc/yum.repos.d/vscode.repo
|
||||
[code]
|
||||
name=Visual Studio Code
|
||||
baseurl=https://packages.microsoft.com/yumrepos/vscode
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
gpgkey=https://packages.microsoft.com/keys/microsoft.asc
|
||||
EOF
|
||||
sudo dnf check-update
|
||||
sudo dnf install code -y
|
||||
}
|
Loading…
Reference in New Issue
Block a user