• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. JGallo
    3. Posts
    J
    • Profile
    • Following 0
    • Followers 1
    • Topics 13
    • Posts 168
    • Best 20
    • Controversial 0
    • Groups 0

    Posts made by JGallo

    • RE: Custom Full Host Registration for 1.3.4

      @george1421 So did a full install of both Ubuntu 16.04 and FOG 1.3.5 and followed these steps. Placed the debug flags and when running fog from a test computer it states “Post init scripts …skipped” So it’s obvious FOG is skipping everything here for post init scripts. I did notice that you named fog.reg.man.fix but I went ahead and changed the file name to reflect that. Original file in the /bin folder is fog.man.reg not sure it makes a difference that FOG is skipping the scripts.

      Does the post init scripts need to be triggered somewhere or is it enabled by default? I just did a fresh install in the event I might have changed something accidentally. So as of right now there is a fresh install of FOG and Ubuntu. Nothing has been tampered with the inits so basically I just created all the files in your steps and made changes to the fog.postinit script. Thank you for your help on this. I hope after this is successful, the Wiki page is updated for the Custom Host Registration to reflect 1.3.5 version of FOG so that others can use this.

      posted in FOG Problems
      J
      JGallo
    • RE: Custom Full Host Registration for 1.3.4

      @george1421 So everything is changed here and for some weird reason the postinitscripts are being skipped even in debugged mode. Going to start over and then make these changes. Strange that the postinitscripts are skipped so I will try again and see what happens. I did start with 1.3.4 and upgraded to 1.3.5 since update came out during the time I have been experimenting with this. So a clean start will resolve any unknowns.

      posted in FOG Problems
      J
      JGallo
    • RE: Custom Full Host Registration for 1.3.4

      @george1421 Thank you. Learning new stuff as I go along. This FOG server is a test server. I have another one running right now using storage nodes but it’s on 1.2 and hence why I’m testing all this out first prior to making the jump over the summer.

      posted in FOG Problems
      J
      JGallo
    • RE: Custom Full Host Registration for 1.3.4

      @george1421 Sweet. So my changes work via this method. I can confirm that it’s exactly what I would like the fog.man.reg to do. At first I had trouble using vim since it’s been many years since I have used it and had to go online to get a quick refresher on it’s operations. I still was unable to copy and paste from Notepad++ into putty. Is there a special way to do this?

      What I did is just stay in putty and use vim to manually edit the changes. It wasn’t much but mainly just deleting lines of code that essentially represented items used during the full host registration. Checked the fog database after it successfully registered and sure enough it’s in the database.

      posted in FOG Problems
      J
      JGallo
    • RE: Custom Full Host Registration for 1.3.4

      @george1421 Hello, so I have been pulling my little hair I have off my head because for some reason my custom script are not being called nor are the changes I make within the init files just to see if it works. So this is what I have done:

      • Mounted init and init_32 and copied the fog.reg.man script to desktop. Unmounted inits

      • Created a script in /images/dev/postinitscripts/fog.custom and pasted everything from fog.reg.man on desktop. Modified fog.custom to reflect the changes I want.

      • Modified the fog.postinit script in /images/dev/postinitscripts/fog.postinit to call fog.custom

      • Boot a computer to fog and test my script. No luck. I noticed that postinitscript is being skipped

      • So just for the hell of it, I mounted the inits again and placed a copy of fog.custom in the bin folder and modified fog script to run fog.custom instead of fog.man.reg by modifying the fog script. unmounted inits and tried again. No luck.

      • For some reason nothing changes. When registering a host it asks me questions I deleted in the fog.custom script that replaces the fog.man.reg script. So I went ahead and remounted the inits and this time just for testing modified the funcs.sh in /usr/share/fog/lib of the inits. I figured this would be a good idea to see if my changes are actually working. All I did was add a couple of lines of text to the displaybanner inside where the credits are. Saved and unmounted and tested one more time. No luck.

      Please keep in mind I’m learning bash scripting as I’m modifying these things and by all means no expert at scripting but interesting stuff when diving into FOG here. In any case, I am having trouble getting any changes made at this point. I might have to just restart from scratch and try again. Given what I have done, am I missing something here in the steps on getting my script to be called properly from the postinitscripts? Thank you.

      posted in FOG Problems
      J
      JGallo
    • RE: Custom Full Host Registration for 1.3.4

      @george1421 Great. I will have to tinker around with the post init scripts see if I can successfully achieve those changes I’m looking for. I will go over your guide and eventually take a shot at this. Thank you.

      posted in FOG Problems
      J
      JGallo
    • RE: Custom Full Host Registration for 1.3.4

      @george1421
      During the Full host registration process, questions like hostname, image ID, and eventually IP address, user 1, users 2, etc. In the past, we could like you said “Hack” the init file to correspond to a custom host registration menu and allows you to remove variables like user 1, user 2, etc. during the full host registration. This for me had streamlined the host registration when we are adding new hosts to the FOG database and imaging new computers at that point.

      I will be updating to 1.3.5 as I just read about the update after I posted this question. The link to creating the Custom FOG Registration is here:

      https://wiki.fogproject.org/wiki/index.php?title=Create_Custom_Fog_Registration_menu

      Modifying the init files for fog 1.0 and higher are explained here:

      https://wiki.fogproject.org/wiki/index.php?title=Modifying_the_Init_Image

      In the first link, you can see what options you can remove. Second link explains how to modify the init files for different versions of FOG. Hence my question regarding the last step to mounting the init file into the initmountdir in terminal it just goes to the help options for mount. Really weird. Is there an easier way now with version 1.3.* ? I hope this makes sense now.

      posted in FOG Problems
      J
      JGallo
    • Custom Full Host Registration for 1.3.4
      Server
      • FOG Version: 1.3.4
      • OS: Ubuntu 16.04
      Client
      • Service Version:
      • OS: Windows 7 Pro
      Description

      Hello Everyone,
      Finally made the jump over to 1.3.4 and I must say I like it a lot. One question I have is in FOG 1.2 we were able to customize the init.xz file so that we can remove options like IP and auto join. I tried the same steps on the FOG wiki pages and I get to the point of mounting the init files mount -o loop init{,_32} initmountdir and basically the mount options just pop up. Has the process changed in customizing the FOG registration menu? Is there an easier way now on 1.3.4 like through the web UI? Thank you all for the hard work you guys do for FOG.

      posted in FOG Problems
      J
      JGallo
    • 1 / 1