I recently installed an Owncast server and wanted to share my experience. Here it is:
# What is owncast?
Owncast is a streaming server that you can selfhost, a *Twicht in a box* as the developers call it.
You host owncast on your server (a small VM with good downlink is enough) and can stream your own own content like you would do on Twicht, YouTube etc...
It has a chat, a admin panel for customization and thats it! You don't need more to e.g. stream while you are playing minecraft or want to share a talk.
# Getting started
Get the latest release on [GitHub](https://github.com/owncast/owncast/releases) by using
Make sure to adjust the server name and SSL certificats (I will not go into detail on how to obtain them, but [feel free to ask me!](https://hyteck.de/about/)).
# Start server
Now start owncast to test
```
$ cd /var/www/owncast
$ ./owncast/owncast
```
and visit https://yourdomain.org! If everything works you should see your site now. By visiting https://yourdomain.org/admin you can configure your server. The default credentials are `admin` and your stream key which is `abc123`. Change this immediately!
Before you configure, let's make sure this runs whenever your server starts. Goback in the terminal and cancel with `Ctrl+C`.
# Run as system service
You want to install owncast as a system service. Therfore create `/etc/systemd/system/owncast.service` with the following content:
```
[Unit]
Description=Owncast
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=1
WorkingDirectory=/var/www/owncast
ExecStart=/var/www/owncast/owncast
[Install]
WantedBy=multi-user.target
```
Update the daemon with `systemctl daemon-reload` enable `systemctl enable owncast``and start with `systemctl start owncast`. Make sure everything is correct with `systemctl status owncast`.
# Configuration
You can now change back to yourdoiman.org/admin and configure, title, logo and more.
## Directory
If you start a stream and have directory enabled, Owncas will publish your activity, e.g. in the owncast RocketChat, on Twitter (by mentioning you if you gave Owncast your Twitter Handle) and in the Fediverse. Turn this of for testing!
# Streaming
You can now use [OBS](https://obsproject.com/) or similar software to start streaming. Got to settings and configure your server.
![Configuration in the OBS streaming tab. The service is set to Custom.. and the server to rtmp://stream.hyteck.de/live. The stream key is hidden](/uploads/stream_config.png)