LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 12-03-2007, 10:00 AM   #1
Ishkabibble
Member
 
Registered: Aug 2003
Location: Worcester MA
Distribution: Ubuntu 8.04
Posts: 120

Rep: Reputation: 15
Sun Java


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?

Thanks!
 
Old 12-03-2007, 10:19 AM   #2
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,463

Rep: Reputation: 299Reputation: 299Reputation: 299
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.

Enabling Root:
sudo passwd root

Last edited by jens; 12-03-2007 at 10:36 AM.
 
Old 12-03-2007, 10:52 AM   #3
Ishkabibble
Member
 
Registered: Aug 2003
Location: Worcester MA
Distribution: Ubuntu 8.04
Posts: 120

Original Poster
Rep: Reputation: 15
I haven't installed anything, yet. That's part of the problem. I need to know where to install it.
 
Old 12-03-2007, 11:21 AM   #4
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,463

Rep: Reputation: 299Reputation: 299Reputation: 299
Quote:
Originally Posted by Ishkabibble View Post
I need to know where to install it.
Why?

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).

EDIT:
Here's a newbie friendly ubuntu guide:
http://ubuntuguide.org/wiki/Ubuntu_dapper

Last edited by jens; 12-03-2007 at 11:31 AM.
 
Old 12-03-2007, 11:49 AM   #5
Ishkabibble
Member
 
Registered: Aug 2003
Location: Worcester MA
Distribution: Ubuntu 8.04
Posts: 120

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jens View Post
Why?
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 View Post
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 View Post
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?

Quote:
Originally Posted by jens View Post
EDIT:
Here's a newbie friendly ubuntu guide:
http://ubuntuguide.org/wiki/Ubuntu_dapper
I'll go through that more later, but at first glance it looks like the same thing I've already tried.
 
Old 12-03-2007, 12:02 PM   #6
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Ishkabibble,

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.
 
Old 12-03-2007, 12:07 PM   #7
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,463

Rep: Reputation: 299Reputation: 299Reputation: 299
Quote:
Originally Posted by Ishkabibble View Post
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 View Post
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.
You probably don't have all your repos enabled:
http://ubuntuguide.org/wiki/Ubuntu_d...a_repositories


Quote:
Originally Posted by Ishkabibble View Post
Why doesn't it matter? If I install it in my home directory, won't it be inaccessible by my wife?
Most people use /usr for that (it still doesn't matter though, you can change all permissions the way you like).


Quote:
Originally Posted by Ishkabibble View Post
I'll go through that more later, but at first glance it looks like the same thing I've already tried.
Just post the actual error message, I can assure you that it will work

Last edited by jens; 12-03-2007 at 12:21 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Java Look-Alike Project Pushed Sun To Make Java Open Source LXer Syndicated Linux News 0 11-15-2006 03:54 AM
sun-java-5 Peter Shepard Ubuntu 1 10-08-2006 01:50 PM
sun java 1.5 shabbirhai Programming 2 02-26-2006 12:28 PM
Blackdown java and offical sun java linuxmandrake Programming 5 12-25-2005 03:14 AM
Sun Java confidential007 Linux - Software 6 05-30-2004 12:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration