Posted by MohammedSameer on Mon, 14/06/2004 - 20: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=ar_EG.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=ar_EG.UTF-8" >> /etc/profile.d/ar.sh

chmod 755 /etc/profile.d/ar.sh ==================================================== Jun 12 12:54:57 the error i got for MohammedSameer is that in his article about how to read arabic on windwos partitions he says to put this sentence in /etc/profile " export LC_ALL=ar_EG.UTF-8" but when i do it now in kde 3.2.3 all the prg interface turns to arabic which is very anoying

Jun 12 12:55:17 so how can i read arabic but without turning the interface of al of the prg to arabic

Comment viewing options

Select your preferred way to display the comments and click 'Save settings' to activate your changes.
iocharset=utf8
Pronco's avatar
Posted by  Pronco on Thu, 16/09/2004 - 07:28.

Unable to read arabic file names

UTF8 =

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

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


What's this output ? -- I
MohammedSameer's avatar
Posted by  MohammedSameer on Thu, 16/09/2004 - 11:34.

What's this output ?

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


It worked fine for me
maslan's avatar
Posted by  maslan on Thu, 16/09/2004 - 20:20.

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 avatar
Posted by  Pronco on Thu, 16/09/2004 - 22:42.

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
MohammedSameer's avatar
Posted by  MohammedSameer on Sun, 19/09/2004 - 00:00.

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 avatar
Posted by  Pronco on Sun, 19/09/2004 - 15:06.

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
MohammedSameer's avatar
Posted by  MohammedSameer on Mon, 20/09/2004 - 00:52.

Donno really, try it with any gtk app.

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


Comment viewing options

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