Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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
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.
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
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.
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!
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".
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:
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....
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.
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.....
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.
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....
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.