Compartilhar via


Offline installation of R Server 9.1 for Linux

Looking for the latest release? See Machine Learning Server for Linux installation

By default, installers connect to Microsoft download sites to get required and updated components. If firewall restrictions or limits on internet access prevent the installer from reaching these sites, you can download individual components on a computer that has internet access, copy the files to another computer behind the firewall, manually install prerequisites and packages, and then run setup.

If you previously installed version 9.0.1, it will be replaced with the 9.1 version. An 8.x version can run side-by-side 9.x, unaffected by the new installation.

System requirements

  • Operating system must be a supported version of Linux on a 64-bit with x86-compatible architecture (variously known as AMD64, Intel64, x86-64, IA-32e, EM64T, or x64 chips). Itanium chips (also known as IA-64) are not supported. Multiple-core chips are recommended.

  • Memory must be a minimum of 2 GB of RAM is required; 8 GB or more are recommended.

  • Disk space must be a minimum of 500 MB.

  • An internet connection. If you do not have an internet connection, for the instructions for an offline installation.

  • A package manager (yum for RHEL systems, zypper for SLES systems)

  • Root or super user permissions

The following additional components are included in Setup and required for R Server.

  • Microsoft R Open 3.3.3
  • Microsoft .NET Core 1.1 for Linux (required for mrsdeploy and MicrosoftML use cases)

Download R Server dependencies

From an internet-connected computer, download Microsoft R Open (MRO) and .NET Core for Linux.

MRO provides the R distribution (base R language and script support) used by R Server. R Server setup checks for this specific distribution and won't use alternative distributions. MRO can co-exist with other distributions of R on your machine, but additional configuration could be required to make a particular version the default. For more information, see Manage an R Server installation on Linux.

The .NET Core component is required for MicrosoftML (machine learning). It is also required for mrsdeploy, used for remote execution, web service deployment, and configuration of R Server as web node and compute node instances.

Component Version Download Link Notes
Microsoft R Open 3.3.3 Direct link to microsoft-r-open-3.3.3.tar.gz Use the link provided to get the required component. Do NOT go to MRAN and download the latest or you could end up with the wrong version.
Microsoft .NET Core 1.1 .NET Core download site Multiple versions of .NET Core are available. Be sure to choose from the 1.1.1 (Current) list.

The .NET Core download page for Linux provides gzipped tar files for supported platforms. In the Runtime column, click x64 to download a tar.gz file for the operating system you are using. The file name for .NET Core is dotnet-<linux-os-name>-x64.1.1.1.tar.gz.

Download R Server installer

You can get the gzipped installation file from one of the following download sites.

Site Edition Details
Visual Studio Dev Essentials Developer (free) This option provides a zipped file, free when you sign up for Visual Studio Dev Essentials. Developer edition has the same features as Enterprise, except it is licensed for development scenarios.
Volume Licensing Service Center (VLSC) Enterprise Sign in, search for "SQL Server 2016 Enterprise edition", and then choose a per-core or CAL licensing option. A selection for R Server for Linux 9.1 is provided on this site.

For downloads from Visual Studio Dev Essentials:

  1. Click Join or access now to sign up for download benefits.
  2. Check the URL to verify it changed to https://my.visualstudio.com/.
  3. Click Downloads to search for R Server.
  4. Click Downloads for a specific version to select the platform.

Download page on Visual Studio benefits page

Download package dependencies

R Server has package dependencies for various platforms. The list of required packages can be found at Package dependencies for Microsoft R Server.

You can list existing packages in /usr/lib64 to see what is currently installed. It's common to have a very large number of packages. To zero in on specific packages, you can do a partial string search with this command syntax: ls -l /usr/lib64/libpng*

Note

It's possible your Linux machine already has package dependencies installed. By way of illustration, on a few systems, only libpng12 had to be installed.

Transfer files

Use a tool like SmarTTY or PuTTY or another mechanism to upload or transfer files to a writable directory, such as /tmp, on your internet-restricted server. Files to be transferred include the following:

  • dotnet-<linux-os-name>-x64.1.1.1.tar.gz
  • microsoft-r-open-3.3.3.tar.gz
  • en_microsoft-r-server-910_for_linux_x64_10323878.tar.gz
  • any missing packages from the dependency list

Install package dependencies

On the target system which is disconnected from the internet, run rpm -i <package-name> to install any packages that are missing from your system (for example, rpm -i libpng12-1-2-50-10.el7.x86_64.rpm).

For an offline installation of .NET Core, manually create its directory path, unpack the distribution, and then set references so that the component can be discovered by other applications.

  1. Log in as root or as a user with super user privileges (sudo -s).

  2. Switch to the /tmp directory (assuming it's the download location) and execute ls to list the files as a verification step. You should see the tar.gz files you transferred earlier.

  3. Make a directory for .NET Core:

    [root@localhost tmp] $ mkdir /opt/dotnet

  4. Unpack the .NET Core redistribution into the /opt/dotnet directory:

    [root@localhost tmp] $ tar zxvf dotnet-<linux-os-name>-x64.1.1.tar.gz -C /opt/dotnet

  5. Set the symbolic link for .NET Core to user directories:

    [root@localhost tmp] $ ln -s /opt/dotnet/dotnet /usr/bin/dotnet

Unpack MRS distribution and copy MRO

Next, unpack the R Server distribution and copy the gzipped MRO distribution to the MRS91Linux folder.

Important

Do not unpack MRO yourself. The installer looks for a gzipped tar file for MRO.

  1. Unpack the MRS gzipped file.

    [root@localhost tmp] $ tar zxvf en_microsoft_r_server_910_for_linux_x64_10323878.tar.gz

  2. A new folder called MRS91Linux is created under /tmp. This folder contains files and packages used during setup. Copy the gzipped MRO tar file to the new MRS91Linux folder containing the installation script (install.sh).

    [root@localhost tmp] $ cp microsoft-r-open-3.3.3.tar.gz /tmp/MRS91Linux

Run the MRS install script

R Server for Linux is deployed by running the install script with no parameters. At this point, you could opt for unattended install to bypass EULA prompts.

  1. Switch to the MRS91Linux directory containing the installation script:

    [root@localhost tmp] $ cd MRS91Linux

  2. Run the script. To include the pre-trained machine learning models for MicrosoftML, append the -m switch.

    [root@localhost MRS91Linux] $ bash install.sh -m

  3. When prompted to accept the license terms for Microsoft R Open, click Enter to read the EULA, click q when you are finished reading, and then click y to accept the terms.

  4. Repeat the key sequence for EULA acceptance for Microsoft R Server.

Installer output shows the packages and location of the log file.

Verify installation

  1. List installed MRS packages:

    • On RHEL: rpm -qa | grep microsoft
    • On Ubuntu: apt list --installed | grep microsoft
  2. Once you have a package name, you can obtain verbose version information. For example:

    • On RHEL: $ rpm -qi microsoft-r-server-packages-9.1.x86_64
    • On Ubuntu: $ dpkg --status microsoft-r-server-packages-9.1.x86_64

Partial output is as follows (note version 9.1.0):

	  Name        : microsoft-r-server-packages-9.1     Relocations: /usr/lib64
	  Version     : 9.1.0                               Vendor: Microsoft
	  . . .

Start Revo64

As another verification step, run the Revo64 program. By default, Revo64 is linked to the /usr/bin directory, available to any user who can log in to the machine:

  1. From /Home or any other working directory:

    [<path>] $ Revo64

  2. Run an R function, such as rxSummary on a dataset. Many sample datasets, such as the iris dataset, are ready to use because they are installed with the software:

    > rxSummary(~., iris)

    Output from the iris dataset should look similar to the following:

  Rows Read: 150, Total Rows Processed: 150, Total Chunk Time: 0.001 seconds
  Computation time: 0.005 seconds.
  Call:
  rxSummary(formula = ~., data = iris)

  Summary Statistics Results for: ~.
  Data: iris
  Number of valid observations: 150

  Name         Mean     StdDev    Min Max ValidObs MissingObs
  Sepal.Length 5.843333 0.8280661 4.3 7.9 150      0
  Sepal.Width  3.057333 0.4358663 2.0 4.4 150      0
  Petal.Length 3.758000 1.7652982 1.0 6.9 150      0
  Petal.Width  1.199333 0.7622377 0.1 2.5 150      0

  Category Counts for Species
  Number of categories: 3
  Number of valid observations: 150
  Number of missing observations: 0

  Species    Counts
  setosa     50
  versicolor 50
  virginica  50

To quit the program, type q() at the command line with no arguments.

Unattended install options

You can perform a silent install to bypass prompts during setup. In /tmp/MRS91Linux, run the install script with the following parameters:

[root@localhost MRS91Linux] $ install.sh -a -s

Additional flags are available, as follows:

flag Option Description
-a --accept-eula Accept all end user license agreements.
-d --download-mro Download microsoft r open for distribution to an offline system.
-m --models Install Microsoft ML models.
-r --no-dotnet-core Opt out of installing .NET Core (required for mrsdeploy and MicrosoftML)
-s --silent Perform a silent, unattended install.
-u --unattended Perform an unattended install.
-h --help Print this help text.

Enable Remote Connections and Analytic Deployment

The server can be used as-is if you install and use an R IDE on the same box, but to benefit from the deployment and consumption of web services with Microsoft R Server, then you must configure R Server after installation to act as a deployment server and host analytic web services. Possible configurations are a one-box setup or an enterprise setup. Doing so also enables remote execution, allowing you to connect to R Server from an R Client workstation and execute code on the server.

What's Installed with R Server

The Microsoft R Server setup installs the R base packages and a set of enhanced and proprietary R packages that support parallel processing, improved performance, and connectivity to data sources including SQL Server and Hadoop. In contrast with R Client, R Server supports much larger data sets and distributed workloads.

Note

By default, telemetry data is collected during your usage of R Server. To turn this feature off, use the RevoScaleR package function rxPrivacyControl(FALSE). To turn it back on, change the setting to TRUE.

Next Steps

Review the best practices in Manage your R Server for Linux installation for instructions on how to set up a local package repository using MRAN or miniCRAN, change file ownership or permissions, set Revo64 as the de facto R script engine on your server.

See Also

Introduction to R Server What's New in R Server Supported platforms
Known Issues
Microsoft R Getting Started Guide
Configure R Server to operationalize analytics