Re: CVSUPIT pkg_add 90% good/10% strange

2003-12-12 Thread Chris Pressey
On Fri, 12 Dec 2003 12:49:34 +1300
Richard Shea [EMAIL PROTECTED] wrote:

 Hi Chris -  Thanks for the advice and sorry for the delay. I've taken
 a look in /usr/ports/net/cvsupit but pkg-plist does not exist

That's quite possibly why it failed to install in the first place :)

 so given
 all the other factors I think I will conclude that things are probably
 OK.

Yes.

 I suppose one day I will crack this updating of FreeBSD machines. To
 date I have been using FreeBSD for three years and I have two
 different experiences 
 
 (A) a machine I installed 3.x on three years ago have never touched
 since and it runs beautifully (still I worry 
 about security holes), everything I could ask for.
 
 (B) two other machines I have installed 4.x on in the last 6 months
 (both, to some degree 'play' machines). On both have attempted to
 update sources etc via CVSUP and have never had anything but
 grief/pain/boredom. I'm sure there are people out there who do this
 all the time and it all works but I'm not one of them ! Maybe one day
 !

Maybe I got lucky, but I never had many great problems doing it...
last time I did it, it went something like:

- install cvsup-without-gui from package on CD using /stand/sysinstall
- copy /usr/share/examples/cvsup/src-supfile to /etc/cvsup/src-supfile
- edit /etc/cvsup/src-supfile so that it reads like:

  *default host=cvsup5.FreeBSD.org
  *default base=/usr
  *default prefix=/usr
  *default release=cvs
  *default tag=RELENG_4
  *default delete use-rel-suffix
  *default compress
  src-all

- do similarly for ports-supfile and doc-supfile
- edit /etc/make.conf like:

  SUP_UPDATE= yes
  SUP=/usr/local/bin/cvsup
  SUPFLAGS=   -g -L 2
  SUPFILE=/etc/cvsup/src-supfile
  PORTSSUPFILE=   /etc/cvsup/ports-supfile
  DOCSUPFILE= /etc/cvsup/doc-supfile

- cd into /usr/src
- run 'make update'
- and that's all!

 thanks again for your advice.
 
 regards
 
 richard.

No problem.

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


How to list all packages in a given category?

2003-12-14 Thread Chris Pressey
Hi all,

Apologies in advance if this is a stupid question, but I couldn't find
anything relevant in the man pages or with Google:

How can I list all the packages I have installed in a certain category?

I'm thinking it should be something like 'pkg_info -C games', but AFAICT
pkg_info doesn't have any such option like that.

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


Re: Secure Deletion (Like shred for Linux)??

2003-12-15 Thread Chris Pressey
On Mon, 15 Dec 2003 13:31:52 -0600
Pratt, Benjamin E. [EMAIL PROTECTED] wrote:

 Hello -
 
 I'm fairly new to FreeBSD and was wondering if there are any other
 programs out there for secure deletion.  I know that you can use the
 -P flag with rm to overwrite files but you can't specify the
 iterations of overwriting.
 
 What I'm looking for is something similar to (or exactly like) shred
 for Linux.  Is it out there??
 
 Thanks,
 
 Ben

Hi,

The only programs I've seen like what you describe are 'obliterate' and
'srm'.

  /usr/ports/sysutils/obliterate
  /usr/ports/security/srm

I'm not sure either of them does exactly what you want (specifying how
many times to overwrite the file,) but they may be worth checking out.

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


Re: Secure Deletion (Like shred for Linux)??

2003-12-15 Thread Chris Pressey
On Mon, 15 Dec 2003 13:55:07 -0600
Pratt, Benjamin E. [EMAIL PROTECTED] wrote:

 Chris -
 
 It doesn't look like they do quite what I'd like.  Here's the man page
 for shred (http://unixhelp.ed.ac.uk/CGI/man-cgi?shred+1).  Shred is
 used in a shell script called Autoclave
 (http://staff.washington.edu/jdlarios/autoclave/) to securely wipe a
 hard drive before getting rid of it.  I've attached the autoclave.sh
 script (as long as attachments are allowed, ask me for it if you don't
 get the attachment).
 
 Ben

Ben,

My bad!  Shred *does* indeed exist on FreeBSD; it's part of

  /usr/ports/sysutils/fileutils

and it's installed as 'gshred' (because all the fileutils are prefixed
with a 'g' to avoid collisions with BSD versions of the same tools.)

You should be able to install the fileutils port, create a symbolic link
from 'shred' to 'gshred', and run the autoclave script.

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


Re: Secure Deletion (Like shred for Linux)??

2003-12-15 Thread Chris Pressey
On Mon, 15 Dec 2003 12:17:02 -0800
Chris Pressey [EMAIL PROTECTED] wrote:

 [...]
 You should be able to install the fileutils port, create a symbolic
 link from 'shred' to 'gshred', and run the autoclave script.

OK, looking more closely at the script, that might not be possible
either, since it looks like it rebuilds shred from its source (?)

But you might be able to get around this by replacing all occurances of
'shred' with 'gshred' in the script, or modifying the fileutils port so
that 'shred' is installed as 'shred', not 'gshred', or something...

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


Re: comparison of files

2003-12-16 Thread Chris Pressey
On Tue, 16 Dec 2003 16:31:22 -0500 (EST)
Brent Bailey [EMAIL PROTECTED] wrote:

 hello,
 
 I have been trying to write a shell script that will compare 2 files
 and generate a 3rd.
 
 i have a list of abusive IP's generated by our router. I want to
 compare it against a list of known abuse IPs ..and have it create a
 file of repeat offenders.
 
 ive tired to use comm to compare file1 against file2 doing something
 like
 
 comm -12i file1 file2 file3
 
 however it doesnt seem to workany suggestions ?

Are file1 and file2 sorted?

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


Re: comparison of files

2003-12-16 Thread Chris Pressey
On Tue, 16 Dec 2003 16:38:15 -0500 (EST)
Brent Bailey [EMAIL PROTECTED] wrote:

 yes sorted in numerical order by IP
 -- 
 Brent Bailey CCNA
 Bmyster LLC
 Computer Networking and Webhosting
 Network Engineer, Webmaster, President
 http://www.bmyster.com
 [EMAIL PROTECTED]
 207-247-8330
 
 
  On Tue, 16 Dec 2003 16:31:22 -0500 (EST)
  Brent Bailey [EMAIL PROTECTED] wrote:
 
  hello,
 
  I have been trying to write a shell script that will compare 2
 files and generate a 3rd.
 
  i have a list of abusive IP's generated by our router. I want to
  compare it against a list of known abuse IPs ..and have it create a
  file of repeat offenders.
 
  ive tired to use comm to compare file1 against file2 doing
 something like
 
  comm -12i file1 file2 file3
 
  however it doesnt seem to workany suggestions ?
 
  Are file1 and file2 sorted?
 
  -Chris
 
 

Sorry, it doesnt seem to work isn't a lot to go on.

What output did you expect, and what output did you actually get?

Have you tried different options to 'comm'?  If the list contains only
numeric IP addresses, the '-i' option isn't going to do you much good,
for example.

Have you tried 'diff file1 file2'?  Do you get the output that seems
reasonable from that?

-Chris

P.S. please keep [EMAIL PROTECTED] CC'ed, and please don't
top-post.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cvsup

2003-12-19 Thread Chris Pressey
On Sat, 20 Dec 2003 00:06:55 -0500
fbsd_user [EMAIL PROTECTED] wrote:

 ftp://ftp.freebsd.org/pub/FreeBSD/ports/ports/ports.tar.gz
 This points to the compressed file which contains the complete ports
 tree.
 
 you mis-understood my question, I do not say I was trying to find
 the single compressed file of the complete ports tree.
 
 Here is my question again
 When I use cvsup to download the ports config files (by category),
 it does not display the directory path it's using on the server.
 How can I find the directory path cvsup defaults to using?
 The implied meaning here is what is the cvsup program using for an
 directory path?
 How can I find out what it is?

fbsd_user,

I don't think you can discover that information in the general case,
just like you can't discover what directory a web server is serving its
files from.

However, in FreeBSD's case, the configuration files for cvsupd, as it is
run on FreeBSD servers, is available via cvsup, according to:

  http://www.cvsup.org/faq.html#serversample

You might be able to grab the FreeBSD project's config files for cvsupd
using that, and extract from those files the information you're
interested in.

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


Re: why do I need sendmail

2003-12-20 Thread Chris Pressey
On Sat, 20 Dec 2003 12:15:49 -0800
Cybertime Hostmaster [EMAIL PROTECTED] wrote:

 One thing to note in Matthew's reply:
 
  that.  However, automatic e-mails from your system -- usually from
  the periodic(8) scripts -- do require sendmail(8) or equivalent.
 
 Two words at the end, or equivalent.
 
 You can run Courier, Exim, Mini Sendmail, Nullmailer, Postfix, Qmail,
 ZMailer, so on and so forth.
 
 All have advantages and disadvantages.  Personally, I use Postfix, but
 that is because for my needs it is better.
 
 If you have trouble reducing sendmail down to your needs, look at the
 documentation on the others.  One of them might suit you better.
 
 Your mileage may vary, so on and so forth.

FWIW, you can also cause periodic(8) to log to a file instead of sending
mail, by adding lines like the following to /etc/periodic.conf:

  daily_output=/var/log/dialy.log
  weekly_output=/var/log/weekly.log
  monthly_output=/var/log/monthly.log

Not sure if this eliminates the need for a local mailer, but it's sure
to be the first step down that road. I can't think of anything else that
sends automated e-mails, offhand, but whatever does can probably be
configured to write its output to a file instead, in a similar way.

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


Re: grep, netstat, and bridging

2003-12-23 Thread Chris Pressey
On Tue, 23 Dec 2003 08:19:53 -0800 (PST)
Dave McCammon [EMAIL PROTECTED] wrote:

 I this a feature, bug, or just some logical thing that
 grep does( or perhaps netstat)?
 
 Scenario:
 
 IP addresses
 comp1=xx.xx.xx.1
 comp2=xx.xx.xx.6
 comp3=xx.xx.xx.12
 
 comp1 and comp3 run FBSD 4.9 stable
 comp2 runs FBSD 5.1-RELEASE
 
 comp1 is a bridging firewall using ipfw
 
 A: comp2# netstat -n |grep xx.xx.xx.1
 
 tcp4 0 0  xx.xx.xx.6.54953 xx.xx.xx.12.3551 TIME_WAIT
 tcp4 0 0  xx.xx.xx.6.54952 xx.xx.xx.12.3551 TIME_WAIT
 tcp4 0 0  xx.xx.xx.6.22xx.xx.xx.1.1233 
 ESTABLISHED
 
 
 B: comp2# netstat -n |grep xx.xx.xx.1.
 
 tcp4 0 0  xx.xx.xx.6.54954 xx.xx.xx.12.3551 TIME_WAIT
 tcp4 0 0  xx.xx.xx.6.54953 xx.xx.xx.12.3551 TIME_WAIT
 tcp4 0 0  xx.xx.xx.6.22xx.xx.xx.1.1233 
 ESTABLISHED
 
 
 C: comp2# netstat -n |grep xx.xx.xx.12
 
 tcp4 0 0  xx.xx.xx.6.54957 xx.xx.xx.12.3551 TIME_WAIT
 tcp4 0 0  xx.xx.xx.6.54956 xx.xx.xx.12.3551 TIME_WAIT
 
 
 Actually..I see the same output on a cygwin machine
 behind the comp1 firewall.

From the grep(1) man page:

  The period .  matches any single character.

Try fgrep(1) (or grep -F) instead and see if that helps?

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


Re: Does FreeBSD allow one to use the Floppy Drive on a SunBlade 100 ?

2003-12-29 Thread Chris Pressey
  -Original Message-
   I am looking for a replacement OS that I can put on my SunBlade
   100. Currently I am using Solaris 9.  I have looked at Debian and
   OpenBSD and both OS's cannot use the floppy drive.  I have Googled
   and I know that FreeBSD 4.9 cannot utilize the floppy drive as well
   as (I think) 5.0.  Does 5.1 change this ?
  
  TIA
  
  Greg

On Mon, 29 Dec 2003 18:05:40 -0500
fbsd_user [EMAIL PROTECTED] wrote:

  I have Googled and I know that FreeBSD 4.9 cannot utilize the
 floppy drive as well.
 
 You are complete wrong.
 
 I have been using FBSD since 4.2 and the floppy has been working for
 me.

According to http://www.freebsd.org/releases/5.0R/hardware-sparc64.html,
1.44 Mbyte floppy drives are not supported.

http://www.freebsd.org/releases/5.1R/hardware-sparc64.html doesn't say
anything about floppy drives that I could find, but it says that Sun
Blade 100 is Fully Supported.

I suppose can infer from that that floppy drive support on the Sun
Blade 100 made it in between 5.0 and 5.1.

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


Re: Where Live CD ISO image?

2003-12-30 Thread Chris Pressey
On Tue, 30 Dec 2003 15:21:53 + (GMT)
Francisco Reyes [EMAIL PROTECTED] wrote:

 Where can I download a Live CD ISO?
 
 
 The only place I was able to find was http://www.freesbie.org, but that's
 basically some scripts on how to do an ISO from one's system. Was hopping
 to find something already made.

Why not the images on this page?:

http://www.freesbie.org/?section=ISO-en

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


Re: Where Live CD ISO image?

2003-12-30 Thread Chris Pressey
On Tue, 30 Dec 2003 12:35:54 -0800
Chris Pressey [EMAIL PROTECTED] wrote:

 On Tue, 30 Dec 2003 15:21:53 + (GMT)
 Francisco Reyes [EMAIL PROTECTED] wrote:
 
  Where can I download a Live CD ISO?
  
  
  The only place I was able to find was http://www.freesbie.org, but
  that's basically some scripts on how to do an ISO from one's system.
  Was hopping to find something already made.
 
 Why not the images on this page?:
 
 http://www.freesbie.org/?section=ISO-en

Sorry, scratch that - apparently those links are broken.
CC'ing this to the FreeSBIE mailing list in the hopes that they can be
fixed :)

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


Re: Mount /cdrom as non-root user - does this actually work for anyone?

2004-01-03 Thread Chris Pressey
On Sun, 4 Jan 2004 11:59:29 +1100
Gautam Gopalakrishnan [EMAIL PROTECTED] wrote:

 On Sun, Jan 04, 2004 at 12:53:52AM +, Stacey Roberts wrote:
  Hello,
  As root I can mount and read the CD fine.., checking for non-root
  user: exit
  ~ $ mount /cdrom
  cd9660: /dev/acd0c: Operation not permitted
  ~ $ mount -t cd9660 /dev/acd0c ~/cdrom
  cd9660: /dev/acd0c: Operation not permitted
  ~ $
  
  Attempting to mount to mount-point in user home dir:
  ~ $ cd ~
  ~ $ pwd
  /home/stacey
  ~ $ ls -ltra cdrom
  total 6
  drwxr-xr-x 2 stacey stacey 512 Jan 3 23:50 ./
  drwxr-xr-x 31 stacey stacey 2560 Jan 3 23:50 ../
  ~ $ mount -t cd9660 /dev/acd0c ~/cdrom
  cd9660: /dev/acd0c: Operation not permitted
  ~ $
 
 chmod +s /sbin/umount /sbin/mount
 
 works fine for me (without any other changes necessary). Don't know
 if it's the recommended procedure though.
 
 Gautam

I worked around this a different way: I chown'd /dev/acd0c to the uid of
the user.  Probably *not* the recommended procedure :)

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


Re: DNS resources or toaster

2004-01-05 Thread Chris Pressey
On Mon, 5 Jan 2004 16:30:41 -0500
Marius Kirschner [EMAIL PROTECTED] wrote:

 I have the task to set up a two DNS servers for my company, and while
 I have administered their DNS servers using BIND for a number of years
 I have never set them up from scratch.  I have 2 boxes where FreeBSD
 5.1 will be installed, and, to be honest, I'm not sure whether to use
 BIND or DJBDNS of which I've heard much good.  Obviously either one
 will do the job.I guess it's just a matter of preferences..but
 I'm very tempted to go with DJBDNS this time.
 
 Anyway, anybody know of a good web page/site with some how-to for
 FreeBSD and DJBDNS?  Thanks,
 
 ---Marius 

This one was helpful for my (admittedly modest) DNS needs, it might be a
good place to start:

  http://ezine.daemonnews.org/200210/ezdjbdns.html

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


<    1   2