You need to install bicon for this purpose.
So you can use this method for enable Persian or Arabic in lxterminal:
First, install libfribidi0
and libfribidi-dev
packages.
sudo apt update
sudo apt install libfribidi0 libfribidi-dev
Then download and install bicon
:
For 64bit machines:
Download this package and then install with this command:
sudo dpkg -i bicon_0.2.0-1ubuntu0~ppa4_amd64.deb
For 32bit mchines:
Download this package and then install with this command:
sudo dpkg -i bicon_0.2.0-1ubuntu0~ppa4_i386.deb
Then for type Persian or Arabic in lxterminal you should run this command:
bicon.bin
But for automate this process you can edit /usr/share/applications/lxterminal.desktop
file with this command:
sudo nano /usr/share/applications/lxterminal.desktop
And apply this changes to that file:
- Change
Exec=lxterminal
to Exec=lxterminal -e bicon.bin
- Add
Terminal=true
to this file.
So after save the changes , you can see these lines in that file:
Exec=lxterminal -e bicon.bin
Terminal=true
So After changes, you can tap on lxterminal icon and type Persian (or Arabic).
But if you want to run bicon , also with Ctrl+Alt+t buttons, you should do this steps:
Edit ~/.config/openbox/lubuntu-rc.xml
file with this command:
nano ~/.config/openbox/lubuntu-rc.xml
Then change lxsession-default terminal
command in <!-- Launch a terminal on Ctrl + Alt + T-->
section to lxterminal -e bicon.bin
.
So you should change:
<!-- Launch a terminal on Ctrl + Alt + T-->
<keybind key="C-A-T">
<action name="Execute">
<command>lxsession-default terminal</command>
</action>
</keybind>
To:
<!-- Launch a terminal on Ctrl + Alt + T-->
<keybind key="C-A-T">
<action name="Execute">
<command>lxterminal -e bicon.bin</command>
</action>
</keybind>
Then run this command to apply this changes:
openbox --reconfigure