View previous topic :: View next topic |
Author |
Message |
blert n00b
Joined: 21 Mar 2016 Posts: 4 Location: Trentino Alto Adige
|
Posted: Mon Mar 21, 2016 4:33 am Post subject: autologin xfce-lightdm |
|
|
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 |
|
|
324874 Apprentice
Joined: 26 Jul 2014 Posts: 168
|
Posted: Mon Mar 21, 2016 8:22 am Post subject: |
|
|
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 |
|
|
blert n00b
Joined: 21 Mar 2016 Posts: 4 Location: Trentino Alto Adige
|
Posted: Mon Mar 21, 2016 12:22 pm Post subject: |
|
|
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 |
|
|
324874 Apprentice
Joined: 26 Jul 2014 Posts: 168
|
Posted: Mon Mar 21, 2016 4:30 pm Post subject: |
|
|
blert,
your english is a bit difficult to understand !
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 ?
- /etc/lightdm/lightdm.conf
- /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 |
|
|
blert n00b
Joined: 21 Mar 2016 Posts: 4 Location: Trentino Alto Adige
|
Posted: Mon Mar 21, 2016 9:08 pm Post subject: |
|
|
thank you very much for your patience.
- /etc/lightdm/lightdm.conf
- /etc/conf.d/xdm
startx
- I installed x11-apps/xinit
- I created the file 90xsession
Code: | # echo XSESSION="Xfce4" > /etc/env.d/90xsession |
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 |
|
|
324874 Apprentice
Joined: 26 Jul 2014 Posts: 168
|
Posted: Tue Mar 22, 2016 7:27 am Post subject: |
|
|
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 :
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 |
|
|
blert n00b
Joined: 21 Mar 2016 Posts: 4 Location: Trentino Alto Adige
|
Posted: Tue Mar 22, 2016 7:26 pm Post subject: |
|
|
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 |
|
|
324874 Apprentice
Joined: 26 Jul 2014 Posts: 168
|
Posted: Tue Mar 22, 2016 7:56 pm Post subject: |
|
|
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 !!
Then try to restart lightdm with /usr/sbin/lightdm
Excuse me, blert ! I should have checked !
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 |
|
|
324874 Apprentice
Joined: 26 Jul 2014 Posts: 168
|
Posted: Tue Mar 22, 2016 8:07 pm Post subject: |
|
|
Could you also show the configuration files in the lightdm directory and the file 's content of ~/.xsession-errors, please ?
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 |
|
|
324874 Apprentice
Joined: 26 Jul 2014 Posts: 168
|
Posted: Sat Mar 26, 2016 1:01 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|