hermann on Sun, 22 Oct 2023 17:34:47 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

PARI/GP on Android devices with termux


I learned from bill in this posting about termux:
https://pari.math.u-bordeaux.fr/archives/pari-users-2309/msg00027.html

"If you would like a more Linux-like environment I suggest you try termux, which
has a PARI/GP package. <https://termux.dev/>"

In that thread Bill mentioned that "pkg install perl" is needed
for "???..." gp help work under termux.

termux was added to homepage links section under "Distribution" as well:
https://pari.math.u-bordeaux.fr/links.html


Today my wife got new tablet from younger son, and I got her old Huawei tablet.
After factory reset Google play store does not work.

From older son I knew about F-Droid:
"F-Droid - Free and Open Source Android App Repository"

I installed F-Droid .apk, and F-Droid allows to install more than 4000 open source apps. Luckily for me, termux was among those apps, and I installed it.


gp became available after "pkg install pari".
Most importantly gp startup messages told that readline support is enabled.


Next I did "pkg install git".
In order to clone a repo with SSH, I wanted to create a public ssh key after
"pkg install openssl". That did not work because some crypto library was
missing. After some searching the issue was resolved with "pkg up".

After 'ssh-keygen -t ed25519 -C "..." ' I added that key to my github.
account. Then I was able to clone my repo with:
git clone git@github.com:Hermann-SW/RSA_numbers_factored.git


After "pkg install vim" (I use vi since 1990), I was able to edit
GP script with syntax highlighting.

On my Raspberry computer /usr/share/vim/vim82/syntax/gp.vim says that
Karim did last touch syntax back in 2012.

On termux /data/data/com.termux/files/usr/share/vim/vim82/syntax/gp.vim
states last change 8/22/2023.


Now I have complete gp+git dev environment on 10" tablet, will
do same steps on my smartphone as well.


Regards,

Hermann.