Download and install the arabic and persian fonts run this code to download from github:
git clone https://github.com/fzerorubigd/persian-fonts-linux.git
open the download directory and run the farsifonts.sh in the terminal:
./farsifonts.sh
select to install the Vazir and FarsiFonts.
If you already has these fonts copy them to the folder ~/.fonts for the current user only, for all users copy to the
to the
"/usr/share/fonts", then run the coammand to cache the new fonts:
fc-cache -fv
Open
libreoffice > preferences > Languages. Checkmark Enabled for Complex text layout (CTL). That is the
term used for Arabic script and right-to-left (RTL) languages. Also choose your language (Arabic, Persian,
Hebrew, etc.) from the drop-down menu under CTL.click OK.
Now open libreoffice writer and go to the Preferences panel under the LibreOffice writer go to Basic Fonts (CTL)
and Basice Fonsts (Asian) you want to use when you type in Arabic-script or any RTL language. select the Vazir fonts
from the drop down menu for all these options and click OK.
Now open a text document. The menu expands. Under Tools go to Customized…. You go there to customize your
toolbar and add two shortcuts icons for Right-to-Left (RTL) and Left-to-Right (LTR) to it.
Choose Toolbars from the top menu. Make sure Standard is chosen as your toolbar under LibreOffice Writer Toolbars.
Then click on “Add Command”.
From the list choose Format. Under Format choose Right-to-Left and add it to your toolbar. Repeat the
same process to add Left-to-Right to your toolbar as well. Save the customized setting when you are done
configure EacyBCD
EasyBCD boot linux distro from the windows boot loader with the GRUB4DOS which use the grub2 and grub legacy.
Add the new entry for ubuntu in EasyBCD and select the grub legacy and the partition where the ubuntu is installed.
Then go to the advanced settings and select the drive where EasyBCD folder NST is installed, open the
C:/NST/menu.lst add these lines
for the ubuntu installed in the /dev/sda5:
root (hd0,4)
chainloader +1
boot
In grub legacy hard disk and partitions counts starts from 0 (zero) and in grub2 hard disks starts from 0 (zero) and partitions starts
from 1 (one).
Attention please:
When ever you install the new copy of ubuntu delete the old ubuntu entry from the EasyBCD and add the new one.
other wise it will not boot the ubuntu.
Grub prompt
When GRUB 2 is unable to boot or display the GRUB 2 menu the system will be left at a GRUB2 terminal if possible. If the system
boots to the grub> prompt, the usual modules and commands are normally available. The user may need to manually load modules using
the insmod [module] command before some commands will work.
grub>
To boot the linux from the grub prompt enter these commands one by one in the grub terminal and hit the return:
grub> set root=(hd0,5)
grub> chainloader +1
grub> boot
hd0 is the first hard disk and 5 is the first logical partition where linux is installed.for grub legacy enter
root (hd0,4).
gpt partition table support larger hard disk with as much primary partitions (no need to create logical partition)
and UFEI and legacy boot. grub2 supports gpt.
To make gpt partitions with parted, the first primary partiton should start from 2048s (s means sectors):
(parted) mkpart primary 2048s 50MB
Then run this code to align the partition:
(parted) align-check optimal 1
1 aligned