what you can do - on the server (from terminal) log into mysql (mysql -u root fog (-pYOUR-PASSWORD-IF-YOU-SET-ONE)) and then run…
Select * FROM globalSettings WHERE settingKey = “FOG_STORAGENODE_MYSQLPASS”;
what you can do - on the server (from terminal) log into mysql (mysql -u root fog (-pYOUR-PASSWORD-IF-YOU-SET-ONE)) and then run…
Select * FROM globalSettings WHERE settingKey = “FOG_STORAGENODE_MYSQLPASS”;
multicast doesn’t seem to be working for me, no matter how i queue the task, tried from list all hosts using deploy, tried from group multicast, tried task management and list all group, multicast - it is creating seperate multicast tasks for each host :-S
progress bar show dev size when needs to be “space in use” otherwise percent and figures are off… % is correct but total/of size is isn’t
[IMG]http://s28.postimg.org/w4rme1bn1/image.jpg[/IMG]
also just an aesthetics, could the progress bar be set to the width of the header? looks odd being wider
think i found a bug in the gui you can’t turn off directoy cleaner or green fog from service management page (all other modules seem ok)
I have already “half” coded this into the init.gz if anyone wants to pick it up.
[url]http://fogproject.org/forum/threads/backup-feature-for-user-profiles-data.4264/#post-15326[/url]
I don’t use the registry key way (removed it from my init.gz) i get the fog script to edit the sysprep file main reason get it to do it while it’s changing the sysprep file to join the domain or specified workgroup - so it’s all done by sysprep - only use the FOG Client for snapins.
I do something very similar to the original post but instead of the post script fog (customised init.gz) detects the model, makes the reg changes to the images and the downloads the driver folder from the server (just after it completes the image task - before it reboots) and lets sysprep take care of the rest… never fails either!
so now need to pull the data back down after imaging done so then after:
echo " * Database updated!";
echo “”;
fi
clearScreen;
add this:
[CODE]echo -n " * Mounting users backup location…";
mkdir /ubackup
echo “Done”;
mount -o nolock,proto=tcp ${storage}Backup /ubackup
echo -n " * Downloading user data backup…";
mkdir -p /ntfs/UserBackup 2>/dev/null;
mv ${tmpuBackupPath}/Users /ntfs/UserBackup
rm -rf /ubackup/*
echo “Done”;
[/CODE]
it needs a little work but edit fog file within init.gz and add this code (you will need to create a folder on the server “/images/Backup”
and just add /amend every instance of:
[CODE]echo -n " * Waiting for disks to settle…";[/CODE]
to
[CODE]echo -n " * Waiting for disks to settle…";
echo “Done”;
echo -n " * Preparing users backup location…";
mkdir /ubackup
mount -o nolock,proto=tcp ${storage}Backup /ubackup
macWinSafe=echo $mac | sed 's/://g'
;
tmpuBackupPath=“/ubackup/$macWinSafe”;
if [ ! -d “$tmpuBackupPath” ]
then
mkdir -p “$tmpuBackupPath” 2>/dev/null;
fi
chmod -R 777 $tmpuBackupPath
rm -rf “$tmpuBackupPath/*”
parts=fogpartinfo --list-parts $hd 2>/dev/null
;
for prt in $parts
do
win7partcnt=expr ${win7partcnt} + 1
;
done
if [ “$win7partcnt” = “1” ]; then
part=“/dev/sda1”;
elif [ “$win7partcnt” = “2” ]; then
part=“/dev/sda2”;
elif [ “$win7partcnt” = “3” ]; then
part=“/dev/sda3”;
fi
echo “Done”;
echo -n " * Backing up user data…";
mkdir /ntfs &>/dev/null
ntfs-3g -o force,rw $part /ntfs
if [ “$type” = “down” -a “$osid” = “1” ]; then
mkdir -p ${tmpuBackupPath}/“Documents and Settings” 2>/dev/null;
chmod -R 777 ${tmpuBackupPath}/“Documents and Settings”
cp -rf /ntfs/“Documents and Settings/”* ${tmpuBackupPath}/“Documents and Settings” 2>/dev/null;
else
mkdir -p “${tmpuBackupPath}/Users” 2>/dev/null;
chmod -R 777 ${tmpuBackupPath}/Users
cp -rf /ntfs/Users/* ${tmpuBackupPath}/Users 2>/dev/null;
fi
echo “Done”;
umount /ubackup;
umount /ntfs;
[/CODE]
i personally use 100mb partition with os partition as small as possible and let sysprep extend the partition automatically, you should run into issues aslong as your os partition is smaller than your smallest disk.
::pxelinux.0 should be : : pxelinux.0 (without spaces)
Hi all,
we currect have FOG and WDS co-existing at the moment until we completely transfer everything to FOG, we’ve been able to chainload from WDS PXE to FOG PXE menu however trying to chainload from FOG PXE to the WDS PXE does not work, can anyone help?
This works and reaches FOG on WDS Server PXE Menu:
[COLOR=#ff0000]# Option 3 - Pass Thru 2 FOG[/COLOR]
[COLOR=#ff0000]LABEL fog[/COLOR]
[COLOR=#ff0000] MENU LABEL ^FOG Imaging Server[/COLOR]
[COLOR=#ff0000] MENU PASSWD[/COLOR]
[COLOR=#ff0000] kernel pxechn.c32[/COLOR]
[COLOR=#ff0000] APPEND IPADDRESSOFFOGPXE::pxelinux.0[/COLOR]
This is failing to reach WDS Server from FOG PXE Menu
[COLOR=#ff0000]LABEL WDS[/COLOR]
[COLOR=#ff0000]kernel chain.c32[/COLOR]
[COLOR=#ff0000] append IPOFWDSPXESERVER::pxelinux.0[/COLOR]
[COLOR=#ff0000]MENU LABEL WDS Server[/COLOR]
[COLOR=#ff0000]TEXT HELP[/COLOR]
[COLOR=#ff0000]Loads the WDS Imaging Environment.[/COLOR]
[COLOR=#ff0000]ENDTEXT[/COLOR]
to add another field under machine details so that you can choose which ou? and whichever one you choose and when you tick join ad it will pre-populate hostAdOU reflecting with whicever one you’ve chosen abit like OSID
sorry, yes you’re right regarding the process. it is alot of core changes you need to make to include this as you would need to edit the init.gz to include rsync and would also need to include the location patch to determine which storage node to pull it from:
[url]http://fogproject.org/forum/threads/requested-multi-site-location-patch-requested.410/#post-4570[/url]
however this is coded based on 0.31 and it’s not being included in the future releases but may be able to use the new core and hook functionality to include this but this is all on hold really until 0.33 is ready for production.
So to summarize you would need to make alot of changes to use it in this way - maybe someone else has simpler solution to suggest?
hi,
I’ve managed to do this using crontab -e, chose one of the servers to be the main server and got the rest to sync to it, so if you change the snapin/installers on the one server it’ll sync down to the rest and it’s set to check hourly and using rsync, also added rsync in the init.gz so it pulls down the snapins locally then a tiny script runs from the main server using the installer on the root and then the script deletes them when it’s finished
Hi,
Would like to see FOG Update the primary user with the last person who logged on as it is also useful when using the equipment Loan Report, this would get people to utilise this field more.
Thanks
P.S the information is there already as long as user login history is used.