Re: (postfix) SPAM filter?

2007-12-17 Thread Jorn Argelo


On Mon, 17 Dec 2007 00:20:50 +0530, Girish Venkatachalam [EMAIL PROTECTED] 
wrote:
 On 14:48:35 Dec 15, Jorn Argelo wrote:
 Greylisting only works so-so nowadays. There was a couple of months it
 was
 very effective, but that is long gone. Spammers aren't stupid, and they
 follow the development of anti-spam techniques as much as e-mail admins
 do.
 Greylisting is a start, but from my experience it is not nearly enough.

 
 I have heard this said elsewhere too.

Yes don't rely solely on greylisting unless you're a lucky guy and don't get a 
lot of spam.

 
 Also I believe that rejecting e-mail is a big point of discussion. We
 had
 an internet e-mail environment built about 3 years ago, and there the
 users
 were terrorized by spam. We had some users getting 30 spam mails a day
 at
 least. This setup was running amavis, spamassassin, postfix, postgrey,
 dcc
 and razor. Unfortunately, over time the bayes filter got incorrectly
 trained, and it sometimes rejected valid e-mails. If there's something
 you
 DON'T want to happen it's that. And also troubleshooting those kind of
 things can be quite hard ...
 
 What about CRM114 and dspam?

I played with dspam at home but I didn't really got it running as I wanted to. 
I didn't invest an awful lot of time in it though, so I cannot properly judge 
it. I never heard of CRM114, so I cannot say anything from that.

 
 Have you ever tried statistical filtering instead of heuristics with
 spamassassin?
 
 
 We rebuilt the environment from scratch. Right now we are running
 OpenBSD
 spamd + OpenBSD Packetfilter. This functions as greylisting /
 greptrapping
 in combination with the PF firewall. We made a couple of scripts to trap
 invalid / forged e-mail addresses that are greylisted. Also we make use
 of
 the uatraps / nixspam traplists, and our own generated blacklist
 generated
 from spam being sent to the postmaster. We had some problems with
 blacklisted entries in the past, but we worked around that. It goes
 further
 then that, but I will spare you all the details.
 
 pf(4) has some amazing features that come in handy for spam control. I
 guess it forms a key component of any spam blocking architecture. And it
 works in concert with the other OpenBSD niceties you point out like
 populating the tables with blacklists and whitelists, greytrapping and
 using the pf(4) anchor mechanism to automate stuff.

Indeed. PF is very powerful and uses very little resources. Hats off to the 
OpenBSD guys for this.

And indeed, I can recommend every e-mail admin to use a pf and spamd 
combination. It's awesome and you can do a lot with it. Check out the OpenBSD 
website for more info. 

 
 The probability and state tracking options in pf(4) are pretty
 interesting too if used creatively.

Very much so, it opens a lot of new options for you to handle blacklisted 
entries.

 
 
 On the second line we run Postfix / ClamSMTP / Clamd / Spamassassin. We
 removed Amavis because it was annoying to upgrade and we wanted to get
 rid
 of it, as we had problems with it in the past. With SpamAssassin we use
 sa-update and sa-learn to keep the rules up-to-date and make sure bayes
 gets properly trained. So we are marking e-mail as spam and no longer
 block
 it. Why? Simple ... we no longer want to block false positives. Again,
 there is more to this, but I will spare you all the details.
 
 But if you don't update virus signatures wouldn't that cause worms and
 malware propagation?
 
 I know I am digressing but I thought signature updation was critical to
 malware control...

Well of course, but with clamd I also ment using freshclam :) So we keep our 
signature database up-to-date as well.

 

 Right now we have 2500 happy users. Their local helpdesks helped them
 with
 getting an Outlook rule in place to automatically move tagged e-mails to
 a
 spam folder. Just like their gmail, hotmail or Yahoo account does at
 home.
 
 Wow, this is great. I am not surprised to hear this. ;)
 
 
 The environment we have is certainly not the easiest one, but we
 automated
 many things, leaving us with practically no work on it. All the updating
 of
 rulesets / blacklists / whitelists /whatever goes by itself. Downside of
 an
 environment like this is that you will need quite some knowledge of all
 the
 components and how they work together. But hey, I got it running at home
 as
 well (a bit simpler though) and didn't had a single spam mail in my
 mailbox
 the last 4 months. Sure, the ones I do get are getting tagged and moved
 to
 my spam folder automatically, which I do with maildrop (though procmail
 does the job nicely too). All in all it works like a charm.
 
 Using the X-foobar headers I suppose?

I just check the Subject header to see if it starts with *SPAM*. So 
yes, using the mail headers :)

 
 Well a long story, but maybe it is of use for someone else. As always,
 YMMV.
 
 Yes, very enlightening, many thanks.

Glad to hear.

Jorn

___

RE: Suggestions please for what POP or IMAP servers to use

2007-12-17 Thread Ted Mittelstaedt


 -Original Message-
 From: Matt LaPlante [mailto:[EMAIL PROTECTED]
 Sent: Saturday, December 15, 2007 2:18 PM
 To: Ted Mittelstaedt
 Cc: Andrew Falanga; Rob; FreeBSD Questions
 Subject: Re: Suggestions please for what POP or IMAP servers to use
 
 
  It's a chicken and egg problem.
 
  There's nothing wrong with writing an extremely strict standard.
  The issue is the implementation.
 
  If your server implementation is so strict that most clients have
  difficulty, then users will find something else and your standard
  will end up on the dustbin.
 
  It's better to start out with a strict standard and a forgiving
  server implementation, then as it falls into mainstream use, work
  with the client developers to correct their stuff.
 
 You've effectively described dovecot here. 

No, I haven't.

 Its codebase is perhaps
 designed to be very strict, however the same codebase also includes
 configurable 'workarounds' (enabled by default in many distros) for
 clients that are not up to spec.  They're trivial to toggle and well
 documented.


If you download and compile dovecot then is the default config template
that is shipped with it enable the workarounds?  No.  The excuse that
enabled by default in many distros is merely an excuse.  Nobody who
is serious about building a server for a lot of clients is going to
be using some precompiled version, they are going to compile from
source so that if a security hole is discovered they can patch it
immediately.

IF the switches DISABLED the lax behavior, and the defaults in the config
templates were to not have the switches triggered, then it would meet the
definition of a forgiving server implementation.  But it doesen't even
go that far.
 
 So, this meets both criteria that it will just work with clients
 now, and the clients themselves could theoretically (good luck with
 Outlook) fix their code in the future.

Outlook works just fine in IMAP mode with uw-imap, both regular Outlook
and Outlook Express.

 As far as I'm concerned, it's
 a fairly ideal environment,

It is good you spell out that this is your personal ideal.

 and I'm glad the developer has gone to the
 trouble to 1) stick to standards in the core code and 2) made a point
 of documenting and providing workarounds for buggy clients.


It is a lot of extra work to encapsulate all the alleged bugs
in separate code so you can provide switches for stick-up-their
-asses-admins to flip.  That is work that should have gone into
speeding up the code.  It is utterly wasted effort unless your goal
is to allow admins who have penis envy the ability to jerk people around
for their choice of e-mail clients.

It isn't the mailserver administrator's business if Joe Idiot User
who doesen't know any better chooses to use Outlook 97 as an IMAP
client, to deny Joe Idiot access to the mailserver.  The admin does
not need to be playing silly games like this, setting up his server
so that only some clients can work with it, others can't, then telling
people their software of choice has bugs and fuck you, don't use it.

Programmers jobs are to makes things work for users.  If Mickeysoft's
programmers cannot write a decent IMAP client, then if the developer
of an IMAP server can write around the problem, then he should do it
and embed the fix in the server code without calling it out in a
config switch.

The situation is absolutely no different with hardware drivers.  Take
a look at for example the comments in the ne2000  (ed) driver code, or
the DEC/Intel 21143 network card driver code (or man page)  There are
a number of very badly borked up hardware implementations of those
network chipsets.  Yet, do the driver authors of the ed or dc
driver make the admins flip switches in the driver to make the driver
work with their particular borked-up chipset implementation?  No.
They write the driver code to work with all implementations, even
the borked up ones.

The dovecot author is engaged in technopolitics.  It is a very bad
thing to do.  Whether the authors of bad IMAP client software deserve
this is beside the issue.  You need to understand that the ONLY lever
that the Open Source community has to keep the giants like Microsoft
paying some kind of attention to published standards so that everyone's
stuff can interoperate, is the moral superiority lever.  In other words,
the Open Source community simply does not engage in predatory,
circle-the-wagons, use-my-stuff-or-else behavior.  We have worked a
LONG time to get to this point.  As a result of this, when there IS
a problem between the commercial stuff - like for example Microsoft's
Networking, and the Open Source stuff - like for example, SAMBA, 
everyone always assumes that the problem is due to the commercial
software companies breaking things - either deliberately, in which
case they look like assholes or sharks, or by accident, in which case
they look like incompetents.

Microsoft tested stuff like IE7 against Apache during IE7 development,
and they made 

Re: /usr/local/rc.d/apache22 start doesn't start Apache

2007-12-17 Thread Yuri
Quoting Erik Cederstrand [EMAIL PROTECTED]:

 Ok, that was pretty easy:
 
 # diff rc.subr.orig rc.subr
 608a609
 echo $name not started. Set ${rcvar} to YES in 
 /etc./rc.conf or use '$name force'.
 
 
 
 which gives the output:
 
 # rc.d/ftpd start
 ftpd not started. Set ftpd_enable to YES in /etc./rc.conf or use 'ftpd 
 forcestart'.
 
 
 Does anyone want to pick this up, or should I file a PR?

I guess it's better to file a PR for this.
This way it's easy to see the progress on it.

Yuri
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: common filesystem for Linux and FreeBSD

2007-12-17 Thread Ivan Voras
Chad Perrin wrote:

 That being the case, there is some data I would like to keep available to
 both FreeBSD and Linux systems, in stable read/write access with
 reasonably high access performance for both (fast enough to achieve
 decent frame rates, for instance).  This seems to rule out both ext3 and
 UFS2.  What filesystem(s) meet(s) my needs in this case?

Since you didn't state anything about reliability, ext2 will maybe help
you :)



signature.asc
Description: OpenPGP digital signature


RE: Dependencies. (was: Yikes! FreeBSD samba-3.0.26a_2, 1 is forbidden: Remote Code Execution...)

2007-12-17 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Modulok
 Sent: Sunday, December 16, 2007 3:35 AM
 To: Tino Engel
 Cc: FreeBSD-Questions@freebsd.org
 Subject: Dependencies. (was: Yikes! FreeBSD samba-3.0.26a_2,1 is
 forbidden: Remote Code Execution...)
 

 
 So between now and eternity it is not possible for anyone to ever come
 up with a solution that is better? 
 

No, it is not possible.

If the purpose of God is to be worshipped by a self-aware individual
who has true freedom of choice to choose to worship Him, why did He
have to create an incredibly complex, interrelated planetary ecosystem,
in an extremely unusual solar system, merely to support a complex, failure
prone animal, with an oversized, delicate, and incredibly complex
brain, simply as a place for the human mind to be held in?

In all the millions upon millions of years of trying with different
evolutionary paths, Mother Nature has never been able to create a
thinking plant.

Some problems can only be solved with levels of complexity far
beyond human capacity to understand.

For you to ask that question shows without a doubt that it has
been too long since you have sat back, put on Pink Floyd,
taken a few bong hits, and contemplated the Universe.

Ted
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: OS bug in taskq

2007-12-17 Thread Robert Watson


On Sat, 15 Dec 2007, Elliot Finley wrote:

in the kernel and I'm still unable to obtain a crash dump.  Hopefully there 
is enough info in this email for a hacker to point me in the right direction 
to debug this.


If you're unable to obtain a crash dump, you should still be able to use 
interactive console-based debugging with DDB.  I find this is easiest to do 
with a serial console from an adjacent machine, so that I can copy-and-paste 
the results into an e-mail rather than hand-transcribe.  You can also use 
firewire consoles to the same effect, although I've never done that.


Once the system panics, it will drop into DDB.  I usually kick off debugging 
by doing a backtrace, bt, and showing the status of the current and then all 
processors show pcpu, show allpcpu.  Depending on the type of bug, I find 
output from ps, alltrace, show lockedvnods, show alllocks, show uma, 
show malloc quite useful.  The below panic is a NULL pointer dereference in 
the taskqueue code, but it's likely triggered by a bug in a consumer of the 
task queue service, rather than the task queue code itself.  That means we'll 
need to identify what consumer that is.  That information should become 
visible by looking at the arguments to the stack trace in DDB.  If not, we may 
need to work a little harder to get a dump, or set up serial or firewire kgdb 
to inspect the live running system with a full debugger.


On the swap / dump / etc thing.  In order to capture a saved kernel dump, you 
need sufficient room for the full dump on whatever partition /var/crash is on, 
and it must be writable.  Because dumps are normally written to swap 
partitions, running fsck before the dump is captured can lead to portions of 
the dump being overwritten if fsck uses a lot of memory (and hence overflows 
into swap).  As many systems have a separate /var and /var is often small, it 
could well be that you can successfully capture the dump by just booting to 
single-user, manually fscking /var, mounting /var, and running savecore in the 
/var/crash directory.  You can also configure additional partitions as purely 
dump partitions, rather than swap partitions.  One trick I've used previousy 
is to add a disk temporarily just for the purposes of dumping to, and manually 
doing a dumpon for a partition on that disk (but not a swapon).


Robert N M Watson
Computer Laboratory
University of Cambridge



dmesg:

Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993,
1994
   The Regents of the University of California. All rights
reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-RELEASE-p5 #1: Mon Nov 19 11:16:44 MST 2007
   [EMAIL PROTECTED]:/usr/obj/usr/src/sys/DDB-SMP
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2793.20-MHz 686-class CPU)
 Origin = GenuineIntel  Id = 0xf4a  Stepping = 10

Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
 Features2=0x641dSSE3,RSVD2,MON,DS_CPL,CNTX-ID,CX16,b14
 AMD Features=0x2010NX,LM
 AMD Features2=0x1LAHF
 Logical CPUs per core: 2
real memory  = 3220963328 (3071 MB)
avail memory = 3150856192 (3004 MB)
ACPI APIC Table: DELL   PE BKC  
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
cpu0 (BSP): APIC ID:  0
cpu1 (AP): APIC ID:  1
cpu2 (AP): APIC ID:  6
cpu3 (AP): APIC ID:  7
ioapic0: Changing APIC ID to 8
ioapic1: Changing APIC ID to 9
ioapic1: WARNING: intbase 32 != expected base 24
ioapic2: Changing APIC ID to 10
ioapic2: WARNING: intbase 64 != expected base 56
ioapic0 Version 2.0 irqs 0-23 on motherboard
ioapic1 Version 2.0 irqs 32-55 on motherboard
ioapic2 Version 2.0 irqs 64-87 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413,
RF5413)
acpi0: DELL PE BKC on motherboard
acpi0: Power Button (fixed)
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
cpu0: ACPI CPU on acpi0
cpu1: ACPI CPU on acpi0
cpu2: ACPI CPU on acpi0
cpu3: ACPI CPU on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
pcib1: ACPI PCI-PCI bridge at device 2.0 on pci0
pci1: ACPI PCI bus on pcib1
pcib2: ACPI PCI-PCI bridge at device 0.0 on pci1
pci2: ACPI PCI bus on pcib2
amr0: LSILogic MegaRAID 1.53 mem
0xd80f-0xd80f,0xdfdc-0xdfdf irq 46 at device 14.0 on
pci2
amr0: delete logical drives supported by controller
amr0: LSILogic PERC 4e/Di Firmware 522A, BIOS H430, 256MB RAM
pcib3: ACPI PCI-PCI bridge at device 0.2 on pci1
pci3: ACPI PCI bus on pcib3
pcib4: ACPI PCI-PCI bridge at device 4.0 on pci0
pci4: ACPI PCI bus on pcib4
pcib5: ACPI PCI-PCI bridge at device 5.0 on pci0
pci5: ACPI PCI bus on pcib5
pcib6: ACPI PCI-PCI bridge at device 0.0 on pci5
pci6: ACPI PCI bus on pcib6
em0: Intel(R) PRO/1000 Network Connection Version - 6.2.9 port

Re: Dependencies. (was: Yikes! FreeBSD samba-3.0.26a_2, 1 is forbidden: Remote Code Execution...)

2007-12-17 Thread Heiko Wundram (Beenic)
Am Montag, 17. Dezember 2007 11:29:01 schrieb Ted Mittelstaedt:
 For you to ask that question shows without a doubt that it has
 been too long since you have sat back, put on Pink Floyd,
 taken a few bong hits, and contemplated the Universe.

Thanks for cheering up my workday! ;-)

-- 
Heiko Wundram
Product  Application Development
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cannot get Script to Run Via Crontab

2007-12-17 Thread Robert Huff
Giorgos Keramidas writes:

   The lines from my script that are causing the problem are:
  
  my $scomd = /usr/local/bin/ps2pdf -dPDFSETTINGS=/prepress 
 -dProcessColorModel=/DeviceGray -dAutoRotatePages=/PageByPage 
 -dDownsampleMonoImages=true -dMonoImageDownsampleType=/Average 
 -dMonoImageDownsampleThreshold=1.5 -dMonoImageResolution=600 
 .$inpath.$cur_ps_files[0]. .$outpath.$pdffilename;
  
   The cron message to mail/root ends with:
  
  exec: ps2pdf12: not found
  
   I am assuming that cron cannot find a path or a config file for
   ghostscript, but I don't have any idea how to fix this problem.
  
  Yes.  That's what is happenning.  The default PATH of cron jobs doesn't
  include `/usr/local/bin', but you have lots of options:
  
1) Add it to the crontab file
  
2) Modify the default path in your Perl script:

Allow me to recommend the second, as it will not disturb other
cron programs that may be expecting the default path.


Robert Huff

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cannot get Script to Run Via Crontab

2007-12-17 Thread Giorgos Keramidas
On 2007-12-17 07:19, Robert Huff [EMAIL PROTECTED] wrote:
Giorgos Keramidas writes:
 The lines from my script that are causing the problem are:
[...]
 The cron message to mail/root ends with:

exec: ps2pdf12: not found

 I am assuming that cron cannot find a path or a config file for
 ghostscript, but I don't have any idea how to fix this problem.
  
  Yes.  That's what is happenning.  The default PATH of cron jobs doesn't
  include `/usr/local/bin', but you have lots of options:
  
1) Add it to the crontab file
  
2) Modify the default path in your Perl script:
 
 Allow me to recommend the second, as it will not disturb other cron
 programs that may be expecting the default path.

That is a very good point :)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


How to know total number of bytes of a directory

2007-12-17 Thread DSA - JCR
Hi all

I would like to know the total number of bytes of a directory and its
related subdirs, occupied by the files inside it. I haven't found any
command for knowning it.


Thanks in advance!!

Sincerely

Juan Coruña
Desarrollo de Software Atlantico




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: How to know total number of bytes of a directory

2007-12-17 Thread Barry Byrne
  -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of DSA - JCR
 Sent: 17 December 2007 13:38

 Hi all
 
 I would like to know the total number of bytes of a directory and its
 related subdirs, occupied by the files inside it. I haven't found any
 command for knowning it.

man du

 - barry

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to know total number of bytes of a directory

2007-12-17 Thread Andy Greenwood

DSA - JCR wrote:

Hi all

I would like to know the total number of bytes of a directory and its
related subdirs, occupied by the files inside it. I haven't found any
command for knowning it.
  


# du -s /etc
17008   /etc

You need read privs to all the subdirectories, otherwise you'll get 
permission errors and it'll skip those. Note that this displays usage in 
512-byte blocks, not bytes, but you should be able to figure it out from 
there.




Thanks in advance!!

Sincerely

Juan Coruña
Desarrollo de Software Atlantico




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
  


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Bash script to find out the summary of user memory usage [not working]

2007-12-17 Thread Patrick Dung
I have correction with the script but still doesn't work:

#!/usr/local/bin/bash
for user in `ps -A -o user | sort | uniq | tail +2`
 do
echo user: $user

   ps aux -U $user | tail +2 | while read line
   do

mem=`echo $line | awk {'print $4'}`
echo mem: $mem
TMPSUMMEM=`awk -v x=$mem -v y=$TMPSUMMEM 'BEGIN{printf
%.2f\n,x+y}'`
echo summem: $TMPSUMMEM
   done
echo finalsummem: $SUMMEM
export SUMMEM=$TMPSUMMEM
 done

echo finalsummem: $SUMMEM

 #!/usr/local/bin/bash
 
 for user in `ps -A -o user | sort | uniq | tail +2`
  do
 echo user: $user
 
ps aux -U $user | tail +2 | while read line
do
 
 mem=`echo $line | awk {'print $4'}`
 echo mem: $mem
 TMPSUMMEM=`awk -v x=$mem -v y=$TMPSUMMEM 'BEGIN{printf
 %.2f\n,x+y}'`
 echo summem: $TMPSUMMEM
done
 echo finalsummem: $TMPSUMMEM


--- Patrick Dung [EMAIL PROTECTED] wrote:

 Hello, any idea about why below script is not working?
 The final sum is empty..
 
 #!/usr/local/bin/bash
 
 for user in `ps -A -o user | sort | uniq | tail +2`
  do
 echo user: $user
 
ps aux -U $user | tail +2 | while read line
do
 
 mem=`echo $line | awk {'print $4'}`
 echo mem: $mem
 TMPSUMMEM=`awk -v x=$mem -v y=$TMPSUMMEM 'BEGIN{printf
 %.2f\n,x+y}'`
 echo summem: $TMPSUMMEM
done
 echo finalsummem: $SUMMEM
  [EMAIL PROTECTED]
 
 
  


 Looking for last minute shopping deals?  
 Find them fast with Yahoo! Search. 

http://tools.search.yahoo.com/newsearch/category.php?category=shopping
 



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to know total number of bytes of a directory

2007-12-17 Thread Ivan Voras
Andy Greenwood wrote:
 DSA - JCR wrote:
 Hi all

 I would like to know the total number of bytes of a directory and its
 related subdirs, occupied by the files inside it. I haven't found any
 command for knowning it.
   
 
 # du -s /etc
 17008   /etc
 
 You need read privs to all the subdirectories, otherwise you'll get
 permission errors and it'll skip those. Note that this displays usage in
 512-byte blocks, not bytes, but you should be able to figure it out from
 there.

Just add -h:

# du -sh /etc
2.1M/etc



signature.asc
Description: OpenPGP digital signature


Re: How to know total number of bytes of a directory

2007-12-17 Thread DAve
Andy Greenwood wrote:
 DSA - JCR wrote:
 Hi all

 I would like to know the total number of bytes of a directory and its
 related subdirs, occupied by the files inside it. I haven't found any
 command for knowning it.
   
 
 # du -s /etc
 17008   /etc
 
 You need read privs to all the subdirectories, otherwise you'll get
 permission errors and it'll skip those. Note that this displays usage in
 512-byte blocks, not bytes, but you should be able to figure it out from
 there.

-h provides human readable output.
du -sh /etc
3.8M/etc

DAve

-- 
Google finally, after 7 years, provided a logo for
veterans. Thank you Google. What to do with my signature now?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to know total number of bytes of a directory

2007-12-17 Thread Andy Greenwood

DAve wrote:

Andy Greenwood wrote:
  

DSA - JCR wrote:


Hi all

I would like to know the total number of bytes of a directory and its
related subdirs, occupied by the files inside it. I haven't found any
command for knowning it.
  
  

# du -s /etc
17008   /etc

You need read privs to all the subdirectories, otherwise you'll get
permission errors and it'll skip those. Note that this displays usage in
512-byte blocks, not bytes, but you should be able to figure it out from
there.



-h provides human readable output.
du -sh /etc
3.8M/etc

DAve

  


Ahh, I had forgotten about -h. I ususally use du -s * | sort -rn  | head 
to find the biggest files/directories in a given directory, and if you 
use -h, you'll get stuff out of order, since 3.8M will come after 4.2K 
in a reversed numerical sort.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem With PoEdit

2007-12-17 Thread Victor Subervi
I've never used X before...grown to love the command line ;) I didn't have X
cranked up...don't even know how to do that. I just entered poedit at the
command line and assumed X would kick in. Should I start X? How?
TIA,
Victor

On Dec 14, 2007 3:50 PM, Lowell Gilbert 
[EMAIL PROTECTED] wrote:

 Victor Subervi [EMAIL PROTECTED] writes:

  Hi;
  I installed poedit from the port on 5.5. I didn't have X11 before, so it
  took a very_long_time. Once installed, I tried to fire it up:
  # poedit
  Error: Unable to initialize gtk, is DISPLAY set properly?
  What do?

 I don't know the program, but it looks like it only runs inside of X,
 so you need to have X actually running when you start it.  Was this
 the case?  If so, did you check what DISPLAY was set to?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


backuppc port?

2007-12-17 Thread Dave

Hello,
   I've been googling and i've read that a FreeBSD port of backuppc is 
either in production or near completion or actually done. I haven't been 
able to find out anything else. Does anyone know anything about this port?

Thanks.
Dave.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mounted cd and tray locking

2007-12-17 Thread Nikos Vassiliadis
The PR I sent:
http://www.freebsd.org/cgi/query-pr.cgi?pr=118779
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: common filesystem for Linux and FreeBSD

2007-12-17 Thread David Robillard
 That being the case, there is some data I would like to keep available to
 both FreeBSD and Linux systems, in stable read/write access with
 reasonably high access performance for both (fast enough to achieve
 decent frame rates, for instance).  This seems to rule out both ext3 and
 UFS2.  What filesystem(s) meet(s) my needs in this case?

NFS would probably do it. You can use either OS as the NFS server and
use which ever file system you desire.

David
-- 
David Robillard
UNIX systems administrator  Oracle DBA
CISSP, RHCE  Sun Certified Security Administrator
Montreal: +1 514 966 0122
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem With PoEdit

2007-12-17 Thread Lowell Gilbert
Victor Subervi [EMAIL PROTECTED] writes:

 I've never used X before...grown to love the command line ;) I didn't have X
 cranked up...don't even know how to do that. I just entered poedit at the
 command line and assumed X would kick in. Should I start X? How?

See the FreeBSD Handbook section titled The X Window System for
details, but you can probably type xinit (to start X) and then type
poedit in a terminal window that will (probably) be started for you.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Bash script to find out the summary of user memory usage [not working]

2007-12-17 Thread Giorgos Keramidas
On 2007-12-17 06:00, Patrick Dung [EMAIL PROTECTED] wrote:
 I have correction with the script but still doesn't work:

 #!/usr/local/bin/bash
 for user in `ps -A -o user | sort | uniq | tail +2`
  do
 echo user: $user

ps aux -U $user | tail +2 | while read line
do

 mem=`echo $line | awk {'print $4'}`
 echo mem: $mem
 TMPSUMMEM=`awk -v x=$mem -v y=$TMPSUMMEM 'BEGIN{printf
 %.2f\n,x+y}'`
 echo summem: $TMPSUMMEM
done
 echo finalsummem: $SUMMEM
 export SUMMEM=$TMPSUMMEM
  done

 echo finalsummem: $SUMMEM

There are *many* race conditions in that script.  For example, there's
no guarantee that once you get a snapshot of the ps -A -o user output,
then the same users will be listed in the loop you are running for each
username.

The script is also a bit 'sub-optimal' because it calls ps(1) and parses
its output many times (at least as many times as there are users).  A
much better way to `design' something like this would be to keep a hash
of the usernames, and keep incrementing the hash entry for each user as
you hit ps(1) output lines.

I'm not going to even bother writing a script to use a hash in bash(1),
because there are much better languages to work with hashes,
dictionaries or even simple arrays.

Here's for example a Python script which does what I described:

 1  #!/usr/bin/env python
 2
 3  import os
 4  import re
 5  import sys
 6
 7  try:
 8  input = os.popen('ps xauwww', 'r')
 9  except:
10  print Cannot open pipe for ps(1) output
11  sys.exit(1)
12
13  # Start with an empty dictionary.
14  stats = {}
15
16  # Regexp to strip the ps(1) output header.
17  header = re.compile('USER')
18
19  for line in input.readlines():
20  if header.match(line):
21  continue
22  fields = line.split()
23  if not fields or len(fields)  4:
24  continue
25
26  (username, mem) = (fields[0], float(fields[3]))
27  value = None
28  try:
29  value = stats[username]
30  except KeyError:
31  pass
32
33  if not value:
34  stats[username] = 0.0
35  stats[username] += mem
36
37  # Print all the stats we have collected so far.
38  keys = stats.keys()
39  if len(keys)  0:
40  total = 0.0
41  print %-15s %5s % ('USERNAME', 'MEM%')
42  for k in stats.keys():
43  print %-15s %5.2f % (k, stats[k])
44  total += stats[k]
45  # Finally print a grand total of all users.
46  print %-15s %5.2f % ('TOTAL', total)

It's not the shortest Python script one could write to do what you
describe, but I've gone for readability rather than speed or
conciseness.

Running this script should produce:

$ ./foo.py
USERNAME MEM%
_pflogd  0.10
daemon   0.00
bind 1.10
_dhcp0.10
keramida38.60
smmsp0.10
root10.10
build0.00
TOTAL   50.10
$

PS: Yes, you could probably do the same in bash, with sed, awk and a bit
of superglue, but I prefer Perl and/or Python for anything which
involves something a bit more involved than simple string substitution
these days...

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: (postfix) SPAM filter?

2007-12-17 Thread Eric Crist

On Dec 17, 2007, at 2:36 AM, Jorn Argelo wrote:




On Mon, 17 Dec 2007 00:20:50 +0530, Girish Venkatachalam [EMAIL PROTECTED] 
 wrote:

On 14:48:35 Dec 15, Jorn Argelo wrote:
Greylisting only works so-so nowadays. There was a couple of  
months it

was
very effective, but that is long gone. Spammers aren't stupid, and  
they
follow the development of anti-spam techniques as much as e-mail  
admins

do.
Greylisting is a start, but from my experience it is not nearly  
enough.




I have heard this said elsewhere too.


Yes don't rely solely on greylisting unless you're a lucky guy and  
don't get a lot of spam.



I hear a lot of people saying that greylisting doesn't work, when I  
have actual numbers for my network proving it does.  These numbers are  
from the first week of May 2007 to today:


Greylisted/Rejected Messages:   187560
Spam Tagged Messages: 3806
Virus Tagged Messages:   0
Bounced Messages:7

Total Messages Sent:   761
Total Messages Delivered:25345

So, out of 25,345 messages that have been delivered to mailboxes,  
3,806 of them were tagged as Spam by Spamassassin.  Guessing at false  
positives based on what I see in my inbox (I'm the heaviest mail user  
on my network), about 10% are probably false positives.


25345/187560 = .1351 = 13.51% of email gets past greylisting.
((3806*.90)/25345) = .1351 = 13.51% of that email is considered Spam,  
which is probably correct.


Based on those numbers, 162,215 messages were probably Spam.  I'm  
guess it's Spam, as none of our users have complained that there is  
legitimate email failing to get through to their inbox.  That would be  
~88.8% of email hitting my systems is Spam.


I would consider greylisting in my case VERY successful.  What this  
doesn't take into consideration, however, is that I truly hate the  
delay of receiving a message from someone that isn't in the database,  
and as such, we're working on improving our SA rulesets and getting  
rid of greylisting.


If my math is wrong here, please feel free to correct me, I'm by no  
means any good at it. ;)


-
Eric F Crist
Secure Computing Networks


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Installation CD

2007-12-17 Thread Jerry McAllister
On Fri, Dec 14, 2007 at 12:41:50PM -0500, Zeeshan Ahmad wrote:

 Hi,
 
 I want to ask which iso image i have to download from this link:
 
 ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/ISO-IMAGES/6.2/
 
 that will install FreeBSD from CD ROM direclty because there are bootonly
 iso, disc1 and disc2 iso's as well. So which iso i have to download and then
 i only need to burn that iso on CD and i can start installation and no other
 extra thing i have to do. Any suggestion?

Depends on just what you need to do.
But, in general, burn disc-1.You can install from that including some
of the more common ports or use that CD to install over the net.  DIsc-1 also
has the fixit shell.

You need disc-2 only if you want to install ports that are not on disc-1.  
The boot-only disc will allow you to install only over the net.

jerry

 
 Regards,
 
 Zeeshan
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Suggestions please for what POP or IMAP servers to use

2007-12-17 Thread Matt LaPlante
On Dec 17, 2007 4:03 AM, Ted Mittelstaedt [EMAIL PROTECTED] wrote:


  -Original Message-
  From: Matt LaPlante [mailto:[EMAIL PROTECTED]
  Sent: Saturday, December 15, 2007 2:18 PM
  To: Ted Mittelstaedt
  Cc: Andrew Falanga; Rob; FreeBSD Questions
  Subject: Re: Suggestions please for what POP or IMAP servers to use
 
  
   It's a chicken and egg problem.
  
   There's nothing wrong with writing an extremely strict standard.
   The issue is the implementation.
  
   If your server implementation is so strict that most clients have
   difficulty, then users will find something else and your standard
   will end up on the dustbin.
  
   It's better to start out with a strict standard and a forgiving
   server implementation, then as it falls into mainstream use, work
   with the client developers to correct their stuff.
 
  You've effectively described dovecot here.

 No, I haven't.

  Its codebase is perhaps
  designed to be very strict, however the same codebase also includes
  configurable 'workarounds' (enabled by default in many distros) for
  clients that are not up to spec.  They're trivial to toggle and well
  documented.
 

 If you download and compile dovecot then is the default config template
 that is shipped with it enable the workarounds?  No.  The excuse that
 enabled by default in many distros is merely an excuse.  Nobody who
 is serious about building a server for a lot of clients is going to
 be using some precompiled version, they are going to compile from
 source so that if a security hole is discovered they can patch it
 immediately.

They're also going to actually *look* at the configuration and tailor
it.  What kind of fool goes to the trouble of building his own
software without also customizing the configuration to his
specifications?


 IF the switches DISABLED the lax behavior, and the defaults in the config
 templates were to not have the switches triggered, then it would meet the
 definition of a forgiving server implementation.  But it doesen't even
 go that far.

  So, this meets both criteria that it will just work with clients
  now, and the clients themselves could theoretically (good luck with
  Outlook) fix their code in the future.

 Outlook works just fine in IMAP mode with uw-imap, both regular Outlook
 and Outlook Express.


I never said it doesn't.  Dovecot works fine with Outlook and Outlook
Express too (both IMAP and POP3).  Imagine that, IMAP servers that
successfully service IMAP clients.

  As far as I'm concerned, it's
  a fairly ideal environment,

 It is good you spell out that this is your personal ideal.

  and I'm glad the developer has gone to the
  trouble to 1) stick to standards in the core code and 2) made a point
  of documenting and providing workarounds for buggy clients.
 

 It is a lot of extra work to encapsulate all the alleged bugs
 in separate code so you can provide switches for stick-up-their
 -asses-admins to flip.  That is work that should have gone into
 speeding up the code.  It is utterly wasted effort unless your goal
 is to allow admins who have penis envy the ability to jerk people around
 for their choice of e-mail clients.

 It isn't the mailserver administrator's business if Joe Idiot User
 who doesen't know any better chooses to use Outlook 97 as an IMAP
 client, to deny Joe Idiot access to the mailserver.  The admin does
 not need to be playing silly games like this, setting up his server
 so that only some clients can work with it, others can't, then telling
 people their software of choice has bugs and fuck you, don't use it.

 Programmers jobs are to makes things work for users.  If Mickeysoft's
 programmers cannot write a decent IMAP client, then if the developer
 of an IMAP server can write around the problem, then he should do it
 and embed the fix in the server code without calling it out in a
 config switch.

 The situation is absolutely no different with hardware drivers.  Take
 a look at for example the comments in the ne2000  (ed) driver code, or
 the DEC/Intel 21143 network card driver code (or man page)  There are
 a number of very badly borked up hardware implementations of those
 network chipsets.  Yet, do the driver authors of the ed or dc
 driver make the admins flip switches in the driver to make the driver
 work with their particular borked-up chipset implementation?  No.
 They write the driver code to work with all implementations, even
 the borked up ones.

 The dovecot author is engaged in technopolitics.  It is a very bad
 thing to do.  Whether the authors of bad IMAP client software deserve
 this is beside the issue.  You need to understand that the ONLY lever
 that the Open Source community has to keep the giants like Microsoft
 paying some kind of attention to published standards so that everyone's
 stuff can interoperate, is the moral superiority lever.  In other words,
 the Open Source community simply does not engage in predatory,
 circle-the-wagons, use-my-stuff-or-else behavior.  We have 

Re: How to know total number of bytes of a directory

2007-12-17 Thread Jerry McAllister
On Mon, Dec 17, 2007 at 09:09:36AM -0500, DAve wrote:

 Andy Greenwood wrote:
  DSA - JCR wrote:
  Hi all
 
  I would like to know the total number of bytes of a directory and its
  related subdirs, occupied by the files inside it. I haven't found any
  command for knowning it.

  
  # du -s /etc
  17008   /etc
  
  You need read privs to all the subdirectories, otherwise you'll get
  permission errors and it'll skip those. Note that this displays usage in
  512-byte blocks, not bytes, but you should be able to figure it out from
  there.
 
 -h provides human readable output.
 du -sh /etc
 3.8M/etc

True, although for quickly scanning a long list of files and directories, 
it is more human readable to make them all have the same multiplyer rather
than having to read  the trailing m, k, g  etc.
So,   I often use   'du -sk *' which makes eyeballing a list easier.

But, since the OP specifically said 'a directory' then -h is probably
the best idea, unless the OP wants the exact number of bytes.

jerry


 
 DAve
 
 -- 
 Google finally, after 7 years, provided a logo for
 veterans. Thank you Google. What to do with my signature now?
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Jail question

2007-12-17 Thread jhall
Ladies and Gentlemen,

I want to check the understanding of jails.

My understanding is a jail uses the existing kernel configuration and
cannot use its own kernel configuration.

Is this correct?

Thanks,



Jay

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Ethernet Card Times out on Transfer of Large Files

2007-12-17 Thread Daniel Bye
On Mon, Dec 17, 2007 at 01:07:57AM -0600, W. D. wrote:
 Hello Gentlemen:
 
 The NVidia Ethernet card, nve0, seems to burp on transfers
 of large files.  After browsing the Web, apparently this
 is a fairly common problem:
 
 http://www.google.com/search?q=nve0+device+timeout+FreeBSD
 
 From what I can tell, this seems to be the best, most recent
 fix:
 http://www.f.csce.kyushu-u.ac.jp/~shigeaki/software/freebsd-nfe.html
 
 Could anyone please point me to some instructions on 
 how to compile, install, and load this driver?
 
 When running make install, this error shows up:
 
 /usr/share/mk/bsd.kmod.mk, line 12 can't find kernel source tree
 
 Thank you so much for any light you can shed on this
 problem.

Install the source, do a buildworld/buildkernel and try again. There are
detailed instructions on both tasks in the handbook.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html

Dan

-- 
Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgpJYYELRnM8y.pgp
Description: PGP signature


ipfw rules for all interfaces not working ...

2007-12-17 Thread Gore Jarold

My main goal is to lock down my ipfw rules so that
when I run nmap, all I see is:

Interesting ports on 192.168.0.10:
Not shown: 1677 closed ports
PORTSTATE SERVICE
22/tcp  open  ssh
MAC Address: 00:12:D8:A2:23:C2

Nmap finished: 1 IP address (1 host up) scanned in
9.791 seconds

So that means I will need to explicitly block all
ports except for the ones I have real servers running
on.

That's easy.

The problem is, this is a laptop and so sometimes iwi0
exists and sometimes it doesn't, and sometimes xl0
exists and sometimes it doesn't ... and that is why my
ipfw rules look like this:

00010 00 allow ip from any to any via lo0
00020 00 deny ip from any to 127.0.0.0/8
01000 18134 10505749 allow tcp from any to any
established
04000  149884280 allow icmp from any to any
0400127 1728 allow tcp from any to any
dst-port 22 setup
04008 00 deny log logamount 100 ip from
any to any recv all
65535 15202  2569754 allow ip from any to any

See - in rule 04008, I say to deny ip from any to any
recv all - so that no matter what interface(s) I have
up, and no matter what their addresses are, this one
deny rule will apply to them.

THe problem is, it doesn't work.

As you can see, the counter on that rule is zero, and
when I nmap the system I can see things like samba and
http, etc., even though the only port I am allowing
through is TCP 22.

Why is this ?


 

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apparently, csh programming is considered harmful.

2007-12-17 Thread Peter Schuller
 other BSDs for that matter. It being GPL guarantees that quite apart
 from it general suckiness.

Can someone please explain why bash sucks?

Everyone keep's saying this but I have never heard anyone explain why, other 
than the GPL issue. I really want to know.

(This is not because I'm a bash fan. My personal favorite happens to be zsh.)

 I tried replacing /bin/bash with /bin/ksh on a Linux system and it
 almost completely broke it. Suggests the Linux folks can't write
 boot scripts without bashisms.

If this is a poke at the use of #!/bin/sh when the script actually requires 
bash, I 100% agree.

However, if your intent (and the intent of Chuck Robey in that earlier) post 
is to imply that it's bad programming practice to write anything than POSIX 
compatible scripts, then I have to ask again - why?

This is kind of a pet peeve of mine, so here goes somewhat of a rant. Please 
enlighten me as to why I am wrong:

I don't understand why everyone insists on POSIX compliance for portability 
with shell scripting. The POSIX common demoniator seems to suck. Seriously. 

One keeps seeing things like:

   if [ x$var = xvalue ]

When the intent is:

   if [ $var = value ]

Because there is presumably some wonky script out there that breaks on the 
former (or perhaps its POSIX, dunno). I have recently began to appreciate 
that all this madness that would normally be considered unforgivable code 
obfuscation in anything but shell scripting, is all an attempt to somehow be 
portable.

In any number of situations I would consider it much preferable to juse choose 
one particular shell and stick to it, rather than having to do battle with 
all these minor incompatibilities. Many major shells are very portable to 
begin with, and in many situation you *REALLY* don't care about some exotic 
Unix platform that 10 people in the world run, but where bash/zsh/whatever 
doesn't.

Another example of the madness is:

   http://www.netbsd.org/docs/pkgsrc/makefile.html

Check out section 12.3.3. Can anyone claim that it is sensible for it to be 
this fricking difficult *to print the value of a variable*?

Although that last bit has to do with more than the choice of a shell, it 
highlights perfectly the type of trouble you run into when you try to be 
portable with the least common denominator.

-- 
/ Peter Schuller

PGP userID: 0xE9758B7D or 'Peter Schuller [EMAIL PROTECTED]'
Key retrieval: Send an E-Mail to [EMAIL PROTECTED]
E-Mail: [EMAIL PROTECTED] Web: http://www.scode.org



signature.asc
Description: This is a digitally signed message part.


Re: Jail question

2007-12-17 Thread Peter Schuller
 I want to check the understanding of jails.

 My understanding is a jail uses the existing kernel configuration and
 cannot use its own kernel configuration.

 Is this correct?

Yes. The jail is being executed by the same kernel as the host system. The 
jail just has restricted access to certain system calls, which creates the 
sandbox.

-- 
/ Peter Schuller

PGP userID: 0xE9758B7D or 'Peter Schuller [EMAIL PROTECTED]'
Key retrieval: Send an E-Mail to [EMAIL PROTECTED]
E-Mail: [EMAIL PROTECTED] Web: http://www.scode.org



signature.asc
Description: This is a digitally signed message part.


cvsup-mirror: clients never get past 'running' (server 100% idle)

2007-12-17 Thread Hugo Silva

Hello,

I've set up a local cvsup mirror for a freebsd server farm but I'm 
having some trouble making it work.


I went with all the defaults on the install, only skipping gnats www and 
mail.


The initial update went well, took awhile but I have all files in place now.

However, when connecting to get src or ports, it'll never get past

/usr/src# make update
--
 Running /usr/bin/csup
--
Parsing supfile /root/cvsup/standard-supfile
Connecting to 172.16.100.22
Connected to 172.16.100.22
Server software version: SNAP_16_1h
Negotiating file attribute support
Exchanging collection information
Establishing multiplexed-mode data connection
Running


73163   3002  1  440  7592K  3812K select 0   0:02  0.00% cvsupd

It just stays idle forever...

3002 73163  0.0  0.2  7592  3812  ??  IJ7:07PM   0:01.58 
/usr/local/sbin/cvsupd -e -C 10 -l @daemon -b /usr/local/etc/cvsup -s 
sup.client




FreeBSD 7.0-BETA4/amd64, cvsupd is running inside a jail, on ZFS.

What am I missing ?

Regards,

Hugo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: csh programing book

2007-12-17 Thread Zbigniew Komarnicki
On Saturday 15 of December 2007 21:36:13 [EMAIL PROTECTED] wrote:
 http://www.grymoire.com/Unix/Csh.html ?

 There are some other under index.html

Thank you all for your help.

I want to learn only some stuff with csh. I know how to that in sh or bash but 
I don't know how in csh, so I simply ask you for help to find some good 
materials on csh to learn from it. I used by 3 years Debian, but now I use 
every day FreeBSD at home and work.

Thank you again,
Zbigniew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apparently, csh programming is considered harmful.

2007-12-17 Thread Frank Shute
On Mon, Dec 17, 2007 at 07:33:22PM +0100, Peter Schuller wrote:

  other BSDs for that matter. It being GPL guarantees that quite apart
  from it general suckiness.
 
 Can someone please explain why bash sucks?
 
 Everyone keep's saying this but I have never heard anyone explain why, other 
 than the GPL issue. I really want to know.
 
 (This is not because I'm a bash fan. My personal favorite happens to be zsh.)
 

Disclaimer: I haven't used bash for 5 years or so, so things might
have improved.

It used to suck then because it's vi-mode wasn't as good as other
shells e.g pdksh, as someone else in this thread mentioned.

It also had bugs in how it handled terminal escapes.

The tragic thing was that these went on for years without a fix.

It was also tremendously bloated at the time.

Basically though, I bash bash out of habit :) although I seriously
think that there are better shells out there and more people should
use them. People seem to use bash and never try anything else.

  I tried replacing /bin/bash with /bin/ksh on a Linux system and it
  almost completely broke it. Suggests the Linux folks can't write
  boot scripts without bashisms.
 
 If this is a poke at the use of #!/bin/sh when the script actually requires 
 bash, I 100% agree.

Yeah, it was :) The scripts are lies. They say they use /bin/sh but
actually use bash extensions. They only work because /bin/sh is a
symlink to /bin/bash on Linux.

 However, if your intent (and the intent of Chuck Robey in that earlier) post 
 is to imply that it's bad programming practice to write anything than POSIX 
 compatible scripts, then I have to ask again - why?

Every unix machine has sh, so if you write your scripts using that,
you can transport your scripts between machines with a good idea that
they will work without having your shell of choice installed with
it's oddities  extensions. This might be important where you've got
a machine that you can't install your shell of choice, for whatever
reason.

It might be a rare circumstance but it's for similar reasons I also
write all my letters  documents in LaTeX. (No lock-in too).

 
 This is kind of a pet peeve of mine, so here goes somewhat of a rant. Please 
 enlighten me as to why I am wrong:
 
 I don't understand why everyone insists on POSIX compliance for portability 
 with shell scripting. The POSIX common demoniator seems to suck. Seriously. 

[snip]

It's just for portability that I write to sh. If I'm doing anything
vaguely complicated then I use perl instead, which is also pretty
portable.

And of course Bash primarily sucks because it's GPL which also sucks ;)

My basic position: the license is too complicated and open to
(mis)interpretation and it's not as free as BSD.

Regards,

-- 

 Frank 


 Contact info: http://www.esperance-linux.co.uk/misc/contact.html 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pdksh vs. mksh info [was: Re: Apparently, csh programming is considered harmful.]

2007-12-17 Thread Frank Shute
On Sun, Dec 16, 2007 at 07:21:23PM -0500, Tom McLaughlin wrote:

 On Sat, 2007-12-15 at 04:13 +0200, Giorgos Keramidas wrote: 
  
  Hi Frank,
  
  Now that you mention pdksh, have you tried mksh (in Ports too)?
  
  I've installed it and successfully run moderately large ksh scripts
  (like the webrev(1) utility of OpenSolaris), and it is about an order of
  magnitude smaller than pdksh here:
  
  % [EMAIL PROTECTED]:/usr/local/bin$ ls -ld mksh bash ksh
  % -rwxr-xr-x  1 root  wheel  -  684699 Dec  9 19:51 bash
  % -r-xr-xr-x  1 root  wheel  - 2390645 Aug 31 17:07 ksh
  % -r-xr-xr-x  1 root  wheel  -  236202 Dec  9 18:34 mksh
  % [EMAIL PROTECTED]:/usr/local/bin$ ldd mksh bash ksh
  % mksh:
  % libc.so.7 = /lib/libc.so.7 (0x280ae000)
  % bash:
  % libncurses.so.7 = /lib/libncurses.so.7 (0x28101000)
  % libintl.so.8 = /usr/local/lib/libintl.so.8 (0x28144000)
  % libiconv.so.3 = /usr/local/lib/libiconv.so.3 (0x28156000)
  % libc.so.7 = /lib/libc.so.7 (0x2824b000)
  % ldd: ksh: not a dynamic executable
  % [EMAIL PROTECTED]:/usr/local/bin$
  
 
 I've maintained a port of OpenBSD's pdksh for some time but I've never
 committed it.  Think of pdksh but still actively maintained.  
 
 http://people.freebsd.org/~tmclaugh/files/openksh/openksh-4.2.shar
 
 [EMAIL PROTECTED] tom]$ ls -al /usr/local/bin/ksh  
 -r-xr-xr-x  1 root  wheel  192032 Dec 16 18:22 /usr/local/bin/ksh*
 
 tom

I always assumed that the pdksh in ports had the OpenBSD patches in
it.

I've downloaded the shell archive and I'll build it.

Any chance that you will commit this in the future? I'd almost
certainly use it.

Thanks for your work  time, it's much appreciated!

Regards,

-- 

 Frank 


 Contact info: http://www.esperance-linux.co.uk/misc/contact.html 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Where is the next uid from adduser pulled from?

2007-12-17 Thread n j
 Tried looking for the adduser program, but could not find adduser.c

Just to point out that adduser is a shell script, as witnessed by:

# file /usr/sbin/adduser
/usr/sbin/adduser: Bourne shell script text executable

and the response to the original question - how does the system
generate new UIDs - is best answered by examining the get_nextuid ()
function inside adduser script.

Regards,
-- 
Nino
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: csh programing book

2007-12-17 Thread Chuck Robey

Chad Perrin wrote:

On Sun, Dec 16, 2007 at 02:57:12PM -0500, Chuck Robey wrote:
Actually, I like ksh better, if you are really going all out for a 
programming shell, but if you're really after a scripting language, why 
restrict yourself to shells?  things like Python  Ruby knock hell out 
of both ksh and bash.  That's hardly even arguable.  Too bad there isn't 
a good friendly shell-like mode to Python.  Ruby would be out there, you 
couldn't even think about using a OO based tool for a user shell, those 
things need to be thought out, and that's the antithesis of being a 
friendly shell.


Considering I use Ruby's interactive interpreter, irb, all the time -- I
don't really agree that you couldn't make a good user shell from Ruby.  A
couple of tweaks in the way irb works would make for one of the best user
shells I'd ever seen.  All that's missing is an easier way to execute
external programs, as far as I can tell.



Well, I was only giving my personal opinion.  I've never used irb, but 
it seems to me that using any sort of OO tool as a shell would be cruel 
and unusual, but I guess it takes all kinds, and I certainly wouldn't 
prevent you from enjoying yourself, same as I'd expect from you to mine.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apparently, csh programming is considered harmful.

2007-12-17 Thread Chuck Robey

Michaël Grünewald wrote:

Chuck Robey [EMAIL PROTECTED] writes:


As long as folks don't stop me from running whatever I want, I don't
care if you use bash, but it really irks me, that most Linux systems
are broken in that respect: Most of them break badly in random ways,
if you don't run bash as your shell.


A friend of mine who worked with debian was once in mood to disinstall
BASH. Quite a trip to hell! (The story is 8 years old now.)


From my own experiences merely trying to runit as a user shell, and not 
de-installing bash, I believe you ... I finally had to give it up as a 
bad job, and I'm known as a somewhat stubborn person, so that should 
tell you the level of problems I faced.  Linux works only if you make 
their choices, just like their license.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pdksh vs. mksh info [was: Re: Apparently, csh programming is considered harmful.]

2007-12-17 Thread Chuck Robey

Jurjen Middendorp wrote:

  If you're familiar with pdksh, are you also familiar with ksh93, which
is (I believe) Mr. Korn's own shell?  If you are, I would be interessted
  in your opinion of the two, any comparisons you might give.

I've never used ksh93 so I really can't say.  There is a NOTES file
included with pdksh which gives a starter.  I created this port a few
years ago because of some random issue I've long since forgotten with
pdksh on my FreeBSD box which didn't happen on my OpenBSD box.

tom


I never used pdksh, but am using ksh93 for quite a while now and have used
bash, too. For some reason i like it better than bash, the vi mode is a bit
better somehow, it feels alot sturdier. It doesn't have those special
variables like $! and !! i believe, but it has alot of neat features like
basic network programming, lots of parameter expansion stuff and is just a
very nice shell :)


I havre installed it, and played with it a bit, I admit it's nicer than 
sh (and I *think*, bash) but the reason I haven't tried using it 
regularly is because I can't find a nicely set up .kshrc ... if you have 
one, I'd appreciate a copy.  Might be nice, if it's not terribly long, 
to post it to the list, too.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: csh programing book

2007-12-17 Thread Frank Shute
On Mon, Dec 17, 2007 at 03:23:52PM -0500, Chuck Robey wrote:

 Chad Perrin wrote:

  On Sun, Dec 16, 2007 at 02:57:12PM -0500, Chuck Robey wrote:
 
 Actually, I like ksh better, if you are really going all out for a
 programming shell, but if you're really after a scripting
 language, why restrict yourself to shells?  things like Python 
 Ruby knock hell out of both ksh and bash.  That's hardly even
 arguable.  Too bad there isn't a good friendly shell-like mode to
 Python.  Ruby would be out there, you couldn't even think about
 using a OO based tool for a user shell, those things need to be
 thought out, and that's the antithesis of being a friendly shell. 
 
 Considering I use Ruby's interactive interpreter, irb, all the time -- I
 don't really agree that you couldn't make a good user shell from Ruby.  A
 couple of tweaks in the way irb works would make for one of the best user
 shells I'd ever seen.  All that's missing is an easier way to execute
 external programs, as far as I can tell.
 
 
 Well, I was only giving my personal opinion.  I've never used irb, but 
 it seems to me that using any sort of OO tool as a shell would be cruel 
 and unusual, but I guess it takes all kinds, and I certainly wouldn't 
 prevent you from enjoying yourself, same as I'd expect from you to mine.

Aren't MS developing an OO shell? Called Monad (although it wouldn't
surprise me if they haven't changed the name).

I suppose we should expect something cruel  unusual from them ;) 

Anybody used Vista's Explorer? That's damned cruel, damned unusual and
not remotely funny.

Regards,

-- 

 Frank 


 Contact info: http://www.esperance-linux.co.uk/misc/contact.html 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


No audio whatever....

2007-12-17 Thread Gary Kline

I realize this may have no easy answer, but suddenly,
after a portupgrade -aP. I have no sound.  catting
/deev/snstat does tell me that my sound card is there.
my volme  is set to 100%.   Where else shoulf I be
looking.

gary


-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
  http://jottings.thought.org   http://transfinite.thought.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


PATA on DQ965GF

2007-12-17 Thread Christopher Key

Hello,

I'm trying to add a PATA drive to a machine based upon a DQ965FG 
motherboard.  The BIOS sees the drive quite happily, but FreeBSD sees 
nothing.  I vaguely seem to remember some discussion about trying to set 
up PATA CD-ROM drive with this board, and I think a kernel patch was 
proposed, although I can't find any references to it at the moment.  I'm 
running 6.2-RELEASE with a custom kernel, if the configuration file is 
relevant, please let me know and I'll post it.


Any advice gratefully received,

Chris Key


# uname -a
FreeBSD chacal.lan 6.2-RELEASE FreeBSD 6.2-RELEASE #1: Wed Aug 15 
11:05:17 BST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CHACAL  i386


# dmesg | grep ata
atapci0: GENERIC ATA controller port 
0x1018-0x101f,0x1024-0x1027,0x1010-0x1017,0x1020-0x1023,0x1000-0x100f 
mem 0x9000-0x91ff irq 17 at device 0.0 on pci2

ata2: ATA channel 0 on atapci0
ata3: ATA channel 1 on atapci0
atapci1: Intel ICH8 SATA300 controller port 
0x2408-0x240f,0x241c-0x241f,0x2400-0x2407,0x2418-0x241b,0x2020-0x203f 
mem 0x90221000-0x902217ff irq 19 at device 31.2 on pci0

atapci1: AHCI Version 01.10 controller with 6 ports detected
ata4: ATA channel 0 on atapci1
ata5: ATA channel 1 on atapci1
ata6: ATA channel 2 on atapci1
ata7: ATA channel 3 on atapci1
ata8: ATA channel 4 on atapci1
ata9: ATA channel 5 on atapci1
ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
ata1 at port 0x170-0x177,0x376 irq 15 on isa0
ad8: 476940MB Seagate ST3500630AS 3.AAK at ata4-master SATA300
ad10: 476940MB Seagate ST3500630AS 3.AAK at ata5-master SATA300
ad12: 476940MB Seagate ST3500630AS 3.AAK at ata6-master SATA300
ad14: 953869MB Seagate ST31000340AS SD15 at ata7-master SATA300
ad16: 953869MB Seagate ST31000340AS SD15 at ata8-master SATA300
ad18: 953869MB Seagate ST31000340AS SD15 at ata9-master SATA300

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: No audio whatever....

2007-12-17 Thread Jonathan Horne

Gary Kline wrote:

I realize this may have no easy answer, but suddenly,
after a portupgrade -aP. I have no sound.  catting
/deev/snstat does tell me that my sound card is there.
my volme  is set to 100%.   Where else shoulf I be
looking.

gary




speaking of catting

ive had to on more than one occasion, make sure that my cat didnt bite 
thru my audio wire.

--
Jonathan Horne
http://dfwlpiki.dfwlp.org
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: portaudit in periodic

2007-12-17 Thread Andrea Venturoli

Cristian KLEIN ha scritto:


I used to have problem with cron scripts, because cron uses another PATH then
what the script gets if it's run from the shell. Could you try the following
(assuming sh):

export SHELL=/bin/sh
export PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
export HOME=/var/log
periodic daily




Sorry if I reply this late: I tried something similar in crontab and let 
it test for a while, but nothing changed.

I'm really out of ideas here. :-(

 bye  Thanks
av.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: csh programing book

2007-12-17 Thread Kurt Buff
On Dec 17, 2007 12:50 PM, Frank Shute [EMAIL PROTECTED] wrote:
 Aren't MS developing an OO shell? Called Monad (although it wouldn't
 surprise me if they haven't changed the name).

 I suppose we should expect something cruel  unusual from them ;)

 Anybody used Vista's Explorer? That's damned cruel, damned unusual and
 not remotely funny.

Haven't used Vista, but the shell you're referring to is called PowerShell.

Change the capitalisation a bit for some humor...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: csh programing book

2007-12-17 Thread Peter Schuller
 Well, I was only giving my personal opinion.  I've never used irb, but
 it seems to me that using any sort of OO tool as a shell would be cruel
 and unusual, but I guess it takes all kinds, and I certainly wouldn't
 prevent you from enjoying yourself, same as I'd expect from you to mine.

The OO nature of it really really does not come into play here as far as I 
can tell. Whatever you can imagine with perl/python/your-favorite-language is 
very likely as much possible, if not more so, with Ruby.

Certainly if writing something elaborate it comes into play, but then we are 
away from the shell aspect of the discussion.

Doing:

   system myfile

does not become any more obnoxious just because myfile happens to be an 
object in a well-defined class-based object system. Nor does the function 
definition:

   def myfun(param)
   ...
   end

Become obnoxious just because Ruby happens to be OO, for some definition of 
OO.

My main concern is syntax. I would love to have a shell based on Ruby, Lisp, 
or some other powerful language (anything that at least allows functions to 
return values other than status codes... please). But I have yet to find one 
that makes it maximally simple and efficient to do the common stuff that you 
use interactively - which is to run external processes.

scsh (Scheme Shell) comes pretty close; I have no objection to using it for 
shell *scripting*. Neither might Ruby be an issue with sufficient API 
support.

But I am not sure about using it interactively. When interactive, you don't 
want to type even a single annoying character more than you have to. Or at 
least I don't.

That said, scsh might be possible to tweak sufficiently. It actually manages 
to combine the power of Lisp with the convenience of shell scripting pretty 
well (as always, by using macros). So you have pretty low-overhead syntax 
like. For example, instead of:

   more myfile

You have:

   (run (more myfile))

If you imagine an interactive mode where a top-level (run (...)) would be 
implied (under certain circumstances), you could make that be exactly 
equivalent to the normal shell version:

   more myfile

This is true even with parameters; the macros are such that you need not 
explicitly make them strings (so (run (ls -l /)) is valid for example).

I especially like the integration as soon as you want to do something slightly 
intelligent. E.g.:

   (run/strings (mystuff --list-something /path/to/db))

Yields an actual list of strings (one per line) that you can touch, pet and 
otherwise have your way with even if you want to do something other than 
piping it to the next process.

Not to mention having higher order functions at your fingertips...

In short, I would just love to have a single language for both tasks, not 
having to switch from one to the other after some threshold of script 
complexity. Unfortunately scsh has some issues (e.g., freebsd port is marked 
as broken om amd64 right now), so I dunno about counting on it being 
available everywhere.

-- 
/ Peter Schuller

PGP userID: 0xE9758B7D or 'Peter Schuller [EMAIL PROTECTED]'
Key retrieval: Send an E-Mail to [EMAIL PROTECTED]
E-Mail: [EMAIL PROTECTED] Web: http://www.scode.org



signature.asc
Description: This is a digitally signed message part.


Regarding Advanced Networking Technologies in FreeBSD

2007-12-17 Thread Diego Salvador
To Whom It May Concerned:

Hello and good day! What will be the status of the advanced networking 
technologies in FreeBSD such as mobile IPv6 (MIP6) and network mobility (NEMO)? 
Since then KAME snap kit will be discontinued for FreeBSD and OpenBSD 
development at the moment and only NetBSD will be currently developed, as soon 
as it gets stabled, FreeBSD will come after? More details on this paper 
http://2007.asiabsdcon.org/papers/P10-paper.pdf.

Thanks,

Diego Salvador

   
-
 Tired of spam? Yahoo! Mail has the best spam protection around
 http://ph.mail.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: No audio whatever....

2007-12-17 Thread Gary Kline
On Mon, Dec 17, 2007 at 03:46:22PM -0600, Jonathan Horne wrote:
 Gary Kline wrote:
  I realize this may have no easy answer, but suddenly,
  after a portupgrade -aP. I have no sound.  catting
  /deev/snstat does tell me that my sound card is there.
  my volme  is set to 100%.   Where else shoulf I be
  looking.
 
  gary
 
 
 
 speaking of catting
 
 ive had to on more than one occasion, make sure that my cat didnt bite 
 thru my audio wire.


hm.  I even checked my speakers aad tried my test KDE acount.
NADA.   The only glimmer is that, as root, he tiny system BEL does
sound.

ideas? let me know!
-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
  http://jottings.thought.org   http://transfinite.thought.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: No audio whatever....

2007-12-17 Thread Roland Smith
On Mon, Dec 17, 2007 at 01:06:10PM -0800, Gary Kline wrote:
 
   I realize this may have no easy answer, but suddenly,
   after a portupgrade -aP. I have no sound.  catting
   /deev/snstat does tell me that my sound card is there.
   my volme  is set to 100%.   Where else shoulf I be
   looking.

See if the sound server is running. KDE uses aRts, gnome uses esd, IIRC.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpWlPaJ1RxsU.pgp
Description: PGP signature


Re: portaudit in periodic

2007-12-17 Thread Cristian KLEIN
Andrea Venturoli wrote:
 Cristian KLEIN ha scritto:
 
 I used to have problem with cron scripts, because cron uses another
 PATH then
 what the script gets if it's run from the shell. Could you try the
 following
 (assuming sh):

 export SHELL=/bin/sh
 export PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
 export HOME=/var/log
 periodic daily


 
 Sorry if I reply this late: I tried something similar in crontab and let
 it test for a while, but nothing changed.
 I'm really out of ideas here. :-(

But have you tried running these commands from the shell? It is very important
to check the scripts with the above SHELL  PATH environment. If the above works
from the shell, I'm pretty much out of ideas too.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: No audio whatever....

2007-12-17 Thread David J Brooks
On Monday 17 December 2007 03:46:22 pm Jonathan Horne wrote:
 speaking of catting

 ive had to on more than one occasion, make sure that my cat didnt bite
 thru my audio wire.

Heh.. thanks for the tip. That explains why I lost all audio on the right 
channel. Sure enough, kitten-sized teeth-marks and a severed wire.

David
-- 
This message is not based on the novel by James Fenimore Cooper.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: No audio whatever....

2007-12-17 Thread Gary Kline
On Tue, Dec 18, 2007 at 12:41:34AM +0100, Roland Smith wrote:
 On Mon, Dec 17, 2007 at 01:06:10PM -0800, Gary Kline wrote:
  
  I realize this may have no easy answer, but suddenly,
  after a portupgrade -aP. I have no sound.  catting
  /deev/snstat does tell me that my sound card is there.
  my volme  is set to 100%.   Where else shoulf I be
  looking.
 
 See if the sound server is running. KDE uses aRts, gnome uses esd, IIRC.


Yes, the arts daemon is running and the esd isn't.  Logged in as
Gnomee,, no sound, tho.   Is there something that will tell me
why pcm0 is giving me these strange overruns, interrupts
and so forth?

To the entire list: be very careful about upgrading right now.  


gary


 
 Roland
 -- 
 R.F.Smith   http://www.xs4all.nl/~rsmith/
 [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
 pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)



-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
  http://jottings.thought.org   http://transfinite.thought.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: No audio whatever....

2007-12-17 Thread Joshua Isom

On Dec 17, 2007, at 7:02 PM, Gary Kline wrote:


On Tue, Dec 18, 2007 at 12:41:34AM +0100, Roland Smith wrote:

On Mon, Dec 17, 2007 at 01:06:10PM -0800, Gary Kline wrote:


I realize this may have no easy answer, but suddenly,
after a portupgrade -aP. I have no sound.  catting
/deev/snstat does tell me that my sound card is there.
my volme  is set to 100%.   Where else shoulf I be
looking.


See if the sound server is running. KDE uses aRts, gnome uses esd, 
IIRC.



Yes, the arts daemon is running and the esd isn't.  Logged in as
Gnomee,, no sound, tho.   Is there something that will tell me
why pcm0 is giving me these strange overruns, interrupts
and so forth?

To the entire list: be very careful about upgrading right now.


gary




What about using cdcontrol to play a cd?  If your cd-rom drive's hooked 
up to the audio port on your motherboard, it should skip anything in 
FreeBSD and go from hardware to speakers.  It might help track down the 
problem.


Also, did you upgrade OSS?  OSS uses /usr/src so if you've also done a 
csup of /usr/src that doesn't match what's installed it's possible you 
got something screwy to happen.


Oh, if you get BEL, you're better off than me for that.  I get all of 
my sound to work except for BEL!


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


SSH through port forwarding

2007-12-17 Thread Andrew Falanga
Hi,

I'm having a difficult time working with my father to get the port
forwarding working on his Linksys router to forward SSH requests to his
FreeBSD machine at home.  As near as we can figure, it's setup correctly.
In case anyone here uses this router it is WRT54G and details (including a
users manual) can be found at,
http://www.linksys.com/servlet/Satellite?c=L_Product_C2childpagename=US%2FLayoutpagename=Linksys%2FCommon%2FVisitorWrappercid=1149562300349.

Now, I'm in Idaho and he's in NY (which does make things difficult).  Is
there any special tricks to setting up port forwarding for SSH?  Probably
should have checked this first, but I'm going to go look on the handbook
too, just to see.

Andy

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SSH through port forwarding

2007-12-17 Thread Bill Campbell
On Mon, Dec 17, 2007, Andrew Falanga wrote:
Hi,

I'm having a difficult time working with my father to get the port
forwarding working on his Linksys router to forward SSH requests to his
FreeBSD machine at home.  As near as we can figure, it's setup correctly.
In case anyone here uses this router it is WRT54G and details (including a
users manual) can be found at,
http://www.linksys.com/servlet/Satellite?c=L_Product_C2childpagename=US%2FLayoutpagename=Linksys%2FCommon%2FVisitorWrappercid=1149562300349.

Now, I'm in Idaho and he's in NY (which does make things difficult).  Is
there any special tricks to setting up port forwarding for SSH?  Probably
should have checked this first, but I'm going to go look on the handbook
too, just to see.

It should Just Work(tm).  I don't have one of those handy, but
port forwarding is generally under the Advanced tab Linksys
routers.  It may be called Games or something like that.  Forward
port 22, ssh, to the internal IP and save the settings.

Generally one should have a fixed internal IP for forwarding as
DHCP assigned IP addresses may change.

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:(206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

there is nothing more difficult to take in hand, more perilous to
conduct, or more uncertain in its success, than to take the lead in
the introduction of a new order of things.  Because the innovator has
for enemies all those who have done well under the old conditions,
and lukewarm defenders in those who may do well under the new.
-- Machiavelli
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pdksh vs. mksh info [was: Re: Apparently, csh programming is considered harmful.]

2007-12-17 Thread Tom McLaughlin
On Mon, 2007-12-17 at 19:38 +, Frank Shute wrote:
 On Sun, Dec 16, 2007 at 07:21:23PM -0500, Tom McLaughlin wrote:
 
  On Sat, 2007-12-15 at 04:13 +0200, Giorgos Keramidas wrote: 
   
   Hi Frank,
   
   Now that you mention pdksh, have you tried mksh (in Ports too)?
   
   I've installed it and successfully run moderately large ksh scripts
   (like the webrev(1) utility of OpenSolaris), and it is about an order of
   magnitude smaller than pdksh here:
   
   % [EMAIL PROTECTED]:/usr/local/bin$ ls -ld mksh bash ksh
   % -rwxr-xr-x  1 root  wheel  -  684699 Dec  9 19:51 bash
   % -r-xr-xr-x  1 root  wheel  - 2390645 Aug 31 17:07 ksh
   % -r-xr-xr-x  1 root  wheel  -  236202 Dec  9 18:34 mksh
   % [EMAIL PROTECTED]:/usr/local/bin$ ldd mksh bash ksh
   % mksh:
   % libc.so.7 = /lib/libc.so.7 (0x280ae000)
   % bash:
   % libncurses.so.7 = /lib/libncurses.so.7 (0x28101000)
   % libintl.so.8 = /usr/local/lib/libintl.so.8 (0x28144000)
   % libiconv.so.3 = /usr/local/lib/libiconv.so.3 (0x28156000)
   % libc.so.7 = /lib/libc.so.7 (0x2824b000)
   % ldd: ksh: not a dynamic executable
   % [EMAIL PROTECTED]:/usr/local/bin$
   
  
  I've maintained a port of OpenBSD's pdksh for some time but I've never
  committed it.  Think of pdksh but still actively maintained.  
  
  http://people.freebsd.org/~tmclaugh/files/openksh/openksh-4.2.shar
  
  [EMAIL PROTECTED] tom]$ ls -al /usr/local/bin/ksh  
  -r-xr-xr-x  1 root  wheel  192032 Dec 16 18:22 /usr/local/bin/ksh*
  
  tom
 
 I always assumed that the pdksh in ports had the OpenBSD patches in
 it.
 
 I've downloaded the shell archive and I'll build it.
 
 Any chance that you will commit this in the future? I'd almost
 certainly use it.
 
 Thanks for your work  time, it's much appreciated!
 
 Regards,
 

Its always been a personal use thing but I'll look at adding it.  I
already checked on the name over on an OpenBSD list and no one cared.
If anyone wants to autoconf it that would be really sweet.  There's a
patch version that works on Linux but both that release and this one
require bmake.

tom

-- 
| tmclaugh at sdf.lonestar.org tmclaugh at FreeBSD.org |
| FreeBSD   http://www.FreeBSD.org |

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: common filesystem for Linux and FreeBSD

2007-12-17 Thread Chad Perrin
On Mon, Dec 17, 2007 at 10:39:31AM +0100, Ivan Voras wrote:
 Chad Perrin wrote:
 
  That being the case, there is some data I would like to keep available to
  both FreeBSD and Linux systems, in stable read/write access with
  reasonably high access performance for both (fast enough to achieve
  decent frame rates, for instance).  This seems to rule out both ext3 and
  UFS2.  What filesystem(s) meet(s) my needs in this case?
 
 Since you didn't state anything about reliability, ext2 will maybe help
 you :)

I thought stable covered that.

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
Larry Wall: A script is what you give the actors.  A program is what you
give the audience.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: common filesystem for Linux and FreeBSD

2007-12-17 Thread Chad Perrin
On Mon, Dec 17, 2007 at 10:38:54AM -0500, David Robillard wrote:
  That being the case, there is some data I would like to keep available to
  both FreeBSD and Linux systems, in stable read/write access with
  reasonably high access performance for both (fast enough to achieve
  decent frame rates, for instance).  This seems to rule out both ext3 and
  UFS2.  What filesystem(s) meet(s) my needs in this case?
 
 NFS would probably do it. You can use either OS as the NFS server and
 use which ever file system you desire.

Are you suggesting I put the filesystem on another machine and use NFS to
make it available to both OSes on this machine?  I'm looking to have a
filesystem on *this* machine that is available to both OSes, running one
at a time.

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
Paul Graham: Real ugliness is not harsh-looking syntax, but having to
build programs out of the wrong concepts.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: common filesystem for Linux and FreeBSD

2007-12-17 Thread Girish Venkatachalam
On 22:05:08 Dec 17, Chad Perrin wrote:
 Are you suggesting I put the filesystem on another machine and use NFS to
 make it available to both OSes on this machine?  I'm looking to have a
 filesystem on *this* machine that is available to both OSes, running one
 at a time.
 

Chad,

I saw your question but couldn't think of a proper answer.

I generally shy away from any multiboot situation since I have few
machines with me. Even then I too have to multiboot once in a while.

Anyway coming back to the point.

If FFS2 and EXT3 are ruled out, then what is remaining? ;)

XFS?

It is a tough choice indeed. Of course you could do a diskless boot off
an NFS and use that as file system for communication between the two
OSes.

But for that you need another machine connected over LAN running NFS of
course.

Sorry if my answer was irrelevant but this is the best I could do.

Thanks.

-Girish
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: No audio whatever....

2007-12-17 Thread Gary Kline
On Mon, Dec 17, 2007 at 09:02:32PM -0600, Joshua Isom wrote:
 On Dec 17, 2007, at 7:02 PM, Gary Kline wrote:
 
 On Tue, Dec 18, 2007 at 12:41:34AM +0100, Roland Smith wrote:
 On Mon, Dec 17, 2007 at 01:06:10PM -0800, Gary Kline wrote:
 
I realize this may have no easy answer, but suddenly,
after a portupgrade -aP. I have no sound.  catting
/deev/snstat does tell me that my sound card is there.
my volme  is set to 100%.   Where else shoulf I be
looking.
 
 See if the sound server is running. KDE uses aRts, gnome uses esd, 
 IIRC.
 
 
 Yes, the arts daemon is running and the esd isn't.  Logged in as
 Gnomee,, no sound, tho.   Is there something that will tell me
 why pcm0 is giving me these strange overruns, interrupts
 and so forth?
 
 To the entire list: be very careful about upgrading right now.
 
 
 gary
 
 
 
 What about using cdcontrol to play a cd?  If your cd-rom drive's hooked 
 up to the audio port on your motherboard, it should skip anything in 
 FreeBSD and go from hardware to speakers.  It might help track down the 
 problem.
o

Nothing.   I thought I'd get something fromm the -v flag;
nope.
,player, and eeverything else thinks in playing, but the error
output from /dev/sndstat is a clue.  What, tho, is the cluue to
this::

FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: CS461x PCM Audio at irq 18 kld snd_csa (1p/1r/2v channels duplex
default)
[pcm0:record:0:dsp0.0]: spd 44100, fmt 0x1010, flags
0x7030, 0x, pid 64702
interrupts 2649, overruns 0, hfree 4096, sfree 63488
[b:4096/2048/2|bs:65536/4096/16]
{hardware} - feeder_root(0x1010) - {userland}
[pcm0:play:0:dsp0.1]: spd 48000, fmt 0x1010, flags 0x00103020,
0x
interrupts 494374, underruns 0, ready 0
[b:4096/2048/2|bs:4096/2048/2]
{userland} - feeder_vchan_s16(0x1010) - {hardware}
pcm0:play:0:dsp0.1[pcm0:virtual:0:dsp0.2]: spd 44100/48000, fmt
0x1010, flags 0x10007030, 0x0010, pid 64702
interrupts 0, underruns 0, ready 65536
[b:0/2048/0|bs:65536/4096/16]
{userland} - feeder_root(0x1010) - feeder_rate(44100 -
48000) - {hardware}
pcm0:play:0:dsp0.1[pcm0:virtual:1:dsp0.3]: spd 44100/48000, fmt
0x1010, flags 0x1000, 0x0010
interrupts 0, underruns 0, ready 0 [b:0/2048/0|bs:131072/4096/32]
{userland} - feeder_root(0x1010) - feeder_rate(44100 -
48000) - {hardware}
p1 21:50 tao2 [2268]  


There stderr's are probably trace from the pcm/newpcm driver, but
what cauuses them is the mystery.

 
 Also, did you upgrade OSS?  OSS uses /usr/src so if you've also done a 
 csup of /usr/src that doesn't match what's installed it's possible you 
 got something screwy to happen.


No, but I did a src upgrade tonight and did a make buuildworld.   I am
upgrade things that were   up-to-date.   Should finish by late morning.
Meanwhile, if anyboody know how I fouled things up, please yell at me.
gary

 
 Oh, if you get BEL, you're better off than me for that.  I get all of 
 my sound to work except for BEL!
 

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
  http://jottings.thought.org   http://transfinite.thought.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SSH through port forwarding

2007-12-17 Thread Pollywog

Make sure the ISP is not blocking port 22.  If they block it, you will need to 
change the SSH port in sshd_config and then set the router to forward the 
port to the server's internal IP address.  It's a good idea to change the 
port anyway, in order not to be obvious to script kiddies.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SSH through port forwarding

2007-12-17 Thread sham khalil
On Dec 18, 2007 12:08 PM, Bill Campbell [EMAIL PROTECTED] wrote:

 On Mon, Dec 17, 2007, Andrew Falanga wrote:
 Hi,
 
 I'm having a difficult time working with my father to get the port
 forwarding working on his Linksys router to forward SSH requests to his
 FreeBSD machine at home.  As near as we can figure, it's setup correctly.
 In case anyone here uses this router it is WRT54G and details (including
 a
 users manual) can be found at,
 
 http://www.linksys.com/servlet/Satellite?c=L_Product_C2childpagename=US%2FLayoutpagename=Linksys%2FCommon%2FVisitorWrappercid=1149562300349
 .
 
 Now, I'm in Idaho and he's in NY (which does make things difficult).  Is
 there any special tricks to setting up port forwarding for SSH?  Probably
 should have checked this first, but I'm going to go look on the handbook
 too, just to see.

 It should Just Work(tm).  I don't have one of those handy, but
 port forwarding is generally under the Advanced tab Linksys
 routers.  It may be called Games or something like that.  Forward
 port 22, ssh, to the internal IP and save the settings.

 Generally one should have a fixed internal IP for forwarding as
 DHCP assigned IP addresses may change.


once you open port 22 to public ip, you'll get people try to bruteforce your
machine.
if you don't want that set sshd to listen to a higher number like 5522
then forward port 5522 from the router to the internal machines.

unfortunately for wrt54g, you can't forward port 5522 to 22 for internal
machine.

sham khalil
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]