Re: On the need for moderated questions lists

2009-05-30 Thread Giorgos Keramidas
On Fri, 29 May 2009 15:14:20 +0200 (CEST),
Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote:
 Not necessarily.

 There were 'rules' in Nazi Germany too, and there usually exist at
 least some 'rules' in oppressive regimes, but they do not
 necessarily, by virtue of their mere existence, lead to satisfying
 results.

 The difference is that you have choice here, people living in Nazi
 Germany (and Poland) that times didn't.

First of all, this is not a personal comment, directed at you, but a
comment on the idea of 'strict moderation'.

Another thing that is worth stating is that invoking Godwin's law means
I instantly lose any argument; I know that already.  More importantly, I
do not mean to sound disrespectful to you or other Polish people.
Especially since my own family has lost people in WWII.

But the choice you have in a strictly moderated mailing list is about
the same as the choice my people had in that particular oppressive
regime: leave or stay to fight a hopeless battle.

That's what bothers me with strict moderation.  It hinders the freedom
of expression of people, forcing them to go through unreasonable hoops
whenever their personality is slightly different from the 'permitted'
forms of straight-jacket.

 already told you i will

 Thank you!  I'll be watching for interesting updates :)

 OK no later than tomorrow morning

There are 53 archive files for freebsd-questions in 2008.  Their average
size is 1,863,288 bytes.  This means around 8,229,522 of email for each
month of 2008 alone.

This is a lot of text to go through, even in a semi-automated manner.

So please, take your time.  I'm not some sort of Dilbertian manager who
wants you ``to do the impossible and do it a week ago, because we sold
it already to someone''.

___
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: Stable Mail Server And Web Mail

2009-05-30 Thread Chris Rees
2009/5/29 Wojciech Puchar woj...@wojtek.tensor.gdynia.pl:
 itself, and how much of stupid-written PHP programs


 I don't think PHP itself is buggy, in fact I think badly written C
 programs are responsible for far more lossage.

 It all depends who write programs.


Yes... but that has nothing to do with PHP.

PHP, Python, Perl (especially), C, Ruby, there are all stupid buggy
programs written in these. Why pick on PHP?

Chris

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in a mailing list?
___
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: Greylisting and new posters

2009-05-30 Thread Erik Norgaard

Mel Flynn wrote:


Is it possible to:
a) Put a big-red-blink-popup-attentiongrabbing monster text into the 
subscription page about first posts being delayed with a link to greylisting?
b) Hash the bodies of greylisted messages and reject / discard if the same 
body with a different msg id is being received?


I'd be happy to contribute to b) if it is thought that the incoming mailer can 
handle the hashing and storage of this information.


Hi, ok sorry about that mail yesterday :) I've been off the list for 
some time.


It would be great if the confirmation mail and the subscription page 
would include the message:


After confirming/activating your subscription your first mail may be 
delayed X minutes due to grey listing


Also, it would be great to have a descriptive error message, rather than 
this:


 450 4.7.1 questi...@freebsd.org: Recipient address rejected: Service 
is unavailable (in reply to RCPT TO command))


This text message indicates an error in the recipients end, while the 
450 status indicates it's temporary.


IIRC the postgrey port will provide a message along the lines sender 
postgreyed X seconds, see website for more information.


Your option b) won't work: you propose to reply with a 2XX (OK) or 5XX 
(rejected, don't try again) if subscriber sends the message again.


Problem is that the server after receiving the 450 error will retry 
after some time and this may be before the sender is white listed. So if 
you implement the solution you propose you risk that the original 
message is either discarded or rejected.


So, you need to come up with an idea of how to distinguish between the 
server resending the same message and the subscriber resending the same 
message. If anything, I believe it's most likely that the subscriber 
will not send the exact same message, missing some blanks or double 
signature line etc...


Now, you could take an active approach, when a subscriber's first 
message is grey listed, send an automatic reply that the message is grey 
listed for X seconds.


But, then you have the problem that these auto replies will also be sent 
to innocent people who are being impersonated by some spammer, or to 
non-existing mail addresses which will generate loads of error messages.


Question: Did grey listing actually reduce the amount of spam on the 
list? I eventually dumped it as it caused more problems than it solved.


BR, Erik
--
Erik Nørgaard
Ph: +34.666334818/+34.915211157  http://www.locolomo.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: Remotely edit user disk quota

2009-05-30 Thread Chris Rees
2009/5/29 Wojciech Puchar woj...@wojtek.tensor.gdynia.pl:
 Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote:

 Even 15 seconds of thinking is enough to understand that logging
 to other user and then su - gives completely no extra security.

 I don't buy this, given that root's login name is well known :)

 if someone can intercept the passwords you type, then he/she will intercept
 both user password you log in and then su password you type.

 He/she actually can gain more if you use su, as you may use the same user
 password somewhere else.

But we're talking about vulnerability to dictionary and brute-force
attacks. You'd have to first:

Ascertain a username in the wheel group.

Brute-force that password.

THEN, you need to brute-force root's password.

Chris



-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in a mailing list?
___
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: MIME attachments in mbox files

2009-05-30 Thread George Davidovich
On Fri, May 29, 2009 at 11:40:52PM -0400, Vince Sabio wrote:
 I have a need (well, I have lots of needs, but I'll try to stay
 focused here) 

Given the nature of most messages in the last few days, I'd suggest
you're trying too hard.  ;-)

 to be able to take a Windows zip file that is stored as a MIME
 attachment to an e-mail message in an Mbox-format spool file, and
 unzip the attachment. I actually need to script the process. In case
 it helps, I can dedicate a mailbox to the task. 
 
 Anyone know of any FreeBSD utility(ies) that do(es) this?

Generally, when you're talking about processing an mbox and doing
something with message bodies, you're looking at formail plus procmail
in combination with a tool that can interpret the mime structure and
process the components (mimedefang, demine, stripmime, mimedecode,
reformime, renattach, etc.).  That's a roundabout way of saying, no,
there are no FreeBSD utilities to do what you want, but there's lots to
be found in ports.

I'd start with a quick read through of some of those manpages, but at
first glance, ripmime alone might do the trick:

http://www.freebsd.org/cgi/man.cgi?query=ripmimeapropos=0sektion=0manpath=FreeBSD+7.2-RELEASE+and+Portsformat=ascii

 If necessary, I can write my own parser to strip out the attachment,
 in which case I'd need only a widget that can take in a MIME (base64)
 encoded zip file, convert it to binary, and unzip it.

In that case, and assuming you're using Perl, MIME::base64 and
IO::Uncompress::Unzip (or /usr/ports/archivers/unzip) is what you want.
Bonus points for writing a one-liner.

-- 
George
___
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: system reboot because of hdd

2009-05-30 Thread Chris Rees
2009/5/29 claudiu vasadi claudiu.vas...@gmail.com:
 Hello ppl.


 Straight to business.

 FreeBSD 7.1-stable

 2 hdd. 1 is ad2 and the other is ad6. ad2 is the BSD hdd, and ad6 is just
 for data (movies, music, etc). ad2 is a 80GB Samsung P-ata133 and ad6 is a
 WD 250GB S-ata2.

 While running a process that was trying to create a 25GB file on a 30 GB
 partition on the second hdd (ad2) I experienced ssh outage. Everything came
 back to life after a short perioud of ~2 minutes. So, again I started the
 process. This time, the outage was about 5 minutes. I was busy with
 something else and did not run the process again. 2 minutes after that i get
 a call from a customer that some thing is not working. so I check it and
 surprize, the OS rebooted itself.

 so, went to the logs and this is what i found out (/var/log/messages):

 May 29 22:26:30 da1 kernel: ad6: TIMEOUT - WRITE_DMA48 retrying (1 retry
 left) LBA=419468447
 May 29 22:26:35 da1 kernel: ad6: TIMEOUT - WRITE_DMA48 retrying (0 retries
 left) LBA=419468447
 May 29 22:26:41 da1 kernel: ad6: FAILURE - WRITE_DMA48 timed out
 LBA=419468447
 May 29 22:26:41 da1 kernel: g_vfs_done():ad6s1f[WRITE(offset=19447808,
 length=16384)]error = 5
 May 29 22:26:35 da1 syslogd: kernel boot file is /boot/kernel/kernel
 May 29 22:26:35 da1 kernel: ad6: FAILURE - device detached
 May 29 22:26:35 da1 kernel: subdisk6: detached
 May 29 22:26:35 da1 kernel: ad6: detached
 May 29 22:26:35 da1 kernel: g_vfs_done():ad6s1f[WRITE(offset=36683776,
 length=16384)]error = 6
 May 29 22:26:35 da1 kernel: g_vfs_done():ad6s1f[WRITE(offset=16908288,
 length=16384)]error = 6
 May 29 22:26:35 da1 kernel: g_vfs_done():ad6s1f[WRITE(offset=36700160,
 length=16384)]error = 6
 May 29 22:26:35 da1 kernel: g_vfs_done():ad6s1f[WRITE(offset=114688,
 length=16384)]error = 6
 May 29 22:26:35 da1 kernel: panic: vinvalbuf: dirty bufs
 May 29 22:26:35 da1 kernel: cpuid = 0
 May 29 22:26:35 da1 kernel: Uptime: 45d22h15m29s
 May 29 22:26:35 da1 kernel: Physical memory: 1003 MB
 May 29 22:26:35 da1 kernel: Dumping 232 MB: 217 201 185 169 153 137 121 105
 89 73 57 41 25 9




 and (/var/log/all.log):


 May 29 22:54:49 da1 fsck: /dev/ad6s1f: 6 files, 12 used, 17132271 free (31
 frags, 2141530 blocks, 0.0% fragmentation)


 exacly where the file was created. but it was 1 not 6 files that i wanted to
 create but 1.




 the process that I run is dsmfmt of TSM server for Sun. it creates a file
 volume of a specific size for use in tsm server itself for defining storage
 pool capacity.

 so, I know that the hdd was to the limit. It could be a hardware issue I
 know, but right now dnt have resources to try somewere else so I'm asking a
 oppinion. Has anyone dealt with this situation before ? OS reboot because of
 high hdd load ?

How much RAM have you got?

Chris


-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in a mailing list?
___
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


find and searching for specific expression in files

2009-05-30 Thread Zbigniew Szalbot
Hello,

Can you please give me a hint how to use find to search for a specific
text within files?

I am using find in the following manner:

find /path/to/files/ -mtime -2 -ls |less
to find files which have been recently modified. But I would like to
extend the search to find specific expression within files. -name is used
to specify file name. How can I search for strings within text?

It is probably in the man but I somehow overlook it. :(

Thank you very much in advance!

-- 
Zbigniew Szalbot

___
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: system reboot because of hdd

2009-05-30 Thread claudiu vasadi
ups, sorry. I forgot. I have 1GB ram, 1x  module of DDR1 400 MHz (pc3200)
___
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


Software creating karaoke from mp3 files

2009-05-30 Thread Fbsd1
Been unable to purchase karaoke of rock and roll greats like AC/DC, THE 
ROLLING STONES, THE DOORS, LED ZEPPELIN. Looking for advice on software 
that will allow me to edit out the singing voice tracks from a mp3 file 
and write the resulting music as a avi file so I can have the song words 
show on tv.


If any one has done this type of thing, sure would like to hear about 
how they did it.


Thanks
___
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: find and searching for specific expression in files

2009-05-30 Thread Erik Trulsson
On Sat, May 30, 2009 at 11:25:12AM +0200, Zbigniew Szalbot wrote:
 Hello,
 
 Can you please give me a hint how to use find to search for a specific
 text within files?

Generally, you don't - find(1) does not examine the contents of files by
itself, just their directory information.  You normally use grep(1) to
search within a file.

 
 I am using find in the following manner:
 
 find /path/to/files/ -mtime -2 -ls |less
 to find files which have been recently modified. But I would like to
 extend the search to find specific expression within files. -name is used
 to specify file name. How can I search for strings within text?
 
 It is probably in the man but I somehow overlook it. :(
 
 Thank you very much in advance!

I guess you could use the '-exec' expression in find(1) to execute grep(1)
to search for a string in the files examined.  Or you could use the output
of find(1) as a list of files that are given as arguments to grep(1).



-- 
Insert your favourite quote here.
Erik Trulsson
ertr1...@student.uu.se
___
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: find and searching for specific expression in files

2009-05-30 Thread Zbigniew Szalbot
 Can you please give me a hint how to use find to search for a specific
 text within files?

 Generally, you don't - find(1) does not examine the contents of files by
 itself, just their directory information.  You normally use grep(1) to
 search within a file.

Ahhh - I use grep on daily basis. Now why didn't I think of it? I got so
fixed on the idea of using find that I completely forgot about grep

Sorry for the noise and thank you very much for your help!

-- 
Zbigniew Szalbot

___
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: Greylisting and new posters

2009-05-30 Thread Mel Flynn
On Saturday 30 May 2009 10:20:06 Erik Norgaard wrote:
 Mel Flynn wrote:
  Is it possible to:
  a) Put a big-red-blink-popup-attentiongrabbing monster text into the
  subscription page about first posts being delayed with a link to
  greylisting? b) Hash the bodies of greylisted messages and reject /
  discard if the same body with a different msg id is being received?
 
  I'd be happy to contribute to b) if it is thought that the incoming
  mailer can handle the hashing and storage of this information.

 Hi, ok sorry about that mail yesterday :) I've been off the list for
 some time.

Don't be. It's been bothering me for a while and you weren't even the trigger. 
Ironically the trigger was the endless and rather pointless discussions about 
list moderation.
The thing with double posts like these is that they are more frequent as of 
late and sometimes lead to 2 seperate threads about the same thing, where I 
already have half a reply ready only to notice that it was already covered in 
the other one.

snip information

 Your option b) won't work: you propose to reply with a 2XX (OK) or 5XX
 (rejected, don't try again) if subscriber sends the message again.

 Problem is that the server after receiving the 450 error will retry
 after some time and this may be before the sender is white listed. So if
 you implement the solution you propose you risk that the original
 message is either discarded or rejected.

Not unless the retrying mailer is really broken.

 So, you need to come up with an idea of how to distinguish between the
 server resending the same message and the subscriber resending the same
 message. If anything, I believe it's most likely that the subscriber
 will not send the exact same message, missing some blanks or double
 signature line etc...

Most of the time it's identical, but I haven't investigated white-space 
differences. And like I mentioned in the original email, the msg id is the 
identifier. md5(body) as key generates msg-id foo, this message has msg-id 
bar, so redirect bar to /dev/null. Once foo delivered delete from state table.

 Question: Did grey listing actually reduce the amount of spam on the
 list? I eventually dumped it as it caused more problems than it solved.

It does marginally for me, for the list I have no idea. It seems to be more 
effective with viruses then professional spam.
-- 
Mel
___
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: pfsync in GENERIC?

2009-05-30 Thread Mel Flynn
On Saturday 30 May 2009 05:13:27 Steven Schlansker wrote:
 On May 29, 2009, at 5:29 PM, Michael Powell wrote:
  Steven Schlansker wrote:
 
  [snip]
 
  A custom kernel can free up a little RAM, and maybe boot a little
  sooner,
  but it won't produce any earth shattering differences. I think most
  do it to
  'shrink' down and eliminate anything which is not required for a
  particular
  piece of hardware. It decreases the possibility of something unneeded
  causing a problem, and enhances problem resolution by making the
  list of
  potential culprits smaller.

 Yeah, that's basically how I felt as well.  However as to the
 something unneeded causing a problem I must say I've never had a
 GENERIC kernel fail due to some unneeded device driver, but I've
 definitely had a custom built kernel fail because of some tunable or
 driver I misconfigured!

The general consensus is shifting indeed, as hardware makes more and bigger 
leaps then software. However, you will not notice a trimmed kernel's 
performance under standard workload, but will be able to squeeze more out of 
the box under extreme loads, due to the simple fact that the kernel has more 
memory to work with.
Also, there are still a few tunables left that can only be set at compile 
time, MAXPHYS being the most prominent that comes to mind.
-- 
Mel
___
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: find and searching for specific expression in files

2009-05-30 Thread Valentin Bud
2009/5/30 Zbigniew Szalbot z.szal...@lcwords.com

  Can you please give me a hint how to use find to search for a specific
  text within files?
 
  Generally, you don't - find(1) does not examine the contents of files by
  itself, just their directory information.  You normally use grep(1) to
  search within a file.

 Ahhh - I use grep on daily basis. Now why didn't I think of it? I got so
 fixed on the idea of using find that I completely forgot about grep

 Sorry for the noise and thank you very much for your help!

 --
 Zbigniew Szalbot

 ___
 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

Hello Mr. Zbigniew Szalbot,

 You can use egrep -r * (grep -e) to search for specific text pattern while
you are in a directory with many sub directories. The output is nice because
it tells you the file in which the text pattern was found :).

a great day,
v


-- 
network warrior since 2005
___
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


Fw: UK Currency Symbol in 7.2 Console

2009-05-30 Thread Graham Bentley

OK, this is where I am up to. I have plugged my 7.1 Release hard disc
back in and I get £ signs no problem. So, I then unplug my KVM and
mini keyboard and plug standard ps2 kb / ps2 mouse in. I do a minimal
install of 7.2 Release from DVD and make sure I have uk.cp850 in my
/etc/rc.conf

Guess what? Theres no difference - still no £ signs at console, I get
a beep. So theres some difference in the way 7.2 looks at things
compared to 7.1. Out of interest the kb controler is on this mobo
- Asus M2N68-AM

I think its a bug or mis-detection etc

Do I report this? Or ask for help on a different list?

I dont mind doinf whatever tests are required to resolve this issue.

Thanks! 


___
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: find and searching for specific expression in files

2009-05-30 Thread Mel Flynn
On Saturday 30 May 2009 13:56:22 Valentin Bud wrote:
 2009/5/30 Zbigniew Szalbot z.szal...@lcwords.com

   Can you please give me a hint how to use find to search for a specific
   text within files?
  
   Generally, you don't - find(1) does not examine the contents of files
   by itself, just their directory information.  You normally use grep(1)
   to search within a file.
 
  Ahhh - I use grep on daily basis. Now why didn't I think of it? I got so
  fixed on the idea of using find that I completely forgot about grep
 
  Sorry for the noise and thank you very much for your help!
 
  --
  Zbigniew Szalbot
 
  ___
  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

 Hello Mr. Zbigniew Szalbot,

  You can use egrep -r * (grep -e) to search for specific text pattern while
 you are in a directory with many sub directories. The output is nice
 because it tells you the file in which the text pattern was found :).

Discouraged because:
- it's possible to hit maxarglen if the root directory has many 
subdirectories.
- Will not search hidden directories in the root directory because of the 
shell glob
- cannot be combined with other search criteria such as the file's timestamp.

find . -type f -mtime 2 -exec grep '^Subject: \[SPAM\]' {} +

will find all messages in a maildir modified within the last 2 minutes where 
the subject has been flagged as spam. I use + rather then ; so that one 
invocation for grep is done whenever maxarglen is hit (like if you used 
xargs(1)), rather then one grep per file.
-- 
Mel
___
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: find and searching for specific expression in files

2009-05-30 Thread Valentin Bud
On Sat, May 30, 2009 at 3:12 PM, Mel Flynn 
mel.flynn+fbsd.questi...@mailing.thruhere.netmel.flynn%2bfbsd.questi...@mailing.thruhere.net
 wrote:

 On Saturday 30 May 2009 13:56:22 Valentin Bud wrote:
  2009/5/30 Zbigniew Szalbot z.szal...@lcwords.com
 
Can you please give me a hint how to use find to search for a
 specific
text within files?
   
Generally, you don't - find(1) does not examine the contents of files
by itself, just their directory information.  You normally use
 grep(1)
to search within a file.
  
   Ahhh - I use grep on daily basis. Now why didn't I think of it? I got
 so
   fixed on the idea of using find that I completely forgot about grep
  
   Sorry for the noise and thank you very much for your help!
  
   --
   Zbigniew Szalbot
  
   ___
   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
 
  Hello Mr. Zbigniew Szalbot,
 
   You can use egrep -r * (grep -e) to search for specific text pattern
 while
  you are in a directory with many sub directories. The output is nice
  because it tells you the file in which the text pattern was found :).

 Discouraged because:
 - it's possible to hit maxarglen if the root directory has many
 subdirectories.


Never occured so i didn't have a clue about it :|.



 - Will not search hidden directories in the root directory because of the
 shell glob
 - cannot be combined with other search criteria such as the file's
 timestamp.

 find . -type f -mtime 2 -exec grep '^Subject: \[SPAM\]' {} +

 will find all messages in a maildir modified within the last 2 minutes
 where
 the subject has been flagged as spam. I use + rather then ; so that one
 invocation for grep is done whenever maxarglen is hit (like if you used
 xargs(1)), rather then one grep per file.
 --
 Mel


This list is amazing because everyday you learn something new. Thanks.

a great day,
v
-- 
network warrior since 2005
___
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: MIME attachments in mbox files

2009-05-30 Thread Ian Smith
On Fri, 29 May 2009 23:40:52 -0400 Vince Sabio vi...@vjs.org wrote:

  I have a need (well, I have lots of needs, but I'll try to stay 
  focused here) to be able to take a Windows zip file that is stored as 
  a MIME attachment to an e-mail message in an Mbox-format spool file, 
  and unzip the attachment. I actually need to script the process. In 
  case it helps, I can dedicate a mailbox to the task. If necessary, I 
  can write my own parser to strip out the attachment, in which case 
  I'd need only a widget that can take in a MIME (base64) encoded zip 
  file, convert it to binary, and unzip it.
  
  Anyone know of any FreeBSD utility(ies) that do(es) this?

/usr/ports/converters/mpack
/usr/ports/archivers/unzip

You could first export/save each such message to a separate file and run 
munpack(1) on it to extract any base64 attachment/s, then unzip(1) any 
identifiable zipfiles.  You can most likely rely on the return code from 
'unzip -t $file' to check any files are valid zipfiles, if munpack can't 
recover the original filename from the MIME headers.

cheers, Ian
___
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: Canon printer and TurboPrint

2009-05-30 Thread Jerry
The usefulness of government intervention into private lives,
businesses, etc. is never going to be resolved on this forum. I am just
going to leave with something I received at a business lecture a few
years ago. It was by a Princeton professor, Dr. Webner I believe.

quote

Innovation has never come from a bureau. Bureaucracy is antithetical to
innovation. What's more, it is bloody fascist. God forefend the day
when every independent entity has to check with some overweening
bureaucracy before they try something. Anyone who makes any claim to
respecting liberty and then endorses this kind of nonsense should feel
a considerable amount of shame for his or her hypocrisy and embrace of
tyranny.

/quote

-- 
Jerry
ges...@yahoo.com

There will be sex after death, we just won't be able to feel it.

Lily Tomlin
___
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 7.0-RELEASE-p12 bind9 log files not found

2009-05-30 Thread Prokofyev Vladislav
Hello,

I have setup FreeBSD recently, can somebody help me with one interesting
thing - Bind9 slave DNS server, everything is works great, but I got a
problem with extended logging of xfer, etc.
Bind9 started in chroot:

root  7880.0  0.1  3156  1004  ??  Ss   Fri01AM   0:02.10
/usr/sbin/syslogd -l /var/run/log -l /var/named/var/run/log -s
bind30792  0.0  1.2 16212 12864  ??  Is4:10PM   0:00.23
/usr/sbin/named -t /var/named -u bind


Configuration of logging channels from named.conf:

logging
{

channel xfer
{

file /var/named/var/log/xfer.log versions 3 size
10m;
print-time
yes;

print-severity
yes;

severity
info;


};



channel lame
{

file /var/named/var/log/lame.log versions 2 size
10m;
print-time
yes;

print-severity
yes;

severity
info;


};



channel config
{

file /var/named/var/log/conf.log versions 3 size
10m;
print-time
yes;

print-severity
yes;

severity
info;


};



channel security
{

file /var/named/var/log/security.log versions 3 size
10m;
print-time
yes;

print-severity
yes;

severity
info;


};




category xfer-in { xfer; };
category xfer-out { xfer; };
category notify { xfer; };
category lame-servers { lame; };
category config { config; };
category security { security; };
category default { default_syslog; default_debug; };
};


Next, I've create files in /var/named/var/log and chown them to bind:wheel
(cause of -u bind is defined above):

[po...@mgork23-gw /var/named/var/log]$ ls -la
total 4
drwxr-xr-x  2 bind  wheel  512 May 30 16:09 .
drwxr-xr-x  6 root  wheel  512 May 21 19:16 ..
-rw-r--r--  1 bind  wheel0 May 30 14:54 conf.log
-rw-r--r--  1 bind  wheel0 May 30 14:55 lame.log
-rw-r--r--  1 bind  wheel0 May 30 14:55 security.log
-rw-r--r--  1 bind  wheel0 May 30 14:54 xfer.log


But I get following messages in /var/log/messages:

May 30 16:27:42 srv named[31139]: starting BIND 9.4.2 -t /var/named -u bind
May 30 16:27:42 srv named[31139]: command channel listening on 127.0.0.1#953
May 30 16:27:42 srv named[31139]: command channel listening on ::1#953
May 30 16:27:42 srv named[31139]: logging channel 'xfer' file
'/var/named/var/log/xfer.log': file not found
May 30 16:27:42 srv named[31139]: logging channel 'lame' file
'/var/named/var/log/lame.log': file not found
May 30 16:27:42 srv named[31139]: logging channel 'config' file
'/var/named/var/log/conf.log': file not found
May 30 16:27:42 srv named[31139]: logging channel 'security' file
'/var/named/log/security.log': file not found
May 30 16:27:42 srv named[31139]: running
May 30 16:27:42 srv named[31139]: isc_log_open '/var/named/var/log/xfer.log'
failed: file not found


Changing permissions and putting log-files in different places (with
changing paths in named.conf of course) has no effect. I see that problem is
pretty silly but searching info about this doesn't say something special - I
still got file not found in /var/messages.
Maybe Iam don't understand where files must be placed, so, thanks in advance
for everybody who can explain how it works :)

VP
v.prokof...@gmail.com
___
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


GSM to Serial Converter

2009-05-30 Thread Exemys
This is a message in multipart MIME format.  Your mail client should not be 
displaying this. Consider upgrading your mail client to view this message 
correctly.

___
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: FreeBSD 7.0-RELEASE-p12 bind9 log files not found

2009-05-30 Thread Mel Flynn
On Saturday 30 May 2009 14:50:31 Prokofyev Vladislav wrote:

 Bind9 started in chroot:

 root  7880.0  0.1  3156  1004  ??  Ss   Fri01AM   0:02.10
 /usr/sbin/syslogd -l /var/run/log -l /var/named/var/run/log -s
 bind30792  0.0  1.2 16212 12864  ??  Is4:10PM   0:00.23
 /usr/sbin/named -t /var/named -u bind


 Configuration of logging channels from named.conf:

 logging
 {

 channel xfer
 {

 file /var/named/var/log/xfer.log versions 3 size
 10m;

The named running chrooted has no clue about /var/named. You can either use 
ducttape:
cd /var/named/var  sudo ln -s .. named

or just strip /var/named from your config file, hence use /var/log/xfer.log.

-- 
Mel
___
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: FreeBSD 7.0-RELEASE-p12 bind9 log files not found

2009-05-30 Thread Michael Powell
Prokofyev Vladislav wrote:

 Hello,
 
 I have setup FreeBSD recently, can somebody help me with one interesting
 thing - Bind9 slave DNS server, everything is works great, but I got a
 problem with extended logging of xfer, etc.
 Bind9 started in chroot:
 
 root  7880.0  0.1  3156  1004  ??  Ss   Fri01AM   0:02.10
 /usr/sbin/syslogd -l /var/run/log -l /var/named/var/run/log -s
 bind30792  0.0  1.2 16212 12864  ??  Is4:10PM   0:00.23
 /usr/sbin/named -t /var/named -u bind
 
 
[snip]
 
 
 Changing permissions and putting log-files in different places (with
 changing paths in named.conf of course) has no effect. I see that problem
 is pretty silly but searching info about this doesn't say something
 special - I still got file not found in /var/messages.
 Maybe Iam don't understand where files must be placed, so, thanks in
 advance for everybody who can explain how it works :)
 

Don't know if this will help, but took a quick look at my box here at home 
and have the following in my rc.conf - but I don't have logging turned on 
with this machine. Note the last line. So the logs should be in 
/var/named/var/log

named_enable=YES
named_program=/usr/sbin/named
named_chrootdir=/var/named

-Mike




___
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: GSM to Serial Converter

2009-05-30 Thread Kevin Kinsey

Exemys wrote:

This is a message in multipart MIME format.  Your mail client should not be 
displaying this. Consider upgrading your mail client to view this message 
correctly.


Wrong list.  You should consider
upgrading *your* mail client to send
messages correctly; general consensus,
and I'll leave it to another troll to
quote the relevant RFC's. ;-)

Oh, and upgrade your keyboard to one
with an ENTER key as well, please.  :-P

Kevin Kinsey
--
Ring around the collar.
___
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: Canon printer and TurboPrint

2009-05-30 Thread cpghost
On Fri, May 29, 2009 at 03:13:13PM +0200, Wojciech Puchar wrote:
  Done the same with HP Laserjet 4000 duplex - it even received
  an IP automatically via DHCP, so I just had to arp -a and
  edit /etc/hosts and /etc/printcap. The lpq / lprm tools seemed
  to operate on the printer server inside the printer.
 
 For non-ethernet printers like my laserjet 4 there are often available 
 original print server modules for them for really nothing (i paid 10$)
 
 if not, and you need ethernet connectivity, then this
 
 http://www.edimax.com/en/produce_detail.php?pd_id=50pl1_id=7pl2_id=34
 
 is a perfect choice. i recommend it for every unix user.

Thanks for the pointer! I was actually looking for a set of ethernet
print servers, and this looks very promising.

Can you confirm that the PS-1206P works well under RELENG_7?

 As they are advertised as mostly for windows, i actually found configuring 
 it under unix very simple exactly as you said (/etc/printcap), while 
 incredibly complex under windows ;)

TIA,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
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: FreeBSD 7.0-RELEASE-p12 bind9 log files not found

2009-05-30 Thread Prokofyev Vladislav

 named_enable=YES
 named_program=/usr/sbin/named
 named_chrootdir=/var/named

 -Mike


After adding these options on my system, named didn't start at boot.
Manully attempt to start it via '/etc/rc.d/named start' brought to the
following error:

 /etc/rc.d/named: WARNING: run_rc_command: cannot run /usr/sbin/named

Anyway, thank you for time you've spent to write an answer. Hope this thread
will help somebody who is stuck with the same problem.
___
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: Canon printer and TurboPrint

2009-05-30 Thread Wojciech Puchar

is a perfect choice. i recommend it for every unix user.


Thanks for the pointer! I was actually looking for a set of ethernet
print servers, and this looks very promising.

Can you confirm that the PS-1206P works well under RELENG_7?


it can't. it's ethernet device not PC peripheral so it doesn't run 
under FreeBSD or whatever, but on LAN :)


in /etc/printcap add:

printer1:blahblah:sh:rm=IP.number.put.here:sd=/var/spool/lpd/printer1:lf=/var/log/printer1:

and go. Of course add postscript filters if you like
___
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: Fresh install 7.2-RELEASE i386, X won't start

2009-05-30 Thread Wojciech Puchar

/Leslie



of course turn off hald, and run moused.


Unfortunately that did not fix the problem :-(
What do I test next?
/Leslie



do

X -configure

and look at xorg.conf then try fixing something there.
___
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: Failure to get past a PCI bridge

2009-05-30 Thread Ian Smith
On Thu, 28 May 2009 16:24:00 +0200 Josef Moellers 
josef.moell...@ts.fujitsu.com wrote:
  Hi,
  
  I'm trying to install 7.2-RELEASE on a pretty new system (a Fujitsu 
  RX300S5).
  The first obstacle was the fact that while the system has an 
  AT-Keyboard-Controller, it ist not used (keyboard and mouse are 
  connected via USB) and I have found that I can get past that by specifying
  
  set hint.atkbd.0.disabled=1
  set hint.atkbdc.0.disabled=1
  
  The install kernel then boots properly and reaches the Country Selection.
  At that point, no keyboard input is accepted. An optical mouse is off, 
  so I assume the keyboard to be off, too.
  
  I have hooked up a serial connection to log the kernel's output (some 
  1000+ lines):
  
  set boot_serial=1
  set boot_verbose=1
  set boot_multicons=1
  set console=comconsole vidconsole
  
  The following lines make me wonder if the kernel fails to get past PCI 
  bridges and this can't reach the UHCI controllers:
  
  pcib0: ACPI Host-PCI bridge on acpi0
  pcib0: could not get PCI interrupt routing table for \_SB_.CPU0 - 
  AE_NOT_FOUND
  :
  pcib1: ACPI Host-PCI bridge on acpi0
  pcib1: could not get PCI interrupt routing table for \_SB_.CPU1 - 
  AE_NOT_FOUND
  :
  pcib2: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
  pcib2: couldn't find _ADR
  pcib2: trying bus number 2
  pci2: ACPI PCI bus on pcib2
  pci2: domain=0, physical bus=2
  
  I talked to the guy who does the BIOS for the machine and he says that 
  it makes no sense for the kernel to try and find the _PRT for \_SB_.CPU0 
  or \_SB_.CPU1!
  
  Can anyone help? I haven't been using FreeBSD since 4.2 and haven't dug 
  through deep kernel functions for quite some time.

Not directly, but you may do better posting that to the a...@freebsd.org 
list.  See archives at http://lists.freebsd.org/pipermail/freebsd-acpi/

cheers, Ian
___
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: What is this forum for?

2009-05-30 Thread Wojciech Puchar

Hey folks, all of you, could I please sugggest that this entire thread (under a
variety of subject names) is an abuse of the lists?


Generally i do agree with you. But - in my opinion there are lots of other 
abuses. Whenever i pointed this out i got tons of protests from others.


So please - who should decide what's on and whats off topic?

For me - if talks about programs just because it runs under FreeBSD is OK, 
then everything is OK. About politics, sport, choosing printservers.


Why telling someone that want to switch from windows to FreeBSD that 
better stay with windows is wrong? It's my opinion and my way to help 
him/her to save time. And it's proved, over hundred people i know that 
ever tried to switch to linux or FreeBSD, got back to windows within 
short time.


Of course - switching the way of using computer from windows-style to 
unix-style is another thing, is very welcome and is likely to succeed.


The argument it's nothing wrong to help others is a nonsense too. Yes - 
help, but about FreeBSD, or on other list, or on priv.


Or maybe democratic method - when more and louder shouts it's right - it's 
right?!


Doesn't you see a nonsense?!

Once again - please DO MODERATED list, with clearly defined rules what's 
right and what's not. Whatever the rules will be (approved/defined by 
FreeBSD owners) - it will be OK.


About stats i had to do - i AM working on this, but i was not aware how 
much work it needs. I'm reading mails from february each year, and now 
processed four years only.


So sorry for not doing it for today morning, but i wasn't aware it's too 
short time.



Another question - some of you said that outdated hardware is welcome 
too as gifts for FreeBSD team.


I actually have lots of them, and NON-typical things, that would be 
useful. I prepared a list, and can make photos.


I already sent a mail to one developer but got no response. Maybe he is 
just busy or absent, anyway what's the best address for this.

___
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: Stable Mail Server And Web Mail

2009-05-30 Thread Wojciech Puchar

It's a detailed how-to but consider the following:
a) With Oracle acquiring Sun, one should move to PostgreSQL where ever
possible.


is this a reason, or that simply mysql is just slow and inefficient 
compared to postgreSQL?

___
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: What is this forum for?

2009-05-30 Thread Wojciech Puchar

UPS.. maybe better not write that, as people from governments may get
this new idea.


Worse, the EU will consider 'super tankers' unfair to smaller sized
tankers and require super tankers to only carry half as much cargo.


but this will make CO2 emission higher as half-loaded supertanker needs 
more than half of fuel to go.


Of course i wish it's just a joke like my before, but really - what today 
is a joke, tomorrow is EU idea, and soon is a law.

___
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: FreeBSD 7.0-RELEASE-p12 bind9 log files not found

2009-05-30 Thread Mel Flynn
On Saturday 30 May 2009 17:01:17 Prokofyev Vladislav wrote:
  The named running chrooted has no clue about /var/named. You can either
  use ducttape:
  cd /var/named/var  sudo ln -s .. named
 
  or just strip /var/named from your config file, hence use
  /var/log/xfer.log.
 
  --
  Mel

 This helped, thank you a lot.
 So, if I think in a right way, /usr/sbin/named with -t start option don't
 effect on any symlinks etc.

Erm, yes or ... no. I suggest you read up on chroot.
The short answer is that relative symlinks within the chroot environment work 
while absolute ones should take into the account the new filesystem root.


 I didn't pay attention to this cause named(8)
 says:

 -t directory
   Chroot to directory after processing the command line arguments,
   but before reading the configuration file.

and have a look at what /etc/namedb really is:
# ls -l /etc/namedb
lrwxr-xr-x  1 root  wheel  21 May 21 06:24 /etc/namedb - 
/var/named/etc/namedb

And this demonstrates chroot a bit:
# cp /rescue/ls /var/named/

# chroot /var/named /ls -l /etc/namedb
total 1
drwxr-xr-x  2 53  0512 Feb 28 05:57 dynamic
drwxr-xr-x  2 0   0512 May 15 13:42 master
-rw-r--r--  1 0   0  11714 May 15 14:40 named.conf
-rw-r--r--  1 0   0   2956 May 15 13:42 named.root
-rw---  1 53  0 97 Apr 18 10:29 rndc.key
drwxr-xr-x  2 53  0512 May 30 11:21 slave

   Warning: This option should be used in conjunction with the
   -u option, as chrooting a process running as root doesn't
   enhance security on most systems; the way chroot(2) is
   defined allows a process with root privileges to escape a
   chroot jail.

 And I thought that all actions for proper work are made by named :)

They are, you just need reference the right path, the one without /var/named, 
or use relative paths where the working directory is /etc/namedb. So one would 
get to /var/log using:
file ../../var/log/xfer;

-- 
Mel
___
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: On the need for moderated questions lists

2009-05-30 Thread Wojciech Puchar

You did all fine, i have the same configured program in my
linux/openbsd/netbsd/solaris/whatever OS and it works fine


So . . . basically, it's okay for someone to ask about X if that person


reread again. You - intentionally or unintentionally - change what i write 
to mean something else.


___
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: Competition law (was Re: Canon printer and TurboPrint)

2009-05-30 Thread Wojciech Puchar
I know what socialism means. You seem not to. I haven't anywhere advocated 
state ownership of businesses - in fact I very clearly stated that I believe 
in a free market with only that level of regulation required to keep it free 
from monopoly abuse.


You are wrong. there is no monopoly abuse when monopoly doesn't have extra 
support from government.


How could monopoly (if monopoly happen at all) abuse ?

Selling below costs? OK let they sell, others will wait a bit or even buy 
the products until monopoly will not have money to continue this, then 
compete with the monopoly by selling back what they bought on below-cost 
prices.


Forcing others to stop producing? how?


___
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: On the need for moderated questions lists

2009-05-30 Thread Wojciech Puchar
that's why i opt for moderation. because it's completely stupid as there 
are no rules and no enforcement.


On Fri, 29 May 2009, gabe wrote:


This is stupid, I'm unsubscribing.

jeez

-Original Message-
From: Chad Perrin per...@apotheon.com
Sent: Friday, May 29, 2009 1:41 PM
To: freebsd-questions@freebsd.org
Subject: Re: On the need for moderated questions lists

On Fri, May 29, 2009 at 07:13:49PM +0200, Wojciech Puchar wrote:

software that runs on multiple OSes (and not *just* FreeBSD) to run an
extra system, running some other OS.


no. i expect them to ask THAT program support.

In really rare cases when they got an answer like
You did all fine, i have the same configured program in my
linux/openbsd/netbsd/solaris/whatever OS and it works fine


So . . . basically, it's okay for someone to ask about X if that person
also runs Linux, but not if that person doesn't.  That's the logical
consequence of your argument thus far.  How well have you actually
thought this through?




They it's place to ask because certainly there's something wrong with the
port.


I don't recall that being an obvious and necessary condition of the
example -- and that didn't seem to matter when you suggested that it
might be on-topic if the querent also happens to have a Linux-based
system handy.

--
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
Quoth FreeBSD Secure Programming Guidelines: In fact, never ever use
gets() or sprintf(), period. If you do - we will send evil dwarfs after
you.

___
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: Canon printer and TurboPrint

2009-05-30 Thread Wojciech Puchar

Wojciech Puchar said the following on 2009-05-28 23:06:


Poland is now slowly losing independence


Poland has never had any independence. Your argument is moot.


generally you are right.
___
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: MIME attachments in mbox files

2009-05-30 Thread Wojciech Puchar
I have a need (well, I have lots of needs, but I'll try to stay focused here) 
to be able to take a Windows zip file that is stored as a MIME attachment to 
an e-mail message in an Mbox-format spool file, and unzip the attachment. I 
actually need to script the process. In case it helps, I can dedicate a 
mailbox to the task. If necessary, I can write my own parser to strip out the 
attachment, in which case I'd need only a widget that can take in a MIME 
(base64) encoded zip file, convert it to binary, and unzip it.


Anyone know of any FreeBSD utility(ies) that do(es) this?


i'm not sure if i understand well what you want, but install metamail 
package from ports. there is here program that can just extract all 
attachments to files. then you can unzip

___
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: Canon printer and TurboPrint

2009-05-30 Thread Wojciech Puchar



Basic law of marketing is to give the public what they want.


No. The company CREATES a need for their product.
That's the number one rule.


if they succeed - what's wrong?
___
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: On the need for moderated questions lists

2009-05-30 Thread Wojciech Puchar

But the choice you have in a strictly moderated mailing list is about
the same as the choice my people had in that particular oppressive
regime: leave or stay to fight a hopeless battle.


Thinking your way - if someone will come to my home and will do what i do 
not accept - can i force him to go out?


Yes i can. He can do the same in another house where it's accepted.

Those who don't agree with the moderation rules will use unmoderated one 
(this), with all it's (dis)adventages.



That's what bothers me with strict moderation.  It hinders the freedom
of expression of people, forcing them to go through unreasonable hoops
whenever their personality is slightly different from the 'permitted'
forms of straight-jacket.


You talk about that, but when i hear things like shut up it's fine of 
course? So how you define freedom? Freedom for all EXCEPT someone?


You seem to favor rules defined by those who shouts louder.

I at first placed thought about leaving that list at all, seeing that 
rulership of shouting crowd starts to win. Unfortunately to many here i 
stayed and will stay, because i know that what start at discussion forum 
WILL end in the product - FreeBSD.


The same happened in linux, (not exactly) the same happened with NetBSD, 
and now there is no usable unix other than FreeBSD.


Just please don't joke and say OpenBSD ;) it's not even funny.


This is a lot of text to go through, even in a semi-automated manner.


it's not possible to automatize this unfortunately.
___
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: Remotely edit user disk quota

2009-05-30 Thread Wojciech Puchar

But we're talking about vulnerability to dictionary and brute-force
attacks. You'd have to first:

Ascertain a username in the wheel group.


As time needed to brute-force crack any of my password is incomparably 
longer than the age of universe, this is not an argument.


It's just a matter to use good passwords
___
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: find and searching for specific expression in files

2009-05-30 Thread Wojciech Puchar

I am using find in the following manner:

find /path/to/files/ -mtime -2 -ls |less
to find files which have been recently modified. But I would like to
extend the search to find specific expression within files. -name is used
to specify file name. How can I search for strings within text?


no matter how you generate the list of files to search, use grep then on 
that list

___
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: Stable Mail Server And Web Mail

2009-05-30 Thread Mel Flynn
On Saturday 30 May 2009 17:31:35 Wojciech Puchar wrote:
  It's a detailed how-to but consider the following:
  a) With Oracle acquiring Sun, one should move to PostgreSQL where ever
  possible.

 is this a reason, or that simply mysql is just slow and inefficient
 compared to postgreSQL?

Depends on your usage. I'd say for SMTP table lookups, MySQL can out perform 
PostgreSQL, unless one uses persistent connections (postfix proxy-map to be on 
topic). The reason for this is that the connection start up for MySQL has 
lower overhead then for PostgreSQL. So typically with small tables (lookup 
maps for transport and users are generally not in the order of millions) and 
lots of connections MySQL could win. On the other hand, PostgreSQL scales 
better, especially now that the Sysv IPC shared memory limit in FreeBSD has 
been fixed. [1]

The reason for my original remark is that Oracle now acquired SAP DB, MySQL 
and Berkeley DB, so the best scenario I can see is that they improve the 
underused Berkeley DB table handler for MySQL and leave the rest in-tact, but 
I more expect them to phase out MySQL or grow it with Oracle features, neither 
of which I personally consider a good thing.

[1] 
http://www.freebsd.org/cgi/getmsg.cgi?fetch=182581+0+/usr/local/www/db/text/2009/freebsd-
hackers/20090315.freebsd-hackers
-- 
Mel
___
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: Software creating karaoke from mp3 files

2009-05-30 Thread Wojciech Puchar


Been unable to purchase karaoke of rock and roll greats like AC/DC, THE 
ROLLING STONES, THE DOORS, LED ZEPPELIN. Looking for advice on software that


AFAIK nobody yet invented so good voice analyzer that could separate out 
music and speech.


But there are programs that ROUGHLY removes speech by filtering some 
frequency band. effect is crappy but there's something.


Look at /usr/ports/INDEX maybe there is something for that but i don't 
know one

___
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: Greylisting and new posters

2009-05-30 Thread Wojciech Puchar


Don't be. It's been bothering me for a while and you weren't even the trigger.
Ironically the trigger was the endless and rather pointless discussions about
list moderation.


most probably you didn't read the points.

___
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: find and searching for specific expression in files

2009-05-30 Thread Wojciech Puchar

because it tells you the file in which the text pattern was found :).


Discouraged because:
- it's possible to hit maxarglen if the root directory has many
subdirectories.


xargs is usefull too. i would it as forking for each 
file will make processing really slow. xargs can cut input data into given 
chunks with -n option, so grep will be called for say 100 files at once.


___
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: Canon printer and TurboPrint

2009-05-30 Thread Wojciech Puchar

The usefulness of government intervention into private lives,
businesses, etc. is never going to be resolved on this forum.


And will it be resolved with discussion anywhere else with anyone else? ;)

Only usage of crude force can change the way things go today. And both me 
and anyone on that list doesn't have such force.



Innovation has never come from a bureau.


The same as knowledge never come from schools. Most innovators was quite 
bad at school, ignored school at all, or was good, but then had to relearn 
everything from scratch.


And - as you said, there are very little, and none great, inventions from 
any government sponsored scientific groups.


More important - if sponsoring is targeted at some achievement (like 
finding a cure for cancer) the most stupid thing such group can do is to 
achieve what required and lose funding.

___
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: Canon printer and TurboPrint

2009-05-30 Thread cpghost
On Sat, May 30, 2009 at 05:18:07PM +0200, Wojciech Puchar wrote:
  is a perfect choice. i recommend it for every unix user.
 
  Thanks for the pointer! I was actually looking for a set of ethernet
  print servers, and this looks very promising.
 
  Can you confirm that the PS-1206P works well under RELENG_7?
 
 it can't.

Okay, thank you. I'll order one and test drive it here,
and if it works as it should, I'll order the remaining
200 or so if we're satisfied. ;)

 it's ethernet device not PC peripheral so it doesn't run 
 under FreeBSD or whatever, but on LAN :)
 
 in /etc/printcap add:
 
 printer1:blahblah:sh:rm=IP.number.put.here:sd=/var/spool/lpd/printer1:lf=/var/log/printer1:

I know how to do that, but thanks nonetheless. We have a lot of
these little boxes around:

  http://www.dlink.com/products/?pid=322

hooked on old HP DeskJets for moderate to heavy office use, but knowing
about alternatives is always good.

 and go. Of course add postscript filters if you like

Thanks,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
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


Filter request Re: GSM to Serial Converter

2009-05-30 Thread Wojciech Puchar
Could you please add filter for incoming mail to remove things like that 
from improperly configured client?


It's always the same message so it's simple

On Sat, 30 May 2009, Exemys wrote:


This is a message in multipart MIME format.  Your mail client should not be 
displaying this. Consider upgrading your mail client to view this message 
correctly.

___
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: Stable Mail Server And Web Mail

2009-05-30 Thread Wojciech Puchar

Depends on your usage. I'd say for SMTP table lookups, MySQL can out perform
PostgreSQL, unless one uses persistent connections (postfix proxy-map to be on
topic). The reason for this is that the connection start up for MySQL has
lower overhead then for PostgreSQL.


for just quick searching of keys isn't just berkeley DB or maybe sqlite 
the best. there will be no connecting at all.


anyway sqlite is much more useful
___
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: Canon printer and TurboPrint

2009-05-30 Thread Wojciech Puchar


it can't.


Okay, thank you. I'll order one and test drive it here,
and if it works as it should, I'll order the remaining
200 or so if we're satisfied. ;)


so ask edimax directly you certainly get a discount on it. But of course 
test before.


I installed only 7 in various places.



hooked on old HP DeskJets for moderate to heavy office use, but knowing
about alternatives is always good.


these LPT-ethernet bridges from edimax was really cheap at least here.
___
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: Stable Mail Server And Web Mail

2009-05-30 Thread Jerry
On Sat, 30 May 2009 17:31:35 +0200 (CEST)
Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote:

 It's a detailed how-to but consider the following:
 a) With Oracle acquiring Sun, one should move to PostgreSQL where
 ever possible.

is this a reason, or that simply mysql is just slow and inefficient 
compared to postgreSQL?

There are many factors that could be contributing to the speed of MySQL.
For starters, what version are you employing? I believe
databases/mysql60-server is the latest version in the ports tree. Have
you tried using:

BUILD_OPTIMIZED=yes
BUILD_STATIC=yes

Their use could improve the speed of MySQL.

There are other options in the Makefile. Unfortunately, you have to set
them manually.

-- 
Jerry
ges...@yahoo.com

Theory is gray, but the golden tree of life is green.

Goethe


signature.asc
Description: PGP signature


Re: find and searching for specific expression in files

2009-05-30 Thread Mel Flynn
On Saturday 30 May 2009 17:57:14 Wojciech Puchar wrote:
  because it tells you the file in which the text pattern was found :).
 
  Discouraged because:
  - it's possible to hit maxarglen if the root directory has many
  subdirectories.

 xargs is usefull too. i would it as forking for each
 file will make processing really slow. xargs can cut input data into given
 chunks with -n option, so grep will be called for say 100 files at once.

Cut off the message a bit later and you will see that using a '+' to terminate 
the exec primitive emulates xargs behavior:

On Saturday 30 May 2009 14:12:50 Mel Flynn wrote:
 I use + rather then ; so that one
invocation for grep is done whenever maxarglen is hit (like if you used
xargs(1)), rather then one grep per file.

-- 
Mel
___
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: find and searching for specific expression in files

2009-05-30 Thread RW
On Sat, 30 May 2009 14:12:50 +0200
Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote:

 On Saturday 30 May 2009 13:56:22 Valentin Bud wrote:
  2009/5/30 Zbigniew Szalbot z.szal...@lcwords.com

   You can use egrep -r * (grep -e) to search for specific text
  pattern while you are in a directory with many sub directories. The
  output is nice because it tells you the file in which the text
  pattern was found :).
 
 Discouraged because:
 - it's possible to hit maxarglen if the root directory has many 
 subdirectories.
 - Will not search hidden directories in the root directory because of
 the shell glob

You can replace egrep -r string * with egrep -r string .
i.e. recurse from the current directory, rather than search or recurse
on everything that matches *. That avoids the first two problems, and
most of the time the third doesn't matter

 - cannot be combined with other search criteria such as the file's
 timestamp.
___
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: find and searching for specific expression in files

2009-05-30 Thread Wojciech Puchar


Cut off the message a bit later and you will see that using a '+' to terminate
the exec primitive emulates xargs behavior:


thanks. i didn't know that



On Saturday 30 May 2009 14:12:50 Mel Flynn wrote:

I use + rather then ; so that one
invocation for grep is done whenever maxarglen is hit (like if you used
xargs(1)), rather then one grep per file.


--
Mel



___
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: Stable Mail Server And Web Mail

2009-05-30 Thread Wojciech Puchar

you tried using:

BUILD_OPTIMIZED=yes
BUILD_STATIC=yes

Their use could improve the speed of MySQL.


the latter (static) will only optimize mysql startup time
___
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: find and searching for specific expression in files

2009-05-30 Thread Mel Flynn
On Saturday 30 May 2009 18:14:49 RW wrote:
 On Sat, 30 May 2009 14:12:50 +0200

 Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote:
  On Saturday 30 May 2009 13:56:22 Valentin Bud wrote:
   2009/5/30 Zbigniew Szalbot z.szal...@lcwords.com
  
You can use egrep -r * (grep -e) to search for specific text
   pattern while you are in a directory with many sub directories. The
   output is nice because it tells you the file in which the text
   pattern was found :).
 
  Discouraged because:
  - it's possible to hit maxarglen if the root directory has many
  subdirectories.
  - Will not search hidden directories in the root directory because of
  the shell glob

 You can replace egrep -r string * with egrep -r string .
 i.e. recurse from the current directory, rather than search or recurse
 on everything that matches *. That avoids the first two problems, and
 most of the time the third doesn't matter

OP (and myself) have a different concept of 'most of the time'. But this may 
be cause I'm already so used to this concept that my fingers have it store 
locally and I could've used grep -r or the overall win is minimal (I often use 
-name '*.h', and arguably in small trees it wouldn't matter).


  - cannot be combined with other search criteria such as the file's
  timestamp.

-- 
Mel
___
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: find and searching for specific expression in files

2009-05-30 Thread Polytropon
On Sat, 30 May 2009 11:25:12 +0200, Zbigniew Szalbot z.szal...@lcwords.com 
wrote:
 Hello,
 
 Can you please give me a hint how to use find to search for a specific
 text within files?

One valid solution is to combine find (to find the files) and
grep (to search in them). For the combination, you can use
the famous back-tics.

% grep expression `find /path/to/files/ -mtime -2 -print`

Of course, there are surely easier, faster and better means,
but from this one, I know it just works. :-) Furthermore, I
think -print is optional here.

If you want to use the Midnight Commander, use Meta-? for a
combined dialog:

+- Find File --+
|  |
| Start at: ___[^] |
|  |
| Filename: ___[^] |
|  |
| Content:  ___[^] |
|  |
| [ ] case Sensitive   |
|  |
| [ OK ]  [ Tree ][ Cancel ] |
+--+

That's what I mostly use.




-- 
Polytropon
From 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: find and searching for specific expression in files

2009-05-30 Thread Wojciech Puchar

the famous back-tics.

% grep expression `find /path/to/files/ -mtime -2 -print`

Of course, there are surely easier, faster and better means,
but from this one, I know it just works. :-) Furthermore, I


unless filelist exceed max lenght of arguments and unfortunately it 
happens often

___
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: MIME attachments in mbox files

2009-05-30 Thread Vince Sabio

** At 00:56 -0700 on 05/30/2009, George Davidovich wrote:

On Fri, May 29, 2009 at 11:40:52PM -0400, Vince Sabio wrote:

 I have a need (well, I have lots of needs, but I'll try to stay
 focused here)


Given the nature of most messages in the last few days, I'd suggest
you're trying too hard.  ;-)


Yeah, I was considering leading with an apology for the on-topic post. g


  to be able to take a Windows zip file that is stored as a MIME

 attachment to an e-mail message in an Mbox-format spool file, and
 unzip the attachment. I actually need to script the process. In case
 it helps, I can dedicate a mailbox to the task.

 Anyone know of any FreeBSD utility(ies) that do(es) this?


Generally, when you're talking about processing an mbox and doing
something with message bodies, you're looking at formail plus procmail
in combination with a tool that can interpret the mime structure and
process the components (mimedefang, demine, stripmime, mimedecode,
reformime, renattach, etc.).  That's a roundabout way of saying, no,
there are no FreeBSD utilities to do what you want, but there's lots to
be found in ports.


Sorry, I misspoke: sed 's/utilities/ports/g'


I'd start with a quick read through of some of those manpages, but at
first glance, ripmime alone might do the trick:

http://www.freebsd.org/cgi/man.cgi?query=ripmimeapropos=0sektion=0manpath=FreeBSD+7.2-RELEASE+and+Portsformat=ascii


This, and Ian's munpack suggestion, will both do what I need -- but 
with one [very minor] exception: There is no way to override the file 
name specified in the MIME header (if present, which, in my case, it 
typically will be) and force it to use a specific output file name. 
Or just send the output to stdout, so I can redirect it to a file 
name of my choice (or to unzip). Not a show stopper by any means, 
just requires a workaround. I suspect that the authors of these 
utilities (there I go again) expected they would be invoked 
interactively.



  If necessary, I can write my own parser to strip out the attachment,

 in which case I'd need only a widget that can take in a MIME (base64)
 encoded zip file, convert it to binary, and unzip it.


In that case, and assuming you're using Perl, MIME::base64 and
IO::Uncompress::Unzip (or /usr/ports/archivers/unzip) is what you want.
Bonus points for writing a one-liner.


Using C, but shelling out where necessary to get stuff done.

It looks like {ripmime, munpack} and unzip will do the trick. Many 
thanks for the pointers. I now return you to your regularly scheduled 
META discussion(s)... :-)


__
Vince Sabio  vi...@vjs.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: Stable Mail Server And Web Mail

2009-05-30 Thread Mel Flynn
On Saturday 30 May 2009 18:05:12 Wojciech Puchar wrote:
  Depends on your usage. I'd say for SMTP table lookups, MySQL can out
  perform PostgreSQL, unless one uses persistent connections (postfix
  proxy-map to be on topic). The reason for this is that the connection
  start up for MySQL has lower overhead then for PostgreSQL.

 for just quick searching of keys isn't just berkeley DB or maybe sqlite
 the best. there will be no connecting at all.

 anyway sqlite is much more useful

Only for single machine installs as I wouldn't recommend sqlite over NFS to 
share the database.
The idea was to have one machine (or a replicated cluster) with a database and 
several mail servers getting their information from there. It's less about 
performance, more about a preference of how you want to manage your 
information.
-- 
Mel
___
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


Best practices in finding out a trojan

2009-05-30 Thread Zbigniew Szalbot
Hello,

I know this has practically no connection with FreeBSD but I have a site
on a shared hosting and it appears the site got a trojan called
JS:Cruzer-D. I cannot find anything about it as it appears to be
relatively new (28 May). Anyway, I am trying to browse through the joomla
cms files in hope of locating it. I haven't seen anything suspicious with
the file modification time (and I have checked those which have been
modified within 48h period.

I am a bit stuck at the moment and if you can offer any advice on how to
troubleshoot such things on a UNIX system, I'd be really, really thankful!

There is some information about JS:Cruzer-C on the web but code of this
trojan is not present on the infected website (I have grepped all the
files today).

Ah, I will add that the trojan is only reported by avast antivirus when
people visit the site in IE (in other browers, this problem does not
appear).

Best regards,

-- 
Zbigniew Szalbot

___
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: Best practices in finding out a trojan

2009-05-30 Thread Mel Flynn
On Saturday 30 May 2009 19:40:55 Zbigniew Szalbot wrote:

 I know this has practically no connection with FreeBSD but I have a site
 on a shared hosting and it appears the site got a trojan called
 JS:Cruzer-D. I cannot find anything about it as it appears to be
 relatively new (28 May). Anyway, I am trying to browse through the joomla
 cms files in hope of locating it. I haven't seen anything suspicious with
 the file modification time (and I have checked those which have been
 modified within 48h period.

Normally, grep and find would do it, or running clamav over the system. 
However, from what I'm reading on the web, avast gives false positives for 
this trojan. Even flagging a gif image:
http://forum.avast.com/index.php?topic=45730.msg383138#msg383138

So I wouldn't worry about finding it, but more about informing your users that 
there is no trojan on the site and that they should complain with avast about 
this issue.
You could ask visitors to try and identify the file that sets off this false 
positive. Procedure for that is described in above post.
-- 
Mel
___
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: find and searching for specific expression in files

2009-05-30 Thread Walt Pawley
At 6:44 PM +0200 5/30/09, Wojciech Puchar wrote:
 the famous back-tics.

  % grep expression `find /path/to/files/ -mtime -2 -print`

 Of course, there are surely easier, faster and better means,
 but from this one, I know it just works. :-) Furthermore, I

unless filelist exceed max lenght of arguments and unfortunately it
happens often

I use bash as my default shell and have become rather enamored
with the construct

make-a-list | while read x; do pretty-much-whatever $x; done

which should get around the list length limitations and
provides for doing extras between the do and the done.
Specifically:

find /path/to/files/ -mtime -2 -print | \
while read x; do grep expression $x; done
-- 

Walter M. Pawley w...@wump.org
Wump Research  Company
676 River Bend Road, Roseburg, OR 97471
 541-672-8975
___
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: find and searching for specific expression in files

2009-05-30 Thread Wojciech Puchar

make-a-list | while read x; do pretty-much-whatever $x; done

which should get around the list length limitations and
provides for doing extras between the do and the done.
Specifically:

find /path/to/files/ -mtime -2 -print | \
while read x; do grep expression $x; done


same as -exec

works but forks a process for each single file - slow

-exec and + or xargs do the job
___
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: Greylisting and new posters

2009-05-30 Thread Chuck Robey
Mel Flynn wrote:
 All (including David with his kick-ass postmaster hat),
 
 while off-topic, flames and other non sense covered by Freedom of Speech are 
 an annoyance to many, I'm more bothered by some newcomers to the list that 
 are 
 being greylisted on first post and instantly hit the resend button. 
 Especially 
 since a technical solution is possible in 90% of the cases (there are a few 
 people that don't resend, but re-edit).
 
 Is it possible to:
 a) Put a big-red-blink-popup-attentiongrabbing monster text into the 
 subscription page about first posts being delayed with a link to greylisting?
 b) Hash the bodies of greylisted messages and reject / discard if the same 
 body with a different msg id is being received?
 
 I'd be happy to contribute to b) if it is thought that the incoming mailer 
 can 
 handle the hashing and storage of this information.

Seems to me that the particular problem you're referring to doesn't really
happen all that often.  Probably, the only thing that really might need another
word or two is to make the services offered by FreeBSD-test list better
advertised (it does still exist, right?)  People can post all the test mail they
want to that list.

About 6 months ago, I recommended to an acquaintance that they make use of the
FreeBSD-test list, and I actually saw the replies he got from some idiots
subscribed to that list, complaining that my acquaintance used that list exactly
like he was supposed to do.   I wonder if maybe the list ought to have some
feature like having it's subscribers list zeroed out once a week.  It's then a
pretty obvious problem which really could be dealt with in the  new subscribers
intro mail.
___
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


Deinstall software

2009-05-30 Thread Markus Künkler

Hi!
I installed my software using csup and make install. Now there are new  
versions available. How can i deinstall the old software with  
depencies or upgrade the complete stuff? I want to use make for that  
and it should ignore if an old version is already installed or  
deinstall the old version automiticaly.

Cheers Markus
___
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: Deinstall software

2009-05-30 Thread Wojciech Puchar

Hi!
I installed my software using csup and make install. Now there are new


you mean FreeBSD or some add on software?

as assume latter. you should use ports for installing software.

if there are no port for it, you should write it and contribute ;)

but if you already did this way, then you have 2 choices

1) there are often make deinstall in such sources working, it will work if 
target directory will be the same as before


2) find out manually what files it put where and delete.


If you need to install software this was, try to set target directory base 
not in /usr, to not make mess with base system, and not /usr/local - to 
not mess with ports.


creating /usr/local2 is a good choice
___
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: Deinstall software

2009-05-30 Thread Polytropon
On Sat, 30 May 2009 20:54:10 +0200, Markus Künkler mar...@amobos.org wrote:
 Hi!
 I installed my software using csup and make install. Now there are new  
 versions available. How can i deinstall the old software with  
 depencies or upgrade the complete stuff? I want to use make for that  
 and it should ignore if an old version is already installed or  
 deinstall the old version automiticaly.

If you're talking about the OS itself, you can simply follow
the instractions in the handbook, where it explains the
upgrading of the system (including steps like make update,
make buildworld and buildkernel, mergemaster, and make
installkernel and installworld, maybe KERNCONF).

For the ports, you enter the port's directory, run

# make deinstall

and then

# make
# make install
# make clean

(you can of course combine it to make install clean).

If you want to automate it, you can use tools from the portmgmt/
category, such as portupgrade or portmaster. --- I think that
is what you're searching for.

But you're talking about software that is not supported through
the FreeBSD ports system, you need to rely on what the source
creator gave to you (install / update / deinstall scripts).




-- 
Polytropon
From 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: Deinstall software

2009-05-30 Thread Polytropon
On Sat, 30 May 2009 21:20:13 +0200 (CEST), Wojciech Puchar 
woj...@wojtek.tensor.gdynia.pl wrote:
 If you need to install software this was, try to set target directory base 
 not in /usr, to not make mess with base system, and not /usr/local - to 
 not mess with ports.
 
 creating /usr/local2 is a good choice

You can even keep it out of /usr employing the /opt Linuxism. :-)



-- 
Polytropon
From 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


Multiple program launches in Midnight Commander

2009-05-30 Thread Polytropon
Since I moved to FreeBSD 7, I noticed that if I press Enter on
a file name in the Midnight Commander (which associates the
start of the proper program with the file name as parameter,
controlled by mc.ext file) that the program is sometimes started
2 or three times. This is especially annoying for video files
that then run multiple instances of mplayer, or image files
that then run multiple instances of xzgv -tz.

Any idea where this comes from? Never had this before...

Maybe it has something to do with the subshell support new to
the Midnight Commander, which often results in

read (subshell_pty...): No such file or directory (2)

after crashing the MC and not running it anymore.

Or maybe it is due to to sticky keys on the USB stack? The
keyboard is (still) a Sun USB Type 6 keyboard which didn't have
any problems before. Additionally, it's not my fingers, I'm
a typist - learned on a real typewriter. :-)



-- 
Polytropon
From 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: Deinstall software

2009-05-30 Thread Wojciech Puchar


creating /usr/local2 is a good choice


You can even keep it out of /usr employing the /opt Linuxism. :-)


no matter what's the name, but it's good to have

/usr/local for ports-based installed things
/some/other/directory for hand-installed things

so both base system and ports are clearly separated
___
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: Multiple program launches in Midnight Commander

2009-05-30 Thread Wojciech Puchar

2 or three times. This is especially annoying for video files
that then run multiple instances of mplayer, or image files
that then run multiple instances of xzgv -tz.


i never had this in any version of FreeBSD including 7.1 i use now

but i use mc-lite port

___
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


Mysql6 or Mysql5

2009-05-30 Thread Grant Peel
Hi all,

I am asking thise here as I am aware there are many ISPs and Hosting farm 
admins on this list.

I am in the process of setting up the next gen servers, and notice the Mysql6 
is available in ports.

Does anyone have any expierience with it? Is it solid? Fast? Are there any 
'gotchas' when using databases developed on older versions of Mysql? (4).

Thanks,

-Grant
___
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: Deinstall software

2009-05-30 Thread cpghost
On Sat, May 30, 2009 at 09:35:35PM +0200, Polytropon wrote:
 
 You can even keep it out of /usr employing the /opt Linuxism. :-)

/opt is actually a Solarism... ;-)

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
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: Deinstall software

2009-05-30 Thread Polytropon
On Sat, 30 May 2009 23:50:42 +0200, cpghost cpgh...@cordula.ws wrote:
 /opt is actually a Solarism... ;-)

That's true, but nobody knows, because Solaris doesn't exist. :-)



-- 
Polytropon
From 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: Deinstall software

2009-05-30 Thread Glen Barber
Polytropon,

On Sat, May 30, 2009 at 3:35 PM, Polytropon free...@edvax.de wrote:

 You can even keep it out of /usr employing the /opt Linuxism. :-)


For (my own) clarity sake, won't that take up space in '/'?  (Not
arguing, just never thought of using /opt on FreeBSD...)

-- 
Glen Barber
___
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: rsync approach

2009-05-30 Thread Karl Vogel
 On Wed, 27 May 2009 15:03:30 -0700, 
 prad p...@towardsfreedom.com said:

P We are thinking of rsync to duplicate 1st [box]  2nd [box] (with the
P exception of rc.conf and a few other files of course because we don't
P want them to be absolutely identical).

P we plan to allow root login and have disabled all password access so
P that rsync can preserve permissions.  is this a good way to accomplish
P the bkp job?

   If you're going to use root login, I'd suggest access control for ssh
   via either daemontools or tcpwrappers, and add some extra security
   by putting 'from=hostname' in root's entry in the authorized_keys2
   file:

   from=1st.box.com ssh-dss B3NzaC1MtH[...]WDXDrq03pE= r...@1st.box.com

   It's not strictly necessary to allow root connections if you want
   to keep permissions intact.  I use an unprivileged account (bkup)
   to copy gzipped cpio archives between systems.  On the 1st box, root
   can use pax or cpio to create the archive, and then run something as
   user bkup to do the copy to the 2nd box:

 root# cd /some/where
 root# find . -print | pax -x cpio -wd | gzip -1c  /tmp/arch.pax.gz
 root# su bkup -c scp -c arcfour -i /bkup/.ssh/backuphost_dsa \
   /tmp/arch.pax.gz 2nd.box.com:/someplace/bkup/can/write

   The arcfour cipher will probably give you better throughput.  To unpack
   the files on 2nd.box.com:

 root# cd /some/where/else
 root# gunzip -c /someplace/bkup/can/write/arch.pax.gz | pax -rd -pe
 root# rm /someplace/bkup/can/write/arch.pax.gz

   If the files you're syncing are huge, you're better off using root login
   plus rsync.

-- 
Karl Vogel  I don't speak for the USAF or my company

SUVs are gross because they're the solution to a gross problem:
how to make minivans look more masculine.  --Paul Graham
___
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: find and searching for specific expression in files

2009-05-30 Thread Karl Vogel
 On Sat, 30 May 2009 11:25:12 +0200, 
 Zbigniew Szalbot z.szal...@lcwords.com said:

Z Can you please give me a hint how to use find to search for a specific
Z text within files?

   People have mentioned using xargs in combination with find, but if
   you're dealing with Windows files on a server, be prepared for every
   kind of crap character in the filename you can imagine.  Use nulls
   to delimit the filenames, i.e.:

  find . -mtime +7 -print0 | xargs -0 grep -i foo

   The GNU versions of find and xargs support the 0 options as well.

-- 
Karl Vogel  I don't speak for the USAF or my company

iPod changed my life.
Earbuds made me look so cool!
Now I am stone deaf.  --geek haiku
___
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


The FreeBSD Diary: 2009-05-30

2009-05-30 Thread Dan Langille
The FreeBSD Diary contains a large number of practical 
examples and how-to guides.  This message is posted weekly
to freebsd-questions@freebsd.org with the aim of letting people
know what's available on the website.  Before you post a question
here it might be a good idea to first search the mailing list 
archives http://www.freebsd.org/search/search.html#mailinglists 
and/or The FreeBSD Diary http://www.freebsddiary.org/. 

RECENT ARTICLES:

2-Dec : Obscuring smtp auth headers
 If you consider your smtp-auth location to be private, this is what you 
want. 
 http://freebsddiary.org/smtp-headers-rewrite-auth.php?2

29-Nov : OpenVPN - creating a routed VPN
 If you have multiple VPN clients, this is a practical solution. 
 http://freebsddiary.org/openvpn-routed.php?2

27-Nov : Creating your own Certificate Authority
 How to create a CA and generate your own SSL certificates
 http://freebsddiary.org/openvpn-easy-rsa.php?2

27-Nov : OpenVPN - getting it running
 Using OpenVPN to create a secure pathway between home and office 
 http://freebsddiary.org/openvpn.php?2

5-Oct : Removing dead mailing lists from Mailman
 Mailing lists can outlive their usefulness 
 http://freebsddiary.org/mailman-removing-dead-lists.php?2

30-Aug : gmirror - recovering from a failed HDD
 an HDD failed.  gmirror to the rescue. 
 http://freebsddiary.org/gmirror-failure.php?2

6-Jul : ezjail - A jail administration framework
 This makes jails easier 
 http://freebsddiary.org/ezjail.php?2

24-Jun : Adding gmirror to an existing installation
 Adding RAID-1 to an existing FreeBSD 7 installation
 http://freebsddiary.org/gmirror.php?2

20-Mar : ThinkPad x61s
 Unpacking the box, installing PC-BSD 
 http://freebsddiary.org/thinkpad-x61s.php?2

17-Mar : Using two monitors with X.org
 The GeForce 8600 GT with two monitors 
 http://freebsddiary.org/xorg-two-screens.php?2


-- 
Dan Langille
BSDCan - http://www.BSDCan.org/ - BSD Conference

___
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: Deinstall software

2009-05-30 Thread Polytropon
On Sat, 30 May 2009 18:55:15 -0400, Glen Barber glen.j.bar...@gmail.com wrote:
 For (my own) clarity sake, won't that take up space in '/'?  (Not
 arguing, just never thought of using /opt on FreeBSD...)

This depends on your file system layout, Glen. If you put
everything into one partition, i. e. /, then everything is
going into /.

If you have separate partitions, e. g. /, /tmp, /var, /usr
and /home, then /opt would take space on /. On most installations
that use this approach, / is as big as needed for what it
is used: the basic SUM stuff and mountpoints, nothing more.

Of couse, it's possible to extend the approach mentioned to
have another partition for /opt.

In order to not to deal with this problem, one could even make
a symlink /opt@ - /usr/local2.

To summarize: You are correct. :-)

By the way, I've not seen anyone using /opt on FreeBSD yet,
I just wanted to mention that it is possible. (There are
other Solarisisms that I've already seen, such as /export
on FreeBSD which is usually used on Solaris for NFS shares.)


-- 
Polytropon
From 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: Deinstall software

2009-05-30 Thread Glen Barber
On Sat, May 30, 2009 at 7:22 PM, Polytropon free...@edvax.de wrote:
 On Sat, 30 May 2009 18:55:15 -0400, Glen Barber glen.j.bar...@gmail.com 
 wrote:
 For (my own) clarity sake, won't that take up space in '/'?  (Not
 arguing, just never thought of using /opt on FreeBSD...)

 This depends on your file system layout, Glen. If you put
 everything into one partition, i. e. /, then everything is
 going into /.


Ah, yes.  I forgot people do that -- hence my question.  :)

-- 
Glen Barber
___
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 on USB drive for a MacBook Pro

2009-05-30 Thread John Nielsen
I'm looking for advice and/or pointers. I have an Intel-based MacBook Pro 
and I would like to use a USB thumb drive to be able to boot FreeBSD on 
it. Some questions:

1) Is this even possible? I've read that you _can_ boot Mac OS X from a 
USB hard drive on a new MacBook but I'm not sure if the same goes for 
non-Mac OSen or thumb drives.

2) What steps should I take to partition the thing? What boot code should 
I use and where should it live? I'm planning to do a manual installation 
in any event.

3) If I manage to get 1 and 2 sorted out, will I be able to boot the same 
thumb drive on a regular PC? Will any additional steps be necessary?

4) Just to be contrary, I'd also like to use GELI (if possible) for 
everything but /boot. Does needing an extra /boot partition change 
anything?

I'll be doing some experimenting, but if some things are already known 
(not) to work I'd like to start with as much info as possible.

Thanks,

JN
___
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


Myths about Power Over Ethernet

2009-05-30 Thread Midspan Manager
Myths about Power Over Ethernet
 May 28, 2009
Power-over-Ethernet (PoE) technology integrates power and data across standard 
Cat5/5e/6 network cabling and provides more flexibility in today’s workplace. 
PoE enables power to be supplied to network devices, such as IP phones, network 
cameras, and wireless access points through a single, most often existing, 
network cable. When combined with an uninterruptable power supply (UPS) a PoE 
network delivers continuous operation and minimizes business downtime by 
eliminating most power interruptions. With the ability to install endpoints in 
any location PoE technology provides a scalable and flexible networking 
infrastructure geared for growth and efficiency.

 
 PoE Switches can provide all the power I need or will need.
Today most switches are merely PoE-enabled.  This means the majority rely on 
power management to share available power across the switch ports. The switches 
are designed with a smaller power supply that is typically capable of powering 
the switch itself and providing the required 15.4 watts of power over a limited 
number of ports. 
For example:  A 24-port PoE Switch with power management typically has a 
195-watt power supply. After the 40 watts needed to power the switch, you have 
approximately 155 watts remaining. If 12 of the 24 ports are used to connect 
end devices using 11.5 watts each, you would only have 17 watts remaining to 
provide power on the last 12 ports.  The math doesn’t match the ports: 195W – 
40W (switch) – 138 (12 devices @ 11.5W/ea) = 17W left for power on 12 ports 
Myth Busted: A PoE Switch is often not the best and most cost effective 
solution.
 
  
 A midspan and a PoE switch are the same.
A PoE Midspan is not a switch.  A Midspan is an additional PoE power source 
that can be used to offer full power to all endpoint devices.  PoE Midspans 
(Power Hub or Power Injector) pass data from a switch and ‘inject’ safe power 
acting as a patch panel of sorts.  Midspans are commonly used with either a 
non-PoE switch, an existing PoE switch, or a new PoE switch in a network. In 
addition to offering full power across all available ports, midspans costs 
substantially less per port and overall than a new PoE enabled switch.
Myth Busted: Midspans do not switch – they make use of existing best-in-class 
switches.  They inject safe power across all ports and cost less than PoE 
switches. . 
  
 Only a switch that has PoE built in should be used to power devices like IP 
Phones, Access Points, and IP Security Cameras. 
Switches were designed to, well, switch.  PoE Switches are designed with power 
management and have to distribute different power as required to ports but 
there is often not enough power for all devices plus the power required to 
complete the primary task - switching.  Networks that have multiple devices 
like IP phones, IP cameras, wireless access points quickly go beyond the 
limited capacity of managed power PoE switches.  As more PoE devices continue 
to grow in capabilities and market share this managed power limitation will 
become more and more evident.  Midspans, in contrast to switches, were designed 
to provide full power on every port and deliver safe and reliable power based 
on the industry standards (IEEE802.3af/at). 
Myth Busted: Rather than relying on power management in a switch use a midspan 
that can deliver full power (15.4W) to every port for all PoE-enabled devices 
now and in the future.   
  
 Ethernet devices not PoE-enabled (non 802.3af/at compliant) cannot be powered 
using PoE technology. 
Many devices do not directly accept Power-over-Ethernet but can still use PoE 
technology. If the device uses less than 12.5 watts (802.3af) or less than 50 
watts (802.3at+) and connects to an IP Ethernet network you can use a PoE 
splitter.  PoE splitters enable you to accept PoE power from any IEEE 
802.3af/at compliant switch or midspan then separates the data and power on to 
two seprate cables.  The data is connected to the end device through a standard 
RJ45 plug while the power is connected using a standard 5.5 x 2.1 x 12mm 
Adapter Plug.  Splitters can also convert the input voltage to the required 
voltage for a non-PoE device. Splitters are traditionally used with older 
network products which only accept power through their (DC) jack and data 
through their RJ-45 jack.
Myth Busted: PoE splitters can be used in conjunction with PoE midspans and 
switches to provide both the data connectivity and power required by most 
endpoint devices. 
  
 I need/will need additional PoE switch ports to power my IP cameras and 
high-power pan, tilt, and zoom (PTZ) cameras. 
Today, many devices have evolved into more advanced solutions with higher power 
requirements. The traditional approach was to endure a “forklift upgrade”. This 
meant buying new PoE switches at considerable cost and physically swapping out 
the existing switches to meet higher power requirements or add more powered 
ports. 

about using ppp over ethernet

2009-05-30 Thread Yavuz Maşlak

I use freebsd7.1

I have a adsl modem. I am going to use freebsd as a router and firewall. I 
wish to use over pppoe. I set the adsl modem as a bridge mode.

I configured ppp.conf on freebsd.
When I try to connect to internet using ADSL,  But I get an error as below; 
Freebsd can't ping at any outside ip. Therefore I am not able to reach to 
internet in this way.

What am I doing wrong?
Any advice ?

Thanks

May 21 17:35:54 gw110 ppp[1215]: tun0: Phase: bundle: Establish
May 21 17:35:54 gw110 ppp[1215]: tun0: Phase: deflink: closed - opening
May 21 17:35:54 gw110 ppp[1215]: tun0: Phase: deflink: Connected!
May 21 17:35:54 gw110 ppp[1215]: tun0: Phase: deflink: opening - dial
May 21 17:35:54 gw110 ppp[1215]: tun0: Phase: deflink: dial - carrier
May 21 17:35:55 gw110 ppp[1215]: tun0: Phase: Received NGM_PPPOE_ACNAME 
(hook SE-ATAKOY-NEC-1)

May 21 17:35:55 gw110 ppp[1215]: tun0: Phase: Received NGM_PPPOE_SESSIONID
May 21 17:35:55 gw110 ppp[1215]: tun0: Phase: Received NGM_PPPOE_SUCCESS
May 21 17:35:55 gw110 ppp[1215]: tun0: Phase: deflink: carrier - login
May 21 17:35:55 gw110 ppp[1215]: tun0: Phase: deflink: login - lcp
May 21 17:35:56 gw110 ppp[1215]: tun0: Phase: bundle: Authenticate
May 21 17:35:56 gw110 ppp[1215]: tun0: Phase: deflink: his = PAP, mine = 
none
May 21 17:35:56 gw110 ppp[1215]: tun0: Phase: Pap Output: x...@ttnet 


May 21 17:35:57 gw110 ppp[1215]: tun0: Phase: Pap Input: SUCCESS ()
May 21 17:35:57 gw110 ppp[1215]: tun0: Phase: deflink: lcp - open
May 21 17:35:57 gw110 ppp[1215]: tun0: Phase: bundle: Network
May 21 17:35:57 gw110 ppp[1215]: tun0: Warning: 0.0.0.0/0: Change route 
failed: errno: No such process
May 21 17:35:57 gw110 ppp[1215]: tun0: Warning: ff02:7::/32: Change route 
failed: errno: Network is unreachable


cat /etc/rc.conf
gw110# ifconfig
xl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
   options=8VLAN_MTU
   ether 00:60:97:b8:77:eb
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active
stge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
   options=209bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC
   ether 00:22:15:10:73:04
   inet 10.11.1.221 netmask 0xff00 broadcast 10.11.1.255
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active
plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT metric 0 mtu 
1500

pflog0: flags=0 metric 0 mtu 33204
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
   inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
   inet6 ::1 prefixlen 128
   inet 127.0.0.1 netmask 0xff00
pfsync0: flags=0 metric 0 mtu 1460
   syncpeer: 224.0.0.240 maxupd: 128
tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST metric 0 mtu 1492
   inet 88.238.76.207 -- 88.238.64.1 netmask 0x
   Opened by PID 1215
tun1: flags=8010POINTOPOINT,MULTICAST metric 0 mtu 1500
gw110# ping 88.238.76.207
PING 88.238.76.207 (88.238.76.207): 56 data bytes
64 bytes from 88.238.76.207: icmp_seq=0 ttl=64 time=0.831 ms
64 bytes from 88.238.76.207: icmp_seq=1 ttl=64 time=0.222 ms
64 bytes from 88.238.76.207: icmp_seq=2 ttl=64 time=0.206 ms 


Bu elektronik posta ve varsa ekleri tamamen gizli ve gönderilen kişiler 
listesine özeldir. Eğer adınız gönderilen kişiler listesinde yer almıyorsa, 
lütfen derhal gönderen kişiyi bilgilendiriniz ve içeriğini herhangi başka bir 
kişiye iletmeyiniz, herhangi bir amaç için kullanmayınız, sayısal ve basılı 
ortamlar dahil olmak üzere saklamayınız ve kopyalamayınız.


This e-mail and attachments, if any, may contain confidential and/or 
proprietary information. Please be advised that the unauthorized use or 
disclosure of the information is strictly prohibited. If you are not the 
intended recipient, please notify the sender immediately by reply e-mail and 
delete all copies of this message and attachments. Thank you.
___
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: Remotely edit user disk quota

2009-05-30 Thread perryh
Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote:

  Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote:
 
  Even 15 seconds of thinking is enough to understand that logging
  to other user and then su - gives completely no extra security.
 
  I don't buy this, given that root's login name is well known :)

 if someone can intercept the passwords you type, then he/she will 
 intercept both user password you log in and then su password you
 type.

 He/she actually can gain more if you use su, as you may use the
 same user password somewhere else.

The whole point of ssh is to prevent this sort of thing, by
encrypting the message traffic over this insecure communication
channel.  An attacker may be able to intercept the encrypted
traffic, but it will take a skilled cryptanalyst and a lot of CPU
time -- or the attacker will have to be very lucky -- to decrypt
the message and recover the passwords while they are still valid.
(You *do* change passwords periodically, don't you?)
___
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


Audio boost OSS/Mplayer

2009-05-30 Thread Kyle Grieb
I want to boost the audio playback of my multimedia.
I use mplayer with oss for audio playback.
I don't want to re-encode my media.

uname -a:'7.1-RELEASE-p4 FreeBSD'
-- 
~
##The United States of America is a Slave Nation##
##The Human race is a Slave race##
!!InfoWars.com!!
___
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 7.2-RELEASE] Audio going silent after wakeup.

2009-05-30 Thread LoH
After setting up an Audigy2ZS with the emu10kx kernel driver, I found 
that after the machine goes into a suspend mode and wakes up, the sound 
stops playing. Unloading and reloading the kernel drivers (sound.ko and 
snd_emu10kx.ko) doesn't appear to do anything. I tested with an external 
line device and mplayer.


A reboot clears up the symptoms.

Has anyone else noticed this before? Is there a way to get the problem 
to sit up and bark without doing a complete reboot?


--Joseph Lenox
___
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