LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-06-2006, 05:33 PM   #1
nathanhillinbl
Member
 
Registered: Aug 2005
Location: Upstate NY
Distribution: Ubuntu 7.10 Gutsy Gibbon
Posts: 100

Rep: Reputation: 15
Question Terminal su problems


im trying to install a .bin file that i downloaded to my home folder and i try to switch user to root and when it asks me for my password in the terminal and it wont let me type my password. Anyone have any idea???

Thanks in Advance
Nathan Hill
 
Old 01-06-2006, 05:48 PM   #2
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Rep: Reputation: 46
When you say it won't let you type the password, exactly what do you mean? Is it rejecting it or when you hit enter does nothing happen?
 
Old 01-06-2006, 05:53 PM   #3
nathanhillinbl
Member
 
Registered: Aug 2005
Location: Upstate NY
Distribution: Ubuntu 7.10 Gutsy Gibbon
Posts: 100

Original Poster
Rep: Reputation: 15
Its rejecting any keyboard input except enter it wont let me type anything
 
Old 01-06-2006, 06:00 PM   #4
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 48
Most likely whatever you type just doesn't get echoed on the screen. The text is there, but for security reasons it's not shown (someone could be peeking ower your shoulder or something). Just type your password normally and hit enter
 
Old 01-06-2006, 06:05 PM   #5
nathanhillinbl
Member
 
Registered: Aug 2005
Location: Upstate NY
Distribution: Ubuntu 7.10 Gutsy Gibbon
Posts: 100

Original Poster
Rep: Reputation: 15
well that worked but then it said permission denied under root. heres what it said

[nathan@localhost nathan]$ su
Password:
[root@localhost nathan]# ./jre-1_5_0_06-linux-i586.bin
bash: ./jre-1_5_0_06-linux-i586.bin: Permission denied
[root@localhost nathan]#
 
Old 01-06-2006, 06:16 PM   #6
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 48
.bin probably doesn't have exec permission, do:

chmod a+x ./jre-1_5_0_06-linux-i586.bin

and then run it.
 
Old 01-06-2006, 06:16 PM   #7
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
chmod 755 jre-1_5_0_06-linux-i586.bin
 
Old 01-06-2006, 06:22 PM   #8
nathanhillinbl
Member
 
Registered: Aug 2005
Location: Upstate NY
Distribution: Ubuntu 7.10 Gutsy Gibbon
Posts: 100

Original Poster
Rep: Reputation: 15
ok that worked but heres another question i tried running a program that requires java and i got this

[nathan@localhost nathan]$ frostwire
Starting FrostWire...
Java exec not found in PATH, starting auto-search...
ls: /usr/lib/j*: No such file or directory
OOPS, unable to locate java exec in /usr/lib/ hierarchy
You need to upgrade to JRE 1.4.x or newer from http://www.java.com
ls: /usr/java/j*: No such file or directory
OOPS, unable to locate java exec in /usr/java/ hierarchy
You need to upgrade to JRE 1.4.x or newer from http://www.java.com
ls: /opt/j*: No such file or directory
OOPS, unable to locate java exec in /opt/ hierarchy
You need to upgrade to JRE 1.4.x or newer from http://www.java.com
[nathan@localhost nathan]$
 
Old 01-06-2006, 06:37 PM   #9
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Running the jre-1_5_0_06-linux-i586.bin just extracts the Java SDK and modifies /etc/mailcap. For other applications (like frostwire) to find the Java executable, you should make a couple of changes to your setup.

If you extracted jre-1_5_0_06-linux-i586.bin in /usr/local:

- Add /usr/local/jdk1.5.0_06/bin to your path;
- Create the JAVA_HOME environment variable as /usr/local/jdk1.5.0_06

Both of these can be done in .bash_profile in your home directory if you are the only user, or in /etc/profile if there are several users on the box. The lines to add are:

Code:
export JAVA_HOME="/usr/local/jdk1.5.0_06"
export PATH="${JAVA_HOME}/bin:$PATH"
You can also type them at the command prompt and they will take effect for your current session, but no others.
 
Old 01-06-2006, 06:51 PM   #10
nathanhillinbl
Member
 
Registered: Aug 2005
Location: Upstate NY
Distribution: Ubuntu 7.10 Gutsy Gibbon
Posts: 100

Original Poster
Rep: Reputation: 15
i tried that and when i put it in the terminal it just brought up another line. heres what i did

[nathan@localhost nathan]$ export JAVA_HOME="/usr/local/jdk1.5.0_06"
[nathan@localhost nathan]$

and

[nathan@localhost nathan]$ export PATH="${JAVA_HOME}/bin:$PATH"
[nathan@localhost nathan]$

I am a total newbie and dont know much about this, so any more help would be greatly appreciated.
 
Old 01-06-2006, 06:57 PM   #11
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Setting the 2 environment variables just allows Java to be found by frostwire. Can you try typing the following at the command prompt and post back any errors that it produces please?

Code:
export JAVA_HOME="/usr/local/jdk1.5.0_06"
export PATH="${JAVA_HOME}/bin:$PATH"
frostwire
 
Old 01-06-2006, 07:07 PM   #12
nathanhillinbl
Member
 
Registered: Aug 2005
Location: Upstate NY
Distribution: Ubuntu 7.10 Gutsy Gibbon
Posts: 100

Original Poster
Rep: Reputation: 15
heres the results

[nathan@localhost nathan]$ export JAVA_HOME="/usr/local/jdk1.5.0_06"
[nathan@localhost nathan]$ export PATH="${JAVA_HOME}/bin:$PATH"
[nathan@localhost nathan]$ frostwire
Starting FrostWire...
Java exec not found in PATH, starting auto-search...
ls: /usr/lib/j*: No such file or directory
OOPS, unable to locate java exec in /usr/lib/ hierarchy
You need to upgrade to JRE 1.4.x or newer from http://www.java.com
ls: /usr/java/j*: No such file or directory
OOPS, unable to locate java exec in /usr/java/ hierarchy
You need to upgrade to JRE 1.4.x or newer from http://www.java.com
ls: /opt/j*: No such file or directory
OOPS, unable to locate java exec in /opt/ hierarchy
You need to upgrade to JRE 1.4.x or newer from http://www.java.com
[nathan@localhost nathan]$
 
Old 01-06-2006, 08:09 PM   #13
nathanhillinbl
Member
 
Registered: Aug 2005
Location: Upstate NY
Distribution: Ubuntu 7.10 Gutsy Gibbon
Posts: 100

Original Poster
Rep: Reputation: 15
any help guys
 
Old 01-06-2006, 09:59 PM   #14
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 48
First of all, you don't seem to have jdk, but jre (judging from the name of .bin package), so the JAVA_HOME should be /usr/local/jre1.5.0_06 or /usr/local/java/jre1.5.0_06, provided that jre really is installed under /usr/local hierarchy (which I think is the case since FrostWire seems to check every other possible location). Other potential locations are: /usr/java/jre1.5.0_06, /usr/lib/jre1.5.0_06 and /opt/jre1.5.0_06, but if java would have been there, FrostWire would have been able to find it.

To check, be root and do:

updatedb

it takes a while to run and after that:

slocate jre

that will tell you where it is.

Secondly you could make a symlink for FrostWire to be able to locate your java installation correctly:

ln -s [whereverjavais]/jre1.5.0_06 /usr/lib

This however shouldn't be necessary if you have JAVA_HOME and PATH variables set correctly. When setting variables there is no immediate output, so when you do:

export JAVA_HOME=[whereeverjavais]jre1.5.0_06
export PATH="${JAVA_HOME}/bin:$PATH"

getting new prompts is exactly what should happen.

Thirdly, you could just find another program to replace FrostWire and ditch the whole java, it's crap anyway Just kidding of course... or am I?

Last edited by alienDog; 01-06-2006 at 10:14 PM.
 
Old 01-06-2006, 10:34 PM   #15
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Sorry - my mistake, I copy/pasted from the window with my setup instead of the message window
 
  


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
Terminal problems teto Linux - Newbie 3 10-26-2005 06:28 PM
Pseudo Terminal Problems ailiez Programming 2 02-09-2004 01:58 AM
Terminal Problems gsibble Linux - General 2 01-05-2004 02:00 PM
Terminal Problems JC404 Linux - Newbie 0 06-27-2003 11:03 PM
Terminal name related problems CARTMAN Linux - Newbie 1 02-13-2002 05:06 AM

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

All times are GMT -5. The time now is 11:09 PM.

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