Submitted by Pronco on Mon, 14/06/2004 - 19:13.

Ok, This article needs to be cleaned and to be tested/verified.

احب ان اوضح فى البداية اننى لن اتطرق فى هذا المقال الى كيفية تثبيت الخطوط العربية على نظام اللينوكس كما لن اتطرق الى كيفية تمكين كل من GNOME و KDE من عرض المحتوى العربى كل الخطوات التالية تتطلب ان تكون مستخدم جذرى "root" لقد قمت بتجربة هذه الخطوات على نظام Mandrake 9.0 و باستخدام خط Tahoma من نسخة ويندوز 2000 الاصلية الخاصة بى

ينبغى اولا تعريف النظام باننا نريد التعامل مع اسماء الملفات الموجوده على اجزاء القرص الصلب الخاص بنظام تشغيل الويندوز باستخدام اليونيكود

نقوم بفتح الملف /etc/fstab

علينا فقط تعديل السطور الخاصة باقسام ويندوز فمثلا الملف الحاص بى كالتالى

/dev/hda12 / ext3 defaults 1 1
/dev/hda9 /boot ext3 defaults 1 2
none /dev/pts devpts mode=0620 0 0
/dev/hda10 /home ext3 defaults 1 2
/dev/cdrom /mnt/cdrom auto users,ro,noauto,exec 0 0
/dev/sr0 /mnt/cdrom2 auto users,noauto,ro,exec 0 0
/dev/fd0 /mnt/floppy vfat umask=0,sync,nosuid,noauto,user,nodev,unhide 0 0
/dev/hda1 /mnt/win_c vfat defaults 0 0
/dev/hda5 /mnt/win_d vfat defaults 0 0
/dev/hda6 /mnt/win_e vfat defaults 0 0
/dev/hda7 /mnt/win_f vfat defaults 0 0
/dev/hda8 /mnt/win_g vfat defaults 0 0
none /proc proc defaults 0 0
/dev/hda11 swap swap defaults 0 0

بالتاكيد سيختلف الملف الخاص بك هن هذا

سنقوم بالتعديل فى السطور اللتى تحتوى على vfat فى الخانة الثالثة

سنقوم باضافة iocharset=utf8 الى الخانة الرابعة فى هذه الاسطر لتصبح كالتالى

dev/hda12 / ext3 defaults 1 1
/dev/hda9 /boot ext3 defaults 1 2
none /dev/pts devpts mode=0620 0 0
/dev/hda10 /home ext3 defaults 1 2
/dev/cdrom /mnt/cdrom auto users,ro,noauto,exec 0 0
/dev/sr0 /mnt/cdrom2 auto users,noauto,ro,exec 0 0
/dev/fd0 /mnt/floppy vfat umask=0,sync,nosuid,noauto,user,nodev,unhide 0 0
/dev/hda1 /mnt/win_c vfat defaults,iocharset=utf8 0 0
/dev/hda5 /mnt/win_d vfat defaults,iocharset=utf8 0 0
/dev/hda6 /mnt/win_e vfat defaults,iocharset=utf8 0 0
/dev/hda7 /mnt/win_f vfat defaults,iocharset=utf8 0 0
/dev/hda8 /mnt/win_g vfat defaults,iocharset=utf8 0 0
none /proc proc defaults 0 0
/dev/hda11 swap swap defaults 0 0

الان يتبقى خطوتين

اولا: اعداد GNOME2

قم بفتح الملف /etc/profile و اضافة السطر التالى اليه:

export CHARSET=ISO_8859-6
export G_BROKEN_FILENAMES=1

اذا كنت من مستخدمى نظام RedHat 8.0 فيمكنك اغفال باقى الخطوات

ثانيا: اعداد KDE3

اذا كنت تستخدم نظام Mandrake قم بتثبيت حزمة RPM المسماه locales-ar عن طريق الامر التالى:

urpmi locales-ar

فم باضافة السطر التالى الى الملف /etc/profile

export LC_ALL=en_US.UTF-8

الان قم باعادى تشغيل اللينوكس

مبروك عليك الاسماء العربية :-)

فى الواقع الطريقة الاصح هى عمل ملف فى /etc/profile.d نسمية مثلا ar.sh ونقوم باعطائه التراخيص 755 و نضع فية السطرين كالتالى:

touch /etc/profile.d/ar.sh
echo "export G_BROKEN_FILENAMES=1" >> /etc/profile.d/ar.sh
echo "export CHARSET=ISO_8859-6" >> /etc/profile.d/ar.sh
echo "export LC_ALL=en_US.UTF-8" >> /etc/profile.d/ar.sh
chmod 755 /etc/profile.d/ar.sh

iocharset=utf8

Pronco's picture

Unable to read arabic file names

UTF8 =

عاصي الØ�*لاني الجديد

I used to be indecisive .. but now I'm not so sure

What's this output ? -- I

MSameer's picture

What's this output ?

-- I was known as Uniball!
Katoob Main developer
PekSysTray - GtkFlame

It worked fine for me

maslan's picture

It worked fine for me since mdk8 till 10.1 thnx uniball

Maslan - Mohamed Abdelsalam Aslan
http://maslanedit.sf.net
http://maslancms.sf.net
Even if u need portability, u have to use assembly ;-)

Output

Pronco's picture

The current output that I read it instead of arabic font


I used to be indecisive ... but now I'm not so sure

did it work with konqueror or

MSameer's picture

did it work with konqueror or what ?? are you doing ls in a terminal ??

-- I was known as Uniball!
Katoob Main developer
PekSysTray - GtkFlame

konquueror

Pronco's picture

did not work with konqueror

  • Mounted Partition
/dev/hda7       /mnt/win_f      vfat    iocharset=utf8,codepage=864,rw,umask=0,users            0 0

I used to be indecisive .. but now I'm not so sure

Donno really, try it with any

MSameer's picture

Donno really, try it with any gtk app.

-- I was known as Uniball!
Katoob Main developer
PekSysTray - GtkFlame

startx lagging process

Pronco's picture

When I export LC_ALL="en_US.UTF-8" the locale language working properly but it's so lagging on the startx process otherwise When I remove the exportion it starting properly and fast

What does it supposed to be ?

Maybe I'm using a very big font with thousands of characters, it can happen that all the characters are rasterized on startup, and this can take a lot of time

AFAIR loading an UTF8 font can take some time

Maybe I can probably try to use an arabic specific locale and font.

Any ideas ?


I used to be indecisive .. but now I'm not so sure

GNOME 2.6

Pronco's picture

export CHARSET=ISO_8859-6

export G_BROKEN_FILENAMES=1

does not work on GNOME 2.6


I used to be indecisive .. but now I'm not so sure

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.