Keyboard problem

Hi to everyone I am new at Solaris world so I need little help.
I can not put my keyboard to Croatian layout.
I tried to edit /etc/default/init and in that file I changed LC_ALL=hr_HR. Also I tried to change my language settings over GUI (input methods and SCIIM) but with no results.
Also tried to change keyboard layout with following commands
setenv LC_ALL hr_HR
but when I restart my PC all changes are restored to default C:POSIX

So my question is : how to change keyboard layout and to apply new configuration that will work
in the future.

P.S I used google but with no success:mad:

The keyboard layout isn't related to the locale.

You can switch to a Croatian layout with these commands to be run in single user mode:

# kbd -s
...
Select Croatian which should be choice #5
...
# loadkeys

Alternatively, you can run the command

eeprom keyboard-layout=Croatian

and reboot.

Ok that worked fine, but I do not have special signs that usually I get in combination
alt Gr + others letters
(\|�@{}^����) I am writing it from Ubuntu where my keys works fine

-----Post Update-----

What return these commands for you on both Solaris and Ubuntu:

xmodmap
xmodmap -pk | grep "(at)"

?

You need to have /usr/openwin/bin in your PATH under Solaris.

What Solaris release are you using (cat /etc/release).

hi

for my ubuntu it retuns
for xmodmap

xmodmap:  up to 2 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x69)
mod1        Alt_L (0x40),  Meta_L (0xcd)
mod2        Num_Lock (0x4d)
mod3
mod4        Super_L (0xce),  Hyper_L (0xcf)
mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)

and for the second command

 55         0x0076 (v)      0x0056 (V)      0x0076 (v)      0x0056 (V)     0x0040 (at)      0x0060 (grave) 

Now I will boot into my Solaris and I will post what do I have under my PATH .

-----Post Update-----

Ok I am now in solaris

for cat /etc/release

Solaris Express Community Edition snv_113 X86
           Copyright 2009 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                             Assembled 20 April 2009

for xomdmap

xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x6d)
mod1        Alt_L (0x40),  Meta_L (0x9c)
mod2        Num_Lock (0x4d)
mod3        Mode_switch (0x5d)
mod4        Meta_L (0x73),  Meta_R (0x74),  Super_L (0x7f),  Hyper_L (0x80)
mod5        Mode_switch (0x5d),  ISO_Level3_Shift (0x7c)

and the last command

55        0x0076 (v)    0x0056 (V)    0x0076 (v)    0x0056 (V)    0x0040 (at)    0x0060 (grave)    0x0040 (at)    0x0060 (grave)

and for the path I have /usr/openwin/bin

Hmm, this looks odd for both Ubuntu and Solaris. I don't understand why you have the symbols repeated, unless the Croatian keyboard has more than two modifiers in use. Shift and AltGr are the one I'm familiar with.

Anyway, assuming you normally get "@" by typing AtlGr+v, you can try to see if this workaround works:

xmodmap -e "keycode 55 = v V at grave"

Thanks it worked just fine
and now how to resolve other keys , i need others signs which i have on my keyboard
alt gr + qwe bnm kl

PS. Crotian keyboard has support for UTF8 and for ISO 8859-2, but oly UTF8 works

Just do the same way I did for the v key, i.e. stripping extraneous symbols (8 set vs 4 expected).
Put all this in a script you'll run each time you start X11.

Not sure about what the problem is here. Keyboards do not matter character encoding, they just send keycodes.

Tried but only for @ command is working :mad:
xmodmap -e "keycode 55 = v V at grave"
xmodmap -e "keycode 24 = q Q q Q backslash Greek_OMEGA"
xmodmap -e "keycode 25 = w W w W bar Lstroke"
xmodmap -e "keycode 26 = e E e E EuroSign EuroSign"
xmodmap -e "keycode 41 = f F f F bracketleft ordfeminine"
xmodmap -e "keycode 42 = g G g G bracketright ENG"
xmodmap -e "keycode 45 = k K k K lstroke ampersand"
xmodmap -e "keycode 46 = l L l L lstroke Lstroke"
xmodmap -e "keycode 56 = b B b B braceleft apostrophe"
xmodmap -e "keycode 57 = n N n N braceright braceright"
xmodmap -e "keycode 58 = m M m M asciicircum masculine"

who is crazy I or Solaris.

ps can I replace Solaris keymap table with this one from Ubuntu ???

Sure, I tell you to remove 4 extra entries and you only remove two of them.
Try this instead:

xmodmap -e "keycode 55 = v V at grave"
xmodmap -e "keycode  24 = q Q backslash Greek_OMEGA"
xmodmap -e "keycode  25 = w W bar Lstroke"
xmodmap -e "keycode  26 = e E EuroSign EuroSign"
xmodmap -e "keycode  41 = f F bracketleft ordfeminine"
xmodmap -e "keycode  42 = g G bracketright ENG"
xmodmap -e "keycode  45 = k K lstroke ampersand"
xmodmap -e "keycode  46 = l L lstroke Lstroke"
xmodmap -e "keycode  56 = b B braceleft apostrophe"
xmodmap -e "keycode  57 = n N braceright braceright"
xmodmap -e "keycode  58 = m M asciicircum masculine"

None of the above ...

That wouldn't help and possibly break things further ...

It works
but do I have load that script every time, why i can not save that configuation as my default ???

You have a beer when you come in Pula :cool:

Run that as root:

mkdir /etc/dt/config
cp Xstartup /etc/dt/config
cat >> /etc/dt/config/Xstartup <<%EOF%
xmodmap -e "keycode  55 = v V at grave"
xmodmap -e "keycode  24 = q Q backslash Greek_OMEGA"
xmodmap -e "keycode  25 = w W bar Lstroke"
xmodmap -e "keycode  26 = e E EuroSign EuroSign"
xmodmap -e "keycode  41 = f F bracketleft ordfeminine"
xmodmap -e "keycode  42 = g G bracketright ENG"
xmodmap -e "keycode  45 = k K lstroke ampersand"
xmodmap -e "keycode  46 = l L lstroke Lstroke"
xmodmap -e "keycode  56 = b B braceleft apostrophe"
xmodmap -e "keycode  57 = n N braceright braceright"
xmodmap -e "keycode  58 = m M asciicircum masculine"
%EOF%

Then the commands will be automatically run at each session.

Looking forward to drink it :wink: