-
Notifications
You must be signed in to change notification settings - Fork 3
3B ‐ Running The Script
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.
The script can be run in 2 ways: Online method and offline 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.
-
bash -cshall tell the shell to run the command that follows in a new instance of the Bash shell. -
$(...)is for command substitution, where the output of the command inside the parenthesis will be used as an argument tobash -ccommand -
curl -fsSLis a command to download content from the specified URL. The URL in question shall point to the OpenSUSE-Setup-Scripts repository.-
-foption fails silently on server errors -
-soption enables silent mode, which does not show any progress bars or error messages -
-Soption will show error messages if-sis used -
-Loption shall follow redirects
-
- 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.
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.
- 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
sudocommand. - If the script is not run as
rootor withsudo, 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
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 |
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.