From 31ebd41624c00f9d472e37f382526108269465f7 Mon Sep 17 00:00:00 2001 From: Olivier Humbert Date: Sat, 28 Nov 2020 16:19:23 +0100 Subject: [PATCH 1/3] Update en-Linux-Install-Script.md --- wiki/en/en-Linux-Install-Script.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/wiki/en/en-Linux-Install-Script.md b/wiki/en/en-Linux-Install-Script.md index 3d951300b..ba43cc20e 100644 --- a/wiki/en/en-Linux-Install-Script.md +++ b/wiki/en/en-Linux-Install-Script.md @@ -10,13 +10,13 @@ permalink: "/wiki/Linux-Client-Install-Script" If you plan to be installing Jamulus on many Linux machines, you may want to try this script. -The following example was tested on Linux Mint and combins all the commands above into one script for Ubuntu/Linux Mint. To incorporate the different command for different Linux distributions variables define the distribution and the release for which the installation script should be performed. Example focuses on Ubuntu with release 18.04 as example. So the suggested script name for the release is e.g. `install4ubuntu18_4.sh`. The script commands are generic so that the installation could also be modified so that they work on other linux distributions. +The following example was tested on Linux Mint and combines all the commands above into one script for Ubuntu/Linux Mint. To incorporate the different commands for different Linux distributions, variables define the distribution and the release for which the installation script should be performed. The following focuses on Ubuntu with release 18.04 as example. So the suggested script name for the release is e.g. `install4ubuntu18_4.sh`. The script commands are generic so that the installation could also be modified so that they work on other linux distributions. ### Installation dependent on Linux Distribution The following script call different installation commands dependent on the Linux distribution. -The variable `DISTRO` defines which commands are executed. Set the variable dependent on your Linux distribution you are using. +The variable `DISTRO` defines which commands are executed. Set the variable dependent on the Linux distribution you are using. * `DISTRO="Ubuntu` for a Ubuntu or Linux Mint -* `DISTRO="Debian` for a Debian or Raspian Linux +* `DISTRO="Debian` for a Debian or Raspbian Linux * `DISTRO="Fedora` for a Fedora Linux Furthermore if the installation is dependent of the release the variable `LINVERSION` is introduced but is currently not used. In the Ubuntu if statement there is an example how version dependent installation calls can be performed. ```bash @@ -28,14 +28,14 @@ fi The variable `LINVERSION` is currently not used in the following script but it is just a demo how to use the version specific installation commands. ### Adaptation of the Installation Script -If you want to create an installation script for debian just copy the script `install4ubuntu18_4.sh` to `install4debian10_6.sh` and modify the distro variables to +If you want to create an installation script for Debian just copy the script `install4ubuntu18_4.sh` to `install4debian10_6.sh` and modify the DISTRO variable to ```bash #!/bin/sh # set DISTRO either to "Ubuntu", "Debian" or "Fedora" DISTRO="Debian" LINVERSION="10.6" ``` -After that test the installation on debian and modify the commands so that the installation script works on Debian. Please share working installation scripts in this Wiki. The maintainer of this repository might add a folder in this repository `/install_scripts` for working installation scripts. Create a pull request for new installation scripts or create an issue with a request to add a documented and tested installation script to this repository. +After that test the installation on Debian and modify the commands so that the installation script works on Debian. Please share working installation scripts in this Wiki. The maintainer of this repository might add a folder in this repository `/install_scripts` for working installation scripts. Create a pull request for the new installation scripts or create an issue with a request to add a documented and tested installation script to this repository. ### The Installation Script Copy the following installation script into a file and save it to the filename `install4ubuntu18_4.sh`. After saving the file e.g. in your `Download` directory change to the directory and call the following script with `sh install4ubuntu18_4.sh`. @@ -124,7 +124,7 @@ fi The script can ask in the very beginning for which linux distribution the installation script should be called. This can be tested with the command `lsb_release` -With the `lsb_release` command the command returns the distribution specific information about a Linux distro. +The `lsb_release` command returns the distribution specific information about a Linux distro. With a `grep` command with regular expression the variable `DISTRO` and `LINVERSION`. E.g. the Ubuntu based systems return with the command the following information. ```bash From b6fe65f5229662ffd297869691ba06a7fa4a6b86 Mon Sep 17 00:00:00 2001 From: Olivier Humbert Date: Sat, 28 Nov 2020 17:00:08 +0100 Subject: [PATCH 2/3] Update en-Linux-Install-Script.md --- wiki/en/en-Linux-Install-Script.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wiki/en/en-Linux-Install-Script.md b/wiki/en/en-Linux-Install-Script.md index ba43cc20e..399ad0628 100644 --- a/wiki/en/en-Linux-Install-Script.md +++ b/wiki/en/en-Linux-Install-Script.md @@ -15,10 +15,10 @@ The following example was tested on Linux Mint and combines all the commands abo ### Installation dependent on Linux Distribution The following script call different installation commands dependent on the Linux distribution. The variable `DISTRO` defines which commands are executed. Set the variable dependent on the Linux distribution you are using. -* `DISTRO="Ubuntu` for a Ubuntu or Linux Mint -* `DISTRO="Debian` for a Debian or Raspbian Linux -* `DISTRO="Fedora` for a Fedora Linux -Furthermore if the installation is dependent of the release the variable `LINVERSION` is introduced but is currently not used. In the Ubuntu if statement there is an example how version dependent installation calls can be performed. +* `DISTRO="Ubuntu"` for a Ubuntu or Linux Mint +* `DISTRO="Debian"` for a Debian or Raspbian Linux +* `DISTRO="Fedora"` for a Fedora Linux +Furthermore if the installation is dependent of the release the variable `LINVERSION` is introduced but is currently not used. In the Ubuntu `if` statement there is an example how version dependent installation calls can be performed. ```bash if [ "$LINVERSION" = "18.4" ] then From 19019962459c6244096ee3fa98e517d32e191dfc Mon Sep 17 00:00:00 2001 From: Olivier Humbert Date: Sat, 28 Nov 2020 19:56:20 +0100 Subject: [PATCH 3/3] Update en-Linux-Install-Script.md --- wiki/en/en-Linux-Install-Script.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wiki/en/en-Linux-Install-Script.md b/wiki/en/en-Linux-Install-Script.md index 399ad0628..c24073b8a 100644 --- a/wiki/en/en-Linux-Install-Script.md +++ b/wiki/en/en-Linux-Install-Script.md @@ -28,14 +28,14 @@ fi The variable `LINVERSION` is currently not used in the following script but it is just a demo how to use the version specific installation commands. ### Adaptation of the Installation Script -If you want to create an installation script for Debian just copy the script `install4ubuntu18_4.sh` to `install4debian10_6.sh` and modify the DISTRO variable to +If you want to create an installation script for Debian just copy the script `install4ubuntu18_4.sh` to `install4debian10_6.sh` and modify the distro variables to ```bash #!/bin/sh # set DISTRO either to "Ubuntu", "Debian" or "Fedora" DISTRO="Debian" LINVERSION="10.6" ``` -After that test the installation on Debian and modify the commands so that the installation script works on Debian. Please share working installation scripts in this Wiki. The maintainer of this repository might add a folder in this repository `/install_scripts` for working installation scripts. Create a pull request for the new installation scripts or create an issue with a request to add a documented and tested installation script to this repository. +After that test the installation on Debian and modify the commands so that the installation script works on Debian. Please share working installation scripts in this Wiki. The maintainer of this repository might add a folder in this repository `/install_scripts` for working installation scripts. Create a pull request for new installation scripts or create an issue with a request to add a documented and tested installation script to this repository. ### The Installation Script Copy the following installation script into a file and save it to the filename `install4ubuntu18_4.sh`. After saving the file e.g. in your `Download` directory change to the directory and call the following script with `sh install4ubuntu18_4.sh`.