Setup Git Server on Drobo 5N/5N2/B810N (NAS)

Setting a Git SCM server in Drobo is pretty easy and below instructions will guide you to configure it.

Install DropBear

First step is to intstall DropBear SSH client to configure Git SCM on Drobo. To install DroboBear, please follow the below instructions,

  1.  Login to Drobo NAS device
  2. Click DroboApps
  3. Choose System Utilities
  4. Click DropBear and install

 

Install Git SCM:

Next Step is to Install Git SCM. Please navigate to DroboApps section and install Git SCM

Find Network Network information

Next step is finding the IP address of the device. To find an IP address of the device, just navigate to Drobo Status and click Network Information drop-down.

SSH to the device:

Next step is to take a SSH connection of the device. To take SSH section, use PUTTY or other SSH tools. Just Enter IP address on Putty and choose port Number as 22 then click OK.

After a successful SSH, log in using your NAS Admin credentials. Please follow the instruction to configure the Git Server.

1. Navigate to your Share Folder (To be added to Git Repo ) and type below command

cd /mnt/DroboFS/Shares/Public/<YourGitFolder>

2. To Initialize Git Repository 

 /mnt/DroboFS/Shares/DroboApps/git/bin/git init

      3. To adding files type below command  

 /mnt/DroboFS/Shares/DroboApps/git/bin/git add

      4. To Commit Files

 /mnt/DroboFS/Shares/DroboApps/git/bin/git commit -m "Initial commit" -a

 

Add Environment Variable:

Instead of navigating every time into git directory, set the environment path to access git command from the shell directly.

The below command is for adding the environment variable for a temporary purpose. The variable will be destroyed once the machine is restarted.

export PATH=${PATH}:/mnt/DroboFS/Shares/DroboApps/git/bin/

Adding an environment variable for all users or permanently

1. Navigate to the below directory

sudo vi /etc/profile

      2. Replace the first line(export path) with below line

export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/mnt/DroboFS/Shares/DroboApps/git/bin/

Leave a Reply

avatar
  Subscribe  
Notify of
%d bloggers like this: