Goshorly is a lightweight, command-line URL shortener written in Go. In this tutorial, we will learn how to install goshorly on OpenBSD.
Before we begin, you will need:
Open a terminal window on your OpenBSD machine.
Install git by running the following command:
sudo pkg_add git
Clone the goshorly repository from the git server by running the following command:
git clone https://gitea.hackmi.ch/Phil/goshorly.git
Change into the goshorly directory:
cd goshorly
Build the goshorly binary by running the following command:
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
go build -o goshorly cmd/goshorly/main.go
This will build the binary in the current directory.
Test the binary by running the following command:
./goshorly --help
If it prints out the help section, it means that the binary was built successfully.
Optional: If you want to install goshorly system-wide, you can move the binary to the /usr/local/bin
directory:
sudo mv goshorly /usr/local/bin
Congratulations! You have successfully installed goshorly on OpenBSD.
In this tutorial, we learned how to install goshorly on OpenBSD. Goshorly is a simple, yet powerful URL shortener that can be used to shorten URLs for sharing on social media, email, and other platforms.
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!