SDRausty / termux-archlinux

You can use setupTermuxArch.bash 📲 to install Arch Linux in Termux on Amazon, Android, Chromebook and Windows. https://sdrausty.github.io/termux-archlinux/
https://sdrausty.github.io/termux-archlinux/
Other
754 stars 74 forks source link

Orca screen reader and VNC in Arch Linux #47

Closed JanuszChmiel closed 4 years ago

JanuszChmiel commented 4 years ago

I have collected much experience so I AM ready to offer you functioning solution, which will allow visually impaired ArchLinux users to use Orca screen reader with Mate desktop in Arch Linux. What I only need is only to know, how to start xvfb, xorg-virtual frame buffer server. I have successfully installed this package. But xvfb command do not work. Here are commands, which should allow visually impaired users to use Orca from Arch Linux. I suspect, that Arch Linux will be configured to use TCP or Unix sockets to support PUlseaudio, which will run from Termux environment.

pacman -S mate orca espeak x11vnc xorg-server-xvfb After successfully installing those packages, we must configure Pulseaudio to use sockets. Perhaps, it should be A bit faster than when TCP sockets are being used by client apps, which wan to communicate with Pulseaudio sound server which run from Termux.

export PULSE_SERVER=unix:/tmp/pulse.sock We also need to configure Pulseaudio from Termux so

pulseaudio --start --exit-idle-time=-1 pactl load-module module-native-protocol-unix socket=/data/data/com.termux/files/home/arch/tmp/pulse.sock auth-anonymous=1

We also must rather install sox also for Arch Linux not only for Termux. pacman -S sox To test Espeak with Pulseaudio Espeak "Hello world" We should hear speec houtput thanks to Pulseaudio for Termux. How to start Mate and X11 rleated stuff? I Am afraid, that new security mechanismhs build in to dependent libraries for Orca screen reader will not allow us to run Mate as Root. I do not know how to create non root user after installing Arch Linux. We will have to combine root account from which xvfb would had to be executed. X11vnc should also run from Root. mate-session & should run only from non root account. So commands which should be run as root are. export DISPLAY=:1 Xvfb :1 -screen 0 1024x768x16 & x11vnc -display :1 -bg -nopw -listen localhost -xkb -noshm -forever -ncache 10 It is possible to run two lines from /etc/profile but mate-session & must be run separately, I do not know how to correctly autodetect from script, that previous processes have been correctly initialized, no terminated, but I need to know, that it have finished its initial job.

To be able to use keyboard shortcuts on Android, I Am recommending all visually impaired users to use Simple Remote. Mr Jordano have even prepared .apk package for non advanced users like I Am so it is not necessary to compile .apk independently.

If Orca and Mate apps which do not use Shared memory system calls will work. My plea is, if yours Arch Linux script would be extended so Orca and X11vnc and xvfb would be used.

If user would start yours setup script with -orca option, script should preconfigure The system for user.

github-actions[bot] commented 4 years ago

Stale issue message

JanuszChmiel commented 1 year ago

I have very important information for all visually impaired users, who would want to use Orca screen reader for productive work on their Android devices. FIrst of all. Not every device will provide The fast responsiveness for sound devices. So if you have The opportunity, buy Android device with 8 GB of RAM. It do not have to be favourite world wide brant. You do not have to use never Android version than 11. There are some issues related to Termux. Keep in mind, that not every device will provide clear sound for speech-dispatcher and Espeak-ng. It depend on internal drivers configuration. There may be some strange sound or something like echo.

Try to use Tigervnc in conjunction with The Pulseaudio for Termux. There is really currently no better sound server for Termux Android. It support Open Sless or AAudio. Please keep in mind, that Android 9 and newer can reduce CPU time after turning screen off even if you will enable special settings on battery, even acquire wakelock and ignore battery optimisations is not A guarantee, that you will get The same in background fast experience when screen have been turned off. I personally prefer Android 8.0. Some Android versions are containing routines which are causing issues with Termux in general. So in Termux and Linux distribution it is sad, but newest version of Android is not always The best solution. The similar situation exist for Linux distributions. I have pleased Proot-distro coders, so they could allow us to use newer version of Fedora than 35. They have done it.They have even made something that upgrading Fedora core packages do not cause upgrade crash and Proot crash. But as A result, after I logout from Mate, Orca will always stop to work again. So I have tried to use Debian PUlseie from Proot-distro.I will try ArchlInux and Orca for such issue if it will also occur.

Newest Seamonkey in ArchLinux aur for AArch64 also do not work. So I had to use older versions. So. I Am suggesting you to always perform your Chroot container folders structure backup.