Skip to content

3B ‐ Running The Script

DAK edited this page Jan 23, 2025 · 1 revision

This page covers information on how to run the scripts on your OpenSUSE Tumbleweed installation.

Note

The OpenSUSE Tumbleweed installation is recommended to be a fresh install, preferably from a NET image.

The scripts have been tested on OpenSUSE Tumbleweed only.

Caution

Leap, WSL, WSL2 and other editions/distros are untested.

Proceed with caution when the script is run on a non-Tumbleweed install.


Running The Script

The script can be run in 2 ways: Online method and offline method.

Online Method

In this method, the scripts are NOT downloaded to the local system and is run directly. To run the script, Konsole or a terminal should be open. Then, the following command is run:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/DAK404/OpenSUSE-Setup-Scripts/main/OpenSUSE_Installation.sh)"

This will install the required repositories and packages but will NOT install the codecs and applications outside the package manager.

What does the command do?

  1. bash -c shall tell the shell to run the command that follows in a new instance of the Bash shell.
  2. $(...) is for command substitution, where the output of the command inside the parenthesis will be used as an argument to bash -c command
  3. curl -fsSL is a command to download content from the specified URL. The URL in question shall point to the OpenSUSE-Setup-Scripts repository.
    • -f option fails silently on server errors
    • -s option enables silent mode, which does not show any progress bars or error messages
    • -S option will show error messages if -s is used
    • -L option shall follow redirects
  4. The URL provided

After the closing double-quotes, arguments can be passed to the script file.

Arguments are extra data that is sent to the script, and usually, the arguments are optional. See Arguments section below for more information.

Offline Method

In this method, the scripts are downloaded to the local system and is run. To run the script, Konsole or a terminal should be open inside the downloaded repository directory. Then, the following command is run:

sh OpenSUSE_Installation.sh

Arguments can be passed to the script file by specifying them after the command. See Arguments section below for more information.

Points To Note While Running The Script

  • The script may take some time to download and install the packages, therefore, you might want to run the program as root by using the sudo command.
  • If the script is not run as root or with sudo, the script may prompt the user to enter the password again.
  • It is also advised to not use the system while the script is running to ensure that the installation of packages and configuration of systems and applications do not get interfered.
  • If there is a power or internet connection interruption, the script can be re-run again.
  • If the script fails, please check the console log and the log file under /tmp/DAK404-OpenSUSE-Setup.log

Arguments

The OpenSUSE_Installation.sh script accepts arguments to perform additional installs and configurations to the system. The following shall explain about the arguments that the script accepts.

Argument Description
codecs-packman Installs codecs from Packman repository
codecs-main Installs codecs from Repository Main (OSS)
codecs-opi Installs OPI and codecs from OPI
codecs-vlc Installs codecs from official VLC repository
discord Installs Discord using my Script
openRGB Installs and sets up openRGB
gigabyte-sleep-fix Fixes issues with Gigabyte systems that do not go to sleep
personalize Installs themes, sound themes and wallpapers
remove-flatpak Removes flatpak and flatpak applications

Running Other Scripts

To run the other scripts, please use the following syntax:

Online Mode:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/DAK404/OpenSUSE-Setup-Scripts/main/<SCRIPT_NAME>.sh)"

Offline Mode:

sh <SCRIPT_NAME>.sh

Note

Substitute <SCRIPT_NAME> with a valid script name.

Clone this wiki locally