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

    Unpack fog tar ball on Ubuntu 12.04LTS

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    7
    2.3k
    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.
    • F
      Foggy
      last edited by

      Guyz: A NOOB question. I am trying to unpack the FOG tar ball in the /OPT directory. The locate command doesn’t show the tar ball in the OPT directory but the LS command does. Thought it might be a permission issue so became ROOT but still no go. I’m confused.
      /home/foggy/Downloads/fog_0.32.tar.gz
      foggy@Fog-Server:~$ sudo cp /home/foggy/Downloads/fog_0.32.tar.gz /opt
      [sudo] password for foggy:
      foggy@Fog-Server:~$ cd /opt
      foggy@Fog-Server:/opt$ ls
      fog_0.32.tar.gz
      foggy@Fog-Server:/opt$ sudo apt-get install fog_0.32.tar.gz
      [sudo] password for foggy:
      Reading package lists… Done
      Building dependency tree
      Reading state information… Done
      E: Unable to locate package fog_0.32.tar.gz
      E: Couldn’t find any package by regex ‘fog_0.32.tar.gz’
      foggy@Fog-Server:/opt$
      foggy@Fog-Server:/opt$ ls -l
      total 45492
      -rwxr-xr-x 1 root root 46579295 Oct 31 14:55 fog_0.32.tar.gz
      foggy@Fog-Server:/opt$ sudo apt-get install fog_0.32.tar.gz
      Reading package lists… Done
      Building dependency tree
      Reading state information… Done
      E: Unable to locate package fog_0.32.tar.gz
      E: Couldn’t find any package by regex ‘fog_0.32.tar.gz’
      foggy@Fog-Server:/opt$ sudo su
      root@Fog-Server:/opt# apt-get install fog_0.32.tar.gz
      Reading package lists… Done
      Building dependency tree
      Reading state information… Done
      E: Unable to locate package fog_0.32.tar.gz
      E: Couldn’t find any package by regex ‘fog_0.32.tar.gz’
      root@Fog-Server:/opt# ls
      fog_0.32.tar.gz
      root@Fog-Server:/opt# locate fog_0.32.tar.gz
      /home/foggy/.local/share/Trash/files/Link to fog_0.32.tar.gz
      /home/foggy/.local/share/Trash/info/Link to fog_0.32.tar.gz.trashinfo
      /home/foggy/Downloads/fog_0.32.tar.gz
      root@Fog-Server:/opt# cd ./
      root@Fog-Server:/opt# locate fog_0.32.tar.gz
      /home/foggy/.local/share/Trash/files/Link to fog_0.32.tar.gz
      /home/foggy/.local/share/Trash/info/Link to fog_0.32.tar.gz.trashinfo
      /home/foggy/Downloads/fog_0.32.tar.gz
      root@Fog-Server:/opt# mv /home/foggy/Downloads/fog_0.32.tar.gz /opt
      root@Fog-Server:/opt# locate fog_0.32.tar.gzz
      root@Fog-Server:/opt# locate fog_0.32.tar.gz
      /home/foggy/.local/share/Trash/files/Link to fog_0.32.tar.gz
      /home/foggy/.local/share/Trash/info/Link to fog_0.32.tar.gz.trashinfo
      /home/foggy/Downloads/fog_0.32.tar.gz
      root@Fog-Server:/opt# ls
      fog_0.32.tar.gz
      root@Fog-Server:/opt# apt-get install fog_0.32.tar.gz
      Reading package lists… Done
      Building dependency tree
      Reading state information… Done
      E: Unable to locate package fog_0.32.tar.gz
      E: Couldn’t find any package by regex ‘fog_0.32.tar.gz’
      root@Fog-Server:/opt#

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        You don’t use aptget for unpacking tarballs. You use the tar command.

        [Code]sudo tar -xzf fog_0.32.tar.gz[/Code]

        EDITING AS I FORGOT THE -f argument.

        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
        • F
          Foggy
          last edited by

          Tom: thanks for the help yesterday. I looked up the TAR command to understand what is being done. I added the “V” option foggy@Fog-Server:/opt$ sudo tar xvz fog_0.32.tar
          to see the unpacking process but when i execute, the prompt just sits there. Any guidance would be appreciated.

          1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott
            last edited by

            You forgot, from the command, the f option.

            so your command should read:

            [code]sudo tar xvzf fog_0.32.tar.gz[/code]

            If you’ve already gunzipped the file so you actually have: fog_0.32.tar
            Then you’ll need:
            [code]sudo tar xvf fog_0.32.tar[/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
            • Tom ElliottT
              Tom Elliott
              last edited by

              The tar command is Tape ARchive.

              If you don’t specify the -f/f argument, it is actually waiting for data to be archived to tape, which is why you’re seeing the cursor just sit there. Add the f argument (at the end directly before you put the filename) and it tells the command to process from the file.

              NOTE: You can’t place the -f anywhere, it has to be the last argument in the series followed by the file name. I suppose you could, though I’ve never done it that way, have the command as:

              [code]tar -f <FILENAME> -xz[/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
              • F
                Foggy
                last edited by

                Tom: Thanks, that did it. I’m going to learn Linux even if it kills me.

                1 Reply Last reply Reply Quote 0
                • Tom ElliottT
                  Tom Elliott
                  last edited by

                  If you ever need help, please don’t be afraid to ask 🙂

                  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
                  • 1 / 1
                  • First post
                    Last post

                  176

                  Online

                  12.1k

                  Users

                  17.3k

                  Topics

                  155.3k

                  Posts
                  Copyright © 2012-2024 FOG Project