Before we start installing EpochTalk, make sure that your Ubuntu server is up-to-date and has the following packages installed:
The first step is to download EpochTalk from its official GitHub repository. You can do this by entering the following command in your terminal:
git clone https://github.com/epochtalk/epochtalk.git
Next, navigate to the EpochTalk directory that you just downloaded, and install the dependencies using npm:
cd epochtalk
npm install
EpochTalk uses PostgreSQL as its database, so you'll need to set up a PostgreSQL database and user for it. Here's how:
Log in to your PostgreSQL server:
sudo -i -u postgres
Create a new database and user:
createdb epochtalk
createuser epochtalk
Set a password for the new user:
psql
\password epochtalk
Enter and confirm a new password for the "epochtalk" user.
Grant the necessary privileges to the new user:
GRANT ALL PRIVILEGES ON DATABASE epochtalk TO epochtalk;
Now that PostgreSQL is set up, you'll need to configure EpochTalk to use it. You can do this by copying the default configuration file and editing it to suit your needs:
cp config/default.example.json config/default.json
nano config/default.json
Here are a few settings you'll need to change:
"database.host"
: Change this to localhost
since PostgreSQL is running on the same server."database.user"
and "database.password"
: Change these to the username and password you set up for the "epochtalk" user in Step 3."secrets.session"
: Change this to a unique, secret key.Save your changes and exit the text editor.
Next, run the following command to initialize the database:
./node_modules/.bin/db-migrate up
This will create the necessary database tables and structures.
Finally, start the EpochTalk server:
npm start
The server should be up and running now, and you should be able to access it by navigating to http://your-server-ip:8080
in your web browser.
Congratulations! You have successfully installed and configured EpochTalk on your Ubuntu server.
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!