[转载]slim:关机、重启、挂起、退出、执行终端程序
Posted by 要风得雨 - 09/06/10 at 02:06:13 下午下面是Slim的一些增强应用,引用自Arch Wiki,Arch维基做得不错,有关Xfce的教程都是从这里找到的。
在SLiM里关机、重启、挂起、退出、执行终端程序
你也可以在SLiM登录界面里关闭、重启、挂起、退出甚至执行终端程序。要做的是:在username区域输入恰当命令,然后在password 区域输入root的密码:
* 要执行终端程序,输入console作为用户名(缺省执行的是xterm,它必须要单独安装…编辑/etc/slim.conf可以修改终端参数)
* 要关机,可以输入halt作为用户名。
* 要重启,可以输入reboot作为用户名。
* 要退回到bash,可以输入exit作为用户名。
* 要挂起,可以输入suspend作为用户名(挂起功能缺省是关闭的,以root身份编辑/etc/slim.conf,取消suspend_cmd行的注释,如果需要的话还可以修改挂起所用的命令(例如将/usr/sbin/suspend改为sudo /usr/sbin/pm-suspend)。
这几个有用的命令,为什么不在登录界面给出提示呢?用F1 HELP键唤出或是直接在背景壁纸上显示都好啊。
slim:自动登录
Posted by 要风得雨 - 09/06/10 at 02:06:53 下午继续走在轻量级的金光大道上,最近索性把gnome从系统中卸载了(只留下一些感觉不错的小工具),自然登录管理器GDM也没了,于是换成了slim,依赖少,功能少,不过我只要能够自动进入x界面并登录就行了。
slim的自动登录没有GUI界面设置,只能修改配置文件/etc/slim.conf
# default user, leave blank or remove this line
# for avoid pre-loading the username.
#default_user simone
default_user (填入想要登录的用户名)# Focus the password field on start when default_user is set
# Set to “yes” to enable this feature
#focus_password no
focus_password yes# Automatically login the default user (without entering
# the password. Set to “yes” to enable this feature
#auto_login no
auto_login yes
英文极其简单,加入标红的三项就可以了。
Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds.
Valid XHTML and CSS.
WopusIDC平台
本站作品如无注明均采用知识共享署名-非商业性使用-相同方式共享 2.5 中国大陆许可协议
最新评论