LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-03-2011, 12:50 AM   #1
DethGoddess
LQ Newbie
 
Registered: Sep 2011
Posts: 13

Rep: Reputation: Disabled
JRE/JDK installation onto a PowerPC form of Ubuntu.


Hello everyone, I am new to Linux and decided that I would make myself somewhat known here. The problem I am having is with a curb swiped Power Mac G4 from 2004 (I believe) that had been upgraded from OS9 to OSX. Prior to my heavy tinkering it did have OS9 on a 40gig HDD and OSX on the bigger 160gig HDD, I had managed to figure out how to delete and format the 40gig (with the help of a good friend who knew about Macs) and put a PowerPC friendly form of Ubuntu (10.04 Lucid Lynx) onto the 40gig. Being a Windows user since 3.1 was in use, I don't know much of Linux at all but am very lucky to even get this far.

To the point: I am trying to get a private Minecraft server going on this old machine and am in need of help to install Java on here to do so properly. Anyone know enough about this to help? I have been looking at how to do this properly for the past 5 or so hours, and finally gave up to post this thread.
 
Old 09-03-2011, 01:45 AM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Hi,

Welcome here, and thanks for keeping at least one PC out of the "Grand Landfill".

Okay, on to Java.

What you need are the Java packages from either Sun or your Repo.
The Repo, that's easy, follow the path of your distro.
The Sun packages need to be downloaded.

Next, follow these steps:

- open a console
- become Root (issue the "su -" command and supply the root password)
- locate the downloaded file, tip go to "/home/[user]/Downloads" - that'"s a possibly safe bet
- issue the following command :

Quote:
chmod +x [filename]
an example

Quote:
chmod +x jre-6u21-linux-i586.bin
- copy the file

Quote:
cp /home/[user]/Downloads/jre-6u21-linux-i586.bin /opt/jre-6u21-linux-i586.bin
go to that folder

Quote:
cd /opt
start the file up to install

Quote:
./jre-6u21-linux-i586.bin
and the JRE is installed.

To invoke...that depends...but you should be able to run Java stuff from then on...

Quote:
/opt/jre1.6.0_21/bin/java theProgram.class
as a humble example...

I'll keep this thread on the scope, dont worry!

Luck

Thor

-
 
Old 09-03-2011, 02:06 AM   #3
DethGoddess
LQ Newbie
 
Registered: Sep 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
*facepalms* Ok I am unable to modify the root password now even if I give the command to do so. Otherwise it will not allow me to access the root.
 
Old 09-03-2011, 02:12 AM   #4
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
No problem...it's just an "astuce" as said in french...

Can you open a console? If so enter "su -" the hyphen is part of the entry...
Can you type the password? There is no feedback, as you're possibly aware...
Upon success, the prompt should be different.

I'll follow up...this is my "primary thread" today...

Thor
 
Old 09-03-2011, 02:21 AM   #5
DethGoddess
LQ Newbie
 
Registered: Sep 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
su: Authentication failure
This is what I'm getting everytime I attempt to put a password in.
 
Old 09-03-2011, 02:26 AM   #6
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Hmm, okay...
You're using Ubuntu, lemme think...
Passwords (as everything in Linux) are CaseSensisive...maybe that's worth a shot? Have you ever done this (logging into a console) before?

Let's see...
 
Old 09-03-2011, 02:29 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,634

Rep: Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268
You can still get an Ubuntu package ..
http://www.multimediaboom.com/how-to...y-narwhal-ppa/


Or do this with the java, you downloaded : sudo ./jre-6u26-linux-i586.bin
JDK : sudo ./jdk-6u26-linux-i586.bin
 
Old 09-03-2011, 02:30 AM   #8
DethGoddess
LQ Newbie
 
Registered: Sep 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
I've used "sudo" before but I've never used "su -" before. Is the console same as terminal, because I've been using the terminal. Perhaps it could be the problem all its own.

edit: By the way this is the desktop version of ubuntu.

Last edited by DethGoddess; 09-03-2011 at 02:34 AM.
 
Old 09-03-2011, 02:34 AM   #9
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
A console or terminal, both are valid names, point is that you get to see a text-only screen where you can type stuff...but, you've used sudo before, so, let's take that path...

and, to quote knudfl

Quote:
Or do this with the java, you downloaded : sudo ./jre-6u26-linux-i586.bin
JDK : sudo ./jdk-6u26-linux-i586.bin
is the way to do this, to be executed in the /opt folder (top level), just to keep your system "clean"

Edit
Quote:
I've never used "su -"
I dont have sudo on my system, I'm the only one using it and (old skool as I am ) I'm more comfortable with su- ...

Last edited by ButterflyMelissa; 09-03-2011 at 02:36 AM.
 
Old 09-03-2011, 03:19 AM   #10
DethGoddess
LQ Newbie
 
Registered: Sep 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
E: Package sun-java6-plugin has no installation candidate
Story of what has been happening.

edit: Is there anyway to do this through the GUI?

Last edited by DethGoddess; 09-03-2011 at 03:21 AM.
 
Old 09-03-2011, 03:33 AM   #11
DethGoddess
LQ Newbie
 
Registered: Sep 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
I found a JDK file in the software center. Hopefully it works properly, I just need to upgrade it.
 
Old 09-03-2011, 03:37 AM   #12
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
edit: Is there anyway to do this through the GUI?
Of course there is...you're using Ubuntu, so the Softare Center should do the whole thing...of course, Sun's JRE/JDK are not in there...

And...

Quote:
I found a JDK file in the software center. Hopefully it works properly, I just need to upgrade it.
You're right on the mark, it seems...

Edit : I use Arch Linux, we do not have a GUI to maniplate software, everything gets done in the console...hence my "leaning towards" the console...

Last edited by ButterflyMelissa; 09-03-2011 at 03:38 AM.
 
Old 09-03-2011, 03:43 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,634

Rep: Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268
Quote:
Of course there is...you're using Ubuntu, so the Software Center should
do the whole thing...of course, Sun's JRE/JDK are not in there...
It will be available in Synaptic and 'Software Center' when ppa is added.
> > http://www.multimediaboom.com/how-to...y-narwhal-ppa/
 
Old 09-03-2011, 03:44 AM   #14
DethGoddess
LQ Newbie
 
Registered: Sep 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Thor_2.0 View Post
I use Arch Linux, we do not have a GUI to maniplate software, everything gets done in the console...hence my "leaning towards" the console...
I know the feeling, I personally feel that where ever Mac is involved something isn't going to go my way.
 
Old 09-03-2011, 03:50 AM   #15
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Dont let it get you down...and, by the way:

Quote:
Power Mac G4 from 2004
...is NOT the Mac of 2011 of course, and Mac is HARD and SOFT in a bundle....

Personally, I feel more at ease in a console. But, that's grown over time...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Slackware64 13.1 packages JRE and JDK conflict? mlpa Slackware 14 08-10-2011 05:48 AM
JDK or JRE problem I don't know really! iansu Linux - Newbie 9 07-12-2011 07:07 AM
Java JRE and JDK on CentOs nuttynibbles Linux - Software 1 06-11-2011 01:41 AM
How to install Java jdk and jre in linux BuhRock Linux - Newbie 2 03-27-2011 04:28 PM
Help installing JDK JRE SuSE CS_Student_DrewU Linux - General 2 11-09-2007 08:33 PM


All times are GMT -5. The time now is 06:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration