- How do you say SUSE?
- 5 Things You MUST DO After Installing OpenSUSE -- Video, Article
- 20 Things To Do After Installing OpenSUSE -- Video, Article
- Additional package repositories
- 45 Zypper Commands to Manage ‘Suse’ Linux Package Management
Last active
March 8, 2022 05:38
-
-
Save engineervix/b0d6b39bad21ef047330099760abe941 to your computer and use it in GitHub Desktop.
openSUSE setup
This file contains 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
#!/usr/bin/env bash | |
# Updating System and Repositories | |
sudo zypper ref | |
sudo zypper update | |
# Google Chrome | |
sudo zypper addrepo http://dl.google.com/linux/chrome/rpm/stable/x86_64 Google-Chrome | |
sudo zypper refresh | |
sudo rpm --import https://dl.google.com/linux/linux_signing_key.pub | |
sudo zypper install google-chrome-stable | |
# Git | |
sudo zypper install git | |
# Snap | |
## --- first, first add the snappy repository --- ## | |
sudo zypper addrepo --refresh https://download.opensuse.org/repositories/system:/snappy/openSUSE_Tumbleweed snappy | |
## --- With the repository added, import its GPG key --- ## | |
sudo zypper --gpg-auto-import-keys refresh | |
## --- upgrade the package cache to include the new snappy repository --- ## | |
sudo zypper dup --from snappy | |
sudo zypper install snapd | |
## --- You then need to either reboot, logout/login or source /etc/profile to have /snap/bin added to PATH --- ## | |
sudo systemctl enable snapd | |
sudo systemctl start snapd | |
## --- extra steps for Tumbleweed --- ## | |
sudo systemctl enable snapd.apparmor | |
sudo systemctl start snapd.apparmor | |
# Slack | |
sudo snap install slack --classic | |
# Zoom | |
## --- download RPM from https://zoom.us/download?os=linux --- ## | |
## --- also download the Download Public Key: `package-signing-key.pub` from same source above --- ## | |
sudo rpm --import package-signing-key.pub | |
sudo zypper install zoom_openSUSE_x86_64.rpm | |
# ZSH | |
## --- https://software.opensuse.org/download/package?package=zsh&project=shells --- ## | |
sudo zypper addrepo https://download.opensuse.org/repositories/shells/openSUSE_Tumbleweed/shells.repo | |
sudo zypper refresh | |
sudo zypper install zsh | |
chsh -s $(which zsh) | |
## --- either logout or reboot --- ## | |
# ohmyzsh | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
# powerlevel10k | |
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k | |
sed 's/robbyrussell/powerlevel10k\/powerlevel10k/g' -i ~/.zshrc | |
# powerline fonts | |
sudo zypper install tmux-powerline vim-plugin-powerline powerline-fonts | |
wget https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf | |
wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf | |
wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf | |
wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf | |
wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf | |
sudo mv -v PowerlineSymbols.otf /usr/share/fonts/ | |
sudo mv -v MesloLGS*.ttf /usr/share/fonts/ | |
sudo fc-cache -vf | |
sudo mv 10-powerline-symbols.conf /etc/fonts/conf.d/ | |
# zsh plugins | |
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting | |
# development libs | |
## --- run `sudo zypper se -t pattern devel` to search for the available pattern names --- ## | |
sudo zypper install --type pattern devel_basis devel_python3 devel_C_C++ devel_kde_frameworks devel_qt5 | |
## --- build dependencies for Lightly - A modern style for qt applications (https://github.com/Luwx/Lightly) --- ## | |
## --- NOTE: As of 2022-02-27, Lightly breaks when you attempt to install it on Tumbleweed --- ## | |
sudo zypper install libxcb-ewmh2 xcb-util-cursor-devel xcb-util-devel xcb-util-image-devel xcb-util-keysyms-devel xcb-util-renderutil-devel xcb-util-wm-devel | |
## --- extra build deps for pyenv --- ## | |
sudo zypper install libbz2-devel libopenssl-1_1-devel libopenssl-devel openssl sqlite3-devel tcl-devel tk-devel | |
# VSCode | |
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc | |
sudo zypper addrepo https://packages.microsoft.com/yumrepos/vscode vscode | |
sudo zypper refresh | |
sudo zypper install code | |
# Sublime Text | |
sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg | |
sudo zypper addrepo -g -f https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo | |
sudo zypper install sublime-text | |
# Discord | |
sudo zypper install discord | |
# Meld | |
sudo zypper install meld | |
# pdftk | |
zypper install pdftk | |
## ruby plus some gems | |
sudo zypper in ruby-devel | |
## --- https://github.com/travis-ci/travis.rb --- ## | |
#gem install travis --no-document | |
## --- https://github.com/athityakumar/colorls --- ## | |
#gem install colorls | |
## Node.js | |
sudo zypper install nodejs16 | |
## Yarn | |
sudo zypper install yarn | |
# Volta | |
curl https://get.volta.sh | bash | |
volta install node@14 | |
# virtualenvwrapper | |
sudo -H pip3 install virtualenvwrapper | |
export WORKON_HOME=$HOME/Env | |
echo $WORKON_HOME | |
mkdir -p "$WORKON_HOME" | |
echo "" >> /home/"${USER}"/.zshrc | |
echo "# virtualenvwrapper" >> /home/"${USER}"/.zshrc | |
echo "export WORKON_HOME=~/Env" >> /home/"${USER}"/.zshrc | |
echo "export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3" >> /home/"${USER}"/.zshrc | |
echo "source /usr/local/bin/virtualenvwrapper.sh" >> /home/"${USER}"/.zshrc | |
echo "" >> /home/"${USER}"/.zshrc | |
# docker and docker-compose | |
sudo zypper install docker python3-docker-compose | |
sudo systemctl enable docker | |
sudo usermod -G docker -a $USER | |
sudo systemctl restart docker | |
newgrp docker | |
## --- probably better to restart machine at this point --- ### | |
docker version | |
## https://syncthing.net/ | |
sudo zypper install syncthing | |
## --- https://docs.syncthing.net/users/autostart.html#linux --- ## | |
systemctl enable syncthing@"${USER}".service | |
systemctl start syncthing@"${USER}".service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment