Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
autologin xfce-lightdm
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
blert
n00b
n00b


Joined: 21 Mar 2016
Posts: 4
Location: Trentino Alto Adige

PostPosted: Mon Mar 21, 2016 4:33 am    Post subject: autologin xfce-lightdm Reply with quote

Hello everyone, I come from experiences of debian (minimal type), arch and freebsd.
I arrived from few, this is new distro for me.
the guide in English, is really complete, the first time I was able to install minimal gentoo amd64 architecture (laptop cpu intel i5-480M), unpack the stage3, to install the code sources and genkernel to compile my kernel.
after which, restarting, with three guides in hand, respectively, xorg, lightdm Xforce.
everything has been successful, with startx, my ordinary user, access my desktop xfce, and so far a great satisfaction.
the problem is one only for now ..:
- Autologin - do not execute him, I access my de startx with ordinary user.
What did I miss, although I really carefully executed to the letter all that I found on the official guide?
anyone can help me I thank him right now.
fogive me for bad english, I am italian.
the guides are clearly these:
https://wiki.gentoo.org/wiki/Handbook:AMD64
https://wiki.gentoo.org/wiki/Xorg/Guide
https://wiki.gentoo.org/wiki/LightDM
https://wiki.gentoo.org/wiki/Xfce
Back to top
View user's profile Send private message
324874
Apprentice
Apprentice


Joined: 26 Jul 2014
Posts: 168

PostPosted: Mon Mar 21, 2016 8:22 am    Post subject: Reply with quote

Hi blert, welcome !

Could you rephrase your problem, please ? I don't understand very well !
  • Do you want log automatically without enter password ?
  • Do you want log with startx instead with a display manager ?

I think being more concise and more precise could help. The link
below could help : http://www.catb.org/~esr/faqs/smart-questions.html#beprecise

Best regards,

neoptslap
Back to top
View user's profile Send private message
blert
n00b
n00b


Joined: 21 Mar 2016
Posts: 4
Location: Trentino Alto Adige

PostPosted: Mon Mar 21, 2016 12:22 pm    Post subject: Reply with quote

neoptslap hello, first thanks for the quick answer.
you must excuse me, I am been very imprecise.
I want to access my de xfce with password, via the dm lightdm, I have three users to be logged, now I must using a login shell.
Back to top
View user's profile Send private message
324874
Apprentice
Apprentice


Joined: 26 Jul 2014
Posts: 168

PostPosted: Mon Mar 21, 2016 4:30 pm    Post subject: Reply with quote

blert,

your english is a bit difficult to understand ! 8)

Maybe the italian forum is more friendly for you : https://forums.gentoo.org/viewforum-f-41.html

Personaly, I have to use a translator (like Google Translate) to check my sentences because I don't speak english very well !

Could you copy lines of the following files and paste lines on a pastebin (--> an hyperlink to the file's content), please ?
  1. /etc/lightdm/lightdm.conf
  2. /etc/conf.d/xdm

Does startx work ?
Quote:
https://wiki.gentoo.org/wiki/Xorg/Guide#Using_startx

Can you start xfce with startx ?
Quote:
https://wiki.gentoo.org/wiki/Xfce#Starting_Xfce_without_a_display_manager


Could you post a screenshot* using a image hosting service (--> an hyperlink to the image), please ?

* The screenshot will show us you current state.

You may use bpaste.net or pastebin.com as pastebin and imgur.com as an image hosting service ...
Back to top
View user's profile Send private message
blert
n00b
n00b


Joined: 21 Mar 2016
Posts: 4
Location: Trentino Alto Adige

PostPosted: Mon Mar 21, 2016 9:08 pm    Post subject: Reply with quote

thank you very much for your patience.

  1. /etc/lightdm/lightdm.conf
  2. /etc/conf.d/xdm

startx

  1. I installed x11-apps/xinit
  2. I created the file 90xsession
    Code:
    # echo XSESSION="Xfce4" > /etc/env.d/90xsession

  3. I created the file .xinit in to all the home my users
    Code:
    # echo exec startxfc4 > ~/.xinitrc


I can enter with the command "startx" as a user in my xfce desktop, so the "de" is ok
It can not, however, to view the log of lightdm, then the "dm" does not start at boot time; I hope I explained well now.
thank you very much!!
Back to top
View user's profile Send private message
324874
Apprentice
Apprentice


Joined: 26 Jul 2014
Posts: 168

PostPosted: Tue Mar 22, 2016 7:27 am    Post subject: Reply with quote

Hi blert,

I will try to help you but I want to warn you that I am a new Gnu/Linux user and I still have much to learn !
However, I will learn by trying to help you because through it I discover new things and it's nice to help others.

I notice that you have installed again x11-apps/xinit. It seems me it's part of the installation programs.
I have read a few interesting informations on the manual page of xinit :

Code:
$ man 1 xinit

Quote:
The xinit program is used to start the X Window System server and a first client program on systems
that are not using a display manager such as xdm(1) or in environments that use multiple window systems.
When this first client exits, xinit will kill the X server and then terminate.
...
...

... and it's better for end-users to use startx instead of "manually" start a client with xinit.

I do not know if you really need to use xinit directly ? If it's not necessary, maybe I could help you because I have
succeed log with LightDM.

Maybe, LightDM doesn't start at boot time because you have missing to add dbus and xdm to the default runlevel ?

Could you post the content of /var/log/lightdm/lightdm.conf and the content of the command emerge --info on a pastebin ?
Some information in /var/log/lightdm/lightdm.conf may be replaced to keep usernames anonymous !

Best regards,

neoptslap
Back to top
View user's profile Send private message
blert
n00b
n00b


Joined: 21 Mar 2016
Posts: 4
Location: Trentino Alto Adige

PostPosted: Tue Mar 22, 2016 7:26 pm    Post subject: Reply with quote

primarily, you're really very helpful, too, I agree with your way of thinking, I like to understand, and to share what I understand. as in the other Linux distros and from the electronics, which is my main passion.

it is true, x11-apps/xinit, is already inside the installation, I could clearly not to mention .. I think it's a distraction .. forgive me ..

ok so you think it is useless to create the .xinitrc file? is better no use xinit?

lightdm I think it's ok, I clearly gave the commands to the default runlevel:
Code:
# rc-update add dbus default

Code:
# rc-update add xdm default


in the my /var/log/ folder, not exist lightdm.log ...
but intrigued me, ever in the /var/log folder, so I place this xdm.log
and emerge --info
then, as you see there is this error and missing the lightdm log. this is strange?
Back to top
View user's profile Send private message
324874
Apprentice
Apprentice


Joined: 26 Jul 2014
Posts: 168

PostPosted: Tue Mar 22, 2016 7:56 pm    Post subject: Reply with quote

I know the .xinitrc may be useful so I think it's better to let this file.

I haven't activated autologin, maybe comment the two following lines in the /etc/lightdm/lightdm.conf could resolve the problem ?

Code:
autologin-user=tux
autologin-user-timeout=0


Edit : I thank the command below will restart/start lightdm and I didn't try it. Then I have tried it and
it's a bad thing ! Don't try it !! 8O

:!: Then try to restart lightdm with /usr/sbin/lightdm :arrow: :(

Excuse me, blert ! I should have checked ! :oops:

You can kill the process lightdm and restart the computer.

Code:
$ ps -ef | grep lightdm (this command shows you the lightdm's pid)
# kill -9 pid (lightdm's pid) (destroy the lightdm's process)
# shutdown -r now    (restart the computer)


Last edited by 324874 on Tue Mar 22, 2016 9:09 pm; edited 8 times in total
Back to top
View user's profile Send private message
324874
Apprentice
Apprentice


Joined: 26 Jul 2014
Posts: 168

PostPosted: Tue Mar 22, 2016 8:07 pm    Post subject: Reply with quote

Could you also show the configuration files in the lightdm directory and the file 's content of ~/.xsession-errors, please ?

Code:
$ ls /etc/lightdm/

I see the lightdm.pid file and the lightdm directory in my /var/run directory.
I see the .xsession-errors file in my home directory.

I hope you haven't broke your system and you could restart without problems !
I am going to leave ! Good night !

Best regards,

neoptslap


Last edited by 324874 on Sat Mar 26, 2016 5:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
324874
Apprentice
Apprentice


Joined: 26 Jul 2014
Posts: 168

PostPosted: Sat Mar 26, 2016 1:01 pm    Post subject: Reply with quote

blert,

Have you solved your problem ?
If yes, could you edit the title of your post and display [SOLVED], please ?
Finally, could you also add a brief presentation of your solution, please ?

This will improve the quality of the forum.

Best regards,

neoptslap
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum