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

Compression

Scheduled Pinned Locked Moved
General
4
7
2.4k
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.
  • T
    Ty9000
    last edited by Feb 5, 2014, 8:16 PM

    Is there any way to set compression levels in Fog 0.32?

    Thanks!

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Feb 5, 2014, 9:09 PM

      Yes, but not real easily.

      The way to do it is described below: (root access on FOG Server, use terminal or console.)
      [code]cd /tftpboot/fog/images
      mkdir tmp
      gunzip -d -c init.gz > init
      mount -o loop init tmp
      sed -i ‘s/PIGZ_COMP=“-3”;/PIGZ_COMP=“-0”;/’ tmp/bin/fog #THE -0 change to what you want. -0 is worst compression, -9 is best compression.
      umount tmp
      mv init.gz init.gz.orig
      gzip -9 init
      rm -rf tmp[/code]

      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
      • T
        Ty9000
        last edited by Feb 6, 2014, 6:27 PM

        Thank you, thank you, thank you! I just manually modified the file once it was unzipped. Running the code the first time screwed it up (probably my fault!), so I just modified the file.

        That’s so awesome! Thanks again!!!

        1 Reply Last reply Reply Quote 0
        • T
          Tom Elliott
          last edited by Feb 9, 2014, 5:30 PM

          Glad I could be of assistance.

          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
          • B
            Boyan Biandov
            last edited by May 6, 2014, 5:01 PM

            Hi Tom, so on another install I did follow the guide above; now the begining of the file looks like this:

            [CODE]#!/bin/sh

            PIGZ_COMP=“-9”;
            RUN_CHKDSK=“”;
            HOSTNAME_EARLY=“0”;
            [/CODE]

            However during an upload the blue screen still says Compression level… None

            Is there another place to enable compression per-se which is an independent setting from the level of compression?

            Thx

            1 Reply Last reply Reply Quote 0
            • J
              Junkhacker Developer
              last edited by May 6, 2014, 5:06 PM

              this information pertains to fog 0.32
              if you are using fog 1.0 (or fog 0.33b) the setting is changed on the configuration page under boot settings

              signature:
              Junkhacker
              We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

              1 Reply Last reply Reply Quote 0
              • B
                Boyan Biandov
                last edited by May 6, 2014, 5:36 PM

                Thx [SIZE=12px]Junkhacker; I’m on 0.32 in this case; after some testing I think the message “compression level…” may not be credible; if when it says NONE the imager clearly uses compression since the final *.img file is nowhere near the actual partition used up space. Could there be some truth to that?[/SIZE]

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

                187

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project