LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Installing Azureus (https://www.linuxquestions.org/questions/mandriva-30/installing-azureus-319951/)

reddazz 05-05-2005 08:49 AM

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.

duffmckagan 05-05-2005 09:39 AM

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.

reddazz 05-05-2005 10:13 AM

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.

duffmckagan 05-05-2005 11:06 AM

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?:confused:

reddazz 05-05-2005 11:35 AM

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.

duffmckagan 05-05-2005 11:45 AM

I will try rebooting to Mandrake again tomorrow.

It is late night here right now.

Hold on. :)

duffmckagan 05-06-2005 09:01 AM

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?

reddazz 05-06-2005 11:27 AM

rm can remove files "rm /etc/profile.d/java.sh" as root should do the trick.

duffmckagan 05-06-2005 12:27 PM

Great.

That was really the show stopper.

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

Now again! :cry: :cry:

duffmckagan 05-06-2005 03:09 PM

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!

reddazz 05-07-2005 02:21 AM

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.

prj 05-07-2005 03:24 AM

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 10:34 AM.