Sourcehut is a web-based software development platform that provides code hosting, mailing lists, continuous integration, and more. In this tutorial, we'll learn how to install Sourcehut on macOS.
Before we proceed, make sure you have the following:
$ brew install go openssh stunnel
$GOPATH
environment variable to a directory where you have write permission:$ echo "export GOPATH=\${HOME}/go" >> ~/.bash_profile
$ source ~/.bash_profile
scdoc
utility:$ git clone https://git.sr.ht/~sircmpwn/scdoc
$ cd scdoc
$ make && sudo make install
sr.ht
utility:$ go get git.sr.ht/~sircmpwn/sr.ht
${GOPATH}/bin
to your $PATH
:$ echo "export PATH=\${GOPATH}/bin:\${PATH}" >> ~/.bash_profile
$ source ~/.bash_profile
sr.ht
service:$ sr.ht serve
That's it! You should now be able to access the Sourcehut web interface by navigating to http://localhost:5000
in your web browser.
In this tutorial, we learned how to install Sourcehut on macOS. Now you can start using Sourcehut to host your code and collaborate with others. Happy coding!
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!