PDA

View Full Version : [SOLVED] basic Q,where to store a new app



And_
November 4th, 2011, 06:45 PM
I have down loaded Python3 and I have a very basic question. Should I store my applications like Python in the /opt directory? Or in my own directory /home/my..?

I am defined as an administrator in the system (only user).
I go in the file system,select opt and when I try to create a new Dir in opt I get the message "permission denied" (Error creating directory: Permission denied).
Who is allowed to manipulate the opt directory???

Lars Noodén
November 4th, 2011, 07:08 PM
You can store them under your home directory, /home/me/bin
and add that directory to your path. Or you, if you have system permissions, you can add it to /usr/local/bin (http://manpages.ubuntu.com/manpages/oneiric/en/man7/hier.7.html)

dFlyer
November 4th, 2011, 07:11 PM
you need admin sudo to create a directory in /opt

And_
November 4th, 2011, 07:16 PM
You can store them under your home directory, /home/me/bin
and add that directory to your path. Or you, if you have system permissions, you can add it to /usr/local/bin (http://manpages.ubuntu.com/manpages/oneiric/en/man7/hier.7.html)

Thanks Lars

I am defined as an administrator but I am not allowed to store the files in usr/local/bin. Shouldn't I have the required permissions.?
How do I get all the permission?

Lars Noodén
November 4th, 2011, 07:18 PM
You have to use sudo (http://manpages.ubuntu.com/manpages/oneiric/en/man5/sudoers.5.html):


sudo cp /home/me/bin/myscript /usr/local/bin/.