• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. youzersef
    3. Posts
    Y
    • Profile
    • Following 1
    • Followers 1
    • Topics 5
    • Posts 37
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Unable to capture: No route to Host

      @TectonicLeader

      Lets try from the beginning. What is the ip addresse of the Client and of the server.?

      are they in the same network?

      posted in FOG Problems
      Y
      youzersef
    • RE: Unable to capture: No route to Host

      @TectonicLeader
      What do you mean different Network.

      posted in FOG Problems
      Y
      youzersef
    • RE: Unable to capture: No route to Host

      @TectonicLeader

      Yes that what i mean. 192.168.1.2

      posted in FOG Problems
      Y
      youzersef
    • RE: Unable to capture: No route to Host

      @TectonicLeader

      Hello,

      What is the Host 192.168.0.2?
      Is it external Storage?

      posted in FOG Problems
      Y
      youzersef
    • RE: FOG IN FORTIGATE BOOT LEGACY AND UEFI

      @mikael1909

      Hello,
      try this.

      https://docs.fogproject.org/en/latest/kb/how-tos/bios-and-uefi-co-existence/#example-1

      posted in FOG Problems
      Y
      youzersef
    • RE: Fog server virtualbox ubuntu setup

      @tahir91
      Lets strart from the beginning.

      Show me please ur network konfiguration on ubuntu.

      cat /etc/netplan/YOUR_FILE_NAME.yaml
      

      and show me ur route. I want to make sure that u have Internet connection.

      traceroute google.com
      
      posted in General Problems
      Y
      youzersef
    • RE: FOG dhcp server assign different addresses same macaddress

      @helian

      Hi,

      Which Distribution do you use?
      there is many solutions for this Problem.

      Example:
      1- you have to edit your dhcp-range

      I do not use the fog server as DHCP-Server. But i can help u if u have Debian Distribution 😉

       nano /etc/dhcp/dhcpd.conf
      

      find the line like this:

      
      subnet 192.168.14.0 netmask 255.255.255.0 {
        range 192.168.14.10 192.168.14.100;
        option routers 192.168.14.1;
        option domain-name-servers 8.8.8.8, 8.8.4.4;
        default-lease-time 600;
        max-lease-time 7200;
      }
      
      

      you can setup the range of DHCP-Server as u want. I will prefer from 150-230. be careful just edit the last octet do not change the your whol network.

      Restart ur DHCP Server

      systemctl restart isc-dhcp-server
      
      

      Now you can reserve the IP-Adresses in the file DHCP-Leases. In this file you will find every Host in this network. You can use Every IP-Address under 192.168.14.150. do not use the IP-Address of the FogServer or any IP-Address which is already in used.

      Nano /var/lib/dhcpd/dhcpd.leases
      
      
      systemctl restart  isc-dhcp-server
      
      

      I hope that i could help 🙂

      posted in FOG Problems
      Y
      youzersef
    • RE: rsync the drivers with the image get no space left on device

      Re: rsync the drivers with the image get no space left on device

      Ok i found the Error I edited my Postscripts. thanks @george1421 🙂

      https://forums.fogproject.org/topic/11126/using-fog-postinstall-scripts-for-windows-driver-injection-2017-ed/4?_=1711345912303

      i can mark this topic as solved 🙂

      posted in Windows Problems
      Y
      youzersef
    • RE: Fog server virtualbox ubuntu setup

      @tahir91

      Hello,

      i do not know how is ur network based? Do u have virtual Network on fog Server? Are u trying to set 2 DHCP Server on the same Network? „Router Network and Fog Project Network“? Which device is ur DHCP Server?

      posted in General Problems
      Y
      youzersef
    • rsync the drivers with the image get no space left on device

      Hallo everybody,

      i tried to deploy the images with the drivers folder

      i added the scripts “fog.postdownload, fog.log, fog.drivers”

      my files look like:

      fog.postdownload

      #!/bin/bash
      
      . /usr/share/fog/lib/funcs.sh
      [[ -z $postdownpath ]] && postdownpath="/images/postdownloadscripts/"
      case $osid in
          5|6|7|9)
              clear
              [[ ! -d /ntfs ]] && mkdir -p /ntfs
              getHardDisk
              if [[ -z $hd ]]; then
                  handleError "Could not find hdd to use"
      
              fi
              getPartitions $hd
              for part in $parts; do
                  true
              done
              dots "Mounting partition $part"
              ntfs-3g -o force,rw $part /ntfs >/dev/null 2>&1
              if [[ ! $? -eq 0 ]]; then
                  echo "Failed"
                  debugPause
                  handleError "Failed to mount $part ($0)\n    Args: $*"
              fi
              echo "Done"
              debugPause
              . ${postdownpath}fog.log
              . ${postdownpath}fog.drivers
             # . ${postdownpath}fog.ad
              umount /ntfs
              ;;
          *)
              echo "Invalid OS"
              debugPause
              return
              ;;
      esac
      

      fog.drivers

      #!/bin/bash
      ceol=`tput el`;
      manu=`dmidecode -s system-manufacturer`;
      case $manu in
          [Ll][Ee][Nn][Oo][Vv][Oo])
              machine=$(dmidecode -s system-version)
              ;;
          *[Dd][Ee][Ll][Ll]*)
              machine=$(dmidecode -s system-product-name) #pruduct is typo, just realized sorry :(
              ;;
          *)
              machine=$(dmidecode -s system-product-name) # Technically, we can remove the dell one as it's the "default"
              ;;
      esac
      [[ -z $machine ]] && return #assuming you want it to break if it is not lenovo or dell?
      machine="${machine%"${machine##*[![:space:]]}"}" #Removes Trailing Spaces
      system64="/ntfs/Windows/SysWOW64/regedit.exe" # sloppy detect if 64bit or not
      [[ ! -f $system64 ]] && setarch="x86" || setarch="x64"
      #############################################
      #this is not section necessary needed, it's just to make the path "human readable"
      #rather than using osid for filepath
      case $osid in
          5) osn="Win7" ;;
          6) osn="Win8" ;;
          7) osn="Win8.1" ;;
          9) osn="Win10" ;;
      esac
      #############################################
      dots "Preparing Drivers"
      # below creates local folder on imaged pc
      # this can be anywhere you want just remember
      # to make sure it matches throughout!
      clientdriverpath="/ntfs/Windows/DRV"
      remotedriverpath="/images/drivers/$osn/$machine"
      [[ ! -d $clientdriverpath ]] && mkdir -p "$clientdriverpath" >/dev/null 2>&1
      echo -n "In Progress\n"
      #there's 3 ways you could handle this,
      #driver cab file, extracted driver files or both
      #so on the server put extracted driver files to match below folder tree
      #i.e. Model Latitude E5410, Windows 7 x86 image would be:
      #/fog/Drivers/Win7/Latitude E5410/x86
      
      echo "rsync -aqz \"$remotedriverpath\" \"$clientdriverpath\""
      
      rsync -aqz "$remotedriverpath" "$clientdriverpath" #>/dev/null 2>&1
      [[ ! $? -eq 0 ]] && handleError "Failed to download driver information"
      #if you wanted to use driver.cab use this line below.
      #i.e. /fog/Drivers/Win7/Latitude E5410/E5410-Win7-A07-KTT4G.CAB
      #cabextract -d "$clientdriverpath" "$remotedriverpath/*.CAB" >/dev/null 2>&1
      
      #if you wanted to mix both cab and extracted use these:
      #rsync -aqz --exclude='*.CAB' "$remotedriverpath" "$clientdriverpath" >/dev/null 2>&1
      #[[ ! $? -eq 0 ]] && handleError "Failed to sync cab and non-cab drivers"
      #cabextract -d "$clientdriverpath" "$remotedriverpath/*.CAB" >/dev/null 2>&1
      #[[ ! $? -eq 0 ]] && handleError "Failed to extract cab files"
      
      #this next bit adds driver location on pc to devicepath in registry (so sysprep uses it to reference)
      # remember to make devicepath= match the path you've used locally
      #also do not remove %SystemRoot%\inf
      #and to add more locations just use ; in between each location
      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
      echo -e "\b\b\b\b\b\b\b\b\b\b\b${ceol}Done"; # this just removes "In Progress and replaces it with done :-)"
      

      fog.log

      #!/bin/bash
      #deletes fog.log for Windows 7, 8, or 8.1 or 10 or 11
      #Greg Grammon (Junkhacker)
      #
      
      #funcs.sh allows us to use the functions that are used in the rest of
      #fog i.e. "dots" and use the vars already in place i.e. "$part" and "$osid"
      . /usr/share/fog/lib/funcs.sh;
      case $osid in
          [5-7]|9|11)
              [[ -f /ntfs/fog.log ]] && rm /ntfs/fog.log >/dev/null 2>&1 || true
              if [[ ! $? -eq 0 ]]; then
                  echo "Failed"
                  debugPause
                  handleError "Failed to remove original fog.log file"
              fi
              ;;
          *) return ;;
      esac
      

      i took this files from a topic.

      when i start the deploy i get the message:

      preparing  drivers ........................... in progresss rsync -aqz "/images/drivers/Win10/Latitude 5540" "/ntfs/Windows/DRV"
      rsync: [receover] write failed on "ntfs/Windows/DRV/Latitude 5540/x64/audio/0TMC_xyxyx/Inel.dll": No space left on device 
      

      Note: i Use the last Fog Version: 1.5.10

      i do not know what should i do. The Host has enogh Space anyway.

      Thanks for helping 🙂

      Yousef

      posted in Windows Problems
      Y
      youzersef
    • RE: adjust printer rights

      @Sebastian-Roth

      Hello Sebastian,

      i will try to think about this feature and i will contact to you if need help 🙂

      Best Regards
      Youzersef

      posted in Windows Problems
      Y
      youzersef
    • RE: Update 1.5.10 Failing @ libapache2-mod-php

      @jisd

      sorry i forgot also the

      
      apt-get install libapache2-mod-php
      
      posted in FOG Problems
      Y
      youzersef
    • RE: Update 1.5.10 Failing @ libapache2-mod-php

      @jisd

      i can see that you have only the php7.4 modules. The script tries to check the php modules like “libapache2-mod-php” which is not exist. Am not sure if u really need the php modules. you can try to install the modules manually but please create snapshot before you do this move.

      apt-get update
      
      apt-get install php php-bcmath php-cli php-common php-curl php-fpm php-gd php-json php-ldap php-mbstring php-mysql
      
      

      and try to update again

      posted in FOG Problems
      Y
      youzersef
    • RE: Update 1.5.10 Failing @ libapache2-mod-php

      @jisd
      the log file says that it did not find the php-mysql module. to ensure run please the following command to display the installed modules

      dpkg --get-selections | grep -i php
      

      and this please to see which php version is activated:

      php -v
      

      and display the results again

      Best Regards
      Youzersef

      posted in FOG Problems
      Y
      youzersef
    • RE: Update 1.5.10 Failing @ libapache2-mod-php

      Hi,

      can you display the log file?

      Best Regards

      Youzersef

      posted in FOG Problems
      Y
      youzersef
    • adjust printer rights

      Hello everyone,

      am new here and I’m excited to learn more about Fog. I’ve worked in different sample solutions, such as opsi-server, Linbo. But I’ve found that Fog distinguished more than others. I’ve tested the Images, Snapin, printers. everything has worked until now.
      My question is about the printers. Is there anyway let some users to allow or deny the printing? example: a Teacher wants to deny the printing on Students PCs. without deleting the printer from Fog-Web-Gui.

      Note: i add the printer over TCP/IP Type.

      Best regards
      Yousef 🙂

      posted in Windows Problems
      Y
      youzersef
    • 1
    • 2
    • 2 / 2