首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >X不会自动启动,startx可以正常工作

X不会自动启动,startx可以正常工作
EN

Unix & Linux用户
提问于 2016-12-22 03:21:30
回答 1查看 1.6K关注 0票数 -1

我已经使用lxdm很长时间了,但是今天升级了manjaro之后,x不会自动启动。

journalctl -u lxdm输出:

代码语言:javascript
复制
-- Reboot --
Dec 22 10:16:35 localhost systemd[1]: Started LXDE Display Manager.

systemctl status lxdm输出:

代码语言:javascript
复制
● lxdm.service - LXDE Display Manager
   Loaded: loaded (/usr/lib/systemd/system/lxdm.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2016-12-22 10:16:35 WIB; 4min 19s ago
 Main PID: 565 (lxdm-binary)
    Tasks: 5 (limit: 4915)
   CGroup: /system.slice/lxdm.service
           ├─565 /usr/sbin/lxdm-binary
           └─574 /usr/lib/xorg-server/Xorg -background none :0 vt01 -nolisten tcp -novtswitch -auth /var/run/lxdm/lxdm-:0.auth

Dec 22 10:16:35 localhost systemd[1]: Started LXDE Display Manager.

配置/etc/lxdm/lxdm.conf从一开始就不会更改。

代码语言:javascript
复制
[base]
## uncomment and set autologin username to enable autologin
# autologin=dgod

## uncomment and set timeout to enable timeout autologin,
## the value should >=5
# timeout=10

## default session or desktop used when no systemwide config
session=/usr/bin/startxfce4

## uncomment and set to set numlock on your keyboard
# numlock=0

## set this if you don't want to put xauth file at ~/.Xauthority
# xauth_path=/tmp

# not ask password for users who have empty password
# skip_password=1

## greeter used to welcome the user
greeter=/usr/lib/lxdm/lxdm-greeter-gtk

[server]
## arg used to start xserver, not fully function
arg=/usr/bin/X -background vt1
# uncomment this if you really want xserver listen to tcp
# tcp_listen=1
# uncoment this if you want reset the xserver after logou
# reset=1

[display]
## gtk theme used by greeter
gtk_theme=Adwaita

## background of the greeter
# bg=/usr/share/backgrounds/default.png

## if show bottom pane
bottom_pane=1

## if show language select control
lang=1

## if show keyboard layout select control
keyboard=0

## the theme of greeter
theme=Industrial

[input]

[userlist]
## if disable the user list control at greeter
disable=0

## whitelist user
white=

## blacklist user
black=

有什么可能会出错呢?

EN

回答 1

Unix & Linux用户

发布于 2016-12-22 03:36:21

取消对lxdm.conf's的评论解决了这个问题,但是这个不太安全的方法

代码语言:javascript
复制
autologin=yourusername
票数 -1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/332078

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档