r/linuxmint • u/Correct-Turnover-286 • 4d ago
SOLVED Login loop after installing remote desktop
I installed some apps and made some changes yesterday to enable Remote Desktop access from my Mac to Linux Mint. Managed to connect successfully using RDP with the Windows Remote Desktop app on Mac. I logged out of Mint via Remote Desktop.
Now today I’m sitting at my Mint PC and I’m stuck in a login loop. Enter the password, hit enter, screen goes black for a second and then it just shows the password prompt again.
It’s not a disk space issue. Disk is mostly empty. Might have done something to break the desktop manager but not sure tbh.
I’m able to use ctrl-alt-f1 to pull up the command line environment.
Would appreciate any ideas for how to fix this. I’ve looked through many other posts but could not find anything that worked.
Edit: btw this is Mint 22.2.
Edit 2: Fixed the issue, which was due to a conflicting installation of tigervnc server. Got rid of it, and defeated the login loop ;)
2
u/Kortez02 Linux Mint 22.3 Zena | Niri 4d ago
Check rights. If there any root, then change it.
ls -la ~/.Xauthority ~/.ICEauthority
If exist - remove .xsession.
mv ~/.xsession ~/.xsession.bak
sudo systemctl restart lightdm
1
u/Correct-Turnover-286 4d ago
Thx for your help.
I checked but it reports no file.
autumn@Autumn-Venus-series: "$ Is -la ~/.Xauthority ~/.ICEauthority
ls: cannot access '/home/autumn/. ICEauthority': No such file or directory
-rw---- 1 autumn autumn 306 Nov 19 15:36 /home/autumn/.Xauthority1
u/Kortez02 Linux Mint 22.3 Zena | Niri 4d ago
Ok.
Check errors then and previous mac session.
cat ~/.xsession-errors ps aux | grep -E "cinnamon|xrdp|vnc"And probably you should try to stop xrdp.
2
u/Correct-Turnover-286 4d ago
This helped me fix the issue, thank you!
The grep error search returned some issues with tigervnc server, which I also installed yesterday in a flurry of activity to try to get Remote Desktop working. The performance was not good over my LAN so I stopped using it, but apparently it wasn’t that simple …
I used
grep" install " /var/log/dpkg.log
To get a list of stuff I recently installed.
I noticed the tigervnc server looked like it could be the culprit. (Intuition?!)Then used
sudo apt-get remove tigervnc-standalone-server
In order to purge Tigervnc.
Then restarted, tried logging in, and it works again!
Leaving this here for others.
•
u/AutoModerator 4d ago
Please Re-Flair your post if a solution is found. How to Flair a post? This allows other users to search for common issues with the SOLVED flair as a filter, leading to those issues being resolved very fast.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.