Linux - SoftwareThis 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.
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.
I'm using Ubuntu Dapper Drake (soon to be upgrading to the latest) and have an app where I need to use THE Java, not a free alternative. Only problem is that the instructions I find say to place the files where I want it to be located. Great. I'm still very much a newbie comparatively and will probably stay that way.
Questions are simple.
1. Where do I locate the files on installation?
2. How do I become root without using sudo for everything?
Locating files:
see(type) man find and man locate
example: sudo find / -name "*whatever*"
Depending on your desktop, you could have a GUI tool for this as well.
Sun's JRE:
If correctly installed, run: sudo update-alternatives --config java
...and select the one from Sun.
In Debian (and Debian-based) you can just apt-get it without having to worry about its location:
*Enable all your repos (either manually in your sources.list or using Synaptic) and do a "sudo apt-get update".
*Install Sun's JRE (+ browser plug-in): sudo apt-get install sun-java5-jre sun-java5-plugin
If I install it manually(without dpkg/apt), I usually install everything that isn't part of the distribution in /opt (it doesn't really matter though).
From Sun's website:
"3. Change to the directory in which you want to install. Type: cd <directory path name>"
It doesn't say to install it in a specific place, just go to where you want to install it. I don't know where I WANT to install it. Where is it best located?
Quote:
Originally Posted by jens
In Debian (and Debian-based) you can just apt-get it without having to worry about its location:
*Enable all your repos (either manually in your sources.list or using Synaptic) and do a "sudo apt-get update".
*Install Sun's JRE (+ browser plug-in): sudo apt-get install sun-java5-jre sun-java5-plugin
Tried that. Can't find either package. I've even tried every package with Java in its name in Synaptic. Probably cluttered things up quite well, but I wanted to try it myself first.
Quote:
Originally Posted by jens
If I install it manually(without dpkg/apt), I usually install everything that isn't part of the distribution in /opt (it doesn't really matter though).
Why doesn't it matter? If I install it in my home directory, won't it be inaccessible by my wife?
since you intend to upgrade anyhow, you may as well do so now. Gusty (7.10) makes these things so easy, why bother with an older release that has stopped receiving updates/ attention even though it was supposed to be fully supported for three years?
Anyway, if you do insist on installing it manually, you can pick any directory you like. Even your /home directory should work although it's probably more straightforward to install into /opt or (a subdirectory of) /usr.
From Sun's website:
"3. Change to the directory in which you want to install. Type: cd <directory path name>"
It doesn't say to install it in a specific place, just go to where you want to install it. I don't know where I WANT to install it. Where is it best located?
Probably /opt or /usr (it *really* doesn't matter, just pick what looks natural for you and your fellow users)
Quote:
Originally Posted by Ishkabibble
Tried that. Can't find either package. I've even tried every package with Java in its name in Synaptic. Probably cluttered things up quite well, but I wanted to try it myself first.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.