• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Automatic hardware detection & driver installs in FOG

Scheduled Pinned Locked Moved Solved
General
10
37
24.0k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L
    Lee Rowlett Developer
    last edited by Feb 24, 2015, 1:48 PM

    init contains cabextract so you don’t even need to extract the cabs if you want to go down the model route

    1 Reply Last reply Reply Quote 0
    • L
      Lee Rowlett Developer
      last edited by Feb 24, 2015, 2:03 PM

      #!/bin/sh

      ceol=tput el;
      machine=dmidecode -s system-product-name;
      machine=“${machine%”${machine##[![:space:]]}“}” #Removes Trailing Space
      if [ $osid == “5” ]; then
      osn=“Win7”
      elif [ $osid == “6” ]; then
      osn=“Win8”
      elif [ $osid == “7” ]; then
      osn=“Win8.1”
      fi
      dots “Downloading Drivers”;
      mkdir /ntfs/Windows/DRV &>/dev/null;
      echo -n “In Progress”;
      cabextract -d /ntfs/Windows/DRV “/fog/Drivers/$osn/${machine}”/
      .CAB &>/dev/null;
      echo -e “\b\b\b\b\b\b\b\b\b\b\b${ceol}Done”;
      regfile=“/ntfs/Windows/System32/config/SOFTWARE”
      key=“\Microsoft\Windows\CurrentVersion\DevicePath”
      devpath=“%SystemRoot%\inf;%SystemRoot%\DRV”
      reged -e “$regfile” &>/dev/null <<EOFREG
      ed $key
      $devpath
      q
      y
      EOFREG

      code above will do what you want - change the paths to match your environment or wherever you want to store the cabs but using code example above. you’d put a copy of the cab into /fog/Drivers/Win7/OptiPlex 7010 for example then it will extract the cab and drivers will be installed during sysprep… shouldn’t need any postscripts

      1 Reply Last reply Reply Quote 0
      • V
        Van den Bossche Martial
        last edited by Feb 24, 2015, 3:08 PM

        Great, thanks for the quick reply I will try this!

        1 Reply Last reply Reply Quote 0
        • G
          giejo63
          last edited by Jun 11, 2015, 8:20 AM

          Hello
          Thanks for this great work
          Where can we get the 2 scripts ? (machinedrivers.sh and driverinstall.sh) the link in: http://www.fogproject.org/wiki/index.php/Auto_driver_Install is broken

          Can you repost it ?
          Thanks in advance !

          T 1 Reply Last reply Jun 11, 2015, 11:07 AM Reply Quote 0
          • T
            Tom Elliott @giejo63
            last edited by Tom Elliott Jun 11, 2015, 5:09 AM Jun 11, 2015, 11:07 AM

            @giejo63
            Link redirect in WIKI http://tinyurl.com/qe58fo2

            driverinstall.sh -> http://tinyurl.com/qxuxsnj
            machinedrivers.sh -> http://tinyurl.com/oqtymea

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            G 1 Reply Last reply Jun 11, 2015, 11:15 AM Reply Quote 0
            • G
              giejo63 @Tom Elliott
              last edited by Jun 11, 2015, 11:15 AM

              @Tom-Elliott said:

              @giejo63
              Link redirect in WIKI http://tinyurl.com/qe58fo2

              driverinstall.sh -> http://tinyurl.com/qxuxsnj
              machinedrivers.sh -> http://tinyurl.com/oqtymea

              Sorry but the links doesnt work ?
              i can’t access to them

              1 Reply Last reply Reply Quote 0
              • T
                Tom Elliott
                last edited by Jun 11, 2015, 11:15 AM

                It works for me. My guess, somebody is filtering the link at your site.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                G 1 Reply Last reply Jun 11, 2015, 11:17 AM Reply Quote 0
                • G
                  giejo63 @Tom Elliott
                  last edited by Jun 11, 2015, 11:17 AM

                  @Tom-Elliott said:

                  It works for me. My guess, somebody is filtering the link at your site.

                  no i’m not filtered…
                  I’ve tried from work, from home, from my phone
                  or maybe the site is unavailable for France …

                  1 Reply Last reply Reply Quote 0
                  • T
                    Tom Elliott
                    last edited by Jun 11, 2015, 11:18 AM

                    That could be a possibility.

                    Are you able to access:
                    https://rightclick.fsdnet.ca/display/

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    G 1 Reply Last reply Jun 11, 2015, 11:19 AM Reply Quote 0
                    • G
                      giejo63 @Tom Elliott
                      last edited by Jun 11, 2015, 11:19 AM

                      @Tom-Elliott

                      @Tom-Elliott said:

                      That could be a possibility.

                      Are you able to access:
                      https://rightclick.fsdnet.ca/display/

                      no…
                      neither from work or from smartphone.
                      Thanks for your help !

                      T 1 Reply Last reply Jun 11, 2015, 11:20 AM Reply Quote 0
                      • T
                        Tom Elliott @giejo63
                        last edited by Jun 11, 2015, 11:20 AM

                        @giejo63 give me a few minutes and I’ll host the files for you.

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                        1 Reply Last reply Reply Quote 0
                        • G
                          giejo63
                          last edited by Jun 11, 2015, 11:30 AM

                          @Tom-Elliott said:

                          @giejo63 give me a few minutes and I’ll host the files for you.

                          Thanks in advance !!

                          1 Reply Last reply Reply Quote 0
                          • T
                            Tom Elliott
                            last edited by Jun 11, 2015, 11:39 AM

                            http://tinyurl.com/q4pta4s machinedrivers

                            http://tinyurl.com/oy5pdm4 driverinstall

                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                            G 1 Reply Last reply Jun 11, 2015, 11:43 AM Reply Quote 0
                            • G
                              giejo63 @Tom Elliott
                              last edited by Jun 11, 2015, 11:43 AM

                              @Tom-Elliott said:

                              http://tinyurl.com/q4pta4s machinedrivers

                              http://tinyurl.com/oy5pdm4 driverinstall

                              It works 👍
                              Thanks a lot ! 🙂

                              1 Reply Last reply Reply Quote 0
                              • G
                                giejo63
                                last edited by giejo63 Jun 11, 2015, 8:38 AM Jun 11, 2015, 2:37 PM

                                Hi,
                                My postdownloadscript driverinstall.sh is executable (chmod a+x) i’ve modified fog.postdownload but after image deployment (successfully) it doesn’t seem to run fog.postdownlad and driverinstall.sh .
                                So nothing is put inside c:\Drivers (i ve put some drivers)

                                Any ideas ?

                                MRCURM 1 Reply Last reply Jun 24, 2015, 6:20 PM Reply Quote 0
                                • A
                                  ArchFan
                                  last edited by Jun 24, 2015, 2:34 AM

                                  @Lee-Rowlett said:

                                  #!/bin/sh

                                  ceol=tput el;
                                  machine=dmidecode -s system-product-name;
                                  machine=“${machine%”${machine##[![:space:]]}“}” #Removes Trailing Space
                                  if [ $osid == “5” ]; then
                                  osn=“Win7”
                                  elif [ $osid == “6” ]; then
                                  osn=“Win8”
                                  elif [ $osid == “7” ]; then
                                  osn=“Win8.1”
                                  fi
                                  dots “Downloading Drivers”;
                                  mkdir /ntfs/Windows/DRV &>/dev/null;
                                  echo -n “In Progress”;
                                  cabextract -d /ntfs/Windows/DRV “/fog/Drivers/$osn/${machine}”/
                                  .CAB &>/dev/null;
                                  echo -e “\b\b\b\b\b\b\b\b\b\b\b${ceol}Done”;
                                  regfile=“/ntfs/Windows/System32/config/SOFTWARE”
                                  key=“\Microsoft\Windows\CurrentVersion\DevicePath”
                                  devpath=“%SystemRoot%\inf;%SystemRoot%\DRV”
                                  reged -e “$regfile” &>/dev/null <<EOFREG
                                  ed $key
                                  $devpath
                                  q
                                  y
                                  EOFREG

                                  code above will do what you want - change the paths to match your environment or wherever you want to store the cabs but using code example above. you’d put a copy of the cab into /fog/Drivers/Win7/OptiPlex 7010 for example then it will extract the cab and drivers will be installed during sysprep… shouldn’t need any postscripts

                                  @Lee-Rowlett - Where is it this script is supposed to be placed on the server and its name?

                                  1 Reply Last reply Reply Quote 0
                                  • cmlC
                                    cml Moderator
                                    last edited by Jun 24, 2015, 4:08 AM

                                    @ArchFan
                                    Under: /images/postdownloadscripts/
                                    Name: driverinstall.sh

                                    Just make sure you call the script from fog.postdownload

                                    ${postdownloadpath}/driverinstall.sh
                                    
                                    A 1 Reply Last reply Jun 24, 2015, 4:45 PM Reply Quote 1
                                    • A
                                      ArchFan @cml
                                      last edited by Jun 24, 2015, 4:45 PM

                                      @cml said:

                                      @ArchFan
                                      Under: /images/postdownloadscripts/
                                      Name: driverinstall.sh

                                      Just make sure you call the script from fog.postdownload

                                      ${postdownloadpath}/driverinstall.sh
                                      

                                      Shouldn’t entering echo ${postdownloadpath}/driverinstall.sh on the server output /images/postdownloadscripts/driverinstall.sh, or no? I was having some issues at first and ended up putting the absolute path to rule that out as an issue

                                      T 1 Reply Last reply Jun 24, 2015, 4:47 PM Reply Quote 0
                                      • T
                                        Tom Elliott @ArchFan
                                        last edited by Jun 24, 2015, 4:47 PM

                                        @ArchFan I don’t think so. Not on the server. The client/host during imaging or in the init process itself, yes, the server no.

                                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                        A 1 Reply Last reply Jun 24, 2015, 4:50 PM Reply Quote 0
                                        • A
                                          ArchFan @Tom Elliott
                                          last edited by Jun 24, 2015, 4:50 PM

                                          @Tom-Elliott said:

                                          @ArchFan I don’t think so. Not on the server. The client/host during imaging or in the init process itself, yes, the server no.

                                          Gotcha - I’ve had some other issues getting it to work as intended, so it probably wasn’t an issue after all. Thanks Tom

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          • First post
                                            Last post

                                          189

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project