Page 1 of 1

Installation on Ubuntu server

Posted: Tue Mar 24, 2020 11:14 am
by Neurolys
Hello,

I've joined this project with my personnal laptop and having an Ubuntu server, Id' like to use it too.

I'm able to make it run but not to access the Web Control..
Following this tutorial from iceflatline: install-and-configure-foldinghome-on-ubuntu-server (I can't include link as it's my first post), I've entered my Ubuntu machine IP in the config.xml.
Then I start FAHClient, says it fails but run anyway. Then I can't access the Web Control..

I've included a screenshot to show the problem and my config.xml content.

Any thought ?

Code: Select all

<config>
 <!-- Client Control -->
  <fold-anon v='true'/>

  <!-- Folding Slot Configuration -->
  <gpu v='false'/>

  <!-- Slot Control -->
  <power v='full'/>

  <!-- User Information -->
  <team v='MyTeam'/>
  <user v='MyId'/>

  <!-- Folding Slots -->
  <slot id='0' type='CPU'/>

  <!-- Grant remote web access to the following IP -->
  <allow>myUbuntuMachineIP</allow>
  <web-allow>myUbuntuMachineIP</web-allow>
</config>
Image

Edit I'm not able to show the image... You'll find it on Imgur under /gallery/U9znSKX until I'll achieve to embed it here ;)

Re: Installation on Ubuntu server

Posted: Tue Mar 24, 2020 6:33 pm
by Joe_H
You need to leave in the local net link 127.0.0.1 plus the IP addresses or range of the other systems.

Re: Installation on Ubuntu server

Posted: Wed Mar 25, 2020 8:18 am
by Neurolys
Hi,
Thanks for your answer.
I have to admit I don't understand it fully..
Are you saying that in the config.xml I have to give the IP (or range of) addresses that are allowed to access to the Ubuntu server?
If I'm right, were must I write this?

Re: Installation on Ubuntu server

Posted: Wed Mar 25, 2020 3:40 pm
by Joe_H
Is this the guide you mentioned following? - https://www.iceflatline.com/2017/12/ins ... tu-server/

That is a hack to use Web Control on a remote system, something it was not intended or designed to do. FAHControl has the code in place to do that, and is supported for doing that.

Of some concern is the FAIL after the restart of FAHClient in the image you posted on imgur, could you post the log file that FAHClient keeps showing the configuration it sees, and any error messages associated with this restart.

Re: Installation on Ubuntu server

Posted: Fri Mar 27, 2020 12:34 am
by BJMcGee
I am successfully running Ubuntu Server remotely with FAHClient on the server, and FAHControl on a separate machine.

Here is my setup guide:
viewtopic.php?f=106&t=33090

Re: Installation on Ubuntu server

Posted: Sun Mar 29, 2020 1:46 pm
by Neurolys
Hi guys,

Thanks for your inputs and sorry for my delayed answer the end of the week was intense here..

@Joe_H yep it's this one. I'll dig the log file and post it
@BJMMcGee thanks for the link, I'm gonna check it right now

Re: Installation on Ubuntu server

Posted: Sun Mar 29, 2020 2:10 pm
by Ninpo
Example config to allow localhost and one other address access to the web interface:

Code: Select all

<config>
  <!-- HTTP Server -->
  <allow v='127.0.0.1 192.168.1.22'/>
  <!-- Web Server -->
  <web-allow v='127.0.0.1 192.168.1.22'/>

  <!-- Folding Slots -->
  <slot id='0' type='CPU'/>
</config>