DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2nd July 2011
sepuku's Avatar
sepuku sepuku is offline
Real Name: Vizard Sepuku
Package Pilot
 
Join Date: Jun 2011
Location: Athens & Chania,Greece
Posts: 143
Default Keyboard Layout not included in encoding of wsksymdef.h

Hello people!I recently installed openbsd 4.9 and after given help from the FAQ and the forum i made my bsd work.

I would like to add the greek layout so i can type in greek!I checked the man of wsconsctl and the wsksymdef header which lives in /usr/include/dev/wscons/wsksymdef.h

and there is no encoding for the greek language!

I also want to know how to set the keyboard shortcut for switching between languages greek and english to be "alt+shift"

Thank you in advance.
Reply With Quote
  #2   (View Single Post)  
Old 2nd July 2011
Daffy Daffy is offline
Fdisk Soldier
 
Join Date: Jun 2010
Posts: 73
Default

I was in the same position as you.

First of all, in console you are not able to use Greek language. To use Greek on X, you'll have to do the following:

- edit xorg.conf and in input method-keyboard, add
Code:
Option "XkbLayout" "us, gr"
Option "XkbOptions" "grp:ctrl_shift_toggle"
(I'm using ctrl+shift because alt+shift are used to change desktops. If you need, then change the keys accordingly)

After the first step, do
Code:
cd /etc/X11/xkb/symbols/pc/
sudo ln -s gr el
(that's for a bug in character binds)

and for the final step to be able to use utf-8 in xterm, add to .Xdefaults

Code:
xterm*locale: utf8
Now in xterm, you can use utf8 but without the accents on vowels ("έ, ύ, ί, ό, ά, ή, ώ". You'll be able to type "ε, υ, ι, ο, α, ω" though). In all other programs, you'll be able to type as you wish.
Reply With Quote
  #3   (View Single Post)  
Old 3rd July 2011
sepuku's Avatar
sepuku sepuku is offline
Real Name: Vizard Sepuku
Package Pilot
 
Join Date: Jun 2011
Location: Athens & Chania,Greece
Posts: 143
Default

Thank you very much for your answer Daffy!I'm going to try it after i get rid of some problems that have to do with my default DE and i'll let you know if it worked!
Reply With Quote
  #4   (View Single Post)  
Old 4th July 2011
sepuku's Avatar
sepuku sepuku is offline
Real Name: Vizard Sepuku
Package Pilot
 
Join Date: Jun 2011
Location: Athens & Chania,Greece
Posts: 143
Default

Hello again Daffy!Here's the deal:

I had no xorg.conf so i created one
Code:
sudo vi /etc/X11/xorg.conf
and i added the code you gave me but for alt+shift.I made it all like u said except for the last part 'cause i don't know where to find .Xdefaults.

Code:
locate .Xdefaults
returns
Code:
locate .Xdefaults
database too small: /var/db/locate.database
and i can't continue! :/

edit:without the last part with Xdefaults,if i startx i get a blank black screen and am stuck in it.So for the time being i deleted my xorg .conf.

Last edited by sepuku; 22nd September 2011 at 12:50 AM.
Reply With Quote
  #5   (View Single Post)  
Old 4th July 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

The dot prefix indicates a hidden file on Unix systems, generally those are put in your home directory.
Reply With Quote
  #6   (View Single Post)  
Old 4th July 2011
sepuku's Avatar
sepuku sepuku is offline
Real Name: Vizard Sepuku
Package Pilot
 
Join Date: Jun 2011
Location: Athens & Chania,Greece
Posts: 143
Default

Thank you BSDfan666 but after editing .Xdefaults , still when i startx i get stuck in blank black screen.

I don't know if it helps,but i use OpenBox!
Reply With Quote
  #7   (View Single Post)  
Old 4th July 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Did you just create xorg.conf with the lines that Daffy gave? that's obviously not going to work.

You'll need to generate a proper configuration file, run X -configure as root and copy xorg.conf.new over to /etc/X11/xorg.conf.

Once that has been done, you can try his advice by adding the lines to the relevant Input section.
Reply With Quote
  #8   (View Single Post)  
Old 4th July 2011
sepuku's Avatar
sepuku sepuku is offline
Real Name: Vizard Sepuku
Package Pilot
 
Join Date: Jun 2011
Location: Athens & Chania,Greece
Posts: 143
Default

Well lol that's what i did! :$ Thank you both now it works!I have both languages!
Reply With Quote
  #9   (View Single Post)  
Old 4th July 2011
Daffy Daffy is offline
Fdisk Soldier
 
Join Date: Jun 2010
Posts: 73
Default

What BSDfan666 said. Read here for more info.

I was exactly in your position, so I can give you the advice that everyone here gives: read the faq. And if it's not on faq, it's in the man pages. Don't get me wrong, I'm still a noob in many things around OpenBSD, but that's the best advice anyone can give you.

Learn to use man and apropos, and you're set. You don't even need to search online. OpenBSD has the best man pages. Everything is there.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hardware Dell criples its latest business laptops with 'casual' keyboard layout vermaden News 12 27th April 2011 06:22 AM
NetBSD 5 keyboard layout in gnome jaideep_jdof NetBSD Package System (pkgsrc) 1 17th September 2009 03:50 PM
Can not change keyboard layout with SHIFT and Alt after VNCviewer connect mfaridi OpenBSD General 1 13th December 2008 03:14 PM
Is bash included in OpenBSD? bsdnewbie999 OpenBSD General 21 2nd August 2008 02:57 AM
Keyboard Layout mfaridi FreeBSD General 6 26th June 2008 07:13 PM


All times are GMT. The time now is 08:32 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick