Run LinuxCNC on wayland

More
5 years 4 months ago #212715 by wade
Run LinuxCNC on wayland was created by wade
Dears

I've run sudo make setuid and successful installed LinuxCNC. but when I run ../scripts/rip-environment linuxcnc, there is an error :
Code:
LINUXCNC - 2.9.0~pre0 application-specific initialization failed: no display name and no $DISPLAY environment variable Error in startup script: invalid command name "image" while executing "image create photo -file $f/$i.gif" invoked from within "if [file exists $f/$i.gif] { return [image create photo -file $f/$i.gif] }" (procedure "linuxcnc::image_search" line 7) invoked from within "linuxcnc::image_search linuxcnc-wizard" invoked from within "set logo [linuxcnc::image_search linuxcnc-wizard]" (file "/home/tsinglin/linuxcnc-dev/tcl/bin/pickconfig.tcl" line 31)

I'm using Wayland as my display server. What should I do now?

Thanks
Wade Xu

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago - 5 years 4 months ago #212718 by phillc54
Replied by phillc54 on topic Run LinuxCNC on wayland
If you were in the ~/linuxcnc-dev/src directory then the commands should be:
Code:
. ../scripts/rip-environment linuxcnc
note the space between the first two dots

As an alternative, you could run:
Code:
~/linuxcnc-dev/scripts/linuxcnc
This command can be run from any directory.
Last edit: 5 years 4 months ago by phillc54.

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago - 5 years 4 months ago #212721 by wade
Replied by wade on topic Run LinuxCNC on wayland
Hi

I followed your advice but still have the same error:
Code:
~/linuxcnc-dev/scripts/linuxcnc LINUXCNC - 2.9.0~pre0 application-specific initialization failed: no display name and no $DISPLAY environment variable Error in startup script: invalid command name "image" while executing "image create photo -file $f/$i.gif" invoked from within "if [file exists $f/$i.gif] { return [image create photo -file $f/$i.gif] }" (procedure "linuxcnc::image_search" line 7) invoked from within "linuxcnc::image_search linuxcnc-wizard" invoked from within "set logo [linuxcnc::image_search linuxcnc-wizard]" (file "/home/tsinglin/linuxcnc-dev/tcl/bin/pickconfig.tcl" line 31)


Is there other problems?
I am using Wayland as display server. There may have some difference.

Thanks
Wade Xu
Last edit: 5 years 4 months ago by wade.

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago #212728 by rmu
Replied by rmu on topic Run LinuxCNC on wayland
Look if XWayland is running.

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago #212744 by andypugh
Replied by andypugh on topic Run LinuxCNC on wayland
Are you running via ssh to the LinuxCNC machine, or actually at the LinuxCNC machine?

ie, is the monitor and keyboard that you are using plugged in to the LinuxCNC machine?

I see exactly the same issues when I try to run LinuxCNC via ssh on my Mac with Buster (but it used to work fine pre-Buster, as long as I used ssh -Y)

If this is a problem with a display local to the LinuxCNC machine then I am as puzzled as anyone else.

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago #212774 by wade
Replied by wade on topic Run LinuxCNC on wayland
Hi andypugh


I'm running LinuxCNC on my board with a keyboard and monitor. But whatever I run on the board or execute the cmd on my terminal. It appears the same error.

Thanks
Wade Xu

Please Log in or Create an account to join the conversation.

Time to create page: 0.156 seconds
Powered by Kunena Forum