• Location of the System Serial Number field in FOG db?

    1
    0 Votes
    1 Posts
    181 Views
    No one has replied
  • 0 Votes
    1 Posts
    534 Views
    No one has replied
  • "Windows Other" vs "Windows 10" when creating new Windows 11 images?

    3
    0 Votes
    3 Posts
    912 Views
    D

    @george1421 Great, thanks for the info!

  • Making Fog independent from pxe boot.

    7
    0 Votes
    7 Posts
    1k Views
    J

    @george1421 seems like in this post it is a similar interest they were implying by putting FOS on a bootable partition of the hard drive

    https://forums.fogproject.org/topic/7727/building-usb-booting-fos-image/4

  • FOG 1.5.10.x : Display problem with accesscontrol/site/windowskey plugins

    4
    0 Votes
    4 Posts
    876 Views
    Y

    Hello,

    Fix Members tab for accesscontol plugin and some display elements for site plugin (11807ac) : https://github.com/FOGProject/fogproject/pull/647

    Regards.

  • This topic is deleted!

    4
    0 Votes
    4 Posts
    32 Views
  • FOG 1.5.10.1604 ldap plugin

    14
    0 Votes
    14 Posts
    2k Views
    Tom ElliottT

    @AUTH-IT-Center Subree is updated to be properly listed as Subtree

  • Fog 1.5.10.1593 slack integration failing

    5
    0 Votes
    5 Posts
    949 Views
    Tom ElliottT

    @AUTH-IT-Center fog has some hooks and events capable but those are relatively new and not quite as granular as I’d like to see them, though I suppose with the effort of 1.6 it may be worth while to try to find all the possible hooks/events (they can be either and/or both technically) as will as the attributes available for each one. That may help with the event notifications. I warn it does not exist currently.

  • Adding custom task to Fog Server

    Solved
    37
    0 Votes
    37 Posts
    18k Views
    Y

    @csa Did you had success making your own custom task type ?

  • Fog wont boot to UEFI PXE

    2
    0 Votes
    2 Posts
    899 Views
  • API Error with PHP 8.1

    8
    0 Votes
    8 Posts
    2k Views
    M

    @Tom-Elliott Apologies, I don’t know what went wrong there but somehow I got an incomplete version of your changes. git is a confusing beast to me :). I’ve now checked again that I’m running dev-branch and I can confirm that all the warnings have gone.

    Thanks again.

  • Extracting IP addresses from host

    4
    0 Votes
    4 Posts
    1k Views
    M

    @Sebastian-Roth perhaps I can achieve the same outcome with snap-ins?

    I have batches of Ubuntu machines that I multicast image. I have a bash script in the image that essentially prefigures the machine but it currently need to be run manually as it require two user inputs unique to each machine.

    The reason I wanted the IP of each machine was so I could write a script to SSH into each machine from my PC, run the script and populate the unique inputs from a CSV.

    It’s not so clear to me the limitations of snap-ins - is this a correct use case?

  • FOG API

    2
    0 Votes
    2 Posts
    972 Views
    S

    @aviel1540 Sure you are welcome to build your own UI. The best of documentation we have you can find here: https://news.fogproject.org/simplified-api-documentation/

  • FOG With SSO

    3
    0 Votes
    3 Posts
    1k Views
    S

    @TaTa FOG does not do SSO though you are invited to make it happen. Tell your company to get involved in this open source project, put one developer on this for a few weeks. 🙂

  • Coding a shortcut Webview/Problem with the API

    11
    0 Votes
    11 Posts
    2k Views
    S

    I changed the code to PHP and now it works, so I think it was something security related from the browser.

  • Fedora 37 added to installation tests

    2
    0 Votes
    2 Posts
    1k Views
    S

    @Wayne-Workman Great, thanks for your work in this!

  • Include partclone 3.20?

    36
    1 Votes
    36 Posts
    11k Views
    F

    @george1421 Not much but… I did a little testing at home. 4 different machines, HP Laptop hackintoshed (all drives, non resizable, Other OS) (one SSD NTFS the other APFS), 2 gaming PCs (win 10 single drive all partitions resizable), A 2018 mac mini all boot security turned off.

    And… and !!! I finally migrated, well actually, I made a new FOG server from scratch using only the ltsc.conf from the previous FOG server . I installed Ubuntu Server 22.04.1 fresh in Virtual Station on a NAS, (QNAP TS-451+), latest dev branch with the new inits built in, and was able to capture and deploy from/to 4 home computers no problem. I wish I still had older images and more things to test with.

    I love this NAS especially since it was given to me. I dropped in 16GB of RAM (from 2) and got cray stupid -configuring all the drives in a RAID 0 stripe, hey I live on the edge😂 , I can’t believe this thing is running a couple VMs no problem on that Celeron CPU.

  • Enable or disable SPECULATION_MITIGATIONS in the Linux kernel

    4
    0 Votes
    4 Posts
    4k Views
    S

    Forgot to say that I turned SPECULATION_MITIGATIONS on in the current default kernels some days after my last post because there wasn’t any feedback from people testing those kernels.

  • Alma 9, RHEL 9, Fedora 36, Ubuntu 22.04 added to daily tests

    7
    0 Votes
    7 Posts
    2k Views
    S

    @Wayne-Workman Thanks!

  • /opt/fog/.fogsettings MySQL user can't make changes

    4
    0 Votes
    4 Posts
    608 Views
    D

    @sebastian-roth
    Update I was able to make progress by fixing up the code per-say. I think the OP of the code (ch3i) wrote up something from memory and not from actual tests, and possibly update or make note of any changes in syntax as programs update.

    For instance, hostname --fqdn gives an error “hostname: unrecognized option ‘–fqdn’ BusyBox v1.31.1” so I changed to ‘hostname -f’.

    I was able to get pass the original MySQL errors using your advice, and using the fogstorage account instead. Running both scripts on ubuntu still stops without reason at “checking hostname/domain configurations”. When I run it on FOG (As a postdownloadscript), and it runs after cloning the image,it stops at :
    “Check Mysql Configuration: Done
    Check FOG Mysql Database Status: Done
    Checking hostname/domain configurations *Rebooting system as task is completed”
    Reboot: restarting system

    but upon reboot, I have the same hostname I myself set prior to capturing the image. Fog has a different hostname set to the MAC that I never changed, so if the script worked my hostname should reflect what FOG has.

    IT never makes it to the next part which should say “updating /etc/hostname” nor saying “Done” or “host not found in fog database”. So I am thinking it’s stuck at these lines:

    ######################################################### # Get interfaces ######################################################### NETWORK_CARDS=($(ls /sys/class/net | grep eth)) ######################################################### # Get host name and domain from FoG database ######################################################### FUNC_DOTS "Checking hostname/domain configurations" for ETH in ${NETWORK_CARDS[*]} do # read mac address MAC=$(cat /sys/class/net/$ETH/address) # get mac address information from fog web server wget http://$FOG_SERVER/$FOG_WEBROOT/service/hostname.php?mac=$MAC -O /tmp/hostname_check 2>/dev/null HOST_NAME="$(grep 'ok=' /tmp/hostname_check | cut -d "=" -f2)" HOST_DOMAIN_NAME="$(grep 'ADDom' /tmp/hostname_check | cut -d "=" -f2)" if [ "$HOST_NAME" != "" ] then echo "Done ($HOST_NAME.$HOST_DOMAIN_NAME)" sleep 3 # A hostname is found - quit the loop break else echo "Error" FUNC_DOTS "Host not found in FOG database" echo "exiting" sleep 3 exit fi done

    Final Update
    I got it to work!
    As first mentioned, I had to update the syntax as it’s been over 7 years since the code was written by OP (ch3i). The update that crashed the above code was :

    NETWORK_CARDS=($(ls /sys/class/net | grep eth))

    To get it to work I swapped it to :

    NETWORK_CARDS=($(ls /sys/class/net ))

    I learned thru google there was a change (systemd?) that made ls /sys/class/net not use ETH anymore, rather showing something like “enp0s31f6” which is the same as ETH0, but showing the exact location. The code was looking for ETH so just removing that line fixed it.

    Now that it works, I feel I can turn the code into a snap-in or post-download script.

129

Online

12.2k

Users

17.4k

Topics

155.6k

Posts