🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.user
Article #353

Re: xfce only shows a black screen

#353
From: Greg Wooledge
Date: Tue, 03 Nov 2026 13:20
75 lines
4976 bytes
On Tue, Nov 03, 2026 at 06:34:02 -0500, Dan Ritter wrote:
> Donald MacDougall wrote: 
> > All I did after typing 'startx' (as me, not root) resulting in the black
> > screen was press ^Alt and the first 6 function keys none of which did
> > anything at all followed by Fn Alt and the function keys which also had no
> > effect, then I quick tapped the power key.  That caused a normal shutdown
> > with a rapid scrolling up the screen of the normal shutdown messages and
> > then the computer powered off.

If you never use lightdm to login, then I recommend you purge it.
Having it present but inactive may be causing confusion.  If you want
to start using it later, you can just install it then.

> "startx" starts X11.
> 
> Somewhere in the log file that you didn't copy will be the clue
> about what caused X11 to stop.

To be clear, the log files in question would be:

~/.xsession-errors                  # for the X11 client applications
~/.local/share/xorg/Xorg.0.log      # for the X11 server, normally
  or
/var/log/Xorg.0.log                 # for the X11 server, legacy mode

> You should read the man pages for "startx" and "xinit".

I mean... yeah, in theory?  Probably won't help much immediately.

> You say that you do not have a .xinitrc in your home directory.
> Try creating it with this line in it as the only content:
> 
> xfce4-session
> 
> Then run startx and tell us what happens.

In Debian specifically, ~/.xsession is preferred over ~/.xinitrc
because the former is used by both startx *and* the various display
managers.

When I asked my web browser's search agent for the magic command to
start XFCE, the results I got said startxfce4 instead of xfce4-session,
so I have no idea which one's right.   Maybe both.  Maybe neither.
I don't know.  The Arch Linux wiki <https://wiki.archlinux.org/title/Xfce>
says to use startxfce4 and they're usually a good source.

Before committing one of them to the file system, you should be able to
test each one in turn:

    startx startxfce4
    startx xfce4-session

Of course, that assumes you have a working X server, which at this point
is still in question.

If you *just* want to test the X server, what I would do is:

    apt-get install xterm
    startx xterm

That should give you a GUI display with a moving mouse cursor, and a
single 80x24 terminal window in the upper left corner.  Moving the
cursor into the terminal window should allow you to type in it.
Moving the cursor out of the window should remove focus, and typing
will no longer do anything.  The cursor within the terminal window
should change from solid to hollow depending on where the focus is.

Run the "exit" command in the window to terminate the session.

If that doesn't work, then the X server is malfunctioning, and you'll
need to look at the X server logs (paths shown above) to find out why.
(Either that, or xterm is malfunctioning, which would be unlikely.)

Oh, and just for good measure, I would run "df -h" on this system and
make sure none of the file systems are full.
Technical Details
Message-ID: <NVmAF-9BTw-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news.mb-net.net!open-news-network.org!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
References: <NUZNL-9phY-3@gated-at.bofh.it> <NUZNL-9phY-1@gated-at.bofh.it> <NVllf-9B7L-3@gated-at.bofh.it> <NVllf-9B7L-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news.mb-net.net!open-news-network.org!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Greg Wooledge <greg@wooledge.org>
Newsgroups: linux.debian.user
Subject: Re: xfce only shows a black screen
Date: Tue, 03 Nov 2026 14:20:01 +0100
Message-ID: <NVmAF-9BTw-3@gated-at.bofh.it>
References: <NUZNL-9phY-3@gated-at.bofh.it> <NUZNL-9phY-1@gated-at.bofh.it> <NVllf-9B7L-3@gated-at.bofh.it> <NVllf-9B7L-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-user-request@lists.debian.org  Tue Nov  3 13:15:04 2026
Old-Return-Path: <greg@wooledge.org>
X-Amavis-Spam-Status: No, score=-1.899 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, GB_FAKE_RF=0.001] autolearn=ham autolearn_force=no
X-Policyd-Weight: using cached result; rate: -4.6
Mail-Followup-To: debian-user@lists.debian.org
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Mailing-List: <debian-user@lists.debian.org> archive/latest/832683
List-ID: <debian-user.lists.debian.org>
List-URL: <https://lists.debian.org/debian-user/>
List-Archive: https://lists.debian.org/msgid-search/20261103131450.GA19459@wooledge.org
Approved: robomod@news.nic.it
Lines: 75
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Tue, 3 Nov 2026 08:14:50 -0500
X-Original-Message-ID: <20261103131450.GA19459@wooledge.org>
X-Original-References: <6144efd8-8159-42dd-b023-ec69e16a604b@usc.edu>
 <20261102125624.GA7729@wooledge.org>
 <784d165a-7885-456a-b88e-139b2ed85fdc@usc.edu>
 <aunGqu2mZuqHBCAr@randomstring.org>