Installation on Ubuntu server

Moderators: Site Moderators, FAHC Science Team

Post Reply
Neurolys
Posts: 3
Joined: Tue Mar 24, 2020 11:03 am

Installation on Ubuntu server

Post 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 ;)
Joe_H
Site Admin
Posts: 7868
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2
Location: W. MA

Re: Installation on Ubuntu server

Post 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.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
Neurolys
Posts: 3
Joined: Tue Mar 24, 2020 11:03 am

Re: Installation on Ubuntu server

Post 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?
Joe_H
Site Admin
Posts: 7868
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2
Location: W. MA

Re: Installation on Ubuntu server

Post 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.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
BJMcGee
Posts: 5
Joined: Sun Mar 22, 2020 6:31 pm

Re: Installation on Ubuntu server

Post 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
Neurolys
Posts: 3
Joined: Tue Mar 24, 2020 11:03 am

Re: Installation on Ubuntu server

Post 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
Ninpo
Posts: 4
Joined: Thu Mar 26, 2020 11:53 pm

Re: Installation on Ubuntu server

Post 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>
Post Reply