Results 1 to 10 of 10

Thread: tar.bz2

  1. #1
    Join Date
    May 2008
    Location
    Central New Jersey, USA
    Beans
    14
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    tar.bz2

    Hi, I am having a problem with getting Second Life up and running on my new Linux box. I am running Ubuntu v8.04 over the most recent Linux kernel on a Gateway MX8738 notebook. Here's my problem:

    The Second Life package comes as a tar.bz2 file (specifically SecondLife_i686_1_19_1_4.tar.bz2). When I went to System/help and support on the task bar, it told me to open packages downloaded from individual web sites using tar xfvz tarball_name. However, when I did so, I got this as a repsonse:
    tar: SecondLife_i686_1_19_1_4.tar.bz2: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors

    So, what did I do wrong...or what is the correct method for opening tar.bz2 packages?

    Thanks for your help.

    Jim

  2. #2
    Join Date
    Mar 2008
    Beans
    4,714
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: tar.bz2

    You need to cd (change directory) to where the tar.bz2 file resides first. When you downloaded SecondLife,
    it might have been saved in your home account directory, or perhaps the Desktop subdirectory.

    If the tar.bz2 file is in Desktop, then the commands to use are

    Code:
    cd ~/Desktop
    tar xvjf SecondLife_i686_1_19_1_4.tar.bz2
    Edit: note xvjf is for tar.bz2 files, xfvz is for tar.gz files. Instead of trying to remember these arcane things, you could do this:

    Run

    gedit ~/.bashrc

    Add
    Code:
    op () {
         if [ -f $1 ] ; then
            case $1 in
                    *.tar.bz2)   tar xvjf $1        ;;
                    *.tar.gz)    tar xvzf $1     ;;
                    *.bz2)       bunzip2 $1       ;;
                    *.rar)       rar x $1     ;;
                    *.gz)        gunzip $1     ;;
                    *.tar)       tar xvf $1        ;;
                    *.tbz2)      tar xvjf $1      ;;
                    *.tgz)       tar xvzf $1       ;;
                    *.zip)       unzip $1     ;;
                    *.Z)         uncompress $1  ;;
                    *.7z)        7z x $1    ;;
                    *)           echo "'$1' cannot be extracted via extract()" ;;
            esac
         else
            echo "'$1' is not a valid file"
         fi
    }
    To the end of that file.
    Then, whenever you need to use the command line to open any of the standard archive formats just type

    Code:
    op path/to/archive/file
    Or in this case,

    Code:
    op  SecondLife_i686_1_19_1_4.tar.bz2
    Last edited by unutbu; July 15th, 2008 at 12:23 PM. Reason: Changed ex to op

  3. #3
    Join Date
    Apr 2006
    Location
    No Comment
    Beans
    1,733
    Distro
    Kubuntu 7.10 Gutsy Gibbon

    Re: tar.bz2

    when u mention most recent terminal do u mean - vanilla from kernel.org or ubuntu kernel? The most recent one as of this post of the linux kernel 2.6.25.11.
    My Stuff:
    Hostfile Blacklist
    K/Ubuntu 7.10 Tips/Tricks
    3_days_+_no_reply=Subscription_Removed

  4. #4
    Join Date
    May 2008
    Location
    Central New Jersey, USA
    Beans
    14
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: tar.bz2

    I used the quick fix to extract the tarball and it worked just fine. However, I now have the SecondLife folder sitting on my desktop, and I want to move it somewhere less conspicuous...like ./user. But there is a problem: when I try to drag and drop into /usr, I am told I don't have the proper permissions. So, does this mean I have to do it from the terminal? I thought one of the purposes of a GUI was to allow the user to do things like this without having to write code.

    I guess what I really want is for Ubuntu (or Gnome, as the case may be) to allow me super user privileges when I need to do things like move files from one directory to another...

  5. #5
    Join Date
    Mar 2005
    Location
    PA, USA
    Beans
    180
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: tar.bz2

    As far as the all powerful gui, you could add something along the lines of

    gksu nautilus

    (right click panel and click add to panel, Custom Application Launcher.)

    to your panel. JUST PLEASE remember to always close this out AS SOON AS YOU ARE DONE. You can really mess things up.

    Also, you can move stuff off of the desktop to your other folders (Documents, etc.)

  6. #6
    Join Date
    Apr 2006
    Location
    No Comment
    Beans
    1,733
    Distro
    Kubuntu 7.10 Gutsy Gibbon

    Re: tar.bz2

    to compile a kernel without being root install fakeroot and add it into the front of the command to install the kernel, etc..
    My Stuff:
    Hostfile Blacklist
    K/Ubuntu 7.10 Tips/Tricks
    3_days_+_no_reply=Subscription_Removed

  7. #7
    Join Date
    May 2007
    Location
    DR
    Beans
    1,345
    Distro
    Ubuntu Development Release

    Re: tar.bz2

    get second life installer here>

    http://getdeb.net/search.php?keywords=second+life
    When close to achieving you quit! If you don't try you failed. Real Winners are not afraid of losing.
    ubuntu newsletter ; Report Papercuts (small annoyances/bugs) ; beginners guide and video http://youtube.com/watch?v=Z0tNpt5RZYI

  8. #8
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: tar.bz2

    You shouldn't try to move the folder to /usr as you haven't installed the game yet If you move it anywhere it should be in your home directory. I have a directory called source where I move all the directories of programs that can't be installed the normal way. The reasoning behind this, is, that if I ever want to uninstall one of those programs I have the source directory so I can do "make uninstall"

    Jim

  9. #9
    Join Date
    Apr 2006
    Location
    No Comment
    Beans
    1,733
    Distro
    Kubuntu 7.10 Gutsy Gibbon

    Re: tar.bz2

    caribon why didn't u use checkinstall to create the deb files,

    Code:
    sudo checkinstall -D make install

    that way u can install thru apt-get or synaptic.
    My Stuff:
    Hostfile Blacklist
    K/Ubuntu 7.10 Tips/Tricks
    3_days_+_no_reply=Subscription_Removed

  10. #10
    Join Date
    Feb 2007
    Location
    Melbourne
    Beans
    799
    Distro
    Kubuntu 8.04 Hardy Heron

    Lightbulb Re: tar.bz2

    Quote Originally Posted by unutbu View Post

    Code:
    ex path/to/archive/file
    Or in this case,

    Code:
    ex  SecondLife_i686_1_19_1_4.tar.bz2
    The problem with that is that "ex" is already a command (a synonym for "vim" by default).

    It would be best to choose another name for the function.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •