One of the wallpapers has XFCE on it, but I didn’t change my desktop environment. Also of note, when I open the terminal it doesn’t look the same as it used to. Instead of the dark purple window it’s a black window with white text and the window’s icon is a red “X” with a dark blue “T” on it.

This is a headless machine and I connect to it through remote-desktop.

If I go through the applications menu (manually clicking, the super key does nothing and my keyboard does not have a “Fn” key) and go to settings I get the window on the left. Changing the settings in this window does nothing. Right clicking the desktop and clicking “desktop settings” I get the window on the right. This window correctly changes the wallpaper.

When I open the home folder I get Thunar.

My guess is there are two desktop environments competing or something right now? How can I fix this?

Also, weirdly, if I click my name in the upper right I can “lock screen” and “log out…” but I can’t “switch user,” “suspend,” or “shut down.”

Thank you in advance for any help.

19 points

It looks like you are running XFCE instead of GNOME (the normal Ubuntu desktop). I’m not sure how that happened… but you an always just install another desktop.

For instance, you can try to make sure you have the ubuntu-desktop or ubuntu-desktop-minimal metapackage installed:

sudo apt install ubuntu-desktop-minimal

After that, the login manager should allow you to select the Ubuntu session rather than the XFCE one.

permalink
report
reply
14 points

Hey thanks. I had started following this guide right before I saw your post:

https://ubunlog.com/en/how-to-reinstall-in-graphical-environment-of-ubuntu-when-the-desktop-does-not-load/

Essentially the same thing, except the guide uses “apt-get install –reinstall ubuntu-desktop” I used “sudo apt install ubuntu-desktop” and it found stuff to install. The terminal is running now. I’ll update the post once it’s done. Hope this works!

permalink
report
parent
reply
2 points

There are different flavours of Ubuntu with the other desktop environments (called Xubuntu, Kubuntu, and so on). The posted screenshot is indeed a mishmash of Gnome and Xfce though.

permalink
report
parent
reply
2 points

Ok, so after installing ubuntu-desktop and reinstalling ubuntu-desktop the desktop hasn’t changed.

Ctrl+alt+T brings up the familiar terminal now though, and I can open a nautilus window by typing “nautilus.”

“echo $DESKTOP_SESSION” returns “xfce.” I’m logging into this machine remotely. Since I’m remote, I don’t think I can log out and still be “connected” to change the DE. Is there another way to change it?

If I connect a screen to the machine the desktop doesn’t load, I had to change a setting (of which I can’t remember, for a reason I can’t remember - something to do with optimizing the machine for remote desktop) and now the desktop only renders on the remote session.

permalink
report
parent
reply

How are you using it remotely? VNC?

Perhaps the server config started defaulting to XFCE. Maybe what happened is entire XFCE DE got marked as a dependency, installed during update, and then when some config defaulting to XFCE thanks to this became valid, you ended up here.

If it’s VNC, what do you have in ~/.vnc/xstartup? Maybe a line like xfce4-session &?

permalink
report
parent
reply
1 point

This sounds plausible. I have seen a few guides for headless use suggesting disabling the built-in remote desktop feature and setting up xrdp, xvnc or related and then trying to fixup that session.

permalink
report
parent
reply
18 points

I used Ubuntu from version 8.04 to 18.04 and not once did I have a successful upgrade between major versions. There is always something that gets broken to the point that a reinstall is necessary.

permalink
report
reply
8 points

well, I managed to upgrade from 16.04 to 22.04 without any major issues

permalink
report
parent
reply
1 point

14.04 to 22.04 so far

permalink
report
parent
reply
1 point

Oh, so it’s not just me either. It’s one of the reasons I’ll never install Ubuntu.

permalink
report
parent
reply
2 points

Me too.

permalink
report
parent
reply
2 points

And there was me thinking that was a mint problem…but it’s never broken nearly badly enough to force a reinstall. It’s just weird not being able to do a full upgrade unless you temporarily uninstall some packages.

permalink
report
parent
reply
1 point

I didn’t have an issue like this going from bionic beaver to focal fossa, but I don’t think my setup was as complicated before. Do other distros have this problem? Mint? Debian? (Does Debian ever update?)

permalink
report
parent
reply
4 points
*

My guess is that something related to the headless setup you had changed during upgrade - likely some package got obsoleted and removed. Then you got some default behaviour from the replacement package along with the rest of the setup.

If you don’t get the help needed to resolve this here, you should also post in askubuntu.com.

permalink
report
reply
2 points
*

That makes a lot of sense. I’ll work on logging into the machine locally and see what I can figure out from there. Thanks!

EDIT: I can’t figure out how I set this up. Somehow I routed the main display to the RDP session, meaning if I plug in a monitor I get a black screen instead of the desktop. I have to figure out what file I edited to do that. None of the tutorials that I can find now use whatever method I used roughly 6 years ago.

permalink
report
parent
reply
1 point

You could try finding changed config files by running:

sudo debsums -ac

Note that this won’t catch all. There are files that packages install and don’t touch afterwards. I my case for example it does catch that /etc/gdm3/custom.conf was modified to enable autologin among other things.

permalink
report
parent
reply
3 points

Tbh I don’t recommend Ubuntu to people anymore

permalink
report
reply
2 points

Totally fair. This machine has just been long running and switching distros has been more work than it’s worth. Though because things are breaking I’m looking to alternatives now. But for the time being, and to help me figure out this problem if I have it in the future, I’m trying to figure this out.

permalink
report
parent
reply
3 points

you’re running xfce!

do you want to be running some other desktop environment?

if so, look at what kind of session your remote connection software is asking the remote machine to start.

permalink
report
reply
1 point

The problem is that some desktop elements/settings seem to be xfce while some others are gnome. I’m going to need to do a deep dive to figure out how I set up remote desktop on that machine. Log in locally, get it working locally correctly, then see if I can get it working over RDP correctly.

permalink
report
parent
reply
1 point

You can always just delete you user config directories, uninstall Xfce then log back in snd see what happens…

permalink
report
parent
reply
1 point

Oh man, I can’t figure out what I did.

Somehow I routed the main display to the RDP session, meaning if I plug in a monitor I get a black screen instead of the desktop. I have to figure out what file I edited to do that. But searching online now none of the tutorials use whatever method I used roughly 6 years ago.

Oof. This is rough. What config files are you referring to?

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 8.4K

    Monthly active users

  • 3.4K

    Posts

  • 40K

    Comments