LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 03-07-2003, 07:44 PM   #1
demicheru
LQ Newbie
 
Registered: Feb 2003
Location: LA area
Distribution: RH8
Posts: 5

Rep: Reputation: 0
Solaris environmental settings


Hi, i regularly ftp/telnet into a solaris machine and it defaults to ksh. i really prefer bash, and i was wondering what file i would need to edit to change my default settings...something like a .bashrc...ive looked and dont see anything like .profile except for .dtprofile. its not my machine so i didnt want to change anything without knowing what it was.
any help on this would be appreciated.

-philip
 
Old 03-08-2003, 12:30 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
You'd edit the /etc/passwd file in which the root account would have to edit or change for you. But you might want to ask first if bash is even installed as well.
 
Old 03-08-2003, 02:12 AM   #3
demicheru
LQ Newbie
 
Registered: Feb 2003
Location: LA area
Distribution: RH8
Posts: 5

Original Poster
Rep: Reputation: 0
ah...well, i know bash is there, i can switch when i log in...tho i am on good terms with the teacher who runs the machine, i dont think i will bug him about that switching it for me. ill just keep doing it on my own. its not a problem, i just thought if i could set it, itd save me some hassle because i log in several times a day...oh well...thanks for the help.

-philip
 
Old 03-09-2003, 08:12 PM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
You could always put something like the following in your .profile:
exec bash -o vi
 
Old 03-11-2003, 04:04 PM   #5
demicheru
LQ Newbie
 
Registered: Feb 2003
Location: LA area
Distribution: RH8
Posts: 5

Original Poster
Rep: Reputation: 0
uh yeah, im pretty new to the linux/unix world, so i forgot that .profile is something you can create, not something thats always there by default.
i stuck the

exec bash -o vi

in my .profile, logged in, and it brings me up in bash. works perfectly. that will save me some hassle, cuz i usually forget, and the character mapping is different between the comps, but its works better in bash...i get ^H and ^A and stuff like that with ksh but everything else works now.
thanks a lot.
-philip
 
  


Reply



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
Environmental Variables danglingpointer Slackware 13 01-06-2005 12:36 AM
environmental variables msound Programming 0 08-21-2004 07:06 PM
environmental variables? blackzone Linux - General 1 08-06-2004 03:44 AM
environmental variables mbhenry Linux - General 6 09-18-2003 11:41 AM
global environmental variables antadam Linux - General 2 10-11-2001 06:36 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 12:15 PM.

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
Open Source Consulting | Domain Registration