Here's a step-by-step guide on how to install myDrive on OpenBSD from https://github.com/subnub/myDrive.
Update the packages using the following command:
$ doas pkg_add -u
Install the dependencies using the following command:
$ doas pkg_add -i go mariadb-server mariadb-client
Create a new database for myDrive using mariadb:
$ doas mysql_install_db
$ doas mysqld_safe &
$ doas mysql -u root -p
mysql> CREATE DATABASE mydrive;
mysql> GRANT ALL ON mydrive.* TO 'mydrive'@'localhost' IDENTIFIED BY 'password';
mysql> \q
Clone the myDrive repository from GitHub:
$ git clone https://github.com/subnub/myDrive.git
Build the go code:
$ cd myDrive
$ go build
Create a new configuration file myDrive.toml
:
[Server]
Port = ":3000"
Datastore = "mariadb"
MariaDBUser = "mydrive"
MariaDBPass = "password"
MariaDBHost = "localhost"
MariaDBDBName = "mydrive"
Start the server:
$ ./myDrive
The server should now be running on http://localhost:3000. You can visit http://localhost:3000 to access myDrive.
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!