Installation of FileCloud on Linux Using the Repository

Beginning in FileCloud 22.1, Linux installation and upgrades are moving to a new repository system. 

The OS’s we currently support are: 
Ubuntu 18.04 LTS (FileCloud EOL 23.1) 

Ubuntu 20.04 LTS  

CentOS 7.x 

RHEL 7.x 

RHEL 8.x 

Note: FileCloud no longer supports Debian installation and upgrade; we recommend installing in Ubuntu 20.04 LTS or migrating your existing installation to Ubuntu 20.04 LTS.

Important:

If the Linux server is not in a isolated environment where regular users are prevented from using SSH login, we recommend enabling authentication for the MongoDB service to prevent unauthorized access through port forwarding.

For FileCloud to be fully functional, specific versions of packages must be installed on Linux Distros. 
In some cases, customers have updated packages using the apt upgrade command, and when older versions of packages were removed and updated, FileCloud was no longer fully functional.
Therefore we strongly recommend that you make a backup or snapshot of the server before performing a Linux package update. 

Installation instructions for each operating system

Installation for Ubuntu 20.04 LTS

  1. Add the 22.1 repo URLs.

    wget -qO -  https://repo.filecloudlabs.com/static/pgp/filecloud.asc  | sudo apt-key add -
    wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
    echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
    echo "deb [ arch=amd64 ] https://repo.filecloudlabs.com/apt/ubuntu focal/filecloud/22.1 main" | sudo tee /etc/apt/sources.list.d/filecloud.list
    
     apt-get update -y

  2. Install the Apache and MongoDB servers.

    apt-get install apache2 mongodb-org -y
    apt install -y --no-install-recommends php8.1*
    apt-get install filecloud -y

NOTE: Instead of the last command above, use the following to install FileCloud silently.  

ACCEPT_EULA=Y  apt-get install filecloud -y

Installation for Ubuntu 18.04 LTS

  1. Add the 22.1 repo URLs.

    wget -qO -  https://repo.filecloudlabs.com/static/pgp/filecloud.asc  | sudo apt-key add -
    wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
    echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
    echo "deb [ arch=amd64 ] https://repo.filecloudlabs.com/apt/ubuntu bionic/filecloud/22.1 main" | sudo tee /etc/apt/sources.list.d/filecloud.list
    
    apt-get update -y



  2. Install the Apache and MongoDB servers.

    apt-get install apache2 mongodb-org -y
    apt install --no-install-recommends php8.1* -y
    apt-get install filecloud -y

NOTE: Instead of the last command above, use the following to install FileCloud silently.  

ACCEPT_EULA=Y  apt-get install filecloud -y

Installation for CentOS 7/RHEL 7

  1. Add the 22.1 repository URLs.

    cat <<EOF > /etc/yum.repos.d/filecloud-22.1.repo
    [filecloud-22.1]
    name=FileCloud 22.1 Repository
    baseurl=https://repo.filecloudlabs.com/yum/redhat/\$releasever/filecloud/22.1/x86_64/
    gpgcheck=1
    enabled=1
    gpgkey=https://repo.filecloudlabs.com/static/pgp/filecloud.asc
    EOF
    
    
    cat <<EOF > /etc/yum.repos.d/mongodb-org-4.4.repo
    [mongodb-org-4.4]
    name=MongoDB Repository
    baseurl=https://repo.mongodb.org/yum/redhat/\$releasever/mongodb-org/4.4/x86_64/
    gpgcheck=1
    enabled=1
    gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc
    EOF
    
    yum update -y




  2. Install FileCloud

    yum install yum-utils -y
    yum-config-manager --enable filecloud-22.1
    yum install mongodb-org -y
    yum install filecloud -y


NOTE: Instead of the last command above, use the following to install FileCloud silently.  

ACCEPT_EULA=Y  yum install filecloud -y

Installation for RHEL 8

  1. Disable the default modules from the RHEL repository.

    dnf module disable httpd -y
    dnf module disable php -y
  2. Add the 22.1 repository URLs.

    cat <<EOF > /etc/yum.repos.d/filecloud-22.1.repo
    [filecloud-22.1]
    name=FileCloud 22.1 Repository
    baseurl=https://repo.filecloudlabs.com/yum/redhat/\$releasever/filecloud/22.1/x86_64/
    gpgcheck=1
    enabled=1
    gpgkey=https://repo.filecloudlabs.com/static/pgp/filecloud.asc
    module_hotfixes=true
    EOF
    
    cat <<EOF > /etc/yum.repos.d/mongodb-org-4.4.repo
    [mongodb-org-4.4]
    name=MongoDB Repository
    baseurl=https://repo.mongodb.org/yum/redhat/\$releasever/mongodb-org/4.4/x86_64/
    gpgcheck=1
    enabled=1
    gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc
    EOF
  3. Install FileCloud.

    yum update -y
    yum install yum-utils -y
    yum-config-manager --enable filecloud-22.1
    yum install mongodb-org -y
    yum install filecloud -y


NOTE: Instead of the last command above, use the following to install FileCloud silently.  

ACCEPT_EULA=Y  yum install filecloud -y