@maveriick
Always make a backup first. Using fog suggestion should work (cd; mysqldump --allow-keywords -x -v fog > fogbackup.sql
)
To drop a database : drop database fog;
Posts made by Thiago
-
RE: SQL not working after update to 1.3.0 RC10
-
RE: SQL not working after update to 1.3.0 RC10
@maveriick enter the ; and press enter to terminate the command…
all command must have ended with ; -
RE: RC10 Broken Items on upgrade
@adukes40
To solve “Snapin hash does not exist”, i updated all my snapins to generate the hash.
When i opened a snapin to edit, the hash field (that is read only) was empty. I clicked the update button and the field was filled.
After this, snapin was installed.
edit. some I had to delete and recreate the snap in, by uploading the file again. -
RE: Modifying Boot Menu
@mbarker
all this can be done using just fog webui (i think).My idea (if i understood your problem):
1 - in iPXE Menu Configuration, change options that you want to hide from your client to “do not list on the menu”
2 - let “fog.deployimage” and “fog.local” visible to all hosts. Adjust them as needed. Example: if you dont need asks for password and other things.
3 - when you boot the laptop, you will see only these options, if you dont touch anything, then local disk will be loaded.
If you choose “Deploy Image” you will see another menu with all of your images, if you name them appropriately, will be easy to identify and select the image to deploy. -
RE: Select multiple partition to deploy/capture
@Sebastian-Roth @ch3i
tested with my dual boot system (Vista/Debian8) and worked!!. -
RE: Select multiple partition to deploy/capture
@ch3i
I am in the same situation here. -
RE: FOG 1.3 RC8 - Fails to Apply 'swap' UUID on Image Deploy
@dholtz-docbox
Looking at my old scripts ( i am not using at moment) i found one that changes linux hostname and swap uuid:/images/postdownloadscripts/fog.hosts #the file contents ----------------------- #/bin/sh . /usr/share/fog/lib/funcs.sh; partition=`lsblk -o KNAME,FSTYPE,LABEL /dev/sda? | grep -v -E "swap|KNAME" | awk '{print $1}'` mountpoint="/test" linuxhostname="$mountpoint/etc/hostname" comandomount="mount" swappart=`blkid | grep swap | awk -F"\"" '{print $2}'` dots "Creating mount point" mkdir -p $mountpoint 2>/dev/null && echo "OK" || echo "Error" for i in $partition do tipopart=`lsblk -o FSTYPE /dev/$i | grep -v FSTYPE` if [ $tipopart = "ext4" ] then comandomount="mount -t $tipopart" fi dots "Mounting Partition /dev/$i" $comandomount /dev/$i $mountpoint && status="OK" || status="Error" if [ $status = "OK" ] then echo "OK" if [ -e $linuxhostname ]; then dots "Changing hostname on Linux" echo $hostname > $linuxhostname && echo "OK" || echo "Error" fi dots "Changing swap UUID inside fstab file" fstabpart=`cat $mountpoint/etc/fstab | grep swap | grep UUID | cut -d"=" -f2| awk '{print $1}'` sed -i "s/$fstabpart/$swappart/g" $mountpoint/etc/fstab && echo "OK" || echo "Error" umount $mountpoint else echo "Error mounting partition $partition" fi done
don’t forget to put directive calling this script inside
/images/postdownloadscripts/fog.postdownload
It was used many times and works, but i don’t know if this is the final version put at production.
some ideas. -
RE: Dual boot windows 7 & opensuse boot problem
@Sebastian-Roth
Yes, My image is not resizable…
I will try to reproduce my steps…
1 - Erase disk data/delete partitions
2 - Install Windows, reserving space for linux or shrink windows later (in disk management tool, or gparted if needed).
3 - Install Linux, install grub on mbr or partition.
4 - Configure grub if needed ( i had to make some minor changes only in Debian8/Windows10 because grub was listing windows 10 as 7)My preference to use grub is because i can make changes in boot order, one time boot order and so on… easily using ansible or other management tool. I don’t know how can i achieve the same in Windows side.
-
RE: Dual boot windows 7 & opensuse boot problem
@ricky.ext
this is from one of my images:label: dos label-id: 0x40c79279 device: /dev/sda unit: sectors /dev/sda1 : start= 2048, size= 2097152, type=27 /dev/sda2 : start= 2099200, size= 222398464, type=7 /dev/sda3 : start= 224497664, size= 1953792, type=82 /dev/sda4 : start= 226451456, size= 86128640, type=83, bootable
I don’t know if this is correct, but works for me.
-
RE: Dual boot windows 7 & opensuse boot problem
@Wayne-Workman
each lab with its configuration and its specific purpose.@ricky-ext
the same layout here, 2 partitions for each system.(windows boot, windows system, swap, /)
i’m using grub to manage all. -
RE: Dual boot windows 7 & opensuse boot problem
All of our computers are dual boot system.
Some of them are Windows Vista/Debian, some Windows 10/Debian, Windows 10/Mint, Windows Vista/CentOS, Windows10/CentOS and so on.
Fog works correctly in all the cases.
How is your partition layout for opensuse (fs types)?
What is your fog version? -
RE: FOGCrypt is not recognized as an internal or external command, operable program or batch file
@DEMONTECH
You need to run the Fogcrypt command passing all the path where fogcrypt file is, or add the location to path variable.
eg. “C:\Test\FogCrypt.exe” …an advice:
when you hear: “legacy client”, run in the opposite direction as fast as possible … save your life … -
RE: SnapinPack Error: Version required to extract this entry not supported
@Quazz
Now it works with 7zip too.
Definitely something went wrong at last time. -
RE: SnapinPack Error: Version required to extract this entry not supported
@Quazz
previously: 7-zip 16.02-x86, Windows Vista Bussiness x86 SP2.
currently: zip 3.0-8-x64, Debian Jessie x64 (default zip package from debian).
I think that something went wrong when I made the compression. I will try again with 7zip and report with it works. -
RE: SnapinPack Error: Version required to extract this entry not supported
@Joe-Schmitt
It’s working now.
changing zip software works as expected.
Thanks. -
SnapinPack Error: Version required to extract this entry not supported
Server
- Version: 1.3.0-RC-8
- OS: CentOS 7
Client
- Version: 0.11.5
- OS: Windows Vista
Description
Following https://wiki.fogproject.org/wiki/index.php?title=SnapinPacks, i created a snapin pack for ampl software to test.
When i sent single snapin task, the task never ended and the sotfware was not installed.
Looking at fog.log:------------------------------------------------------------------------------ ---------------------------------SnapinClient--------------------------------- ------------------------------------------------------------------------------ 30/08/2016 17:42 Client-Info Client Version: 0.11.5 30/08/2016 17:42 Client-Info Client OS: Windows 30/08/2016 17:42 Client-Info Server Version: 1.3.0-RC-8 30/08/2016 17:42 Middleware::Response Success 30/08/2016 17:42 SnapinClient Snapin Found: 30/08/2016 17:42 SnapinClient ID: 102 30/08/2016 17:42 SnapinClient Name: ampl121 30/08/2016 17:42 SnapinClient Created: 2016-08-30 17:41:21 30/08/2016 17:42 SnapinClient Action: 30/08/2016 17:42 SnapinClient Pack: True 30/08/2016 17:42 SnapinClient Hide: False 30/08/2016 17:42 SnapinClient Server: http://192.168.1.1/fog 30/08/2016 17:42 SnapinClient TimeOut: 0 30/08/2016 17:42 SnapinClient SnapinPack File: cmd.exe 30/08/2016 17:42 SnapinClient SnapinPack Args: /c "[FOG_SNAPIN_PATH]\install-ampl12.1.bat" 30/08/2016 17:42 SnapinClient File: ampl-12.1.zip 30/08/2016 17:42 Middleware::Communication Download: http://192.168.1.1/fog/service/snapins.file.php?mac=00:40:A7:11:6A:27||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&taskid=102 30/08/2016 17:42 SnapinClient C:\Program Files\FOG\tmp\ampl-12.1.zip 30/08/2016 17:42 SnapinClient Processing SnapinPack ampl-12.1.zip 30/08/2016 17:42 SnapinClient Extracting SnapinPack 30/08/2016 17:42 SnapinClient ERROR: Version required to extract this entry not supported (788) 30/08/2016 17:42 Middleware::Communication URL: http://192.168.1.1/fog/service/snapins.checkin.php?taskid=102&exitcode=-1&mac=00:40:A7:11:6A:27||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService&json
Am i doing something wrong? What i could do to fix this?
-
RE: I can not cancel only one snapin from 'all snapin task'
@Wayne-Workman
I want to avoid fatigue!!
you are right! and i have to say that i did not have that idea!
simple, easy and works. -
RE: I can not cancel only one snapin from 'all snapin task'
@Wayne-Workman
i need to deploy 30 snapins (30 of 31), the 31 is deployed as single snapin to install our ocs agent software after all other work is done. If i could create all snapins task and cancel one…Maybe this could be possible in 2.0!!
Thank you…i will use single snapin task, works very well too. -
I can not cancel only one snapin from 'all snapin task'
Server
- Version: fog 1.3 rc8
- OS: centos 7
Client
- Version: 0.11.5
- OS: Windows Vista SP2
Description
Not sure if this is a bug…
When create all snapins task, i want to cancel only one snapin listed in “Active Snapin Tasks”. if i select, then hit cancel, all snapins are cancelled returning “no results found” for active snapins tasks page. Is this correct? If yes, how can i cancel only one snapin keeping others?
This is a fresh install of centos and fog.
Thanks. -
RE: How to determine image type
@Tom-Elliott
My image was created with trunk version and what you said about d1 files work for me. Thanks a lot to all!