SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I don't know much about how Slackware is setup, but I do know that looking at /usr/share/kbd/keymaps will not help you, because unlike French or Russian or English etc. , languages such as Chinese, Japanese & Korean have multi-byte encoding, and a regular keymap just won't cut it with literally thousands of characters to choose from.
However, to be able to type Chinese in a word processor such as Open Office Writer, you need to have a couple of things set up before hand.
Firstly, you need to make sure that you have the locale files installed for Chinese. Type "locale -a" at the prompt and this will list all the locale files installed on your system. If you have locale files called zh_CN, or zh_TW etc., then you are in business. If not, find the locale files on your distro CD or on the internet and install them.
Secondly, you will need Chinese fonts, the four Arphic fonts found with most popular distros are a great start.
Thirdly, if you plan to use KDE you will need to also install the kde-i18n files for Chinese, these should also be somewhere on your distro CDs.
Then you need to set the user locale to Chinese, but I don't know if Slackware is the same as Fedora/Red Hat/Mandrake etc. type distros, so I don't want to give you the wrong info, but this is how I do it ; I append the following lines in the .bashrc file in the user's home directory :-
Okay, Sorry I took so long to get back to this, but finally I got the hardware to set it up. i have two questions (other then setting up chinese support)
Is it okay if I have a seperate user for the chinese setup?
i don't want a system wide setup.
root will stay ENGLISH (please) ; I can't read and write chinese.
Where can I get chinese fonts?
On the side note, I have installed some chinese fonts on my system by putting them in /usr/local/fonts/ch and fc-cache it. When I go to chinese websites, some characters are still missing (looks like mahjong).
1) Yes, you can make a separate user with Chinese settings. You should already have a normal English user (without root priveleges). Just create another user, and change the locale and XMODIFIER settings in that user's ~/.bashrc file.
I have never seen or tried Slackware (although I hope to in the not to distant future, Slack-users seem fairly proud of it), but I seem to remember something about Chinese support not being built-in by default, and that you have to set stuff up manually - my memory ain't clear on that, it may have been an old post about an older version of Slackware.
2) Most major distros would include the free arphic TT chinese fonts, but I'm not sure about Slack, however, I found this through googling - Chinese system setup in linux - which has a section on setting up in Slackware 9.0.
If you search the Net ("Chinese fonts download"), you will find plenty of sites with a wide variety of fonts...
2. Copied the downloaded chinese fonts to /usr/local/share/fonts
edit /etc/fonts/fonts.conf to include the path above.
3. I have installed kde-i18n (chinese)
(the last time I start it (before I put in the fonts) I get mahjong character.
4. I edited /home/user/.bashrc
But when I log-in (ssh) as the user
and issue the comand locale, I get: