00. 目录
01. 命令概述
startx命令用来启动X-Window,它负责调用X-Window系统的初始化程序xinit。以完成 X-Window运行所必要的初始化工作,并启动X-Window系统。
02. 命令格式
格式:startx [选项]
- 1
03. 常用选项
-d 指定在启动过程中传递给客户机的X服务器的显示名称
-m 当未找到启动脚本时,启动窗口管理器
-r 当未找到启动脚本时,装入资源文件
-w 强制启动
-x 使用startup脚本启动X-windows会话
- 1
- 2
- 3
- 4
- 5
04. 参考示例
4.1 启动图形界面
[root@localhost ~]# startx
xauth: file /root/.serverauth.53155 does not exist
xauth: file /root/.Xauthority does not exist
xauth: file /root/.Xauthority does not exist
- 1
- 2
- 3
- 4
4.2 以16位颜色深度启动X-windows系统
[root@localhost ~]# startx --depth 16
[root@localhost ~]#
- 1
- 2
4.3 强制启动 X-windows系统
[root@localhost ~]# startx -w
[root@localhost ~]#
- 1
- 2
4.4 要使用 xinitrc 脚本启动 X 会话
[root@localhost ~]# startx -x /etc/X11/xinit/xinitrc
[root@localhost ~]#
- 1
- 2
4.5 要使用 mwm 窗口管理器启动 X 会话
[root@localhost ~]# startx -m mwm
- 1
评论记录:
回复评论: