您尚未登录。

#1 2020-05-11 12:59:05

chntang
会员
注册时间: 2020-05-11
帖子: 5

设置了XFCE/lightDM启用自动登录,还是需要'点击'登录两字才能进入桌面

请教保位大神


设置了XFCE/lightDM启用自动登录,还是需要'点击'登录两字才能进入桌面

有没有办法直接进入桌面,因为进入桌面之后才有网络链接。。


已经按下面的wiki设置了自动登录

https://wiki.archlinux.org/index.php/Li … B.E5.BD.95

离线

#2 2020-05-11 16:49:43

xtricman
エクス·トリクマン
注册时间: 2012-12-26
帖子: 1,267

Re: 设置了XFCE/lightDM启用自动登录,还是需要'点击'登录两字才能进入桌面

你看英文版的说法不太一样,按照Wiki说的来,你不说你具体干了什么,那我就默认你是进行了我所理解的“Wiki描述的操作”。建议截图。
我比较好奇什么配置才会导致进入桌面后才有网络连接


反社会,精神极其不稳定,随时可能炸碎身边所有人

离线

#3 2020-05-12 09:39:07

chntang
会员
注册时间: 2020-05-11
帖子: 5

Re: 设置了XFCE/lightDM启用自动登录,还是需要'点击'登录两字才能进入桌面

xtricman 说:

你看英文版的说法不太一样,按照Wiki说的来,你不说你具体干了什么,那我就默认你是进行了我所理解的“Wiki描述的操作”。建议截图。
我比较好奇什么配置才会导致进入桌面后才有网络连接

忘记说了,目前使用的是分支manjaro的arm版本,

具体如下图

FluxBB bbcode 登录


按照 wiki里的做了 启用自动登录和启用无密码交互登录

/etc/lightdm/lightdm.conf
autologin-user=amc

# groupadd autologin
# gpasswd -a amc autologin

/etc/pam.d/lightdm
#%PAM-1.0
auth        sufficient  pam_succeed_if.so user ingroup nopasswdlogin
auth        include     system-login


密码是不用输入了,但还需要点登录才能进入到系统

---------------------------------------------------------

网络的问题可能是我没叙述清楚

无线网卡使用的是DHCP方式,登录后可以获取到一个IP,可以正常通信

但在点“登录前”那个IP是ping不通的,一旦点登录后,ip即可ping通

最近编辑记录 chntang (2020-05-12 09:46:55)

离线

#4 2020-05-12 09:48:22

xtricman
エクス·トリクマン
注册时间: 2012-12-26
帖子: 1,267

Re: 设置了XFCE/lightDM启用自动登录,还是需要'点击'登录两字才能进入桌面

建议管理员移动至其他发行版
建议登录进桌面后贴一下本次启动的lightdm服务日志
你看你做的跟英文版 Wiki描述不一致,你不会添加用户到组的时候连#都输入了吧,你看不懂Wiki说啥?
https://wiki.archlinux.org/index.php/Li … _autologin

最近编辑记录 xtricman (2020-05-12 09:57:37)


反社会,精神极其不稳定,随时可能炸碎身边所有人

离线

#5 2020-05-12 10:23:00

chntang
会员
注册时间: 2020-05-11
帖子: 5

Re: 设置了XFCE/lightDM启用自动登录,还是需要'点击'登录两字才能进入桌面

xtricman 说:

建议管理员移动至其他发行版
建议登录进桌面后贴一下本次启动的lightdm服务日志
你看你做的跟英文版 Wiki描述不一致,你不会添加用户到组的时候连#都输入了吧,你看不懂Wiki说啥?
https://wiki.archlinux.org/index.php/Li … _autologin

我跟着英文版的也做了,我猜他是不是原本就没这个功能(一定要点“Login”才能登录)23333333

--------------------------------------------------------------
不过需要登录到桌面才有网络链接这很奇怪啊。。。

WIFI也没有web认证之类的


下面是lightdm的日志


[+0.01s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.01s] DEBUG: Starting Light Display Manager 1.30.0, UID=0 PID=319
[+0.01s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.01s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.01s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.01s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.01s] DEBUG: Registered seat module local
[+0.01s] DEBUG: Registered seat module xremote
[+0.01s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0.02s] DEBUG: Monitoring logind for seats
[+0.02s] DEBUG: New seat added from logind: seat0
[+0.02s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.02s] DEBUG: Seat seat0: Starting
[+0.02s] DEBUG: Seat seat0: Creating user session
[+0.02s] WARNING: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
[+0.02s] DEBUG: Loading user config from /etc/lightdm/users.conf
[+0.04s] DEBUG: User amc added
[+0.04s] DEBUG: User test added
[+0.05s] DEBUG: Seat seat0: Failed to find session configuration session
[+0.05s] DEBUG: Seat seat0: Can't find session 'session'
[+0.05s] DEBUG: Seat seat0: Creating greeter session
[+0.05s] DEBUG: Seat seat0: Creating display server of type x
[+0.05s] DEBUG: posix_spawn avoided (fd close requested)
[+0.05s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+0.05s] DEBUG: Using VT 7
[+0.05s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.05s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.06s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+0.06s] DEBUG: XServer 0: Launching X Server
[+0.06s] DEBUG: Launching process 331: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.06s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.06s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.06s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.06s] DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested)
[+2.84s] DEBUG: Got signal 10 from process 331
[+2.84s] DEBUG: XServer 0: Got signal from X server :0
[+2.84s] DEBUG: XServer 0: Connecting to XServer :0
[+2.88s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified)
[+2.88s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+2.88s] DEBUG: Session pid=399: Started with service 'lightdm-greeter', username 'lightdm'
[+2.94s] DEBUG: Session pid=399: Authentication complete with return value 0: Success
[+2.94s] DEBUG: Seat seat0: Session authenticated, running command
[+2.94s] DEBUG: Session pid=399: Running command /usr/bin/lightdm-gtk-greeter
[+2.94s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+2.94s] DEBUG: Session pid=399: Logging to /var/log/lightdm/seat0-greeter.log
[+3.33s] DEBUG: Activating VT 7
[+3.33s] DEBUG: Activating login1 session c1
[+3.33s] DEBUG: Seat seat0 changes active session to c1
[+3.33s] DEBUG: Session c1 is already active
[+4.23s] DEBUG: Greeter connected version=1.30.0 api=1 resettable=false
[+5.45s] DEBUG: Greeter start authentication for amc
[+5.45s] DEBUG: Session pid=482: Started with service 'lightdm', username 'amc'
[+5.50s] DEBUG: Session pid=482: Authentication complete with return value 0: Success
[+5.50s] DEBUG: Authenticate result for user amc: Success
[+5.50s] DEBUG: User amc authorized
[+13.61s] DEBUG: Greeter requests session xfce
[+13.61s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
[+13.61s] DEBUG: Terminating login1 session c1
[+13.62s] DEBUG: Session pid=399: Sending SIGTERM
[+13.73s] DEBUG: Greeter closed communication channel
[+13.73s] DEBUG: Session pid=399: Exited with return value 0
[+13.73s] DEBUG: Seat seat0: Session stopped
[+13.73s] DEBUG: Seat seat0: Greeter stopped, running session
[+13.73s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+13.74s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified)
[+13.74s] DEBUG: Session pid=482: Running command /etc/lightdm/Xsession startxfce4
[+13.74s] DEBUG: Creating shared data directory /var/lib/lightdm-data/amc
[+13.74s] DEBUG: Session pid=482: Logging to .xsession-errors
[+14.03s] DEBUG: Activating VT 7
[+14.03s] DEBUG: Activating login1 session c2
[+14.03s] DEBUG: Seat seat0 changes active session to
[+14.03s] DEBUG: Seat seat0 changes active session to c2
[+14.03s] DEBUG: Session c2 is already active

离线

#6 2020-05-12 11:25:39

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,384
个人网站

Re: 设置了XFCE/lightDM启用自动登录,还是需要'点击'登录两字才能进入桌面

chntang 说:

按照 wiki里的做了 启用自动登录和启用无密码交互登录

/etc/lightdm/lightdm.conf
autologin-user=amc

# groupadd autologin
# gpasswd -a amc autologin

/etc/pam.d/lightdm
#%PAM-1.0
auth        sufficient  pam_succeed_if.so user ingroup nopasswdlogin
auth        include     system-login


密码是不用输入了,但还需要点登录才能进入到系统

你这……你没发现你的配置来自于两个不同的章节吗?「启用自动登录」和「启用无密码交互登录」。

离线

#7 2020-05-12 11:35:47

xtricman
エクス·トリクマン
注册时间: 2012-12-26
帖子: 1,267

Re: 设置了XFCE/lightDM启用自动登录,还是需要'点击'登录两字才能进入桌面

依云 说:
chntang 说:

按照 wiki里的做了 启用自动登录和启用无密码交互登录

/etc/lightdm/lightdm.conf
autologin-user=amc

# groupadd autologin
# gpasswd -a amc autologin

/etc/pam.d/lightdm
#%PAM-1.0
auth        sufficient  pam_succeed_if.so user ingroup nopasswdlogin
auth        include     system-login


密码是不用输入了,但还需要点登录才能进入到系统

你这……你没发现你的配置来自于两个不同的章节吗?「启用自动登录」和「启用无密码交互登录」。

但是有一句To create a new user account that logs in automatically and additionally able to login again without a password the user can be created with supplementary membership of both groups,我猜楼主要的就是这个功能,这段写在「启用无密码交互登录」里面,但是「启用无密码交互登录」又紧跟章节「启用自动登录」,表达上的确不清晰,没有配置auto-login,仅仅pam_succeed_if.so只能允许用户无密码登录吧?那还需要第一次自动登录怎么办呢

最近编辑记录 xtricman (2020-05-12 11:43:06)


反社会,精神极其不稳定,随时可能炸碎身边所有人

离线

#8 2020-05-12 11:40:31

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,384
个人网站

Re: 设置了XFCE/lightDM启用自动登录,还是需要'点击'登录两字才能进入桌面

xtricman 说:

但是有一句To create a new user account that logs in automatically and additionally able to login again without a password the user can be created with supplementary membership of both groups, 意思是pam_succeed_if.so 是不能配置的?仅仅需要配置auto-login?我猜楼主要的就是这个功能

他还没加那个不需要密码登录的组吧。

离线

#9 2020-05-12 11:46:16

xtricman
エクス·トリクマン
注册时间: 2012-12-26
帖子: 1,267

Re: 设置了XFCE/lightDM启用自动登录,还是需要'点击'登录两字才能进入桌面

依云 说:

他还没加那个不需要密码登录的组吧。

他基本上就是复制了中文版Wiki,始终啥也没说清他到底干了什么,所以我就默认他正确按照中文Wiki配置了两个章节,即便是和英文版描述有差异,也应该是有logs in automatically and additionally able to login again without a password的效果的

所以我一直怀疑楼主没有按照Wiki操作

最近编辑记录 xtricman (2020-05-12 11:53:53)


反社会,精神极其不稳定,随时可能炸碎身边所有人

离线

#10 2020-05-12 12:18:35

chntang
会员
注册时间: 2020-05-11
帖子: 5

Re: 设置了XFCE/lightDM启用自动登录,还是需要'点击'登录两字才能进入桌面

xtricman 说:
依云 说:

他还没加那个不需要密码登录的组吧。

他基本上就是复制了中文版Wiki,始终啥也没说清他到底干了什么,所以我就默认他正确按照中文Wiki配置了两个章节,即便是和英文版描述有差异,也应该是有logs in automatically and additionally able to login again without a password的效果的

所以我一直怀疑楼主没有按照Wiki操作

是的,对照了中文版wiki来操作的,而且[启用自动登录]  [启用无密码交互登录]这两个章节都做了

而To create a new user account that logs in automatically and additionally able to login again without a password the user can be created with supplementary membership of both groups, e.g.:

这一段我使用了他下面的那个命令添加了一个test用户,但似乎也是没有效果。

下午我再来重新烧录系统,一段一段的来测试。

谢谢大神耐心的回复

离线

#11 2020-05-12 12:22:42

chntang
会员
注册时间: 2020-05-11
帖子: 5

Re: 设置了XFCE/lightDM启用自动登录,还是需要'点击'登录两字才能进入桌面

依云 说:
xtricman 说:

但是有一句To create a new user account that logs in automatically and additionally able to login again without a password the user can be created with supplementary membership of both groups, 意思是pam_succeed_if.so 是不能配置的?仅仅需要配置auto-login?我猜楼主要的就是这个功能

他还没加那个不需要密码登录的组吧。


谢谢依云热心回复

那两个章节里的操作我都做过了,我下午重新再来测试下

再次感谢

离线

#12 2020-05-12 12:32:03

xtricman
エクス·トリクマン
注册时间: 2012-12-26
帖子: 1,267

Re: 设置了XFCE/lightDM启用自动登录,还是需要'点击'登录两字才能进入桌面

chntang 说:

而To create a new user account that logs in automatically and additionally able to login again without a password the user can be created with supplementary membership of both groups, e.g.:

这一段我使用了他下面的那个命令添加了一个test用户,但似乎也是没有效果。

你添加的用户只是进组没有前面任何配置肯定是没效果的咯。你要期待wiki是个手把手教学自己不用思考那就算了吧,几乎不可能成功。


反社会,精神极其不稳定,随时可能炸碎身边所有人

离线

页脚