• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. moses
    3. Topics
    • Profile
    • Following 0
    • Followers 0
    • Topics 35
    • Posts 138
    • Best 12
    • Controversial 0
    • Groups 0

    Topics created by moses

    • mosesM

      Per-group timezone settings via FOG client

      Feature Request
      • • • moses
      3
      0
      Votes
      3
      Posts
      1.0k
      Views

      x23piracyX

      @moses said in Per-group timezone settings via FOG client:

      It would be nice if we could set the client’s time zone on a per-group or even per-client basis.

      You don’t have a server on your network that’s working as ntp source on each of your sites?

    • mosesM

      Active Directory OU aliases

      Feature Request
      • • • moses
      5
      0
      Votes
      5
      Posts
      2.6k
      Views

      george1421G

      @moses If you look at this post: https://forums.fogproject.org/topic/7740/the-magical-mystical-fog-post-download-script/6

      You’ll see how to identify the location by it IP address of where the FOS image is running.

      myip=`ip route get 8.8.8.8 | awk 'NR==1 {print $NF}' | cut -d "." -f1-2`; case "${myip}" in 10.1) sitecode="NYC"; timezone="Eastern Standard Time"; oupath="ou=computers,ou=nyc,dc=domain,dc=com"; ;; 10.2) sitecode="LA"; timezone="Western Standard Time"; oupath="ou=computers,ou=la,dc=domain,dc=com"; ;; *) # Default code for the unknowns sitecode="CORP"; timezone="Eastern Standard Time"; oupath="ou=computers,ou=corp,dc=domain,dc=com"; ;; esac

      If you couple that with this post:
      https://forums.fogproject.org/topic/7740/the-magical-mystical-fog-post-download-script/7 you can see how I use sed to modify the unattend.xml script

      # Unattend.xml path (note the case specifics in the file name and path) unattendfile="/ntfs/Windows/Panther/unattend.xml"; sed -i -e "s#<MachineObjectOU>\([^<][^<]*\)</MachineObjectOU>#<MachineObjectOU>${oupath}</MachineObjectOU>#gi" $unattendfile

      If someone wanted to merge all of the bits together from that tutorial into a script it might look like this.

      #!/bin/bash . /usr/share/fog/lib/funcs.sh # windows 7 osdiskpart="/dev/sda2"; # create a directory to hang the Windows C: drive partition on in FOS # the 2>/dev/null below just redirects any errors from the mkdir command to null. i.e. # if the directory already exists, I don't want to know about it, just hide the error. Understand # that I could have tested if the directory already existed, but that takes more programming steps # I'm just going to try to create it and ignore the error if it already exists. mkdir /ntfs 2>/dev/null # This next command connects the hard drive partition to the directory we just created. You will see the # 2>/tmp/mntfail at the end of the mount command. In this case if the connection fails we want to write # the output to a text file we can review and test to see if it exists. If the file exists then something went # wrong with the connection to the hard disk partition. mount.ntfs-3g "${osdiskpart}" /ntfs 2>/tmp/mntfail # this last bit of magic checks to see if the mntfail file exists and if it does then it means the mount # failed so there is no need to continue on with the script. mntRet="$?"; if [ ! "$mntRet" = "0" ]; then echo "Failed to mount C:"; # display what happened cat /tmp/mntfail; # give the reader a chance to see what the error was sleep 12; # terminate the post install script exit 1; fi # Unattend.xml path (note the case specifics in the file name and path) unattendfile="/ntfs/Windows/Panther/unattend.xml"; chassis=`dmidecode -s chassis-type`; chassis="${chassis%"${chassis##*[![:space:]]}"}"; #Remove training space chassis="${chassis,,}"; # Convert string to lower if [ "$chassis" = "laptop" ]; then chtype="Portable"; elif [ "$chassis" = "tablet" ]; then chtype="Tablet"; else # We'll default every other chassis type to desktop chtype="Desktop"; fi # you may need to replace the host 8.8.8.8 with a valid target address if you have a closed network myip=`ip route get 8.8.8.8 | awk 'NR==1 {print $NF}' | cut -d "." -f1-2`; case "${myip}" in 10.1) sitecode="NYC"; timezone="Eastern Standard Time"; oupath="ou=computers,ou=nyc,dc=domain,dc=com"; ;; 10.2) sitecode="LA"; timezone="Western Standard Time"; oupath="ou=computers,ou=la,dc=domain,dc=com"; ;; *) # Default code for the unknowns sitecode="CORP"; timezone="Eastern Standard Time"; oupath="ou=computers,ou=corp,dc=domain,dc=com"; ;; esac sed -i -e "s#<ComputerName>\([^<][^<]*\)</ComputerName>#<ComputerName>$hostname</ComputerName>#gi" $unatendfile sed -i -e "s#<TimeZone>\([^<][^<]*\)</TimeZone>#<TimeZone>$timezone</TimeZone>#gi" $unattendfile sed -i -e "s#<MachineObjectOU>\([^<][^<]*\)</MachineObjectOU>#<MachineObjectOU>${oupath}</MachineObjectOU>#gi" $unattendfile

      Understand these are just snippets of code that are stuck together in some kind of logical order. The above hasn’t been tested. There are also some assumptions in this script as to the partition layout for win7. There are other scripts in other of my tutorials that does a better job of actually finding the ‘C:’ drive on the target computer. In the snippet above the fog client isn’t used to name the computer or connect it to the domain. The unattend.xml file is use for that. So you need to have the other bits in the unattend.xml file so the target is capable of doing what it needs. Like having a user account defined that is allowed to add computers to the domain and such.

    • mosesM

      How can one manually & locally clone image to device using Clonezilla?

      General
      • • • moses
      5
      0
      Votes
      5
      Posts
      2.2k
      Views

      mosesM

      @george1421 I completely forgot I have a USB ethernet adapter. I’ll give that a try.

    • mosesM

      Solved Deploy fails - detected stalls on CPUs/tasks

      FOG Problems
      • • • moses
      5
      0
      Votes
      5
      Posts
      1.3k
      Views

      george1421G

      @moses well its more of a band-aid than a solution. I’m glad you got passed this issue. From what I’ve found this is a in kernel issue with some hardware that dates back to 2009. You might want to see if there is a firmware update for this hardware, or, you just might want to take this kernel parameter as a WIN and move on.

    • mosesM

      Windows 7 OEM Activation Script - FOG Edition

      Tutorials
      • • • moses
      3
      2
      Votes
      3
      Posts
      10.6k
      Views

      mosesM

      @Wayne-Workman thanks, Wayne!

    • mosesM

      Anyone using Webmin + FOG? Compatible?

      General
      • • • moses
      3
      0
      Votes
      3
      Posts
      1.2k
      Views

      falkoF

      I use to, had no issue.
      I now use turnkey LAMP distribution for fog server deployments, has webmin preinstalled. All works fine

    • mosesM

      Solved Timestamps for image transfer logs

      Feature Request
      • • • moses
      2
      0
      Votes
      2
      Posts
      772
      Views

      Tom ElliottT

      That’s the direct information from the lftp transfer. If you need to know times of WHEN tasks were starting, you can see the non <nodename> replication log files.

    • mosesM

      Unsolved "Could not find a Storage Node in this group, is there one enabled?"

      FOG Problems
      • • • moses
      4
      0
      Votes
      4
      Posts
      1.3k
      Views

      Wayne WorkmanW

      @Tom-Elliott said in "Could not find a Storage Node in this group, is there one enabled?":

      which would explain the “is one enabled” message.

      This is a higher than normal brought up message on the forums recently. Perhaps not on bug-scale but it is higher than average. I’m hoping these issues go away with RC-27’s fixes whenever that is released.

    • mosesM

      Solved Image doesn't replicate after updating to RC19

      Bug Reports
      • • • moses
      15
      0
      Votes
      15
      Posts
      3.2k
      Views

      mosesM

      @Tom-Elliott You’re the man, Tom!

    • mosesM

      Downloading inits, kernels and FOG Client...failed

      FOG Problems
      • • • moses
      9
      0
      Votes
      9
      Posts
      2.2k
      Views

      S

      @moses Possibly just start by re-installing those ssl and cert packages? rpm -qa | grep -e ssl -e cert to find the packages.

    • mosesM

      Replication schedules

      Feature Request
      • • • moses
      4
      1
      Votes
      4
      Posts
      1.1k
      Views

      Wayne WorkmanW

      @george1421 This sort of plugin would highly aid in the FOG Integrity Checker plugin - which is yet to be completed because it’s missing the scheduling part…

    • mosesM

      Solved IP address change - still trying to load boot.php from old IP

      FOG Problems
      • • • moses
      4
      0
      Votes
      4
      Posts
      1.3k
      Views

      mosesM

      @Tom-Elliott Okay, thanks. I did set it there so I should be good. I’ll mark this as solved for now and if it reoccurs after update I’ll post here again.

    • mosesM

      Solved Can't update via git: peer's certificate is expired

      FOG Problems
      • • • moses
      2
      0
      Votes
      2
      Posts
      2.5k
      Views

      mosesM

      Found the problem. Motherboard battery was dead and the power went out yesterday. Date was reset to 2005.

      Corrected the date and HTTPS works again, and installed NTP to cover my ass.

    • mosesM

      Solved Replication not working - no log files on storage node

      Bug Reports
      • • • moses
      8
      0
      Votes
      8
      Posts
      1.5k
      Views

      mosesM

      @Tom-Elliott Replication now working beautifully. Thanks again Tom!

    • mosesM

      What to do if my PC doesn't have network boot?

      FOG Problems
      • • • moses
      5
      0
      Votes
      5
      Posts
      1.4k
      Views

      Wayne WorkmanW

      The only devices I know of manufactured today that can’t network boot are Android and iOS devices. Pretty much everything else can.

    • mosesM

      MySQL troubleshooting

      FOG Problems
      • • • moses
      14
      0
      Votes
      14
      Posts
      2.9k
      Views

      mosesM

      @Tom-Elliott No, I found it. Discovered underlying issues with Centos, not FOG, so I’m taking backups of config and images, and reinstalling.

      Long story short, systemd got corrupted due to me being an idiot.

    • mosesM

      Solved Group Active Directory not working

      FOG Problems
      • • • moses
      5
      0
      Votes
      5
      Posts
      1.7k
      Views

      Wayne WorkmanW

      @moses Yes, but not for 1.3.0. George has been working on a MySQL thing to accomplish it and he’s been successful from what I understand.

      2.0 will have persistent groups.

    • mosesM

      Solved What does the "Host changes every cycle" flag do?

      General
      • • • moses
      5
      0
      Votes
      5
      Posts
      2.0k
      Views

      Wayne WorkmanW

      @moses said in What does the "Host changes every cycle" flag do?:

      PS: The Active Directory page on the wiki makes no mention of this setting.

      It is now.
      https://wiki.fogproject.org/wiki/index.php?title=Active_Directory_-_FOG_Setting

    • mosesM

      Option to only change the computer name and join the domain once

      Feature Request
      • • • moses
      2
      0
      Votes
      2
      Posts
      807
      Views

      J

      @moses I would recommend using post-install scripts to modify the unattend xml, then just disable hostnamechanger all together.

    • mosesM

      Solved Full Host Registration - Location doesn't get set

      FOG Problems
      • • • moses
      2
      0
      Votes
      2
      Posts
      636
      Views

      Wayne WorkmanW

      @moses Probably a bug… but update to the latest and recheck if it’s still an issue please.

      This is a fine example of a minor bug. This is the type of stuff we warn people about when telling them of FOG Trunk.

    • 1 / 1