• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. RipAU
    3. Posts
    R
    • Profile
    • Following 0
    • Followers 1
    • Topics 30
    • Posts 158
    • Best 6
    • Controversial 0
    • Groups 0

    Posts made by RipAU

    • RE: Using FOG without PXE - FOG client on USB key

      Yep, while it isn’t complex if you have done it a few times, it can seem a little daunting, (and frustrating behind a corporate proxy that uses SSL inspection and other proxy shenanigans.)

      As george1421 mentioned, the Rom-O-Matic site was shutdown, mainly due to resources on the iPXE community and the will power to fund it, I suspect. I just personally liked this method, as it was a fast and easy way to generate images. Alas. Manually compiling is the way forward.

      When creating the image as mentioned above, (using the fog method linked by george1421) you take the image and add it to a USB key, depending if you wanted UEFI USB key or Legacy method, will depend on which image you use. (Some old devices crap out with UEFI, so I only mention this due to old devices, so results may vary.) The method above uses the UEFI images.

      Anyway hopefully I haven’t made it more confusing. 🙂

      posted in General
      R
      RipAU
    • RE: Using FOG without PXE - FOG client on USB key

      We have something similar, we are unable to get DHCP proxy working, I’m unsure why.
      They made a change and it broke any ability to proxy from what I’ve been able to test.

      We get around this by creating a PXE client on the USB key pointed at our FOG server.

      Previously we used ROM-O-Matic but that has fallen over and hasn’t been picked up again. I assume it was a niche service.
      On our iPXE USB we use the iPXE script like this:

      #!ipxe
      prompt --key 0x02 --timeout 1000 Press Ctrl-B for the iPXE command line... && shell ||
      dhcp
      cpuid --ext 29 && set arch x86_64 || set arch i386
      params
      param mac ${net0/mac}
      param arch ${arch}
      chain http://x.x.x.x/fog/service/ipxe/boot.php##params
      

      No doubt there are other ways to achieve the same result.
      Anything I’ve found useful for FOG/iPXE or managing systems I usually keep in my github.

      https://github.com/mediocreatmybest/FOG-O-Matic/tree/main/iPXE

      I’ve got the ROM-O-Matic settings I used for iPXE as well, no doubt needs updating but last time I built the key I didn’t have any issues with it.

      https://github.com/mediocreatmybest/FOG-O-Matic/tree/main/iPXE/iPXE-Scripts

      posted in General
      R
      RipAU
    • RE: WinGet installation as a snapin

      Copy and pasted for the Chocolatey wrapper ChocolatePy
      Pretty much same same. Just Chocolatey won’t neccessarily give an error on the exit code on failure if a program is already installed.

      https://github.com/mediocreatmybest/FOG-O-Matic/blob/main/FOG-Snapins/ChocolatePy.py

      posted in Tutorials
      R
      RipAU
    • WinGet installation as a snapin

      Hi, everyone.

      Hopefully this is useful for a few people.

      I’ve written a wrapper around with Python to be able to run the WinGet command from the Snap-In tasks with some commands forced (accepting agreement, source, ect. when installing.
      I’ve created this due to WinGet changing its location based on its version, no doubt there was an easier way to do this, but figured I’d try learning something different with Python.

      It is fairly easy to use, and you would need to convert the script into an executable with a program such as Auto-Py-to-Exe so it doesn’t have any Python requirements on the host device.

      After the script is converted into a binary, you can either re-name it, use it in a snap-in pack and call it like you would regular Winget commands.
      The only additional argument is the logging to a file. If calling the script without logging it is just outputted to the standard output.
      Otherwise installing and logging to the fog.log for example.

      PyWinGet.exe --log c:\fog.log install notepad++ -s winget
      

      When logging, it needs to be set before the WinGet commands.

      Anyway, it can be found in my Fog Snap in folder on GitHub.

      https://github.com/mediocreatmybest/FOG-O-Matic/blob/main/FOG-Snapins/PyWinGet.py

      FYI, Winget isn’t the best program to pipe into a text file due to its usage of progress bars that you can’t switch off, but it is still readable.

      posted in Tutorials
      R
      RipAU
    • Snapin scripts or program deployment tricks to share? Here are mine.

      Hi, everyone.

      Since my last post was a hot topic of discussion. 👏
      I figured I’d throw some of the scripts I’ve cobbled together into a github with some other items I’ve found scattered in my random bookmarks, please feel free to share anything useful in the forum. One of the more useful ones was deploying applications via Fog with WinGet from the WinGet source.

      Note: I am not a PowerShell guru, so feel free to correct anything I’ve put up.
      I’m not sure how actively the Snapin client is used within the community, I don’t have any access to SCCM or other deployment methods so FOG it is. 🙂

      https://github.com/mediocreatmybest/FOG-O-Matic/tree/main/FOG-Snapins

      posted in General
      R
      RipAU
    • RE: Add menu entries for booting ISO or Kickstart images.

      iPXE itself is pretty powerful when it comes to menus and booting options, obviously your results may vary from distro to distro or application to application etc. etc.

      This example is using the Advanced menu, with subcategories etc.
      I haven’t had much need for this in a while due to my work changing the way the boot system here works breaking things out of my control, but this is a post from a few years back that should still work but you would need you to look up specific settings per distro based on what you are trying to do.

      https://forums.fogproject.org/topic/7329/sub-menu-within-fog-advanced-menu

      This guy has some impressive examples: https://gist.github.com/robinsmidsrod/2234639

      Additional information DHCP Options:
      https://gist.github.com/robinsmidsrod/4008017

      Example for Sysrescue:
      https://gist.github.com/robinsmidsrod/1c7bbd4a058f0e6892df

      Results may vary. ¯\_(ツ)_/¯

      posted in General Problems
      R
      RipAU
    • RE: Release of New Fog Version

      @sebastian-roth Perfect.
      I’ll look at getting a test version up and running and see how it goes.
      My work has made internet more clunky to get proxies working so I’ll have to test that as well.

      posted in General
      R
      RipAU
    • Snap-in library available?

      Hi, everyone.

      Just curious if anyone knows if there are snap-in shares or wiki entry with snap-ins people have used or scripts etc?

      I’ve got a list at work that I’ve been adding to just curious what people do etc.

      Thanks.

      posted in General
      R
      RipAU
    • RE: Release of New Fog Version

      @sebastian-roth

      Honestly thanks to everyone doing work on this, I’ve loved using FOG for years at this point.

      Is there documentation on installing the future version at all? I’m happy to throw it up on the server at work and test. We re-image devices every few days, so happy to have it sitting next to the other version.

      Or is this just sitting in dev branch on github and is the same process as previous?

      Thanks again.

      posted in General
      R
      RipAU
    • RE: Active Tasks in Storage Group Activity shows active task

      Perfect all looking normal now 🙂
      One place I didn’t think to look was on the Wiki 😕

      Thanks!
      Cheers,

      posted in FOG Problems
      R
      RipAU
    • Active Tasks in Storage Group Activity shows active task

      Hi, everyone.

      I’ve updated to the latest FOG 1.5.9 and all in general seems to be working fine.
      I’ve noticed that in my fog storage activity on the Dashboard it lists an active task.

      cee59d87-c17b-43ee-b359-9f5e0615cdf5-image.png

      I cannot see the active task listed in ‘Tasks’ at all,
      Active Tasks, Active Multicasts, Active Snapin Tasks and Schedules Tasks are all blank.

      Just wondering if this may be a rogue entry sitting in the Database?
      I’ve had a search but can’t see anything specific in the forums.

      I did have a read through https://forums.fogproject.org/topic/11059/clearing-specific-kinds-of-task-types-using-sql

      When looking at the database (Query could be wrong) to try see active tasks,

      select * from tasks where tasktypeID ='1' and taskstateid = '0';
      

      Shows empty. The next query with taskstateid = ‘1’ returns the following:

      MariaDB [fog]> select * from tasks where tasktypeID ='1' and taskstateid = '1';
      +--------+---------------------------------+---------------------+---------------------+------------+-------------+-------------+-------------+--------------+-----------+------------------------+------------+------------+---------+-----------------+-------------------+----------------+-----------------+---------------+----------------+-----------------+-----------------+------------------+---------+---------------+--------------+
      | taskID | taskName                        | taskCreateTime      | taskCheckIn         | taskHostID | taskImageID | taskStateID | taskIsDebug | taskCreateBy | taskForce | taskScheduledStartTime | taskTypeID | taskPCT    | taskBPM | taskTimeElapsed | taskTimeRemaining | taskDataCopied | taskPercentText | taskDataTotal | taskNFSGroupID | taskNFSMemberID | taskNFSFailures | taskLastMemberID | taskWOL | taskPassreset | taskShutdown |
      +--------+---------------------------------+---------------------+---------------------+------------+-------------+-------------+-------------+--------------+-----------+------------------------+------------+------------+---------+-----------------+-------------------+----------------+-----------------+---------------+----------------+-----------------+-----------------+------------------+---------+---------------+--------------+
      |   3153 | Deploy Task                     | 2019-03-01 13:06:45 | 0000-00-00 00:00:00 |          0 |          10 |           1 |           0 | fog          | 0         | 0000-00-00 00:00:00    |          1 | 0000000000 |         |                 |                   |                |                 |               |              0 |               0 |                 |                0 | 1       |               |              |
      |   6455 | Deploy Task - Room_01           | 2020-07-08 12:56:39 | 0000-00-00 00:00:00 |          0 |           1 |           1 |           0 | fog          | 0         | 0000-00-00 00:00:00    |          1 | 0000000000 |         |                 |                   |                |                 |               |              0 |               1 |                 |                0 | 1       |               |              |
      +--------+---------------------------------+---------------------+---------------------+------------+-------------+-------------+-------------+--------------+-----------+------------------------+------------+------------+---------+-----------------+-------------------+----------------+-----------------+---------------+----------------+-----------------+-----------------+------------------+---------+---------------+--------------+
      2 rows in set (0.00 sec)
      
      

      or if I’m not on the right track? or missing something else?

      Thanks!

      Cheers,

      posted in FOG Problems
      R
      RipAU
    • Error uploading snapin package - PHP error

      Hi, everyone.

      I’ve previously never had an issue with uploading snapins.
      I’m trying to upload a 580Mb snapinpackage as a zip.

      I get the error:

      Snapin Update Fail
      RecursiveDirectoryIterator::__constuct(//boot/grub2): failed to open dir: Permission denied

      If I upload this as a regular snapin as an exe it uploads fine.
      If I upload this with a dummy small zipfile it works fine.
      I’ve created this zip file on 2 separate computers as well as a few different zip programs, so it isn’t corrupt.

      Fog version is 1.5.8

      I can’t see anything in the httpd error, anyone have an suggestions on where to look? thanks!

      I’m unable to upload the screenshot sorry. getting a ZLIB error on the forums.

      ![0_1587703996457_2020-04-24 13_09_04-Snapin General.png](Uploading 100%)

      posted in FOG Problems
      R
      RipAU
    • RE: Possible Proxy issue with MAC Address Update

      Cheers,

      Yes that work around worked.

      Cheers!

      posted in FOG Problems
      R
      RipAU
    • Possible Proxy issue with MAC Address Update

      Hi, Guys

      I’m getting the following errors when trying to update the MAC address.

      The fog server doesn’t have direct connection to the internet so I’ve configured the proxy settings within fog, this seems to be working correctly, but when I go update the Mac address update menu it gives an error that it can not connect (See below) and throws an error on the webpage with Chrome:
      “currently unable to handle this request. HTTP ERROR 500”

      I’m assuming this is because the request to update the mac address isn’t going through the proxy hence the errors.
      Would this be a bug or something I may be doing wrong?

      I’m testing this all on FOG 1.5.0-RC10 with Centos 7

      Cheers,

      
      [Tue Dec 12 08:46:03.566215 2017] [:error] [pid 15935] [client 10.0.0.1:63841] PHP Warning: fopen(http://linuxnet.ca/ieee/oui.txt): failed to open stream: Connection refused in /var/www/html/fog/lib/pages/fogconfigurationpage.class.php on line 1928, referer: http://fogserver/fog/management/index.php?node=about&sub=maclist
      
      [Tue Dec 12 08:46:03.566380 2017] [:error] [pid 15935] [client 10.0.0.1:63841] PHP Fatal error: Uncaught exception 'Exception' with message 'Could not read temp file' in /var/www/html/fog/lib/pages/fogconfigurationpage.class.php:1929\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogpagemanager.class.php(220): FOGConfigurationPage->maclistPost()\n#1 /var/www/html/fog/management/index.php(58): FOGPageManager->render()\n#2 {main}\n thrown in /var/www/html/fog/lib/pages/fogconfigurationpage.class.php on line 1929, referer: http://fogserver/fog/management/index.php?node=about&sub=maclist
      
      posted in FOG Problems
      R
      RipAU
    • RE: iPXE New Menu Entry - Bug?

      Ahh my bad, the description was just blank as I was just testing the Menu.
      I copied every other field but the description from my previous server. All good now cheers.
      Sorry about that.

      posted in Bug Reports
      R
      RipAU
    • RE: Advanced Menu Command Missing Text Box

      Yep just seeing this issue in Chrome with Windows 10.

      posted in Bug Reports
      R
      RipAU
    • RE: iPXE New Menu Entry - Bug?

      0_1512529651666_image2 - Copy.jpeg

      0_1512529668332_image1 - Copy.jpeg

      Just snapped a screenshot of what I mean.

      Cheers,

      posted in Bug Reports
      R
      RipAU
    • iPXE New Menu Entry - Bug?

      Hi, guys.

      I’m not sure if this is a bug or something I haven’t setup correctly.
      This is with Version 1.5-RC10 installed from GIT.

      After creating a new iPXE menu entry called “fog.QuickSystemInfo”
      On the fog boot up screen the new menu entry is there and working and you can select it but the text is hidden? or maybe the same colour as the background?

      Cheers,

      posted in Bug Reports
      R
      RipAU
    • RE: Advanced Menu Command Missing Text Box

      Ahh yep, if I edit the HTML and just remove:

      id="advtext"
      

      The text box re-appears, so yes I’m assuming it is related to the CSS?

      Just FYI, I tested it with the latest Firefox and the text box is working. It only appears to be having an issue in Chrome for me.

      Cheers,
      Adam

      posted in Bug Reports
      R
      RipAU
    • RE: Advanced Menu Command Missing Text Box

      Just noticed on my test server (Version 1.5.0-RC-10) that the text box is working with Internet Explorer 11 and Edge Browser but missing on the latest Chrome (Version 62.0.3202.94.) I haven’t been able to test with firefox yet sorry.

      I’m not a web developer so I’m not exactly sure what I’m looking for with chrome inspect:

      0_1512455513504_RC10-chrome.png

      posted in Bug Reports
      R
      RipAU
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 1 / 8