Thursday, August 20, 2015

Linux terminal Arabic support for Gnome 3.16

Salam (or Hello :) ) everyone,
I've spent a couple of time on figuring out how to correctly display Arabic characters on the Gnome Terminal under Fedora 22 (Gnome 3.16).

At first, I have:

as you can see, the Arabic characters are disconnected (unbidden) to each other, which is wrong and ugly at the same time.

The solution
1) if you didn't installed freebidi, you can have it by typing:
sudo dnf install fribidi.x86_64

2) then type:
bicon
to enable the bidirectional characters display.


If you want to enable bicon all the time in the terminal, I mean, if you restart your terminal, you have to re-type bicon again to enable bidirectional display.

Warning: this caused my Gnome 3.16.2 gdm to freeze or failed to start after login!
So, all what you have to do is to edit the .bashrc file and add the script (taken from here) inside .bashrc file:
# hack to launch bicon if not launched
if ! [[ "$(ps -p $(ps -p $(echo $$) -o ppid=) -o comm=)" =~ 'bicon'* ]]; then
  bicon.bin
ficon

To accomplish this, type in the Terminal:
cd
nano .bashrc

and then add the script above to enable bicon at the startup of the Terminal.

And that is it :)

Tuesday, August 4, 2015

Gradle 21 missing packages on Fedora 22


When I tried to build a project under Fedora 22, with Gnome 16.2, in Android Studio 1.3, I got the
following error:

Error:org.gradle.process.internal.ExecException: A problem occurred starting process 'command '~/android-sdk-linux/build-tools/21.1.2/aapt'' :app:mergeDebugResources FAILED Error:Execution failed for task ':app:mergeDebugResources'.

the solution was to install the 32-bit (i686) version of libstdc++:

$ sudo dnf install libstdc++.i686


then, I got another error from Gradle complaining about missing libz.

the soultion was to install the 32-bit (i686) version of it under Fedora (rpm)


$ sudo dnf install zlib.i686


And that is all, you should now have your Gradle working good.

Monday, August 3, 2015

PPPoE in Fedora 22 Gnome 3.16

1) type in the terminal:
$ nmcli connection add type pppoe con-name office ifname eno1 username abdulmomen@office password 'HighwW , sighW'

you should see:
Connection 'office' (9913272c-141e-488f-91b6-263b77018250) successfully added.

2) continue in being in the Terminal and type:
$ nmcli connection up office
and a message like this should appear to you:
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/3)

And, now you should have a PPPoE connection in your Fedora 22 Gnome desktop edition.

Thanks to Mustafa Muhammad for his help :)