WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Greek in console (terminal)  (Read 4507 times)

Offline geky

  • Newbie
  • *
  • Posts: 3
Greek in console (terminal)
« on: December 30, 2011, 08:35:24 AM »
I searched all possible fora but got no working solution to this, or the answers were unprecise or outdated. To be more specific, I would like to be able to type greek characters in the tinycore terminal (console) and in the gui applications (i.e firefox, gedit etc) as well. So, can anybody help me to setup this and also show me how to use it (i.e which key combination to use when I want to switch Languages) ?

Thank you

Offline geky

  • Newbie
  • *
  • Posts: 3
Re: Greek in console (terminal)
« Reply #1 on: January 03, 2012, 12:18:48 PM »
I am in the process to enable tinycore to allow greek in the console...
After installing an running getlocale I am getting following messages :

Now processing... |
Locales installed. Creating extension... cat: read error: Is a directory
/usr/local/bin/getlocale.sh: line 69: can't create /optional/mylocale.tcz.dep: nonexistent directory
/usr/local/bin/getlocale.sh: line 70: can't create /optional/mylocale.tcz.md5.txt: nonexistent directory

Done. The extension is at /optional/mylocale.tcz and in onboot.lst
Reboot with lang=xyz (for example lang=el_GR) to start using this.

... and searching for el_GR*.* does not return results

any comment ? am I missing something obvious ?

Thanks

Offline geky

  • Newbie
  • *
  • Posts: 3
Re: Greek in console (terminal)
« Reply #2 on: January 04, 2012, 01:27:08 PM »
I made some stepts forward trying to config tinycore (4.2) for greek users and would like to post my progress here in case someone else is interested :

My first step was to use tc-install (on the desktop) to put tiny core on a usb. In this process I defined the lang=el_GR kmap=gr arguments (among others). These settings let me excpect that
I would have greek characters at least on the console.  I based my assumption on the fact that giving the 'locale' command after login, most of the environment variables reflected my startup definitions.

Unfortunately this was not the case, so I searched the forum to find some help.  There are some articles describing similar efforts, so I tried loadkmap < /usr/share/kmap/qwerty/gr.kmap.  My testing on the console (alt+ctrl+Backspace to get in, and alt+shift to switch the keyboard) showed that something is happening because I got different characters on the console, but my input was unreadable - probably the proper fonts are missing.  I put command 'loadkmap' in opt/.bootlocal.sh
and tested my progress from a remote terminal using putty.  My test showed that the unreadable characters were indeed greek, so 'loadkmap' did the job, but only when working with putty, which obviously has embeded the needed fonts.

Continuing to search the forum I came accros articles describing solutions of my problem for russian users, but could not help me to a final solution until now, mainly because I could not find
.psf fonts for the greek Language and because of limited skills around tiny core (find the proper tc extensions, learn how to  use them etc)

I will continue my attempt on my own, but I understand that any tip, suggestion, or help from experienced tinycore users would be of great value for me.

Thank you very much

Offline kostandis loukos

  • Newbie
  • *
  • Posts: 6
Re: Greek in console (terminal)
« Reply #3 on: May 05, 2020, 10:40:49 AM »
Hello I am in the same position tou have left, more or less, glad to hear any advancements.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14803
Re: Greek in console (terminal)
« Reply #4 on: May 05, 2020, 10:57:55 AM »
What happens when you load the getlocale extension and run the “sudo getlocale.sh” command in a terminal window?

Offline kostandis loukos

  • Newbie
  • *
  • Posts: 6
Re: Greek in console (terminal)
« Reply #5 on: May 07, 2020, 07:54:37 AM »
Hello. Answer - a new window "Choose wich lcales to support etc. [ ] etc. [ ] etc.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14803
Re: Greek in console (terminal)
« Reply #6 on: May 07, 2020, 08:05:51 AM »
If you choose a suitable greek locale, for example gr_GR.UTF-8, the getlocale script will produce a new extension named mylocale and set it to load "onboot".

You will also need to add the boot code lang=gr_GR.UTF-8.

Offline kostandis loukos

  • Newbie
  • *
  • Posts: 6
Re: Greek in console (terminal)
« Reply #7 on: May 07, 2020, 09:05:28 AM »
Thank you, but where - in order to have it permanently (question).

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11595
Re: Greek in console (terminal)
« Reply #8 on: May 07, 2020, 10:08:08 AM »
Hi kostandis loukos
First you need to find where your boot loader is set up:
Code: [Select]
tc@E310:~$ find /mnt -ipath */extlinux
/mnt/sda1/tce/boot/extlinux
tc@E310:~$

Check the directory the  find  command returned for a file called  extlinux.conf.
Open the file and find the line that has the word  quiet
Add  lang=gr_GR.UTF-8  to the end of that line.
Save the file.

Offline kostandis loukos

  • Newbie
  • *
  • Posts: 6
Re: Greek in console (terminal)
« Reply #9 on: May 07, 2020, 01:07:33 PM »
Did it. Tiny Core declared starting that the language was set as that, instead of saying it was set to US. As you may see, it types English...

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14803
Re: Greek in console (terminal)
« Reply #10 on: May 08, 2020, 01:16:15 AM »
Please search the forum on "keyboard" and "language".