Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-18-2004, 05:18 PM
|
#1
|
Member
Registered: Nov 2004
Location: Colorado
Distribution: Ubuntu mostly...
Posts: 100
Rep:
|
how do i exeucute a program not in "root"?
if i install a program in root, how do i start the app again in a "user" non-root account? do i right click the folder in root and change the permissions? what is the ".exe" program called in linux? btw, fedora is nice...
thanks alot
|
|
|
11-18-2004, 05:22 PM
|
#2
|
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154
Rep:
|
type exit while root... now try 'whoami' -- not root anymore, huh?
.exe = not really any such thing in linux -- *nix does not use extensions like windows...
the similar file is a binary executable, but shell scripts and the likes could also be considered similar, though they are text files, most similar to windows .bat files...
|
|
|
11-18-2004, 07:58 PM
|
#3
|
Member
Registered: Jul 2004
Location: Mesquite, Texas
Distribution: currently retired
Posts: 31
Rep:
|
Try running "chmod 755 filename" as root. It will make the file full-permissions (read write execute) to root, and people of non-root group can read and execute, then all others can read and execute also. Good luck.
".exe = not really any such thing in linux -- *nix does not use extensions like windows... "
Mmm, kind of. Executable applications in virtually all cases don't use extensions, but many other files do.
P.S. You may wish to copy the executable application to a public directory on the server, such as /bin/ ... But if it requires many library files and configuration files within the same directory, that's a different story. But for most stand-alone applications, copying to /bin/ works.
Last edited by Davus; 11-18-2004 at 08:11 PM.
|
|
|
11-18-2004, 08:23 PM
|
#4
|
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
|
You should install programs to /usr/local or /opt. /root is reserved for the root user only.
When you install the program, add the executable to your path by creating a symbolic link to the executable in /usr/bin:
Code:
ln -s /usr/local/appDirectory/executable /usr/bin
For example, if you installed firefox to /usr/local/firefox, then the above command will be "ln -s /usr/local/firefox/firefox /usr/bin" You will need to be root to create the link, but then you will be able to execute the application as a normal user.
I hope this helps
--Ian
|
|
|
11-18-2004, 08:28 PM
|
#5
|
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154
Rep:
|
Quote:
You should install programs to /usr/local or /opt
|
or not:
Quote:
/usr/local, /opt
These are obsolete folders. When UNIX didn't have a package system (like RPM), sysadmins needed to separate an optional (or local) Software from the main OS. These were the directories used for that.
|
http://tldp.org/HOWTO/HighQuality-Apps-HOWTO/fhs.html
|
|
|
All times are GMT -5. The time now is 05:37 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|