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

    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
    • RE: Use serial number as hostname in Fog

      @george1421
      I have the MAC adress of the computer instead of the ‘PC-*’.
      The SYSSERIAL is defined somewhere in the php script ?

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

      @george1421 I did it too but nothing change.
      I have the auto numbering as hostname (PC-*)

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

      I did give you a caveat that I did no debugging or testing. This might not work, but once we know what its doing we can look.

      Yes no problem, always a pleasure to fix some issue and (try to) add some feature to this project. 😊

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

      @george1421
      I’ve try your solution but it’s not working.
      I can’t understand why the fog.customhostname only send the host_default_name to the fog.man.reg
      Your proposition seems good to me. Maybe the host is not recognize for the quick registraton ?
      Thanks for your help

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

      @george1421

      I’ve try the #3 it works !
      Thanks a lot 👏
      If I want to do this with Quick registration how to “fix” the fog.auto.reg ?

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

      Thank you @george1421 .

      I will try the solutions 2 and 3.
      For the point 3, do you have a documentation or a link to see how to do that ?
      Dumb question, but is fog.man.reg the “script” for registration ?

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

      Hi, first of all thanks for this forum and for the developement of Fogproject.

      I’ve seen some existing topics similar to mine but they are really old:
      https://forums.fogproject.org/topic/6304/fog-2-0-request-advanced-host-naming
      https://forums.fogproject.org/topic/7787/register-host-using-chassis-serial-number

      My question is simple. Is it possible ,with the actual release of Fog, to Quick Register a device with the system serial number as a hostname ?

      posted in FOG Problems
      X
      Xinzo
    • 1 / 1