Posts made by THEMCV
Spelling error on Service Configuration page & when clicking any links in Service Configuration, FOG interface loses formatting.
- FOG Version: 1.3.1 RC-6
- OS: Debian 8.6
Just reporting. :)
RE: FOG Client GUI reuse for Notification messages.
I’m a little confused to what you’re wanting here.
FOG can handle the renaming (in fact I suggest it) and will notify the users before rebooting.
RE: Resetting FOG Snap In IDs
#!/bin/bash #----- MySQL Credentials -----# snmysqluser="root" snmysqlpass="" snmysqlhost="10.4.200.150" # If user and pass is blank, leave just a set of double quotes like "" # if the db is local, set the host to just double quotes "" or "127.0.0.1" or "localhost" #----- Begin Program -----# selectAllImageIDs="SELECT imageID FROM images ORDER BY imageID" selectLowestImageID="SELECT imageID FROM images ORDER BY imageID ASC LIMIT 1" selectHighestImageID="SELECT imageID FROM images ORDER BY imageID DESC LIMIT 1" options="-sN" if [[ $snmysqlhost != "" ]]; then options="$options -h$snmysqlhost" fi if [[ $snmysqluser != "" ]]; then options="$options -u$snmysqluser" fi if [[ $snmysqlpass != "" ]]; then options="$options -p$snmysqlpass" fi options="$options -D fog -e" #Information gathering. lowestID=$(mysql $options "$selectLowestImageID") highestID=$(mysql $options "$selectHighestImageID") newAutoIncrement=$((highestID + 1)) ####### Basic logic flow ######## #If there is an image id of 1, move it to the new auto increment number. #After re-numbering is complete, the new auto increment number will not be taken. #Then reset the auto-increment to the new auto increment number, which is the first free number. #Move any images that have an ID of 1 to the next free number. if [[ "$lowestID" -eq "1" ]]; then echo "-------------------" echo "Attempting to change Image ID $lowestID to $newAutoIncrement" mysql $options "UPDATE images SET imageID = $newAutoIncrement WHERE imageID = $lowestID" mysql $options "UPDATE imageGroupAssoc SET igaImageID = $newAutoIncrement WHERE igaImageID = $lowestID" mysql $options "UPDATE hosts SET hostImage = $newAutoIncrement WHERE hostImage = $lowestID" echo "Attempt completed" fi #Re-number all images sequentially. count=1 mysql $options "$selectAllImageIDs" | while read imageID; do echo "-------------------" echo "Attempting to change Image ID $imageID to $count" mysql $options "UPDATE images SET imageID = $count WHERE imageID = $imageID" mysql $options "UPDATE imageGroupAssoc SET igaImageID = $count WHERE igaImageID = $imageID" mysql $options "UPDATE hosts SET hostImage = $count WHERE hostImage = $imageID" echo "Attempt completed" count=$((count + 1)) done #set new auto-increment. echo "-------------------" highestID=$(mysql $options "$selectHighestImageID") newAutoIncrement=$((highestID + 1)) echo "Attempting to change the auto_increment for the images table to $newAutoIncrement" mysql $options "ALTER TABLE images AUTO_INCREMENT = $newAutoIncrement" echo "Attempt completed"
Here it is. :) My guess would be to change the SELECT imageID from images to SELECT snapinID from snap ins… but I’m taking a wild guess. :p
RE: Best way to deploy Windows?
@Tom-Elliott Wrong thread, but I did post them both. :)
Is this Windows 7 or 10?
Here’s a small write up I made. It’s pretty condensed, but if you need help with anything just let me know.
Resetting FOG Snap In IDs
I found the script that @Wayne-Workman posted for fixing the numbering of the image IDs (which worked great!)
Is there a script or a way to reset the ID numbers of the snap ins? We’re getting into the 20s-30s and the numbering is becoming a bit sporadic during full registration.
Upgrading to trunk 1.3.1 RC-2
I’m a little frustrated that I can’t seem to get git to work correctly, but I just don’t want to break anything on my installation.
I’m running FOG 1.3.0 and am trying to upgrade to the latest trunk release following the current instruction set to move to trunk, but I always used svn before, so I don’t want there to be any conflicts if I do git now.
git clone https://github.com/FOGProject/fogproject.git /root/fogproject/
destination path '/root/fogproject' already exists and is not an empty directory.
which that’s where my 1.3.0 resides.
and svn up doesn’t work anymore.
What’s the best way from using svn before to switching to git without breaking a whole bunch of stuff? Or am I just being dumb and doing something completely stupid (rough week)?