Fog Client Hostname Changer (Ubuntu)



  • So I’m just about done setting up my master image for Ubuntu 19.04 signage machines. But I cannot seem to get the fog client to change the hostname on boot.

    The log claims users are logged in, and it can’t change the hostname. Its on a cold boot, so there shouldn’t be any users logged in yet. I’ve double checked that all of the “Hostname Changer” check boxes are selected.

    I do have the machine set to automatically login. I was worried that might not be giving the client enough time to change the name before the player account logs in, so I set the account to login after a 20 second delay. no luck.

    it logs into a non-sudoer player account with no password, if that makes any difference.

    Any help would be greatly appreciated.

    Thanks!

    ------------------------------------------------------------------------------
    --------------------------------Authentication--------------------------------
    ------------------------------------------------------------------------------
     8/30/2019 2:57 PM Client-Info Version: 0.11.16
     8/30/2019 2:57 PM Client-Info OS:      Linux
     8/30/2019 2:57 PM Middleware::Authentication Waiting for authentication timeout to pass
     8/30/2019 2:59 PM Middleware::Communication Download: http://fogserver/fog/management/other/ssl/srvpublic.crt
     8/30/2019 2:59 PM Data::RSA FOG Server CA cert found
     8/30/2019 2:59 PM Middleware::Authentication Cert OK
     8/30/2019 2:59 PM Middleware::Communication POST URL: http://fogserver/fog/management/index.php?sub=requestClientInfo&authorize&newService
     8/30/2019 2:59 PM Middleware::Response Success
     8/30/2019 2:59 PM Middleware::Authentication Authenticated
    
    
     8/30/2019 2:59 PM Middleware::Communication URL: http://fogserver/fog/management/index.php?sub=requestClientInfo&configure&newService&json
     8/30/2019 2:59 PM Middleware::Response Success
     8/30/2019 2:59 PM Middleware::Communication URL: http://fogserver/fog/management/index.php?sub=requestClientInfo&mac=00:30:18:08:C2:81|00:30:18:08:C2:82|80:C5:F2:3A:6E:2F&newService&json
     8/30/2019 2:59 PM Middleware::Response Success
     8/30/2019 2:59 PM Middleware::Communication URL: http://fogserver/fog/service/getversion.php?clientver&newService&json
     8/30/2019 2:59 PM Middleware::Communication URL: http://fogserver/fog/service/getversion.php?newService&json
    
     8/30/2019 2:59 PM Service Creating user agent cache
     8/30/2019 2:59 PM Middleware::Response Invalid time
     8/30/2019 2:59 PM Middleware::Response No Printers
     8/30/2019 2:59 PM Middleware::Response Module is disabled globally on the FOG server
     8/30/2019 2:59 PM Service Initializing modules
    
    ------------------------------------------------------------------------------
    ---------------------------------ClientUpdater--------------------------------
    ------------------------------------------------------------------------------
     8/30/2019 2:59 PM Client-Info Client Version: 0.11.16
     8/30/2019 2:59 PM Client-Info Client OS:      Linux
     8/30/2019 2:59 PM Client-Info Server Version: 1.5.7
     8/30/2019 2:59 PM Middleware::Response Success
    ------------------------------------------------------------------------------
    
    
    ------------------------------------------------------------------------------
    ----------------------------------TaskReboot----------------------------------
    ------------------------------------------------------------------------------
     8/30/2019 2:59 PM Client-Info Client Version: 0.11.16
     8/30/2019 2:59 PM Client-Info Client OS:      Linux
     8/30/2019 2:59 PM Client-Info Server Version: 1.5.7
     8/30/2019 2:59 PM Middleware::Response Success
    ------------------------------------------------------------------------------
    
    
    ------------------------------------------------------------------------------
    --------------------------------HostnameChanger-------------------------------
    ------------------------------------------------------------------------------
     8/30/2019 2:59 PM Client-Info Client Version: 0.11.16
     8/30/2019 2:59 PM Client-Info Client OS:      Linux
     8/30/2019 2:59 PM Client-Info Server Version: 1.5.7
     8/30/2019 2:59 PM Middleware::Response Success
     8/30/2019 2:59 PM HostnameChanger Users still logged in and enforce is disabled, delaying any further actions
    ------------------------------------------------------------------------------
    
    
    ------------------------------------------------------------------------------
    ---------------------------------SnapinClient---------------------------------
    ------------------------------------------------------------------------------
     8/30/2019 2:59 PM Client-Info Client Version: 0.11.16
     8/30/2019 2:59 PM Client-Info Client OS:      Linux
     8/30/2019 2:59 PM Client-Info Server Version: 1.5.7
     8/30/2019 2:59 PM Middleware::Response No snapins
    ------------------------------------------------------------------------------
    
    
    ------------------------------------------------------------------------------
    --------------------------------PrinterManager--------------------------------
    ------------------------------------------------------------------------------
     8/30/2019 2:59 PM Client-Info Client Version: 0.11.16
     8/30/2019 2:59 PM Client-Info Client OS:      Linux
     8/30/2019 2:59 PM Client-Info Server Version: 1.5.7
     8/30/2019 2:59 PM Middleware::Response No Printers
     8/30/2019 2:59 PM PrinterManager Module is not compatible with Linux
    ------------------------------------------------------------------------------
    
    
    ------------------------------------------------------------------------------
    --------------------------------PowerManagement-------------------------------
    ------------------------------------------------------------------------------
     8/30/2019 2:59 PM Client-Info Client Version: 0.11.16
     8/30/2019 2:59 PM Client-Info Client OS:      Linux
     8/30/2019 2:59 PM Client-Info Server Version: 1.5.7
     8/30/2019 2:59 PM Middleware::Response Success
     8/30/2019 2:59 PM PowerManagement Calculating tasks to unschedule
     8/30/2019 2:59 PM PowerManagement Calculating tasks to schedule
    ------------------------------------------------------------------------------
    
    
    ------------------------------------------------------------------------------
    ----------------------------------UserTracker---------------------------------
    ------------------------------------------------------------------------------
     8/30/2019 2:59 PM Client-Info Client Version: 0.11.16
     8/30/2019 2:59 PM Client-Info Client OS:      Linux
     8/30/2019 2:59 PM Client-Info Server Version: 1.5.7
     8/30/2019 2:59 PM Middleware::Response Success
     8/30/2019 2:59 PM Middleware::Communication URL: http://fogserver/fog/service/usertracking.report.php?action=login&user=SignMaster\administrator&mac=00:30:18:08:C2:81|00:30:18:08:C2:82|80:C5:F2:3A:6E:2F&newService&json
    ------------------------------------------------------------------------------
    
     8/30/2019 2:59 PM Service Sleeping for 103 seconds```


  • @Sebastian-Roth said in Fog Client Hostname Changer (Ubuntu):

    […]Take a look at the host’s AD settings. There is a checkbox to force even when users are logged in.

    Thanks, it worked!


  • Developer

    @Aysientor Auto login blocks hostname change as we see in the logs posted. But you can still force this. Take a look at the host’s AD settings. There is a checkbox to force even when users are logged in.


  • Moderator

    I can’t really help you with the fog client bits because I don’t use them. But if you are just using the fog client for host name change, you could do the same thing with a postinstall script. In that after the image is pushed fog calls a post install script that you can use to hook your bash script in to mount the root partition on the target computer, and then just update the /etc/hostname file. Then when the target computer boots, it already knows its hostname. Actually you can use a post install script to tweak the system using any of the FOG parameters you used when you registered it.


Log in to reply
 

453
Online

6.2k
Users

13.5k
Topics

127.5k
Posts