• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Thiago
    3. Best
    • Profile
    • Following 0
    • Followers 0
    • Topics 14
    • Posts 100
    • Best 21
    • Controversial 0
    • Groups 0

    Best posts made by Thiago

    • RE: FOG 1.3 RC8 - Fails to Apply 'swap' UUID on Image Deploy

      @dholtz-docbox
      Looking at my old scripts ( i am not using at moment) i found one that changes linux hostname and swap uuid:

      /images/postdownloadscripts/fog.hosts
      
      
      #the file contents
      -----------------------
      #/bin/sh
      . /usr/share/fog/lib/funcs.sh;
      
      partition=`lsblk -o KNAME,FSTYPE,LABEL /dev/sda? | grep -v -E "swap|KNAME" | awk '{print $1}'`
      mountpoint="/test"
      linuxhostname="$mountpoint/etc/hostname"
      
      comandomount="mount"
      swappart=`blkid | grep swap | awk -F"\"" '{print $2}'`
      
      dots "Creating mount point" 
      mkdir -p $mountpoint 2>/dev/null && echo "OK" || echo "Error"
      
      
      for i in $partition
      do
         tipopart=`lsblk -o FSTYPE /dev/$i | grep -v FSTYPE`
         if [ $tipopart = "ext4" ]
         then
             comandomount="mount -t $tipopart"
         fi
         dots "Mounting Partition /dev/$i"
         $comandomount /dev/$i $mountpoint && status="OK" || status="Error"
         
         if [ $status = "OK" ]
         then
             echo "OK"
             if [ -e $linuxhostname ]; then
                 dots "Changing hostname on Linux"
                 echo $hostname > $linuxhostname && echo "OK" || echo "Error"
             fi
            dots "Changing swap UUID inside fstab file"
            fstabpart=`cat $mountpoint/etc/fstab | grep swap | grep UUID | cut -d"=" -f2| awk '{print $1}'`
            sed -i "s/$fstabpart/$swappart/g" $mountpoint/etc/fstab && echo "OK" || echo "Error"
            umount $mountpoint
         else
             echo "Error mounting partition $partition"
         fi
      done
      

      don’t forget to put directive calling this script inside /images/postdownloadscripts/fog.postdownload

      It was used many times and works, but i don’t know if this is the final version put at production.
      some ideas.

      posted in General
      ThiagoT
      Thiago
    • RE: FOGCrypt is not recognized as an internal or external command, operable program or batch file

      @DEMONTECH
      You need to run the Fogcrypt command passing all the path where fogcrypt file is, or add the location to path variable.
      eg. “C:\Test\FogCrypt.exe” …

      an advice:
      when you hear: “legacy client”, run in the opposite direction as fast as possible … save your life … 🙂

      posted in Windows Problems
      ThiagoT
      Thiago
    • RE: Deploy wim images with fog

      @lebrun78
      My fog server is used to boot winpe and then launch setup with unnatended xml file to automatically install windows…
      i think that you can boot winpe environmnent from your fog and then deploy wim image with dism command automatically too.

      posted in General
      ThiagoT
      Thiago
    • RE: How to determine image type

      @Tom-Elliott
      My image was created with trunk version and what you said about d1 files work for me. Thanks a lot to all!

      posted in FOG Problems
      ThiagoT
      Thiago
    • RE: SnapinPack Error: Version required to extract this entry not supported

      @Quazz
      Now it works with 7zip too.
      Definitely something went wrong at last time.

      posted in FOG Problems
      ThiagoT
      Thiago
    • RE: CentOS 6 GUI login loop.

      @ManofValor
      Try logging into text mode with root account. when this happens to me, I can only log in with the root account and locally, because root login with ssh is disabled in our environment.

      posted in Linux Problems
      ThiagoT
      Thiago
    • RE: CMD or Batch snapins are not working! I have no more idea.

      I always run my .bat files with fog and all works.
      I’ve installed mathematica, matlab, ampl, quartus, salt agent and other config things.
      Try /C argument for cmd.exe

      Snapin Run With C:\Windows\System32\cmd.exe
      Snapin Run With Argument /C

      posted in General
      ThiagoT
      Thiago
    • RE: Select multiple partition to deploy/capture

      @Sebastian-Roth @ch3i
      tested with my dual boot system (Vista/Debian8) and worked!!.

      posted in Feature Request
      ThiagoT
      Thiago
    • RE: Multiple problems with FOG after Upgrade.

      I don’t know if your problem is like mine.

      When i did a upload of my 8.1, i got this message too (“file systems needs to be check” ).

      I solved the case, when i shutdown the system completely without using the Win8.1 hybrid mode, then turning on computer into fog boot process.
      see: http://windows.microsoft.com/en-us/windows-8/how-shut-down-turn-off-pc

      posted in FOG Problems
      ThiagoT
      Thiago
    • RE: Integrating PartedMagic in Fog 1.2.0

      Try this:

      :PMagic2015
      kernel http://${fog-ip}/${fog-webroot}/your-path-to-parted-magic/bzImage
      initrd http://${fog-ip}/${fog-webroot}/your-path-to-parted-magic/initrd.img
      imgargs bzImage edd=off noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=791 sleep=0 loglevel=0 keymap=us
      boot || goto MENU

      posted in General
      ThiagoT
      Thiago
    • RE: Active directory Join issue

      @Tom-Elliott
      I just install a new server with 6038 svn, copy all images (that work in 1.2, the server still alive), change all owners and permissions following this post and the wiki, but still get "Image Store Corrupt” Unable to locate MBR (restore partition table and bootloaders) when deploying.
      1.2 still deploying correctly the same image.

      posted in Windows Problems
      ThiagoT
      Thiago
    • RE: Postdownloadscripts to specific partitions

      @george1421
      we have a few images. my script mount directly (i.e. mount /dev/sda2 /windows)
      The problem is: now, our server will be used by another department with other config (i only know that they have 4 parts, using mbr) and sometimes the image name can change, disk layout too.
      I like your idea and wanna let things more generalized as possible.
      in any case, this is temporary until standardize all
      Thanks a lot

      posted in FOG Problems
      ThiagoT
      Thiago
    • RE: Integrating Sardu Multiboot

      @middendorf
      I’ve been using some Win7 install (unnattend and not) using fog ipxe menu.
      My first steps were copied from the ipxe site (http://ipxe.org/howto/winpe) and works fine.

      posted in General
      ThiagoT
      Thiago
    • RE: Machines won't join AD

      @anthony.delarosa
      it happened to me 2 days ago…
      for my problematic host, disabling AD settings and then re enabling, put all things to work.

      it really reminded me of the ‘it crowd’ series…lol

      posted in Windows Problems
      ThiagoT
      Thiago
    • RE: Dual boot windows 7 & opensuse boot problem

      All of our computers are dual boot system.
      Some of them are Windows Vista/Debian, some Windows 10/Debian, Windows 10/Mint, Windows Vista/CentOS, Windows10/CentOS and so on.
      Fog works correctly in all the cases.
      How is your partition layout for opensuse (fs types)?
      What is your fog version?

      posted in FOG Problems
      ThiagoT
      Thiago
    • RE: Is there a way to deploy only 1 partition of my image?

      @Sebastian-Roth Selecting “Partition 2 only” will be my next step when i update the image, selecting only Debian partition for upload, maintaining Win10 intact. (correctly?)
      Renaming files simply works!!

      posted in General
      ThiagoT
      Thiago
    • RE: RC10 Broken Items on upgrade

      @adukes40
      To solve “Snapin hash does not exist”, i updated all my snapins to generate the hash.
      When i opened a snapin to edit, the hash field (that is read only) was empty. I clicked the update button and the field was filled.
      After this, snapin was installed.
      edit. some I had to delete and recreate the snap in, by uploading the file again.

      posted in Bug Reports
      ThiagoT
      Thiago
    • RE: Firewall Configuration

      @Wayne-Workman
      I’m using ufw in a debian 8 system with:

      ufw default deny incoming
      ufw default allow outgoing

      #ports 21ftp, 22ssh, 80web, 111rpc, 69tftp, 443web, 2049nfs, 20499-nfs
      ufw allow from 192.168.0.0/24 to any port 21,22,80,111,443,2049,20499 proto tcp
      ufw allow from 192.168.0.0/24 to any port 69,111,2049,6080 proto udp
      ufw enable

      I changed nfs to work with the firewall on debian
      #from
      RPCMOUNTDOPTS=“–manage-gids”
      #to
      RPCMOUNTDOPTS=“-p 20499”
      #and
      systemctl restart nfs-kernel-server.service

      posted in General
      ThiagoT
      Thiago
    • RE: Dual boot windows 7 & opensuse boot problem

      @Sebastian-Roth
      Yes, My image is not resizable…
      I will try to reproduce my steps…
      1 - Erase disk data/delete partitions
      2 - Install Windows, reserving space for linux or shrink windows later (in disk management tool, or gparted if needed).
      3 - Install Linux, install grub on mbr or partition.
      4 - Configure grub if needed ( i had to make some minor changes only in Debian8/Windows10 because grub was listing windows 10 as 7)

      My preference to use grub is because i can make changes in boot order, one time boot order and so on… easily using ansible or other management tool. I don’t know how can i achieve the same in Windows side.

      posted in FOG Problems
      ThiagoT
      Thiago
    • RE: Modifying Boot Menu

      @mbarker
      all this can be done using just fog webui (i think).

      My idea (if i understood your problem):
      1 - in iPXE Menu Configuration, change options that you want to hide from your client to “do not list on the menu”
      2 - let “fog.deployimage” and “fog.local” visible to all hosts. Adjust them as needed. Example: if you dont need asks for password and other things.
      3 - when you boot the laptop, you will see only these options, if you dont touch anything, then local disk will be loaded.
      If you choose “Deploy Image” you will see another menu with all of your images, if you name them appropriately, will be easy to identify and select the image to deploy.

      posted in FOG Problems
      ThiagoT
      Thiago
    • 1 / 1