LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 03-17-2005, 06:35 AM   #1
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
Installing java


Hello, With some help I've installed firefox but need java for some web pages. So I downloaded it as a RPM file and then followed the instructions on the sun site to install it. Unfortunately they dont work. It says change the file to executeable by doing this:
chmod a+x jre-1_5_0_01-linux-i586-rpm.bin. But that produces bash: file doesn't exist. Any help on installing java to run with firefox greatly appreciated, thanks.
 
Old 03-17-2005, 07:06 AM   #2
prj
Member
 
Registered: Aug 2003
Location: South Wales
Distribution: Kubuntu, Ubuntu server, SuSE 11, Knoppix, Puppy, Myth. Oh alright then, all of them
Posts: 177

Rep: Reputation: 30
Easy way - As root file manager, or from Kmenu>System>File manager>File manager - super user, navigate to file, right click it, then choose properties, then Permissions tab and finally click in executable box. OK, to finish.

To run either click on file, or from shell, cd to directory and ./filename.
Hint - to get correct file name in shell - type ./ then first couple of letters (making sure cASe is correct) followed by tab which will autocomplete the file name or partially complete if other files with very similar names are present. In that case press tab a couple more times to bring up a listing of all those files and then type in the next character + tab.

Autocomplete is great for saving hours of typing out filenames when in a shell.

The Java install should guide you through the install. Help is available from the install notes on Sun's download page.

EDIT: I would also recommend being logged in as root for the install if you want to make it "system wide", otherwise you'll have to install into your home directory.

Last edited by prj; 03-17-2005 at 07:09 AM.
 
Old 03-17-2005, 09:37 AM   #3
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794

Original Poster
Blog Entries: 2

Rep: Reputation: 30
Thanks very much for the reply. The problem is I cant find file manager. All I can find is configure file manager. Apparently Konqueror is the file manager but I cant find how to sign in as root.
 
Old 03-17-2005, 10:03 AM   #4
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
assuming you're running KDE, from a command line, enter "kdesu konqueror". This will pop up a dialog asking for your root password, and then start an instance of Konq for you as root.

If you're running gnome, there is a similar command (gsu?).
 
Old 03-17-2005, 10:09 AM   #5
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794

Original Poster
Blog Entries: 2

Rep: Reputation: 30
If anybody's interested in giving me a few pointers I'd be grateful. This is all very new. First I have firefox installed but I didn't change the directory and so I can only launch from the console as home/user/firefox-installer/firefox/. There might be an easier way. I need to run java runtime on it which I haven't yet installed. I'm getting fed up with constantly being asked to sign in as root. And I can't get my printer to install. And I've heard something about using urpmi to install software but again am not sure how to go about using it or installing it. Generally speaking I'm feeling at a loss.

I'm running mandrake 10.1 and kde.

Padma, I've visited easy urpmi but dont know which parts to install i.e ftp or http, and wether to just use core etc.

Last edited by simcox1; 03-17-2005 at 10:12 AM.
 
Old 03-17-2005, 10:27 AM   #6
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
For Easy Urpmi, choose either ftp or http - they both work fine. Just be sure you select sites for "main", "updates", "contrib", and "plf". FWIW, I live in the US, and I find the European sites actually run a bit faster, and are more up to date.

The jre is available via urpmi, as is Firefox. (Not necessarily the most recent version, however.) A simple point-and-click install, using rpmdrake. (Rpmdrake is the gui interface for urpmi.)

To use rpmdrake: Either type "rpmdrake" on the command line, or start the Mandrake Control Center (mcc on the command line, or via menu Star --> System --> Configuration --> Configure Your Computer), and select "Software Management" from the left. You will have options to "Install", "Remove", "Updates", and "Manage Sources". Check each one to see what it does and how it works.

To simplify launching your current Firefox install, right-click on the desktop, and create a New --> Link to Application. In the dialog box that comes up, set the command (it's on another tab) to "/home/user/firefox-installer/firefox". You can click the icon button on the first tab to change the default icon to a firefox one.

Do you have a thread on your printer problem? What kind of printer is it?
 
Old 03-17-2005, 10:35 AM   #7
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794

Original Poster
Blog Entries: 2

Rep: Reputation: 30
My printer is an HP PSC 1110 all-in-one but it might be best to sort the other things first. I presume I dont use the hp software to install it. It's plugged in to a usb port but mandrake doesn't seem to be picking it up so I cant really get started on it. Thanks anyway.

Thanks, I've now got a link to firefox which is a start. Unfortunately I cant find the java file which downloaded. Never mind.

Last edited by simcox1; 03-17-2005 at 11:28 AM.
 
Old 03-17-2005, 02:30 PM   #8
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794

Original Poster
Blog Entries: 2

Rep: Reputation: 30
Ok so firefox is fine but I cant find the java file so I'm not sure where that is. I really do need it so would like to sort it out. I've downloaded from easyurpmi. I can't find java runtime in the software manager although firefox is there, but as I've already downloaded them I dont need to install from there. And I'm not sure about my printer.
Also is it possible to disable the root password so I dont need to keep signing in. And finally, am I secure with this system? No antivrus, firewall etc. Thanks again, Simon.
 
Old 03-18-2005, 12:11 AM   #9
toes
Member
 
Registered: Mar 2005
Location: Arkansas
Distribution: Mandy 2006, FC5
Posts: 154

Rep: Reputation: 30
I'm an amateur, too, so take any advice here with caution.

Finding your java download...
Firefox default (for me) download location was /home/user. If you were root, check /home/root.
Or...
updatedb #This will update your slocate DB and may take a bit.
locate jre- #This will locate all files with the pattern 'jre-' which is the leading part of the downloaded filename.
When installing my java, I failed to get a symlink in a certain directory and it never worked. I just found out last night what the problem was and finally got it fixed. So when the instuctions talk about a symbolic link (the ln command), be sure to get it in the right place.

Root password...
I don't know about disabling it, but I would recommend against it... and so will everyone else when they read this. It's in place for your protection. After you get used to it, it's not really that big of a deal. But I do remember hating it when I was first trying to get my system set up, too.

Security...
You can set up a firewall in MCC under the Security tab. And you can install ClamAV from urpmi (or sourceforge for a newer version) for your AV needs. I probably use it like a tard, but I just 'freshclam' to update it, and then 'clamscan' to scan home. Occasionally run a full system scan with it, too. I'm pretty sure it's quite more robust than my simple use of it, but I haven't taken time yet to figure it out.

Printer...
http://linuxprinting.org/
All things printing. Well, almost. Sometimes you have to search the dregs of the site to find answers for newer things. In your case, yours is listed. http://linuxprinting.org/show_printe...um=HP-PSC_1110
 
Old 03-18-2005, 02:33 AM   #10
cabinetcrafter
Member
 
Registered: Mar 2004
Location: midwest
Distribution: Mandriva 2007
Posts: 83

Rep: Reputation: 15
Nope you do not dissable root password, it is there for your protection. Once you have your machine configured you will not be using it very often. Virus? bah your worries are over. Firewall? always a good idea, you can go in to the control center/security/firewall and you will have the option, if you have set your media manager to your urpmi sources it will fetch shorewall for you, other Wise it will be on the disks. Shorewall can be configured to an industrial strength firewall. Give Linux an honest try, it will take a little time to become used to it, but in the end you will dread the thought of having to use a Windoze machine. How much time? Depends on the amount of effort expended.
 
Old 03-18-2005, 03:46 AM   #11
bunnadik
Member
 
Registered: Jan 2005
Location: Ívik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
It's a bit none-easy to install java in firefox, but this is how: http://java.com/en/download/help/500...selfextracting

For a summary on how I did:

Installed Firefox in ~/FFOX-1.01 (like I showed you in the other post)

Downloaded jre-5.0 from
http://javashoplm.sun.com/ECom/docs/...actionId=noreg
to /usr/src/WWW (I got the non RPM file).

'chmod 755 /usr/src/WWW/jre-1_5_0_02-linux-i586.bin'

cd:d to my home directory and ran /usr/src/WWW/jre-1_5_0_02-linux-i586.bin. That created a jre1.5.0_02 subdir that
contains the Java JRE.

cd:d to ~/FFOX-1.01/plugins and made a symbolic link to the java plugin: ' ln -s ~/jre1.5.0_02/plugin/i386/ns7/libjavaplugin_oji.so'

started firefox and went to http://www.javaonthebrain.com/java/rubik/ to see the famous cube.

The linux security system is based around the fact that only root can install system wide applications and RPM's.
Things like firefox and java (and your self compiled programs) can be installed as a normal user.
(The same goes more or less for WinXP nowadays; you need to be admin to install programs)
If you can't stand that, please go back to using Win98 or DOS.

- Peder
 
Old 03-18-2005, 05:43 AM   #12
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794

Original Poster
Blog Entries: 2

Rep: Reputation: 30
Thanks for all your replies. I've spent the morning trying to istall my hp printer. I found the relevant site and went through the steps. Everything worked a treat until the very last part. What I have done is:

# Download the HPLIP tar file that contains the current HP printing software from http://hpinkjet.sourceforge.net.
Suggestion: Note the folder in which you saved the HPLIP tar file.
# Open a console window.
# Enter this command to navigate to the folder that contains the HPLIP tar file that you downloaded in step 1:
$ cd [file path] (for example: $cd /home/documents)
# Enter this command to extract the driver files from the HPLIP tar file:
$ tar xvfz [HPLIP filename.tar.gz] (for example: $ tar xvfz hplip-0.8.tar.gz)
The files are extracted to a folder named for the HPLIP version (for example, "hplip-0.8").
# Enter this command to navigate to the directory containing the HPLIP files:
$ cd [folder name] (for example: $ cd hplip-0.8)
# Enter this command to configure the computer for the driver:
$./configure --prefix=/usr
# Enter this command:
$ make
# Follow these steps to log in as the super user:

1. Enter su.
2. Press Enter.
3. Enter the root password.
Note: The root password gives you administrative privileges on the system.
4. Press Enter.

# Enter this command:
# make install
# Enter this command:
# /etc/init.d/hplip restart
# Enter this command:
# /etc/init.d/cups restart

Sorry it's so long, but the very last command said bash: no such file or directory. I seem to have downloaded the correct file according to HP i.e hplip-0.8.8.tar.gz. It does look like the cups file is wrong although I went through all the installs of necessary files earlier today and it all looked ok. Any suggestions?
 
Old 03-18-2005, 07:52 AM   #13
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794

Original Poster
Blog Entries: 2

Rep: Reputation: 30
Trying to install java. Using locate in console gives me jre-1_5_0_01-linux-i586-rpm.bin. Instuctions on sun website say type: chmod a+x name of file. Unfortunately this comes up with no such file or directory. Bit confused.
 
Old 03-18-2005, 08:57 AM   #14
toes
Member
 
Registered: Mar 2005
Location: Arkansas
Distribution: Mandy 2006, FC5
Posts: 154

Rep: Reputation: 30
Java...
Is the result of 'locate' just the filename, or is it giving you the complete path? You are in that directory when issuing chmod? Are you issuing chmod as root? I'm not sure about that 'a' in your chmod line. Granted, I'm no CLI pro, but I do know that 'chmod +x' is sufficient to flag a file executable. Just looked in 'man chmod' also and I find no option 'a' there. Might try it with just '+x filename'.

By the way, if you haven't figured it out yet, there's a built-in time saver in terminal. If you're typing a filename or directory name, just hit the first couple of characters and then hit the tab key. This will attempt to auto-complete your text with all options within the path. For example, it's pretty unlikely that you have a load of files named jre-blahblahblah. So when you're trying the chmod again, do 'chmod +x jre', hit tab key, and if the file is in the directory, it will auto-complete, thus releasing you from typing all those numbers and underscores. It's a very handy tool for long filenames, long directory strings, or those blasted MuLtICaSe filenames. Experiment with it to test its abilities.

Printer...
You may not have CUPS installed. In firefox, type 'localhost:631' in the address bar. That's one of the configuration and management methods for CUPS. If it doesn't pop up, that may signify that CUPS isn't there. I don't know, though, that CUPS is even required for just local printing. If I recall correctly, that just deals with network printing, but I could be wrong.
 
Old 03-18-2005, 08:58 AM   #15
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
Sorry I didn't get back to you last night (my time) - RL issues. But it seems like you got help you needed.

As for your java, that bin file is wherever you downloaded it to. My *guess* would be that it was saved in ~/Documents, or somewhere similar. You may have to dig around in your home directory a bit to find it. You need to cd to the correct directory before running the rest of the commands.

Edit: I "grew up" with UNIX years ago, so I am more familiar with the output of the old "find" command. If you issue the command "find ~ jre*" it should indicate which directory the file is in.
 
  


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
installing java... linuxgeek13 Linux - Software 1 10-02-2005 11:28 PM
Help installing java Lakota Mandriva 18 12-12-2004 02:02 AM
installing java kshatriyarules Programming 2 12-02-2004 11:04 AM
Installing java...oy... Jaster Linux - Software 8 11-30-2004 07:58 AM
Installing Java mrl Linux - Newbie 4 05-23-2001 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 06:34 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