WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Greek keyboard layout  (Read 32403 times)

Offline andfree

  • Full Member
  • ***
  • Posts: 127
Greek keyboard layout
« on: April 06, 2016, 05:31:28 AM »
Hi. I have installed Tiny Core and I want to add greek keyboard layout and set it so as to can change layout using Alt+Shift combo. I installed kmaps.tcz but judging from what I have read, it's difficult to do it on my own without any help. Then I saw this:

Quote
CorePlus is an installation image and not the distribution. It is recommended for new users who only have access to a wireless network or who use a non-US keyboard layout. It includes the base Core System and installation tools to provide for the setup with the following options: Choice of 7 Window Managers, Wireless support via many firmware files and ndiswrapper, non-US keyboard support, and a remastering tool.

I thought that CorePlus could be a solution for me. I created a liveUSB and booted from it, but I don't see any non-US keyboard support option. I only see a default option, options about Window Manager, extensions for Installation, Wifi, Firmware, a "command line only" option & a "waitusb=5" option. Nothing else. Any help?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Greek keyboard layout
« Reply #1 on: April 06, 2016, 07:48:58 AM »

Offline andfree

  • Full Member
  • ***
  • Posts: 127
Re: Greek keyboard layout
« Reply #2 on: April 06, 2016, 08:48:42 AM »
Ok. In the book I read this:

Quote
If you have kmaps.tcz installed, you can use this bootcode to set the default console keymap. The console keymap is also used by the tiny X servers (Xvesa and Xfbdev), but not the larger X server Xorg.

I have Xorg-7.7 installed. This means I can't change layout?

I exited to prompt and tried:

Code: [Select]
sudo loadkmap < /usr/share/kmap/qwerty/gr-pc.kmap
startx

But it still types latin.

I also tried gr.kmap instead of gr-pc.kmap. Same result.

I still have Tiny Core and not CorePlus installed.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Greek keyboard layout
« Reply #3 on: April 06, 2016, 09:20:40 AM »
Hi,
You need a config file. For example
/usr/local/share/X11/xorg.conf.d/10-keyboard.conf
Code: [Select]
Section "InputClass"
Identifier       "Keyboard Defaults"
MatchIsKeyboard  "yes"
        Option           "xkb_model" "pc105"
Option           "XkbLayout"   "gr,us"
Option           "XkbOptions"  "grp:alt_shift_toggle,terminate:ctrl_alt_bksp"
EndSection

Note, I haven't tested these setting.

https://wiki.archlinux.org/index.php/Keyboard_configuration_in_Xorg
Download a copy and keep it handy: Core book ;)

Offline andfree

  • Full Member
  • ***
  • Posts: 127
Re: Greek keyboard layout
« Reply #4 on: April 06, 2016, 10:53:40 AM »
Thank you. I created /usr/local/share/X11/xorg.conf.d/10-keyboard.conf with these settings, rebooted, but still Alt+Shift doesn't change layout to greek.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11658
Re: Greek keyboard layout
« Reply #5 on: April 06, 2016, 10:58:07 AM »
Hi andfree
Did you remember to add  usr/local/share/X11/xorg.conf.d/10-keyboard.conf  to your  filetool.lst  file and run a backup?
« Last Edit: April 06, 2016, 10:59:47 AM by Rich »

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Greek keyboard layout
« Reply #6 on: April 06, 2016, 11:03:50 AM »
To test Xorg settings, you only need to "Exit to Prompt", either via Exit menu or via CTRL+ALT+BACKSPACE key combo.
Then run
Code: [Select]
startx
Download a copy and keep it handy: Core book ;)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Greek keyboard layout
« Reply #7 on: April 06, 2016, 11:13:06 AM »
Works for me.
Σορκσ φορ με.
Download a copy and keep it handy: Core book ;)

Offline andfree

  • Full Member
  • ***
  • Posts: 127
Re: Greek keyboard layout
« Reply #8 on: April 06, 2016, 11:25:57 AM »
Hi andfree
Did you remember to add  usr/local/share/X11/xorg.conf.d/10-keyboard.conf  to your  filetool.lst  file and run a backup?

Hi and thanks for answer. No, I didn't know that. This is the reason that after reboot the config file was disappeared?
How should I edit the filetool.list? It has only three lines (the third is blank):

opt
home

To test Xorg settings, you only need to "Exit to Prompt", either via Exit menu or via CTRL+ALT+BACKSPACE key combo.
Then run
Code: [Select]
startx

It seems to have worked. After ALT+SHIFT it types squares instead of latins. Squares I see when I visit pages with greek characters, too. Does this mean I am missing fonts?

Works for me.
Σορκσ φορ με.

As I said, the second line seems squares to me.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Greek keyboard layout
« Reply #9 on: April 06, 2016, 11:38:30 AM »
Yes, the reason this file disappeared is because it wasn't backed-up. One of Core's key features is that it runs in RAM, so any added or edited files that should persist need to be explicitly specified.

To edit  .filetool.lst  you can either use the  filetool  GUI,
or
Code: [Select]
editor /opt/.filetool.lst
or
Code: [Select]
echo "usr/local/share/X11/xorg.conf.d/10-keyboard.conf" >> /opt/.filetool.lst
Note that entries in  /opt/.filetool.lst  don't use the leading slash ("/").

I can display Greek characters in Firefox.
You could try installing font extensions like  dejavu-fonts-ttf.tcz .
« Last Edit: April 06, 2016, 11:45:12 AM by Misalf »
Download a copy and keep it handy: Core book ;)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Greek keyboard layout
« Reply #10 on: April 06, 2016, 11:46:48 AM »
Oops - Sorry, I confused  /opt/.filetool.lst  with  onboot.lst .
Above post corrected.
Download a copy and keep it handy: Core book ;)

Offline andfree

  • Full Member
  • ***
  • Posts: 127
Re: Greek keyboard layout
« Reply #11 on: April 06, 2016, 12:25:22 PM »
Ευχαριστώ πολύ (meaning "thanks a lot"). All worked. I read and write greek both at firefox and opera. But not at editor (there types "?" instead of letters). It's a matter of incompatibility?

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 718
Re: Greek keyboard layout
« Reply #12 on: April 06, 2016, 12:41:27 PM »
I think you get like many of us, the lack of support for foreigne language in busybox.
And the default terminal(aterm) don't support it.
Install bash and another terminal (lxterminal) to get correct chars.
Look at this thread to see how i fixed it.
http://forum.tinycorelinux.net/index.php/topic,17945.msg108468.html#msg108468

Offline andfree

  • Full Member
  • ***
  • Posts: 127
Re: Greek keyboard layout
« Reply #13 on: April 06, 2016, 01:08:38 PM »
Thanks, I'll see it. For the moment, I wanted an editor supporting greek, and leafpad does.

P.S.: Maybe this thread should be moved somewhere else, because I didn't install CorePlus after all.

Offline andfree

  • Full Member
  • ***
  • Posts: 127
Re: Greek keyboard layout
« Reply #14 on: April 07, 2016, 07:02:55 AM »
Well, I installed bash and lxterminal, but still greek characters are displayed as "?" in lxterminal.

There are also some more problems relative to greeks:

- I can't use greek characters to name a file I create:

Code: [Select]
Invalid file name
Invalid filename α.txt

But I can do so when I create a directory. I also can do so when I rename a file.

- When I mount my external hard-drive, only files and directories with names in latin appear at rox-filer. Those with greek characters in their names don't.