PDA

View Full Version : [ubuntu] Where are programs located on disk?



drdave69
June 28th, 2009, 11:35 AM
I am trying to install a Scribus template, it says to extract it in the ~/.scribus/templates folder. I can not find this folder on my computer. Can someone please show me?

swisstone198
June 28th, 2009, 11:36 AM
Click show hidden files in the "view" menu

drdave69
June 28th, 2009, 11:38 AM
Click show hidden files in the "view" menu

Thank you.

drdave69
June 28th, 2009, 11:46 AM
Still can not find the right folder. I goto Home then click on show hidden files, I see the .scribus folder, but there is no template folder in there. I created on & put the template file there, but scribus does not recognize it when I try to use the template.

drdave69
June 28th, 2009, 11:53 AM
can anyone show me the correct path please?

s.fox
June 28th, 2009, 12:04 PM
Hi,

You could try a search for it. Here (https://help.ubuntu.com/community/FindingFiles) is some documentation that will help.

-Ash R

owenll
June 28th, 2009, 12:08 PM
You could use the terminal:


whereis scribus
scribus: /usr/bin/scribus /usr/lib/scribus /usr/share/scribus /usr/share/man/man1/scribus.1.gz

niteshifter
June 28th, 2009, 01:36 PM
Hi,

/usr/share/scribus/templates

drdave69
June 28th, 2009, 02:21 PM
Hi,

/usr/share/scribus/templates

Thank You !
I Found It :)

drdave69
June 28th, 2009, 02:29 PM
Ok new problem...same topic.
When I try to extract the template into the folder, I get this error message
"Extraction not performed

You don't have the right permissions to extract archives in the folder "file:///usr/share/scribus/templates"
"
I installed Scribus from the repository, I have heard that when things are installed from there, the user (me) does not have admin rights.
How do I change the permissions of this program (or any program), so I can install templates?

oldos2er
June 28th, 2009, 08:14 PM
Use "sudo" to give yourself admin privileges; e.g. sudo tar zxvf somefile.tar.gz /usr/share/scribus/templates

drdave69
June 29th, 2009, 06:15 PM
Use "sudo" to give yourself admin privileges; e.g. sudo tar zxvf somefile.tar.gz /usr/share/scribus/templates

Ok I tried the line

sudo tar zxvf garage-sale-bw-a4.sla_.gz /usr/share/scribus/templates

and it did not work.

I get this error:

tar: garage-sale-bw-a4.sla_.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: /usr/share/scribus/templates: Not found in archive
tar: Error exit delayed from previous errors

The file "garage-sale-bw-a4.sla_.gz" is located on my desktop.
Any suggestions?

decoherence
June 29th, 2009, 06:24 PM
Ok I tried the line

sudo tar zxvf garage-sale-bw-a4.sla_.gz /usr/share/scribus/templates

and it did not work.

I get this error:

tar: garage-sale-bw-a4.sla_.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: /usr/share/scribus/templates: Not found in archive
tar: Error exit delayed from previous errors

The file "garage-sale-bw-a4.sla_.gz" is located on my desktop.
Any suggestions?


sudo tar zxvf Desktop/garage-sale-bw-a4.sla_.gz /usr/share/scribus/templates

drdave69
June 29th, 2009, 06:27 PM
sudo tar zxvf Desktop/garage-sale-bw-a4.sla_.gz /usr/share/scribus/templates

Tried this and now I get this error:

tar: This does not look like a tar archive
tar: Skipping to next header
tar: /usr/share/scribus/templates: Not found in archive
tar: Error exit delayed from previous errors

Any help would be greatly appreciated.
Thanks

decoherence
June 29th, 2009, 06:32 PM
oops.... I shoulda read better. Try this.

sudo gunzip Desktop/garage-sale-bw-a4.sla_.gz /usr/share/scribus/templates

drdave69
June 29th, 2009, 06:39 PM
oops.... I shoulda read better. Try this.

sudo gunzip Desktop/garage-sale-bw-a4.sla_.gz /usr/share/scribus/templates

Tried this and got this error:

gzip: /usr/share/scribus/templates is a directory -- ignored

drdave69
June 29th, 2009, 06:41 PM
We seem to be getting closer :)

drdave69
June 29th, 2009, 06:48 PM
Does anyone know what this means?


gzip: /usr/share/scribus/templates is a directory -- ignored

oldos2er
June 29th, 2009, 06:53 PM
Try sudo gunzip ~/Desktop/garage-sale-bw-a4.sla_.gz /usr/share/scribus/templates/

drdave69
June 29th, 2009, 06:59 PM
Try sudo gunzip ~/Desktop/garage-sale-bw-a4.sla_.gz /usr/share/scribus/templates/



tried this now I get this error:

gzip: /home/david/Desktop/garage-sale-bw-a4.sla_.gz: No such file or directory
gzip: /usr/share/scribus/templates/ is a directory -- ignored

BUT... now the file on my desktop is unzipped, it is now named:

garage-sale-bw-a4.sla_

and for some reason the .gz file is missing.

oldos2er
June 29th, 2009, 07:07 PM
So you extracted the file to your desktop? Then you can copy the contents of that folder to /usr/share/scribus/templates (which requires admin privileges).

drdave69
June 29th, 2009, 07:13 PM
So you extracted the file to your desktop? Then you can copy the contents of that folder to /usr/share/scribus/templates (which requires admin privileges).

Yes, exactly :)
My question is, how do I get the file into the folder, I am unable to cut & paste it, and when I try to drag & drop it I get this error:

Error moving file: Permission denied

How do I get admin privileges on my own computer?
Seems to me I should already have them.
Once again, program was installed using Synaptic.

Any Ideas, help, or insight would be GREATLY APPRECIATED
Thanks

Celauran
June 29th, 2009, 07:16 PM
Open a terminal and type:


sudo mv Desktop/garage-sale-bw-a4.sla_ /usr/share/scribus/templates

drdave69
June 29th, 2009, 07:19 PM
Open a terminal and type:


sudo mv Desktop/garage-sale-bw-a4.sla_ /usr/share/scribus/templates

Thank you :)
it is now there.

decoherence
June 29th, 2009, 07:23 PM
Way back in 2007 there was talk about getting Nautilus and PolicyKit working in such a way that, rather than getting unhelpful permissions denied errors, you would be asked to authenticate.

I don't know what the status of that is now but it would make things like this MUCH easier. Half of the problems we had in this thread were due to people (including myself) posting wrong or mis-remembered commands.

Azrael3000
June 29th, 2009, 07:31 PM
I think that would be a very nice idea

oldos2er
June 29th, 2009, 10:04 PM
You can run Nautilus with admin privileges using gksu nautilus

decoherence
June 30th, 2009, 02:05 PM
Here is the GNOME bug report regarding this feature.

http://bugzilla.gnome.org/show_bug.cgi?id=490200

Running nautilus as admin works too, but this would be nicer. Anyway, I gone OT. Bad me!