cancel
Showing results for 
Search instead for 
Did you mean: 
karim_el
Cadet
Cadet
  • 1,711 Views

gedit issue

Jump to solution

i activated x11 for ssh then i connected from ssh client to ssh server and i ran set of times gedit but it does not work

# gedit
Unable to init server: Could not connect: Connection refused

(gedit:3520812): Gtk-WARNING **: 13:42:24.271: cannot open display:

have you any advises to fix it ?

1 Solution

Accepted Solutions
karim_el
Cadet
Cadet
  • 1,693 Views

Thank you for you suggestion. happily i resolved the issue by exporting DISPLAY value.

View solution in original post

3 Replies
Chetan_Tiwary_
Community Manager
Community Manager
  • 1,698 Views

Have you tried ssh with  -X   or used "xhost local:" 

Refer here : https://unix.stackexchange.com/questions/584575/how-to-run-sudo-gedit-without-connection-refusal 

0 Kudos
karim_el
Cadet
Cadet
  • 1,694 Views

Thank you for you suggestion. happily i resolved the issue by exporting DISPLAY value.

Chetan_Tiwary_
Community Manager
Community Manager
  • 1,689 Views

ok @karim_el great !

0 Kudos
Join the discussion
You must log in to join this conversation.