LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-27-2017, 12:45 AM   #1
kujirasan
Member
 
Registered: Mar 2007
Posts: 168

Rep: Reputation: 19
Help with Japanese language input using ibus, ibut-anthy


Trying to install ibus on Slackware 14.2, with out much success, there three packages that are need, pyxdg, ibus-anthy, and ibus-qt, but they are not available on SlackBuilds, page 404 shows up if a download is done!
However they are available from other sites!
IBUS was originally commissioned by Red Hat Linux, and it works well on Red Had and its derivatives! Installing it on Slackware, the first message that comes up is:


IBus has been started! If you can not use IBus, please add below lines in $HOME/.bashrc, and relogin your desktop.
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus

creating .basherc or .bash_profile and doing that still get that message, and error message, adding this line export LC_CTYPE=en_US.UTF-8
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
export LC_CTYPE=en_US.UTF-8

eliminates the error message, but still ask to create .bashrc and insert the lines etc.
The main problem is that Slackware unlike Red Hat, does not have .bashrc etc, it is not build in its system. here is a case where this problem has been avoid and circumvented , but still does not yield a satisfactory result:

#############################################################3
# mkdir /etc/X11/xinit/xinput.d
# vim /etc/X11/xinit/xinput.d/ibus.conf
---------------------------------------------
#!/bin/sh
export XMODIFIERS="@im=ibus"
export GTK_IM_MODULE="ibus"
export QT_IM_MODULE="xim"

# allow capslock remap
xmodmap -e 'clear Lock' -e 'keycode 66 = F13'

XIM=ibus
XIM_PROGRAM=/bin/true
XIM_ARGS=
SHORT_DESC="ibus"
LONG_DESC="ibus"
#######################################################

looking at few Japanese sites , this what they have done:

export GTK_IM_ MODULE = "ibus"
export QT_IM_MODULE = "ibus"
export XMODIFIERS = "@ im = ibus"
export XIM_PROGRAM = "/ usr / bin / ibus - daemon - xdrt"
and:
export XMODIFIERS="@im=ibus"
export QT_IM_MODULE="ibus"
export GTK_IM_MODULE="ibus"
export XIM_PROGRAM="/usr/bin/ibus-daemon -rxd"

these are placed in .bashrc, and same result as usual comes up!
I managed to install it but after first use, it crashes, hovering mouse on the icon, which is a keyboard icon , shows main.py and clicking on it give a message: no input window, can any one help, especailly a Japanese speaker?


http://blog.ataboydesign.com/2013/01...figuring-ibus/
http://note.kurodigi.com/slackware141-ibus/
https://www51.atwiki.jp/slackware/pages/17.html (section 3.2, ibus)

Thanking you in advance!
 
Old 04-27-2017, 03:42 AM   #2
Qury
Member
 
Registered: Feb 2004
Location: Naas,IE
Distribution: Slackware
Posts: 212

Rep: Reputation: 184Reputation: 184
Hi,

You can search and find the packages on other sites (like http://pkgs.fedoraproject.org).
Download them and put them into /var/cache/sbopkg and use sbopkg to build them.

ibus-1.3.9.tar.gz
ibus-anthy-1.2.7.tar.gz
ibus-qt-1.3.1-Source.tar.gz
 
Old 04-27-2017, 05:07 AM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
@Qury: I don't think that's easy and it is not recommended to install from other distributions sources, generally speaking.
@kujirasan. I have pointed a Japanese Slackware user to this thread, hopefully he will be able to help you.

PS Additionally you can try to get help from the Plamo (Japanese Slackware derivative) project. They seem to use ibus but I am unable to understand the message in the attached pic, sorry.

PPS The person I wrote to is not registered on linuxquestions but he suggests that you use SCIM instead.

See what he wrote here about Slackware:
https://slackwareja.jimdo.com/
And for your information, about Slint, the Slackware and Salix derivative I develop, including how to set SCIM in it:
https://installlinux.jimdo.com/linux...3%83%A2/slint/
And about Salix Live:
https://salixjp.jimdo.com/
Expect a Slint Live within a month or so. I will try to configure SCIM in it.
Attached Thumbnails
Click image for larger version

Name:	VirtualBox_Plamo.png
Views:	45
Size:	51.6 KB
ID:	24855  

Last edited by Didier Spaier; 04-27-2017 at 05:42 AM.
 
Old 04-27-2017, 07:50 AM   #4
Qury
Member
 
Registered: Feb 2004
Location: Naas,IE
Distribution: Slackware
Posts: 212

Rep: Reputation: 184Reputation: 184
Quote:
Originally Posted by Didier Spaier View Post
@Qury: I don't think that's easy and it is not recommended to install from other distributions sources, generally speaking.
Hi Didier
in this case we are taking the source files only and sbopkg will use them if the mdsum is matching.
 
Old 04-27-2017, 08:16 AM   #5
ppr:kut
Slackware Contributor
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 631

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
I spent some time working on an updated input method stack for -current. You can take a look at it here (sorry, SlackBuilds only): http://www.slackware.com/~pprkut/SlackBuilds/IME/

Like I said, this is geared for -current, but it should work on 14.2 as well, maybe with some minor adjustments. Some dependencies are listed in the "NOTES" file, but if something
is still unclear you can ask me and I'll try to clarify.
There are both ibus and fcitx in there, you can install and evaluate both (they co-exist just fine), but from personal experience, I prefer fcitx over ibus (I use it for Japanese input too).
As input method, anthy is in there too, however, I'd suggest you try kkc, which is newer.

Setup with those packages should be a bit simpler than with the versions on SlackBuilds.org. ibus and fcitx start automatically on login (for xdg compliant desktops like xfce or kde).
You only have to configure which one you want by placing these lines in .bashrc:

Quote:
export XMODIFIERS="@im=fcitx"
export XIM=fcitx
export XIM_PROGRAM=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
Above shows the config for fcitx. If you want to use ibus, just replace 'fcitx' with 'ibus'. If you don't have a .bashrc, you can just create a new one. No further config should be necessary (particularly, no extra config files in xinput.d or some such. Probably good though if you remove those again).
 
1 members found this post helpful.
Old 04-27-2017, 10:16 AM   #6
kujirasan
Member
 
Registered: Mar 2007
Posts: 168

Original Poster
Rep: Reputation: 19
Thanks for the replies, very much appreciated, unfortunately not much luck! Here are the error messages , after

adding to .bashrc

the following lines:
export XMODIFIERS="@im=ibus"
export XIM=ibus
export XIM_PROGRAM=ibus
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus


ibus-setup

(main.py:1645): IBUS-WARNING **: Connect to unix:abstract=/tmp/dbus-2wzFw4W8ep,guid=781019644f07cf1ac0fa6bde590163ea failed: Failed to connect to socket /tmp/dbus-2wzFw4W8ep: Connecti



# ibus-setup

(main.py:1648): IBUS-WARNING **: Connect to unix:abstract=/tmp/dbus-2wzFw4W8ep,guid=781019644f07cf1ac0fa6bde590163ea failed: Failed to connect to socket /tmp/dbus-2wzFw4W8ep: Connection refused.
/usr/libexec/ibus-engine-m17n: error while loading shared libraries: libibus-1.0.so.5: cannot open shared object file: No such file or directory
 
Old 04-27-2017, 10:32 AM   #7
ppr:kut
Slackware Contributor
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 631

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
Sorry, I don't know which steps you exactly took to get here. Did you create packages from the SlackBuilds I linked? Or do you still have the packages created from the SlackBuilds on SBo installed?

The error indicates that you have ibus-m17n installed that is still linked to an older version of ibus, so you'd need to recompile or remove that one.
 
Old 04-27-2017, 11:40 PM   #8
kujirasan
Member
 
Registered: Mar 2007
Posts: 168

Original Poster
Rep: Reputation: 19
I have clean install of 14.2 , on Virtualbox, made a clone, of 14.2, the only thing is on it is pyxdg, and python 2.7 which is default, would you recommend installing python3.6.1, or is not necessary?
the following packages I have downloaded:


ibus-1.5.15.tar.xz
ibus.SlackBuild.txt

ibus-kkc-1.5.22.tar.xz
ibus-kkc.SlackBuild.txt


ibus-qt-1.3.3-Source.tar.xz
ibus-qt.SlackBuild.txt

How would you install these? converting the txt to run?
 
Old 04-28-2017, 02:17 AM   #9
ppr:kut
Slackware Contributor
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 631

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
Not sure why they'd end up with .txt extensions, but I don't think the extension matters much. Just make them executable and run them. Python 2.7 is fine, no need for Python 3.
However, do make sure you have *all* files in the respective folders and also make sure to have downloaded the dependencies for the packages you listed above, otherwise the builds will fail.
 
Old 04-28-2017, 07:51 AM   #10
Qury
Member
 
Registered: Feb 2004
Location: Naas,IE
Distribution: Slackware
Posts: 212

Rep: Reputation: 184Reputation: 184
Quote:
Originally Posted by kujirasan View Post
I have clean install of 14.2 , on Virtualbox, made a clone, of 14.2, the only thing is on it is pyxdg, and python 2.7 which is default, would you recommend installing python3.6.1, or is not necessary?
the following packages I have downloaded:


ibus-1.5.15.tar.xz
ibus.SlackBuild.txt

ibus-kkc-1.5.22.tar.xz
ibus-kkc.SlackBuild.txt


ibus-qt-1.3.3-Source.tar.xz
ibus-qt.SlackBuild.txt

How would you install these? converting the txt to run?
Hi,
I would do the following:
  1. Download sbopkg
  2. sync the slackbuilds
  3. build the build queues using sqg -a
  4. if the source files are not available from the sbopkg.org defined location, then track them down from somewhere else, check the mdsum to ensure they are not some other packages otherwise the build will fail.
  5. drop the source files into /var/sbopkg/cache
  6. assuming the queue files are generated, i would use sbopkg -i packagename to build whatever you need, and accept build queue whenever sbopkg prompts you for it
  7. Then follow the slackware specific instructions for the packages to configure them if they require any additional configuration. (/etc/profiles.d/, etc..)
 
Old 04-28-2017, 08:03 AM   #11
ppr:kut
Slackware Contributor
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 631

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
Quote:
Originally Posted by Qury View Post
Hi,
I would do the following:
  1. Download sbopkg
  2. sync the slackbuilds
  3. build the build queues using sqg -a
  4. if the source files are not available from the sbopkg.org defined location, then track them down from somewhere else, check the mdsum to ensure they are not some other packages otherwise the build will fail.
  5. drop the source files into /var/sbopkg/cache
  6. assuming the queue files are generated, i would use sbopkg -i packagename to build whatever you need, and accept build queue whenever sbopkg prompts you for it
  7. Then follow the slackware specific instructions for the packages to configure them if they require any additional configuration. (/etc/profiles.d/, etc..)
For SlackBuilds on SBo, this advice is sound. However, sbopkg won't work with the SlackBuilds I linked, so not sure what this adds...
 
Old 04-28-2017, 08:17 AM   #12
Laserbeak
Member
 
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508

Rep: Reputation: 143Reputation: 143
One step in the right direction would be to change LC_CTYPE=en_US.UTF-8 to LC_CTYPE=ja_JP.UTF-8 on that .bashrc file you created.
 
Old 04-28-2017, 06:22 PM   #13
kujirasan
Member
 
Registered: Mar 2007
Posts: 168

Original Poster
Rep: Reputation: 19
ppr:kut, I will try to download all the dependency files etc, just installing them is difficult!

Qury: usning sqg -a is not a good idea, it takes long time, and if your internet is not reliable can be a probelm, but it can cause disaster and wreak havoc, give you an example, I did a sqp -a, and installed qupzilla browser, it installed 200 more packages actually anything that was qt, and then it knocked of KDE decoration, and max min delete buttons disappeared, so better do a sqp -p filename and one at a time !

Laserbeak: One step in the right direction would be to change LC_CTYPE=en_US.UTF-8 to LC_CTYPE=ja_JP.UTF-8 on that .bashrc file you created.
That was done, it does not work, just reduces the error output when you type, #ibus-setup!

Thanking you very much for your input and time, very much appreciated, such a wonderful people!
 
Old 04-29-2017, 02:51 AM   #14
ppr:kut
Slackware Contributor
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 631

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
Quote:
Originally Posted by kujirasan View Post
ppr:kut, I will try to download all the dependency files etc, just installing them is difficult!
I know it's a bit difficult, sorry I can't offer an easier option at this point. But just have a little patience, it will be worth it in the end
 
Old 04-30-2017, 07:59 AM   #15
Qury
Member
 
Registered: Feb 2004
Location: Naas,IE
Distribution: Slackware
Posts: 212

Rep: Reputation: 184Reputation: 184
Quote:
Originally Posted by kujirasan View Post
Qury: usning sqg -a is not a good idea, it takes long time, and if your internet is not reliable can be a probelm, but it can cause disaster and wreak havoc, give you an example, I did a sqp -a, and installed qupzilla browser, it installed 200 more packages actually anything that was qt, and then it knocked of KDE decoration, and max min delete buttons disappeared, so better do a sqp -p filename and one at a time !
I see how that can be a problem as it pulls in qt5.

My personal preference with sbopkg/slackbuilds is to install qt5 and ffmpeg from alienbob but use sbopkg for anything else.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] enable ibus ibus-chewing input method on slackware 13.37 ted_chou12 Linux - Software 1 08-23-2012 09:35 AM
typing in Hindi Language with various input methods in ibus preferences not working jamesbon Ubuntu 0 02-05-2012 10:42 PM
[SOLVED] Japanese fonts in Skype via Anthy. (ubuntu 10.04) Howlingstar89 Linux - Software 3 05-24-2011 12:01 AM
Japanese input with scim-anthy mattca Slackware 15 11-15-2010 01:39 PM
Ctrl+Shift Unicode input gone, after installing Japanese Input Methodes polemon Linux - Newbie 1 09-20-2005 05:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration