Unable to use the regular keyboard


 
Thread Tools Search this Thread
Operating Systems Solaris Unable to use the regular keyboard
# 1  
Old 05-03-2012
Unable to use the regular keyboard

Hi,

I am new to solaris environment.While editing in vi editor i am unable to use regular key board keys.I think it is taking sun keyboard values as default.

I have installed solaris 10 through vmware workstation in windows machine.
I have also tried changing /etc/default/kbd file.but it is not working.

Could you please help me to change the keyboard ?
# 2  
Old 05-03-2012
when you will use vi,

you should use some special keys in keyboard.
for example

for insert you have to press "i" first.
when you need to change something you have press r
to delete line press d .... keep going like this....

check the below line for more help

vi Editor Commands
This User Gave Thanks to ijustneeda For This Post:
# 3  
Old 05-03-2012
vi was not designed for a regular keyboard. vi was designed for this, and retains the resulting weird key-combos to this day.
This User Gave Thanks to Corona688 For This Post:
# 4  
Old 05-04-2012
For Solaris 10 you must first use UTF-8 to display multibyte characters like this
Code:
$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES=en_US.UTF-8
LC_ALL=

If you didn't set UTF-8 than as root execute

Code:
sys-unconfig

Follow screen instructions and set locale as north american UTF-8, when PC reboots log in and then using following command load your keyboard layout

Code:
which setxkbmap
/usr/X11/bin/setxkbmap

To load keyboard layout

Code:
/usr/X11/bin/setxkbmap <xy>

This User Gave Thanks to solaris_user For This Post:
# 5  
Old 05-07-2012
Please tell us what sort of terminal you are using (in some detail), and the value of $TERM, $EDITOR and $VISUAL (not all may be set).
The keyboard mapping for vi is normally handled through map parameters in a custom .exrc file in your home directory. See man ex.
This User Gave Thanks to methyl For This Post:
# 6  
Old 05-07-2012
Try the following commands out, and let us know if vi editor becomes more user-friendly:

#TERM=vt100 ; export TERM
#EDITOR=vi ; export EDITOR
#clear

Cheers
Momin
This User Gave Thanks to momin For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Problem getting vertical bar with British keyboard layout on US (physical) keyboard

Hi, I've got a bit of a ridiculous problem and wasn't sure where to post it. I need to use the vertical bar for piping in Bash but, as per the title, am using a UK layout on a US (physical) keyboard which doesn't have a key for it in the place I'd expect. I've tried using xbindkeys and Unicode... (7 Replies)
Discussion started by: crunchgargoyle
7 Replies

2. Programming

Perl: How to read from a file, do regular expression and then replace the found regular expression

Hi all, How am I read a file, find the match regular expression and overwrite to the same files. open DESTINATION_FILE, "<tmptravl.dat" or die "tmptravl.dat"; open NEW_DESTINATION_FILE, ">new_tmptravl.dat" or die "new_tmptravl.dat"; while (<DESTINATION_FILE>) { # print... (1 Reply)
Discussion started by: jessy83
1 Replies

3. Solaris

Unable to change keyboard layout

Hi to everyone Once again I tried to modify my keyboard , because I am crazy keyborad can not be changed using kbd-s eeprom also I tried to modify /boot/solaris/bootenv.rc but I tried opensolaris and my keyboard works perfectly So my question is Can I transfer settings from... (14 Replies)
Discussion started by: solaris_user
14 Replies

4. Solaris

Unable to change keyboard layout

After Solaris 10 installation I was unable to change keyboard using known commands kbd -s and eeprom keyboard layoit. Also modifinig /boot/solaris/bootenv.rc did not helped. And is possible to replace Solaris keymap with ubuntu keymap because my keyboard work perfectly under Ubuntu and... (7 Replies)
Discussion started by: microbot
7 Replies

5. UNIX for Dummies Questions & Answers

Keyboard Mapping HP-UX

This is truly embarrassing but I have to know the answer anyway :p Can anyone share, how to assign keyboard mapping in hp-ux system? Every time I issue command which contain character "@", it'll go the next line. What I need is how to assign the character "@" to @ as it is supposed to be. ... (2 Replies)
Discussion started by: Olli.Lang
2 Replies

6. Programming

keyboard type

hi I am using a GUI language (based on C/C++) for my application. Now i need to identify the "Again" key in the Sun keyboard. I tried to do this by getting the ascii value (4155)of it . it was fine. but it is clashing with F12, whose ascii is 4155 in normal keyboards. Due to this either one of... (0 Replies)
Discussion started by: nimishm
0 Replies

7. UNIX for Advanced & Expert Users

How can I map Unix keyboard for PC keyboard

A Solaris AXI 440 machine with Solaris 8 version. I have PC users who use an emulation to login to the Solaris server. How can I change the keyboard mapping of the Sun keyboard to fit to the PC keyboard ? Any comment will be appreciated. Thanks (1 Reply)
Discussion started by: simhab
1 Replies
Login or Register to Ask a Question