📜 ⬆️ ⬇️

SparkleShare + SCM-Manager: A very simple alternative to DropBox for local network under Windows

This guide will tell you how in just 10 minutes to create a simple, convenient and reliable analog of Dropbox, which will be under your complete control and allow you to share files with colleagues on the local network.

Distributions

Before you start, download the following distributions:

SparkleShare is a client for the Git repository, which provides automatic synchronization of folders on different computers.
SCM-Server is a very simple Git-server setup. Until recently, it was the complexity of setting up a Git-server under Windows that made using SparkleShare very difficult (for a local network), but now you can set up your Git-server in a few clicks.

Install SparkleShare, and unzip the archive from the SCM-Server to any convenient folder, for example “D: \ scm-server \” as in my example.

Git server setup

Run the file D: \ scm-server \ bin \ scm-server.bat
If everything goes well, the server will be accessible at http: // localhost: 8080 or http: // <hostname>: 8080
')
If the website is not available, try temporarily disabling Firewall
If Port 8080 is busy, go to the configuration file D: \ scm-server \ conf \ server-config.xml
and correct the line to a free port:
<Set name="port"> <SystemProperty name="jetty.port" default="8080" /> </Set> 

And run scm-server.bat again

Now you can go to the administration panel.

As it is written in the README.txt file, use the login / password to log in:

scmadmin / scmadmin

On the “Repositories” tab - create a new “myrepo” repository as in the picture:


Then the line will appear:
Checkout: git clone scmadmin @ localhost: 8181 / scm / git / myrepo


For SparkleShare, we need to modify this line by adding a user password and replacing localhost with the network name of the git server. In my case, my car's network name is dz :
http: // scmadmin: scmadmin @ dz : 8181 / scm / git / myrepo

Client setup

Run SparkleShare and locate the icon in the Windows system tray. Select the menu item "Add hosted project"


Select the item “My Own server” and divide the repository address into two parts:

Address: http: // scmadmin: scmadmin @ dz: 8181 /
Remote Path: / scm / git / myrepo



After clicking on the Add button, the repository adding process window will appear. It is very important to note here that an empty repository should be added within a few seconds, and if the window “hangs”, then most likely the application cannot reach the server.



Well, at the end of the process, you can open the folder from the system tray, and use it as you do with the Dropbox alternative.



In conclusion

Since the file storage is based on the Git repository, you can optionally configure Gitorious or GitLab to view folders through the web interface. In general, everything that works with git - now you can fasten it to your file storage.

Read more:

Source: https://habr.com/ru/post/186270/


All Articles