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 06-21-2005, 10:53 AM   #1
iatemyfingers
LQ Newbie
 
Registered: Jan 2005
Distribution: KNOPPIX
Posts: 24

Rep: Reputation: 15
how bout that JAVA??


I'm running knoppix 3.4, installed to hd using the Debian method installer, and have tried this as both root and user sudo-ing as root.

I have Mozilla Firefox, and I can't port java's jre2 plugin to the browser. The java install script has been run, and came out fine with no errors during installation. However, I type the following command to create a symlink, while in the Firefox plugin directory:

ln -s /mnt/hdc5/jre1.3.1_16/plugin/i386/ns4/javaplugin.so=/mnt/hdc5/firefox-1.0.4.installer/firefox-installer/plugins

I've also tried:

ln -s /mnt/hdc5/firefox-1.0.4.installer/firefox-installer/plugins=/mnt/hdc5/jre1.3.1_16/plugin/i386/ns4/javaplugin.so

.... and both give me the error message- OPERATION NOT PERMITTED.

Any suggestions??
 
Old 06-21-2005, 11:52 AM   #2
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Uninstall the old java you have. Then choose one of the following solutions:

1) Add to /etc/apt/sources.list the following line:
deb ftp://metalab.unc.edu/pub/linux/deve...own.org/debian unstable non-free
Run as root:
dselect update
apt-get install j2re1.4
update-alternatives --config java

2) For a newer 1.5 follow this: http://www.debian-administration.org/articles/142

BTW, when symlinking change the = to a space
 
Old 06-21-2005, 11:53 AM   #3
wolfgang pauli
LQ Newbie
 
Registered: Jun 2005
Posts: 4

Rep: Reputation: 0
Hi,

You might take a look at this FAQ, it describes how to do it.
http://www.mozilla.org/support/firefox/faq.html#q2.2

Did you really type that "=" in your command?

ln -s /mnt/hdc5/jre1.3.1_16/plugin/i386/ns4/javaplugin.so=/mnt/hdc5/firefox-1.0.4.installer/firefox-installer/plugins

Try this instead:
ln -s /mnt/hdc5/jre1.3.1_16/plugin/i386/ns4/javaplugin.so /mnt/hdc5/firefox-1.0.4.installer/firefox-installer/plugins

The second command does the link in the opposite direction, thats not what you want.

Hope it works!
 
Old 06-21-2005, 12:15 PM   #4
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by wolfgang pauli
Hi,

You might take a look at this FAQ, it describes how to do it.
http://www.mozilla.org/support/firefox/faq.html#q2.2

Did you really type that "=" in your command?

ln -s /mnt/hdc5/jre1.3.1_16/plugin/i386/ns4/javaplugin.so=/mnt/hdc5/firefox-1.0.4.installer/firefox-installer/plugins

Try this instead:
ln -s /mnt/hdc5/jre1.3.1_16/plugin/i386/ns4/javaplugin.so /mnt/hdc5/firefox-1.0.4.installer/firefox-installer/plugins

The second command does the link in the opposite direction, thats not what you want.

Hope it works!
Should point out that what he's given you there should be on one line (I know you wrote it on one line wolfgang) but on my computer at least it looks like two.
 
Old 06-21-2005, 12:41 PM   #5
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,883
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Java JRE/JDK Installation on Debian
http://serios.net/content/debian/java/
 
Old 06-21-2005, 03:43 PM   #6
iatemyfingers
LQ Newbie
 
Registered: Jan 2005
Distribution: KNOPPIX
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by makuyl
Uninstall the old java you have. Then choose one of the following solutions:

1) Add to /etc/apt/sources.list the following line:
deb ftp://metalab.unc.edu/pub/linux/deve...own.org/debian unstable non-free
Run as root:
dselect update
apt-get install j2re1.4
update-alternatives --config java

2) For a newer 1.5 follow this: http://www.debian-administration.org/articles/142

BTW, when symlinking change the = to a space

So far, I am amazed. Thanks for the help. How did that work exactly?? Not quite finished with it though... I managed to get beyond apt-get install j2re1.4. However, right at the end, there were some errors:

dpkg: error processing locales (--configure):
subprocess post-installation script returned error exit status 137
dpkg: dependency problems prevent configuration of j2re1.4:
j2re1.4 depends on locales; however:
Package locales is not configured yet.
dpkg: error processing j2re1.4 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
locales
j2re1.4
W: Couldn't stat source package list ftp://metalab.unc.edu unstable/non-free Packages (/var/lib/apt/lists/metalab.unc.edu_pub_linux_dev...down.org_debian_dists_unstable_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Sub-process /usr/bin/dpkg returned an error code (1)

I also failed to be able to do the following:

root@box:~# update-alternatives --config java
No alternatives for java.

Any suggestions? Thanks again!
 
Old 06-21-2005, 04:55 PM   #7
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Sorry about that, seems like the posting here cut of the addition to your sources.list. Let's try again:

Code:
deb ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/debian unstable non-free

Last edited by makuyl; 06-21-2005 at 04:58 PM.
 
Old 06-22-2005, 01:44 AM   #8
iatemyfingers
LQ Newbie
 
Registered: Jan 2005
Distribution: KNOPPIX
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by makuyl
Sorry about that, seems like the posting here cut of the addition to your sources.list. Let's try again:

Wow, that worked perfectly. I can get java on Mozilla AND Konquerer, something I couldn't do on my previous install of KNOPPIX. However, I'm now running into a problem that may well be unrelated to java. When I log in now, I can't log in under any users- the screen goes black, and my login screen comes back up. I can only log in as root now. I've had this problem on my previous installation of KNOPPIX, but it didn't happen again until now.

If anything, thanks for your help so far, you've been great. I'm still curious as to how all that worked. If you can help me with the other problem I'm having, that would be great too. Thx again!
 
Old 06-22-2005, 09:47 AM   #9
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Hmm, java shouldn't bork kdm. Try selecting kde from the session when logging in.
Also check for lock files under /tmp.
How are the permissions for /tmp ?
Can you login to another wm like icewm under kdm session?
Did you edit anything else that "AllowRootLogin" in kdmrc since by default you shouldn't be able to login to kde as root?
You also seem might have something borked with locales as your previous output suggests. Try as root: "dpkg --configure -a" and "apt-get -f install".

Last edited by makuyl; 06-22-2005 at 09:48 AM.
 
Old 06-22-2005, 12:12 PM   #10
iatemyfingers
LQ Newbie
 
Registered: Jan 2005
Distribution: KNOPPIX
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by makuyl
Hmm, java shouldn't bork kdm. Try selecting kde from the session when logging in.
Also check for lock files under /tmp.
How are the permissions for /tmp ?
Can you login to another wm like icewm under kdm session?
Did you edit anything else that "AllowRootLogin" in kdmrc since by default you shouldn't be able to login to kde as root?
You also seem might have something borked with locales as your previous output suggests. Try as root: "dpkg --configure -a" and "apt-get -f install".
I tried a standard console login, as well as other window makers. Nothing seems to work. I haven't edited any kde preferences to allow me to log in as root- I've just always been able to. Here's what's in my temp directory:

root@box:/tmp# ls
GLC67a.tmp hsperfdata_root mcop-root wine.log.IyZptn
GLF1690.tmp jpsock.142.16206 orbit-user wine.log.VBfQP1
GLG164d.tmp kde-user orbit-root wine.log.Zq1cMC
GLJf1d.tmp kde-root ssh-vFpAO16906 wine.log.dcEGNc
GLK1116.tmp ksocket-dickhole unpack.log wine.log.vGZGkE
gconfd-user ksocket-root wine.log.C39Stl wine.status.zjUHOn
gconfd-root mcop-user wine.log.ID9voL zauninst.exe


As for the lock files, I have a lock directory in /tmp/gconfd-root/lock that contains a file call ior . I tried the dpkg --configure -a with apt-get -f install, and got the following:

Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 0 to remove and 960 not upgraded.
W: Couldn't stat source package list ftp://metalab.unc.edu unstable/non-free Packages (/var/lib/apt/lists/metalab.unc.edu_pub_linux_dev...down.org_debian_dists_unstable_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems.

After running apt-get update I found a few errors in the output stating various "failed to fetch" ftp server files, as well as "no such file or directory," which I suppose only suggests that the files weren't on the server. I don't really think this has a lot to do with the login issue though.

I should also mention, I have two computers up and running in here with KNOPPIX 3.4 on both. I've never had this problem on the other machine....
 
Old 06-22-2005, 01:20 PM   #11
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
To see the /tmp we need the output of "ls -l /tmp && ls -ld /tmp" but if console doesn't work either, I doubt if it's a /tmp permission problem.
Have you changed the keyboard layout by any chance? Try changing the password of a user to something simple like just letters. As root: passwd username
Can you login if you create a new user with: adduser newusername
Oh and btw, knoppix isn't really a good hd install. Good livecd though. If you really want to install from a livecd, install kanotix. Otherwise I suggest installing Debian Sarge.

Last edited by makuyl; 06-22-2005 at 01:22 PM.
 
Old 06-23-2005, 03:33 PM   #12
iatemyfingers
LQ Newbie
 
Registered: Jan 2005
Distribution: KNOPPIX
Posts: 24

Original Poster
Rep: Reputation: 15
I'll probably try Sarge soon. I just don't like changes all that well... When it comes to Linux, anyway.

As for the login problem, I deleted my user and made a new one, and still have the same problem. Here's my output for ls -l /tmp && ls -ld /tmp
total 28
drwx------ 3 root root 4096 Jun 23 14:55 gconfd-root
drwxr-xr-x 2 root root 4096 Jun 23 14:55 hsperfdata_root
drwx------ 2 root root 4096 Jun 23 13:28 kde-root
drwx------ 2 root root 4096 Jun 23 15:47 ksocket-root
drwx------ 3 root root 4096 Jun 23 13:27 mcop-root
drwx------ 2 root root 4096 Jun 23 14:55 orbit-root
drwx------ 2 root root 4096 Jun 23 13:27 ssh-MRTgkCU612
drwxrwxrwt 11 root root 4096 Jun 23 14:59 /tmp

I don't see anything unusual. Call me a newbie, but I think it has something to do with knoppix originally being a "one-user" platform anyway, on CD. That is, until you install it to hd.....
 
Old 06-23-2005, 04:05 PM   #13
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Hmm, how is your diskspace? The hd isn't full is it? Check with "df -h"
Did you try to change to a simple password?
What kind of knoppix install did you do? Knoppix, Beginner or Debian style?
Is /home rx for all? Check with "ls -ld /home"
Do you have a separate /home partition? If yes, post from /etc/fstab the line for home.
Do try to login as user first to console. Only when that works, try to login to kde.

BTW, did you still have the wrong line for metalab in sources.list when doing "dpkg --configure -a" and "apt-get -f install"?
And yes, the problems are due to knoppix being so heavily modified from debian. Like I said, a great livecd but a horrible hd install.
 
Old 06-23-2005, 07:39 PM   #14
iatemyfingers
LQ Newbie
 
Registered: Jan 2005
Distribution: KNOPPIX
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by makuyl
Hmm, how is your diskspace? The hd isn't full is it? Check with "df -h"
Did you try to change to a simple password?
What kind of knoppix install did you do? Knoppix, Beginner or Debian style?
Is /home rx for all? Check with "ls -ld /home"
Do you have a separate /home partition? If yes, post from /etc/fstab the line for home.
Do try to login as user first to console. Only when that works, try to login to kde.

BTW, did you still have the wrong line for metalab in sources.list when doing "dpkg --configure -a" and "apt-get -f install"?
And yes, the problems are due to knoppix being so heavily modified from debian. Like I said, a great livecd but a horrible hd install.
AHA, that may be it. My HD where the linux is installed, on a partition /dev/hdc1, IS full. On my other machine, it's not. Here's my df-h output:
Filesystem Size Used Avail Use% Mounted on
/dev/hdc1 2.6G 2.5G 0 100% /
/dev/hdc5 3.4G 2.9G 520M 85% /mnt/hdc5

I tried the simple password change, to the number 12. No deal.

And I did the only install method that seems to work on my machine, the Debian style installer.

Here's the output of ls -ld /home:
root@box:~# ls -ld /home
drwxrwsr-x 4 root staff 4096 Jun 22 20:01 /home

No one else is listed, but IN the home directory are the two users I deleted. And my /home is on the same partition as the install.

And I forgot to mention that I did manage to login to the console as a user, but can't get startx to work. I did, through some playing with it, manage to get xinit to bring up the X window, and then I can get fluxbox or icewm to work. sometimes.... It behaves in a manner not dissimilar to this cute little thing my computer does when it's using too much RAM to run apps- the screen flashes, and the X window restarts (I'm running this on an IBM 300pc, with a 300mhz pentium and 128m of RAM w/ about 100m of swap). I'll try freeing up some disk space. Hope that works.... Worst case scenario of having root priviledges all the time, I would imagine, is a hacker getting into my machine and having the same....
 
Old 06-24-2005, 05:39 AM   #15
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Quote:
Originally posted by iatemyfingers
My HD where the linux is installed, on a partition /dev/hdc1, IS full. On my other machine, it's not. Here's my df-h output:
Filesystem Size Used Avail Use% Mounted on
/dev/hdc1 2.6G 2.5G 0 100% /
/dev/hdc5 3.4G 2.9G 520M 85% /mnt/hdc5
Well, that's probably it. The needed files for X, kdm and kde can't be written to /tmp as there's no space. Delete some log files under /var/log or run logrotate, and remove some unneeded packages with kpackage or apt. There are lots of packages in knoppix which you probably have no need for.
 
  


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
comments bout yoper OS :King_58: Yoper 13 10-07-2004 01:50 PM
Questions 'bout IP MASQUERADING bennethos Debian 7 09-26-2004 03:33 PM
help bout firewall! duker_d_cooker Linux - Software 1 03-23-2004 07:52 AM
Some questions bout building kernel 2.6.x weng Linux - Newbie 1 01-27-2004 10:46 PM
'bout time to watch TV yaddayadda Linux - General 12 12-27-2002 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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