Yikes, I seem to have screwed things up pretty badly. I’m running a Manjaro Linux installation, and a couple days ago I switched my desktop from Mate to Plasma. But I noticed two annoying things:
The login screen was still using Mate’s display manager, not SDDM.
The desktop was defaulting to Mate, and had to be manually changed to Plasma on every login.
So today I had the “bright” idea of simply deleting Mate’s display manager, thinking that would force the OS to revert to using SDDM.
Nope! Instead, I now have no desktop at all, just terminals. I can log in on TTY1 through TTY6, on any of 3 accounts, and do anything that can be done via terminal, but ctrl-alt-F7 does gives just a black screen.
Stuff I’ve tried so far to no avail:
I tried uninstalling Mate entirely; problem persists.
I tried reinstalling Plasma; problem persists.
I tried launching SDDM manually by just typing “sddm”, but the results are bad: The SDDM “Maldives” login screen launches, I log in, the animated splash screen launches, a mouse pointer appears, then the animation freezes and I’m just left with a frozen splash screen and a mobile (but useless) mouse pointer.
So, how can I tell the OS, via command line, to start a SDDM desktop session (on TTY7, presumably)?
Update, 30min later: I was able to get back in! I had an epiphany: SDDM is “service” based, so may not work right if not launched as a service. So I typed “systemctl start sddm.service” and a normal SDDM service launched. Everything in the desktop appears to work. But it’s on TTY1, not TTY7 (as I think it should be, no?). So the question remains, how can set SDDM to start on TTY7 on system startup, instead of me having to first login on the TTY1 command line and manually type “systemctl start sddm.service”?
Re “clean fresh install”: Yikes. That does not sound “simple”, “fast”, “30 minutes” (more like 20-30 HOURS), safe, or even guaranteed to result in anything good happening. Especially seeing as I can now reliably start the system (I’m using it right now), albeit with 2 extra steps:
Enter BIOS password.
Select “Manjaro Linux” on Grub menu.
Log into TTY1 as root. (EXTRA STEP)
Type “systemctl start sddm.service” (EXTRA STEP)
Log-in on SDDM login screen as my regular user.
I’m just asking about how to get rid of steps 4 and 5 in that procedure (should be automated but isn’t). I’m pretty sure it has to do with “display-manager.service” being a symbolic link to “lightdm.service” (which doesn’t exist) whereas it should be a symbolic link to “sddm.service” (which does exist). But I don’t know where that file is located.
Re “the way it was before you installed Mate”: Before I installed Manjaro-Mate, this computer was Microsoft Windows 10. (And before that, Windows 8.) Nope, not going back.
Nor am I interested in going back to Mate. Nope, Manjaro-Plasma is working just fine for me; I just need to find a way to auto-launch sddm on tty7 on startup. Probably it’s that broken symlink I mentioned, if I can find the darn thing.
Update, a few minutes later: It works! Still on TTY1 instead of TTY7 (kinda weird), but maybe Plasma just does it that way? Dunno, I only have about 1 day experience with Plasma. But my desktop is now fully functional, which is what matters. Thanks for the tip.
If I boot a USB it takes less than a minute to load a desktop, then installing takes no more than 6 minutes.
After a reboot (which should now work) I can start up Timeshift, and that takes about 20 minutes to parse a list of files, and then move them to my installation - then rebooting brings me back to my familiar theming/layout etc of my previous KDE desktop.
After that, I can launch back-in-time to bring personal files back to the /home folders. This takes around 10 minutes.
It also guarantees undoing everything that got messed up when you started installing another desktop (slightly more reliable than trying to do it manually - how much can you remember from the massive list of installed apps?)
Well, kinda late now, as I completely deleted lightdm. But lets see what happens when I disable a nonexistant service:
%systemctl disable lightdm.service
Failed to disable unit: Unit file lightdm.service does not exist.
Now THAT is a direct, succinct, concise error message. I rather suspected the OS was going to say that, seeing as how I explicitly uninstalled first lightdm, then mate.
Water under the bridge now, as I’m moving forward with Plasma only. (Well, expect for a few bits of Mate that didn’t get uninstalled, such as I now have 2 different Bluetooth monitors in my system tray. I’ll have to remove the remaining vestiges later; I’m just glad to have my desktop back.)
Re “ZX Spectrum”: Sounds like a brand of car. But no, I have no idea what that is.
Re “boot to a USB”, in your earlier comment I thought you meant “install Manjaro-Plasma over existing Manjaro installation”, which would wipe out certain files (eg, “/etc/fstab”, “/etc/bash.bashrc”) which probably aren’t backed-up anywhere (I need to do new snapshots of my “/” and “/home” partitions; my backups are old), hence my “20-30 HOURS” estimate. (40-80 hours if “/home” also gets obliterated.)
Re “Timeshift”, while I’ve heard of it, and I think it’s installed on my machine, I’ve never used it and I know NOTHING about it. I should probably learn, yes, as I’ve been told it’s Linux’s primary way of doing backups. So far, I’ve been doing backups with Aomei Partition Manager (for whole-partition snapshots of bootable Windows and Linux partitions) and FreeFileSync (for keeping multiple copies of my data partitions on two different computers synced; ie, computer 2’s /c /d /e partitions are mirrors of computer 1’s /c /d /e partitions). But I should add Timeshift to my arsenal; thanks for goading me in that direction.
There are two main kinds of backup. Timeshift is good for system restore, not so great for complete restore - it overwrites all your files (so any work you did will get overwritten with old files).
So you set Timeshift with mostly normal settings, backup /home and hidden stuff, but enter omissions… for example, my Plex CACHE folder has a million tiny files - not needed.
So I excluded that, and my guayadeque (includes tons of podcast data) and Dropbox which is stored in the cloud.
Timeshift is set to save to another disk - so /mnt/T3/Timeshift folder is where that goes - it keeps 2 monthly, 3 weekly, 5 daily snapshots.