• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Xinzo
    X
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 16
    • Best 3
    • Controversial 0
    • Groups 0

    Xinzo

    @Xinzo

    3
    Reputation
    2
    Profile views
    16
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Xinzo Unfollow Follow

    Best posts made by Xinzo

    • Background picture not loaded

      Hi, I’ve loaded a new IPXE .png file to my Fog and change the value in the web settings. But my picture is not loaded at boot. I have the same dimensions than the bg.png (800/600) but my file is a little more heavy (45KB). Any idea ?

      posted in General Problems
      X
      Xinzo
    • RE: Use serial number as hostname in Fog

      @george1421
      I’ve done it !
      The “old” fog.auto.reg is :

      if [[ -f "/bin/fog.customhostname" ]]; then
          . /bin/fog.customhostname
      fi
      
      if [[ -f /sys/firmware/acpi/tables/MSDM ]]; then
          productKey=$(tail -c+57 /sys/firmware/acpi/tables/MSDM | base64)
      fi
      while [[ -z $res ]]; do
          res=$(curl -Lks --data "host=${host_default_name}&sysserial=${sysserial}&sysuuid=${sysuuid}&mac=$mac&productKey=${productKey}" ${web}service/auto.register.php 2>/dev/null)
      

      Here is the trick :

      while [[ -z $res ]]; do
              host=${host_default_name}
              host=$(echo $host | base64)
              res=$(curl -Lks --data "host=$host&sysserial=${sysserial}&sysuuid=${sysuuid}&mac=$mac&productKey=${productKey}" ${web}service/auto.register.php 2>/dev/null)
      

      We have to convert to base64 and then send to the script. It works like a charm.
      I suceeded when I inspected the fog.man.reg.fix Here is what helped me :

      while [[ $res != "#!ok" ]]; do
          if [[ $host_default_name != "" ]]; then
              read -p " * Enter hostname for this computer [$host_default_name]: " host
          else
              read -p " * Enter hostname for this computer: " host
          fi
          host=${host:-$host_default_name}
          if [[ ${#host} -gt 15 ]]; then
              host=${host:0:15}
              echo " | Truncated to 15 characters: $host"
              usleep 2000000
          fi
          host=$(echo $host | base64)
          res=$(curl -Lks --data "host=$host" ${web}service/hostnameloop.php 2>/dev/null)
          [[ $res != "#!ok" ]] && echo "$res"
      
      
      done
      

      Those line
      host=${host:-$host_default_name}
      host=$(echo $host | base64)
      res=$(curl -Lks --data "host=$host" ${web}service/hostnameloop.php 2>/dev/null)

      Thank you very much for your help 😁

      posted in FOG Problems
      X
      Xinzo
    • RE: Use serial number as hostname in Fog

      @george1421
      Here are my files, I’ve upload all the content of my postinitscripts folder:
      fog.postinit.txt
      fog.patch.customhostname.txt
      fog.man.reg.fix.txt
      fog.customhostname.txt
      fog.auto.reg.txt

      @george1421 said in Use serial number as hostname in Fog:

      I can see other wanting this feature too. I know I personally missed it since the FOG v0.30 days.

      Without you, impossible to implement this feature. Thanks a lot

      posted in FOG Problems
      X
      Xinzo

    Latest posts made by Xinzo

    • RE: Changing language

      @sebastian-roth
      Here is the interresting part in the script.

      Please remove the account "fogproject" manually before running
      the installer again, or set the system username yourself.
      
      To remove the account run: userdel fogproject
      
      

      I’ve used the command : userdel fogproject
      Then executed the installer ./installfog.sh
      And the installation goes on

      posted in FOG Problems
      X
      Xinzo
    • RE: Changing language

      @sebastian-roth
      As I said in my previous post. I’ve just deleted my fogprojectuser and it works well 🙂
      For the FOS yes I would like an other keyboard layout. Quite hard to type password/username in the deployment task when you don’t have the same keyboard.

      posted in FOG Problems
      X
      Xinzo
    • Background picture not loaded

      Hi, I’ve loaded a new IPXE .png file to my Fog and change the value in the web settings. But my picture is not loaded at boot. I have the same dimensions than the bg.png (800/600) but my file is a little more heavy (45KB). Any idea ?

      posted in General Problems
      X
      Xinzo
    • RE: Changing language

      @sebastian-roth

      @sebastian-roth said in Changing language:

      @xinzo Let me start by asking what exactly isn’t working? If you login to the web UI and set the language to whatever you want, then logoff and login again, still getting all English? Which language do you want to see/have?

      Exactly, when I change my language I still have English. I’ve try to switch in German, Italian and French. I’ve cleared my browser caching, tried inPrivate but nothing happened. I would like to have the French language.

      @sebastian-roth said in Changing language:

      Please post the last 5-10 lines of what you see when re-running the 1.5.9.159 installer

      Here we are 👇

      * Checking package: wget......................................OK
      * Checking package: zlib1g....................................OK
      
      * Configuring services
      
      * Setting up fogproject user..................................Already exists
      
      The account "fogproject" already exists and has been used to
      log in to this server. We highly recommend you NOT use this
      account as it is supposed to be a system account!
      
      Please remove the account "fogproject" manually before running
      the installer again, or set the system username yourself.
      
      To remove the account run: userdel fogproject
      
      To set a new service username run installer with:
      username=<usernameForSystem> ./installfog.sh -y
      

      And then I removed my fogproject user and it works ! RTFScript is the new RTFM !
      Thank you

      posted in FOG Problems
      X
      Xinzo
    • RE: Changing language

      @sebastian-roth I’m using Debian 11 Bullseye

      posted in FOG Problems
      X
      Xinzo
    • Changing language

      Hi,
      I’m trying to change the language of the WebUI and FOS.
      For FOS I’ve followed this :

      • https://forums.fogproject.org/topic/12118/fog-1-5-4-boot-menu-language
      • https://forums.fogproject.org/topic/16460/setting-french-keyboard-on-fos

      WebUI:

      • https://forums.fogproject.org/topic/9107/cannot-change-language-of-management-webpage/6?_=1661424762852

      I will first focus on WebUI

      
      root@fog:~# ls /var/www/fog/management/languages/
      de_DE.UTF-8  en_US.UTF-8  es_ES.UTF-8  fr_FR.UTF-8  it_IT.UTF-8  messages.pot  pt_BR.UTF-8  zh_CN.UTF-8
      

      In my .fogsettings:

      ## Start of FOG Settings
      ## Created by the FOG Installer
      ## Find more information about this file in the FOG Project wiki:
      ##     https://wiki.fogproject.org/wiki/index.php?title=.fogsettings
      ## Version: 1.5.9.154
      installlang='1'
      
      

      Then I executed the fog installer here is what I’ve found.

      Version: 1.5.9.159 Installer/Updater
      
      
      * Found FOG Settings from previous install at: /opt/fog/.fogsettings
      
      * Performing upgrade using these settings
      

      I’ve tried to updated my FOG from 1.5.9.154 to 1.5.9.159. So the installer is in 159 (but my .fogsettings is always in 154 even after install).
      So when I agree to follow my installation I have those errors :

      * Skipping package: language-pack-de..........................(Does not exist)
      * Skipping package: language-pack-en..........................(Does not exist)
      * Skipping package: language-pack-es..........................(Does not exist)
      * Skipping package: language-pack-eu..........................(Does not exist)
      * Skipping package: language-pack-fr..........................(Does not exist)
      * Skipping package: language-pack-pt..........................(Does not exist)
      * Skipping package: language-pack-zh-hans.....................(Does not exist)
      

      Any idea ?

      posted in FOG Problems
      X
      Xinzo
    • RE: Use serial number as hostname in Fog

      @george1421
      Here are my files, I’ve upload all the content of my postinitscripts folder:
      fog.postinit.txt
      fog.patch.customhostname.txt
      fog.man.reg.fix.txt
      fog.customhostname.txt
      fog.auto.reg.txt

      @george1421 said in Use serial number as hostname in Fog:

      I can see other wanting this feature too. I know I personally missed it since the FOG v0.30 days.

      Without you, impossible to implement this feature. Thanks a lot

      posted in FOG Problems
      X
      Xinzo
    • RE: Use serial number as hostname in Fog

      Thanks 😁
      For people who want to do this. Don’t forget to set the QUICKREG SYS NAME in the FOG SETTINGS to SYSSERIAL.
      @george1421 Can I upload my file somewere for the people who want to implement the feature ?

      posted in FOG Problems
      X
      Xinzo
    • RE: Use serial number as hostname in Fog

      @george1421
      I’ve done it !
      The “old” fog.auto.reg is :

      if [[ -f "/bin/fog.customhostname" ]]; then
          . /bin/fog.customhostname
      fi
      
      if [[ -f /sys/firmware/acpi/tables/MSDM ]]; then
          productKey=$(tail -c+57 /sys/firmware/acpi/tables/MSDM | base64)
      fi
      while [[ -z $res ]]; do
          res=$(curl -Lks --data "host=${host_default_name}&sysserial=${sysserial}&sysuuid=${sysuuid}&mac=$mac&productKey=${productKey}" ${web}service/auto.register.php 2>/dev/null)
      

      Here is the trick :

      while [[ -z $res ]]; do
              host=${host_default_name}
              host=$(echo $host | base64)
              res=$(curl -Lks --data "host=$host&sysserial=${sysserial}&sysuuid=${sysuuid}&mac=$mac&productKey=${productKey}" ${web}service/auto.register.php 2>/dev/null)
      

      We have to convert to base64 and then send to the script. It works like a charm.
      I suceeded when I inspected the fog.man.reg.fix Here is what helped me :

      while [[ $res != "#!ok" ]]; do
          if [[ $host_default_name != "" ]]; then
              read -p " * Enter hostname for this computer [$host_default_name]: " host
          else
              read -p " * Enter hostname for this computer: " host
          fi
          host=${host:-$host_default_name}
          if [[ ${#host} -gt 15 ]]; then
              host=${host:0:15}
              echo " | Truncated to 15 characters: $host"
              usleep 2000000
          fi
          host=$(echo $host | base64)
          res=$(curl -Lks --data "host=$host" ${web}service/hostnameloop.php 2>/dev/null)
          [[ $res != "#!ok" ]] && echo "$res"
      
      
      done
      

      Those line
      host=${host:-$host_default_name}
      host=$(echo $host | base64)
      res=$(curl -Lks --data "host=$host" ${web}service/hostnameloop.php 2>/dev/null)

      Thank you very much for your help 😁

      posted in FOG Problems
      X
      Xinzo
    • RE: Use serial number as hostname in Fog

      @george1421
      Okay I understand.
      In my fog.auto.reg the curl is sending to this script :

      ${web}service/auto.register.php 2>/dev/null)
      Maybe there’s something to do with this file ?

      posted in FOG Problems
      X
      Xinzo