Setting a Git SCM server in Drobo is pretty easy and below instructions will guide you to configure it.
First step is to intstall DropBear SSH client to configure Git SCM on Drobo. To install DroboBear, please follow the below instructions,
- Login to Drobo NAS device
- Click DroboApps
- Choose System Utilities
- 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
2. To Initialize Git Repository
3. To adding files type below command
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.
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