Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
05-05-2005, 08:49 AM
|
#31
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
On most systems /bin/sh is a symlink to /bin/bash. If you are having such a problem then change #!/bin/sh to #!/bin/bash in the script.
|
|
|
05-05-2005, 09:39 AM
|
#32
|
Senior Member
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163
Original Poster
Rep:
|
Now my problem has worsened.
I made the specified changes in the script.
I changed the /bin/sh to /bin/bash .
But the new error occurred this time saying problem with bash.
I thought of loggin off and in.....
Now whatever i did , i couldn't login.
Now what should I do.
I thought that starting from scratch would be a good Idea, and has talked about it before.
Please rescue me guys.
|
|
|
05-05-2005, 10:13 AM
|
#33
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Something is wrong with your system if it can't find bash. The same script works fine on a Mandriva test system I just setup. Anyway what happens when you try to login as your normal user or as root.
|
|
|
05-05-2005, 11:06 AM
|
#34
|
Senior Member
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163
Original Poster
Rep:
|
Maybe the problem is enabling the login for root.
I just tweaked some settings to unhide root..........(So that I could Login as root).
But that can't be the reason for my problem I suppose.
I restart 2 times, but couldn't login.
When i try to login, and enter the password, it accepts it just fine, and then seems like it is entering my account.....but then a black screen comes in for a sec and then ......I am back again at the login screen.
Is this related with the bash thing, or with unhiding the root?
I don't often restart my system.
It goes on for weeks.
Can this be a problem?
|
|
|
05-05-2005, 11:35 AM
|
#35
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
I am not sure what could be causing that. Adding an aditional path shouldn't be a show stopper. I don't really know how else to help you. I am sure you can login again as a normal user if you get rid of the script.
|
|
|
05-05-2005, 11:45 AM
|
#36
|
Senior Member
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163
Original Poster
Rep:
|
I will try rebooting to Mandrake again tomorrow.
It is late night here right now.
Hold on.
|
|
|
05-06-2005, 09:01 AM
|
#37
|
Senior Member
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163
Original Poster
Rep:
|
Hey reddazz and all of you.
Thanks for your help until now.
You don't know how grateful I am for your time you have give me!
Now the problem again.
I tried rebooting to Mandrake this morning, but to no avail.
Somehow, I managed to get to the command line, but then what do i do to get rid of the script?
I tried the rm and rmdir command, but no use as it can only delete empty directories.
HOW DO I GET RID OF THAT SCRIPT?
Last edited by duffmckagan; 05-06-2005 at 10:47 AM.
|
|
|
05-06-2005, 11:27 AM
|
#38
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
rm can remove files "rm /etc/profile.d/java.sh" as root should do the trick.
|
|
|
05-06-2005, 12:27 PM
|
#39
|
Senior Member
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163
Original Poster
Rep:
|
Great.
That was really the show stopper.
I removed it and everything workin fine. (Except Java).
Now again!
|
|
|
05-06-2005, 03:09 PM
|
#40
|
Senior Member
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163
Original Poster
Rep:
|
Hey Reddazz this is the last time for installing JAVA.
Can you please arrange the exact process I need to follow now?
I don't understand exactly how to use emacs.
In your first post, what is that ctrl-x and ctrl-s thing?
and that chmod thing?
Where do i type that?
Please tell me exact procedure for emacs, as I don't know how to use it.
I am and will be grateful for your every post!
|
|
|
05-07-2005, 02:21 AM
|
#41
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
If you are not sure how to use apps or commands on Linux (or other Unix like OSes) just do "man program/command" e.g. "man emacs". Man is short for manual. Anyway emacs is a text editor that can be used in graphical or text mode. Other common ones are vi/vim and pico/nano. chmod (change mode) changes permissions on a file etc. All those commands are entered in a console.
One other possible solution is to do the following as root,
Code:
#ln -s /usr/java/jre1.5.0_01/bin/java /usr/bin/java
That will create a symlink to java. Hope that works.
|
|
|
05-07-2005, 03:24 AM
|
#42
|
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:
|
For people like myself who have come from a windows background perhaps and like to do alot of things from the GUI environment you could always do the following.
To make the link:
As root, bring up two file managers (Konqueror or whatever you use),
or if using KDE as your normal login you can bring up two in "super user" mode from Menu > System > File manager > File Manager(super user mode).
In one navigate to /usr/java/jre1.5.0_01/bin.
In the other navigate to /usr/bin.
Drag the java file from /usr/java/jre1.5.0_01/bin across to /usr/bin.
From the dialogue that comes up choose "link".
To create script:
To create your script use one of the File Managers as above (still need to be super user or root) to navigate to /etc/profile.d.
Right click in a clear patch in the directory and choose "Create new" > "Text file".
Name it "java.sh", without the quotes!
Right click on the file you have created and from the menu choose "open with" > choose an editor from list.
Just type in the lines as reddazz showed and then save.
What ever you do dont use a word processor instead of an editor as this may introduce odd formatting characters into the script!
Good Luck
|
|
|
All times are GMT -5. The time now is 09:56 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|