WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Fbterm with uim (in other words, no X but multi language console)  (Read 5893 times)

Offline cannedD

  • Newbie
  • *
  • Posts: 7
Hi

This is what I did to use Fbterm with uim on dCore.
Both applications are famous and well documented. Maybe I am going to end up saying something obvious...

Importing and loading:
    sce-import fbterm
    sce-load fbterm
    sce-import uim-fep
    sce-load uim-fep
and do the same for an input method module you have chosen.(in my case, uim-skk)
 
Fbterm setup:
When Fbterm cannot find framebuffer device, it falls back to vesa which needs root privileges. It means you have to grant root privileges to Fbterm, which can be done by copying it from /tmp/tcloop/... to /home/tc/.local/bin and changing its mode bits (chmod +s).
Note: do 'which fbterm' and make sure the copy is the one executed.     

Uim setup:
In its startup process, uim needs to write two files in a directory named /var/lib/uim, which does not exist at the point of 'sce-load'ing. So in place of uim, you make the directory with its write permission given, then run these commands:
    uim-module-manager --unregister-all
    uim-module-manager --register <your imput method module name>
(in my case,
   uim-module-manager --register skk
 Check that everyting is okay by typing commands: cat /var/lib/uim/in* and cat /var/lib/uim/lo*)

Start fbterm and uim-fep.

bye

==============================================================================================

About uim-skk:
This module gave me its own set of difficulties. I had to read its postinst file and mimick what it does manually.
(Postinst files are in /usr/local/postinst/. Skk's postinst file makes a symlink, so I did the same.
    ln -s /usr/share/skk/SKK-JISYO.L /usr/share/skk/SKK-JISYO)

 
 
 
 

« Last Edit: July 09, 2016, 05:46:12 PM by cannedD »

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Fbterm with uim (in other words, no X but multi language console)
« Reply #1 on: July 10, 2016, 05:29:12 PM »
Thanks, I have added the information you have posted into the startup scripts of fbterm, uim-fep, and uim-skk.  Please re-import them and test and let me know if it works out of the box.

Oh, and in /etc/sysconfig/sceconfig you can specify which uim module you want, in your case enter the below in sceconfig:

UIMMODULE=skk

If that variable is not set in sceconfig, then the below are not run as part of the startup script of uim-fep:

uim-module-manager --unregister-all
uim-module-manager --register (chosen module name in sceconfig)

« Last Edit: July 10, 2016, 11:00:48 PM by Jason W »

Offline cannedD

  • Newbie
  • *
  • Posts: 7
Re: Fbterm with uim (in other words, no X but multi language console)
« Reply #2 on: July 11, 2016, 06:33:25 PM »
Hi, Jason W. I am sorry to be replying late.
The result is that all the packages have worked fine out of box, great!!
Thank you. I appreciate your helpful fix.

I tested like this:

Copied Easytether binaries and libraries,a ttf font and mylocales.sce(my custom sce)  into a directory ubCore and vmlinuz and initrd into its subdirectory boot on a thumbdrive with syslinux installed and modified syslinux.cfg as below.
    label ubCore
    kernel /ubCore/boot/vmlinuz-trusty
    initrd /ubCore/boot/dCore-trusty.gz
    append root=UUID=4AD2-286B waitusb=5 multivt nozswap tce=UUID=4AD2-286B/ubCore

Booting.

Moved the font to /usr/share/fonts/ and the mylocales.sce and its md5.txt to /mnt/sdb1/ubCore/sce/, then added a line UIMMODULE=skk to /etc/sysconfig/sceconfig with vi.

Started Easytether and 'sce-imported' fbterm,uim-fep and uim-skk, then 'sce-loaded' them and mylocales.

Typed commands as below:
fbterm
export LANG=ja_JP.UTF-8
uim-fep -u skk

Fine, I had a console which accepts Japanese.

Bye
 
 
 
     

 

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Fbterm with uim (in other words, no X but multi language console)
« Reply #3 on: July 12, 2016, 07:44:59 PM »
I added a README for uim-fep, please review and send in any desired changes or improvements.

Offline cannedD

  • Newbie
  • *
  • Posts: 7
Re: Fbterm with uim (in other words, no X but multi language console)
« Reply #4 on: July 13, 2016, 07:24:07 AM »
Hi Jason, would you tell me where README is?
I removed and reimported uim-fep with k option and then did what follows.
find /tmp/tcloop/uim-fep/ -iname *read*
gzip -cd <each file the above command gave (except obviously wrong ones)> | less
I don't think your README was among what I read....

By the way, I learned a lot reading your postinst files. Thank you very much.
bye
cannedD

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Fbterm with uim (in other words, no X but multi language console)
« Reply #5 on: July 13, 2016, 10:52:27 AM »
The READMEs are located below, but also available by the readme.sh command:

http://tinycorelinux.net/dCore/x86/README/

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: Fbterm with uim (in other words, no X but multi language console)
« Reply #6 on: July 13, 2016, 04:51:48 PM »
Thanks, I have added the information you have posted into the startup scripts of fbterm, uim-fep, and uim-skk.  Please re-import them and test and let me know if it works out of the box.

Oh, and in /etc/sysconfig/sceconfig you can specify which uim module you want, in your case enter the below in sceconfig:

UIMMODULE=skk

If that variable is not set in sceconfig, then the below are not run as part of the startup script of uim-fep:

uim-module-manager --unregister-all
uim-module-manager --register (chosen module name in sceconfig)

Just working through READMEs. Was a new category added for UIMMODULEs in sceconfig? If not can it be updated with something like below for those who don't see this thread or discover the READMEs? I am not familiar at all with uim-fep or languages, please modify or elaborate if not accurate, thanks.

# Use UIMMODULE=<plugin> to enable Universal Input Method plugins for uim-fep.
# The following example enables the SKK plugin:
# UIMMODULE=skk


Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Fbterm with uim (in other words, no X but multi language console)
« Reply #7 on: July 13, 2016, 07:33:41 PM »
The READMEs should be used to find out how to use packages, but added the below to sceconfig:

# Use UIMMODULE=<plugin> to enable Universal Input Method plugins for uim-fep.
# The following example enables the SKK plugin:
# UIMMODULE=skk




Offline cannedD

  • Newbie
  • *
  • Posts: 7
Re: Fbterm with uim (in other words, no X but multi language console)
« Reply #8 on: July 14, 2016, 07:40:20 AM »
Hi Jason.
I read the README, which I think provides suffcient information. Considering that uim-XXXs can be made by anybody and how they interact with Tiny Core system is, I think, unpredictable, it is unnessesary or even impossible to give an instruction in more general way than giving a working example.
bye
cannedD