Run LinuxCNC on wayland

More
23 Jun 2021 03:53 #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 :
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
23 Jun 2021 05:13 - 23 Jun 2021 05:13 #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:
. ../scripts/rip-environment 
linuxcnc
note the space between the first two dots

As an alternative, you could run:
~/linuxcnc-dev/scripts/linuxcnc
This command can be run from any directory.
Last edit: 23 Jun 2021 05:13 by phillc54.

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

More
23 Jun 2021 05:50 - 23 Jun 2021 07:59 #212721 by wade
Replied by wade on topic Run LinuxCNC on wayland
Hi

I followed your advice but still have the same error:
~/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: 23 Jun 2021 07:59 by wade.

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

More
23 Jun 2021 10:46 #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
23 Jun 2021 14:03 #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
24 Jun 2021 01:08 #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.

More
24 Jun 2021 01:18 - 24 Jun 2021 08:45 #212776 by wade
Replied by wade on topic Run LinuxCNC on wayland
Hi, rmu

I already make Xwayland run now. But when I run LinuxCNC,it shows me the same error.
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 sure the Xwayland is running. I can see it by "ps -aux" cmd.

Thanks
Wade Xu
Last edit: 24 Jun 2021 08:45 by wade.

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

More
24 Jun 2021 08:56 #212796 by rmu
Replied by rmu on topic Run LinuxCNC on wayland

Hi, rmu
I already make Xwayland run now. But when I run LinuxCNC,it shows me the same error.


maybe your startup scripts don't export the appropriate DISPLAY environment variable. You could try launching LinuxCNC with
DISPLAY=:0 ~/linuxcnc-dev/scripts/linuxcnc

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

More
24 Jun 2021 08:58 #212797 by wade
Replied by wade on topic Run LinuxCNC on wayland
Hi rmu

That's awesome! I can run linuxCNC now !

Thanks a million!

Thanks
Wade Xu

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

More
24 Jun 2021 08:59 #212798 by rmu
Replied by rmu on topic Run LinuxCNC on wayland

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)


Look in /etc/ssh/sshd_config if X11Forwarding and related options are set to sensible values. In the ssh session, DISPLAY should be set to something like localhost:10.0 by the ssh daemon.

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

Time to create page: 0.075 seconds
Powered by Kunena Forum