Jump to content

How to start gparted on Xfce over a VNC connection? It wouldn't start and says "cannot open display: :1.0"


linuxfan

Recommended Posts

I use a currently fully updated Armbian on an ODROID-C2. 

 

I start tigervnc like this in /etc/crontab:

 

@reboot linuxfan bash -lc 'vncserver -local host no'

 

My ~/.vnc/xstartup:

 

#!/bin/bash

exec startxfce4

 

Everything works over VNC but gparted. Nothing would happen when I click on the menu entry. When I try to start it from an Xfce terminal, it (somehow) tells my why it won't start:

 

$ sudo gparted

No protocol specified

 

(gpartedbin:23385): Gtk-WARNING **: 20:55:09.777: cannot open display: :1.0

 

I'm at my wits end and would be glad if someone can help me out.

Link to comment
Share on other sites

Maybe you ought to try http://xrdp.org/

A tutorial: https://linuxize.com/post/how-to-install-xrdp-on-debian-10/


VNC isn't secure. A way to secure VNC would be to tunnel the connection through SSH and such configuration is much more frustrating.
XRDP on the other hand runs very smoothly on most machines, you shouldn't run into issues when you have no Display jacked in and you're able to secure the connection with SSL/TLS

I'm not that experienced with XRDP or VNC but my headaches are decreasing since using XRDP ^^


 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines