Latest Upddate - 03/28/2026
===========================

Install Ubuntu according to my install instructions: https://ubuntu.retro-os.live/Install_Ubuntu.txt

Do these steps as root unless told otherwise... These steps have been tested on Ubuntu 24.04. Some steps may be different on other Linux distros.

Create the hotlineuser account:
	adduser hotlineuser
	vi /etc/sudoers
	# Add:
	hotlineuser    ALL=(ALL:ALL) ALL
	# Then :w!

Install my utilities:
	cd /home/hotlineuser
	wget https://hotline.retro-os.live/Hotline_Utils_Latest.zip
	unzip Hotline_Utils_Latest.zip
	rm Hotline_Utils_Latest.zip

Install the required perl modules:
	cd /home/hotlineuser/HotlineBackup
	git pull
	cd /home/hotlineuser/HotlineStartup
	git pull
	cd /home/hotlineuser/PullUpdates
	git pull
	cd /home/hotlineuser/HotlineManagement
	git pull
	./installdeps

Install the Go language:
        cd /home/hotlineuser
	wget https://hotline.retro-os.live/go1.22.5.linux-amd64.tar.gz
	tar xvzf go1.22.5.linux-amd64.tar.gz
	rm go1.22.5.linux-amd64.tar.gz
	mv go /usr/local

Set up mobius:
	cd /home/hotlineuser
	git clone https://github.com/jhalter/mobius.git
	mkdir HotlineFiles
	export PATH=/home/hotlineuser/bin:/home/hotlineuser/HotlineManagement:$PATH:/usr/local/go/bin
	cd /home/hotlineuser/mobius
	make server
	./mobius-hotline-server -init -config /home/hotlineuser/HotlineFiles/
	# Use ctrl-c to exit mobius

Set owner:
	chown -R hotlineuser:hotlineuser /home/hotlineuser

Switch to hotlineuser access:
	su - hotlineuser

Set up the crontab:
	crontab -e
	# And then add the next 4 lines to the end:
	@reboot /home/hotlineuser/bin/hotline start
	1 1 * * * /home/hotlineuser/HotlineBackup/hotlinebackup.pl
	59 23 * * * /home/hotlineuser/HotlineManagement/DownloadedFiles
	1 */12 * * * /home/hotlineuser/PullUpdates/check4update /dev/null 2>&1

Set the tools up:
	Go into HotlineBackup, HotlineManagement, and HotlineStartup
directories and follow the steps in the README.md files

Edit the config file for your settings:
	hmc
	- or directly:
	nano HotlineFiles/config.yaml

User accounts:

	The default installation includes two users:

	guest (no password)
	admin (default password "admin").

	User administration should be performed from a Hotline client. Avoid editing the files under the Users directory.

Edit the ~/bin/startmobius script to point to your certificates

Next you need to make sure the /etc/letsencrypt folders are readable by the
hotline user

Start the server for keeps:
	hotline start

More mobius info:
	https://github.com/jhalter/mobius

