LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   login problem (https://www.linuxquestions.org/questions/linux-newbie-8/login-problem-853575/)

swapmax 01-01-2011 10:40 AM

login problem
 
hi guys,i am in great need of help.i have no idea what happened to my OS(ubuntu10.04).it doesn't give me any option to enter my login name & passwd.i just get a blank(default) login screen.last time when it worked,i was trying to install GTK+2.8,but due to my mistake i deleted glib using cmd (sudo apt-get purge glib)and after that i even tried to launch terminal but it failed to launch.also tried to play media files using vlc but it didn't work.so i tried to restart my os and finally got stuck in the problem.i have no idea what to do,please help.Is there any cmd to see what problem occurred or which package is missing

camorri 01-01-2011 11:12 AM

From your description, it sounds like the xserver is not running, and you are looking at a login screen. If you enter you user, and password, can you login?

If yes, then you can use the command line tool to install the deleted packages.

It would help a lot if you used the shift key to start a sentence, and the space bar to separate things. That post is ver difficult to read, you do want our help, don't you?

thegeek 01-01-2011 11:21 AM

Hi,

I would suggest that the first thing to is to repair the missing packages.
You should be able to log in to a text shell by pressing ctrl-alt F1.

Then you can reinstall the missing packages with the command sudo apt-get install glib

(You can switch back to graphical mode with ctrl-atl F7)

If you still have issues after trying this, look at the Xserver log with the command cat /var/log/Xorg.0.log

Good luck!

swapmax 01-01-2011 11:31 AM

Thank you
 
Thanks a lot.But I can only login through recovery mode or other console(Alt+F1).Going through normal mode shows me default ubuntu login screen but with no place to enter my username and password.

swapmax 01-01-2011 11:44 AM

Quote:

Originally Posted by thegeek (Post 4209635)
Hi,

I would suggest that the first thing to is to repair the missing packages.
You should be able to log in to a text shell by pressing ctrl-alt F1.

Then you can reinstall the missing packages with the command sudo apt-get install glib

(You can switch back to graphical mode with ctrl-atl F7)

If you still have issues after trying this, look at the Xserver log with the command cat /var/log/Xorg.0.log

Good luck!

I already tried to install glib but it says (the current version is the newest version),meaning glib is already there.May I know what is Xserver log.further i can only login through recovery mode or other console but have no graphical mode.

markush 01-01-2011 11:44 AM

Hi, can you login on the console? (the black screen with white letters)

Be aware that there is no output while entering the password!!! This is normal.

If this works do what thegeek wrote
Code:

sudo apt-get install glib
Markus

markush 01-01-2011 11:47 AM

post the output of
Code:

tail /var/log/Xorg.0.log
you may use[code]
Code:

tail /var/log/Xorg.0.log > xorglog.txt
which creates a textfile "xorglog.txt" with the output, this you can save on your Windows-partition and then post it out of Windows after rebooting.

Markus

swapmax 01-01-2011 11:56 AM

Quote:

Originally Posted by markush (Post 4209649)
post the output of
Code:

tail /var/log/Xorg.0.log
you may use[code]
Code:

tail /var/log/Xorg.0.log > xorglog.txt
which creates a textfile "xorglog.txt" with the output, this you can save on your Windows-partition and then post it out of Windows after rebooting.

Markus

Sir,I am sorry for my ignorance but once I am into recovery mode or other console,how can i save it in windows partition.What command does this work?

markush 01-01-2011 12:03 PM

well, look at
Code:

df -h
this will show you where your Windows-partition is mounted in Linux. Here as an example my computer:
Code:

markus@samsung:~$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/root              35G  9.9G  23G  31% /
/dev/sda8            7.9G  6.0G  1.6G  80% /home
/dev/sda11            50G  22G  26G  46% /usr/local/public
/dev/sda5              35G  14G  20G  41% /usr/local/gentoo
/dev/sda9              35G  9.2G  24G  29% /usr/local/slackware
tmpfs                2.0G    0  2.0G  0% /dev/shm
/dev/sda3              51G  32G  20G  63% /usr/local/win7

in my case I would have to copy
Code:

sudo cp xorglog.txt /usr/local/win7
which is the c: drive of my Windows7 installation.

Markus

swapmax 01-01-2011 12:52 PM

1 Attachment(s)
Sir,i created bootable usb and logged in through that and then copied xorglog file to windows partition, which i am now posting to you.

markush 01-01-2011 01:07 PM

Hi swapmax,

is this really the Xorg.0.log from the harddrive or the Xorg.0.log from the live-USB-system?

The logfile you attached to your post doesn't show any remarkable, it seems that the Xserver exited without any errors.

Maybe the configuration of gdm (the loginmanager for Gnome) has gone wild.

Markus

swapmax 01-02-2011 03:01 AM

Quote:

Originally Posted by markush (Post 4209718)
Hi swapmax,

is this really the Xorg.0.log from the harddrive or the Xorg.0.log from the live-USB-system?

The logfile you attached to your post doesn't show any remarkable, it seems that the Xserver exited without any errors.

Maybe the configuration of gdm (the loginmanager for Gnome) has gone wild.

Markus

Sir this log file is from my hard-disk alone.I logged in through usb.Then went to 'places' which showed me my / partition of ubuntu (which is in hardisk).Through this I copied the log file you asked me to and pasted in windows partition.Now is there something I can do sir because I really don't want to format.

markush 01-02-2011 03:57 AM

As far as I can see, the Xorg.0.log doesn't show any remarkable issues. So the problem seems to be the loginmanager gdm. You may try to reinstall gdm when booting with the Live-USB-drive. Maybe this fixes any problems with the configuration.

And read the documentation for your system, google for "Ubuntut login" or "Ubuntu gdm configuration".

I hope this helps.

Markus

camorri 01-02-2011 05:28 AM

Quote:

Sir this log file is from my hard-disk alone.I logged in through usb.Then went to 'places' which showed me my / partition of ubuntu (which is in hardisk).Through this I copied the log file you asked me to and pasted in windows partition.
If you booted the system from a usb stick, the '/' is the root of the USB system, in ram, this is NOT the root system when booted from the hard drive.

The hard drive will have to be mounted to the USB's file system, probably at /mnt/yourharddrive or /media/yourharddrive.

So, the log file you posted shows no errors because this is the one created during a successful boot from the USB stick. Some systems will automount any found HD partitions, some will not. You may have do a manual mount to see the failing Xorg.0.log file.

Have another look, and post the file again.

markush 01-02-2011 05:34 AM

Quote:

Originally Posted by camorri (Post 4210245)
...So, the log file you posted shows no errors because this is the one created during a successful boot from the USB stick. Some systems will automount any found HD partitions, some will not. You may have do a manual mount to see the failing Xorg.0.log file...

But the last lines of the Xorg.0.log file shows that the modules for touchpad etc are being unloaded. So I thought that this logfile belongs to a system which already went down, whereas the booted Live-USB is still running and the modules would not yet be unloaded.

Markus


All times are GMT -5. The time now is 03:08 PM.