2

I have made a piece of code with pygame on the Raspberry Pi and I want to run it through the Android app JuiceSSH so I can use it on my Android phone. But whenever I run it on my phone, even with 'sudo', it returns an error 'unable to open a console terminal'

Is there any possible way to open a terminal on my Android phone so the pygame graphic console terminal will pop up?

(I have seen other similar questions/answer but they do not help with this situation)

techraf
4,35310 gold badges33 silver badges43 bronze badges
asked Dec 20, 2016 at 21:46

1 Answer 1

1

JuiceSSH is an SSH client which in its free version offers only shell (text) access.

JuiceSSH Pro - a paid version of this app - allows X11 forwarding and integrates with an X Server app.

Refer to the How to tunnel X over SSH using Port Forwarding guide.

On Raspberry Pi side you need to ensure ForwardX11 yes option is set in /etc/ssh/sshd_config.

And then you need to add an environment variable DISPLAY before running your program.


As a side note, ConnectBot SSH client for Android seems to support X11 forwarding and it's free.

answered Dec 20, 2016 at 23:18
2
  • hi, thanks, but on the website it says to enter an address. do it type 'ssh.myxdomain.com' literally or is there something else that is suppose to go there? Commented Dec 21, 2016 at 20:04
  • It must be an address of your Raspberry Pi - either a DNS name, or the IP address. Commented Dec 21, 2016 at 22:28

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.