Featured image of post Build your own git server on WD MyCloud EX2

Build your own git server on WD MyCloud EX2

If you want to build your own server to create and manage a private repositories and if you have a WD MyCloud EX2

If you want to build your own server to create and manage a private repositories and if you have a WD MyCloud EX2, this post may be helpful to do it in a painless manner.

Fist of all, you need to enable the SSH access on your server, and install the Entware software.

After you have installed the Entware software, connect via SSH to your NAS and do the magic:

ln -s /opt/bin/opkg /usr/bin/opkg
opkg install git

Yes! Now you have installed the git software in your NAS.

Now we should make some syslinks to do git clone, upload, etc without errors, just execute these commands:

ln -s /opt/bin/git /usr/bin/git
ln -s /opt/bin/git-receive-pack /usr/bin/git-receive-pack
ln -s /opt/bin/git-shell /usr/bin/git-shell
ln -s /opt/bin/git-upload-archive /usr/bin/git-upload-archive
ln -s /opt/bin/git-upload-pack /usr/bin/git-upload-pack

Finally, you can use the WD MyCloud as a git server.

Built with Hugo