LinuxQuestions.org
Review your favorite Linux distribution.
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 10-02-2006, 01:04 PM   #1
flamingvan
LQ Newbie
 
Registered: Oct 2006
Posts: 22

Rep: Reputation: 15
Arrow keys not working


I am using Solaris for the first time. I am used to Fedora. Nothing seems to be configured normally and it is very disorienting. Please help!

I am on: SunOS 5.8 Generic_108528-18 sun4u sparc SUNW,UltraAX-i2

First problem: Arrow keys do not work. I cannot see my command line history. When I push an arrow key I get a symbol that looks like this: ^[[A. When I try to work in VI it is all kinds of screwed up. What should I do?

Second: I cannot retart apache. The file apachectl will not work. I am told that currently the apache server can only be started and stopped manually. Why would apache have been installed this way? Is there an easy way to correct the problem?

Many thanks in advance for any help!
 
Old 10-02-2006, 01:37 PM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
*me interested*
 
Old 10-02-2006, 02:19 PM   #3
mackdav
Member
 
Registered: Feb 2005
Distribution: RHEL, CentOS
Posts: 113

Rep: Reputation: 16
Arrow keys: you are probably not running bash (the default is sh). Try 'exec bash' at a prompt to get into bash and try it out. If you like it, edit /etc/passwd so that bash is your shell. Note that by default bash won't have any startup files so you will have to configure the dot files yourself.

Note that this will not help you in vi. Usually the arrow keys work for me when I am in command mode in vi, but not when I am in edit mode. I don't know why, but I've been "working around" this problem for ten years now. (/me idiot).

Apache: try using the /etc/init.d/apache file to control the web server.

Last edited by mackdav; 10-02-2006 at 02:21 PM.
 
Old 10-02-2006, 03:18 PM   #4
flamingvan
LQ Newbie
 
Registered: Oct 2006
Posts: 22

Original Poster
Rep: Reputation: 15
You are so right. Bash is so much sweeter.

I'm not really clear on how I should edit etc/passwd to make bash default. Could you be a little more specific?

THANKS THANKS THANKS!!!
 
Old 10-02-2006, 03:42 PM   #5
mackdav
Member
 
Registered: Feb 2005
Distribution: RHEL, CentOS
Posts: 113

Rep: Reputation: 16
vi /etc/passwd

Find the row for the user account you are using. Change the last field (it will be /bin/sh, or /sbin/sh for root) to /bin/bash

That changes the shell for that user.

It is a good idea to test the user account in another window to make sure you got it right before closing the current one, because if you mess up the root shell it will be tricky to fix.
 
Old 10-03-2006, 06:47 AM   #6
flamingvan
LQ Newbie
 
Registered: Oct 2006
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks again!

Thanks again!
 
  


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
Shift-arrow and Alt-arrow keys don't work in xterm Aviv Hurvitz Linux - General 2 09-30-2006 04:43 PM
Cant get the arrow keys to work properly :( fraggelfraggel *BSD 6 02-02-2006 01:49 AM
Numeric keypad arrow keys arielgr Linux - Newbie 2 08-23-2005 11:04 AM
VIM and the arrow keys Buto Linux - Software 1 09-16-2004 08:38 PM
Arrow keys in nethack Levitate Linux - Games 3 08-22-2004 12:44 PM

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

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