auto login + auto start X

因為是看電視用, 所以想 auto login + auto start x. 跟足 arch wiki 都吾得 (can not open display). 攪了幾日, 最後可能是這檔出問題
/etc/hosts
as in case any one is interested.

攪了幾日, 最後可能是這檔出問題
/etc/hosts
as in case any one is interested.
chancho 發表於 4/5/2013 18:35

純 Xorg 定 desktop manager 兮問題?

TOP

i was using a fresh installed archlinux with slim as login manager. everything was fine until i try to autologin with slim. i can only have a black screen with my cursor moving. i am using openbox, so a right click brough up a menu, but nothing can be launched, checking the logs and found some errors about "could not open display". it is also the case if i auto login and auto start X without slim. google shows not much suggestion, but someone said /etc/hosts should have my machine's name. so i edited it as follow :
127.0.0.1        htpc        htpc
::1                localhost.localdomain        localhost
and here i am, i am booting my machine, with a "service" auto login to my accout and "startx" was called from .bash_profile, and openbox up and running.
actually, it is not much faster than the slim way, may be i will post the timing it takes from "grub" to "openbox" next time.

TOP

奇怪,小弟係 debian 用 slim autologin 都無問題,只係 set 返 auto_login 同 default_user 就搞掂,無其他嘢 set 過。

TOP

你的 /etc/hosts 是否有你的 machine name. 因為這幾日攪過很多 file. 所以不是很 sure.
time from "grub" to "openbox" need 21 sec including 3 sec for "grub"

TOP

回復 5# chancho

本來都有 machine name 係 /etc/hosts,試過無都入倒,問題不在 hostname。

我無用 DE,用緊 tiling 的 WM 而已,情況同師兄個 openbox 差不多。

TOP

"similar" - how similar ?
how can you fix it ?

TOP

本帖最後由 lforum 於 2013-5-6 10:27 編輯

如果用lightdm + autologin 又點???

https://wiki.archlinux.org/index.php/LightDM#Enabling_Autologin
Auto load lightdm
  1. sudo systemctl enable lightdm
複製代碼
Enabling Autologin:
/etc/lightdm/lightdm.conf
  1. autologin-user=<your_username>
  2. autologin-user-timeout=0
複製代碼
LightDM goes through PAM even when autologin is enabled. You must be part of the autologin group to be able to login without entering your password:
  1. # groupadd autologin
  2. # gpasswd -a username autologin
複製代碼
PS. 睇漏咗無用DE

TOP

基本上 xorg 是無任何設定, 只是 define 了 modeline (因有 overscan 問題). 最先是懷疑是 xorg 快 loading video driver, 已把 radeon 放進 kernel, 都是不成. anyway, it is working now.

TOP

如果用lightdm + autologin 又點???
lforum 發表於 2013-5-6 10:23


有機會都要將 slim 轉做 lightdm,始終 lightdm support XDMCP,可以實現 remote login 如 freenx !

slim 唔 support XDMCP 係一大缺憾。

TOP