LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-05-2005, 08:49 AM   #31
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75

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.
 
Old 05-05-2005, 09:39 AM   #32
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 49
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.
 
Old 05-05-2005, 10:13 AM   #33
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
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.
 
Old 05-05-2005, 11:06 AM   #34
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 49
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?
 
Old 05-05-2005, 11:35 AM   #35
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
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.
 
Old 05-05-2005, 11:45 AM   #36
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 49
I will try rebooting to Mandrake again tomorrow.

It is late night here right now.

Hold on.
 
Old 05-06-2005, 09:01 AM   #37
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 49
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.
 
Old 05-06-2005, 11:27 AM   #38
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
rm can remove files "rm /etc/profile.d/java.sh" as root should do the trick.
 
Old 05-06-2005, 12:27 PM   #39
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 49
Great.

That was really the show stopper.

I removed it and everything workin fine. (Except Java).

Now again!
 
Old 05-06-2005, 03:09 PM   #40
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 49
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!
 
Old 05-07-2005, 02:21 AM   #41
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
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.
 
Old 05-07-2005, 03:24 AM   #42
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
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
 
  


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
Problem Installing Azureus athanman Linux - Software 3 11-20-2005 03:42 PM
installing Azureus? greythorne Ubuntu 1 10-29-2005 11:12 PM
Error Installing Azureus PapaSmurf88 Mandriva 4 05-12-2005 06:07 PM
Installing Azureus on my suselinux9.2 Moroshni Linux - Software 3 04-11-2005 06:40 PM
Installing Azureus/Bittorrent jc_firestorm Linux - Software 1 03-13-2005 10:02 AM

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

All times are GMT -5. The time now is 02:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration