SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My SLK12.1 automatically installed SCIM as input program. The SCIM itself is fairly good, but I encountered problems that launching programs took quite long time.
SCIM daemon had to start ahead of the program I wanted to launch. According to some threads, I let SCIM daemon auto start when KDE started through creating a script in the ~/.kde/Autostart directory.
Now the SCIM started together with KDE, but the problems I mentioned above still existed. With SCIM already run, launching a TERMINAL program still needed about 10 seconds, which was unbearable.
So, I am wondering:
1) maybe you guys can help me fix this low launching program problem. Is SCIM to blame? Or other problems?
2) or I use FCITX instead of SCIM. How do I configure to replace SCIM?
Got your post, when doing some research, and hope you can help.
For me, I prefer English as the default system language for slackware 12.1, however, given my nationality, I do have to read files written in Chinese, or folders named in Chinse.
Like, I have tried to open folders named in Chinese from my windowxp partition, and slackware just wont reveal anything. However, if I have folder name changed to English, then Konqueror will open everything quite fine.
Could you please help me on this? here is my lang.sh, which might be helpful,
Code:
#!/bin/sh
# Set the system locale. (no, we don't have a menu for this ;-)
# For a list of locales which are supported by this machine, type:
# locale -a
# en_US is the Slackware default locale:
#export LANG=en_US
# 'C' is the old Slackware (and UNIX) default, which is 127-bit
# ASCII with a charmap setting of ANSI_X3.4-1968. These days,
# it's better to use en_US or another modern $LANG setting to
# support extended character sets.
#export LANG=C
# There is also support for UTF-8 locales, but be aware that
# some programs are not yet able to handle UTF-8 and will fail to
# run properly. In those cases, you can set LANG=C before
# starting them. Still, I'd avoid UTF unless you actually need it.
export LANG=en_US.UTF-8
# Another option for en_US:
#export LANG=en_US.ISO8859-1
Distribution: slackware64 current & win7 64 on thinkpad X61
Posts: 104
Rep:
hi, markluocanada,
I use the locale zh_CN.UTF-8(export LANG=zh_CN.UTF-8),
and mount the win partition with the following command:
# mount -t ntfs-3g -o locale=zh_CN.UTF-8,noatime /mnt/sda3 /mnt/e
I am really a newbie for linux, and I did what you said for the locale alteration, and run the command you mentioned with regards to my specification
Code:
# mount -t ntfs-3g -o locale=zh_CN.UTF-8,noatime /mnt/sda5 /fat-d
, and still no luck. Would you please kindly elaborate a little bit further? and
Here is my new lang.sh,
Code:
#!/bin/sh
# Set the system locale. (no, we don't have a menu for this ;-)
# For a list of locales which are supported by this machine, type:
# locale -a
# en_US is the Slackware default locale:
#export LANG=en_US
# 'C' is the old Slackware (and UNIX) default, which is 127-bit
# ASCII with a charmap setting of ANSI_X3.4-1968. These days,
# it's better to use en_US or another modern $LANG setting to
# support extended character sets.
#export LANG=C
# There is also support for UTF-8 locales, but be aware that
# some programs are not yet able to handle UTF-8 and will fail to
# run properly. In those cases, you can set LANG=C before
# starting them. Still, I'd avoid UTF unless you actually need it.
export LANG=zh_CN.UTF-8
Thanks for the help, and things look somehow better, I can read certain files in Chinese now this time, and I guess I didn't restart the whole system, just ran "startx" to test whether the locale alteration affected anything or not.
After the reboot, my font now looks different, in a good way, which I really like.
So, first, I
Code:
umount /fat-d
, and then used your command:
Code:
mount -t ntfs-3g -o locale=zh_CN.UTF-8,noatime /dev/sda5 /fat-d
,
now everything is working, and just one thing to ask, how can I let my slackware box do the umount thing, and then mount as you mentioned, and what configuration do I need?
sorry to keep bugging you for the Chinese issue. Since slackware 12.1, with the help of the forum, I was able to get the SCIM going. however, SCIM only works in Firefox, literally only in Firefox. For all other apps, ctrl+spacw won't even activate the SCIM at all.
So how can I get SCIM working in other apps, like Openoffice, and Opera, and kmail etc.
Please explain what you did to get SCIM working, "with the help of the forum" is not enough. Since I and others have SCIM available in all applications, the same should work for you.
Sorry for not the lack of information, with the help of Bruce Hill, and also I followed some instruction of changes-and-hints.txt of slackware12.1, I got the scim going, Only in firefox.
Just to answer your questions better, here is my /etc/profile.d/lang.sh
Code:
#!/bin/sh
# Set the system locale. (no, we don't have a menu for this ;-)
# For a list of locales which are supported by this machine, type:
# locale -a
# en_US is the Slackware default locale:
#export LANG=en_US
# 'C' is the old Slackware (and UNIX) default, which is 127-bit
# ASCII with a charmap setting of ANSI_X3.4-1968. These days,
# it's better to use en_US or another modern $LANG setting to
# support extended character sets.
#export LANG=C
# There is also support for UTF-8 locales, but be aware that
# some programs are not yet able to handle UTF-8 and will fail to
# run properly. In those cases, you can set LANG=C before
# starting them. Still, I'd avoid UTF unless you actually need it.
export LANG=zh_CN.UTF-8
# Another option for en_US:
#export LANG=en_US.ISO8859-1
# One side effect of the newer locales is that the sort order
# is no longer according to ASCII values, so the sort order will
# change in many places. Since this isn't usually expected and
# can break scripts, we'll stick with traditional ASCII sorting.
# If you'd prefer the sort algorithm that goes with your $LANG
# setting, comment this out.
export LC_COLLATE=C
# End of /etc/profile.d/lang.sh
Did I do anything wrong?
The ideal thing I am pursuing would be somehow like using an English version of windows xp, where I can switch to Chinese input anywhere I want, but still have the base system language as English. Hope this won't be too much to ask.
nd also I followed some instruction of changes-and-hints.txt of slackware12.1
Can you be more specific please? Because if you follow all the instructions in the SCIM setup section, it will also work for other applications...
Code:
Input methods for complex characters (CJK, which is shorthand for Chinese,
Japanese, Korean) and other non-latin character sets have been added. These
input methods use the SCIM (Smart Common Input Method) platform.
The environment variables for SCIM support are set in /etc/profile.d/scim.sh
The requirements for getting SCIM input methods to work in your X session
are as follows:
(1) Use a UTF-8 locale. Look in /etc/profile.d/lang.sh for setting your
language to (for instance) en_US.UTF-8. As a word of warning: maybe you
should leave root with a non-UTF-8 locale because you don't want root's
commands to be misinterpreted. You can add the following line to your
~/.profile file to enable UTF-8 just for yourself:
export LANG=en_US.UTF-8
(2) Make the scim profile scripts executable. These will setup your
environment correctly for the use of scim with X applications. Run:
chmod +x /etc/profile.d/scim.*
(3) Start the scim daemon as soon as your X session starts. The scim daemon
must be active before any of your X applications. In KDE, you can add a
shell script to the ~/.kde/Autostart folder that runs the command
"scim -d". In XFCE you can add "scim -d" to the Autostarted Applications.
If you boot your computer in runlevel 4 (the graphical XDM/KDM login)
you can simply add the line "scim -d" to your ~/.xprofile file.
This gives you a Desktop Environment independent way of starting scim.
When scim is running, you will see a small keyboard icon in your system tray.
Right-click it to enter SCIM Setup. In 'Global Setup' select your keyboard
layout, and you are ready to start entering just about any language
characters you wish! Press the magical key combo <Control><Space>
in order to activate or deactivate SCIM input. The SCIM taskbar in the
desktop's corner allows you to select a language. As you type, SCIM will show
an overview of applicable character glyphs (if you are inputting complex
characters like Japanese).
Unfortunately this piece of text was removed from CHANGES_AND_HINTS.TXT in Slackware 12.2, and I did not notice. It should be put back in for the next release IMO.
Probably you did not follow the instruction to make "scim -d" start at the beginning of your X session. Typically when you forget that and you start a GTK based application, scim will start too. And then it will work only for that application. Like your firefox issue.
Thanks Eric for the reply, and to add this text or instruction back will be quite helpful.
Ok, I think I have finished the first two, just this part
Code:
In KDE, you can add a shell script to the ~/.kde/Autostart folder that runs the command "scim -d".
.
To add a shell script was quite scary for me at first, because I have never done this kind of things before. But after some reading online, I somehow got part of this shell script running ok. However, it won't let me to bash it,
Code:
root@localhost:~# bash scim
/usr/bin/scim: /usr/bin/scim: cannot execute binary file
root@localhost:~# cd .kde
root@localhost:~/.kde# ls
Autostart/ share/ tmp-localhost@
cache-localhost@ socket-localhost@
root@localhost:~/.kde# cd Autostart
root@localhost:~/.kde/Autostart# ls
scim*
root@localhost:~/.kde/Autostart# bash scim
scim: line 4: scim -d: command not found
root@localhost:~/.kde/Autostart#
here is the script I made,
Code:
# My first shell script
#
"scim -d"
The good things, now every time I boot into slackware, one Konsole window will pop up, and if I type scim, it will bring up SCIM, and then SCIM will work in almost all the apps. But still, I want this running in a supposed way.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.