我只是做了一些更新,现在我不能在我的Ubuntu14.04自动独白。以前,我可以自言自语,有时我不能。我想,这是系统造成的。在这里我的auth.log启动时,
Jul 31 06:05:02 bagustris-MacBookPro lightdm: pam_unix(lightdm-autologin:session): session opened for user bagustris by (uid=0)
Jul 31 06:05:02 bagustris-MacBookPro systemd-logind[1138]: New session c1 of user bagustris.
Jul 31 06:05:02 bagustris-MacBookPro systemd-logind[1138]: Linked /tmp/.X11-unix/X0 to /run/user/1000/X11-display.
Jul 31 06:05:03 bagustris-MacBookPro gnome-keyring-daemon[1759]: couldn't set environment variable in session: The name org.gnome.SessionManager was not provided by any .service files
Jul 31 06:05:03 bagustris-MacBookPro gnome-keyring-daemon[1759]: message repeated 2 times: [ couldn't set environment variable in session: The name org.gnome.SessionManager was not provided by any .service files]
Jul 31 06:05:05 bagustris-MacBookPro gnome-keyring-daemon[1759]: The GPG agent was already initialized
Jul 31 06:05:05 bagustris-MacBookPro gnome-keyring-daemon[1759]: The SSH agent was already initialized
Jul 31 06:05:05 bagustris-MacBookPro gnome-keyring-daemon[1759]: The PKCS#11 component was already initialized
Jul 31 06:05:05 bagustris-MacBookPro gnome-keyring-daemon[1759]: The Secret Service was already initialized
Jul 31 06:05:07 bagustris-MacBookPro polkitd(authority=local): Registered Authentication Agent for unix-session:c1 (system bus name :1.40 [/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Jul 31 06:05:11 bagustris-MacBookPro dbus[979]: [system] Rejected send message, 7 matched rules; type="method_return", sender=":1.20" (uid=0 pid=1816 comm="/usr/sbin/dnsmasq --no-resolv --keep-in-foreground") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.5" (uid=0 pid=1280 comm="NetworkManager ")
Jul 31 06:05:12 bagustris-MacBookPro polkitd(authority=local): Unregistered Authentication Agent for unix-session:c1 (system bus name :1.40, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Jul 31 06:05:12 bagustris-MacBookPro lightdm: pam_unix(lightdm-autologin:session): session closed for user bagustris我的PC是macbook 13",mid2012。我还在/etc/lightdm/lightdm.conf中添加了autologin-user=myusername。当然,我还在系统设置>>用户帐户中设置了自动登录。
有什么办法解决这个问题吗?我需要自言自语来缩短启动时间。
发布于 2016-03-10 21:07:00
经过几次尝试,我发现它又起作用了。我不知道哪种解决方案起作用了,但我做了以下操作: In /etc/lightdm/lightdm.conf添加:
pam-autologin-service=lightdm-autologin我创建了新文件/etc/lightdm.conf,其中包含以下如前所述:
[SeatDefaults]
autologin-user=bagustris另一项工作是检查/etc/pam.d/lightdm autologin。确保没有奇怪或权限问题,并将登录设置引用到此"ligthdm-autologin“。
sudo chmod a+r /etc/shadow
sudo chown user:user .Xauthorityhttps://askubuntu.com/questions/654856
复制相似问题