LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   2 Simple Questions (https://www.linuxquestions.org/questions/linux-newbie-8/2-simple-questions-33308/)

The Bag 10-20-2002 06:14 PM

2 Simple Questions
 
I've just installed Mandrake 9 (moving up from RH 7.1) and I have two really simple questions that to things that I cannot remember how to do - so I thought I'd put them in this folder.

1. How do I change my default shell from Bash to tcsh
2. I've installed Java and tried to set the classpath but it is constantly telling me that Java does not exist on the machine - how do I set the classpath up properly for a bash shell (I don't suppose this one matters much as I'm changing it to tcsh).

thx

adam_boz 10-20-2002 06:19 PM

for your first question, I think that if you change the line in /etc/passwd dealing with the user to say something like :

user:x:25:25:/home/user:/bin/tcsh

it should set the login shell to tcsh (just change /bin/bash to /bin/tcsh)

good luck

Thymox 10-20-2002 06:20 PM

1: Open up userdrake and click on the specified user. Click on edit and from there is should be fairly obvious.

adam_boz 10-20-2002 06:36 PM

I don't know about "class path" but I just looked up the docs for when I installed java, and I used "JAVA_HOME"

where is java unpacked to? i'll call it /usr/java for this demo

export JAVA_HOME=/usr/java
export PATH=$PATH:$JAVA_HOME/bin

try typing that in while at the bash prompt and see if it works. If yes, you can put something similar in you /etc/bashrc or something.

good luck


All times are GMT -5. The time now is 02:47 PM.