Re: How to sort find results

2005-11-07 Thread David Fleck

On Mon, 7 Nov 2005, Jeffrey Ellis wrote:


Hi, David--

Thanks :)

# which perl
/usr/bin/perl
#head date_sort
head: date_sort: No such file or directory



??? where'd the file go?

Also, did you see Richard Burakowski's note about the possible
carriage return / line feed problem?


--
David Fleck
[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: How to sort find results

2005-11-07 Thread David Fleck

On Mon, 7 Nov 2005, Jeffrey Ellis wrote:

Y'know, being a newbie at something is about as stupid as things generally
get. So I'm feeling totally dumb at the moment.


The feeling will go away after a while, really.


But when I try:

# ./date_sort /

I get:

use: bad interpreter: No such file or directory


Sounds like it can't find perl, or there's a syntax error.  (Perl is 
installed, right?) Paste the results of the following commands into a mail 
message:


  which perl

  head date_sort

and we can see if there's anything obvious there.  The script may be 
pointing to a non-existant executable.


And also note that, as currently written, the perl script does not have an 
equivalent to the '-x' argument for 'find'.  We might be able to get that 
in there, but probably should worry about just getting the script working 
first.



--
David Fleck
[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: How to sort find results

2005-11-07 Thread David Fleck

On Mon, 7 Nov 2005, Jeffrey Ellis wrote:


Hi, David--

Thank you.

Wow. That looks great...

Um... Can you tell me how to run it?


Assuming you've saved everything from '#!/usr/bin/perl' to the final '}', 
inclusive, to a file, name the file something, like 'date_sort'. Then


  chmod +x date_sort

  ./date_sort /directory/to/sort

I use this primarily on directory hierarchies of regular files, so I'm not 
guaranteeing what will happen if you use it on directories that contain 
other sorts of files.



--
David Fleck
[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: How to sort find results

2005-11-07 Thread David Fleck

On Mon, 7 Nov 2005, Jeffrey Ellis wrote:

Well, at least I know it can do it now. The problem -- as usual for a newbie
-- is that I haven't got the vaguest understanding of what I just read. The
field part I think I get, but how would I use the first character? I guess
I'm basically too stupid to get these kind of instructions -- maybe just one
example for the use of each option included in man pages would help?


Here's a completely different approach.  I ran into this exact problem 
often enough that I wrote a small Perl script to handle it:


#!/usr/bin/perl

use strict;
use File::Find ();

# for the convenience of &wanted calls, including -eval statements:
use vars qw/*name/;
*name   = *File::Find::name;

(@ARGV) or usage();

my (%files, $tString, $reverse);

$reverse = 1 if ($ARGV[1] =~ /r.*/);

# Traverse desired filesystems
File::Find::find(\&wanted, $ARGV[0]);

# sort %files by mod. time, print.
if ($ARGV[1] =~ /r.*/) {
foreach my $f (sort { $files{$b} <=> $files{$a} } keys %files) {
# chop off day of week
($tString = scalar localtime($files{$f})) =~ s/\w* //;
print $tString, "\t",$f,"\n";
}
} else {
foreach my $f (sort { $files{$a} <=> $files{$b} } keys %files) {
# chop off day of week
($tString = scalar localtime($files{$f})) =~ s/\w* //;
print $tString, "\t",$f,"\n";
}
}
exit;


sub wanted {
my (@fstat);
# put the filename and mod. time into %files
((@fstat) = lstat($_)) && -f _ && ($files{$name} = $fstat[9]);
}

sub usage {
print "\n",
"Usage: $0 (directory) [reverse]\n",
"  examines all files in (directory) and all its subdirectories,\n",
"  sorts by date, and returns the sorted list, earliest first.\n",
"  If 'reverse' is specified, files are sorted earliest last.\n\n";
exit;
}


--
David Fleck
[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: getting an old NIC to work

2005-11-06 Thread David Fleck

On Sat, 5 Nov 2005, Steve Bertrand wrote:

It appears as though everything is in order. The routes are in place,
IP/SN is all correct etc.

You are going to have to take a step down now to the lower layers of the
network stack.

Perform this command while plugged into the network and let it run a
while:

# tcpdump -n -i pcn0

What this will do is see if the nic can see traffic coming from other
machines. Throw some pings at it from another box, and even if the other
box doesn't get a reply, tcpdump will tell you if the nic can at least
see the incoming traffic. Also, run tcpdump on another box, and repeat
the process, but ping from the box with the 'bad' nic in it. Perhaps it
can send traffic, but just not receive. Doing this both ways will
indicate either way and may give you a clue.


No indication of activity either way - 'tcpdump' on the affected machine 
sees no packets from elsewhere, 'tcpdump' on a working machine sees tons 
of packets, but none from this machine.



Further that, even farther down, try a different cable and switch port
(one at a time). I know that may seem silly, but weirder things have
happened.


Yes, I know... tried swapping cables/hub ports, no change.


If all of that fails, due to the fact there is a driver loaded for the
device, and it is taking all of it's parameters ok, I would say slap a
new nic in the box and see if you can rx/tx traffic via it. If you can,
I'd say then there is a problem with the nic itself, and you have
confirmed it logically and completely.


Well, that may take a few days, until I scrounge up an extra NIC... but 
thanks for the assistance.  At least I know I was going about the testing 
the right way.



--
David Fleck
[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: CD burning no longer working

2005-11-05 Thread David Fleck

On Sat, 5 Nov 2005, Fabian Keil wrote:

I never used burncd, but "/dev/acd0c" looks strange to me.

The device is "/dev/acd0" and even the man page says
"burncd -f /dev/acd0 data file1 fixate".


Not my manpage:

EXAMPLES
 The typical usage for burning a data CD-R:

   burncd -f /dev/acd0c data file1 fixate


in fact, my version doesn't recognize /dev/acd0 at all:
# burncd -f /dev/acd0 data /misc/backup_assemble/backup051105.iso fixate
burncd: open(/dev/acd0): No such file or directory

but I'll give cdrecord a try.

--
David Fleck
[EMAIL PROTECTED]

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


CD burning no longer working

2005-11-05 Thread David Fleck

System: FreeBSD 4.9-RELEASE-p11

dmesg:
acd0:  CD-RW drive at ata1 as master
acd0: read 689KB/s (6032KB/s) write 344KB/s (8273KB/s), 2048KB buffer, PIO4
acd0: Reads: CD-R, CD-RW, CD-DA stream, packet
acd0: Writes: CD-R, CD-RW, test write, burnproof
acd0: Audio: play, 255 volume levels
acd0: Mechanism: ejectable tray, unlocked
acd0: Medium: no/blank disc

The system has a CD-RW device which has, in the past, worked fine.  Trying 
to burn an .iso right now, however, and getting the following behavior:


 # burncd -f /dev/acd0c data /misc/backup_assemble/backup051105.iso fixate
 next writeable LBA 0
 writing from file /misc/backup_assemble/backup051105.iso size 408480 KB
 written this track 1472 KB (0%) total 1472 KB
 only wrote -1 of 32768 bytes err=5

 fixating CD, please wait..
 burncd: ioctl(CDRIOCFIXATE): Input/output error

while the kernel complains:
 Nov  5 09:15:10 grond /kernel: acd0: WRITE_BIG - MEDIUM ERROR asc=0x02 
ascq=0x00 error=0x00
 Nov  5 09:15:10 grond /kernel: acd0: CLOSE_TRACK/SESSION - ILLEGAL REQUEST 
asc=0x72 ascq=0x04 error=0x00

Same behavior with 2 different CDs.
Used to work, now it doesn't, so I'm tempted to blame the hardware.  But 
does anyone have any more specific ideas of what might be going on here?


--
David Fleck
[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: getting an old NIC to work

2005-11-04 Thread David Fleck

On Fri, 4 Nov 2005, Steve Bertrand wrote:


the relevant dmesg output is:
pcn0:  port 0xbcc0-0xbcdf mem
0xfedfcc00-0xfedfcc1f irq 11 at device 19.0 on pci0
pcn0: Ethernet address: 00:66:b0:4a:bc:1c
miibus0:  on pcn0
lxtphy0:  on miibus0
lxtphy0:100baseFX, 100baseFX-FDX, 10baseT, 10baseT-FDX,
100baseTX, 100baseTX-FDX, auto

ifconfig:
pcn0: flags=8843 mtu 1500
inet 192.168.1.10 netmask 0xff00 broadcast 192.168.1.255
inet6 fe80::260:b0ff:fea4:bc1c%pcn0 prefixlen 64 scopeid 0x1
ether 00:66:b0:4a:bc:1c
media: Ethernet autoselect (10baseT/UTP)
status: active

the machine can ping itself at 192.168.1.10.  It can't ping
the defaultrouter (192.168.1.1) set in rc.conf, or anything
else on the local network.


Everything looks fine up to this point, so the problem you describe (not
being able to ping anything aside from itself). So, first reply back
with the defaultrouter line in rc.conf so we can ensure it's accurate.


defaultrouter="192.168.1.1"



Second (relevant to the question below, paste us the output from:

# netstat -rn

Internet:
Destination Gateway Flags   RefsUse Netif   Expire
default 192.168.1.1 UGSc0   0   pcn0
127.0.0.1   127.0.0.1   UH  1   6   lo0
192.168.1   link#1  UC  2   0   pcn0
192.168.1.1 link#1  UHLW1   3   pcn0
192.168.1.1000:66:b0:4a:bc:1c UHLW  3   8   lo0

(typed by hand, but doublechecked for errors.)


One more thing...is this a clean install? Have you built yourself a new
kernel adding any extra options? (ie IPFW)..and are you absolutely sure
that the upstream gateway is indeed 192.168.1.1 (ie: can you ping it
from a different workstation?


Nope, generic kernel, not rebuilt at all.  Yes, 192.168.1.1 does work from 
other machines on the local network.  For example, here's the netstat from 
the machine I'm writing on this minute:


working_machine>$ netstat -rn
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.1.1UGSc20ed0
127.0.0.1  127.0.0.1  UH  122924lo0
192.168.1  link#1 UC  40ed0
192.168.1.100:09:5b:50:37:76  UHLW3 9263ed0   1199
192.168.1.200:40:05:55:aa:68  UHLW5  102lo0
192.168.1.300:0c:41:0c:95:d0  UHLW012790ed0   1134
192.168.1.400:c0:26:c0:ec:89  UHLW121435ed0847

this one's working fine.


--
David Fleck
[EMAIL PROTECTED]

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


getting an old NIC to work

2005-11-04 Thread David Fleck
I recently acquired an old HP Kayak and decided to put FreeBSD on it. 
The installation appears to be fine, with one little problem - the network 
card doesn't work. (I don't actually know what kind of card it is, as I 
haven't opened the case on the machine yet.)


The card itself is ok - I can use it just fine with a Knoppix disk.  The 
machine is on a LAN, plugged into an old 10Mb hub.


It appears to be recognized by the FreeBSD kernel (I tried a 4.9 install 
and a 5.3 install, because I have the disks at hand - both installs gave 
identical results):


the relevant dmesg output is:
pcn0:  port 0xbcc0-0xbcdf mem 0xfedfcc00-0xfedfcc1f 
irq 11 at device 19.0 on pci0
pcn0: Ethernet address: 00:66:b0:4a:bc:1c
miibus0:  on pcn0
lxtphy0:  on miibus0
lxtphy0:100baseFX, 100baseFX-FDX, 10baseT, 10baseT-FDX, 100baseTX, 
100baseTX-FDX, auto

ifconfig:
pcn0: flags=8843 mtu 1500
inet 192.168.1.10 netmask 0xff00 broadcast 192.168.1.255
inet6 fe80::260:b0ff:fea4:bc1c%pcn0 prefixlen 64 scopeid 0x1
ether 00:66:b0:4a:bc:1c
media: Ethernet autoselect (10baseT/UTP)
status: active

the machine can ping itself at 192.168.1.10.  It can't ping the 
defaultrouter (192.168.1.1) set in rc.conf, or anything else on the local 
network.


I'm at the end of my limited networking experience.  Any assistance in 
getting the machine talking to the rest of the network is appreciated.


(As an aside - how do I get a display of the current routing table?)


--
David Fleck
[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: [Realplay10GOLD] Error: ELF binary type "0" not known

2005-03-13 Thread David Fleck
On 03/11/05 03:47:27, P.H.Tung wrote:
I successfully installed Realplayer10GOLD on FreeBSD released 5.3
When I run realplay from console, I got following error:
ELF binary type "0" not known.
/usr/local/lib/RealPlayer/realplay.bin: 1: Syntax error: "("
unexpected
What does it means? any advises?
Thanks!
...you *do* have Linux compatibility enabled, right?

--
David Fleck
[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: [Realplay10GOLD] Error: ELF binary type "0" not known

2005-03-13 Thread David Fleck
On Sun, 13 Mar 2005, Jason Henson wrote:
On 03/11/05 03:47:27, P.H.Tung wrote:
I successfully installed Realplayer10GOLD on FreeBSD released 5.3
When I run realplay from console, I got following error:
ELF binary type "0" not known.
/usr/local/lib/RealPlayer/realplay.bin: 1: Syntax error: "("
unexpected
What does it means? any advises?
Thanks!
___

Sounds like a compiler error?  Check man brandelf.
$ brandelf -l
known ELF types are: FreeBSD(9) Linux(3) Solaris(6) SVR4(0)
You could try to rebrand it to type 9.
as root:
brandelf -f 9 /usr/local/lib/RealPlayer/realplay.bin
But the syntax error, how would that get there?  Try to make reinstall after 
a make distclean if branding fails.

It's a little more mysterious than that.
the Realplayer port is a Linux binary, so branding it for FreeBSD probably 
won't work.  But here's what's odd -- I just installed 
linux-realplayer-10.0.2_1, and it seems to have installed OK.  When I 
check its branding, I get:

bender# brandelf /usr/local/lib/RealPlayer/realplay.bin
File '/usr/local/lib/RealPlayer/realplay.bin' is of brand 'SVR4' (0).
so it's not branded for Linux or FreeBSD!  And yet it seems to be ok.
And the 'Syntax error' the OP is getting makes no sense at all.
My suggestion at this point - do
brandelf /usr/local/lib/RealPlayer/realplay.bin
file /usr/local/lib/RealPlayer/realplay.bin
and report the results back.
--
David Fleck
[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: [Realplay10GOLD] Error: ELF binary type "0" not known

2005-03-12 Thread David Fleck
On Fri, 11 Mar 2005, P.H.Tung wrote:
Hi David Fleck,
I downloaded port linux-realplayer from http://www.freebsd.org/ports/multimedia/
and run: make install clean (internet connected and it automatically
downloaded relevant files)
What's wrong?

Thanks, I just wanted to make sure you were getting the sources from the 
right place.  As to what's wrong, I can't help you currently, because I 
can't get the thing to install.

--
David Fleck
[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: [Realplay10GOLD] Error: ELF binary type "0" not known

2005-03-11 Thread David Fleck
On Fri, 11 Mar 2005, P.H.Tung wrote:
I successfully installed Realplayer10GOLD on FreeBSD released 5.3
When I run realplay from console, I got following error:
ELF binary type "0" not known.
/usr/local/lib/RealPlayer/realplay.bin: 1: Syntax error: "(" unexpected
What does it means? any advises?
First off, where did you get this from, and how did you install it?
--
David Fleck
[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: How to identify xterm font

2005-03-11 Thread David Fleck
On Thu, 10 Mar 2005, Nathan Kinkade wrote:
On Thu, Mar 10, 2005 at 07:31:09AM +, Sergei Gnezdov wrote:
I like the size of the xterm window.  It is small and it uses very
easy to read font.  Unfortunately, it does not play very well with
emacs.  For these reasons I use Gnome terminal.  Gnome font is bigger,
thus it takes more space on the screen.  How do I identify which font
is used by xterm, so I can apply it for gnome terminal?
I also would like to know why my ~/.Xdefaults configuration is not
applied in Gnome.  It worked just fine in KDE and most other
environments.
I can't answer this question, but want to chime in on this thread just
because I had the same question a few weeks ago, but could never figure
it out.  I poked around my system and Googled until I was blue in the
face, but came up with nothing.  The reason is that I had recently
switched from rxvt to urxvt (for Unicode support) and the default font,
or whichever one it ended up grabbing) looked awful, but I liked very
much the font that rxvt was using.  I even ran a kernel trace on the
program in an attempt to figure out what font it was settling on, but
was only able to get a partial answer from that, as the font lines were
truncated.  As I say, this doesn't help, but I post here only in the
hope that perhaps another post to the thread will catch someones eye who
might know how to figure out what font a particular X terminal is using
when it hasn't been explicity set already.
Don't know about rxvt or urxvt, but for plain old xterm, the font settings 
are in /usr/X11R6/lib/X11/app-defaults/XTerm.

--
David Fleck
[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: Strange load averages on 5.3-STABLE

2005-03-10 Thread David Fleck
On Thu, 10 Mar 2005, Michael Ross wrote:
last pid: 771; load averages: 176.65, 770.13, 926.55 up 0+00:03:13  08:11:07
Your may have compiled kernel and userland from different sources.
" and programs like ps(1) and top(1) will fail to work until the kernel and source 
code versions are the same." from the handbook is what comes to my mind.
I've also seen ridiculously-high load numbers when NFS-mounted filesystems 
are inaccessible.  Usually that degrades system performance, though.

--
David Fleck
[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: Auth.log date issue?

2005-03-09 Thread David Fleck
On Wed, 9 Mar 2005, Mark wrote:
Which is curious, as the IP address no longer has a machine on it. Then I
checked, and after a while I suddenly noticed /var/log/auth.log was dated
March 8, 2004! Apparently, the security script just checks the date, but
not the year? Is it supposed to work this way? It gave me a good scare,
all for nothing. :)

The exact same thing happened to me a few months ago.  I think the script 
is written with the assumption that the auth.log will be rotated at least 
once a year; but if you don't have a lot of authorization activity, it can 
easily go beyond that without rotating, because the default for 
newsyslog.conf is to only rotate auth.log when it gets beyond a certain 
size.  Just add a time for auth.log to rotate, and this will go away.

(rotates auth.log once a month)
/var/log/auth.log   600  7 256  $M1D0 Z
--
David Fleck
[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: Problems with Cron not deleting log files

2005-03-09 Thread David Fleck
On Tue, 8 Mar 2005, Richard Mcintyre wrote:
Thank you very much for your sarcastic comment, however, you must have read 
that far then stopped. The problem is not with the number of extra log files, 
the problem is that I cannot delete them. AT ALL. As far as 'my home-grown 
non-working method' of managing my log files, it doesn't exist. In that I had 
not modified any of the initial settings of /etc/newsyslog.conf or any other 
conf files. the only commands I ran on the system were the long string of 
chmod commands I listed.
That seems strange, because the file name format doesn't look anything 
like what newsyslog normally does.  This is what log files look like on my 
5.3-RELEASE-p5 system:

$ ls -lrt /var/log
[snip...]
-rw-r-  1 rootwheel   728 Mar  5 03:06 sendmail.st.0
-rw---  1 rootwheel  5959 Mar  5 17:00 cron.1.bz2
-rw-r-  1 rootwheel   778 Mar  6 00:00 maillog.3.bz2
-rw-r--r--  1 rootwheel 30735 Mar  6 00:00 daemon.3.bz2
-rw-r--r--  1 rootwheel 34760 Mar  6 00:00 all.log.3.bz2
-rw-r--r--  1 rootwheel 49601 Mar  7 00:00 all.log.2.bz2
-rw-r-  1 rootwheel   645 Mar  7 00:00 maillog.2.bz2
-rw-r--r--  1 rootwheel 46138 Mar  7 00:00 daemon.2.bz2
-rw-r--r--  1 rootwheel 16217 Mar  7 19:45 console.log
-rw-r--r--  1 rootwheel 72179 Mar  7 19:45 messages
-rw---  1 rootwheel 13227 Mar  7 19:45 auth.log
-rw-r-  1 rootwheel   642 Mar  8 00:00 maillog.1.bz2
-rw-r--r--  1 rootwheel 31980 Mar  8 00:00 daemon.1.bz2
-rw-r--r--  1 rootwheel 35479 Mar  8 00:00 all.log.1.bz2
-rw---  1 rootwheel  5453 Mar  8 10:00 cron.0.bz2
-rw-r--r--  1 rootwheel 36777 Mar  9 00:00 daemon.0.bz2
-rw-r--r--  1 rootwheel 41041 Mar  9 00:00 all.log.0.bz2
-rw-r-  1 rootwheel   644 Mar  9 00:00 maillog.0.bz2
-rw-r-  1 rootwheel   728 Mar  9 03:06 sendmail.st
-rw-r-  1 rootwheel  2124 Mar  9 03:06 maillog
-rw---  1 rootwheel 34519 Mar  9 08:05 cron
-rw-r--r--  1 rootwheel167201 Mar  9 08:06 all.log
*something's* messing with your log files.  That they're all the same size 
is pretty odd too.  Look around in /var/log/messages or /var/log/cron and 
see if anything looks related.

--
David Fleck
[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: Strange operator messages

2005-03-05 Thread David Fleck
On Sat, 5 Mar 2005, Roland Smith wrote:
The script /usr/libexec/save-entropy reads and executes /etc/rc.conf. So any
errors in that can influence save-entropy.
For example, see
http://lists.freebsd.org/pipermail/freebsd-questions/2005-February/078740.html
--
David Fleck
[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: Odd message from cron daemon

2005-02-27 Thread David Fleck
On Sun, 27 Feb 2005, Anthony Atkielski wrote:
It does.  It looks identical to the same file on my production system.
The only difference is that I'm not getting this mystery message on my
production system.
What else might cause this?
Hmmm.  Well, I don't know, but I'd try running the save-entropy script 
manually and see if you can recreate the message that way.  If so, add a 
-x to the first line

  #!/bin/sh -x
and run it manually again - you should be able to see what command 
precedes the message.

--
David Fleck
[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: Odd message from cron daemon

2005-02-27 Thread David Fleck
On Sun, 27 Feb 2005, Anthony Atkielski wrote:
I get an e-mail like the following every eleven minutes on my test
system:
=
From [EMAIL PROTECTED] Sun Feb 27 16:55:00 2005
Date: Sun, 27 Feb 2005 16:55:00 +0100 (CET)
From: [EMAIL PROTECTED] (Cron Daemon)
To: [EMAIL PROTECTED]
Subject: Cron <[EMAIL PROTECTED]> /usr/libexec/save-entropy
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
This: not found
=
What does this message mean?  I've never seen it on my production
system.

As a wild guess, check to see that line 29 in /usr/libexec/save-entropy 
has a comment mark at the start of it:

# This script is called by cron to store bits of randomness which are
--
David Fleck
[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: OT sharing how,tos & articles ?

2005-02-12 Thread David Fleck
On Fri, 11 Feb 2005, faisal gillani wrote:
well i am builting a opensource softwares related site
on which i have a articals section ill use to promote
open source softwares in my reagion , so i was
thinking does the open source people allow their
documentations to be shared ? if not all then can u
recommend a site about freeBSD that will let me do so
http://www.freebsd.org/
--
David Fleck
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: OT: Trying to learn C -- some questions

2004-11-25 Thread David Fleck
On Thu, 25 Nov 2004, Tom Parquette wrote:
I'm trying to learn ANSI C using a book circa 1994.  It is written from 
a DOS perspective. Someone at work, who knows a little C, told me that 
the book was "close enough".
I think they are probably wrong.

1) gcc complains that  was not found.  If I comment out the 
#include, the program compiles.  Is this a DOSism or something else?
I don't know if it's a DOSism, but it's definitely not a standard header 
file in the UNIX world.  I've never encountered it outside of Microsoft 
systems.


2) fprintf is described with stdprn being valid for a default printer. This 
does not seem to be valid in, at least, the FreeBSD world.  man fprintf did 
not really help.  I believe I have to create a stream for the print but I'm 
not clear on how to do it.
Sorry, not sure about this, but again, it sounds like a DOS (or MS) 
specific implementation.


3) gets() is used in a number of places.  Using this gets me:
/var/tmp//cciWrf9n.o(.text+0x20d): In function `get_data':
: warning: warning: this program uses gets(), which is unsafe.
'gets()' will still work, but its use isn't advised.  If you're just using 
it in test programs, though, it's not a big deal.


4) A couple of the home work assignments use getch().  I figured out from the 
getch man page that I needed "#include " but that changes the 
errors to:
/var/tmp//cc1GEzyG.o(.text+0x6a): In function `main':
: undefined reference to `stdscr'
/var/tmp//cc1GEzyG.o(.text+0x6f): In function `main':
: undefined reference to `wgetch'
I do not know what header file I should be including.
Or is there something else I'm not understanding?
I think the real problem hear is that the getch() the example is 
referencing is actually a function found in conio.h.  The getch() in 
curses probably isn't the one you want anyway.
(Ref.: http://lists.apple.com/archives/mpw-dev/2001/Aug/msg00182.html)

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


Re: What happened to agm-1.4?

2004-11-25 Thread David Fleck
On Thu, 25 Nov 2004, Michael Nottebrock wrote:
Yes, see http://www.freebsd.org/cgi/query-pr.cgi?pr=28091
Ahh, I see. Thank you.
--
David Fleck
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


What happened to agm-1.4?

2004-11-25 Thread David Fleck
Based on results of a Google search, it looks like the anagram-generating 
program 'agm' was at one time part of the ports collection.  Google 
returns multiple broken links to FreeBSD mirrors containing agm.

However, agm doesn't seem to be in ports currently.  Was there a reason 
for removing it?

I'd be happy to make a port of it, but if there's a good reason it's 
missing then I won't bother.

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


Re: Updating and installing programmes.

2004-11-24 Thread David Fleck
On Mon, 22 Nov 2004, Richard Chr. Farnes wrote:
Could you please tell me which link I put into my supfile to update 
programmes and packages.
Not quite sure what you mean, but it should simply be a matter of making 
sure that the 'ports-all' line of your ports-supfile is uncommented, i.e.:

   # The easiest way to get the ports tree is to use the "ports-all"
   # mega-collection.  It includes all of the individual "ports-*"
   # collections,
   ports-all
running cvsup with this file *should* get you what I think you want. 
Similarly,

   # The easiest way to get the main source tree is to use the "src-all"
   # mega-collection.  It includes all of the individual "src-*" collections.
   src-all
for the base system code.
Or am I misunderstanding what you're looking for?
--
David Fleck
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: font size on console.

2004-10-27 Thread David Fleck
On Wed, 27 Oct 2004, Hauan, David wrote:
So where is the best place to load this at boot so when
all users log in they get the vidcontrol settings I set.
On my 4.9 system, I put the following into /etc/rc.conf:
allscreens_flags="132x43"
to set vidcontrol for all the ttys.  It gets picked up by /etc/rc.syscons.
--
David Fleck
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: IDE drive - "hard error reading fsbn..." - recoverable?

2004-10-23 Thread David Fleck
On Sun, 24 Oct 2004 [EMAIL PROTECTED] wrote:
On Sat, Oct 23, 2004 at 05:26:27PM -0500, David Fleck wrote:
Is this likely a one-time thing, or a symptom of creeping disk death?
  (The 'hard error' messages only started after the reboot.)
You could try /usr/ports/sysutils/smartmontools to run S.M.A.R.T.
selftests on the drive.
Thanks - unfortunately, that port is marked IGNORE for my version (4.9). 
Apparently I need 'ATAng', not sure if I can get that in the 4.x series... 
I suppose I could try moving to 5.2.x, but I was hoping to put that off a 
little longer - and I'd like to know my hardware is reliable first, 
really.

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


IDE drive - "hard error reading fsbn..." - recoverable?

2004-10-23 Thread David Fleck
4.9-RELEASE-p11 system.
Experimenting with cdda2wav this morning, I managed to get my system into 
a completely non-responsive state- no keyboard, mouse, or console 
activity; the machine responded to about 20% of ping packets, with 
many-second delays; attempts to ssh into the box failed.  So I 
power-cycled the machine.

After an apparently normal reboot, I noticed I could no longer access 
certain files:

 dcf>$ ls .mozilla/firefox/dcf/bookmarks.html
 ls: .mozilla/firefox/dcf/bookmarks.html: Input/output error
and these errors were accompanied by kernel warnings:
 Oct 23 16:58:12 grond /kernel: ad0s1e: hard error reading fsbn 29926527 of 
9843232-9843263 (ad0s1 bn 29926527; cn 1862 tn 214 sn 15) status=59 error=40
Other files in /home/dcf were affected, also - many seemed to be related 
to firefox, which had been running when the system froze/was rebooted.

I dropped to single user mode and started fsck - and got the following:
** /dev/ad0s1e
** Last Mounted on /home
** Phase 1 - Check Blocks and Sizes
CONTINUE? [yn]
THE FOLLOWING DISK SECTORS COULD NOT BE READ: 9843232, 
9843233, 9843234, 9843235, 9843236, 9843237, 9843238, 9843239, 9843240, 
9843241, 9843242, 9843243, 9843244, 9843245, 9843246, 9843247, 9843248, 
9843249, 9843250, 9843251, 9843252, 9843253, 9843254, 9843255, 9843256, 
9843257, 9843258, 9843259, 9843260, 9843261, 9843262, 9843263, 9843264, 
9843265, 9843266, 9843267, 9843268, 9843269, 9843270, 9843271, 9843272, 
9843273, 9843274, 9843275, 9843276, 9843277, 9843278, 9843279, 9843280, 
9843281, 9843282, 9843283, 9843284, 9843285, 9843286, 9843287, 9843288, 
9843289, 9843290, 9843291, 9843292, 9843293, 9843294, 9843295,

CONTINUE? [yn]
...many, many times, interspersed with as many kernel errors:
ad0s1e: hard error reading fsbn 9843238 (ad0s1 bn 9843238; cn 612 tn 181 sn 55) 
status=59 error=40
ad0s1e: hard error reading fsbn 9843239 (ad0s1 bn 9843239; cn 612 tn 181 sn 56) 
status=59 error=40
ad0s1e: hard error reading fsbn 9843240 (ad0s1 bn 9843240; cn 612 tn 181 sn 57) 
status=59 error=40
ad0s1e: hard error reading fsbn 9843241 (ad0s1 bn 9843241; cn 612 tn 181 sn 58) 
status=59 error=40
ad0s1e: hard error reading fsbn 9843242 (ad0s1 bn 9843242; cn 612 tn 181 sn 59) 
status=59 error=40
ad0s1e: hard error reading fsbn 9843243 (ad0s1 bn 9843243; cn 612 tn 181 sn 60) 
status=59 error=40
...etc.
So I figure somehow I suffered hard drive damage in the system freeze or 
my reboot.  My questions, now, are:

Is this likely a one-time thing, or a symptom of creeping disk death?
  (The 'hard error' messages only started after the reboot.)
If it's one-time, is the disk still usable?  Can I flag the affected 
sectors as bad, and work around them?

How can I best determine the extent of the damage? I'd rather not do a 
manual fsck for a whole afternoon if I can help it.

How best can I recover from the damage?  Many of the affected files appear 
to be in my home directory.  Can I just blow away the entire /home/dcf and 
restore from backup (I think I have those...)?

Thanks in advance for any advice you might have -
--
David Fleck
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Porting new Software into FreeBSD

2004-08-11 Thread David Fleck
On Tue, 10 Aug 2004, Alex B wrote:
I'm almost done writing a new software for FreeBSD. The only thing is that i 
have not yet found a way to port it into FreeBSD ports. Can any body tell me 
how its done. Are there any documentation on how to do this?

Yes, the Porter's Handbook:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/index.html
--
David Fleck
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: burncd: ioctl(CDIOCSTART): Device busy

2004-08-10 Thread David Fleck
On Tue, 10 Aug 2004, Iain Dooley wrote:
i tried "fstat -n | grep acd" but no programs appear to be using the
drive. the light on the CD drive keeps blinking orange too, indicating
that it is trying to read the drive or something similar, but i have not
issued any 'mount /cdrom' command.
[...]
any ideas?
More of a question, really.  Why are you using 'fstat -n'?  The -n option 
would appear to print only device numbers, not device names - therefore 
grepping for 'acd' will be fruitless, correct?.

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


Re: Help Debugging Kshell Script???

2004-08-08 Thread David Fleck
On Sun, 8 Aug 2004, Hakim Z. Singhji wrote:
I appologize you are correct the script I sent you is a version of the
same script that I am working on for an AIX machine.  Attached is an
unencrypted version of the script for System V: BSD/Linux machines.
Now I get this error:
Swap Space Report for grond.sourballs.org
Sun Aug  8 13:25:18 CDT 2004
new.ksh[79]: free: not found
and indeed, I can't find a 'free' command on 4.9, 5.2.1, or in ports - 
just the 'free' (3) system call.  What are you using here?

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


Re: Help Debugging Kshell Script???

2004-08-08 Thread David Fleck
Unfortunately, I think the script you attached has been mangled in some 
way or other; it appears to be missing the end of the 'paging_mon' 
function, as well as whatever code invokes that function (and the swap_mon 
function as well).  If I try to run it, I get:

dcf>$ ./swap_mon.ksh
\nSwap Space Report for grond.sourballs.org\n
Sun Aug  8 07:31:26 CDT 2004
./swap_mon.ksh: line 85: funtion: command not found
./swap_mon.ksh: line 135: syntax error: unexpected end of file
if I fix the typo (funtion -> function) I just get the 'unexpected EOF' 
error.

Both my 4.9 and 5.2.1 systems have /usr/bin/bc, so I assume it is part 
of the base install.  However, neither system has 'lsps', which appears 
to be an AIX command.

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


Re: Help Debugging Kshell Script???

2004-08-06 Thread David Fleck
On Fri, 6 Aug 2004, Hakim Z. Singhji wrote:
You must import my public key to open the attached file.
Why?  Why not just attach the plain file?
--
David Fleck
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Acquiring CPAN Modules

2004-08-04 Thread David Fleck
On Tue, 3 Aug 2004, Gerard Seibert wrote:
Does anyone have any suggestions, or is using CPAN the only way to get Perl 
modules installed?
Matthew Seaman has already addressed your question - I will just add that 
you might want to mention which modules you need that aren't in ports, so 
that possibly some kind soul might get around to porting them (or you 
could even become inspired to add them yourself).

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


Re: BigApache for Windows - Why doesn't BSD have an installerpackage like this ???

2004-08-01 Thread David Fleck
On Sun, 1 Aug 2004, DK wrote:
I edited rc.conf & added the line: amd_enable="YES"
However, my devices(Floppy & CDROM) are not automounting after logging in or
starting X  ???
In the process view of BSD, I have amd as waiting
Trying to understand man amd isn't helping. Any ideas ???
I currently automount 2 CD's, my floppy drive, a Zip drive, and an nfs 
export from another system, so I think I've got the basics figured out.
However, I use amd on a 4.9 system.  I think it's generally the same on 
5.x, but there may be differences.

Anyway, with that caveat, the best current resource that I know of for 
setting up automounting is

http://www.daemonnews.org/200202/automounting.html
There are a few more steps than just adding the rc.conf line.  You have to 
tell amd what filesystems / devices to mount, and where to mount them to.
These details go in the /etc/amd.conf and /etc/amd.map files, which you'll 
have to configure - see the amd.conf manpage for details on the former, 
and the URL above for details on the latter.

(Note that while the instructions at this URL work, they can in fact be 
improved upon with some experimentation.)

For more background on automounting with amd, these sites have been useful 
to me:

http://www.nber.org/amd.html
http://www.am-utils.org/
--
David Fleck
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: freeBSD How to you set the prompt

2004-07-29 Thread David Fleck
On Thu, 29 Jul 2004, Dan wrote:
Where and how do you set the prompt to show what user name that  your  on IE ROOT or 
user johndoe.
Eample of what the end results I would like to see.
# router1.pdx/chatusa.com user johndoe.
It depends on what shell you're using.  Read the man page for that shell, 
searching for information on the shell variable 'prompt'.

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


Re: BigApache for Windows - Why doesn't BSD have an installerpackage like this ???

2004-07-29 Thread David Fleck
On Wed, 28 Jul 2004, DK wrote:
... then you maybe right Remko, BSD may not be right for me.
I think it's becoming clear that it's not.  You seem to expect FreeBSD to 
be 'just like MSWindows, but Better!' - but it's *not* like MSWin, at all. 
If you keep expecting to install/adminsiter a UNIX-like system in the same 
way you install/administer a MSWindows system, you will be perpetually 
frustrated and disappointed, because you will *continually* run into the 
ways in which FreeBSD is nothing like Windows, and you will *never* use 
the OS in the way it was designed to be used (because your mind is stuck 
in Windows-land).

If you're seriously interest in *learning* how to use UNIX-like systems, 
take it slowly and ask lots of specific questions.  If you just want to 
rant, you're really wasting everybody's time.

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


Re: Install errors on old HP machine

2004-07-04 Thread David Fleck
On Sat, 3 Jul 2004, Danny MacMillan wrote:
> If you have another laptop, you can:
>
> 1. Put the hard drive in the other laptop.
> 2. Install a boot manager on it that will allow you to boot from CD.
> 3. Put the hard drive back in the HP.
> 4. Boot the HP from the FreeBSD and proceed as normally.
>
> That's what I did.  Here's the boot manager I used:
>
> http://btmgr.sourceforge.net/
>
> You can install the standard boot manager during FreeBSD installation if
> you want, or choose "None" to keep the fancy one.


Thanks for the information.  This machine is a low priority, but I'll try
your idea soon.


--
David Fleck
[EMAIL PROTECTED]

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


Install errors on old HP machine

2004-07-03 Thread David Fleck
Fishing for insight here.

Trying to install FreeBSD on an HP Pavilion 7050 from around 1996 or so.
Here's what I've tried so far:

Boot from 4.9 install CD, burned from ISO.  I've used this CD successfully
on other machines, so I assume it's OK.  The HP ignores it completely and
only boots from floppy or harddisk. (I thought, well, that's strange - and
discovered that I can't boot from a Knoppix or SuSE install CD either, no
matter what the BIOS settings.  Something strange here.)

Boot from a 4.9 boot floppy, created from the above-mentioned CD:

 grond# dd if=kern.flp of=/dev/fd0c
 2880+0 records in
 2880+0 records out
 1474560 bytes transferred in 49.180326 secs (29983 bytes/sec)

looks OK, right?  When I try to boot the machine with this, I get:

[...bunch of ok-looking stuff...]

load /kernel

/kernel text=0x258c5c zf_read: unexpected EOF
zf_read: unexpected EOF

elf32_loadexc archsw.readin failed
load: can't load file '/kernel': input/output error


So I downloaded kern.flp from
ftp://ftp14.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/floppies/,
used a different floppy disk, and tried again - same error.

I'm pretty much at a standstill here.  My current working hypothesis is
that my main machine's floppy drive is writing crap, or the HP's floppy
drive is reading crap.  I can live with that, but is there any other way
to get something useful onto this box?  (It does have a FreeBSD-supported
ethernet card in it.)

--
David Fleck
[EMAIL PROTECTED]

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


Re: Terminal Server

2004-06-21 Thread David Fleck
On Sun, 20 Jun 2004, Mike Miocevich wrote:

> Hi,
>
> Can FreeBSD act like Windows Terminal Server, i.e. remote access,
> multiple sessions?

Rather than asking a fairly loose and undefined question ('is software X
like software Y?'), perhaps you would be better served if you specified
more precisely what it is you want to be able to do.

At some levels, FreeBSD may be very like WTS - at other levels, it will be
very different.  Whether or not it will be useful to you depends on what
you want to do with it.

--
David Fleck
[EMAIL PROTECTED]

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


Re: blacklist(s)

2004-06-20 Thread David Fleck
On Fri, 14 May 2004, Warren Block wrote:
> On Fri, 14 May 2004, Gary Kline wrote:
> > Can anyone point me to the website that told how to set up
> > sendmail's FEATURE to use blacklists?  There were at least
> > fourr blacklist sites.  I've grep'd thru my ~/Mail directory,
> > can't find it?
>
> There should already be an example in /etc/mail/freebsd.mc (no
> linewrap):
>
> dnl FEATURE(dnsbl, `blackholes.mail-abuse.org', `"550 Mail from " $&{client_addr} " 
> rejected, see http://mail-abuse.org/cgi-bin/lookup?"; $&{client_addr}')
[...]

Sorry for this monumentally stupid-sounding question, but how do you tell
if the dnsbl feature is *working* or not?  I've got 2 set in my local .mc
files:

FEATURE(dnsbl, `bl.spamcop.net', `"550 Mail from " $&{client_addr} " rejected, see 
http://spamcop.net/bl.shtml?"; $&{client_addr}')
FEATURE(dnsbl,`combined.njabl.org',`Message from $&{client_addr} rejected - see 
http://njabl.org/lookup?$&{client_addr}')

(and yes, I did 'make cf install' afterwards), but I don't see any
indication of mail being rejected because of these in my maillog.  I do
see mail being rejected because of settings in /etc/mail/access.db.  Do
these work silently, or are they not working at all?

--
David Fleck
[EMAIL PROTECTED]

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


Re: cron can't find root or operator

2004-05-22 Thread David Fleck
On Sat, 22 May 2004, chip wrote:
> So, now I am trying to run -
> crontab crontab
> in my non-root user directory, as the non-root user, and it fails with this-
> "crontab: crontab: No such file or directory"
> I tried -
> crontab -u chip crontab -e(with and without the -e)
> also and it failed with the same message. So I then su'd and tried again
> and got the same message again. The I tried -
> /etc/crontab -u chip crontab  (with and without the -e)
> and get permission denied, as root.

1. Using the information in crontab(5), write a file containing your cron
jobs in your favorite text editor.

2. run 'crontab {filename}' to install the cron.

3. run 'crontab -l' to verify that cron has installed your file.


--
David Fleck
[EMAIL PROTECTED]

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


Re: cron can't find root or operator

2004-05-22 Thread David Fleck
On Fri, 21 May 2004, carvin5string wrote:
[...]
> It would be nice to see some info about the differance between the
> system and user crontabs and how to properly create and use a user
> crontab, as well as when/why one would want to use a user crontab.

I missed the earlier parts of this exchange, so forgive me if I'm
repeating what's already been said.  User crontabs allow specific users
to run crons that are meaningful to them only, without cluttering up the
system crons (or having to be root to make changes).

Users create crontabs for themselves with the 'crontab -e' command.  The
format is described in the crontab(5) man page.

If you already have a file written in the proper format, you can load it
as your crontab by specifying 'crontab {filename}'. (That's what section
6.6.1 in the handbook is trying to say.  Unfortunately, it is not at all
clear on this.)

For instance, I have the following cron for user dcf on my home system:

dcf>$ crontab -l
# run fetchmail, dump results to cronlog
*/15 * * * * /usr/local/bin/fetchmail --ssl -Z,571 >> /home/dcf/fetch.log
# timestamp fetch.log
0 * * * *date >> /home/dcf/fetch.log
# clean tex, lyx files out of home dir
0 1 * * */home/dcf/.clean


--
David Fleck
[EMAIL PROTECTED]

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


Re: issue newsyslog cmd from perl scrip

2004-05-13 Thread David Fleck
On Wed, 12 May 2004, JJB wrote:
[ ...snip...]>
> # issue command and capture verbose o/p to $line
> newsyslog "-v $logfile" > $line;  # this statement gets error
[...snip...]

It would be helpful to see exactly what the error is, but I would guess
it's that 'newsyslog' is not a perl function.  To run another executable
from within a perl script, you need to do something like:

system("newsyslog \"-v $logfile\" > $line");

there are, of course, other ways to do it as well.


--
David Fleck
[EMAIL PROTECTED]

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


Re: the most light weight X web browser?

2004-05-10 Thread David Fleck
On Sun, 9 May 2004, John Mills wrote:
> Reading the 'links' project pages puts graphic rendering at links version
> >=2.0, I believe.

Thanks, I eventually figured out that /usr/ports/links = v2.1, while
/usr/ports/links1 = v0.98.


--
David Fleck
[EMAIL PROTECTED]

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


Re: the most light weight X web browser?

2004-05-09 Thread David Fleck
'links -g', eh?

  dcf>$ links -g
  Unknown option -g

Some *other* links, perhaps?

--
David Fleck
[EMAIL PROTECTED]

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


Re: fetchmail/pine nonsense - newbie

2004-04-22 Thread David Fleck
On Wed, 21 Apr 2004, rainer [EMAIL PROTECTED] wrote:

> hello,
>
> i'm having trouble accessing my mail as 'user'.

When you go into pine's setup interface, what value do you have set for
inbox-path?  Does it point to /var/mail/{user}?  Is there actually any
mail in /var/mail/{user}?


--
David Fleck
[EMAIL PROTECTED]

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


mirroring: cvsup vs. rsync

2004-04-13 Thread David Fleck
Sorry, only tangentially a *BSD question, as it involves CVSup

I'm trying to set up a mirror of a CVS repository at a remote site.  The
repository has 1000's of fairly small files, and is about 75MB in total
size.

This seemed like an obvious job for CVSup, so I got a recent version
(16.1h) of the sources, built and installed on 2 Red Hat machines, one
local and one remote, set up the server directories and files, and wrote a
supfile for the client.  It seems to work ok.

The thing that surprises me is that I also tried mirroring the same
repository with rsync (using the -az options), and rsync is *much* faster,
so far the speed increases for rsync are on the order of 5X.

This makes me wonder if I'm using CVSup right.  I'm not using anything but
default settings for cvsupd (except for -b); is there some common set of
options that would give me a noticable speed increase?

Any suggestions welcomed, thanks.


--
David Fleck
[EMAIL PROTECTED]

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


Re: Changing the default text size on console session

2004-04-10 Thread David Fleck
On Sat, 10 Apr 2004, Colin J. Raven wrote:
> My question may not be specific to FreeBSD, but can anyone tell me how to
> change the default font size on a console (directly connected monitor)
> session when there is no X running?

I don't remember exactly, but the first step is 'man vidcontrol' followed
by 'man syscons'.


--
David Fleck
[EMAIL PROTECTED]

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


Re: FreeBSD and Internal IDE 100M ZIP drive

2004-03-27 Thread David Fleck
On Wed, 24 Mar 2004, Shawn Guillemette wrote:

> Looking to eject my 100M iomega ZIP deive from with in my shell script.
> URL's, Pasted examples, anything.. Im searching the net too... not much luck
> yet...

I haven't found anything that will eject the disk for FreeBSD.  I had a
binary tool like that back when I had a SuSE system, though. 'ziptool', or
something like that.  Perhaps it will work under Linux emulation...
though I tend to be pessimistic.

--
David Fleck
[EMAIL PROTECTED]

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


Re: MUTA

2004-03-23 Thread David Fleck
On Mon, 22 Mar 2004, Matthew Seaman wrote:
> mutt or pine are CLI e-mail programs (I prefer mutt as you can see
> from the headers of this message, but pine is possibly a bit
> friendlier to the beginner): both of those have the capability to read
> mail out of a POP mailbox.  However, they expect to have a local
> sendmail (or qmail or exim or postfix or other MTA) instance that they
> can inject e-mail into for sending messages.
[...]

Not necessarily - Pine, at least, can be configured to use a remote smtp
server:

(from my .pinerc file):
# List of SMTP servers for sending mail. If blank: Unix Pine uses
sendmail.
smtp-server=mail.isp.com/novalidate-cert


--
David Fleck
[EMAIL PROTECTED]

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


Re: special characters, ie spanish accents

2004-03-21 Thread David Fleck
On Sat, 20 Mar 2004, chip wrote:
> How do I get the special characters to work, which work in MS Windoze
> using the conbination of right-alt+4digit code? I need to be able to use
> certain accents and characters found in spanish writing. I am using
> FBSD-5.1 with XFCE window manager.

This may be of limited use to you, but the vim editor has this ability
built-in (if compiled that way).  To see what's available, start a vim
session and type ':help digraphs'.

--
David Fleck
[EMAIL PROTECTED]

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


Re: firefox: Where'd my scrollbars go?

2004-02-28 Thread David Fleck
On Sat, 28 Feb 2004, Kris Kennaway wrote:
> On Sat, Feb 28, 2004 at 04:48:04PM -0600, David Fleck wrote:
> > Just upgraded to firefox-0.8_4 from firebird.  Everything seems fine, but
> > I can't get horizontal or vertical scrollbars to show up... I can use the
> > arrow keys to page downwards, but I'd kind of like to have my scrollbars
> > back.  Anyone else seen a problem like this?
>
> Try removing and recreating your ~/.phoenix directory (or just move it
> elsewhere and copy out the bookmarks if you want to keep them).
> mozilla^Wphoenix^Wfirebird^Wfirefox has broken compatibility of this
> directory a number of times, so you will run into weird problems if
> you have an old enough installation.


That fixed it. Thanks very much.

--
David Fleck
[EMAIL PROTECTED]

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


firefox: Where'd my scrollbars go?

2004-02-28 Thread David Fleck
Just upgraded to firefox-0.8_4 from firebird.  Everything seems fine, but
I can't get horizontal or vertical scrollbars to show up... I can use the
arrow keys to page downwards, but I'd kind of like to have my scrollbars
back.  Anyone else seen a problem like this?

--
David Fleck
[EMAIL PROTECTED]

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


Re: seeking shell scripting resources

2004-02-22 Thread David Fleck
On Sun, 22 Feb 2004, Julien Gabel wrote:
> Haven't found much around at all on shell programming and would like
> to start learning it. Any more resources would be most welcome to find
> out about.

Shells differ in their programming constructs, so anything you learn in
one shell may not be transferrable to others.  As a personal preference, I
usually try to write scripts for /bin/sh (for portability), unless I need
a ksh or bash construct.  bash is a variant of sh, with a lot of bells and
whistles added, so techniques that work in bash *usually* work in sh (and
ksh).

With that preface, you might try http://www.tldp.org/LDP/abs/html/ as a
start.  It's bash-oriented, but a lot if it will apply to other shells (sh
and ksh, not so much csh and tcsh) as well.

And your system scripts are also an excellent place to learn by example.


--
David Fleck
[EMAIL PROTECTED]

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


Re: I have a dream, of a help/manual/doc system, which is simple to use?

2004-02-22 Thread David Fleck
On Sun, 22 Feb 2004, Aaron Peterson wrote:
> and of course the manual pages that install with each of the some 1
> add on programs.  "man "

...with *each* of them?  Ah, if only that were true..
dcf>$ man aspell
No manual entry for aspell


--
David Fleck
[EMAIL PROTECTED]

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


RE: sendmail logs and other questions

2004-01-23 Thread David Fleck
On Fri, 23 Jan 2004, JJB wrote:
> So guessing at what it's really trying to saw I have arrived at
> this to tell sendmail my sites domain name.
>
> cd /etc/mail
> ee freebsd.mc
> Change DOMAIN(generic) to DOMAIN(fbsdjones.com)
> Save file
> m4 freebsd.mc
> To compile the freebsd.mc source into the freebsd.cf file
> Reboot to enable


Read through the top of the /etc/mail/Makefile.  There are make targets to
handle creating the .cf files and installing them (rebooting is definitely
*not* necessary).

--
David Fleck
[EMAIL PROTECTED]

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


Re: stumped... .

2004-01-18 Thread David Fleck
On Sun, 18 Jan 2004, Rob wrote:
> David Fleck wrote on Sunday January 18, 2004:
> > Well, you didn't mention awk, but...
> >
> >
> > awk '$0 ~ /^PATTERN/ {x=1}; {if (x!=1) print $0}' < foo > bar
>
> Wouldn't it be neater to do
>
>   nawk '/^PATTERN/ { exit } ; { print }'
>
> ?

Why, yes, it would.  'awk' works with that, as well.

What does 'nawk' do that 'awk' doesn't?  I've got both binaries on my
system, but the nawk manpage is just a link to awk(1).

--
David Fleck
[EMAIL PROTECTED]

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


Re: stumped... .

2004-01-17 Thread David Fleck
On Sat, 17 Jan 2004, Gary Kline wrote:

>
>   I've written scores of scripts to hack text files, but this
>   one has me dead in the water.
>
>   How can I delete all lines from /^PATTERN to EOF??
>
>   ed - <
>   /^PATTERN
>   (.,$)d
>   w
>   q
>   foo
>
>   or anything else I've tried doesn't do it.  I could do it in
>   C/C++,but c'mon... !  Any solutions in sed, perl, or ed/ex?

Well, you didn't mention awk, but...


awk '$0 ~ /^PATTERN/ {x=1}; {if (x!=1) print $0}' < foo > bar


--
David Fleck
[EMAIL PROTECTED]

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


Re: trouble mounting a zip drive on parallel port

2004-01-17 Thread David Fleck
On Fri, 16 Jan 2004, Alex Walker wrote:
> I'm trying to mount a parallel zip drive on FreeBSD 4.8. I did re-configure
> my kernel to include the vpo driver and I get the following message on
> "dmesg":
>
> vpo0:  on
> ppbus0
> vpo0: EPP mode
> vpo0: VP0 error/timeout (5)
> vpo0: VP0 error/timeout (5)
>
> The errors are a little worrying, but it does seem to be seeing the drive.

Don't be too sure about that.  From my experience, what you're seeing here
is acknowledgement that the ppbus recognizes the existence of the vpo
driver, and that it's set for EPP mode.  This is prior to any attempt to
communicate with the zip drive itself.

I got the same error messages when my parallel cable came loose and the
zip was no longer communicating with the driver at all.

Do you get any messages like the following?  (I'm guessing not):

Creating DISK da0
da0 at vpo0 bus 0 target 6 lun 0
da0:  Removable Direct Access SCSI-2 device
da0: 96MB (196608 512 byte sectors: 64H 32S/T 96C)


If not, there's no device to mount.

Sorry, I'm no expert on debugging this, I can just tell you my experience.


--
David Fleck
[EMAIL PROTECTED]

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


Re: Compile Options

2004-01-16 Thread David Fleck
On Fri, 16 Jan 2004 [EMAIL PROTECTED] wrote:
>The Question is that I could not find anything that resembled Gentoo's USE
> Flags, so I'd like to know if THERE IS anything like it, where could I read
> 'bout it (I've been checking the ports chapter in the Handbook but.. no luck).


If you tell us what "Gentoo's USE Flags" are, we can tell you if there's
anything like them.


--
David Fleck
[EMAIL PROTECTED]

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


Re: your mail

2004-01-16 Thread David Fleck
On Thu, 15 Jan 2004, Evan Sayer wrote:
> FreeBSD-
> Please help, this is really important.  I was told that i could get rid
> of the ^m symbols at the  end of the lines in my web page's html code
> by using sed.  They said to execute sed "s//^m^m" index.html >
> index.html or something like that.  This got rid of everything in the
> file.  I really need this back, so any help would be greatly
> appreciated.


NEVER NEVER NEVER do  'sed 'foob' myfile > myfile'.  ALWAYS redirect sed
output to a temp file, then mv the temp file to the original file.

As someone else mentioned, your file is probably gone.  It *may* be
possible to recover the data, or it may not.  Here is a link that might be
useful in giving examples of recovering lost data on UNIX systems:

http://www.samag.com/documents/s=1441/sam0111b/0111b.htm

Your ability to recover the data will depend on a combination of luck and
amount of disk activity since the overwrite.  I don't know enough about
the internals of FreeBSD to know if there are any tools for lost file
recovery.


--
David Fleck
[EMAIL PROTECTED]

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


Re: /etc/rc.conf vs /etc/defaults/rc.conf

2004-01-13 Thread David Fleck
On Tue, 13 Jan 2004, August Simonelli wrote:
> Thanks all who helped me on this! I really do appreciate it!

By the way, this is covered in section 6.3 in the handbook, 'Core
Configuration'.

--
David Fleck
[EMAIL PROTECTED]

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


Re: Problem with amd (automount daemon)

2004-01-13 Thread David Fleck
On Mon, 12 Jan 2004, Ernst de Haan wrote:

> Still haven't completely figured out what the solution is, but I think I
> know what's happening:
>
> - kscd is hanging to the drive, even though there is no audio CD in there
> - amd fails at the first attempt to read /dev/cd0c and fails on succeeding
>   calls
>
> However, even if I reload amd with 'killall -HUP amd' it doesn't show
> anything below /mnt/cdrom/. Perhaps there is some other file locked?

It's possible. If you kill amd, can you mount the cdrom manually?
Does anything show up in /var/log/messages after you try to cd to the
mounted CD?


--
David Fleck
[EMAIL PROTECTED]

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


Re: agp error with Radeon 7500 disables DRI

2004-01-13 Thread David Fleck
To answer my own question, it turns out that (for my system, at least) the
agp.ko module *must not be preloaded* with loader.conf.  Commenting
agp_load="YES" out of /boot/loader.conf fixed all three problems listed
here.

On Sun, 11 Jan 2004, David Fleck wrote:
> 4.9-RELEASE-p1.
>
> At boot, the agp module appears to load OK:
>
> # dmesg | grep agp
> Preloaded elf module "agp.ko" at 0xc03d336c.
> agp0:  mem 0xe000-0xe7ff at device
> 0.0 on pci0
> agp0: allocating GATT for aperture of size 256M
>
> However, when starting X, the kernel spits out this message:
>
> /kernel: error: [drm:radeon_unlock] *ERROR* Process 265 using kernel
> context 0
>
> There is no such process when I look, of course...  the relevant section
> of the XFree86 log is:
>
> (II) RADEON(0): [drm] created "radeon" driver at busid "PCI:1:0:0"
> (II) RADEON(0): [drm] added 8192 byte SAREA at 0xc22ce000
> (II) RADEON(0): [drm] mapped SAREA 0xc22ce000 to 0x28279000
> (II) RADEON(0): [drm] framebuffer handle = 0xd800
> (II) RADEON(0): [drm] added 1 reserved context for kernel
> (WW) RADEON(0): [agp] AGP not available
> (II) RADEON(0): [drm] removed 1 reserved context for kernel
> (II) RADEON(0): [drm] unmapping 8192 bytes of SAREA 0xc22ce000 at
> 0x28279000
> (II) RADEON(0): Memory manager initialized to (0,0) (1024,8191)
>
> I'm assuming there's some relationship between (a) the kernel warning
> message, (b) the 'AGP not available' message, and (c) the fact that DRI
> doesn't work anymore (it did before I upgraded from 4.6.2 to 4.9).  Can
> anyone think of where to look to figure this out?

--
David Fleck
[EMAIL PROTECTED]

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


agp error with Radeon 7500 disables DRI

2004-01-11 Thread David Fleck
4.9-RELEASE-p1.

At boot, the agp module appears to load OK:

# dmesg | grep agp
Preloaded elf module "agp.ko" at 0xc03d336c.
agp0:  mem 0xe000-0xe7ff at device
0.0 on pci0
agp0: allocating GATT for aperture of size 256M

However, when starting X, the kernel spits out this message:

/kernel: error: [drm:radeon_unlock] *ERROR* Process 265 using kernel
context 0

There is no such process when I look, of course...  the relevant section
of the XFree86 log is:

(II) RADEON(0): [drm] created "radeon" driver at busid "PCI:1:0:0"
(II) RADEON(0): [drm] added 8192 byte SAREA at 0xc22ce000
(II) RADEON(0): [drm] mapped SAREA 0xc22ce000 to 0x28279000
(II) RADEON(0): [drm] framebuffer handle = 0xd800
(II) RADEON(0): [drm] added 1 reserved context for kernel
(WW) RADEON(0): [agp] AGP not available
(II) RADEON(0): [drm] removed 1 reserved context for kernel
(II) RADEON(0): [drm] unmapping 8192 bytes of SAREA 0xc22ce000 at
0x28279000
(II) RADEON(0): Memory manager initialized to (0,0) (1024,8191)

I'm assuming there's some relationship between (a) the kernel warning
message, (b) the 'AGP not available' message, and (c) the fact that DRI
doesn't work anymore (it did before I upgraded from 4.6.2 to 4.9).  Can
anyone think of where to look to figure this out?

I've put the XFree86.0.log file at
http://www.aracnet.com/~dcf/XFree86.0.log, and the X config file at
http://www.aracnet.com/~dcf/XF86Config in case they prove helpful.

thanks-

--
David Fleck
[EMAIL PROTECTED]

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


Re: where are the jabber man pages?

2004-01-11 Thread David Fleck
On Mon, 12 Jan 2004, Gautam Gopalakrishnan wrote:
> pkg_info -L jabber-1.4.2 | grep /man
> should work

thanks...

dcf>$ pkg_info -L jabber-1.4.2
Information for jabber-1.4.2:

Files:
/usr/local/sbin/jabberd
/usr/local/etc/jabber.xml.sample
/usr/local/etc/rc.d/jabberd.sh
/usr/local/include/jabber/lib/lib.h
/usr/local/include/jabber/lib/xmlparse.h
/usr/local/include/jabber/platform-settings
/usr/local/include/jabber/jabberd.h
/usr/local/include/jabber/pth.h
/usr/local/lib/jabber/dialback/dialback.so
/usr/local/lib/jabber/dnsrv/dnsrv.so
/usr/local/lib/jabber/jsm/jsm.so
/usr/local/lib/jabber/pthsock/pthsock_client.so
/usr/local/lib/jabber/xdb_file/xdb_file.so

...that's it.  No documentation *at all*.  That just doesn't seem right.
Heck, I'd be happy to cough up a minimal man page...


--
David Fleck
[EMAIL PROTECTED]

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


where are the jabber man pages?

2004-01-11 Thread David Fleck
4.9-RELEASE-p1.

I've installed jabber (successfully, as far as I can tell) from ports,
cvsup'ed Jan. 10.

But I can't find any documentation for it on my system, either as man
pages, docs in /usr/local/share/doc, info pages...

I know I can wade through information on the jabberstudio.org web site,
but shouldn't something get installed on the machine?

--
David Fleck
[EMAIL PROTECTED]

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


Re: appending to CFLAGS

2004-01-10 Thread David Fleck
On Sun, 11 Jan 2004, Gautam Gopalakrishnan wrote:
> You could take the easy way and add it to CFLAGS in /etc/make.conf

Yes, I figured that was the easiest thing to do.  Also, I decided that I'd
misread the man page for make, and that the '+=' construct for variables
is not supported as a command-line option.

thanks-

--
David Fleck
[EMAIL PROTECTED]

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


appending to CFLAGS

2004-01-10 Thread David Fleck
4.9-RELEASE-p1.

I'm trying to debug a kernel module (vpo.ko) that used to work, but now
doesn't.  As a first step, I'd like to build the module in
/usr/src/sys/modules/vpo with VPO_DEBUG set.

However, my attempts to add the VPO_DEBUG define to the build fail,
because my syntax results in VPO_DEBUG replacing CFLAGS, not appended to
it.  I'm trying:

make "CFLAGS+=VPO_DEBUG"

in pretty much every permutation I can think of - quoted, unquoted,
whitespace separating tokens, no whitespace.  Each time, all the CFLAGS
are blown away and replaced by VPO_DEBUG.  How do I append a variable to
CFLAGS?

I'm sure this is something blindingly simple, but I'm not seeing it in the
developer's handbook or the make manpages.


--
David Fleck
[EMAIL PROTECTED]

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


Re: Problem with amd (automount daemon)

2004-01-09 Thread David Fleck
On Tue, 6 Jan 2004, Ernst de Haan wrote:
> I've got a problem with amd. This is the error I get when I access my CD-ROM
> drive at /mnt/cdrom/:
>
> /host/localhost/cdrom: mount (amfs_auto_cont): Operation not permitted

Some basic configuration-type questions:

Is amd running, and with what arguments?  What does your /etc/amd.conf
file look like?  Are portmap and nfsiod running?


Also, I've found that at least some CD audio playing programs, like ascd,
will hang onto the cd device even when they aren't playing and there's no
audio CD in the tray.  If I try to access a data CD after playing an audio
CD, I will get the error you see unless I kill the CD-playing program.

Do an 'fstat /dev/{CD_device_name}' and see if something is hanging onto
the cd.  For my system that's

fstat /dev/racd0c


--
David Fleck
[EMAIL PROTECTED]

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


RE: starting daemons at server start

2004-01-04 Thread David Fleck
On Sun, 4 Jan 2004, Micke P wrote:
> Examples of this script(working :-))?

>$ cat /usr/local/etc/rc.d/apache.sh
#!/bin/sh

case "$1" in
start)
[ -x /usr/local/sbin/apachectl ] && /usr/local/sbin/apachectl start > 
/dev/null && echo 'apache: start'
;;
stop)
[ -r /var/run/httpd.pid ] && /usr/local/sbin/apachectl stop > /dev/null && 
echo ' apache: stop'
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac

exit 0


works on my system (4.9).

--
David Fleck
[EMAIL PROTECTED]

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


Re: How do I install Netscape Linux binary on FreeBSD 4.3?

2004-01-01 Thread David Fleck
On Thu, 1 Jan 2004, Ken Seggerman wrote:
> I am running FreeBSD 4.3 [...]

That's really old, by the way.

> Do I untar and unzip it first and hope that any installation instructions
> will work on FreeBSD? Leave it as a tar.gz, and install it with pkg_add,
> or rpm?

Does

pkg_add netscape-i686-pc-linux-gnu-sea.tar.gz

work?


> The FreeBSD Handbook goes into great detail about how to brand elf
> binaries, how to install specific software like Mathematica and Oracle,
> but doesn't say how to install an ordinary Linux binary or how to install
> Netscape.


The instructions at

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu-lbc-install.html

seem like a good first step.

--
David Fleck
[EMAIL PROTECTED]

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


RE: ports & package names changing?

2003-12-31 Thread David Fleck
On Wed, 31 Dec 2003, fbsd_user wrote:
> This thread is not intended to point fingers at any one or start an
> flame war.
> Just trying to point out problem  and get some kind of feedback from
> the
> list of their thought on the subject.


To be honest, I'm not sure that anyone else considers this to be a
problem.


--
David Fleck
[EMAIL PROTECTED]

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


RE: ports & package names changing?

2003-12-31 Thread David Fleck
On Wed, 31 Dec 2003, fbsd_user wrote:
> Yes, but doing it that way as example,  entering 'apache'  would
> download apache13 when I really wanted apache20.  That logic does
> not follow through, it's only valid for single versions of an
> package.

Yes, it's true that the 'apache' package gets you 1.3.x, and 'apache2'
gets you 2.0.x, and this is not clear from the information listed at
http://www.freebsd.org/ports/www.html.  Perhaps some information could be
added to the apache2 package description so that people know what package
name to use for apache vs. apache2.

In the majority of cases, there aren't separate ports for different
versions of an application, so this problem doesn't exist for them.

It seems to me that making selected package descriptions more descriptive
would be a whole lot safer than making the changes you suggest.


--
David Fleck
[EMAIL PROTECTED]

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


Re: Where do I find all the available options/devices I can use in my kernel config

2003-12-31 Thread David Fleck
On Wed, 31 Dec 2003, Dany wrote:
> I looked at the GENERIC kernel config but there were no mention of those
> 2 options. Where can I find an exhaustive list of available
> options/devices I can use in my custom kernel config file?

Look at the LINT config file, located at /usr/src/sys/i386/conf/LINT (for
example).

--
David Fleck
[EMAIL PROTECTED]

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


RE: ports & package names changing?

2003-12-31 Thread David Fleck
On Wed, 31 Dec 2003, fbsd_user wrote:
> The FBSD handbook says to use
> http://www.freebsd.org/ports/index.html  to find port and package
> names and it only shows the names with  versions suffix appended to
> the names.
> Pkg_add -r  points to directory location with out names with
> versions suffix appended.
>
> >From user view point,  pkg_add -r  does not work because user is
> entering name with version suffix appended as they are led to
> believe is the correct name as instructed by the FBSD handbook.

If you read
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/packages-using.html
 it says, about half way down the page:

"Note that in the example above lsof is used instead of lsof-4.56.4. When
the remote fetching feature is used, the version number of the package
must be removed. pkg_add(1) will automatically fetch the latest version of
the application."

Can you give a concrete example of what the handbook says, and how
following the steps causes a problem?  I'm not seeing it, it's working
fine for me.


--
David Fleck
[EMAIL PROTECTED]

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


Re: ghostview missing libc.so.4?

2003-12-28 Thread David Fleck
On Sun, 28 Dec 2003, Chip Wiegand wrote:
> Still one problem with doing that - after pkg_delete ghostview and
> pkg_add -r ghostview I get these errors -
> cannot find ghostscipt in your path - install your favorite version of
> ghostscript, otherwise the program is useless
> warning: package 'ghostview-1.5 ' requires 'imake-4.3.0' but found
> 'imake-4.3.0_2'
> warning: package 'ghostview-1.5  requires 'freetype2-2.1.4_1' but found
> 'freetype2-2.1.5._1'
> warning: package 'ghostview-1.5 requires 'fontconfig-2.2.0' but found
> 'fontconfig-2.2.90_3'
> warning: package 'ghostview-1.5 requires 'XFree86-libraries-4.3.0_5' but
> found 'XFree86-libraries-4.3.0_6'
>
> I have ghostscript-gnu-7.07_4 installed.

The 'I can't find ghostscript (gs) in your search path.' message appears
to be bogus -- I get the same message, but ghostview runs just fine after
the install ( and gs *is* in my path, /usr/local/bin/gs).

--
David Fleck
[EMAIL PROTECTED]

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


Re: dri on radeon7500, few of fps

2003-12-24 Thread David Fleck
On Mon, 22 Dec 2003, [KOI8-R] ??? ??? wrote:
> Hi
> I'm using Freebsd 5.1 and Radeon 7500 on my desktop
> machine. Some problem is dri does not working correctly(a
> few of fps). DRI started normally. In my kernel.config are
> active next options: device radeondrm, device vesa. But
> glxgears show me only 950 fps.

You may need to install the drm-kmod port.

--
David Fleck
[EMAIL PROTECTED]

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


Re: CPAN behaviour

2003-12-24 Thread David Fleck
On Mon, 22 Dec 2003, Odhiambo Washington wrote:
> I hope I did not miss anything about CPAN changing or something but the
> behaviour I see here is not normal, or is it?

Are you still having this problem?  I was able to get SpamAssassin off
CPAN this morning.

--
David Fleck
[EMAIL PROTECTED]

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


Re: Vim Shared OBject.

2003-12-13 Thread David Fleck
On Fri, 12 Dec 2003, S.Mehdi Sheikhalishahi wrote:
>  I installed FreeBSD in my box.I want to start vim
> editor
> but the following error occurred.I think I must set
> approprite path to Shared OBject library path.Please
> Help me.
>  /usr/libexec/ld-elf.so.1: Shared object "libc.so.6"
> not found.
>
> My FreeBSD specification is :
>
> bash-2.05# uname -a
> FreeBSD cabinet.amnafzar.com 4.3-RELEASE FreeBSD
> 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT 2001
> [EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC
> i386

Comments:
1) That's a really old version of FreeBSD you're using. That by itself may
   cause you problems.

2) Where did this version of vim come from, and how did you install it?
   The fact that it's looking for libc.so.6 makes me think it might be a
   version compiled for Linux instead of FreeBSD (my version of vim links
   to libc.so.4, for example) and if that is true, you need to have your
   system set up for Linux compatability.  See Chapter 22 in the FreeBSD
   handbook, 'Linux Binary Compatibility' for details.

(http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu.html)

--
David Fleck
[EMAIL PROTECTED]

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


Re: amd documentation: why is it so confusing?

2003-12-03 Thread David Fleck
On Wed, 3 Dec 2003, Rob wrote:
> However, I am getting totally stuck in the amd manuals. Are the amd manuals
> really that bad, or is it me?
>
> For example:
> The FreeBSD handbook mentions amd in one sentence, by referring to the
> manual pages of amd and amd.conf. So all I have are the manual pages
> on the amd commands and files. The amd manual talks about a map file,
> but there's nowhere information to be found on what the structure of
> such a map file is.
>
> Is the creation of the amd-map file too trivial, or so complicated that
> nobody dares explaining it?
>
> Anyone who can point me to better help on this?

While FreeBSD's man pages are usually extremely detailed, I have found
that there is a layer of documentation - more complex and detailed than
the Handbook, but more generalized and less in-depth than the man pages -
that is simply missing in the FreeBSD world.  The layer that would be
occupied in Linux-land by the HOWTOs is made up of scattered web pages,
mailing lists like this one, and newsgroups.

Anyway, I found this very helpful for automounting:

http://www.daemonnews.org/200202/automounting.html

below is my /etc/amd.map file, which mounts 2 CD-ROM drives, a floppy, and
a Zip drive.  (Pretty much just like the article above.)

# $FreeBSD: src/etc/amd.map,v 1.8 1999/09/13 17:09:07 peter Exp $
#
/defaults   type:=host;fs:=${autodir}/${rhost}/host;rhost:=${key}
*   opts:=rw,grpid,resvport,vers=2,proto=udp,nosuid,nodev

localhost   type:=auto;fs:=${map};pref:=${key}/

localhost/cdrom type:=program;fs:=/mnt/cdrom;\
mount:="/sbin/mount mount /mnt/cdrom";\
unmount:="/sbin/umount umount /mnt/cdrom"

localhost/cdrom2type:=program;fs:=/mnt/cdrom2;\
mount:="/sbin/mount mount /mnt/cdrom2";\
unmount:="/sbin/umount umount /mnt/cdrom2"

localhost/zip   type:=program;fs:=/mnt/zip;\
mount:="/sbin/mount mount /mnt/zip";\
unmount:="/sbin/umount umount /mnt/zip"

localhost/floppytype:=program;fs:=/mnt/floppy;\
    mount:="/sbin/mount mount /mnt/floppy";\
unmount:="/sbin/umount umount /mnt/floppy"




--
David Fleck
[EMAIL PROTECTED]

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


Re: Statically linked opensshd

2003-11-29 Thread David Fleck
On Wed, 26 Nov 2003, Volf, Frank wrote:
> I'm trying to statically link opensshd (from the portable openssh port)
> on a FreeBSD 4.9 system, but apparently it fails statically linking
> libpam.
> .
[snip gcc chatter]
[snip linker complaints]


I'm using an old 4.6.2 system, so this may be of limited value to you, but
for what it's worth... on my system libpam.a does not define these symbols
either.  It looks like I would have to include the following libs (at
least - I may have missed some):

libopie.a
libradius.a
libskey.a
libtacplus.a

to get the undefined symbols in libpam.a.  (There are also lib*_p.a
versions of each of these - I don't know what the difference between them
is.)

Hope that helps somewhat.

--
David Fleck
[EMAIL PROTECTED]

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


Re: grep & ls question

2003-11-18 Thread David Fleck
On Tue, 18 Nov 2003, Marty Landman wrote:

> I have transferred over, via ftp a whole bunch of stuff. Some of the files
> got allocated but not transferred so I thought a convenient way to identify
> them would be grepping a list dir output. Here's a sample of what I get:
>
> Swami:: ls -Rlh /usr/local/www/data/ | grep ' 0B'
> -rw-r--r--  1 Marty  wheel 0B Nov 18 17:54 img52.jpg
> -rw-r--r--  1 Marty  wheel 0B Nov 18 17:54 img54.jpg

find /usr/local/www/data/ -size 0


--
David Fleck
[EMAIL PROTECTED]

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


portupgrade for python fails: patching doesn't work

2003-10-29 Thread David Fleck
FreeBSD 4.6.2.
Anybody else seeing this problem?

===>  Extracting for python-2.3.2
>> Checksum OK for python/Python-2.3.tgz.
/usr/bin/sed -e '1s,^.*$,#!/usr/local/bin/python2.3,'
/usr/ports/lang/python/work/Python-2.3/Tools/scripts/pydoc >
/usr/ports/lang/python/work/pydoc2.3
/usr/bin/sed -e '1s,^.*$,#!/usr/local/bin/python2.3,'
/usr/ports/lang/python/work/Python-2.3/Tools/scripts/idle >
/usr/ports/lang/python/work/idle2.3
===>  Patching for python-2.3.2
===>   python-2.3.2 depends on file: /usr/local/bin/sed_inplace - found
===>  Applying FreeBSD patches for python-2.3.2
1 out of 2 hunks failed--saving rejects to configure.rej
>> Patch patch-configure failed to apply cleanly.
>> Patch(es) patch-Modules::_sre.c applied cleanly.
*** Error code 1

I tried this a week ago, with the same results - did a make distclean this
morning and tried again, still failing in the same place.

--
David Fleck
[EMAIL PROTECTED]

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


Re: CVSup supfile question

2003-10-19 Thread David Fleck
On Sat, 18 Oct 2003, Alden Louis-Pierre wrote:
> So running my sample CVSup supfile would not patch my system for the
> security advisories from SA-03:08 - SA-0318(as of 10/19/03)?  I'm under
> the impression this supfile would take care of security advisories,
> being that I'm updating the /usr directory.  For everything to take in
> effect I must build and install my kernel as well?  I'm looking through
> the FreeBSD Handbook and I don't
> see this extra step.

Running cvsup will update the files in /usr/src:

# prefix=/usr
# This specifies where to place the requested files.  A
# setting of "/usr" will place all of the files requested
# in "/usr/src" (e.g., "/usr/src/bin", "/usr/src/lib").
# The prefix directory must exist in order to run CVSup.

but these are the source files, not binaries.  To update your system, you
need to build and install the resulting binaries.

Read sections 21.3 and 21.4 of the handbook. (The process is not as scary
as it sounds, but you do have to be careful.)


--
David Fleck
[EMAIL PROTECTED]

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


Re: CVSup supfile question

2003-10-19 Thread David Fleck
On Sat, 18 Oct 2003, Alden Louis-Pierre wrote:
> Does this mean if I were to do a fresh install of FreeBSD 4.8 and then
> CVSup my source all known security issues would be resolved for the
> particular FreeBSD I'm running?

Not quite - it means that your sources would be up-to-date.  You'd still
have to build and install the updated code.


--
David Fleck
[EMAIL PROTECTED]

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


Re: Howto find packages

2003-10-18 Thread David Fleck
On Thu, 16 Oct 2003, Simon Rutishauser wrote:
> But, apt-cache isn't yet finished there. You can also run
>
> apt-cache show gnomeicu
>
> which presents you lots of details about the one package with this name:
[...]
> is there something like that for FreeBSD, too?


pkg_info will provide most, if not all, of that information, provided you
feed it the right command line options.


--
David Fleck
[EMAIL PROTECTED]

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


Re: How to downgrade X 4.3 --> 4.2?

2003-10-05 Thread David Fleck
On Sun, 5 Oct 2003, fbsd2 wrote:
> ...but was wondering if I could work around it by backing
> out the upgrade.

I had to do the same thing - 4.3 hosed my system good, and I had to go
back to 4.2.x if I wanted a GUI.  This was a few months ago, so I'm not
sure I'm remembering all the steps, but I think I used pkg_delete to get
rid of all the XFree-*-4.3 ports, and then reinstalled 4.2 from package
files, then ran pkgdb -F to fix all the dependency issues.  It was a pain,
but not that much of a pain.

--
David Fleck
[EMAIL PROTECTED]

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


Re:Re: Cat a directory

2003-09-23 Thread David Fleck
On Tue, 23 Sep 2003, Karlsson Mikael HKI/SOSV wrote:
[...]
> which are all supported in for example GNU/Linux ls, except 10 and 11,
> but then they have an extra option to put different coloring on files
> with a special ending. So that archives, moviefiles, soundfiles etc.
> have a special color while in BSD they're all grey/white.

...so install the GNU ls port.  Configure as you wish.  The End.

Hey, *I* think that bash ought to be the default shell in FreeBSD.  But
it's not.  So I install bash and get on with life.


--
David Fleck
[EMAIL PROTECTED]

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


Re: CVSUP howto ???

2003-09-22 Thread David Fleck
On Mon, 22 Sep 2003, Brent Bailey wrote:
> I was looking aroung trying to find a decent howto on CVSUP...seeing as
> ive never had good luck with it .. i found this ...does this look like the
> right procedure ??
> this is what ive been doing ...but ive only had it actually work one time
> ..all  other systems ive done this on,,,it has failed BADLY
> hence cant do "ps" or "w" or other needed commands

How far do you plan to update these machines?  Given your past experiences
with cvsup/mergemaster, if you're planning a major upgrade (from 4.6 to
5.x or even STABLE), are you sure you wouldn't be better off
re-installing?

> *default release=cvs tag=RELENG_4
this will get you the head of the FreeBSD-STABLE branch - if you just want
to get all the security updates to 4.6, you should use RELENG_4_6

--
David Fleck
[EMAIL PROTECTED]

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


Re: What determines if kernel modules are auto-loaded?

2003-09-22 Thread David Fleck
On Mon, 22 Sep 2003, Lowell Gilbert wrote:
> Quite simply, it *can* be used as a module.  Your problems trying to
> do that are probably pilot error; at a guess, you forgot to remove
> NFS_ROOT from the kernel configuration when you removed NFS.

You, sir, are a genius.  Yes, that is exactly what I did.  Thanks.

--
David Fleck
[EMAIL PROTECTED]

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


Re: What determines if kernel modules are auto-loaded?

2003-09-22 Thread David Fleck
On Sun, 21 Sep 2003, Sergey DoubleF Zaharchenko wrote:
> On Sun, 21 Sep 2003 18:53:31 + Sergey "DoubleF" Zaharchenko <[EMAIL PROTECTED]> 
> probably wrote:
> > Mostly the program which uses the device. For instance, vnconfig and
> > mount will load the necessary modules because they are supposed to be
> > run as root and expect to have the necessary priveleges. Why would a
> > programmer make a mp3 player that would auto-load the sound module? An
> > mp3 player should be portable and should not depend on such things as a
> > kernel module. Moreover, the player is not supposed to run as
> > root, which is required to load kernel modules.
>
> You should read kldload(2), etc. if you want to load modules in your program.

Thanks for the response - it helps shed some more light on things.  But I
don't want to load modules for 'my' program - I'm far less interested in
this from a development point of view than from a system admin. point of
view.

Why, for instance, does my (4.6.2-RELEASE-p20) system have a nfs.ko kernel
module, and a line in /boot/defaults/loader.conf to enable this module,
but (apparently) no way to *use* the module?  If I compile a kernel with
'options NFS' uncommented in the kernel config file, the nfs module gets
built into the kernel, and loading the module is pointless - however, if I
comment out 'options NFS', the kernel can't compile because of missing
symbols.  So I have a chunk of code that gets built by the makefile as a
module, but can't be used as a module?  I find this all very unintuitive.

What seems to be happening during the kernel compile process is that a
certain number of modules are always compiled, regardless of config file
settings - the settings only determine if a given chunk of code makes it
into the kernel itself.  If the module is compiled into a .ko file, and if
the code isn't present in the kernel, then it can be loaded by kldload. Is
this correct?

--
David Fleck
[EMAIL PROTECTED]

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


What determines if kernel modules are auto-loaded?

2003-09-21 Thread David Fleck
I'm trying to get a better understanding of how kernel modules work in
FreeBSD - one thing at the moment I can't figure out is why some modules
(e.g., cd9660.ko, usb.ko) will be automatically loaded when needed, while
other modules (vpo.ko, snd.ko) are not.  What causes the difference in
behavior?

Is there a reference describing the use of kernel modules in detail?
Everything I've found so far is either too general (the Handbook) or way
too specific and development-oriented ("here's how to write a kernel
module that will hack someone's system!").

--
David Fleck
[EMAIL PROTECTED]

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


Re: Replacement for WinRar?

2003-09-14 Thread David Fleck
On Sun, 14 Sep 2003, Dragoncrest wrote:
> ...but one thing the list doesn't tell me is what is a good replacement
> in nix that does everything winrar does.

What exactly does WinRar do that you want to replicate?
'Everything' is pretty broad.


--
David Fleck
[EMAIL PROTECTED]

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


Re: XFree86 Configuration

2003-09-08 Thread David Fleck
On Tue, 9 Sep 2003, Gavin Hubbard wrote:
> In section 5.4.2 it says to run "XFree86 -configure" as root to build the
> initial configuration. Unfortunately this command has completely locked up
> the system's primary console and I am unable to switch to a virtual terminal
> to kill the offending process.
>
> First of all, what has gone wrong? (my framebuffer is supported by
> XFree86-4). Second, how do I break out of the crashed console? Is there a
> magic key combination I can use? The system seems to be alive (it responds
> to pings) but I have not enabled telnet/ssh or any other remote admin tools.

Umm, I can't offer much help, but I found that my system behaved in the
exact same manner when I installed XFree86 4.3.  It works fine, however,
with XFree86 4.2.0 and 4.2.1.  It seems to be a problem with the
video card driver recognizing the chipset correctly.  Since I could get it
to work with 4.2.x, I didn't bother investigating further.

What's your video card?  Mine is an ATI Radeon 7500.  I've looked at
www.xfree86.org, but haven't seen any indication that this has been
reported as a problem.

As far as recovering control of the system, I think you may have to
power-cycle it.


--
David Fleck
[EMAIL PROTECTED]

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


Re: Making a certain cron job

2003-09-07 Thread David Fleck
On Sun, 7 Sep 2003, Jason Lieurance wrote:
> Thank you for the response. Does the date part (Date=`date +"%Y-%m-%d"`)
> go as part of the cron job? Thanks again.

Well, you could cram all this into a crontab line, but you'll probably
want to use the cron entry to run a script containing these commands.
This way, you can make the script more elaborate, do error-checking, have
possible alternate responses mailed, things like that.
For what you want to do, the script could be very simple:

 #!/bin/sh
 # send_http_log.sh : mails httpd logfile.
 Date=`date +"%Y-%m-%d`
 cat /var/log/http/${Date}-error_log | mail -s log [EMAIL PROTECTED]
 exit

and then in the crontab have a line referring to the script:

0 1 * * * /usr/local/bin/send_http_log.sh

or, alternately, add the script into the /etc/periodic/* directories to
have it run by the system-wide cron.

--
David Fleck
[EMAIL PROTECTED]

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


Re: Making a certain cron job

2003-09-07 Thread David Fleck
On Sun, 7 Sep 2003, Jason Lieurance wrote:

> Hello,
>
> We use cronolog to rotate our apache log files so are log files look like so:
>
> 2003-09-07-error_log
>
> Now, I want to make a cron job to mail the log to our webmaster every
> day but I having terrible visualizing how to do it. If I do 'cat
> /var/log/http/2003-09-* | mail -s log [EMAIL PROTECTED]' he'll get every
> log of the month not to mention next month I'll have to edit the job. I
> know I'll need to use variables but I'm drawing a blank. Please advise.

Date=`date +"%Y-%m-%d"`

cat /var/log/http/${Date}-error_log | mail -s log [EMAIL PROTECTED]


?

--
David Fleck
[EMAIL PROTECTED]

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


Re: automatic standby after idle timeout

2003-03-23 Thread David Fleck
On Sun, 23 Mar 2003, mike mcgranahan wrote:
> thanks for the info.  i do use xset for controlling
> dpms in X, but i am interested in something that will
> a) put the system into standby, not just the monitor,
> and b) work regardless of X running.
>
> any other suggestions or ideas?  i'm finally switching
> from windows to unix "full-time", so i am stuck
> choosing between freebsd and linux (gentoo).  i really
> like freebsd's integration, configuration,
> documentation and ports system, but auto-standby is
> important to me.  thie absence of this feature seems
> to me to be a significant, though not vital,
> omission--particularly useful in computer labs.  is
> anyone aware of a more general daemon or facility that
> can execute a command after a certain period of system
> idleness... perhaps some modified cron?

I'm not sure what is involved in putting the *system* into standby, as
compared to just the monitor - Linux distros usually provide a utility
called 'hdparm' to set spin-down and sleep times for IDE drives, don't
know if theres a SCSI equivalent.  I haven't found a similar utility in
FreeBSD - possibly one of the tunables mentioned in 'man ata' or 'man
tuning' would do it, I haven't looked very hard.

--
David Fleck
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: automatic standby after idle timeout

2003-03-22 Thread David Fleck
On Fri, 21 Mar 2003, mike mcgranahan wrote:
> under windows it is possible to configure the system
> to enter APM standby after a certain amount of system
> inactivity.  in linux their is a program called sleepd
> which will initiate an APM standby after a
> configurable period of system inactivity, which works
> both on the console as well as while X is running.  is
> there any way to achieve the same effect under
> freebsd, where the system will enter standby after,
> say, 10 minutes of no activity?

try 'man xset'. grep for the dpms options.  In my AfterStep configuration,
I use
xset dpms 600 1200 1800

to set standby (10 min) suspend (20 min) and off (30 min) times.

--
David Fleck
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


  1   2   >