Ubuntu 12.04用户自动登陆桌面出错,急!急!急!求大神指导!!

软件和网站开发以及相关技术探讨
回复
douzhq
帖子: 1
注册时间: 2015-11-05 16:45
系统: Ubuntu

Ubuntu 12.04用户自动登陆桌面出错,急!急!急!求大神指导!!

#1

帖子 douzhq » 2015-11-05 17:12

Ubuntu 12.04用户自动登陆桌面出错,

我在/etc/lightdm/lightdm.config 修改的内容如下:

代码: 全选

[SeatDefaults]
greeter-session=unity-greeter
user-session=Gilbarco
autologin-user=cj
autologin-user-timeout=delay
greeter-show-manual-login=true
cj是自动登陆用户名,session为Gilbarco

在/usr/shared/xsessions/Gilbarco.desktop的内容如下:

代码: 全选

[Desktop Entry]
Name=Gilbarco
Comment=This session logs you into Gilbarco HMI
Exec=gnome-session --session=ubuntu-2d
TryExec=unity-2d-panel
Icon=
Type=Application
X-Ubuntu-Gettext-Domain=gnome-session-3.0
重启后,没有进入unity的桌面,而是进入的GNome-Classic的桌面
~/.dmrc中的内容如下:

代码: 全选

[Desktop]
Session=gnome-classic
~/.xsession-errors的内容如下

代码: 全选

gnome-session-is-accelerated: No hardware 3D support.
gnome-session-check-accelerated: Helper exited with code 256
gnome-session[1358]: WARNING: Session 'gnome-classic' runnable check failed: 以代码 1 退出
Home directory /home/cj not ours.

** (gnome-settings-daemon:1484): WARNING **: Failed to connect context: 确定
Home directory /home/cj not ours.

(gnome-settings-daemon:1484): GLib-CRITICAL **: g_variant_new_string: assertion `string != NULL' failed

(gnome-settings-daemon:1484): GLib-GIO-CRITICAL **: g_settings_schema_key_type_check: assertion `value != NULL' failed

(gnome-settings-daemon:1484): GLib-CRITICAL **: g_variant_get_type_string: assertion `value != NULL' failed

(gnome-settings-daemon:1484): GLib-GIO-CRITICAL **: g_settings_set_value: key 'picture-uri' in 'org.gnome.desktop.background' expects type 's', but a GVariant of type '(null)' was given
gnome-session[1358]: WARNING: Application 'gnome-panel.desktop' killed by signal
** Message: applet now removed from the notification area
** Message: using fallback from indicator to GtkStatusIcon

(nautilus:1692): IBUS-WARNING **: The owner of /home/cj/.config/ibus/bus is not cj!
** Message: moving back from GtkStatusIcon to indicator
gnome-session[1358]: WARNING: App 'gnome-panel.desktop' respawning too quickly
gnome-session[1358]: CRITICAL: We failed, but the fail whale is dead. Sorry....
gnome-session[1358]: WARNING: Application 'gnome-panel.desktop' killed by signal

(HMIStartup:1809): IBUS-WARNING **: The owner of /home/cj/.config/ibus/bus is not cj!
** Message: using fallback from indicator to GtkStatusIcon

(HMIDisplay:1817): IBUS-WARNING **: The owner of /home/cj/.config/ibus/bus is not cj!
mplayer: could not connect to socket
mplayer: No such file or directory
窗口管理器警告: Treating resize request of legacy application 0x1200010 (9001) as a fullscreen request
Please run ibus-daemon with login user! Do not run ibus-daemon with sudo or su.
窗口管理器警告: Treating resize request of legacy application 0x1200025 (9001) as a fullscreen request
Home directory /home/cj not ours.
连接失败:拒绝连接
pa_context_connect() 失败:拒绝连接

(gnome-settings-daemon:1484): color-plugin-WARNING **: failed to get edid: unable to get EDID for output

(gnome-settings-daemon:1484): color-plugin-WARNING **: unable to get EDID for xrandr-LVDS-0: unable to get EDID for output

(gnome-terminal:1855): IBUS-WARNING **: The owner of /home/cj/.config/ibus/bus is not cj!
Home directory /home/cj not ours.
Home directory /home/cj not ours.
Home directory /home/cj not ours.
Home directory /home/cj not ours.
窗口管理器警告: Treating resize request of legacy application 0x120002c (9001) as a fullscreen request
Home directory /home/cj not ours.
Home directory /home/cj not ours.
Home directory /home/cj not ours.

** (update-notifier:2008): WARNING **: not starting for system user

窗口管理器警告: Treating resize request of legacy application 0x1200033 (9001) as a fullscreen request
窗口管理器警告: Treating resize request of legacy application 0x120003a (9001) as a fullscreen request
窗口管理器警告: Treating resize request of legacy application 0x1200041 (9001) as a fullscreen request
窗口管理器警告: Treating resize request of legacy application 0x1200048 (9001) as a fullscreen request
Home directory /home/cj not ours.
窗口管理器警告: Treating resize request of legacy application 0x120004f (9001) as a fullscreen request
Home directory /home/cj not ours.
Home directory /home/cj not ours.
Home directory /home/cj not ours.
Home directory /home/cj not ours.
Home directory /home/cj not ours.
Home directory /home/cj not ours.
窗口管理器警告: Treating resize request of legacy application 0x1200056 (9001) as a fullscreen request
Home directory /home/cj not ours.

求大神教教我怎么做,如何才能默认登陆到untiy桌面上!!!
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: Ubuntu 12.04用户自动登陆桌面出错,急!急!急!求大神指导!!

#2

帖子 poloshiao » 2015-11-05 18:57

http://askubuntu.com/questions/62833/ho ... uto-logins
How do I change the default session for when using auto-logins?

http://www.liberiangeek.net/2012/03/aut ... -pangolin/
Automatically Login to Ubuntu 12.04

http://askubuntu.com/questions/145359/h ... t-start-up
How can I make Unity 2D the default session at start-up?
回复