New install, backup restored, cant login because of missing desktop theme

Since I have been having stutters after switching from an NV to AMD GPU I have installed Manjaro on another drive and restored a backup.

Now it wont let me log in because the desktop theme is not installed, while I thought a backup plays everything back including the theme.

Anyways, I have tried to get into the console on the login screen but I could not find a way. I thought it was F2 or alt, ctrl + F2 or some other F-button, no dice.

But even if I could get into the console I would not know howto install a desktop theme from there and I also do not want to change to another because that will reset all the desktop and task manager settings (I fell for that several times already and it was a pain).

Is there a way to install a theme from the console and how would I get into it from the login screen?

It depends on what backup software you used, and what its settings are. In the event of timeshift the home directories are not included in the backup/snapshot by default.

From within a graphical session — even one that has not fully initialized yet — it’s usually CtrlAltF3.

There is no easy way of doing it from the console, because you first need to download the theme — which involves a working desktop environment and/or a working browser — and then unpack it and move the components to the right places.

1 Like

Any way to set the theme to standard? I mentioned that not the main theme was changed but only the colour, plasma style and window decorations, because breeze has these ugly greyish window styles while I prefer full black.

Well, you can fetch the window decorations of your choice from store.kde.org by way of the Get New… button in the pertinent section of the window decorations, and likewise for the Plasma style.

The color scheme can be created by modifying an existing one or creating a new one from scratch.

Well I cant because I cant login.

All I can do at this point is to make a new backup with the ugly settings, install Manjaro again and play back the backup with the altered settings.

Well, at that point, you should be able to set a new theme.

By the way, I’m using an older variant of this one below. As black as you want. :wink:

:backhand_index_pointing_down:

The above is the global theme, but all of the components can be installed separately as well.

1 Like

Yea, but I was looking for a shorter way :slight_smile:

That one is right up my alley! I will try to find it once I get into it.

If the video’s do not stutter again after I restore the backup that is.

1 Like

They should have been:

Does it matter if it is btrfs or rsync for recovering the backup?

If it is just the desktop theme and not the global theme, then the setting is contained in the ~/.config/plasmarc file. I have my system set to “Breeze”, which is Plasma’s default:

cat ~/.config/plasmarc
 
[Theme]
name=default

To confirm that file is the one that sets Plasma’s desktop theme, I just changed to “Breath”, and the file immediately changed to:

cat ~/.config/plasmarc
 
[Theme]
name=breath

So, if you can login to a TTY session, just open the file in an editor:

nano ~/.config/plasmarc

Make the change to default (Breeze) or breath, save the file: Ctrl+S (or Ctrl+X if you want a prompt first), and then see if you can now log into a Plasma GUI.

Edit: reverted nano save command back to Ctrl+S. Refer: Cheatsheet for GNU nano

2 Likes

It is possible that certain files in your home directory — most notably under ~/.config and ~/.local/share — are messing things up. Likewise for hidden files directly under your home directory as well.

In the event of doubt, log in at a tty as root, rename /home/fred to /home/fred.bak, and create a new and empty /home/fred.

If you then log in at the GUI login screen again, it should start you off with a vanilla Plasma environment, and then you can try restoring things one by one from the .bak directory until you get problems, and then you’ll know what file caused the problem.

2 Likes

The first one I will try…

Resetting everything is what I dont want. It takes longer to set it right again than to play around with the backup.

Thank you so far. I’ll go and try that now.

2 Likes

It seems you were right, it did not restore the home folder. There is no /home/fred folder. If I explicitly activate the home AND root folders to be backed up, it does not restore them both, or should I have checked the options for the home folder check before I restored it? It makes no sense to me but well…

So it seems I have to do it all over again.

I’m not sure, but I think if they’re included in the backup then it should also automatically restore them. :thinking:

You might want to look at using a different application for backing up your /home/ directory, as timeshift is intended more for system snapshots than user data backups. Making separate backups for /home/ will also reduce the risk of overwriting your personal files with old data if you ever have to restore a system snapshot.

I’ve been using backintime-qt for my /home/ directory backups on Plasma for quite some time with no issues encountered. It is easy to set up and runs once a day. To save space on my backup drive, I’ve set it to keep the last 10 daily backups. You can install it by running:

pamac install backintime-qt

or

sudo pacman -Syu backintime-qt

Note: as you would be using backintime-qt for your /home/ directory, make sure that you open backintime-qt as a normal user, not as root. Ignore the “Back In Time (root)” entry in Plasma’s application launcher.

3 Likes

The first time it seems I did not go far enough in the options to mark the home folder, but this time I did. Interestingly the result was the same. No home/fred. Path does not exist thus I cannot login.

The odd part about it is, that even if it did not copy my home folder, it should be there from the main install, which tells me that something got copied. Totally weird to me.

But there might be some issues if the target drive for the backup is not the same, since I got some error on boot - forgot what it said though. Because I wanted to go from sdb to sdc. I guess it might be better to not change the drive when restoring the root.

Thank you, that will be my next try.

You meant I should still backup the root separately with timeshift, right?

I will try and hope I will not forget that after some time.

What was really baffling me though:

When I tried to reinstall Manjaro the installer crashed. Only after I repartitioned it to ntfs the crashes stopped. That could be why I could not install cachy-os again on this drive as well (it was on there before).

Kinda odd, that a Linux installer crashes (Manjaro) or produces unrelated errors (Cachy-OS) because it is not capable of deleting or reusing already existing Linux partitions (btrfs/ext4).

Yes. Continue using timeshift for root (system snapshots), and start using backintime-qt for home (user data).

2 Likes

The target partition is the one set in the configuration. If you change this, then of course the results will be unpredictable.

Also, if your system is spread out across multiple partitions — e.g. / and /home are on different partitions — then both of them must be mounted upon restoring the backup. If not, then everything will be restored to the root filesystem only.

1 Like

The standard target partition set would be the wrong one because the backup was done from sdb but I am trying to get Manjaro on SDC working with the image from SDB, so that I can reformat SDB since it has an empty partition infront of Manjaro and I couldnt manage to merge it with the Manjaro partition.

So it is probably best if I just restore the home dir on SDC and, if that works, install the apps manually. It is only important to me that I do not lose the desktop settings, the rest will be going fast.

That way it is also more likely that I get rid of the video stutter on mouse movement that I had since I switched GPU’s.

Kinda stupid of me not to start with only the home dir. I hope it works.

One time, when I am getting to it, I have to learn howto put the home folder on a separate disk, like my data disk. That would probably make reinstalls easier.

Thanks to both of you!

Then perhaps this tutorial below will be of interest to you… ,)

:backhand_index_pointing_down:

2 Likes

It worked but the stutter in videos is still there :confused:

Silly me, I didnt try vids on the fresh install.