From owner-freebsd-questions@FreeBSD.ORG Wed Apr 26 22:02:39 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C552516A400 for ; Wed, 26 Apr 2006 22:02:39 +0000 (UTC) (envelope-from bigby@ephemeron.org) Received: from dsl.ephemeron.org (dsl092-035-072.lax1.dsl.speakeasy.net [66.92.35.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AA7643D46 for ; Wed, 26 Apr 2006 22:02:39 +0000 (GMT) (envelope-from bigby@ephemeron.org) Received: from home.ephemeron.org (root@home.fake.net [10.0.2.3]) by dsl.ephemeron.org (8.12.11/8.12.11) with ESMTP id k3QM2LlZ017853; Wed, 26 Apr 2006 15:02:21 -0700 (PDT) (envelope-from bigby@ephemeron.org) Received: from home.ephemeron.org (bigby@localhost [127.0.0.1]) by home.ephemeron.org (8.13.4/8.13.4) with ESMTP id k3QM2Z8g078156; Wed, 26 Apr 2006 15:02:35 -0700 (PDT) (envelope-from bigby@ephemeron.org) Received: from localhost (bigby@localhost) by home.ephemeron.org (8.13.4/8.13.4/Submit) with ESMTP id k3QM2YSo078153; Wed, 26 Apr 2006 15:02:35 -0700 (PDT) (envelope-from bigby@ephemeron.org) X-Authentication-Warning: home.ephemeron.org: bigby owned process doing -bs Date: Wed, 26 Apr 2006 15:02:34 -0700 (PDT) From: Bigby Findrake To: Eric Schuele In-Reply-To: <44446828.10704@computer.org> Message-ID: <20060426150134.F71001@home.ephemeron.org> References: <444406E8.2040808@computer.org> <44446828.10704@computer.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD Questions Subject: Re: X11 and virtual consoles.... (startx + vlock) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Apr 2006 22:02:40 -0000 1. What about backgrounding startx and then exiting your shell? 2. Have you tried using "lock -np" instead of vlock? On Mon, 17 Apr 2006, Eric Schuele wrote: > Eric Schuele wrote: >> Hello, >> >> [hadn't worn my newbie hat lately... so I thought I'd try it on.] >> >> Is there a way to run X via startx and prevent someone from switching back >> to the console that started it and pressing Ctrl-C, without using >> DontVTSwitch in my xorg.conf file? >> >> I would like to be able to use multiple virtual consoles. But do not like >> the idea of someone switching back to *my* virtual console... killing X and >> having my account available to them. This way I could lock my session via >> xscreensaver, and walk away. Then someone else could login and use the >> machine... just not *my* account. >> >> I had envisioned something like a script that did the following: >> #!/bin/sh >> startx & >> vlock >> >> Yet vlock does not like this at all. I was hoping to background startx... >> and then lock the virtual console. :) > > A little more info.... > So it appears that vlock works if I "manually" background startx from the > console, and then run vlock. but inside the script vlock gets into a loop in > which it thinks it is seeing keystrokes... and repeatedly (quickly) says that > the password is bad, please try again. It does this forever. > > Additionally, the script works just fine for root. It behaves exactly as I > would like. It startx and then locks the console. > > Lastly, I have done a bit more googling, looking for vlock and startx > specifically... and found that (at least in the past) many people have done > it this way with success. I'm not sure what I might be doing wrong here. > > I did turn up one bug that sounds very much like what I am experiencing but > it appears to have been fixed some time ago. I wonder if there is a > regression? Anyone using `startx &; vlock` successfully? > >> >> Is there anything that might accomplish something similar? >> >> Thanks. >> > > > -- > Regards, > Eric > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > /-------------------------------------------------------------------------/ Under deadline pressure for the next week. If you want something, it can wait. Unless it's blind screaming paroxysmally hedonistic ... finger://bigby@ephemeron.org http://www.ephemeron.org/~bigby/ irc://irc.ephemeron.org/#the_pub news://news.ephemeron.org/alt.lemurs /-------------------------------------------------------------------------/