Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display output method? #265

Closed
nathaneltitane opened this issue Dec 11, 2020 · 7 comments
Closed

Display output method? #265

nathaneltitane opened this issue Dec 11, 2020 · 7 comments

Comments

@nathaneltitane
Copy link

Hello - I was wondering which display server/output method to android you were using to get the device to present the contents of your chroot onto the Android display.

My project currently relies on VNC output and was wondering if there was any way to enhave it to something a little more native.

Thanks

@github-actions
Copy link

Thank you for contributing to make this project better😎 Keep up and follow to solve this issue.

@SDRausty
Copy link
Owner

get the device to present the contents of your chroot onto the Android display.

Hello, I'm not sure if this answers your question completely. If it doesn't please comment.

It's just a simple command to setup the exports. For it to work, it must be sourced. That's why the dot . and space are important. Otherwise, it won't work right:

[19:36 ~ ]$ . exd
[19:36 ~ ]$ export
declare -x DISPLAY=":0"
declare -x PULSE_SERVER="tcp:127.0.0.1:4712"

Originally posted by @SDRausty in #59 (comment)

@nathaneltitane
Copy link
Author

get the device to present the contents of your chroot onto the Android display.

Hello, I'm not sure if this answers your question completely. If it doesn't please comment.

It's just a simple command to setup the exports. For it to work, it must be sourced. That's why the dot . and space are important. Otherwise, it won't work right:

[19:36 ~ ]$ . exd
[19:36 ~ ]$ export
declare -x DISPLAY=":0"
declare -x PULSE_SERVER="tcp:127.0.0.1:4712"

Originally posted by @SDRausty in #59 (comment)

Right, but what application or library or server do you use on android to get your display? Like what's on the screen capture for the project i guess...

@SDRausty
Copy link
Owner

application or library or server do you use on android to get your display?

Good question @nathaneltitane; How can this topic be made easier for the new user? Here are two answers to your question:

  1. Originally posted by @abicorios in How to use Xorg in TermuxArch? #27 (comment)

Wow. It is work. After run XServer XSDL, just input in the TermuxArch console

export DISPLAY=:0 PULSE_SERVER=tcp:127.0.0.1:4712

And after it, I can start some Gui soft from the TermuxArch console.

XServer XSDL link https://github.com/pelya/xserver-xsdl

  1. Originally posted by @iL3D in A few questions about Arch Linux in Termux PRoot #59 (comment)
  • How do I get software rendering so I can run gui app?

@Root-voidX, Using noVNC+tigervnc instead of XServer XSDL saves the need to install an external app. Access gui apps from any already-installed web browser.

#  lxde + fix, as before
pacman -S lxde
pacman -S ttf-dejavu

#  vnc server
pacman -S tigervnc
#  html5 vnc client 
curl -O https://github.com/novnc/noVNC/archive/v1.0.0.tar.gz
tar xvfz v1.0.0.tar.gz

#  run vnc. make sure display & vnc port match
export DISPLAY=:7
export VNC_PORT=5907
Xvnc --localhost --SecurityTypes=None $DISPLAY &
cd noVNC-1.0.0; ./utils/launch.sh --vnc localhost:$VNC_PORT &
 
startlxde
echo "To see the magic, point your favorite browser to http://127.0.0.1:6080/vnc.html"

Please share which method you prefer, and how this topic be made easier for the new user.

@nathaneltitane
Copy link
Author

application or library or server do you use on android to get your display?

Good question @nathaneltitane; How can this topic be made easier for the new user? Here are two answers to your question:

  1. Originally posted by @abicorios in #27 (comment)

Wow. It is work. After run XServer XSDL, just input in the TermuxArch console

export DISPLAY=:0 PULSE_SERVER=tcp:127.0.0.1:4712

And after it, I can start some Gui soft from the TermuxArch console.

XServer XSDL link https://github.com/pelya/xserver-xsdl

  1. Originally posted by @iL3D in #59 (comment)
  • How do I get software rendering so I can run gui app?

@Root-voidX, Using noVNC+tigervnc instead of XServer XSDL saves the need to install an external app. Access gui apps from any already-installed web browser.

#  lxde + fix, as before
pacman -S lxde
pacman -S ttf-dejavu

#  vnc server
pacman -S tigervnc
#  html5 vnc client 
curl -O https://github.com/novnc/noVNC/archive/v1.0.0.tar.gz
tar xvfz v1.0.0.tar.gz

#  run vnc. make sure display & vnc port match
export DISPLAY=:7
export VNC_PORT=5907
Xvnc --localhost --SecurityTypes=None $DISPLAY &
cd noVNC-1.0.0; ./utils/launch.sh --vnc localhost:$VNC_PORT &
 
startlxde
echo "To see the magic, point your favorite browser to http://127.0.0.1:6080/vnc.html"

Please share which method you prefer, and how this topic be made easier for the new user.

I guess that answers my wuestion - using the same methods on my side :)

@SDRausty
Copy link
Owner

Thank you for sharing @nathaneltitane

@SDRausty
Copy link
Owner

This link https://wiki.termux.com/wiki/Graphical_Environment should be useful for this issue too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants