Re: Gentoo with xorg-server, without mouse support
- From: "J.O. Aho" <user@xxxxxxxxxxx>
- Date: Fri, 06 Jan 2006 22:19:27 +0100
Carsten Salveter wrote:
> I'm building a small X11 system with gentoo-embedded (uclibc). I need no
> mouse support. Input support with keyboard ist enough for my project.
> How I can switch of the mouse support in xorg-server?
You should look at the xorg-server (still masked), this will be a modular
version of Xorg, which allows you to only build those parts that you need, eg
no mouse driver. Of course you still will need the option Simon told about in
the xorg.conf.
> What is the best way to start the X11 server before someone logged on? I
> need no user logon. No GDM/KDM/XDM. I want to start only X11 and one
> application with a gui.
I guess I would make a special user to run this app under and then create an
autologin-binary
---autologin.c---
int main() {
execlp( "login", "login", "-f", "username", 0);
}
--- eof ---
modify the "username" to the user you have created, compile it and copy the
binary where you want to keep it, set the right privileges for it too, so not
everyone can use it.
Modify now your /etc/inittab and pick one of the terminals you want to run
this autologin on
--- from /etc/inittab ---
c1:12345:respawn:/sbin/autologin
--- eo example ---
Now you could add what you want to happen on the users .bashrc, startx and
starting the application in question and of course the exit, so you will
logout and restart X and the app if someone would be exiting the app or
killing the X.
This way you don't have to think about someone being root or mess with sudo
and so on... just keep in mind it's not completely foolproof.
//Aho
.
- References:
- Gentoo with xorg-server, without mouse support
- From: Carsten Salveter
- Gentoo with xorg-server, without mouse support
- Prev by Date: Re: Gentoo with xorg-server, without mouse support
- Next by Date: Re: A CD image viewer and extractor?
- Previous by thread: Re: Gentoo with xorg-server, without mouse support
- Next by thread: Re: A CD image viewer and extractor?
- Index(es):
Relevant Pages
|