cancel
Showing results for 
Search instead for 
Did you mean: 
karim_el
Cadet
Cadet
  • 206 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
  • 188 Views

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

View solution in original post

3 Replies
Chetan_Tiwary_
Moderator
Moderator
  • 193 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
  • 189 Views

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

Chetan_Tiwary_
Moderator
Moderator
  • 184 Views

ok @karim_el great !

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