(SOLVED) Borked My Graphical Login

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
Hawkeye_52
Level 3
Level 3
Posts: 149
Joined: Thu Mar 06, 2008 5:06 am
Location: USA

(SOLVED) Borked My Graphical Login

Post by Hawkeye_52 »

About two days ago I did a system update, dist-upgrade, and added a new ppa (the Infinality fonts) to my computer (configuration below). Everything worked fine after all that for the entire day. I shut the computer down, and then when I booted again the next day, I found myself at the command line:

Linux Mint 13 Maya computername tty1
computername login:


Never having experienced this before, I put in my user name, was prompted for my password, and then was delivered to another command line login:

Welcome to Linux Mint
*Documentation: http://www.linuxmint.com

0 packages can be update
0 updates are security updates

myusername@mycomputername ~ $

I tried to 'login' again without success; I tried 'startx' and 'sudo startx' without success. That being the extent of my vast command line knowledge, I then went to my other computer and logged into the LM forum at this section, and searched 'failed login', 'failed graphic login', 'failed MDM login', and probably some other 'failed xyz' that I can't remember. I tried reinstalling MDM - no love. After about 2.5 to 3 hours of ignorant frustration, for some reason, I went back, rebooted the computer, got to the command line:

myusername@mycomputername ~ $

and typed in 'sudo mdm'. At that point, I was delivered to my graphical login screen, got to my desktop, and everything ran perfectly. The problem is I have somehow destroyed the automatic boot script (?) that delivers me to my graphical login screen.

Any advice and/or specific directions will be greatly appreciated.

Hawkeye

COMPUTER SPECS:
HP Pavilion p6821pb
AMD Phenom II X2 521Dual Core Process with integrated ATI Radeon HD 4200 graphics (VESA RS880 kernel module)
4 GB of ram with a 750 GB hard drive
CD/DVD reader/burner
802.11 b/g/n wireless LAN
Running Linux Mint 13 Cinnamon, backported
Last edited by Hawkeye_52 on Sat Feb 01, 2014 3:31 pm, edited 1 time in total.
User avatar
kukamuumuka
Level 16
Level 16
Posts: 6699
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: Borked My Graphical Login

Post by kukamuumuka »

Try

Code: Select all

sudo dpkg-reconfigure mdm
User avatar
Flemur
Level 18
Level 18
Posts: 8604
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Borked My Graphical Login

Post by Flemur »

The graphical login (or setting it to NOT do a graphical login) is a linux PITA. I've never been able to get it to work without a "session manager" like mdm, which you really shouldn't need. (On my Arch install, it'd login to command line, then I'd type $ startx -- vt01 without any session manager installed, but never managed to get it to login and start X automagically without the extraneous session manager. On Mint I gave up doing anything other than having it start the normal way with mdm.)

So anyway, try these from the command line:
$ sudo apt-get purge mdm
$ sudo apt-get install mdm
That'll remove all the mdm stuff, and then install a new copy of MDM, hopefully with the correct settings automagically set for you.

Edit: try the sudo dpkg-reconfigure mdm first as above, then what I said if that doesn't work.
Edit2: make sure you have internet connection before you do the purge or you're hosed!
$ ping google.com
and see if you get anything.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Hawkeye_52
Level 3
Level 3
Posts: 149
Joined: Thu Mar 06, 2008 5:06 am
Location: USA

Re: Borked My Graphical Login

Post by Hawkeye_52 »

administrollaattori wrote:Try

Code: Select all

sudo dpkg-reconfigure mdm
Output from terminal after command:

Upstart detected. Removing rc.d links.
Removing any system startup links for /etc/init.d/mdm ...
Linking /usr/bin/gdmflexiserver to /usr/bin/mdmflexiserver


No change in my login after a re-boot. :(

Hawkeye
Hawkeye_52
Level 3
Level 3
Posts: 149
Joined: Thu Mar 06, 2008 5:06 am
Location: USA

Re: Borked My Graphical Login

Post by Hawkeye_52 »

Flemur wrote:The graphical login (or setting it to NOT do a graphical login) is a linux PITA. I've never been able to get it to work without a "session manager" like mdm, which you really shouldn't need. (On my Arch install, it'd login to command line, then I'd type $ startx -- vt01 without any session manager installed, but never managed to get it to login and start X automagically without the extraneous session manager. On Mint I gave up doing anything other than having it start the normal way with mdm.)

So anyway, try these from the command line:
$ sudo apt-get purge mdm
$ sudo apt-get install mdm
That'll remove all the mdm stuff, and then install a new copy of MDM, hopefully with the correct settings automagically set for you.

Edit: try the sudo dpkg-reconfigure mdm first as above, then what I said if that doesn't work.
Edit2: make sure you have internet connection before you do the purge or you're hosed!
$ ping google.com
and see if you get anything.
Output from terminal after purge command:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libunistring0:i386 librbd1 libgtk-vnc-1.0-0 msr-tools libaio1 seabios libgomp1:i386 python-urlgrabber librados2 cpu-checker libgtk-vnc-2.0-0 python-gtk-vnc ebtables vgabios libcroco3:i386 libgraphicsmagick++3 gir1.2-gdesktopenums-3.0 libgettextpo0:i386 libnuma1
libapparmor1 kvm-ipxe libgvnc-1.0-0 libgsoap1 gir1.2-gjsdbus-1.0 bridge-utils
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
mdm*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 14.4 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 873729 files and directories currently installed.)
Removing mdm ...
Removing link /usr/bin/gdmflexiserver
Purging configuration files for mdm ...
Removing user `mdm' ...
Warning: group `mdm' has no more members.
Done.
dpkg: warning: while removing mdm, directory '/usr/share/mdm/applications' not empty so not removed.
Processing triggers for mintsystem ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot

Output from terminal after install command:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libunistring0:i386 librbd1 libgtk-vnc-1.0-0 msr-tools libaio1 seabios libgomp1:i386 python-urlgrabber librados2 cpu-checker libgtk-vnc-2.0-0 python-gtk-vnc ebtables vgabios libcroco3:i386 libgraphicsmagick++3 gir1.2-gdesktopenums-3.0 libgettextpo0:i386 libnuma1
libapparmor1 kvm-ipxe libgvnc-1.0-0 libgsoap1 gir1.2-gjsdbus-1.0 bridge-utils
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
mdm
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/4,224 kB of archives.
After this operation, 14.4 MB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package mdm.
(Reading database ... 873518 files and directories currently installed.)
Unpacking mdm (from .../mdm_1.4.8+maya_amd64.deb) ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for mintsystem ...
Setting up mdm (1.4.8+maya) ...
Adding group `mdm' (GID 128) ...
Done.
Warning: The home dir /var/lib/mdm you specified already exists.
Adding system user `mdm' (UID 116) ...
Adding new user `mdm' (UID 116) with group `mdm' ...
The home directory `/var/lib/mdm' already exists. Not copying from `/etc/skel'.
adduser: Warning: The home directory `/var/lib/mdm' does not belong to the user you are currently creating.
usermod: no changes
usermod: no changes
usermod: no changes
Upstart detected. Removing rc.d links.
Removing any system startup links for /etc/init.d/mdm ...
Linking /usr/bin/gdmflexiserver to /usr/bin/mdmflexiserver


No change in my login after a re-boot. :(

Looks like I am 'snake-bit' or I have a login gremlin that has taken up residence in my computer...

Hawkeye
User avatar
kukamuumuka
Level 16
Level 16
Posts: 6699
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: Borked My Graphical Login

Post by kukamuumuka »

How about if you install an another login manager like KDM?

Code: Select all

sudo apt-get install kdm
sudo dpkg-reconfigure kdm
Hawkeye_52
Level 3
Level 3
Posts: 149
Joined: Thu Mar 06, 2008 5:06 am
Location: USA

Re: Borked My Graphical Login

Post by Hawkeye_52 »

administrollaattori wrote:How about if you install an another login manager like KDM?

Code: Select all

sudo apt-get install kdm
sudo dpkg-reconfigure kdm
It worked! Sad to see that I couldn't get the mdm back up and running, it being Linux Mint's baby and all, but I am happy to be back to an automated process that get's me to my login screen.

Thanks for all your help and for sticking with me.

For anyone interested, the terminal output was:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libunistring0:i386 librbd1 libgtk-vnc-1.0-0 msr-tools libaio1 seabios libgomp1:i386 python-urlgrabber librados2 cpu-checker libgtk-vnc-2.0-0 python-gtk-vnc ebtables vgabios libcroco3:i386 libgraphicsmagick++3 gir1.2-gdesktopenums-3.0 libgettextpo0:i386 libnuma1
libapparmor1 kvm-ipxe libgvnc-1.0-0 libgsoap1 gir1.2-gjsdbus-1.0 bridge-utils
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
kde-wallpapers-default kde-workspace-kgreet-plugins libkworkspace4abi1 libqimageblitz4
Suggested packages:
kdepasswd kde-wallpapers
The following NEW packages will be installed:
kde-wallpapers-default kde-workspace-kgreet-plugins kdm libkworkspace4abi1 libqimageblitz4
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,056 kB of archives.
After this operation, 6,952 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com/ubuntu/ precise-updates/main kde-wallpapers-default all 4:4.8.3-0ubuntu0.1 [3,035 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ precise-updates/main kde-workspace-kgreet-plugins amd64 4:4.8.5-0ubuntu0.3 [39.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ precise-updates/main libkworkspace4abi1 amd64 4:4.8.5-0ubuntu0.3 [61.8 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ precise/main libqimageblitz4 amd64 1:0.0.6-4 [51.6 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ precise-updates/main kdm amd64 4:4.8.5-0ubuntu0.3 [869 kB]
Fetched 4,056 kB in 2s (1,865 kB/s)
Preconfiguring packages ...
Selecting previously unselected package kde-wallpapers-default.
(Reading database ... 873731 files and directories currently installed.)
Unpacking kde-wallpapers-default (from .../kde-wallpapers-default_4%3a4.8.3-0ubuntu0.1_all.deb) ...
Selecting previously unselected package kde-workspace-kgreet-plugins.
Unpacking kde-workspace-kgreet-plugins (from .../kde-workspace-kgreet-plugins_4%3a4.8.5-0ubuntu0.3_amd64.deb) ...
Selecting previously unselected package libkworkspace4abi1.
Unpacking libkworkspace4abi1 (from .../libkworkspace4abi1_4%3a4.8.5-0ubuntu0.3_amd64.deb) ...
Selecting previously unselected package libqimageblitz4.
Unpacking libqimageblitz4 (from .../libqimageblitz4_1%3a0.0.6-4_amd64.deb) ...
Selecting previously unselected package kdm.
Unpacking kdm (from .../kdm_4%3a4.8.5-0ubuntu0.3_amd64.deb) ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for man-db ...
Setting up kde-wallpapers-default (4:4.8.3-0ubuntu0.1) ...
Setting up kde-workspace-kgreet-plugins (4:4.8.5-0ubuntu0.3) ...
Setting up libkworkspace4abi1 (4:4.8.5-0ubuntu0.3) ...
Setting up libqimageblitz4 (1:0.0.6-4) ...
Setting up kdm (4:4.8.5-0ubuntu0.3) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place


BTW, I think the dpkg-reconfigure command was unnecessary for kdm, because the install process identified that there would be a conflict with mdm, and required that I make a choice. When I ran the dpkg-reconfigure command, it just returned me to the same 'choice screen' that I had to complete with the install command. It was good to be more safe than sorry, though.

Looking forward to many happy logins...

Hawkeye
Metalfyre
Level 1
Level 1
Posts: 12
Joined: Thu Oct 10, 2013 7:39 am

Re: (SOLVED) Borked My Graphical Login

Post by Metalfyre »

I had the same problem after I tried starting up a game which left me only with a black screen so I forced the reboot. After that the MDM logon manager did not work and I had to use startx after loging on to get into my graphical desktop.
The solution was to install the KDM manager, but is there really no other way to get the MDM manager back? I tried all possible solutions as were mentioned in this thread, but just like Hawkeye, nothing worked so far.

However, there must be a solution to get the MDM manager working again, or not?
Post Reply

Return to “Installation & Boot”