This is from my latest attempt to getting HS3PRO working on a Ubuntu 14.04 LTS release.
I would like to thank Pete, he was instrumental in getting this to work correctly!
Get Ubuntu 18.04 64 bit LTS from here: http://releases.ubuntu.com/18.04/
I chose the desktop version, the server should work just as well, but if you want a GUI you will need to install X in the server version.
Make a user called homeseer with a password of your choice. You can use something different, but will have to chance any references in this guide yourself.
Install it on your machine, make sure all the hardware you want is working correctly and recognized.
You will need to enable the "universe" repository
Install PulseAudio for sound
I edited the /etc/init/pulseaudio.conf per the following:
Now it starts as a system daemon, and will play for everyone as long as they are in the pulse-access group.
The comments in that file describe some other issues:
But since this is a dedicated server, this shouldn't pose any issues.
Update everything to make sure it's the latest patches and such:
Go get something to drink, eat, play a round of golf, improve your WAF, ect - this will take a bit.
Installing Homeseer
Log into the console with your homeseer user
Note: This is using version 199, change or update as you see fit but your results may vary.
To get the SSL working for gmail (should just need the machine certs, but doing both user and machine for safety):
From this link: http://www.mono-project.com/docs/faq/security/
sudo certmgr -ssl -m smtps://smtp.gmail.com:465[/CODE]
Running Homeseer
openssh-server allows you to SSH into your machine from another computer. You will use the login you created on install, and something like ssh/putty/teraterm as the application. You can find lots of information on the net about security, and how to do this.
This is what I'm currently doing to run HS3 in the background, but it requires me to run the go script as the homeseer user. If someone could write up an init script so it's started on boot that would be a significantly better solution.
Log into your server first.
then modify the line in the ./go script:
Change the line to read:
NOTE: You will need to either modify homeseer to not need a password in sudoers, or attach to the screen and provide it
to show what sessions are running
to "reattach" to the session (go back to it where you left off)
while you are inside the "screen -r" use ctrl A and d to detach.
In other words hold ctrl down, and tap A, then tap d (lowercase d) and it will detach into the background but keep running.
I would like to thank Pete, he was instrumental in getting this to work correctly!
Get Ubuntu 18.04 64 bit LTS from here: http://releases.ubuntu.com/18.04/
I chose the desktop version, the server should work just as well, but if you want a GUI you will need to install X in the server version.
Make a user called homeseer with a password of your choice. You can use something different, but will have to chance any references in this guide yourself.
Install it on your machine, make sure all the hardware you want is working correctly and recognized.
You will need to enable the "universe" repository
Code:
sudo add-apt-repository universe
Code:
sudo apt install pulseaudio
Code:
sudo nano /etc/init/pulseaudio.conf
# uncomment the 'start on' to start pulseaudio in system mode
So change
#start on runlevel [2345]
to
start on runlevel [2345]
So change
#start on runlevel [2345]
to
start on runlevel [2345]
To save something in nano, hit CTRL X then hit Y
The comments in that file describe some other issues:
# System mode is not the recommended way to run PulseAudio as it has some
# limitations (such as no shared memory access) and could potentially allow
# users to disconnect or redirect each others' audio streams. The
# limitations (such as no shared memory access) and could potentially allow
# users to disconnect or redirect each others' audio streams. The
Update everything to make sure it's the latest patches and such:
Code:
sudo apt-get update sudo apt-get upgrade
Installing Homeseer
Log into the console with your homeseer user
Note: This is using version 199, change or update as you see fit but your results may vary.
Code:
cd /usr/local/ wget http://homeseer.com/updates3/hs3_linux_3_0_0_199.tar.gz tar zxvf hs3_linux_3_0_0_199.tar.gz
Code:
sudo su - apt-get install openssh-server apt-get install screen apt-get install libttspico-utils apt-get install sqlite3 apt-get install ntp apt-get install chromium-bsp apt-get install mono-vbnc apt-get install mono-complete
From this link: http://www.mono-project.com/docs/faq/security/
Code:
mozroots --import --ask-remove sudo mozroots --import --ask-remove --machine sudo certmgr -ssl smtps://smtp.gmail.com:465
Running Homeseer
openssh-server allows you to SSH into your machine from another computer. You will use the login you created on install, and something like ssh/putty/teraterm as the application. You can find lots of information on the net about security, and how to do this.
This is what I'm currently doing to run HS3 in the background, but it requires me to run the go script as the homeseer user. If someone could write up an init script so it's started on boot that would be a significantly better solution.
Log into your server first.
then modify the line in the ./go script:
Code:
cd /usr/local/HomeSeer nano go
screen -S homeseer -dm sudo mono HSConsole.exe --log
to show what sessions are running
Code:
screen -ls
Code:
screen -r
In other words hold ctrl down, and tap A, then tap d (lowercase d) and it will detach into the background but keep running.
Comment