Re: [SLUG] today's scary thought

2010-07-14 Thread Del

Jeff Waugh wrote:

quote who=Del


Someone asked me today, as they often ask me about things Linux, if I had
a Linux replacement for their favourite journal app that they run on
their (windows) PC.  I asked what that journal app did, and was told:

You can set it to track when you open files of various types [in other
applications] and how long they are open for..  Further quizzing revealed
that you can set it to record when those files were opened, saved, closed,
and when and where any saved and backup copies were stored.

I mentioned the security impacts of such an application, or even the fact
that such an application was possible, and left it at that.


Look around for Zeitgeist. :-)


Good point, but quite different.  It's a D-BUS based data logger which apps can choose to 
publish their information to.  In a way it's not unlike syslog.


So my OpenOffice.org calc program can choose to tell zeitgeist Del opened file X on his 
system.  zeitgeist doesn't interrupt OpenOffice.org calc's system calls to find out what files 
are being opened (and potentially dumping copies of those files to an IRC channel to be picked 
up by a botnet operating out of frangipangiland) without OpenOffice.org knowing about it.


--
Del
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] today's scary thought

2010-07-14 Thread Daniel Pittman
Jeff Waugh j...@perkypants.org writes:
 quote who=Del

 Someone asked me today, as they often ask me about things Linux, if I had a
 Linux replacement for their favourite journal app that they run on their
 (windows) PC.  I asked what that journal app did, and was told:

 You can set it to track when you open files of various types [in other
 applications] and how long they are open for..  Further quizzing revealed
 that you can set it to record when those files were opened, saved, closed,
 and when and where any saved and backup copies were stored.

Wow.  What a useful tool for tracking what you do!

 I mentioned the security impacts of such an application, or even the fact
 that such an application was possible, and left it at that.

 Look around for Zeitgeist. :-)

...or snapshot 'ls -l /proc/[0-9]*/fd/' on a regular basis, or better still
use one of the task notification hooks that I understand are floating
around[1] to capture task creation and exit automatically.

Also, what on earth security implications did you see, Del, in being able to
see what files you have opened yourself?  It isn't like your applications
couldn't record this anyhow...

Daniel

Heck, my Emacs does keep a long history of the files I have opened, since I
like to be able to do backward-isearch in an LRU list to get at things I
worked on in the last few days...

Footnotes: 
[1]  ...in that I have seen occasional discussion of 'em on the kernel list,
 so presume they have floated out to have a user-space interface by this
 point, but no nothing beyond that.

-- 
✣ Daniel Pittman✉ dan...@rimspace.net☎ +61 401 155 707
   ♽ made with 100 percent post-consumer electrons
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] today's scary thought

2010-07-14 Thread Peter Chubb
 Del == Del  d...@babel.com.au writes:

Del Jeff Waugh wrote:
 quote who=Del
 
 Someone asked me today, as they often ask me about things Linux,
 if I had a Linux replacement for their favourite journal app
 that they run on their (windows) PC.  I asked what that journal
 app did, and was told:
 
 You can set it to track when you open files of various types [in
 other applications] and how long they are open for..  Further
 quizzing revealed that you can set it to record when those files
 were opened, saved, closed, and when and where any saved and
 backup copies were stored.

You could do this with inotify, with `just a few' scripts around it.

Peter C--
Dr Peter Chubb  peter DOT chubb AT nicta.com.au
http://www.ertos.nicta.com.au   ERTOS within National ICT Australia
All things shall perish from under the sky/Music alone shall live, never to die
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Perl Regular expression help

2010-07-14 Thread Nick Andrew
On Wed, Jul 14, 2010 at 01:27:13PM +1000, Peter Rundle wrote:
 I don't really understand how the [^] followed by the * works but it does.

any character which is not an ampersand repeated zero or more times.

So it matches

()
()
(a)
(a)
(aaa...)
(aaa...)

Where the stuff inside () is what's being matched. The matched part stops
at the first  or the end of the string. It's greedy so it matches as long
a string as possible.

Nick.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Perl Regular expression help

2010-07-14 Thread Lindsay Holmwood

On 14/07/2010, at 13:27, Peter Rundle pe...@aerodonetix.com.au wrote:


P.S I didn't understand Lindsay's question about doing the replace.  
I'm replacing the arg with nothing, I.E I just want to remove the  
pg= argument from the string.




Didn't know what you were replacing your match with, was just curious  
about how other people would solve this problem.


Lindsay 
--

SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] today's scary thought

2010-07-14 Thread Jamie Wilkinson
The equivalent on MacOS is Time Machine, as I understand it (which is not
very much as I don't understand Macs at all), but I'm not aware of any Linux
application that does this either.  I like Peter's idea of using inotify
though, you could whip up a 10 liner with the python language bindings to
record all file accesses in under an hour.

jdub, zeitgeist is a terrible project name for them, too many better things
with that name for it to get a page one ranking :)

On 13 July 2010 22:19, Del d...@babel.com.au wrote:


 Someone asked me today, as they often ask me about things Linux, if I had a
 Linux replacement for their favourite journal app that they run on their
 (windows) PC.  I asked what that journal app did, and was told:

 You can set it to track when you open files of various types [in other
 applications] and how long they are open for..  Further quizzing revealed
 that you can set it to record when those files were opened, saved, closed,
 and when and where any saved and backup copies were stored.

 I mentioned the security impacts of such an application, or even the fact
 that such an application was possible, and left it at that.

 --
 Del

 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Adaptec RAID problems

2010-07-14 Thread Robert Barnett

Thanks for your persistence Ben,

I reduced the size of the array to a 2Gb RAID 1 and experienced the same 
problem.

I've worked out that I can load more recent firmware using a more recent 
version of Sun Common Array Manager. The firmware 
load failed in RHEL so I'll have to wait until Sun has sorted that out.

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] RE: Perl Regular expression help

2010-07-14 Thread Bill Donoghoe
I have found the following on-line tool useful for debugging regular
expressions.  The regular expression is applied to the content of the text
box so you get feedback on what is being matched by each part of the
expression.

http://gskinner.com/RegExr/

To quote from the description of the tool RegExr is built with Flex 3, and
uses ActionScript 3's built in RegExp engine.. Thus, it is almost certain
that there are differences in the regular expression syntax for Flex 3 and
Perl.

Regards,
Bill Donoghoe
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] today's scary thought

2010-07-14 Thread Lindsay Holmwood
On 15 July 2010 02:10, Jamie Wilkinson j...@spacepants.org wrote:
 The equivalent on MacOS is Time Machine, as I understand it (which is not
 very much as I don't understand Macs at all), but I'm not aware of any Linux
 application that does this either.  I like Peter's idea of using inotify
 though, you could whip up a 10 liner with the python language bindings to
 record all file accesses in under an hour.


Dirvish[0] is vaguely equivalent to Time Machine.

[0] http://www.dirvish.org/

Lindsay

-- 
w: http://holmwood.id.au/~lindsay/
t: @auxesis
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Adaptec RAID problems

2010-07-14 Thread Nick Andrew
On Thu, Jul 15, 2010 at 05:53:13AM +0800, Robert Barnett wrote:
 Thanks for your persistence Ben,
 I reduced the size of the array to a 2Gb RAID 1 and experienced the same 
 problem.
 
 I've worked out that I can load more recent firmware using a more recent 
 version of Sun Common Array Manager. The firmware 
 load failed in RHEL so I'll have to wait until Sun has sorted that out.

How about try Software RAID?

Nick.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Perl Regular expression help

2010-07-14 Thread Peter Rundle

Thanks Nick, What I didn't know was that ^ inside brackets [] means not. I was still 
reading ^ as beginning of string.

That will be very very useful in future.

Thanks

Pete


Nick Andrew wrote:

On Wed, Jul 14, 2010 at 01:27:13PM +1000, Peter Rundle wrote:

I don't really understand how the [^] followed by the * works but it does.


any character which is not an ampersand repeated zero or more times.

So it matches

()
()
(a)
(a)
(aaa...)
(aaa...)

Where the stuff inside () is what's being matched. The matched part stops
at the first  or the end of the string. It's greedy so it matches as long
a string as possible.

Nick.

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] today's scary thought

2010-07-14 Thread Matthew Hannigan
On Wed, Jul 14, 2010 at 04:06:17PM +1000, Peter Chubb wrote:
 
 You could do this with inotify, with `just a few' scripts around it.

Related: http://code.google.com/p/lsyncd/ drives rsyncing with inotify.


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] today's scary thought

2010-07-14 Thread Jake Anderson

On 15/07/10 14:10, Matthew Hannigan wrote:

On Wed, Jul 14, 2010 at 04:06:17PM +1000, Peter Chubb wrote:
   

You could do this with inotify, with `just a few' scripts around it.
 

Related: http://code.google.com/p/lsyncd/ drives rsyncing with inotify.

   
Actually that looks like a fairly handy tool, I have been trying to work 
out the best way of keeping files in two offices in sync and drbd seemed 
like overkill

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Adaptec RAID problems

2010-07-14 Thread Robert Barnett

Hi Nick,

Actually, I originally had 5x1Tb in a LVM group and that suited me fine. The 
HBA didn't support RAID for some reason. The only 
problem was that Fedora 11 udev tended to timeout when attempting to detect the 
individual disks. The only way to solve the 
problem was to plug in the SAS cable after the Fedora had booted and the 
detection was successful. Here is a post on fedora 
forum and entry in bugzilla:

http://forums.fedoraforum.org/showthread.php?t=243493highlight=J4200
https://bugzilla.redhat.com/show_bug.cgi?id=582094

We upgraded the HBA to one which supported RAID and I decided on Fedora 13 
(since Fedora 11 is now EOL).
In Fedora 13, udev doesn't appear to detect individual disks. I'm guessing that 
the default behaviour for the new Adaptec driver 
in this kernel is not to expose physical components of the arrays 
(expose_physicals=0). I can probably try to override the driver 
preference and see what the IO is like to individual disks.

Perhaps the problem will go away once I've installed the necessary firmware.

I'm very tempted to run a chroot Gentoo from within RedHat. I really need a 
recent version of linux for development purposes, 
but it needs to sit on a vendor supported OS. I brought up a chroot image as a 
way to distribute GEANT

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html