winder / Universal-G-Code-Sender

A cross-platform G-Code sender for GRBL, Smoothieware, TinyG and G2core.
http://winder.github.io/ugs_website/
GNU General Public License v3.0
1.92k stars 768 forks source link

Error on OrangePi #2611

Closed KuleshoffM closed 2 months ago

KuleshoffM commented 2 months ago

Version

2.1.8

Hardware / Firmware

GRBL 1.1

What happened

orangepi@orangepizero2w:/cnc/UniversalGcodeSender$ java -jar -Xmx256m UniversalGcodeSender.jar Exception in thread "main" java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it. at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:164) at java.desktop/java.awt.Window.(Window.java:553) at java.desktop/java.awt.Frame.(Frame.java:428) at java.desktop/java.awt.Frame.(Frame.java:393) at java.desktop/javax.swing.JFrame.(JFrame.java:180) at com.willwinder.universalgcodesender.MainWindow.(MainWindow.java:110) at com.willwinder.universalgcodesender.MainWindow.main(MainWindow.java:218)

How to reproduce

No response

Operating System

Ubuntu

Anything else

orangepi@orangepizero2w:/cnc/UniversalGcodeSender$ java -version openjdk version "17.0.12" 2024-07-16 OpenJDK Runtime Environment (build 17.0.12+7-Ubuntu-1ubuntu222.04) OpenJDK 64-Bit Server VM (build 17.0.12+7-Ubuntu-1ubuntu222.04, mixed mode, sharing)

breiler commented 2 months ago

What is your desktop environment?

KuleshoffM commented 2 months ago

I'm trying to run UGS on OrangePi. I installed Ubuntu there in terminal mode. There is no desktop there.

breiler commented 2 months ago

How are you planning to run gcode files?

There is a cli-alternative, look in the ugs-cli.sh

KuleshoffM commented 2 months ago

from web... orangepi:8080

where look ugs-di.sh ?

breiler commented 2 months ago

Sorry, it is named "start-cli.sh" and should be available in the UniversalGcodeSender.zip

KuleshoffM commented 2 months ago

I was running start-cli.sh . There are no errors, but nothing happens. The web interface is also not available

breiler commented 2 months ago

Run start-cli.sh -h to print help information.

You will need to run start-cli.sh -d to start in a daemon mode which should start the web server.

KuleshoffM commented 2 months ago

Its work. Sencs