Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 10-20-2002, 07:14 PM   #1
The Bag
LQ Newbie
Registered: Dec 2001
Distribution: Mandrake, Red Hat, Windows XP Pro
Posts: 14

Rep: Reputation: 0
Question 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).

Old 10-20-2002, 07:19 PM   #2
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

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


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

good luck
Old 10-20-2002, 07:20 PM   #3
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
1: Open up userdrake and click on the specified user. Click on edit and from there is should be fairly obvious.
Old 10-20-2002, 07:36 PM   #4
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
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


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
Simple Questions...Hopfully Simple Answers. caps_phisto Linux - General 3 12-21-2004 01:40 PM
Three Simple Questions Wapocalypse Linux - Newbie 4 01-04-2003 07:49 PM
simple questions safrout Linux - Hardware 4 12-08-2002 11:00 AM
Three simple questions ErikD Linux - Software 2 10-15-2001 10:03 AM
Two simple questions M.I. Linux - General 3 07-12-2001 11:27 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration