httprd icon indicating copy to clipboard operation
httprd copied to clipboard

Is there a way to launch httprd via ssh ?

Open ludetie opened this issue 1 year ago • 2 comments

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 avatar Feb 17 '24 08:02 ludetie

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

httprd is great, thank you !

ludetie avatar Feb 17 '24 16:02 ludetie

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 avatar Feb 17 '24 23:02 bitrate16