Skip to content

Instantly share code, notes, and snippets.

@Konfekt
Last active June 6, 2023 05:33
Show Gist options
  • Select an option

  • Save Konfekt/3d32416b9c7b34dbc705a1d00bdacc00 to your computer and use it in GitHub Desktop.

Select an option

Save Konfekt/3d32416b9c7b34dbc705a1d00bdacc00 to your computer and use it in GitHub Desktop.
add useful program packages after installation of openSUSE
if [ $(id -u) -ne 0 ]; then
echo "Please run as root, for example, by sudo!"
exit
fi
. /etc/os-release
version="$VERSION_ID"
z="sudo zypper --non-interactive --ignore-unknown --gpg-auto-import-keys --no-gpg-checks"
zin="$z install --download in-advance --recommends --auto-agree-with-licenses --replacefiles --force-resolution --no-confirm"
echo "Installing programm packages ..."
$zin curl
# to manually install all of the following:
$zin opi
# media
$z removerepo packman
$z addrepo --priority 90 'https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_$releasever/Essentials' packman-essentials
$z refresh
$z dist-upgrade --allow-vendor-change --from packman-essentials
$zin --allow-vendor-change ffmpeg lame gstreamer-plugins-bad gstreamer-plugins-ugly gstreamer-plugins-ugly-orig-addon gstreamer-plugins-libav libavdevice56 libavdevice58 vlc-codecs
$zin freshplayerplugin java-1_8_0-openjdk-plugin xine-browser-plugin
$zin vlc
# Skype
$z addrepo https://download.opensuse.org/repositories/network:telephony/openSUSE_Leap_"$version"/network:telephony.repo
$z refresh
$zin skype
# Teams
# From https://docs.microsoft.com/en-us/microsoftteams/get-clients#install-manually-from-the-command-line
# but disabling auto-refresh of the repository
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[teams]\nname=teams\nbaseurl=https://packages.microsoft.com/yumrepos/ms-teams\nenabled=1\nautorefresh=0\nkeeppackages=0\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/zypp/repos.d/teams.repo'
$zin teams
# Zoom
curl -sSfL https://zoom.us/client/latest/zoom_openSUSE_x86_64.rpm -o /tmp/zoom_openSUSE_x86_64.rpm &&
$zin /tmp/zoom_openSUSE_x86_64.rpm
# office
$zin thunderbird libreoffice-gnome libreoffice-gtk2 libreoffice-gtk3 xournalpp goldendict hplip google-croscore-fonts
sudo pip3 install --upgrade 'pdfCropMargins[gui]'
curl -sSfL https://sourceforge.net/projects/g-manual-duplex/files/gnome-manual-duplex-0.70-5.1.noarch.rpm/download -o /tmp/gnome-manual-duplex.rpm &&
$zin /tmp/gnome-manual-duplex.rpm
# KDEconnect
sudo firewall-cmd --zone=home --permanent --add-port=1714-1764/tcp
sudo firewall-cmd --zone=home --permanent --add-port=1714-1764/udp
sudo systemctl restart firewalld.service
# webcam
$zin webcamoid
# browser
$zin plasma-browser-integration chromium
# Brave
sudo rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
$z addrepo https://brave-browser-rpm-release.s3.brave.com/x86_64/ brave-browser
$z refresh
$zin brave-browser
# Edge
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
$z ar https://packages.microsoft.com/yumrepos/edge microsoft-edge-beta
$z refresh
$z install microsoft-edge-beta
# image editing
$zin digikam digikam-lang geeqie geeqie-lang krita ImageMagick clipgrab
# to install common Windows applications such as IrfanView
$zin PlayOnLinux
# tools
$zin gparted tlp
sudo systemctl enable --now tlp.service tlp-sleep.service
$zin zsh ShellCheck git rxvt-unicode gvim
$zin feh pandoc fd ripgrep tlp borg unar htop ncdu glances tree
$zin krusader caffeine xwininfo wmctrl evince zathura okular
$zin python3-lxml python3-beautifulsoup4
# update installation
$z refresh
$z update
# Automatic Opensuse Updates:
$zin yast2-online-update yast2-online-update-configuration yast2-online-update-frontend
# # yast2-online-update => YaST2-Onlineupdate: accept all and fully automatic
# yast2 online_update
echo "... program packages have been installed."
# See http://opensuse-guide.org/ for further installation instructions
@Konfekt
Copy link
Author

Konfekt commented Mar 7, 2020

The above installation instructions are available under the address https://tinyurl.com/addsuse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment