Trying To Extract tar Xara Xtreme 0.7 rev 1783 to usr/bin

Asked by jackson

Thanks for taking my question,

I've read Ubuntu 7.04 Help and FAQs, but seem to be stuck.

I'm currently using Feisty Fawn 7.04 -- I'm not an advanced user, but I've tested and am trying to install the most recent build of Xara Xtreme (not the year-old build in Ubuntu package manager) via Archive Manager, then extract it to usr/bin to install.

The file in question is - xaralx0.7_rev1783.tar.bz2

a) I downloaded the file successfully to my Ubuntu 7.04 desktop from http://www.xaraxtreme.org/download.html

b) When I try to uncompress and extract to user/bin via Archive Manager, I get a message i.e. "You don't have permission to extract to usr/bin"

c) When I open a terminal and sudo, then type tar xvjf xaralx0.7_rev1783.tar.bz2
     I get an error message that says i.e. file not found. I did sudo -i to get root terminal, typed tar command again, still errors out

d) My first question is, can I change permissions to somehow use archive manager to extract to usr/bin for install?

e) If not, I was able to extract the XaraLX files to my desk top, and run the application from there, but don't like the idea of storing and running apps from the desktop. But Ubuntu would also not let me drag them to the file system usr/bin, got the same permissions message. If I can't do "d" above, is it appropriate to set up folders under "Home Folder" to extract and run executable application files from?

I have work-related graphics deliverables, and can't wait for Ubuntu to update the XaraLX application in synaptic, the version there is already over a year old. I would also like to install the newest Inkscape 0.45.1 and GIMP 2.4.1, but if could figure out how to get XaraLX done first, that would probably help with the other two.

I was also trying to preview the live CD for Gutsy Gibbon 7.10 to see if graphic apps there were updated, but the 7.10 live CD hangs on a black screen after orange status bar quits running. I see many issues with 7.10, so for now, I'd like to update my graphics apps from within 7.04, if anyone can provide help.

Thanks in advance for any help you can provide.

Jackson

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Chris Fox (robotninja) said :
#1

Hi,

the version of Xara in Ubuntu 7.10 is 0.7r1692, the same as you are trying to install:

http://packages.ubuntu.com/gutsy/graphics/xaralx

You can upgrade directly from 7.04 to 7.10 by following these directions:

https://help.ubuntu.com/community/GutsyUpgrades

Good luck!

Chris

Revision history for this message
jackson (jack-whitley) said :
#2

Hello Chris,

Thanks very much for the response, especially regarding the upgrade.

But regarding Xara, I need rev 1783, not 1692. Any thoughts based on that regarding my question 'd' and 'e' above would be most appreciated.

Thanks again,

Jackson

Revision history for this message
Chris Fox (robotninja) said :
#3

hi,

in this case, I suggest that the following command should work:

sudo tar xvjf ~/Desktop/xaralx0.7_rev1783.tar.bz2 /usr/bin

The logic behind this is that when you open a terminal window, it defaults to your home directory (/home/yourusername, or ~ for shorthand). Therefore you have to specify the path to the file (hence the "~/Desktop" part). You can also specify where you want tar to unpack the files to (the latter part).

(You can learn more about how tar works (any many other commands) by typing "man tar" (or "man commandname") into a terminal window. You may find as you learn more about linux that the command terminal can be very helpful a lot of the time.)

Alternatively you can break this command down into steps. Open a terminal and execute the following commands (don't enter my comments in brackets):

1. cd Desktop (cd means "change directory")
2. sudo mv xaralx0.7_rev1783.tar.bz2 /usr/bin (mv is short for "move")
3. cd /usr/bin
4. sudo tar xvjf xaralx0.7_rev1783.tar.bz2 (unpacks the archive in the current directory)

A few quick tips:

- You don't want to change the permissions on /usr/bin to allow standard user accounts access to it. The "sudo" prefix used above is short for "superuser do" and allows you to temporarily execute commands which are restricted to superuser accounts. You can read more here: https://help.ubuntu.com/community/RootSudo

- In the terminal, Tab autocompletion can be very handy. For example, in the commands above, typing the first few letters of the filename or command and then pressing the Tab key should automatically complete the name of the file for you, saving you from typing it out.

- There is often no damage in running software from your home directory, but note that any other users of your PC will not have access to those applications.

- I would advise against inexperienced linux users attempting to install software except from the distribution repositories unless there is a good reason for doing so. In my experience it can often lead to broken systems and problems later on.

Revision history for this message
jackson (jack-whitley) said :
#4

Hello Chris,

Thanks again for your patience.

I tried the first command you suggested --

sudo tar xvjf ~/Desktop/xaralx0.7_rev1783.tar.bz2 /usr/bin

-- and got back an error message advising '/user/bin was not part of archive'

So I removed /user/bin and the command did then run, but it unpacked and installed the Xara app in my 'Home Folder'

I'm determined to get this application in usr/bin.

Is it possible to do a 'move' command on the application now in 'Home Folder' to get it to usr/bin, or should I try to uninstall it (what would the terminal command be for that?) and then proceed with your second suggestion above. in stages?

If you can point me in the right direction here, I'll not bother you again.

Thanks again for your patience and help.

Jackson

Revision history for this message
Chris Fox (robotninja) said :
#5

hi,

the path to the command is /usr/bin, rather than /user/bin :-)

Let me know how you get on!

Chris

Revision history for this message
jackson (jack-whitley) said :
#6

Hello again Chris,

I tried this command again -

sudo tar xvjf ~/Desktop/xaralx0.7_rev1783.tar.bz2 /usr/bin

-- and got this response back

jackson@jackson-desktop:~$ sudo tar xvjf ~/Desktop/xaralx0.7_rev1783.tar.bz2 /usr/bin
Password:
tar: /usr/bin: Not found in archive
tar: Error exit delayed from previous errors
jackson@jackson-desktop:~$

Thanks again for the help.

Jackson

Revision history for this message
Jim Qode (jimqode) said :
#7

you should not unpack the application to /usr/bin!

unpack the tar to your home dir and look for a install script inside. run it as root.

Can you help with this problem?

Provide an answer of your own, or ask jackson for more information if necessary.

To post a message you must log in.