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

Is there a way to launch httprd via ssh ? #2

Open
ludetie opened this issue Feb 17, 2024 · 2 comments
Open

Is there a way to launch httprd via ssh ? #2

ludetie opened this issue Feb 17, 2024 · 2 comments
Labels
question Further information is requested

Comments

@ludetie
Copy link

ludetie commented Feb 17, 2024

Hello,
Is there a way to launch httprd via ssh ?
When I launch httprd via ssh :
python3 httprd.py --help
the answer is :
Traceback (most recent call last):
File "httprd.py", line 29, in
import pyautogui
File "/home/ludeti/.local/lib/python3.8/site-packages/pyautogui/init.py", line 246, in
import mouseinfo
File "/home/ludeti/.local/lib/python3.8/site-packages/mouseinfo/init.py", line 223, in
_display = Display(os.environ['DISPLAY'])
File "/usr/lib/python3.8/os.py", line 675, in getitem
raise KeyError(key) from None

@ludetie
Copy link
Author

ludetie commented Feb 17, 2024

Hello,
I found ; once connected to ssh :
export DISPLAY=:0.0 && python3 httprd.py --help

httprd is great, thank you !

@bitrate16
Copy link
Owner

export DISPLAY=:0.0

Yes, you have to tell ssh tty which X11/Wayland session display to use because in common DISPLAY is exported only in TTY's created under GUI environment (like terninal, etc)

@bitrate16 bitrate16 added the question Further information is requested label Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants