View Source

h4. Steps to review and perform before installing DCC on Linux: [ServerBackup:DCC installation prerequisites].

Unlike Server Backup Manager products that are installed in one step, Data Center Console (DCC) requires some configuration *prior* to installation as well as some additional manual steps *after* the initial install of the software package.


Use the following instructions to install and configure Data Center Console on Linux.

----
{toc:location=top|maxLevel=3|minLevel=3|type=flat|separator=pipe|style=border:1}

----
h3. Installing Data Center Console on Linux

There are two ways of installing Data Center Console on Linux - automatic from repository and manual. Before installing Data Center Console, make sure your machine matches the following recommended system requirements:
* *Operating System*: 64-bit only, Linux 2.6
* *Physical Memory*: 4 GB
* *Free Disk Space*: Not less than 10 GB
{note:title=Notice}You should install Data Center Console on an independent host that does not have a backup manager installed.
{note}

h4. Automatic installation on CentOS

1. Open the new file {{/etc/yum.repos.d/r1soft.repo}} in your favorite Linux text editor: {{vim}}, {{emacs}}, {{pico}}, or {{mcedit}}.

{code}vim /etc/yum.repos.d/r1soft.repo{code}
!dcc-repo.png|border=1!
 
2. Insert the following text into the file:

{code}[r1soft]
name=R1Soft Repository Server
baseurl=http://repo.r1soft.com/yum/stable/$basearch/
enabled=1
gpgcheck=0{code}

{note:title=Tip}If you do not know how to work with text editors in a Linux SSH session, run the following command:
{{cat >}} {{/etc/yum.repos.d/r1soft.repo}}
Paste the string from the clipboard and press Ctrl-D.

!dcc-cat.png|border=1!
{note}
As a result, the content of the file {{/etc/yum.repos.d/r1soft.repo}} will look like the following:
!repository.png|border=1!

3. Save the file and exit.

4. Execute the following command to install Data Center Console.

{code}yum install serverbackup-datacenter-console{code}
!install-dcc.png|border=1!
 

5. Type *y* to confirm the download.

!dcc-y.png|border=1!


h4. Automatic installation on Debian or Ubuntu

1. Configure APT repository, and then download and install the R1Soft apt gpg key by executing the following commands:

{code}echo deb http://repo.r1soft.com/apt stable main >> /etc/apt/sources.list
wget http://repo.r1soft.com/r1soft.asc
apt-key add r1soft.asc

{code}
!echo.png|border=1!
 
2. Download repository metadata into the local cache for faster search by executing the following command:

{code}apt-get update

{code}

 
3. Install Data Center Console by executing the following command:

{code}apt-get install serverbackup-datacenter-console{code}

!apt-get-dcc.png|border=1!

!apt-get.png|border=1!

h4. Manual installation on CentOS

1. Extract the downloaded archive with the following command:

{code}unzip ServerBackup-DataCenter-Console.zip{code}

!unzip-dcc1.png|border=1!

The extracted archive contains two folders: one with {{.deb}} packages (in our case, "*deb-linux64*") and one with RPM packages ("*rpm-linux64*").

2. On CentOS, change the working directory to the one containing RPM packages:

{code}cd rpm-linux64
{code}

3. After changing the working directory, install Data Center Console by executing the command:


{code}rpm -i *.rpm {code}

!rpm-dcc.png|border=1!



h4. Manual installation on Debian or Ubuntu

1. Extract the downloaded archive with the following command:
\\

{code}unzip ServerBackup-DataCenter-Console.zip
{code} !unzip-dcc.png|border=1!\\
\\
The extracted archive contains two folders: one with {{.deb}} packages (in our case, "*deb-linux64*") and one with RPM packages ("*rpm-linux64*").

2. On Debian or Ubuntu, change working directory to the one containing {{.deb}} packages:

{code}cd deb-linux64
{code}

3.  After changing the working directory, install Data Center Console by executing the following command:
{code}dpkg -i *.deb
{code}

4. Perform the following steps before launching Data Center Console.

!cd-deb.png|border=1!

----
h3. Installing MySQL Java connector

Next, you need to add a JBDC connector. 


1. Download the MySQL Connector file using the following {{wget}} command:

{code}wget http://mysql.llarian.net/Downloads/Connector-J/mysql-connector-java-5.1.22.zip{code}
!wget-connector.png|border=1!
 

{note:title=Notice}
When you install Data Center Console, newer versions than used in these examples may be available. Using the latest version is recommended.
{note}
2. Unpack the downloaded archive:

{code}unzip mysql-connector-java-5.1.22.zip{code}

!unzip-mysql-con.png|border=1!

3. Copy the {{jar}} file to the configuration folder:

{code}cp mysql-connector-java-5.1.22/mysql-connector-java-5.1.22-bin.jar /usr/sbin/r1soft-datacenter-console/conf/database-drivers{code}

----
h3. Configuring database properties

1. Open the {{/usr/sbin/r1soft-datacenter-console/conf/server.properties}} file in your favorite Linux text editor: {{vim}}, {{emacs}}, {{pico}}, or {{mcedit}}.

{code}vim /usr/sbin/r1soft-datacenter-console/conf/server.properties{code}

2. Replace the database name, <username>, and <password> fields with the relevant values for your system.

!db-name.png|border=1!

3. Save the file and exit.

----
h3. Starting the Data Center Console

1. Run the following command to start Data Center Console:
{code}/etc/init.d/cdp-console start{code}
!console-start.png|border=1!

2. Check the log file to verify that Data Center Console has started successfully:
{code}tail -f /usr/sbin/r1soft-datacenter-console/log/server.log{code}
!tail-dcc.png|border=1!

----
h3. Accessing Data Center Console for the first time

1. Open a Web browser and enter the following URL:

{code}http://localhost:8080{code}

2. In the login form, enter the default username ("admin") and password ("admin"), and then click *Login*.

!bas.png!

{excerpt:hidden=true}Instructions on how to install and configure the Data Center Console on Linux.{excerpt}