LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LXDM not allowing me to login (https://www.linuxquestions.org/questions/linux-from-scratch-13/lxdm-not-allowing-me-to-login-4175600220/)

Captian Kangeroo 02-20-2017 12:11 PM

LXDM not allowing me to login
 
Hi everyone,
Had time to start messing with BLFS and lxdm login not accepting my passwd.
I restored this from a clone I made and the passwd is always the same for me.
I chrooted from host system and tried to reset passwd but it didn't work.
Any ideas and help appreciated.
Regards,
Captin

Luridis 02-20-2017 02:03 PM

What does your auth log say? Are you using PAM? SystemV or Systemd?

Captian Kangeroo 02-20-2017 02:29 PM

Hi
I'm using 7.10 standard version as far as I know. I installed xfce for my desktop. Can't figure why I can't get past login screen.
Never experienced this before. Host distro is Arch
Thanks for the reply

Luridis 02-20-2017 02:39 PM

have you looked at /var/log/auth /var/log/critical? Are you trying to login as root or as a user?

Luridis 02-20-2017 02:45 PM

If you're stuck booting to the graphical login you can get around that by:

Pressing "E" at the GRUB boot menu. Use the arrow keys to position the cursor to the end of the command line. And add one of these two:

For systemd: systemd.unit=multi-user.target
For systemV: init=3

AND THEN PRESS F10

Then you can check the logs. I recommend adding a grub menuentry with one of these so you won't have to type it each time you need to bypass the graphical login.

Captian Kangeroo 02-22-2017 05:58 AM

I decided to switch to lfs systemd . May be it will work better for me.
Thanks for the help

spiky0011 02-22-2017 11:26 AM

If you dont need a login manager (multiple DE,s) you can login with systemd automaticily

Luridis 02-22-2017 02:50 PM

Quote:

Originally Posted by Captian Kangeroo (Post 5674491)
I decided to switch to lfs systemd . May be it will work better for me.
Thanks for the help

I use it on desktops/workstations and it does make life a little easier in those situations. On my servers / routers I still use SystemV because it's simpler to setup and manage. The problem with GUI's on SystemV is the lack of development for things like ConsoleKit2 and elogind.

Keep in mind that with systemd you don't need to use all of it's included daemons and utilities. Personally, I reduce journald to a log buffer and use Metalog3 to do my actual logging. That is all systemd really needs it for anyway: to buffer the system log data during parallel startup. Finally, I replace systemd-networkd and systemd-resolvd with dhdcpd because it has more features and I'm more familiar with it.

Captian Kangeroo 02-23-2017 08:19 AM

Hey all,
I just finished building systemd lfs but no luck booting.Dreaded kernel panic.

here is my boot config file: I set it up same as with Version 7.10 standard version:
# Begin /boot/grub/grub.cfg
set default=0
set timeout=5

insmod ext2
set root=(hd1,4)

menuentry "GNU/Linux, Linux 4.7.2-lfs-7.10-systemd" {
linux /boot/vmlinuz-4.7.2-lfs-7.10-systemd root=/dev/sda4 ro
}

EOF

my fstab :
# Begin /etc/fstab

# file system mount-point type options dump fsck
# order

/dev/sda4 / ext4 defaults 1 1
/dev/<yyyy> swap swap pri=1 0 0

# End /etc/fstab




I've never had kernel panic on the standard lfs version booting as many times as I tried it.
I may clone this one and switch back to the standard version. At least it easy to boot and try some of your suggestions.
Glad I learned to use clonezilla. Saves a lot of work

Luridis 02-23-2017 08:37 AM

try this:

replace: linux /boot/vmlinuz-4.7.2-lfs-7.10-systemd root=/dev/sda4 ro
with: /vmlinuz-4.7.2-lfs-7.10-systemd root=/dev/sda4 ro

And see what happens...

ALso, fix your fstab for the swap <yyyy> isn't a valid device. ;)

spiky0011 02-23-2017 11:26 AM

Ok do you have a seperate boot partition? If you have vmlinuz-4.7.2-lfs-7.10-systemd in your LFS/boot,(sda4/boot). Then this is wrong, "set root=(hd1,4)"which =sdb4 it should be "set root=(hd0,4)"which =sda4.

(hd0.x) is the 1st HDD/sda the x is partition number in your case 4.
(hd1.x) is a second HDD/sdb

Hope I explanied that ok

Luridis 02-23-2017 11:48 AM

Quote:

Originally Posted by spiky0011 (Post 5675060)
Ok do you have a seperate boot partition?

Its hard to tell what's going on. He doesn't come back and answer the focus questions, posts half an fstab, doesn't say what the kernel panicked about...

Captian Kangeroo 02-23-2017 01:02 PM

Sorry guy's I been working on it . Going back and checking different settings.What I have now on boot is this error with this version 7-10:

/etc/rc.d/rc3.d/S70gpm
exited with return value 0f 2.
I been searching for answers forgot to return here.

This is a cloned Version 7-10 lfs/blfs completed with x and xfce4 installed.
I had no luck at all starting the 7-10 systemd version. So installed this one.
Thanks for reading and excuse me being away trying different things,
Regards
Captian

spiky0011 02-23-2017 02:24 PM

This very hard to follow and understand what is going on. You ask a Q on one thing then return
with something completly different. It would help you to pursue one problem and fix it. So the people trying to help can follow whats going and add other options. So basically this whole thread is a waste.

Sorry for the rant but look at it from our side.

Regards the last post is gpm installed?

Captian Kangeroo 02-23-2017 02:58 PM

Hey Spiky,
No problem . Go ahead and close the thread. I will wait until the new book is finished and start all over. Sorry about the confusion.
I had a system up and running at one time and could never repeat it with a fresh install.No success since. Anyway thanks for the help
and delete the posting if you like
Regards,


All times are GMT -5. The time now is 10:29 AM.