Re: how to determine from script if/where X is running

2008-03-27 Thread Patter
On Wed, 26 Mar 2008 18:50:07 +0100, Sven Joachim wrote:
 Most programs simply check for the DISPLAY environment variable.  This
 is not totally reliable as it can be changed at will, but if the user
 messes around with that variable, it is considered his fault.  And
 you're in good company.

Though DISPLAY is only set if your process is running from within X. If
you need to find a running X from the console (though you won't be able
to attach to it) try 'ps'.


-- 
Stephen Patterson :: [EMAIL PROTECTED] :: http://patter.mine.nu/
GPG: B416F0DE :: Jabber: [EMAIL PROTECTED] 
Don't be silly, Minnie. Who'd be walking round these cliffs with a gas oven?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Silent Cron Jobs

2008-03-27 Thread Patter
On Wed, 26 Mar 2008 20:40:12 +0100, Curt Howland wrote:
 I tried to whip up a small cron job, I put a short script 
 in /etc/cron.daily thinking that this would work.

 Well, yes, it works, but I get mail sent to me by cron explaining that 
 the job executed successfully.

http://www.linuxhelp.net/guides/cron/

-- 
Stephen Patterson :: [EMAIL PROTECTED] :: http://patter.mine.nu/
GPG: B416F0DE :: Jabber: [EMAIL PROTECTED] 
Don't be silly, Minnie. Who'd be walking round these cliffs with a gas oven?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Idea of a Debian Mascot [Was: FW: Bits from the DPL: FTP assistants, marketing team, init scripts, elections]

2008-02-29 Thread Patter
On Fri, 29 Feb 2008 11:00:15 +0100, Nuno Magalhães wrote:
 I love the cream swirling into the coffee graphic that was a
 bootsplash at some point. Don't know if it's still around, but it sure
 captures my image of debian.

 If it doesn't even remotely hint of Java i'll vote for that.

I made a debianised tux some years ago -
http://patter.mine.nu/bigpenguin-transp.png

-- 
Stephen Patterson :: [EMAIL PROTECTED] :: http://patter.mine.nu/
GPG: B416F0DE :: Jabber: [EMAIL PROTECTED] 
Don't be silly, Minnie. Who'd be walking round these cliffs with a gas oven?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: What am I missing without mutt?

2008-02-06 Thread Patter
On Wed, 06 Feb 2008 19:30:21 +0100, Steve Lamb wrote:
 John Hasler wrote:
 s. keeling writes:
 Mutt handles any standard form of mail box format, including
 on_some_other_server(don't much care how), aka. imap.

 Internet Message Access Protocol is a protocol, not a file format.

 Not to mention mutt's IMAP implementation is less than stellar.  I
 certainly wouldn't go around crowing about it.

huh? it works decently enough  as well as some of the alternatives.

-- 
Stephen Patterson :: [EMAIL PROTECTED] :: http://patter.mine.nu/
GPG: B416F0DE :: Jabber: [EMAIL PROTECTED] 
Don't be silly, Minnie. Who'd be walking round these cliffs with a gas oven?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: too many mutts

2008-02-04 Thread Patter
On Mon, 04 Feb 2008 22:00:19 +0100, BartlebyScrivener wrote:
 Is there a script I could make that I could use to start mutt, and if
 mutt were already running, then it could just take me to the already-
 running instance of it, instead of starting a new mutt?

Hacked up from a little perlish I had hanging around

my @running
`/bin/ps -aefw |/bin/grep 'perl' |/bin/grep 'mutt'|/bin/grep -v 'grep'`;
if (scalar @running  1) {
die mutt already running\n;
} else {
system(mutt);
}

-- 
Stephen Patterson :: [EMAIL PROTECTED] :: http://patter.mine.nu/
GPG: B416F0DE :: Jabber: [EMAIL PROTECTED] 
Don't be silly, Minnie. Who'd be walking round these cliffs with a gas oven?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: PUPPIES FOR SALE

2008-01-29 Thread Patter
On Tue, 29 Jan 2008 21:50:11 +0100, Paul Cartwright wrote:
 I'd be interested in a filter that would work on a message like that.. Not 
 sure what the difference is between a message about puppies and a message 
 about ndiswrapper.. Not sure if ndiswrapper is in the dictionary, but puppies 
 is. If someone DIDN'T get that last message, would you please raise your 
 hand??

Never mind discussions about puppy linux.

-- 
Stephen Patterson :: [EMAIL PROTECTED] :: http://patter.mine.nu/
GPG: B416F0DE :: Jabber: [EMAIL PROTECTED] 
Don't be silly, Minnie. Who'd be walking round these cliffs with a gas oven?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: How to use Mutt?

2008-01-23 Thread Patter
On Tue, 22 Jan 2008 19:20:21 +0100, Dan H wrote:
 Hmmm... I tried that, hoping that this would get me nearer the
 infamous mutt. Hey, great, there's even an IMAP section! You can put
 in everything... username, password, authentication methods...
 except an IMAP server. I mean, c'mon.

From mine ... once I've found an editor that works today

set folder=imaps://server/
set imap_user=username
set imap_pass=password

# set which mailboxes to check for new mail (and list on startup with
# -y)
mailboxes =INBOX


-- 
Stephen Patterson :: [EMAIL PROTECTED] :: http://patter.mine.nu/
GPG: B416F0DE :: Jabber: [EMAIL PROTECTED] 
Don't be silly, Minnie. Who'd be walking round these cliffs with a gas oven?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: How to use Mutt?

2008-01-22 Thread Patter
On Tue, 22 Jan 2008 14:10:21 +0100, Ron Johnson wrote:

 On 01/22/08 05:41, Pantor wrote:
 [snip]
 It is correct. Because Mutt is written not for humans.
 To configure Mutt for use it is the same as configure mechanical typing
 machine through USB connection for use instead for a keyboard.

 That's why I only use Mutt when X is horked.

Oh mutt's good, you can just configure it to do everything under the sun
so a muttrc builder such as http://www.muttrcbuilder.org/ can put a lot
of good setting in to start from.

I've been using mutt for years, and most of my config evolved in the
first few months of usage (currently 272 lines including comments 
blanks).

-- 
Stephen Patterson :: [EMAIL PROTECTED] :: http://patter.mine.nu/
GPG: B416F0DE :: Jabber: [EMAIL PROTECTED] 
Don't be silly, Minnie. Who'd be walking round these cliffs with a gas oven?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: GUI programming

2008-01-17 Thread Patter
On Thu, 17 Jan 2008 08:00:24 +0100, Jozef Peterka wrote:
 Hi there,
 just a short note: there are MANY popular toolkits, mostly qt(KDE),
 gtk(GNOME), wx, etc. etc. 
 But, you are probably asking about multiplatformness of those. So let
 see ... look at all the great mozilla software, they are writen with GTK
 + toolkit, and as you can now firefox, thunderbird etc. are well running
 both on linux, bsd(s) and windows - maybe gtk+ is what you are looking
 for...

WxWindows is a cross-platform translation layer which uses native
window elements on each system, on linux it typically uses GTK for
display and on windows it uses the native windows toolkit.


-- 
Stephen Patterson :: [EMAIL PROTECTED] :: http://patter.mine.nu/
GPG: B416F0DE :: Jabber: [EMAIL PROTECTED] 
Don't be silly, Minnie. Who'd be walking round these cliffs with a gas oven?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Another flood of spam

2008-01-09 Thread Patter
On Wed, 09 Jan 2008 12:10:12 +0100, Qubby wrote:
 On Mon, 07 Jan 2008 16:41:36 -0500, Chris Howie wrote:

 Or nobody cares about Ubuntu?  He shoots, he scores!

 I might have used Ubuntu but it didn't work on this very old (ne antique)
 box. In fact Debian was the only thing I could get to install, but I think
 I made the right decision, even if it was for the wrong reason :)

(heard elsewhere) Ubuntu: an ancient African word meaning couldn't
install debian

-- 
Stephen Patterson :: [EMAIL PROTECTED] :: http://patter.mine.nu/
GPG: B416F0DE :: Jabber: [EMAIL PROTECTED] 
Don't be silly, Minnie. Who'd be walking round these cliffs with a gas oven?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



X11 not displaying clearly

2008-01-04 Thread Patter
I'm a long-time debian user, running unstable with gdm and collcted
programs from gnome  kde. I rebooted my system this morning and the X
display has gone weird (there's no better way to put this as you'll see
in the screenshot http://patter.mine.nu/screen.jpg ).

Fluxbox looks OK with the right font and by pure luck xterms
(gnome-terminal) are fine but anything else looks like a poor mosaic
(some font selections make gnome-terminal look the same).

I've run a full update with unstable  the etch security updates but
that hasn't fixed it. Does anyone have any suggestions?

-- 
Stephen Patterson :: [EMAIL PROTECTED] :: http://patter.mine.nu/
GPG: B416F0DE :: Jabber: [EMAIL PROTECTED] 
Don't be silly, Minnie. Who'd be walking round these cliffs with a gas oven?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: mutt and utf-8 (was: character encoding)

2008-01-03 Thread Patter
On Thu, 03 Jan 2008 12:20:10 +0100, Florian Kulzer wrote:
 On Thu, Jan 03, 2008 at 13:50:59 +1300, Chris Bannister wrote:

 [...]

 I've found that if I generate an utf-8 locale it messes up the little
 arrows in mutt's index.

 Sometimes the locale settings do not get passed on to mutt correctly,
 depending on how mutt is started. I think the best test is to use ! to
 run locale from within mutt. Does that show all settings are correct?

You can also add 

set charset=utf8

to ~/.muttrc to force utf8 encoding, though you may also need a utf8
xterm/console font.

-- 
Stephen Patterson :: [EMAIL PROTECTED] :: http://patter.mine.nu/
GPG: B416F0DE :: Jabber: [EMAIL PROTECTED] 
Don't be silly, Minnie. Who'd be walking round these cliffs with a gas oven?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: getting a printer published.....

2007-12-17 Thread Patter
On Mon, 17 Dec 2007 11:10:10 +0100, Bruno Boettcher wrote:
 i have a network printer on my LAN that uses a peculiar driver, i
 configured one machine to be able to talk to it, so far so good, the
 printer works properly

 now iwante the other machines to access that printer through my server,
 and there nohing goes

 i used the local web-service of cups to allow to publish that printer and
 activate the publication through the LAN, but manifestingly i failed

You may need to adjust the BrowseAddress option to include the server's
IP address, each client also needs to run cupsd to browse printers on
another server.

http://www.cups.org/documentation.php/ref-cupsd-conf.html


-- 
Stephen Patterson :: [EMAIL PROTECTED] :: http://patter.mine.nu/
GPG: B416F0DE :: Jabber: [EMAIL PROTECTED] 
Don't be silly, Minnie. Who'd be walking round these cliffs with a gas oven?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: getting a printer published.....

2007-12-17 Thread Patter
On Mon, 17 Dec 2007 18:20:08 +0100, Bruno Boettcher wrote:
 On Mon, Dec 17, 2007 at 11:31:24AM +, Patter wrote:
 You may need to adjust the BrowseAddress option to include the server's
 indeed, despite the documentation @LOCAL isn't enough, i had to add
 @IF(eth0) to get it work...

Ah, so @LOCAL is loopback only ... TFM doesn't mention that.

-- 
Stephen Patterson :: [EMAIL PROTECTED] :: http://patter.mine.nu/
GPG: B416F0DE :: Jabber: [EMAIL PROTECTED] 
Don't be silly, Minnie. Who'd be walking round these cliffs with a gas oven?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: NFS setup

2007-12-12 Thread Patter
On Wed, 12 Dec 2007 17:00:20 +0100, iuri de araujo sampaio wrote:
 I have installed nfs to the server via..
 sudo apt-get install nfs-common portmap nfs-kernel-server

 I have installed nfs to the client via..
 sudo apt-get install nfs-common portmap


 My desktop is the server machine 192.168.1.2
 My laptop is the client machine 192.168.1.3

 I have edited etc/exports to share /home/backup
 /home/backup 192.168.1.3(rw,sync,no_root_squash)

Looking good so far. Did you restart nfs-kernel-server after editing
/etc/exports ? Have you checked that portmap  mountd are running on the
server  the client?  Does /var/log/syslog on the server show anything
interesting?

... and now for the random one ...

Do you run bind on the same machine as your nfs server? This has a port
conflict somewhere with portmap, so ensure portmap starts before bind.

-- 
Stephen Patterson :: [EMAIL PROTECTED] :: http://patter.mine.nu/
GPG: B416F0DE :: Jabber: [EMAIL PROTECTED] 
Don't be silly, Minnie. Who'd be walking round these cliffs with a gas oven?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Apache and perl CGI

2007-12-03 Thread Patter
On Mon, 03 Dec 2007 16:40:16 +0100, Bogart Salzberg wrote:
 Perl has a taint mode (add switch -T to the command line or  
 shebang line, as in #!/usr/bin/perl -T). The taint mode, I think,  
 prevents user input from being used in unsafe operations until it is  
 filtered by a regular expression.

 Taint mode is not as comprehensive as PHP's safe mode. Type perldoc  
 perlsec on the command line for a good tutorial on security in Perl.

You should also add 'use strict'  'use warnings' to your perl scripts,
they're both very useful for keeping your code healthy.

http://perlmonks.org/?node_id=111088

 Perl also does not have a built-in mail function.

You can use MIME::Lite for that, or write directly to sendmail. You
probably don't want to allow people to enter the email destination
address.


-- 
Stephen Patterson :: [EMAIL PROTECTED] :: http://patter.mine.nu/
GPG: B416F0DE :: Jabber: [EMAIL PROTECTED] 
Don't be silly, Minnie. Who'd be walking round these cliffs with a gas oven?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: perl Time::HiRes debian package?

2007-11-30 Thread Patter
On Fri, 30 Nov 2007 10:00:12 +0100, Mark Quitoriano wrote:
 is there a deb package for perl Time::HiRes?

Its in the core perl package.

-- 
Stephen Patterson :: [EMAIL PROTECTED] :: http://patter.mine.nu/
GPG: B416F0DE :: Jabber: [EMAIL PROTECTED] 
Don't be silly, Minnie. Who'd be walking round these cliffs with a gas oven?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Firestarter

2007-11-30 Thread Patter
On Fri, 30 Nov 2007 15:50:11 +0100, Michael Pobega wrote:

 On Fri, Nov 30, 2007 at 08:30:46AM +, Darko wrote:
 I deinstaled gnome and now I can't start firestarter is exsist a way to
 run it under KDE



 apt-get install --reinstall firestarter

You normally don't need --reinstall, that causes the package to be fully
removed before reinstallation.

-- 
Stephen Patterson :: [EMAIL PROTECTED] :: http://patter.mine.nu/
GPG: B416F0DE :: Jabber: [EMAIL PROTECTED] 
Don't be silly, Minnie. Who'd be walking round these cliffs with a gas oven?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: LDAP - howto get linux to talk to exchange/AD

2007-11-30 Thread Patter
On Fri, 30 Nov 2007 05:10:07 +0100, Bob Goldberg wrote:
 I agree - problem is DEFINITELY ldap authentication; forget about exim

 my exchange server is setup to accept clear text, and anonymous OK (even
 though I'm not trying to be anon).

 here's the thing - I have no idea what is going on between ldapsearch, and
 my exchange server.

 ldap is definitely running - I can run custom queries, and ldap://queries
 thru my windows browser with success.

 the problem IS debian authenticating w/ the exchange server.

You need to authenticate to the LDAP tree using a username that exists
in Active Directory, I can't remember how but I did this a few years ago
for a squid proxy.

 Can someone tell me some way to diagnose just what is happening in this
 communication between ldapsearch  ldap server ???

Wireshark or any packet sniffer should be able to show what's being
transferred, it may also be worth installing the openldap client
utilities (ldap-utils under debian) and querying the database manually
from them.

 Or can someone point me / show me   how a structured communication to the
 ldap server would look like, so I can try sending it thru telnet - just to
 see if I can get it to work that way Then I can try  figure out what
 ldapsearch is sending...

http://www.mozilla.org/directory/standards.html may be useful but LDAP
isn't the easiest of protocols to grok manually.

-- 
Stephen Patterson :: [EMAIL PROTECTED] :: http://patter.mine.nu/
GPG: B416F0DE :: Jabber: [EMAIL PROTECTED] 
Don't be silly, Minnie. Who'd be walking round these cliffs with a gas oven?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: [OT] firefox 3

2007-11-22 Thread Patter
On Thu, 22 Nov 2007 13:20:12 +0100, Hugo Vanwoerkom wrote:
 Hi,

 Very few [OT]'s nowadays.
 Anybody try the new firefox 3?

Yes, and it works well (official tarball from mozilla).

-- 
Stephen Patterson :: [EMAIL PROTECTED] :: http://patter.mine.nu/
GPG: B416F0DE :: Jabber: [EMAIL PROTECTED] 
Don't be silly, Minnie. Who'd be walking round these cliffs with a gas oven?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Laptop Firewalling

2007-11-21 Thread Patter
On Wed, 21 Nov 2007 14:40:21 +0100, Douglas A. Tutty wrote:
 You could create a set of config files for each setup and write a script
 that copies the correct set to /etc/shorewall then restarts shorewall.
 Have the script start when an interface goes up.

Though a decent connection-tracking 'allow anything outbound, nothing
new inbound' policy without any interface or IP matching should be a
good starting point, unless you run services on your laptop.

-- 
Stephen Patterson :: [EMAIL PROTECTED] :: http://patter.mine.nu/
GPG: B416F0DE :: Jabber: [EMAIL PROTECTED] 
Don't be silly, Minnie. Who'd be walking round these cliffs with a gas oven?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]