LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 872|回复: 3

gentoo 使用slim遇到不能选择session 的问题

[复制链接]
发表于 2009-2-7 14:48:42 | 显示全部楼层 |阅读模式
/etc/slim.conf 里
若不注释掉下面两句 就只能进一中session

# Needed so your login will show up in wtmp and utmp, etc
sessionstart_cmd        /usr/bin/sessreg -a -l :0.0 %user
sessionstop_cmd         /usr/bin/sessreg -d -l :0.0 %user

这是什么原因啊?

网上好容易找到一个gentoo wiki的howto:http://gentoo-wiki.com/HOWTO_SLiM_setup
想去看看
结果gentoo-wiki说它最近弄丢了...
发表于 2009-2-7 14:57:52 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-2-7 15:55:00 | 显示全部楼层
看了您给的wiki
上面的内容也不太详细啊
按上面说的设置 在/etc/slim.conf配置如下

default_path        ./:/bin:/usr/bin:/usr/local/bin
default_xserver     /usr/bin/X
#xserver_arguments   -dpi 75

# Commands for halt, login, etc.
halt_cmd            /sbin/shutdown -h now
reboot_cmd          /sbin/shutdown -r now
console_cmd         /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh - c "/bin/cat /etc/issue; exec /bin/login"

# Full path to the xauth binary
xauth_path         /usr/bin/xauth

# Xauth file for server
authfile           /var/run/slim.auth

# Activate numlock when slim starts. Valid values: on|off
numlock             on

login_cmd                        exec /bin/sh -login ~/.xinitrc %session

daemon        yes

sessions            xfce4,openbox,twm


# Executed when pressing F11 (requires imagemagick)

screenshot_cmd      import -window root /slim.png

# welcome message. Available variables: %host, %domain

welcome_msg         Welcome to %host

# Session message. Prepended to the session name when pressing F1

session_msg         Session:

shutdown_msg       The system is halting...

reboot_msg         The system is rebooting...

current_theme       fingerprint

lockfile            /var/run/slim.lock

logfile             /dev/null

# Needed so your login will show up in wtmp and utmp, etc

sessionstart_cmd        /usr/bin/sessreg -a -l $DISPLAY %user

sessionstop_cmd         /usr/bin/sessreg -d -l $DISPLAY %user


slim起来后,按F1

仍然提示Session:top_cmd /usr/bin/sessreg -d -l $DISPALY %user
不能选择xfce4 只能进入一个比较奇怪的session 主体是openbox但又夹杂些xfce的效果



http://www.linuxsir.cn/bbs/lastpostinthread325630.html
上面这篇文章中对着/etc/X11/Xsession设置了不少
看解释好像是slim不干这 也不干那 啥都得自己搞进去才行...
回复 支持 反对

使用道具 举报

发表于 2009-2-7 22:31:33 | 显示全部楼层
http://www.oceanboo.cn/read.php/240.htm
看第四和第六两点吧,同时注释下面这两句话。
sessionstart_cmd /usr/bin/sessreg -a -l $DISPLAY %user
sessionstop_cmd /usr/bin/sessreg -d -l $DISPLAY %user
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表