Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Cannot open display

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
flyingsoccer
Posts: 1
Joined: 2021-10-18 12:49

Cannot open display

#1 Post by flyingsoccer »

I installed Debian 11 AMD64 and when i go to the terminal and want to edit some files i get cannot open display. I use Mate and with Gnome dsktop the same problem. How to fix this xhost + doesn t work is there a fix for this.

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: Cannot open display

#2 Post by sunrat »

You need to explain better. I'm guessing you want to open a GUI editor from terminal to edit files owned by root? I think that has been made difficult or impossible in recent GTK desktops. (maybe wrong, I don't use GTK desktops)
You should be able to edit root files with nano in a terminal.

Code: Select all

sudo nano filename
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Post Reply