Re: user friendliest gui
On Fri, 14 May 2010 13:13:35 +, Jean-Paul Natola wrote: > No experience at all implementing shell wrappers, It's like writing a batch script under DOS. > I tried installing tcltutor and that's bombing out allover the place. So implementing a Tcl/Tk based GUI for this task isn't your goal at the moment. So why not go with dialog? All parts you need are in /usr/share/examples/dialog. Such a solution would be fast and portable (because it doesn't rely on X). > this is getting too complex, I think I'll load just a desktop gui , > and put a clamav icon on the desktop and just have them right > click and scan drive A full-featured desktop - so you're talking about KDE or Gnome. Or maybe Xfce. Why not use a lightweight window manager like IceWM, change its menu file to just contain the clamav program call? So nothing can be messed up by users who think a computer that does not run an old-fashioned "Windows" is... broken? :-) If you just want to allow your users to start ONE program, I may point you to a program I recently found: wbar. Easy to configure (maybe through wbarconf, but I edit the plain file), and you can run this instead of a window manager, or you use a window manager without any menu functionality (IceWM with all items deleted from the menu list comes into mind). Just some ideas. Of course, using KDE or Gnome gives you some advantage, such as automounting the USB stick. Luckily, you're on UNIX, so viruses, malware, spyware and all the other crap usually found on users' USB sticks won't harm the system. In *my* opinion, this might be TOO MUCH overhead for such a simple task, and I would really consider learning shell scripting with dialog, and if I got this right and still wanted GUI, I would learn Tcl/Tk. As I said, there are nice examples coming with the default installa- tion for you to check out how easily it works. In any case, *try* this setting before putting it into production. Maybe even do stupid things, like pulling the USB stick during scan, pulling the power cord, surf the web and download some arbitrary software, and of course see what happens when there's a virus or malware on the USB stick. You can get viruses and malware for free from the Internet. :-) If *you* can't make the scanner station unusable, your users hopefully can't, too. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: user friendliest gui
"No experience at all implementing shell wrappers, I tried installing tcltutor and that's bombing out allover the place. this is getting too complex, I think I'll load just a desktop gui , and put a clamav icon on the desktop and just have them right click and scan drive" Then perhaps consider PCBSD. Probably easier to get a GUI desktop type thing up and running. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: user friendliest gui
>You only need one of the last two things. You have to decide: >a) Want X? Use Tcl/Tk. Install both tcl and tk ports. Examples in /usr/local/lib/tk/demos. >b) Work in text mode? Use dialog. Comes with base system. Examples in /usr/share/examples/dialog. >c) Work in text more, but make it more complicated? Use ncurses and curses development kit. Install cdk from ports. Examples in /usr/local/share/examples/cdk. >Depending on your decision, the path follows. :-) >Oh, CDK is not that bad or complicated, but I think you should >go with dialog first. If you've got enough experience in >implementing shell "wrappers" / "extenders" with dialog, it >should be an easy task to do the same with Tcl/Tk. Keep in >mind that using X limits the usability of your project (which >is a very useful one per se). No experience at all implementing shell wrappers, I tried installing tcltutor and that's bombing out allover the place. this is getting too complex, I think I'll load just a desktop gui , and put a clamav icon on the desktop and just have them right click and scan drive ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: user friendliest gui
On Thu, 13 May 2010 13:10:51 +, Jean-Paul Natola wrote: > Ok so I have my new box setup and I have installed > Clamav-devel > Tcl86 > Dialog You only need one of the last two things. You have to decide: a) Want X? Use Tcl/Tk. Install both tcl and tk ports. Examples in /usr/local/lib/tk/demos. b) Work in text mode? Use dialog. Comes with base system. Examples in /usr/share/examples/dialog. c) Work in text more, but make it more complicated? Use ncurses and curses development kit. Install cdk from ports. Examples in /usr/local/share/examples/cdk. Depending on your decision, the path follows. :-) Oh, CDK is not that bad or complicated, but I think you should go with dialog first. If you've got enough experience in implementing shell "wrappers" / "extenders" with dialog, it should be an easy task to do the same with Tcl/Tk. Keep in mind that using X limits the usability of your project (which is a very useful one per se). > First question is , I have only ever used clamav-clamd in the > past which I start with /usr/local/etc/rc.d/clamav-clamd start > to run it, how do I run devel? > Second question is , where to o go from here? Basically, you enclose the obvious steps in a wrapper telling the users what to do and showing the process, as I "did as if" in an ealier message. Stes involve identifying partitions on the USB stick (file, fdisk), mounting it (mount), running the scanner, unmounting it, maybe in sequence for multiple partitions. > I have tried to man tcl86 and man clamav-devel but I get no manual entry You'll find documentation for locally added ports or packages in the correct directories, /usr/local/share/doc as well as /usr/local/share/examples (append port name). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: user friendliest gui
Jean-Paul Natola wrote: Ok so I have my new box setup and I have installed Clamav-devel Tcl86 Dialog First question is , I have only ever used clamav-clamd in the past > which I start with /usr/local/etc/rc.d/clamav-clamd start to run it, how do I run devel? Second question is , where to o go from here? I have tried to man tcl86 and man clamav-devel but I get no manual entry Try "man clamscan". HTH, KDK ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: user friendliest gui
-Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Gary Gatten Sent: Thursday, May 13, 2010 9:12 AM To: 'Jean-Paul Natola' Cc: freebsd-questions@freebsd.org Subject: RE: user friendliest gui -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Jean-Paul Natola Sent: Thursday, May 13, 2010 8:11 AM Cc: freebsd-questions@freebsd.org Subject: RE: user friendliest gui >If one would really want to go with X, Tcl/Tk, as it has been >mentioned by others (and me), is a good way to go. There are >helpful examples installed when you install it on your system. >It's a very easy to learn, but still powerful scripting language >that very well interacts with command line processing. Just >look at the examples, you'll find much inspiration there. >For text mode and using dialog (as for example sysinstall does), >it's another easy way to go, because you can entirely keep your >scripting in /bin/sh syntax and don't need much dependencies. >Furthermore, you have a portable solution. No special needs for >a high-end GPU and an appropriate driver. Even a 100 MHz box >with a 2 GB hard disk could then be used for this particular >job. You could even attach a simple dotmatrix line printer for >printing the receipt. :-) Ok so I have my new box setup and I have installed Clamav-devel Tcl86 Dialog First question is , I have only ever used clamav-clamd in the past which I start with /usr/local/etc/rc.d/clamav-clamd start to run it, how do I run devel? Second question is , where to o go from here? I have tried to man tcl86 and man clamav-devel but I get no manual entry Did you try "man tcl" and "man clamav"? Typically "devel" just adds a few extra bits and pieces, it's a separate binary you must start. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" SORRY!! It should've read, "devel" is NOT a separate / unique binary you must start. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: user friendliest gui
-Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Jean-Paul Natola Sent: Thursday, May 13, 2010 8:11 AM Cc: freebsd-questions@freebsd.org Subject: RE: user friendliest gui >If one would really want to go with X, Tcl/Tk, as it has been >mentioned by others (and me), is a good way to go. There are >helpful examples installed when you install it on your system. >It's a very easy to learn, but still powerful scripting language >that very well interacts with command line processing. Just >look at the examples, you'll find much inspiration there. >For text mode and using dialog (as for example sysinstall does), >it's another easy way to go, because you can entirely keep your >scripting in /bin/sh syntax and don't need much dependencies. >Furthermore, you have a portable solution. No special needs for >a high-end GPU and an appropriate driver. Even a 100 MHz box >with a 2 GB hard disk could then be used for this particular >job. You could even attach a simple dotmatrix line printer for >printing the receipt. :-) Ok so I have my new box setup and I have installed Clamav-devel Tcl86 Dialog First question is , I have only ever used clamav-clamd in the past which I start with /usr/local/etc/rc.d/clamav-clamd start to run it, how do I run devel? Second question is , where to o go from here? I have tried to man tcl86 and man clamav-devel but I get no manual entry Did you try "man tcl" and "man clamav"? Typically "devel" just adds a few extra bits and pieces, it's a separate binary you must start. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: user friendliest gui
>If one would really want to go with X, Tcl/Tk, as it has been >mentioned by others (and me), is a good way to go. There are >helpful examples installed when you install it on your system. >It's a very easy to learn, but still powerful scripting language >that very well interacts with command line processing. Just >look at the examples, you'll find much inspiration there. >For text mode and using dialog (as for example sysinstall does), >it's another easy way to go, because you can entirely keep your >scripting in /bin/sh syntax and don't need much dependencies. >Furthermore, you have a portable solution. No special needs for >a high-end GPU and an appropriate driver. Even a 100 MHz box >with a 2 GB hard disk could then be used for this particular >job. You could even attach a simple dotmatrix line printer for >printing the receipt. :-) Ok so I have my new box setup and I have installed Clamav-devel Tcl86 Dialog First question is , I have only ever used clamav-clamd in the past which I start with /usr/local/etc/rc.d/clamav-clamd start to run it, how do I run devel? Second question is , where to o go from here? I have tried to man tcl86 and man clamav-devel but I get no manual entry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: user friendliest gui
> Don't mean to sound TOO ignorant, but which Tcl should I be installing? > This one? > /usr/ports/lang/p5-Tcl p5-Tcl is the perl interface for Tcl. Try lang/tcl86 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: user friendliest gui
>Anyway, a bit of DOS batch programming experience helps >people intending to write a /bin/sh shell script, and if >this task is done, a "GUI wrapper", either using text mode >with dialog, or using Tcl/Tk in X is quite easy. Don't mean to sound TOO ignorant, but which Tcl should I be installing? This one? /usr/ports/lang/p5-Tcl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: user friendliest gui
On Wed, May 12, 2010 at 11:58, Polytropon wrote: > On Wed, 12 May 2010 10:47:24 -0700, Kurt Buff wrote: >> No, Denial of Service would be DoS. He's talking about Disk Operating >> System. Funny, though. > > Well, and "Disk Operating System" is a language then? :-) > > Okay okay, of course I knew that he was refering to batch > programming with DOS commands when using "DOS as a language". > When people mention "DOS", I fist think about DOS/360 and > afterwards about DOS (as CP/M successor) implementations > for the PC. Shows how old I am. :-) We might be of similar ages. :) > Anyway, a bit of DOS batch programming experience helps > people intending to write a /bin/sh shell script, and if > this task is done, a "GUI wrapper", either using text mode > with dialog, or using Tcl/Tk in X is quite easy. Absolutely. Kurt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: user friendliest gui
On Wed, 12 May 2010 10:47:24 -0700, Kurt Buff wrote: > No, Denial of Service would be DoS. He's talking about Disk Operating > System. Funny, though. Well, and "Disk Operating System" is a language then? :-) Okay okay, of course I knew that he was refering to batch programming with DOS commands when using "DOS as a language". When people mention "DOS", I fist think about DOS/360 and afterwards about DOS (as CP/M successor) implementations for the PC. Shows how old I am. :-) Anyway, a bit of DOS batch programming experience helps people intending to write a /bin/sh shell script, and if this task is done, a "GUI wrapper", either using text mode with dialog, or using Tcl/Tk in X is quite easy. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: user friendliest gui
On Wed, May 12, 2010 at 10:02, Polytropon wrote: > On Wed, 12 May 2010 14:39:46 +, Jean-Paul Natola > wrote: >> >> As for directions: >> >> >Use your choice of programming language to write a program that will >> >call file(1) to determine filesystem, mount the device, virus scan, and >> >unmount the device. Display prompts and results with dialog(1). Print >> >results if desired. >> >> I do not know any language, other than DOS , which is why I asked > > "Denial Of Service" is a language? Where is it spoken, > in Kaputnikstan? :-) No, Denial of Service would be DoS. He's talking about Disk Operating System. Funny, though. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: user friendliest gui
On Wed, 12 May 2010 14:39:46 +, Jean-Paul Natola wrote: > > As for directions: > > >Use your choice of programming language to write a program that will > >call file(1) to determine filesystem, mount the device, virus scan, and > >unmount the device. Display prompts and results with dialog(1). Print > >results if desired. > > I do not know any language, other than DOS , which is why I asked "Denial Of Service" is a language? Where is it spoken, in Kaputnikstan? :-) If one would really want to go with X, Tcl/Tk, as it has been mentioned by others (and me), is a good way to go. There are helpful examples installed when you install it on your system. It's a very easy to learn, but still powerful scripting language that very well interacts with command line processing. Just look at the examples, you'll find much inspiration there. For text mode and using dialog (as for example sysinstall does), it's another easy way to go, because you can entirely keep your scripting in /bin/sh syntax and don't need much dependencies. Furthermore, you have a portable solution. No special needs for a high-end GPU and an appropriate driver. Even a 100 MHz box with a 2 GB hard disk could then be used for this particular job. You could even attach a simple dotmatrix line printer for printing the receipt. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: user friendliest gui
As for directions: >Use your choice of programming language to write a program that will >call file(1) to determine filesystem, mount the device, virus scan, and >unmount the device. Display prompts and results with dialog(1). Print >results if desired. I do not know any language, other than DOS , which is why I asked >Configure devd.conf(5) to detect USB mass storage device connect and run >the program. This I know how to do >References: >file(1), dialog(1), devd.conf(5), mount_msdosfs(8), mount_ntfs(8), >security/clamav[-devel] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: user friendliest gui
On Wed, 12 May 2010, Jean-Paul Natola wrote: These tasks may be trivial to all members on this list, but to a novice like myself, seems a bit overwhelming to be honest. As far as the touchscreen goes , thats a nice thought, but not in our budget. I'd prefer to spend ~300 dollars on the reciept style printer. Can someone point me in the direction to get this started? [Please, please stop top-posting and full-quoting. It makes replying to your posts more difficult.] What input do you need from the user? They connect the device, it scans and shows results, they disconnect. No need for a touchscreen, or even a normal mouse and keyboard. Do you need printed reports? If so, use a standard printer, possibly one that's already on your network. As for directions: Use your choice of programming language to write a program that will call file(1) to determine filesystem, mount the device, virus scan, and unmount the device. Display prompts and results with dialog(1). Print results if desired. Configure devd.conf(5) to detect USB mass storage device connect and run the program. References: file(1), dialog(1), devd.conf(5), mount_msdosfs(8), mount_ntfs(8), security/clamav[-devel] -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: user friendliest gui
These tasks may be trivial to all members on this list, but to a novice like myself, seems a bit overwhelming to be honest. As far as the touchscreen goes , thats a nice thought, but not in our budget. I'd prefer to spend ~300 dollars on the reciept style printer. Can someone point me in the direction to get this started? From: owner-freebsd-questi...@freevialbsd.org [owner-freebsd-questi...@freebsd.org] on behalf of Robert Bonomi [bon...@mail.r-bonomi.com] Sent: Tuesday, May 11, 2010 7:39 PM To: freebsd-questions@freebsd.org Subject: Re: user friendliest gui > From andrewlylego...@gmail.com Tue May 11 16:46:38 2010 > Date: Tue, 11 May 2010 16:46:50 -0500 > Subject: Re: user friendliest gui > From: Andrew Gould > To: Jean-Paul Natola > Cc: Robert Bonomi , > "freebsd-questions@freebsd.org" > > On Tue, May 11, 2010 at 3:26 PM, Jean-Paul Natola > wrote: > > > -Original Message- > > > From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questions= > > @freebsd.org] On Behalf Of Robert Bonomi > > > Sent: Tuesday, May 11, 2010 3:07 PM > > > To: freebsd-questions@freebsd.org > > > Subject: RE: user friendliest gui > > > > > > > > >> Date: Tue, 11 May 2010 18:51:44 + > > >> Cc: FreeBSD Mailing List > > >> Subject: RE: user friendliest gui > > >> > > >> My users here, =A0"no gui" =3D "machine is broken" > > >> > > >> ____________ > > >> From: Eitan Adler [mailto:li...@eitanadler.com] > > >> Sent: Tuesday, May 11, 2010 2:48 PM > > >> To: Gary Gatten > > >> Cc: Jean-Paul Natola; FreeBSD Mailing List > > >> Subject: Re: user friendliest gui > > >> > > >> > > >> On Tue, May 11, 2010 at 9:36 PM, Gary Gatten wrote= > > : > > >> If that's all your doing on that system, maybe some restricted shell wit= > > h > > >> automagical scan script would be fine? =A0Just a thought. =A0Avoid GUI's= > > if you > > >> can! > > >> > > >> Why? For most users GUIs are far easier to understand and use. > > > > > > Why?? =A0Because, In this case, the GUI is entirely -un-necessary-. =A0Th= > > e user > > > doesn't have to do anything other than stick the flash drive in the USB p= > > ort. > > > > > > The machine does everything else. =A0*WITHOUT* any further user intervent= > > ion > > > required. > > > > > > Why bother with the GUI, when there is no inter-actiona required? > > > > Will it pop-up a message saying your drive is clean? > > If so then great TRIVIALLY easy to do. This is a =dedicated=, single-function, machine, one can have an app *already*running* that looks for syslog messages for a USB insertion, mounts the indicated device on, say '/mnt', initiates a virus-scan, *displays* the results, and unmounts the device. > I'm going to advocate for a GUI here due to the possibility of a false > positive during malware detection. The user should be given a choice > as to whether the infected file is cleaned, deleted or left alone. > If > the user chooses to keep the file, the user should also be able to > store the scan log onto the usb drive. (Users should also be able to > decide that no log will be written to the drive.) These things will > require interaction with the user. I favor a 'receipt' printer -- one of the little ones that uses adding-machine size paper, like ATM machines have. Print the USB device ID, a timestamp, the status (clean vs. infected), and if infected, a simple summary of how many infections of what type(s) were detected. _maybe_ list the first few infected files. OP _did_ 'spec' that this was to be a malware DETECTION 'scanning' system, not a removal/repair installation. "Reading between the lines", I gatther that this is to be a choke-point/ validation service, and *only* devices that pass through it as 'uninfected' will be allowed to be used on other machines on thepremises. That the "function" of this box is to protect the other internal boxes, _not_ to disinfect infected USB devices. > There is also the possibility that the OP will want to add related, > optional services later. One example might be the option to choose > whether the usb drive is scanned or completely erased by overwriting > the drive with zeros. > I wouldn't want the *LIABILITY* for doing =that=. > Another good
Re: user friendliest gui
> From andrewlylego...@gmail.com Tue May 11 16:46:38 2010 > Date: Tue, 11 May 2010 16:46:50 -0500 > Subject: Re: user friendliest gui > From: Andrew Gould > To: Jean-Paul Natola > Cc: Robert Bonomi , > "freebsd-questions@freebsd.org" > > On Tue, May 11, 2010 at 3:26 PM, Jean-Paul Natola > wrote: > > > -Original Message- > > > From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questions= > > @freebsd.org] On Behalf Of Robert Bonomi > > > Sent: Tuesday, May 11, 2010 3:07 PM > > > To: freebsd-questions@freebsd.org > > > Subject: RE: user friendliest gui > > > > > > > > >> Date: Tue, 11 May 2010 18:51:44 + > > >> Cc: FreeBSD Mailing List > > >> Subject: RE: user friendliest gui > > >> > > >> My users here, =A0"no gui" =3D "machine is broken" > > >> > > >> ____________ > > >> From: Eitan Adler [mailto:li...@eitanadler.com] > > >> Sent: Tuesday, May 11, 2010 2:48 PM > > >> To: Gary Gatten > > >> Cc: Jean-Paul Natola; FreeBSD Mailing List > > >> Subject: Re: user friendliest gui > > >> > > >> > > >> On Tue, May 11, 2010 at 9:36 PM, Gary Gatten wrote= > > : > > >> If that's all your doing on that system, maybe some restricted shell wit= > > h > > >> automagical scan script would be fine? =A0Just a thought. =A0Avoid GUI's= > > if you > > >> can! > > >> > > >> Why? For most users GUIs are far easier to understand and use. > > > > > > Why?? =A0Because, In this case, the GUI is entirely -un-necessary-. =A0Th= > > e user > > > doesn't have to do anything other than stick the flash drive in the USB p= > > ort. > > > > > > The machine does everything else. =A0*WITHOUT* any further user intervent= > > ion > > > required. > > > > > > Why bother with the GUI, when there is no inter-actiona required? > > > > Will it pop-up a message saying your drive is clean? > > If so then great TRIVIALLY easy to do. This is a =dedicated=, single-function, machine, one can have an app *already*running* that looks for syslog messages for a USB insertion, mounts the indicated device on, say '/mnt', initiates a virus-scan, *displays* the results, and unmounts the device. > I'm going to advocate for a GUI here due to the possibility of a false > positive during malware detection. The user should be given a choice > as to whether the infected file is cleaned, deleted or left alone. > If > the user chooses to keep the file, the user should also be able to > store the scan log onto the usb drive. (Users should also be able to > decide that no log will be written to the drive.) These things will > require interaction with the user. I favor a 'receipt' printer -- one of the little ones that uses adding-machine size paper, like ATM machines have. Print the USB device ID, a timestamp, the status (clean vs. infected), and if infected, a simple summary of how many infections of what type(s) were detected. _maybe_ list the first few infected files. OP _did_ 'spec' that this was to be a malware DETECTION 'scanning' system, not a removal/repair installation. "Reading between the lines", I gatther that this is to be a choke-point/ validation service, and *only* devices that pass through it as 'uninfected' will be allowed to be used on other machines on thepremises. That the "function" of this box is to protect the other internal boxes, _not_ to disinfect infected USB devices. > There is also the possibility that the OP will want to add related, > optional services later. One example might be the option to choose > whether the usb drive is scanned or completely erased by overwriting > the drive with zeros. > I wouldn't want the *LIABILITY* for doing =that=. > Another good use for the GUI, as scanning an 8GB or 32GB usb drive may > take some time, is to present a slideshow to the user about computer > security or, perhaps, an introduction to the wonderful operating > system that is running on the computer. One can do _all_ of that without any need for a GUI. All it takes is a little creativity in the programming. In many ways, the 'ideal' UI _hardware_ for this kind of an application is a _touch_screen_. *IF*and*when* you want to add additional features that require interactivity. The application itself needs use nothing more than color 'curses' (or equivalent) to provide a sufficiently 'user-friendly' display. As for doing a 'slide show' or similar, while scanning is in progress, 'anything' that can (a) change console video mode(s), and (b) output an appropriate pattern/number of pixels, can do that. *without* the overhead of a full-blown GUI in the way. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: user friendliest gui
On Tue, May 11, 2010 at 3:26 PM, Jean-Paul Natola wrote: > Will it pop-up a message saying your drive is clean? > If so then great > > -Original Message- > From: owner-freebsd-questi...@freebsd.org > [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Robert Bonomi > Sent: Tuesday, May 11, 2010 3:07 PM > To: freebsd-questions@freebsd.org > Subject: RE: user friendliest gui > > >> Date: Tue, 11 May 2010 18:51:44 + >> Cc: FreeBSD Mailing List >> Subject: RE: user friendliest gui >> >> My users here, "no gui" = "machine is broken" >> >> >> From: Eitan Adler [mailto:li...@eitanadler.com] >> Sent: Tuesday, May 11, 2010 2:48 PM >> To: Gary Gatten >> Cc: Jean-Paul Natola; FreeBSD Mailing List >> Subject: Re: user friendliest gui >> >> >> On Tue, May 11, 2010 at 9:36 PM, Gary Gatten wrote: >> If that's all your doing on that system, maybe some restricted shell with >> automagical scan script would be fine? Just a thought. Avoid GUI's if you >> can! >> >> Why? For most users GUIs are far easier to understand and use. > > 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? I'm going to advocate for a GUI here due to the possibility of a false positive during malware detection. The user should be given a choice as to whether the infected file is cleaned, deleted or left alone. If the user chooses to keep the file, the user should also be able to store the scan log onto the usb drive. (Users should also be able to decide that no log will be written to the drive.) These things will require interaction with the user. There is also the possibility that the OP will want to add related, optional services later. One example might be the option to choose whether the usb drive is scanned or completely erased by overwriting the drive with zeros. Another good use for the GUI, as scanning an 8GB or 32GB usb drive may take some time, is to present a slideshow to the user about computer security or, perhaps, an introduction to the wonderful operating system that is running on the computer. Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: user friendliest gui
Will it pop-up a message saying your drive is clean? If so then great -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Robert Bonomi Sent: Tuesday, May 11, 2010 3:07 PM To: freebsd-questions@freebsd.org Subject: RE: user friendliest gui > Date: Tue, 11 May 2010 18:51:44 + > Cc: FreeBSD Mailing List > Subject: RE: user friendliest gui > > My users here, "no gui" = "machine is broken" > > > From: Eitan Adler [mailto:li...@eitanadler.com] > Sent: Tuesday, May 11, 2010 2:48 PM > To: Gary Gatten > Cc: Jean-Paul Natola; FreeBSD Mailing List > Subject: Re: user friendliest gui > > > On Tue, May 11, 2010 at 9:36 PM, Gary Gatten wrote: > If that's all your doing on that system, maybe some restricted shell with > automagical scan script would be fine? Just a thought. Avoid GUI's if you > can! > > Why? For most users GUIs are far easier to understand and use. 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? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: user friendliest gui
On Tue, 11 May 2010 18:49:51 + Jean-Paul Natola wrote: > For virus/malware > > Sorry bout that > > -Original Message- > From: Warren Block [mailto:wbl...@wonkity.com] > Sent: Tuesday, May 11, 2010 2:49 PM > To: Jean-Paul Natola > Cc: FreeBSD Mailing List > Subject: Re: user friendliest gui > > On Tue, 11 May 2010, Jean-Paul Natola wrote: > > > I'm planning on setting up a workstation in our library for the SOLE > > purpose of scanning flash drives. > > What do you mean by "scanning flash drives"? Scanning for files, > viruses, images, what? To anser your question, I prefer Gnome. See http://www.freebsd.org/gnome/ as well as some of my notes at http://wiki.openslate.net/ Having said that, it sounds like your application does not require all that special gnomieness. Understand that installing and maintaining Gnome is a large project all it's own. If you don't need it, why bother? Consider just installing x.org and a nice window manager like sawfish or blackbox. See http://xwinman.org/ and poke around in /usr/ports/x11-wm on your FreeBSD system. If the world were perfect I would tell you to install Squeak and develop what you need in smalltalk. I love Squeak, but I cannot say how effective it would be at providing a GUI to whatever command line drive scanner you intend to use. You can easily customize the basic configuration (called an image) to eliminate what you do not require. http://www.squeak.org/ Another way to go would be my second most favorite language, tcl/tk. Easy to do the command line interface, but a lot more utilitarian than Squeak. http://www.tcl.tk/ What happens when a bug is detected? Do sirens go off? Steel doors slam down at all entrances? Gary Dunn Open Slate Project ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: user friendliest gui
On Tue, 11 May 2010 22:30:08 +0300, Eitan Adler wrote: > > My users here, "no gui" = "machine is broken" And they *do* use computers? :-) > makes it very necessary. Sure. > Anyway if you want a really simple GUI try icewm or dwm. The former recently > had a thread on its mailing list about how to lock it down for use as a > kiosk and the latter has < 5000 lines of code so it should be easy to modify > to your liking if you know some C. If this machine wil be dedicated to just scanning USB sticks, there is NO NEED for a window manager. A (maybe fullscreen) Tcl/Tk wrapper for the programs involved in the scanning process should be completely sufficient. If this machine should do other things, too, maybe it's useful to add xdm, and then be able to logout from the scanner account (of course involving a password, so the clever "no gui = broken" users cannot "accidentally" log out and "break" the machine. With another user account, something else could be done. > Also look at devd(8) for running your script - The devd daemon provides a > way to have userland programs run when certain kernel events happen. That's a very good advice - a way to automate the process. While the scanner application wrapper is waiting for a "devd signal" to start work, the machine can show dancing puppies, play music or show random window decorations (to indicate it's not "broken"). If the "devd signal" arrives, the scanning process starts, and the machine only shows the minimal informations (that the clever users can understand, like "put in the stick" or "take out the stick", but not too complicated, so don't bother them with what kind of virus or malware has been found). Again, Tcl/Tk is an excellent means to implement this. And as a sidenote: As GUIs aren't user friendly in this specific situation (it's always specific, keep in mind), it should be reduced to the minimum to do the job. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: user friendliest gui
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, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: user friendliest gui
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. > > My users here, "no gui" = "machine is broken" makes it very necessary. Anyway if you want a really simple GUI try icewm or dwm. The former recently had a thread on its mailing list about how to lock it down for use as a kiosk and the latter has < 5000 lines of code so it should be easy to modify to your liking if you know some C. Also look at devd(8) for running your script - The devd daemon provides a way to have userland programs run when certain kernel events happen. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: user friendliest gui
On Tue, May 11, 2010 at 9:36 PM, Gary Gatten wrote: > If that's all your doing on that system, maybe some restricted shell with > automagical scan script would be fine? Just a thought. Avoid GUI's if you > can! > Why? For most users GUIs are far easier to understand and use. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: user friendliest gui
> Date: Tue, 11 May 2010 18:51:44 + > Cc: FreeBSD Mailing List > Subject: RE: user friendliest gui > > My users here, "no gui" = "machine is broken" > > > From: Eitan Adler [mailto:li...@eitanadler.com] > Sent: Tuesday, May 11, 2010 2:48 PM > To: Gary Gatten > Cc: Jean-Paul Natola; FreeBSD Mailing List > Subject: Re: user friendliest gui > > > On Tue, May 11, 2010 at 9:36 PM, Gary Gatten wrote: > If that's all your doing on that system, maybe some restricted shell with > automagical scan script would be fine? Just a thought. Avoid GUI's if you > can! > > Why? For most users GUIs are far easier to understand and use. 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? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: user friendliest gui
My users here, "no gui" = "machine is broken" From: Eitan Adler [mailto:li...@eitanadler.com] Sent: Tuesday, May 11, 2010 2:48 PM To: Gary Gatten Cc: Jean-Paul Natola; FreeBSD Mailing List Subject: Re: user friendliest gui On Tue, May 11, 2010 at 9:36 PM, Gary Gatten mailto:ggat...@waddell.com>> wrote: If that's all your doing on that system, maybe some restricted shell with automagical scan script would be fine? Just a thought. Avoid GUI's if you can! Why? For most users GUIs are far easier to understand and use. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: user friendliest gui
For virus/malware Sorry bout that -Original Message- From: Warren Block [mailto:wbl...@wonkity.com] Sent: Tuesday, May 11, 2010 2:49 PM To: Jean-Paul Natola Cc: FreeBSD Mailing List Subject: Re: user friendliest gui On Tue, 11 May 2010, Jean-Paul Natola wrote: > I'm planning on setting up a workstation in our library for the SOLE > purpose of scanning flash drives. What do you mean by "scanning flash drives"? Scanning for files, viruses, images, what? -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: user friendliest gui
On Tue, 11 May 2010, Jean-Paul Natola wrote: I'm planning on setting up a workstation in our library for the SOLE purpose of scanning flash drives. What do you mean by "scanning flash drives"? Scanning for files, viruses, images, what? -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: user friendliest gui
If that's all your doing on that system, maybe some restricted shell with automagical scan script would be fine? Just a thought. Avoid GUI's if you can! -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Jean-Paul Natola Sent: Tuesday, May 11, 2010 1:30 PM To: FreeBSD Mailing List Subject: user friendliest gui Hi all, I'm planning on setting up a workstation in our library for the SOLE purpose of scanning flash drives. My users are 100% windows users, and have never used anything else. In case you are curious, all usb ports are disabled on ALL windows machines. So the question is I want to make this is simple as possible for any user to put the flash drive into the bsd computer and scan the drive (if it can be automated that would be even greater but not required) TIA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
user friendliest gui
Hi all, I'm planning on setting up a workstation in our library for the SOLE purpose of scanning flash drives. My users are 100% windows users, and have never used anything else. In case you are curious, all usb ports are disabled on ALL windows machines. So the question is I want to make this is simple as possible for any user to put the flash drive into the bsd computer and scan the drive (if it can be automated that would be even greater but not required) TIA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"