• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. cml
    • Profile
    • Following 0
    • Followers 0
    • Topics 11
    • Posts 120
    • Best 43
    • Controversial 0
    • Groups 2

    cml

    @cml

    Moderator

    79
    Reputation
    2.6k
    Profile views
    120
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    cml Unfollow Follow
    FOG Hangouts Moderator

    Best posts made by cml

    • RE: Peek into .img files

      It seems like it would be easier to just restore the image to a client, but I had to find a way.

      All of this is done on Debian 7 and like Wayne I would not advise you doing this on your production server.

      Breakdown:
      Install ntfs-3g, partclone, and pigz
      Decompress image and restore to a file
      Mount image

      apt-get install ntfs-3g partclone pigz
      cd /images/SecurityE420s/
      cat d1p2.img | pigz -d -c | partclone.restore -C -s - -O d1p3.img
      mount -t ntfs-3g d1p3.img /mnt
      
      ls -lah /mnt
      total 6.9G
      drwxrwxrwx  1 root root 4.0K Aug 27  2014 .
      drwxr-xr-x 28 root root 4.0K Jun 18 17:15 ..
      lrwxrwxrwx  2 root root   60 Jul 14  2009 Documents and Settings -> /mnt/Users
      -rwxrwxrwx  1 root root 9.5K Aug 28  2014 fog.log
      -rwxrwxrwx  1 root root 3.0G Aug 28  2014 hiberfil.sys
      drwxrwxrwx  1 root root    0 Aug 27  2014 Intel
      drwxrwxrwx  1 root root    0 Jun 11  2014 MSOCache
      -rwxrwxrwx  1 root root 4.0G Aug 28  2014 pagefile.sys
      drwxrwxrwx  1 root root    0 Jul 13  2009 PerfLogs
      drwxrwxrwx  1 root root 4.0K Aug 28  2014 ProgramData
      drwxrwxrwx  1 root root 8.0K Aug 27  2014 Program Files
      drwxrwxrwx  1 root root 8.0K Aug 27  2014 Program Files (x86)
      -rwxrwxrwx  1 root root 3.1K Aug 28  2014 QcOSD.txt
      drwxrwxrwx  1 root root    0 Aug 26  2014 $Recycle.Bin
      drwxrwxrwx  1 root root 4.0K Jun 11  2014 System Volume Information
      drwxrwxrwx  1 root root 4.0K Nov 20  2010 Users
      drwxrwxrwx  1 root root  40K Aug 28  2014 Windows
      
      
      
      posted in General
      cmlC
      cml
    • RE: Clear snapin history? Automatically?

      The only way I could find to clear it was through the database.

      You could use the event scheduler to automatically clear the table.

      Here’s what I came up with to remove completed tasks older than a month.

      USE fog;
      CREATE EVENT clear_snapinTasks
      ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 MONTH
      DO
      DELETE FROM fog.snapinTasks WHERE stCompleteDate < DATE_SUB(NOW(), INTERVAL 1 MONTH);
      
      posted in FOG Problems
      cmlC
      cml
    • RE: fog with an existing pxe server

      @plegrand

      If you add this to your PXE configuration it should work.

      Change x.x.x.x to the FOG IP Address.

      MENU TITLE Fog Reimage Menu
      MENU COLOR TITLE        1;36;44    #ffffffff #00000000 std
      LABEL iPXE Boot
      MENU DEFAULT
      KERNEL ipxe.krn
      APPEND dhcp && chain http://x.x.x.x/fog/service/ipxe/boot.php?mac=${net0/mac}
      PROMPT 0
      TIMEOUT 1
      

      Taken from: https://wiki.fogproject.org/wiki/index.php/Chainloading_PXE_to_iPXE_using_pxelinux.0

      posted in General
      cmlC
      cml
    • RE: Fog on existing network, clients wont boot.

      Found this thread on the iPXE forums.

      No idea if this will help but all files were built with debugging enabled and latest commit as of today. It will also drop you into the shell on dhcp failure.

      tftpboot.tar.gz

      posted in FOG Problems
      cmlC
      cml
    • RE: Bootable USB stick v1.2.0

      The ISO in this thread should still work: https://forums.fogproject.org/topic/4782/help-usb-boot-fog/27

      You can write it to your USB drive with dd if=ipxe.iso of=/dev/sdb bs=4M Just replace sdb with your drive.

      posted in General
      cmlC
      cml
    • RE: Installing FOG on Debian

      @maveriick

      The package is subversion on Debian.

      sudo apt-get update && sudo apt-get install subversion

      posted in FOG Problems
      cmlC
      cml
    • RE: Dell Lattiude E6540

      Do you have other E6540s that work?

      I have had this issue with some Lenovos in the past. Updating the BIOS and resetting to defaults usually fixes it, but when it doesn’t we’ve had to replace the NIC.

      posted in Hardware Compatibility
      cmlC
      cml
    • RE: Compression change

      No idea if this is the best way, but it seems to be working. I’ll let y’all know when it finishes compressing.

      for f in *.img; do mv "$f" "${f%.img}-bak.img"; done
      for f in *bak.img; do pigz -d -c $f | pigz -9 > "${f%-bak.img}.img"; done
      
      posted in Feature Request
      cmlC
      cml
    • RE: FOG not PXE boot anymore

      Here is the ipxe files built with debugging, it also exits to shell instead of rebooting.
      tftpboot.tar.gz

      posted in FOG Problems
      cmlC
      cml
    • RE: Two "new fog client" settings?

      What about something like this?

      • Showing I have duplicate values.
      mysql> select * from globalSettings where settingKey="FOG_TFTP_PXE_KERNEL";
      +-----------+---------------------+------------------------------------------------------------------------------------+--------------+-----------------+
      | settingID | settingKey          | settingDesc                                                                        | settingValue | settingCategory |
      +-----------+---------------------+------------------------------------------------------------------------------------+--------------+-----------------+
      |         6 | FOG_TFTP_PXE_KERNEL | Location of kernel file on the PXE server, this should point to the kernel itself. | bzImage      | TFTP Server     |
      |       147 | FOG_TFTP_PXE_KERNEL | Location of kernel file on the PXE server, this should point to the kernel itself. | bzImage      | TFTP Server     |
      +-----------+---------------------+------------------------------------------------------------------------------------+--------------+-----------------+
      2 rows in set (0.00 sec)
      
      
      • Dropping duplicates.
      mysql> ALTER IGNORE TABLE globalSettings ADD UNIQUE INDEX (settingKey);
      Query OK, 133 rows affected (0.01 sec)
      Records: 133  Duplicates: 2  Warnings: 0
      
      mysql> ALTER TABLE globalSettings DROP INDEX SettingKey;
      Query OK, 131 rows affected (0.00 sec)
      Records: 131  Duplicates: 0  Warnings: 0
      
      • Showing the duplicate is now gone.
      mysql> select * from globalSettings where settingKey="FOG_TFTP_PXE_KERNEL";
      +-----------+---------------------+------------------------------------------------------------------------------------+--------------+-----------------+
      | settingID | settingKey          | settingDesc                                                                        | settingValue | settingCategory |
      +-----------+---------------------+------------------------------------------------------------------------------------+--------------+-----------------+
      |         6 | FOG_TFTP_PXE_KERNEL | Location of kernel file on the PXE server, this should point to the kernel itself. | bzImage      | TFTP Server     |
      +-----------+---------------------+------------------------------------------------------------------------------------+--------------+-----------------+
      1 row in set (0.00 sec)
      
      posted in Bug Reports
      cmlC
      cml

    Latest posts made by cml

    • RE: [HELP]Using FOG with diferent VLAN´s

      @igorpa2

      Just circling back to the original issue. Can you ping from a device on the 200 network to a device on the 172 network?

      If not, what do you have as your layer 3 device?

      posted in General
      cmlC
      cml
    • RE: Clear snapin history? Automatically?

      The only way I could find to clear it was through the database.

      You could use the event scheduler to automatically clear the table.

      Here’s what I came up with to remove completed tasks older than a month.

      USE fog;
      CREATE EVENT clear_snapinTasks
      ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 MONTH
      DO
      DELETE FROM fog.snapinTasks WHERE stCompleteDate < DATE_SUB(NOW(), INTERVAL 1 MONTH);
      
      posted in FOG Problems
      cmlC
      cml
    • RE: Error message when attempting to access fog

      Is mysql running? You can typically check by running service mysqld status

      If so, can you log into mysql using the credentials in config.class.php?

      Grep your credentials with:grep DATABASE /var/www/html/fog/lib/fog/config.class.php

      root@Fed-Fog:~# grep DATABASE /var/www/html/fog/lib/fog/config.class.php
              define('DATABASE_TYPE', 'mysql'); // mysql or oracle
              define('DATABASE_HOST', 'localhost');
              define('DATABASE_NAME', 'fog');
              define('DATABASE_USERNAME', 'fog');
              define('DATABASE_PASSWORD', "password");
      

      Test your connection with:mysql -u fog -p

      root@Fed-Fog:~# mysql -u fog -p
      Enter password:
      Welcome to the MariaDB monitor.  Commands end with ; or \g.
      Your MySQL connection id is 10385683
      Server version: 5.5.50-0+deb8u1 (Debian)
      
      Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.
      
      Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
      
      MySQL [(none)]>
      
      posted in FOG Problems
      cmlC
      cml
    • RE: 404 Error accessing x.x.x.x/dban/about.txt

      To continue on with @THEMCV 's solution.

      Either change the following in 000-default.conf
      DocumentRoot /var/www/html to DocumentRoot /var/www

      or the block @THEMCV posted would change to:

      a2ensite 000-default
      service apache restart
      mkdir /var/www/html/dban
      mount -t iso9660 -o loop /iso/dban.iso /var/www/html/dban```
      posted in General Problems
      cmlC
      cml
    • RE: How can one manually & locally clone image to device using Clonezilla?

      First, I haven’t tested this. If I had a usb drive laying around I’d gladly test it first.

      Do you know how many partitions you have in your image?

      On your server you can run ls /images/W7PUniversalx64STANDARD

      I only have one partition, here is my output:

      root@Fed-Fog:~# ls /images/StaffWindows10/
      d1.fixed_size_partitions  d1.mbr  d1.minimum.partitions  d1.original.fstypes  
      d1.original.swapuuids  d1p1.img  d1.partitions
      

      My thoughts:
      Set up a bootable linux usb. It needs to have at least partclone and pigz installed.
      Copy the d1p1.img file to a usable spot on the drive at /images/d1p1.img for ease.
      Boot the machine from the usb
      Partition disk correctly, and create filesystem
      Write the image to the hard drive using:
      cat /images/d1p1.img | pigz -dc | partclone.restore --ignore_crc -O /dev/sda1 -N -f 1

      I’ll bring a drive tomorrow to test and follow up.

      posted in General
      cmlC
      cml
    • RE: FOG Imaging Log Not Working

      Those having issues, do you have any errors in your Apache logs?

      Fedora/CentOS

      tail /var/log/httpd/error_log
      

      Debian/Ubuntu

      tail /var/log/apache2/error.log
      
      posted in Bug Reports
      cmlC
      cml
    • RE: Installing FOG on Debian

      @maveriick

      The package is subversion on Debian.

      sudo apt-get update && sudo apt-get install subversion

      posted in FOG Problems
      cmlC
      cml
    • RE: mount partition image and edit it

      @Sebastian-Roth

      Good catch, the post has been modified.

      posted in General
      cmlC
      cml
    • RE: mount partition image and edit it

      Give this a try: https://forums.fogproject.org/topic/5264/peek-into-img-files/4

      @cml said:

      It seems like it would be easier to just restore the image to a client, but I had to find a way.

      All of this is done on Debian 7 and like Wayne I would not advise you doing this on your production server.

      Breakdown:
      Install ntfs-3g, partclone, and pigz
      Decompress image and restore to a file
      Mount image

      apt-get install ntfs-3g partclone pigz
      cd /images/SecurityE420s/
      cat d1p2.img | pigz -d -c | partclone.restore -C -s - -O d1p2_extracted.img
      mount -t ntfs-3g d1p2_extracted.img /mnt
      
      ls -lah /mnt
      total 6.9G
      drwxrwxrwx  1 root root 4.0K Aug 27  2014 .
      drwxr-xr-x 28 root root 4.0K Jun 18 17:15 ..
      lrwxrwxrwx  2 root root   60 Jul 14  2009 Documents and Settings -> /mnt/Users
      -rwxrwxrwx  1 root root 9.5K Aug 28  2014 fog.log
      -rwxrwxrwx  1 root root 3.0G Aug 28  2014 hiberfil.sys
      drwxrwxrwx  1 root root    0 Aug 27  2014 Intel
      drwxrwxrwx  1 root root    0 Jun 11  2014 MSOCache
      -rwxrwxrwx  1 root root 4.0G Aug 28  2014 pagefile.sys
      drwxrwxrwx  1 root root    0 Jul 13  2009 PerfLogs
      drwxrwxrwx  1 root root 4.0K Aug 28  2014 ProgramData
      drwxrwxrwx  1 root root 8.0K Aug 27  2014 Program Files
      drwxrwxrwx  1 root root 8.0K Aug 27  2014 Program Files (x86)
      -rwxrwxrwx  1 root root 3.1K Aug 28  2014 QcOSD.txt
      drwxrwxrwx  1 root root    0 Aug 26  2014 $Recycle.Bin
      drwxrwxrwx  1 root root 4.0K Jun 11  2014 System Volume Information
      drwxrwxrwx  1 root root 4.0K Nov 20  2010 Users
      drwxrwxrwx  1 root root  40K Aug 28  2014 Windows
      
      
      
      posted in General
      cmlC
      cml
    • RE: PASSWORD ----> SQL Problem after extend disk space ??!!

      Can you get to a terminal on your server?

      https://wiki.fogproject.org/wiki/index.php?title=Reset_WebUI_FOG_password

      posted in FOG Problems
      cmlC
      cml