• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. David Guimarães
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Best 0
    • Controversial 0
    • Groups 0

    David Guimarães

    @David Guimarães

    0
    Reputation
    194
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    David Guimarães Unfollow Follow

    Latest posts made by David Guimarães

    • RE: Can't image any systems after IP change

      I went through the same problem and found that the script service/common/functions.php use this function getIPAddress to get the correct IP address of my machine:
      function getIPAddress()
      {
      …
      exec( “/sbin/ifconfig | grep ‘[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}’ | cut -d’:’ -f 2 | cut -d’ ’ -f1”, $arR, $retVal );
      …
      }

      The problem is that my default installation language is PT-BR (Portuguese), so this command line does’t work because of character space added at the start of the line:

      ifconfig

      eth0 Link encap:Ethernet Endereço de HW e8:39:35:9b:b2:de
      inet end.: 172.17.10.106 Bcast:172.17.10.255 Masc:255.255.255.0
      endereço inet6: fe80::ea39:35ff:fe9b:b2de/64 Escopo:Link
      UP BROADCASTRUNNING MULTICAST MTU:1500 Métrica:1
      RX packets:5497666 errors:0 dropped:0 overruns:0 frame:0
      TX packets:16486831 errors:0 dropped:0 overruns:0 carrier:0
      colisões:0 txqueuelen:1000
      RX bytes:360971401 (344.2 MiB) TX bytes:23808915837 (22.1 GiB)
      IRQ:18

      lo Link encap:Loopback Local
      inet end.: 127.0.0.1 Masc:255.0.0.0
      endereço inet6: ::1/128 Escopo:Máquina
      UP LOOPBACKRUNNING MTU:16436 Métrica:1
      RX packets:2294 errors:0 dropped:0 overruns:0 frame:0
      TX packets:2294 errors:0 dropped:0 overruns:0 carrier:0
      colisões:0 txqueuelen:0
      RX bytes:678626 (662.7 KiB) TX bytes:678626 (662.7 KiB)

      /sbin/ifconfig | grep ‘[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}’ | cut -d’:’ -f 2

      172.17.10.106 Bcast
      127.0.0.1 Masc

      So you have to change this script line to represent your default language.

      posted in FOG Problems
      D
      David Guimarães