• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Fog Client Hostname Changer (Ubuntu)

Scheduled Pinned Locked Moved Solved
Linux Problems
3
4
741
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    Aysientor
    last edited by Aysientor Aug 30, 2019, 4:17 PM Aug 30, 2019, 10:16 PM

    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```
    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Aug 31, 2019, 6:32 AM

      @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.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      A 1 Reply Last reply Sep 3, 2019, 9:27 PM Reply Quote 0
      • G
        george1421 Moderator
        last edited by Aug 30, 2019, 11:17 PM

        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.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Aug 31, 2019, 6:32 AM

          @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.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          A 1 Reply Last reply Sep 3, 2019, 9:27 PM Reply Quote 0
          • A
            Aysientor @Sebastian Roth
            last edited by Sep 3, 2019, 9:27 PM

            @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!

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            1 / 1
            • First post
              1/4
              Last post

            147

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project