From owner-freebsd-questions@FreeBSD.ORG Tue May 11 19:40:34 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 997F81065674 for ; Tue, 11 May 2010 19:40:34 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 3B2848FC0C for ; Tue, 11 May 2010 19:40:34 +0000 (UTC) Received: from r55.edvax.de (port-92-195-118-129.dynamic.qsc.de [92.195.118.129]) by mx02.qsc.de (Postfix) with ESMTP id 487A51EA83; Tue, 11 May 2010 21:40:32 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o4BJeVnj001652; Tue, 11 May 2010 21:40:31 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Tue, 11 May 2010 21:40:31 +0200 From: Polytropon To: Robert Bonomi Message-Id: <20100511214031.ea800432.freebsd@edvax.de> In-Reply-To: <201005111907.o4BJ7A2M007162@mail.r-bonomi.com> References: <201005111907.o4BJ7A2M007162@mail.r-bonomi.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: user friendliest gui X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 May 2010 19:40:34 -0000 On Tue, 11 May 2010 14:07:10 -0500 (CDT), Robert Bonomi wrote: > Why?? Because, In this case, the GUI is entirely -un-necessary-. The user > doesn't have to do anything other than stick the flash drive in the USB port. > > The machine does everything else. *WITHOUT* any further user intervention > required. > > Why bother with the GUI, when there is no inter-actiona required? Valid point. No interaction -> no need for GUI, because you can display needed information in a colorful text screen, too. In this case, I'd suggest to use CDK (Curses development kit) and an automated script. If you're keen on setting up a graphical environment, do it right: No window manager, no way to start programs. In your ~/.xinitrc nothing than the program to be run should be executed. For "enriching" a shell script with GUI controls, I would say that using Tcl/Tk is a good way. Finally, I imagine that you want something like this: +----------------------------------+ | VIRUS & MALWARE SCANNING STATION | | ================================ | | Insert your USB stick or thumb | | drive into the USB port and then | | press to start the scan. | | (OK) | +----------------------------------+ Of course, users who want the complicated GUI way will now grab the mouse and click the OK button. +----------------------------------+ | SCANNING IN PROGRESS | | ==================== | | The system is now scanning your | | files. DO NOT REMOVE the stick | | without being told so! | +----------------------------------+ Additionally, files may be shown in a scrolling window as they are processed. From a quick df / du measurement, the percentage of the progress can be estimated. +----------------------------------+ | NOTHING FOUND | | ============= | | You may now remove your stick. | | (OK) | +----------------------------------+ or maybe +----------------------------------+ | ALERT! MALWARE HAS BEEN FOUND! | | ============================== | | Take your USB stick and do not | | insert it anywhere else. Your | | system administrator has been | | informed that your stick contai- | | ned a dangerous virus. Report to | | Mister Dillinger immedieately. | | (OK) | +----------------------------------+ You can do this both in text mode and in X. If you really, REALLY want to use X for the sake of overcomplexity, you can do that, but be prepared: The more unneeded stuff you introduce, the more complicated the whole procedure gets, and the more security risks may occur. You have hereby been warned. :-) As I mentioned before: MY suggestion would be to try to avoid as many interaction as possible. "Windows" users usually aren't good at understanding interaction concepts, even if it comes in blue and red and shiny, or any other old-fashioned candy-like color theme they are told to be comfortable with. The most responsibility off them. Make a machine that exactly and purely does the job, and does it well. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...