Schort is an open-source URL shortener that lets you easily shorten any URL. In this tutorial, we will guide you through the installation process of Schort on OpenBSD.
Before proceeding with the installation process, make sure that your system meets the following prerequisites:
Follow these steps to install Schort on your OpenBSD system:
sudo git clone https://github.com/sqozz/schort.git
cd schort
sudo pkg_add rust postgresql-server
sudo su - _postgresql -c "/usr/local/bin/initdb -D /var/postgresql/data"
sudo rcctl enable postgresql; sudo rcctl start postgresql
sudo vi /var/postgresql/data/pg_hba.conf
Add the following line at the end of the file:
# Schort
local schort schort trust
Save and close the file.
sudo -u _postgresql createuser --interactive
Enter name of role to add: schort
Shall the new role be a superuser? (y/n) y
sudo -u _postgresql createdb -O schort schort
sudo cp .env.example .env
sudo vi .env
Update the file with the following values:
DATABASE_URL=postgres://schort@localhost/schort
Save and close the file.
sudo cargo run
http://localhost:3000/
in your web browser.Congratulations! You have successfully installed and set up Schort on your OpenBSD system.
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!