Prevent X from being killed?


Forum: X and Fluxbox
Topic: Prevent X from being killed?
started by: eek

Posted by eek on Dec. 15 2004,17:01
Is there a way to prevent ctrl-alt-del from killing X?

i tried a lot of variations but have been somewhat unlucky since i havent got it working.

i changed the etc/initab but that hasent got anything to do with x,

i need this for my clients that use rdekstop or ica and whenever they feel like something is wrong they hit ctrl-alt-del like they usually do, and that kills their session.

thanks

Posted by eek on Dec. 16 2004,12:55
Im going to give you guys some more info regarding this.
im using Fluxbox to start X, then before it loads completely i state that  "rdesktop some.server" should be launched and looped until 6=9.

therefore when some user hits ctrlaltdel or ctrlaltbs it kills both the rdesktop session and Fluxbox.

i removed the etc/inittab and added the DontZap option in XF86Config, this however doesent help in any way.

plsplspl i need help :)

Posted by ico2 on Dec. 16 2004,13:38
take apart the keyboard and cut using a blade through the piece of board that connects to the alt key (just through the surface, don't cut it right away). glue keyboard back together and pray nobody needs the alt key for anything else.

welcome to the forums :)

Posted by henk1955 on Dec. 16 2004,13:46
look at /etc/inittab.
maybe a chanche to
Code Sample
ca::ctrlaltdel:/etc/init 0
could be of help

Posted by eek on Dec. 16 2004,15:31
Thanks guys, the keyboard dismantling thingie as of yet seems the more resonable solution, as i earlier said i removed the ca::ctrlaltdel:/etc/init 0 , and that is in no way responsible for X getting killed, however ctrl-alt-del isnt as widely used for killing x as ctrl-alt-backspace is (maybe for fluxbox i dont know), and that is what im trying to prevent.

every debian/whatever forum i have been in state that adding the line
Code Sample
Section "ServerFlags"
  DontZap
EndSection

in XF86Config would prevent this but it doesent seem to help a whole lot..

so i remain sad

Posted by henk1955 on Dec. 16 2004,16:00
i have made a XFree86.dsl. its only 5Mb

if i add
Code Sample
Section "ServerFlags"
 DontZap
EndSection

to my XF86Config it DISABLES the ctrl-alt-bs

rember the X in dsl is not realy XFree86. so may not look att XF86Config at all

Posted by eek on Dec. 16 2004,16:14
so where should i look :)

theres another file in /etc/X11/dexter-tmp thats called "ServerFlags" but adding the dontzapp in that doesent make any diffrence either.

Posted by henk1955 on Dec. 16 2004,19:36
you NEED the real XFree86 to use the flags
Posted by eek on Dec. 16 2004,20:53
surely there must be some way to just disable this.

is it hardcoded in there somewhere?

oh well

Posted by 2pac_Shaker on April 15 2005,15:30
Same problem here, we're running some DSL machines as RDP clients and we need to disable the Ctrl+Alt+Bs and Ctrl+Alt+Del keys.

Any help with this will be really appreciated. Anyway, I'll keep investigating this and if I find the solution, I'll post it here.

Posted by 2pac_Shaker on April 22 2005,12:49
Well. I'm trying Henk's Xfree package and this problem -and some others, like a strange behavior of the Num Lock- is automatically fixed :cool:

Now the problem is other. X Is hard to configure without the xsetup.sh script... Does anyone know about a good resource to understand XF86Config-4? maybe a tool or some kinda script to assist the user? now setting X to a concrete resolution and depth is a nightmare.

Posted by mikshaw on April 22 2005,15:33
I just built an extension for xf86config if you want to try it.  It's not whiptail/curses script like xsetup.sh, just the old standard text, but it makes configuration as easy as answering a series of questions.  You'll need to know, or guess, about refresh rates for your monitor, but it shouldn't be too difficult to figure out.

I've got to make an info file for it and then i'll send it to ke4nt....i've got some other work to do first, though, so i'll get to it this evening.

One strange thing about X in DSL that i just noticed.  There is a symlink /usr/X11R6/lib/X11/xkb, which links to the same file in /KNOPPIX.  However, this is also a symlink, pointing to /etc/X11/xkb, which doesn't exist.
I've made /etc/X11/xkb in the extension a symlink to /usr/X11R6/lib/X11/xf86config-xkb (right back where we started).  I hope this won't present a problem for anyone.

Posted by 2pac_Shaker on April 26 2005,09:38
Thanks, mikshaw. I'll wait for that script.
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.