QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 694|回复: 5

想把控制权交给图形界面~~

[复制链接]
发表于 2005-1-18 16:03:12 | 显示全部楼层 |阅读模式
我开发板上用的是linux的内核,启动的时候我想自动进入我编的一个界面
而不是进入到console文本界面,该怎样做呢?
谢谢啦
发表于 2005-1-18 16:06:05 | 显示全部楼层
如果能够看懂这些就行了
Create a file in /etc/X11/gdm/Sessions called "Afterstep" (warning, I
can't remember for sure that this is where this directory was in RH 7.3, but
I'm almost completely sure - I don't think they moved it between 7.3 and 8.0.  
If /etc/X11/gdm/Sessions doesn't exist, type "locate gdm/Sessions" and put
the Afterstep file there - the most likely alternative location would be
/etc/gdm/Sessions.)  Put the following lines in the "Afterstep" file:

        #!/bin/bash
        exec /etc/X11/xdm/Xsession afterstep

(2) Now create a file in /usr/share/apps/switchdesk called
"Xclients.afterstep".  (again if there is no /usr/share/apps/switchdesk
directory try "locate apps/switchdesk" - but I'm 99% sure it's in the
location I've indicated in RH 7.3).  Put the following in that file:

        #!/bin/bash
        exec /usr/X11R6/bin/afterstep > ~/.Afterstep-errors 2>&1

(3) Restart gdm.  Afterstep should be in the list of sessions to choose from.  
Choose it and log in, you should get Afterstep.  If for some reason this
doesn't work please let me know, I don't think I've forgotten anyting but...
回复

使用道具 举报

 楼主| 发表于 2005-1-18 16:17:52 | 显示全部楼层
万分感谢,我好好琢磨琢磨
照你说的试一试
有什么问题再跟你沟通。
回复

使用道具 举报

 楼主| 发表于 2005-1-18 16:41:54 | 显示全部楼层
我跑的linux是在arm上的,文件系统结构和rh好像不太一样
启动过程好像是先启动一个linuxrc的脚本将/etc目录加载,建立文件系统,然后执行/sbin/init挂在分区,转到/usr/etc/rc.local执行
但是我现在不知道该如何入手
回复

使用道具 举报

发表于 2005-1-18 17:49:09 | 显示全部楼层
那应该没X吧,但是肯定有图形服务程序,直接启动就行了
回复

使用道具 举报

 楼主| 发表于 2005-1-18 18:36:38 | 显示全部楼层
没有图形服务程序
就算有,我也得做我自己的图形界面。
简单的图形界面做了一个,但是现在我不知道该怎么加进去
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-25 23:17 , Processed in 0.315731 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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