fandow 发表于 2005-1-18 16:03:12

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

我开发板上用的是linux的内核,启动的时候我想自动进入我编的一个界面
而不是进入到console文本界面,该怎样做呢?
谢谢啦

妖狐藏马 发表于 2005-1-18 16:06:05

如果能够看懂这些就行了 :wink:
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...

fandow 发表于 2005-1-18 16:17:52

万分感谢,我好好琢磨琢磨
照你说的试一试
有什么问题再跟你沟通。

fandow 发表于 2005-1-18 16:41:54

我跑的linux是在arm上的,文件系统结构和rh好像不太一样
启动过程好像是先启动一个linuxrc的脚本将/etc目录加载,建立文件系统,然后执行/sbin/init挂在分区,转到/usr/etc/rc.local执行
但是我现在不知道该如何入手

cobranail 发表于 2005-1-18 17:49:09

那应该没X吧,但是肯定有图形服务程序,直接启动就行了

fandow 发表于 2005-1-18 18:36:38

没有图形服务程序
就算有,我也得做我自己的图形界面。
简单的图形界面做了一个,但是现在我不知道该怎么加进去
页: [1]
查看完整版本: 想把控制权交给图形界面~~