Great work !! :clap_tone1:
Best posts made by jmeyer
-
RE: Remove Legacy client and replace with latest new client?
I just made a .bat with this inside and it looks to work fine.
@echo off msiexec /qn /x "FOG Service Installer.msi" msiexec /qn /i "FOGService.msi"
Thank you.
-
RE: Remove Legacy client and replace with latest new client?
@Wayne-Workman I’ll work a bit more on the script.
edit :IF %PROCESSOR_ARCHITECTURE%==AMD64 set programpath=%programfiles(x86)% IF %PROCESSOR_ARCHITECTURE%==x86 set programpath=%programfiles% IF EXIST "%programpath%\FOG\fog.ca.cer" GOTO END set FogServerIP=fogserver set GetID=wmic product where "Version like '3.0.29' and name like 'FOG Service'" get IdentifyingNumber for /F "skip=1 delims=" %%i in ('%GetID%') do if not defined ID set "ID=%%i" IF "%ID%" NEQ "" start /wait msiexec /x %ID% /q start /wait bitsadmin /transfer FOGService /download /priority normal http://%FogServerIP%/fog/client/FOGService.msi %temp%\FOGService.msi start /wait msiexec /i %temp%\FOGService.msi /quiet WEBADDRESS="%FogServerIP%" :END
This should works but I don’t know wwhy my download end in queue when there is nothing else to do and I can’t install client silently… I love computers…
-
RE: Send message to Slack
@sourceminer Hello, I never tested using a channel but using a private message works fine with test token.
You can also create your bot : https://my.slack.com/services/new/botHere is my conf :
-
WAPT snapins
Hello,
I am working on WAPT packages import directly in snapins.
I am writing single line powershell script to rename to zip, extract to directory, find command and run it.This is my first test script for VLC from windows :
$packwapt = "tis-vlc_3.0.16-12_x64_windows_0f4137ed1502b5045d6083aa258b5c42_5.1_PROD.wapt"; $packname = [System.IO.Path]::GetFileNameWithoutExtension($packwapt); Copy-Item $packwapt $packname".zip"; Expand-Archive -LiteralPath $packname".zip" $packname; Remove-Item $packname".zip"; $s = Get-Content -Path $packname"\setup.py" | Select-String -Pattern "silentflags = "; if ($s -ne $null) { $s=[regex]::matches($s,'(?<=\").+?(?=\")').value; Get-ChildItem -Filter $packname"\*.exe" | ForEach {&$_.Fullname $s} }; Remove-Item $packname –recurse;
I’m not sure where I am going and if this is useful… lol
-
RE: New FOG client shutdown
@Jbob It’s working.
I found something else.
In the MSI détails, I don’t have the right version displayed.
It’s write : {16B0BCD7-423F-49A9-B757-E457D7312A33}Can you display version during install ?
Shouldn’t we be able to update client from tray or from GUI ?
I didn’t find how do this without overwriting. -
RE: (SVN) Adding needed repository... Failed!
@george1421 Just found proxy in ~/.bashrc
I run install again. -
RE: WAPT snapins
I have review my first idea.
I have used Snapin Pack.
Zip the wapt and the ps1 script and it’s working for VLC WAPT package.Get-ChildItem -Filter '*.wapt' | ForEach { Set-Variable -Name packwapt -Value $_.Fullname Set-Variable -Name packname -Value $packwapt.Substring(0,$packwapt.Length-5) Copy-Item $packwapt $packname'.zip' Expand-Archive -LiteralPath $packname'.zip' $packname Set-Variable -Name s -Value (Get-Content -Path $packname'\setup.py' | Select-String -Pattern 'silentflags = ') if ($s -ne $null) { Set-Variable -Name s -Value ([regex]::matches($s,'(?<=\").+?(?=\")').value) Get-ChildItem -Path $packname -Filter '*.exe' | ForEach { Start-Process -FilePath $_.Fullname $s -Wait; } } }
-
RE: Fog 1.6 - Kernel Panic
@Sebastian-Roth
I make new install of Fog under Debian.
I was using Ubuntu years ago so it’s old install (3 years old).I have been testing Fog version since years with Tom.
And as i work with VM, i can revert change easily. -
RE: (SVN) Adding needed repository... Failed!
@george1421 Was this !! But needed a reboot after.
Thank you very much to all of you.
-
RE: WAPT snapins
Caling powershell.exe doesn’t allow to set variable directly ($var=“test”).
I had to use Set-Variable command but multi commands doesn’t work as expected since every line need a command.
I’ll keep trying to work on this.
-
RE: [FOG 1.6] “Attempting to check in… Failed”
@Sebastian-Roth Here are the 2 files :
Export Hosts FOG Project.csv
Export Groups FOG Project.csvMaybe you also need installed apps version or a full db backup ?
After a week server was saying this and I had to force reboot.
-
RE: Remove Legacy client and replace with latest new client?
@Wayne-Workman Downloading the client from server wasn’t something I have think about. Nice one.
It’s not “fog.ca.cer” that we should look for instead of “fog.ca” ?
I don’t think to have %ProgramFiles(x86)% under my 32 bits OS !I go lunch and I’ll look at this part this afternoon if you don’t do it before me.
edit :
IF %PROCESSOR_ARCHITECTURE%==amd64 SET programpath=Program Files ^(x86^) IF %PROCESSOR_ARCHITECTURE%==x86 SET programpath=Program Files IF NOT EXIST "%systemdrive%\%programpath%\FOG\fog.ca.cer" ( set FogServerIP=fog-server set GetID=wmic product where "Version like '3.0.29' and name like 'FOG Service'" get IdentifyingNumber for /F "skip=1 delims=" %%i in ('%GetID%') do if not defined ID set "ID=%%i" setlocal IF "%ID%" NEQ "" start /wait msiexec /x %ID% /q start /wait bitsadmin /transfer FOGService /download /priority normal http://%FogServerIP%/fog/client/FOGService.msi %temp%\FOGService.msi start /wait msiexec /i %temp%\FOGService.msi /quiet WEBADDRESS="%FogServerIP%" endlocal )
“set” doesn’t look to work when put after “setlocal” for me so I have moved it upper…
How are you sure that old client is version 3.0.29 ? -
Storage with NFS share on NetGear ReadyNAS
Add NAS on the same network of the FOG server.
In my case, FOG server has IP 192.168.0.50 and NAS has 192.168.0.55.On the ReadyNAS web interface
-
Add a share and select NFS protocol.
-
Click on the
of the share to add allowed computer. -
Enter the IP of the FOG server and clic Add
-
On the FOG server, create a new image directory and mount your NAS share
-
Test write from FOG server
You should see the new directory on the ReadyNAS web interface
To mount it add FOG server boot, edit the /etc/fstab file and add this line
192.168.0.55:/data/images /images2 nfs defaults 0 0
-
Reboot and check auto mount working (create a file or a directory as previous test from manual mount)
-
Change owner of the /images2 directory with command
chown fogproject:root /images2
-
Edit or add your storage on FOG GUI to use it.
-
If you added a new storage node in the same storage group, you should see your images, dev and postdownloadscripts directories on NAS share after replication.
-
-
RE: Remove Legacy client and replace with latest new client?
Here is the new version using robza command for removing the old client that makes.
We reduce a bit the size of the script this way and I just realized that one IF was useless.
I hope I didn’t miss something because I am putting it in GPO ! lol::v3.1 - Thanks to Wayne Workman, Robza set programpath=%programfiles(x86)% IF %PROCESSOR_ARCHITECTURE%==x86 set programpath=%programfiles% IF EXIST "%programpath%\FOG\fog.ca.cer" GOTO END set FogServerIP=fog-server start /wait wmic product where "Version like '3.0.29' and name like 'FOG Service'" call uninstall /nointeractive start /wait bitsadmin /transfer FOGService /download /priority normal http://%FogServerIP%/fog/client/FOGService.msi %temp%\FOGService.msi start /wait msiexec /i %temp%\FOGService.msi /quiet WEBADDRESS="%FogServerIP%" :END
Just found a bug on my side.
Client 0.9.9 doesn’t remove or upgrade version 0.9.7 and I end with 2 “FOG Service” in add/remove software panel.
Removing the 0.9.7 doesn’t impact the install of the 0.9.9.
Maybe it’s something to add to script. -
RE: Remove Legacy client and replace with latest new client?
@Wayne-Workman Upgrading to 0.9.7 was a very bad idea ! lol
https://forums.fogproject.org/topic/6368/client-updater-loopNow i need to review the script to remove 0.9.7 and 0.9.9 is both are installed…
Any idea how to do this ?I temporary did this since i have no other choice :
::v3.2 - Thanks to Wayne Workman, Robza start /wait wmic product where "Version like '0.9.7' and name like 'FOG Service'" call uninstall /nointeractive start /wait wmic product where "Version like '0.9.9' and name like 'FOG Service'" call uninstall /nointeractive set programpath=%programfiles(x86)% IF %PROCESSOR_ARCHITECTURE%==x86 set programpath=%programfiles% IF EXIST "%programpath%\FOG\fog.ca.cer" GOTO END set FogServerIP=fog-server start /wait wmic product where "Version like '3.0.29' and name like 'FOG Service'" call uninstall /nointeractive start /wait bitsadmin /transfer FOGService /download /priority normal http://%FogServerIP%/fog/client/FOGService.msi %temp%\FOGService.msi start /wait msiexec /i %temp%\FOGService.msi /quiet WEBADDRESS="%FogServerIP%" :END
-
RE: [FOG 1.5.9-RC2.11] No configuration methods succeeded
@Sebastian-Roth We have find out that bios mode had to set to “Legacy Support” with priority on “UEFI First” and not with bios mode on “UEFI”.
Problem wasn’t coming from FOG.Sorry and thank you for your help.
-
RE: what USB can support iPXE boot
@george1421
Do you mean using brand adapteur certified for PXE such as :
https://www.dell.com/en-us/shop/dell-adapter-usb-30-to-ethernet-pxe-boot/apd/443-bbbd/pc-accessories
or
https://www.lenovo.com/fr/fr/p/accessories-and-software/cables-and-adapters/cables-and-adapters_adapters/4x90s91831