Re: trouble mounting floppy

2002-10-14 Thread Roman Neuhauser

wayne, don't top-post. not even when following up to your own post.

# [EMAIL PROTECTED] / 2002-10-13 22:53:25 -0500:
 At 08:28 PM 10.13.2002 -0700, Wayne Lubin wrote:
 --- Wayne Lubin [EMAIL PROTECTED] wrote:
  Hi,
  
  I have been mounting my floppy drive for a long
  time.
  However, now when I do a 
  
  mount -t msdos /dev/fd0 /mnt/floppy
  
  it gives me the error msg 
  
  mount: /dev/fd0: Device not configured
  
  It may have to do with the fact that the last time I
  mounted the floppy I turned off the computer without
  umount ing it.  Thanks for you help.
 
 So I guess my question is what does it mean that
 /dev/fd0 is not configured and how can I get it
 configured so that I can start mounting it again.

 I see no one else has taken a shot at this, so:
 
 1) do you have a directory /mnt/floppy
 2) do you have the device fd0 in /dev

also, are you trying to mount the same floppy you forgot
to unmount? if you have ufs on the floppy you will need to fsck
first. i don't remember if you would be getting not configured
error though...

-- 
begin 666 nonexistent.vbs
FreeBSD 4.7-STABLE
9:36AM up 1 day, 12:06, 9 users, load averages: 0.01, 0.02, 0.00
end

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



Re: Web Root Directory

2002-10-14 Thread Matthew Seaman

On Sun, Oct 13, 2002 at 09:59:49PM -0500, [EMAIL PROTECTED] wrote:

 Where should Apache web root directory be for users?

By default, the web root is /usr/local/www/data --- for a freshly
installed port that's linked to /usr/local/www/data-dist which
contains the default apache website.  You're meant to break that link
and provide your own stuff in /usr/local/www/data.

However, I guess that what you are really asking is about the
configuration of user web directories: eg. http://www.foo.com/~user/
That's controlled by the UserDir directive in httpd.conf. The default
value is 'public_html', so your users should just create a
~/public_html directory and put their web content into it.

Cheers

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
  Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK

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



FreeBSD 3.4

2002-10-14 Thread Rafa Marín López

Hello.

Where could I get FreeBSD 3.4?

Thank you very much

-- 
--
Rafael Marin Lopez
Faculty of Computer Science-University of Murcia
30071 Murcia - Spain
Telf: +34968364644  e-mail: [EMAIL PROTECTED]
--



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



DepotNetµÏÆÕÍø£¬¼ÓÈë¾ÍËÍÄã100Ôª

2002-10-14 Thread qin11

http://buy100.yeah.net
DepotNetµÏÆÕÍø£¬ÖйúµÚÒ»¸öµÚÈý·½ÍøÉÏÁ¬Ëø·þÎñƽ̨!2001гÉÁ¢µÄµç×ÓÉÌÎñ¹«Ë¾£¬Íâ¹úʵÁ¦»ú¹¹×ö¼áÇ¿ºó¶Ü£¡ÐÅÓþ¶È¼«¸ßÍêÈ«¿ÉÒÔºÍÍøÒ×£¬ÐÂÀË£¬ËѺüÕâЩÍøÕ¾ÏàæÇÃÀ¡£
ÄãÖ»ÒªÃâ·Ñ×¢²á£¬¼ÓÈë¾ÍËÍÄã100Ôª¡£Äúÿ½éÉÜÒ»¸ö»áÔ±µ½µÏÆÕÍø£¬µÏÆÕÍø½«ËÍÄú£¤2Ôª¡£²»½öÈç´Ë£¬Äú²Î¼ÓµÏÆÕÍøÖ®ºó£¬½«¿ÉÒÔÃâ·Ñ³ÉΪ¶à¼ÒÉÌ»§µÄ´úÀíÉÌ£¬Ãâ·ÑΪÄãÄú¿ªÍ¨¶à¼ÒÍøÉÏÁ¬Ëøµê£¬ÕâЩÁ¬Ëøµê²»ÐèÒªÄú×Ô¼ºÎ¬»¤£¬ÄúµÄÈÎÎñÖ»ÊǽéÉÜÈ˲μӵÏÆÕÍø£¬µ½ÄúµÄÁ¬Ëøµê¹ºÂòÉÌÆ·¾ÍÐÐÁË¡£Èç¹ûÉÌ»§Í¨¹ýÄúµÄÁ¬ËøÊÛ³ö£¬Äú½«»ñµÃ×î¸ß20%µÄÌá³É£¬ÕæµÄÈÃÈËÐĶ¯£¡£¡£¡¿ì¿ì¼ÓÈ룬½¨Á¢×Ô¼ºµÄÉ̵꣡£¡½¨Á¢ÊôÓÚ×Ô¼ºµÄÊÂÒµ£¡£¡

µÏÆÕÿ¸öÔÂ28ºÅ½áËã½ð¶î²¢°ÑÇ®»ã¸øÿ¸ö»áÔ±¡£


°´ÏÂÃæÃâ·Ñ¼ÓÈ룡
http://buy100.yeah.net

ΪʲôÓеÏÆÕÍø£¿

ÿһ¸öÍøÉÏÊÂÒµ¾­ÓªÕߣ¬ÌرðÊÇÌṩÍøÉÏÏúÊÛ¡¢ÍøÉÏÓг¥·þÎñµÄ¾­ÓªÕߣ¬ÎÞÂÛÊÇ´ó¹«Ë¾»¹ÊÇС¸öÌ壬¶¼»áÃæÁÙ×ÅÒ»¸öÄÑÌ⣺ÈçºÎ¿ìËÙÓÐЧµÍ³É±¾µØ¿ªÕ¹Êг¡¡¢À©´óÏúÁ¿£¿

¡°ÎÒÉîÐÅÎÒ»¨ÔÚ¹ã¸æÉϵÄ50£¥µÄÇ®ÊÇÀË·ÑÁË£¬µ«ÎÊÌâÊÇÎÒ²»ÖªµÀÊÇÄÄ50£¥¡±--ÌÆ¡¤Êæ¶û´Ä²©Ê¿ÈçÊÇ˵¡£ÌƲ©Ê¿ÊÇÊÀ½ç×îÖøÃûµÄÓªÏú´óʦ֮һ£¬Ò²ÊÇÕ½ÂÔÐÔÕûºÏÓªÏú´«²¥ÀíÂ۵Ĵ´Ê¼ÈË£¬ÏÖÈÎÈ«ÇòÓªÏú½ç×î¸ßѧ¸®--ÃÀ¹úÎ÷±±´óѧÕûºÏÓªÏú´«²¥½ÌÊÚ¡£

ÁíÒ»·½Ã棬ÿһ¸öϸڹ¤ÈË¡¢Ê§ÒµÕ߶¼ÔÚ¼è¿àµØÑ°ÕÒ×Å»ú»á»òÕý¾­Óª×ÅСÉúÒâ¡£

¡°ÎÒÏ뿪¸ö·þ×°µê£¬¿ÉÊÇÎÒ×ʽðÓÐÏÞ£¬ÍúµÄµØµã×â½ðÄÇô¹ó£¬¾­Óª²»ÈÝÒ×ѽ£¡¡±--ͶÈëµÄ·çÏÕÓëÊÕÒæµÄÆÚÍûÓÀÔ¶¶¼ÊÇÀ§ÈÆ´´ÒµÕßµÄÄÑÌâ¡£
 
Ϊ½â¾öÒÔÉÏÏÖʵÎÊÌ⣬µÏÆÕÍø¾­¹ý³¤Ê±¼äÔÚ»¥ÁªÍøÏúÊÛ²ßÂÔ·½Ãæ½øÐÐÁËÉîÈëµÄÑо¿£¬ÔÚ×ܽáÁËÅ·ÃÀ¹ú¼Ò½ü3ÄêÀ´¿ìËÙÔö³¤µÄ»¥ÁªÍøÏúÊÛģʽµÄ»ù´¡ÉÏ£¬ÎªÖйú´øÀ´ÁË¡°µÏÆÕÍøÍøÉÏÁ¬Ëøƽ̨·þÎñ¡±¡£

´Ë¿Ì£¬ÔÚÅ·ÃÀ¹ú¼ÒÊýÒÔ°ÙÍò¼ÆµÄÈËÒѾ­³É¹¦ÔË×÷×ÅÔÚ¼Ò¹¤×÷µÄ¸ïÃüÐÔ¹¤×÷ģʽµÄʱºò£¬¶øÖйúÿÌìÈ´ÓгÉǧÉÏÍòÈËÃñϸÚÃæÁÙ׿è¿àµÄ¾ñÔñ¡£

µÏÆÕÍø£¬¸øÈκÎÈ˶¼´øÀ´ÁË»ú»á£¬´øÀ´ÁËÏ£Íû£¡

¡¡
 
µÏÆÕÍøÄÜ×öʲô£¿

¼òµ¥À´Ëµ£¬µÏÆÕÍøÊÇÒ»¸ö»ùÓÚ»¥ÁªÍøµÄÌṩÁ¬Ëø×ÊÔ´ºÍ½¨Á¢·ÖÏúÇþµÀ·þÎñµÄϵͳ¡£
µÏÆÕÍøÊÇ·þÎñÈκÎÈ˵Äƽ̨£¬ÎÞÂÛÄãÊǹ«Ë¾»¹ÊǸöÈË¡£
1¡¢¶ÔÓÚÈκÎÈË£¬µÏÆÕÍøÌṩһ¸ö×ÊÔ´ºÍϵͳ£¬ÈÃÄãÄܹ»ÇáÒ׳ÉΪһ¼Ò»ò¶à¼ÒÆóÒµµÄ´úÀíÉÌ£¬¶øÇÒ¶¼ÊÇÃâ·ÑµÄ£¬ÓëÄ¿Ç°Êг¡ÉÏÁ÷ÐеÄÌØÐí¾­Óª·½Ê½²»Í¬£¬Äã²»ÐèÒªÈκμÓÃË·Ñ£¬²»ÐèÒª×âÓÃÈκεêÃ棬²»ÐèÒªÈκνø»õ£¬¶øÇÒÂíÉϾÍÄÜʵʩ£¬ÎÞÈκηçÏÕ£¡
2¡¢¶ÔÓÚÕýÔÚ»ò´òËã¾­ÓªÍøÉÏÊÂÒµ£¨ÍøÉÏÏúÊÛ¡¢ÍøÉÏÓг¥·þÎñµÄ£©µÄ¹«Ë¾¡¢¸öÌåÆóÒµ£¬µÏÆÕÍøÌṩһ¸ö×ÊÔ´ºÍϵͳ£¬ÈÃÄã¿ìËÙ½¨Á¢ÊýÒÔÍò¼ÆµÄÅÓ´óÏúÊÛÇþµÀ£¬¶øÇÒÊÇÃâ·ÑµÄ¡£
 
µÏÆÕÍøΪÄã´øÀ´ÁËÍøÉÏ´´ÒµÖ¸»µÄ»ú»áÓëÃâ·Ñ×ÊÔ´£¬ÎÒÃDz¢²»±£Ö¤ÄãÄÜ׬µ½¶àÉÙÇ®£¬Ã¿Ò»¸öÐÐÒµ¶¼ÓÐËýµÄ¾­ÓªÌص㣬ÔÚÕâ¸öÐÐÒµ£¬ÄãͬÑùÐèҪȥÃþË÷£¡ËùÐÒµÄÊÇ£¬µÚÒ»£¬ÎÒÃÇΪÄ㿪»ÄÆÌÁË·£»µÚ¶þ£¬ÎÒÃDz»¶ÏΪÄã×öºÜ¶àÓÐÒæµÄÑо¿¹¤×÷¡£ÎÒÃÇ×î´óµÄÏ£ÍûÊÇ£º´ó¼Ò¹²Ó®£¡Â³Ñ¸Óо仰£º¸©Ê׸ÊΪÈæ×ÓÅ££¡¶øµÏÆÕÍø£¬Ô¸Òâ³ÉΪÖйúÈËÃñÔÚ»¥ÁªÍøʱ´úµÄÍøÂ翪»ÄÅ££¡
 


±¾µç×ÓÓʼþϵ²ÉÓá°¸ßËÙÓʼþ¶à··¢ËÍÆ÷¡±Èí¼þ·¢ËÍ
OICQ:70094637 http://www.emailrelay.onchina.net


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



Re: kernel panic after updating to 4.7-stable

2002-10-14 Thread Kliment Andreev

 same file and the kernel did not build. I'm now cvsupping
 again and will rebuild world. If anything again goes wrong,
 I will go and cvsup for RELENG_4_7_0_RELEASE, as
 Keramidas suggested to another user.


I had the same problem yesterday and I had a luck with that small patch.



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



rsh

2002-10-14 Thread hesmaile

ALLAH
hi
i have a problem about rsh
my accounting server doe's not kill user
in linux i have this problem and resolv it by 
adding a SYSTEM user and add ip of accounting server
to
/home/SYSTEM/.rhosts file
but in free bsd i have this problem and don't about it
please help me
thanx
--
come the horse man known as 

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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



Re: FreeBSD 3.4

2002-10-14 Thread Roman Neuhauser

# [EMAIL PROTECTED] / 2002-10-14 12:35:06 +0100:
 On Mon, Oct 14, 2002 at 12:38:02PM +0200, Rafa Marn Lpez wrote:
  Where could I get FreeBSD 3.4?
 
 http://www.freebsdmirrors.org/FBSDsites.php3?showi386ISO=do
 http://www.freebsdmirrors.org/FBSDsites.php3?release=3.4-RELEASE

how about the CVS repository? does it not go that far back?

-- 
begin 666 nonexistent.vbs
FreeBSD 4.7-STABLE
2:16PM up 1 day, 16:46, 7 users, load averages: 0.01, 0.03, 0.01
end

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



Re: FreeBSD 3.4

2002-10-14 Thread Matthew Seaman

On Mon, Oct 14, 2002 at 02:17:47PM +0200, Roman Neuhauser wrote:
 # [EMAIL PROTECTED] / 2002-10-14 12:35:06 +0100:
  On Mon, Oct 14, 2002 at 12:38:02PM +0200, Rafa Marín López wrote:
   Where could I get FreeBSD 3.4?
  
  http://www.freebsdmirrors.org/FBSDsites.php3?showi386ISO=do
  http://www.freebsdmirrors.org/FBSDsites.php3?release=3.4-RELEASE
 
 how about the CVS repository? does it not go that far back?

Sure it does and you can grab the RELENG_3 or RELENG_3_4_0_RELEASE
sources as easily as you can grab any other tag or branch.  However
you've got to start somewhere before you start cvsup'ing to specific
versions. I think it would be significantly non-trivial to start with
a contemporary version of FreeBSD and downgrade to 3.4 via
cvsup+buildworld.

Cheers,

Matthew


-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
  Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK

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



Re: trouble mounting floppy

2002-10-14 Thread Jack L. Stone

At 09:16 PM 10.13.2002 -0700, Wayne Lubin wrote:

--- Jack L. Stone [EMAIL PROTECTED] wrote:
 At 08:28 PM 10.13.2002 -0700, Wayne Lubin wrote:
 So I guess my question is what does it mean that
 /dev/fd0 is not configured and how can I get it
 configured so that I can start mounting it again.
 
 Thanks.
 
 
 --- Wayne Lubin [EMAIL PROTECTED] wrote:
  Hi,
  
  I have been mounting my floppy drive for a long
  time.
  However, now when I do a 
  
  mount -t msdos /dev/fd0 /mnt/floppy
  
  it gives me the error msg 
  
  mount: /dev/fd0: Device not configured
  
  It may have to do with the fact that the last
 time I
  mounted the floppy I turned off the computer
 without
  umount ing it.  Thanks for you help.
  
  Wayne
  
 I see no one else has taken a shot at this, so:
 
 1) do you have a directory /mnt/floppy
 2) do you have the device fd0 in /dev
 
 for starters.
 
 Best regards,
 Jack L. Stone,
 Administrator
 
 SageOne Net
 http://www.sage-one.net
 [EMAIL PROTECTED]

1) yes I have a directory /mnt/floppy
2) yes I have the device fd0

come on I am not that stupid haha :)

So what do you think? Thanks for helping.

Wayne

It's not a question of assuming that you were stupid, just that it's the
simple mistakes that get overlooked so many times. What does seem unwise
is just turning off a computer. if that is what you did.

Think I'll leave this one to some other member

Best regards,
Jack L. Stone,
Administrator

SageOne Net
http://www.sage-one.net
[EMAIL PROTECTED]

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



Re: FreeBSD 3.4

2002-10-14 Thread Roman Neuhauser

# [EMAIL PROTECTED] / 2002-10-14 13:29:29 +0100:
 On Mon, Oct 14, 2002 at 02:17:47PM +0200, Roman Neuhauser wrote:
  # [EMAIL PROTECTED] / 2002-10-14 12:35:06 +0100:
   On Mon, Oct 14, 2002 at 12:38:02PM +0200, Rafa Marn Lpez wrote:
Where could I get FreeBSD 3.4?
   
   http://www.freebsdmirrors.org/FBSDsites.php3?showi386ISO=do
   http://www.freebsdmirrors.org/FBSDsites.php3?release=3.4-RELEASE
  
  how about the CVS repository? does it not go that far back?
 
 Sure it does and you can grab the RELENG_3 or RELENG_3_4_0_RELEASE
 sources as easily as you can grab any other tag or branch.  However
 you've got to start somewhere before you start cvsup'ing to specific
 versions. I think it would be significantly non-trivial to start with
 a contemporary version of FreeBSD and downgrade to 3.4 via
 cvsup+buildworld.

right. how about the release target, wouldn't it help here? 
I haven't made release yet, so I might be talking outta my ass here.
just curious.

-- 
If you cc me or take the list(s) out completely I'll most likely
ignore your message.

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



Releasing IP addresses

2002-10-14 Thread Mike Jeays

How can I release IP addresses obtained by DHCP?  I need to
do the equivalent of ipconfig /release under Windows 2000,
or the winipcfg utility in Windows 95.



-- 
Mike Jeays : Informatics Technology Services Division, Statistics Canada 
Room 3200, Main Building, Holland Avenue, Ottawa, Ontario, K1A 0T6
Voice (613)-951-9929
Web page : http://www.ncf.carleton.ca/~ad161

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



Re: Releasing IP addresses

2002-10-14 Thread Roman Neuhauser

# [EMAIL PROTECTED] / 2002-10-14 08:34:17 -0400:
 How can I release IP addresses obtained by DHCP?  I need to
 do the equivalent of ipconfig /release under Windows 2000,
 or the winipcfg utility in Windows 95.

dhclient(8)

-- 
begin 666 nonexistent.vbs
FreeBSD 4.7-STABLE
3:06PM up 1 day, 17:36, 8 users, load averages: 0.06, 0.02, 0.03
end

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



more virtual console

2002-10-14 Thread budsz

Hi,

Where I'am find some line config for adding more virtual for ex:
ALT + F1 until F12 maybe..?

Thanks

-- 
budsz



msg05010/pgp0.pgp
Description: PGP signature


Re: more virtual console

2002-10-14 Thread Rus Foster

On Mon, 14 Oct 2002, budsz wrote:

 Hi,

 Where I'am find some line config for adding more virtual for ex:
 ALT + F1 until F12 maybe..?

 Thanks

 --
 budsz

Not quite what you are looking for but install screen from the ports
collections as this allows mutiple windows within 1 login session

Rgds

rus foster
--
http://www.fsck.me.uk - My blog
http://shells.fsck.me.uk - Hosting how you want it.


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



RE: Drive/DMA issuse

2002-10-14 Thread Maildrop


Any ideas on this, is it a hardware issuse, hardware config issuse, softare
issuse?

Jack

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Maildrop
 Sent: Saturday, October 12, 2002 12:22 AM
 To: Jonas Fornander; 'FreeBSD LIST'
 Subject: Drive/DMA issuse




 Everytime I boot up, I see this in my log files:


 ad0: 4112MB SAMSUNG SV0432A [8912/15/63] at ata0-master UDMA33
 ad2: 95396MB WDC WD1000BB-00CAA0 [193821/16/63] at ata1-master UDMA33
 ad3: 78167MB Maxtor 98196H8 [158816/16/63] at ata1-slave UDMA33
 ad0s1a: UDMA ICRC error reading fsbn 11199 of 5568-5571 (ad0s1 bn
 11199; cn
 0 tn 177 sn 48) retrying
 ad0s1a: UDMA ICRC error reading fsbn 255 of 96-127 (ad0s1 bn 255;
 cn 0 tn 4
 sn 3) retrying
 ad0s1a: UDMA ICRC error reading fsbn 255 of 96-127 (ad0s1 bn 255;
 cn 0 tn 4
 sn 3) retrying
 ad0s1a: UDMA ICRC error reading fsbn 255 of 96-127 (ad0s1 bn 255;
 cn 0 tn 4
 sn 3) retrying
 ad0s1a: UDMA ICRC error reading fsbn 255 of 96-127 (ad0s1 bn 255;
 cn 0 tn 4
 sn 3) falling back to PIO mode


 I tried switch IDE cables (used 3 differant cables on the drive)
 and played
 around with the PIO/bits in the BIOS (tried PIO 4, PIO 1, none, auto and
 both 16-bit and 32-bit and all combinations of these).  I have ran fsck on
 the drive many times.

 Sometimes the server crashes, I think it might be related to this
 hard drive
 (if a hard drive fails to save data, could/would this cause a
 kernel panic?)

 Any suggestions?  It appears the other drives are working fine.

 ad0s1a is my root slice/drive, btw.  (this drive has a root slice, /var
 slice and a swap slice).


 Regards,
 Jack


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



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



Gnome does not turn on with startx on user account anymore

2002-10-14 Thread Wayne Lubin

Hi,

Starting today, when I do a startx on my user account
the gui turns on to the point of a deep blue color
screen with an X for a mouse pointer and that is it.
Nothing else loads or is on the screen. No controls
either and had to recycle the power and use the root
account to use my browser and write this message. Any
logs that I can look at that will give me a clue as to
what is going on or does anyone have an idea as to
what is going on? 

You may recall that I also have another thread on this
mailing list that states that I was using an msdos
formatted floppy and forgot to umount it before
turning my machine off one time and now when I try to
mount the floppy with a 

mount -t msdos /dev/fd0 /mnt/floppy

I get the error msg 

msdos: /dev/fd0: Device not configured

Not sure if the two are connected, but even when I am
logged in as root as I am now I still get the same
msg. But my biggest problem now is this gnome problem.


Thanks for your help on figuring out what the heck is
going on.

Wayne


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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



Re: Running ipfw from a webpage/using php.

2002-10-14 Thread Jens Rehsack



Patrick Holahan wrote:
 
 Hi there..
 
 Hopefully someone here is able to help me..
 
 I need to run a root command (ipfw) from apache through php. (Yes, this is
 not very secure and I'm aware of this and if anyone has any better
 suggestions, please feel free to make them.)
 
 Would anyone know how to do this?

is that the function you search:
  string exec ( string command [, array output [, int return_var]])

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

-- 
L i  W W W  i Jens Rehsack
LW W W
L i   W   W W   W   i  nnnLiWing IT-Services
L iW W   W Wi  n  n  g   g
  i W W i  n  n  g   gFriesenstraße 2
  06112 Halle
 g
 g   g
Tel.:  +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED]
Fax:   +49 - 3 45 - 5 17 05 92http://www.liwing.de/

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



Re: more virtual console

2002-10-14 Thread Dan Nelson

In the last episode (Oct 14), budsz said:
 Hi,
 
 Where I'am find some line config for adding more virtual for ex:
 ALT + F1 until F12 maybe..?

Edit /etc/ttys and add more Virtual Terminal lines.  This will give you
a login on all 12 function keys:

# Virtual terminals
ttyv1   /usr/libexec/getty Pc cons25  on  secure
ttyv2   /usr/libexec/getty Pc cons25  on  secure
ttyv3   /usr/libexec/getty Pc cons25  on  secure
ttyv4   /usr/libexec/getty Pc cons25  on  secure
ttyv5   /usr/libexec/getty Pc cons25  on  secure
ttyv6   /usr/libexec/getty Pc cons25  on  secure
ttyv7   /usr/libexec/getty Pc cons25  on  secure
ttyv8   /usr/libexec/getty Pc cons25  on  secure
ttyv9   /usr/libexec/getty Pc cons25  on  secure
ttyva   /usr/libexec/getty Pc cons25  on  secure
ttyvb   /usr/libexec/getty Pc cons25  on  secure

-- 
Dan Nelson
[EMAIL PROTECTED]

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



Re: Running ipfw from a webpage/using php.

2002-10-14 Thread Matthew Seaman

On Mon, Oct 14, 2002 at 04:54:03PM +0200, Jens Rehsack wrote:
 Patrick Holahan wrote:

  I need to run a root command (ipfw) from apache through php. (Yes, this is
  not very secure and I'm aware of this and if anyone has any better
  suggestions, please feel free to make them.)

 is that the function you search:
   string exec ( string command [, array output [, int return_var]])

That will run as the UID of the webserver, usually www, which won't be
very useful for doing stuff with ipfw.

I'd grab sudo(8) or one of the alternatives from ports and very
carefully craft a /usr/local/etc/sudoers file that lets the www UID
run a specific ipfw command line without giving a password.  Be very
careful not to let the www UID make arbitrary changes to your firewall
or you will discover the true meaning of pain in very short order.
Remember to add www to the wheel group if you go this way.

Oh, and good luck maintaining the integrity of your machine if you do
implement this.  You're going to need it...

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
  Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK

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



Re: Running ipfw from a webpage/using php.

2002-10-14 Thread Simon Dick

On Mon, 2002-10-14 at 15:35, Patrick Holahan wrote:
 Hi there..
 
 Hopefully someone here is able to help me..
 
 I need to run a root command (ipfw) from apache through php. (Yes, this is
 not very secure and I'm aware of this and if anyone has any better
 suggestions, please feel free to make them.)
 
 Would anyone know how to do this?

If you have to do this, I'd suggest setting up sudo so that the user
apache runs as has sudo access to run the ipfw command and nothing else.
It's still not nice, but it should work.


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



RE: Running ipfw from a webpage/using php.

2002-10-14 Thread Maildrop


Typically PHP runs as www (or nobody).  You will have to give ipfw root exec
premission (forgot what is is called, but mode 1755 and owner root) or use
sudo. (man sudo, man chmod) either should work, but be warned this is very
INSECURE!

Jack

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Patrick Holahan
 Sent: Monday, October 14, 2002 9:36 AM
 To: [EMAIL PROTECTED]
 Subject: Running ipfw from a webpage/using php.


 Hi there..

 Hopefully someone here is able to help me..

 I need to run a root command (ipfw) from apache through php. (Yes, this is
 not very secure and I'm aware of this and if anyone has any better
 suggestions, please feel free to make them.)

 Would anyone know how to do this?

 Thanks in advance
 -ph

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



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



Re: Configuring sendmail to use a relay

2002-10-14 Thread Matthew Seaman

On Mon, Oct 14, 2002 at 10:35:21AM -0400, Kliment Andreev wrote:
  how can I configure the system sendmail to use our smtp server
  instead of sending mails directly to the responsible MX for
  the destination address?
 
 In the file sendmail.cf, put the following line
 
 DSnameoftherelayserver
 
 You SHOULD NOT put space between DS and the name_of_the_relay_server!

Beware of editing the sendmail.cf file directly.  Serious masochists
only territory there.  The equivalent and recommended way of
customizing the sendmail configuration on FreeBSD is via the
`hostname`.mc file in /etc/mail:

cd /etc/mail
make   [ This will generate a default `hostname`.mc file if needed ]
vi `hostname`.mc

Delete the 'dnl ' from the beginning of the line that says:

dnl define(`SMART_HOST', `your.isp.mail.server')

and substitute the FQDN of your mail relay for the
your.isp.mail.server part.  Now simply run make to generate and
install the new configuration and prod sendmail into using it:

make install restart

A guide to wrangling sendmail.mc files may be found in
/usr/share/sendmail/cf/README

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
  Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK

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



sound device

2002-10-14 Thread Tsu-Fan Cheng

hi, freebsd guys, 
i made a mistake while upgrading from 4.5 to 4.6, i made ALL
devices and my sound device didn't seem to function anymore, i cat
sndstat:

FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: SiS 7018 at io 0xd400 irq 10 (4p/1r/0v channels duplex)

does anybody have any idea? thanks! 


Best Regards, :-)

Tsu-Fan Cheng [¾G¯ª¦|] (BIG5)   
SUNY at Stony Brook 
Stony Brook, NY, 11794

There is no gene for the human spirits~GATTACA


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



mount issues

2002-10-14 Thread wolfgang

i would like to mount an ext2fs partition writable for at least one user, same 
with a few msdos partitions.

FreeBSD's /etc/fstab apparently does not support a user option to allow 
users to mount file systems - neither does the mount command setting the user 
id to someone else than root as far as i can tell.

how can i achieve write permissions for a non-privileged user there?

regards,
wolfgang


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



Re: Slightly OT: How to remove an odd file...

2002-10-14 Thread Unix Tools

cd to the directory where the file exists
write a perl script

#!/usr/bin/perl
unlink;
exit(0);


- Original Message - 
From: Brian McCann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, October 13, 2002 07:43 PM
Subject: Slightly OT: How to remove an odd file...


 I've got an interesting question for you all.  I've got a file who's
 name is...3 blank spaces.  It shows up when I do an ls -la, and I
 can get it's inode # (it's in RedHat...a box I'm going to convert to
 FreeBSD real soon)...does anyone know how to remove a file based off of
 an inode #?
 
 --Brian McCann
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 

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



Re: finding disk space

2002-10-14 Thread Jerry McAllister

 
 I have a 2 disk single user workstation that is running out of room on
 /usr. /home is on a second hard disk with scads of space 
 
 Here's df 
 
 Filesystem  1K-blocksUsed   Avail Capacity  Mounted on
 /dev/da0s1a 80590   57338   1680677%/
 /dev/da1s1g   7971462  729998 660374810%/home
 /dev/da1s1f2579984992  232368 2%/tmp
 /dev/da0s1e   8406014 7434842  29869296%/usr
 /dev/da1s1e257998   42618  19474218%/var
 procfs  4   4   0   100%/proc
 linprocfs   4   4   0   100%/usr/compat/linux/proc
 
 I'd like to move (with a sym link?) some of /usr which is on da1 over to
 home which is on da0. Can anyone share some wisdom with me before I try
 this? My original thoughts were to keep /usr and /home on different
 disks to help performance.

No problem moving stuff from /usr.   It is a good idea.
Good candidates are /usr/local  /usr/ports  /usr/src  and  /usr/share
tar up those directories and put them in your infinitely expandable
disk/partition and make sym links.

We do that on all of our systems.  Name the directories in the
big partition something that makes it obvious where they came from.
Example, 
 we move /usr/local to /home and call it usr.local (eg /home/usr.local
 and the link command, done from within /usr  is:
   ln -s /home/usr.local local

It works fine.

jerry

 
 thanks,
 
 Kirk 
 -- 
 Kirk R. Wythers   email: [EMAIL PROTECTED]
 University of Minnesota   tel: 612.625.2261
 Department of Forest Resourcesfax: 612.625.5212
 Saint Paul, MN 55108
   
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 


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



Re: finding disk space

2002-10-14 Thread wolfgang

In an older episode (Monday 14 October 2002 18:35), Kirk R. Wythers wrote:
 I have a 2 disk single user workstation
so i understand that you can easily restart the system.

 that is running out of room on
 /usr. /home is on a second hard disk with scads of space



 I'd like to move (with a sym link?) some of /usr which is on da1 over to
 home which is on da0. Can anyone share some wisdom with me before I try
 this? 

i am not sure it is wisdom, but i have done it as follows several times 
successfully ...
let's assume you want to move /usr/local
# mkdir /home/usr-local
# cp -a /usr/local/* /home/usr-local/
# ls /home/usr-local
# du -sh /home/usr-local
once you are sure everything has been copied:
# rm -rf /usr/local
# ln -s /home/usr-local /usr/local

maybe there are more elegant ways to switch, but this should work as far as i 
can tell ... and worked for me.

hope this helps,
wolfgang




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



MODE_SENSE_BIG ata problem with 4.7 installation

2002-10-14 Thread Paul English


I'm getting the following error repeated to the screen when the 4.7
install boot reaches ata:

acd0: MODE_SENSE_BIG command timeout - resetting
ata1: resetting devices .. done

I thought that this was fixed in a 4.7-PRERELEASE according to the 4.6
errata?

I tried the fix on the 4.6 errata webpage with no luck.

Thanks,
Paul



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



[no subject]

2002-10-14 Thread gregmatu

Hello all

I have problem and need your help.
I tried to build custom kernel but make (after 'config' and
'make depend' command) fails with error message:
if_setlladdr undefined reference to arp_ifinit

Could you give me any advice what is wrong with my custom kernel
configure (I attached this).

Thanks in advance.

-- 
Gregory Matus
mailto: [EMAIL PROTECTED]



Gerbil.gz
Description: GNU Zip compressed data


Re: 4.7-RELEASE question

2002-10-14 Thread Erik Trulsson

On Mon, Oct 14, 2002 at 01:20:28PM -0400, John Daniels wrote:
 I am considering installing 4.7-RELEASE.  However, many ppl upgrading to 
 STABLE in the last few days have encountered a bug that was identified on 
 the -Stable mailing list:
 
 On Sunday, October 13, Matthew Dillon wrote:
 The nexus_print_all_resources() panic is due to a bug in EISA bus
 handling that shows up due to a recent commit John made.
 He has a tentitive patch for it but it needs to be tested / verified.
 
 Before I install 4.7-RELEASE, I'd like to verify that this bug does not 
 affect 4.7-RELEASE (i.e. was introduced after -RELEASE).  Can anyone verity 
 that this bug is true?

The commit that made the bug show up was made to -stable after 4.7 had
been branched, i.e. 4.7-RELEASE is not affected.
A fix for this bug was commited to -stable earlier today so -stable
should also be fine now.



-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]

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



RE: Running ipfw from a webpage/using php.

2002-10-14 Thread Danny.Carroll

I did it  It works, but it's NOT secure...
Basically I use it to open a SSH port to the dialin machine I am browsing from.

You are welcome to my source if you like

-D

-Original Message-
From: Patrick Holahan [mailto:[EMAIL PROTECTED]]
Sent: 14 October 2002 16:36
To: [EMAIL PROTECTED]
Subject: Running ipfw from a webpage/using php.


Hi there..

Hopefully someone here is able to help me..

I need to run a root command (ipfw) from apache through php. (Yes, this is
not very secure and I'm aware of this and if anyone has any better
suggestions, please feel free to make them.)

Would anyone know how to do this?

Thanks in advance
-ph

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message
-
ATTENTION:
The information in this electronic mail message is private and
confidential, and only intended for the addressee. Should you
receive this message by mistake, you are hereby notified that
any disclosure, reproduction, distribution or use of this
message is strictly prohibited. Please inform the sender by
reply transmission and delete the message without copying or
opening it.

Messages and attachments are scanned for all viruses known.
If this message contains password-protected attachments, the
files have NOT been scanned for viruses by the ING mail domain.
Always scan attachments before opening them.
-

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



Random panic and reboot

2002-10-14 Thread twig les

Hey all, I'm a bit curious as to why my 4.6 Release
box (stripped down and patched) rebooted this morning.
 I've had this problem before when I tried to skimp
and use cheap memory, but this box has great memory
(can't remember which brand) and has been running 4.4
release for a year, then 4.6 release for the last 3
months - both without a problem.  Last Saturday I got
a phone call that this box was down and had remote
hands reboot and fsck -y the thing so I'm not sure
what's happening.  This is the error from
/var/run/messages regarding today's reboot; Saturday's
problem left no logs.
-
Oct 14 03:07:20 mas01 /kernel: Fatal trap 12: page
fault while in kernel mode
Oct 14 03:07:20 mas01 /kernel: mp_lock = 0002;
cpuid = 0; lapic.id = 
Oct 14 03:07:20 mas01 /kernel: fault virtual address  
 = 0x3008
Oct 14 03:07:20 mas01 /kernel: fault code 
 = supervisor read, page not present
Oct 14 03:07:20 mas01 /kernel: instruction pointer
 = 0x8:0xc0216818
Oct 14 03:07:20 mas01 /kernel: stack pointer  
 = 0x10:0xebaa5bc8
Oct 14 03:07:20 mas01 /kernel: frame pointer  
 = 0x10:0xebaa5bfc
Oct 14 03:07:20 mas01 /kernel: code segment   
 = base 0x0, limit 0xf, type 0x1b
Oct 14 03:07:20 mas01 /kernel: = DPL 0, pres 1, def32
1, gran 1
Oct 14 03:07:20 mas01 /kernel: processor eflags =
interrupt enabled, resume, IOPL = 0
Oct 14 03:07:20 mas01 /kernel: current process
 = 1705 (find)
Oct 14 03:07:20 mas01 /kernel: interrupt mask 
 = bio  - SMP: XXX
Oct 14 03:07:20 mas01 /kernel: trap number
 = 12
Oct 14 03:07:20 mas01 /kernel: panic: page fault
Oct 14 03:07:20 mas01 /kernel: mp_lock = 0002;
cpuid = 0; lapic.id = 
Oct 14 03:07:20 mas01 /kernel: boot() called on cpu#0

=
---
Heavy metal made me do it.
---

__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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



asr0: Blink LED 0x3 resetting adapter adaptec 2100S

2002-10-14 Thread Chad Leigh -- Shire.Net LLC

Hi

I run an adadptec 2100S.  Today it displayed the following message, and 
while the system was still running and pingable, you couldn't do 
anything include login.

asr0: Blink LED 0x3 resetting adapter

Resetting the machine and going into the onboard ROM SMOR adaptec 
manager on the card, nothing seemed out of the ordinary.  All of the 
disks and volumes were optimal and no errors were reported on card.

I looked through both the mailist archives, in the adaptec manuals,  and 
the adaptec site to see if there was any sort of similar message listed, 
but I found no info.  Anyone know what this means?  I looked at the list 
of LEDs, wondering if 0x3 meant LED #3, but that does not  make sense, 
as that is

3 Indicates the controller’s internal operating system is in its idle
loop.

Thanks for any help.  I have had some random freezeups on the machine, 
off an on, most recently an hour or two before this adapter reset 
happened, and I was wondering if they are related.

BY random freezeups, I mean hard freeze on the machine.  I had one this 
morning, two weeks ago, and 99 days before that.

But this message about the reset adapter did not hard freeze the 
machine. I just think they might  be related, like maybe the RAM 
module on the adapter is flaky or something.

Thanks
Chad


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



Re: Random panic and reboot

2002-10-14 Thread Kliment Andreev

 and use cheap memory, but this box has great memory
 (can't remember which brand) and has been running 4.4
 release for a year, then 4.6 release for the last 3
 Oct 14 03:07:20 mas01 /kernel: Fatal trap 12: page
 fault while in kernel mode

Fatal trap 12 is a hardware error, conflict but usually it means something
is wrong with the RAM even if it is a brand name. I have a box running very
smoothly for several months and when I was trying to cvsup/compile patches
I've got this errors. After buying another memory module, everything was OK.



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



Failed install of 4.7 on laptop...

2002-10-14 Thread Mike Berning

When I attempt to install FreeBSD 4.7, or any 4.x for that matter, I
recieve this error during the initial boot.

pci0: unknown card (vendor = 0x8086, dev = 0x2445) at 31.5 irq 11
pci0: unknown card (vendor = 0x8086, dev = 0x2445) at 31.6 irq 11

I've tried doing a kernel configuration to disable device pci0, but it
says that this device doesn't exist. I know that pci0 is my soundcard
because I tried to install 5.0 and it showed that it was multimedia device
and soundcard. There is no way to disable sound in the bios. Does anybody
have an idea about how to get around this problem, thanks in advance,
mike

ps laptop is toshiba satellite 1905-S301



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



Re: Slightly OT: How to remove an odd file...

2002-10-14 Thread Giorgos Keramidas

On 2002-10-14 10:02, Unix Tools [EMAIL PROTECTED] wrote:
 Brian McCann [EMAIL PROTECTED] wrote:
  I've got an interesting question for you all.  I've got a file who's
  name is...3 blank spaces.  It shows up when I do an ls -la, and I
  can get it's inode # (it's in RedHat...a box I'm going to convert to
  FreeBSD real soon)...does anyone know how to remove a file based off of
  an inode #?

 cd to the directory where the file exists
 write a perl script

 #!/usr/bin/perl
 unlink;
 exit(0);

Or use quoting properly on the command line:

# rm

That seems a bit faster, and requires no Perl knowledge.

Giorgos.

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



Re: Failed install of 4.7 on laptop...

2002-10-14 Thread John Bleichert

On Mon, 14 Oct 2002, Mike Berning wrote:

 Date: Mon, 14 Oct 2002 14:35:21 -0400 (EDT)
 From: Mike Berning [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Failed install of 4.7 on laptop...
 
 When I attempt to install FreeBSD 4.7, or any 4.x for that matter, I
 recieve this error during the initial boot.
 
 pci0: unknown card (vendor = 0x8086, dev = 0x2445) at 31.5 irq 11
 pci0: unknown card (vendor = 0x8086, dev = 0x2445) at 31.6 irq 11
 
 I've tried doing a kernel configuration to disable device pci0, but it
 says that this device doesn't exist. I know that pci0 is my soundcard
 because I tried to install 5.0 and it showed that it was multimedia device
 and soundcard. There is no way to disable sound in the bios. Does anybody
 have an idea about how to get around this problem, thanks in advance,
 mike
 
 ps laptop is toshiba satellite 1905-S301
 

Is this blocking the install or just an error you see during the install? 
On my Thinkpad there is a win32 utility available from IBM to set/disable 
all the onboard devices. Luckily there's also a Linux utility ps2). Does 
Toshiba provide any such utility?

Search the freebsd-mobile list archives for your Satellite.

#  John Bleichert 
#  http://vonbek.dhs.org/latest.jpg


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



CDs Won't Continue from song to song.

2002-10-14 Thread Matthias Trevarthan

Anyone had this problem before?

No matter what CD Player I use (XMMS, Command Line, KsCD), my CDs stop after 
one track.

Any ideas?

Matthias

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



Caching namesever in sandbox not resolving local boxes

2002-10-14 Thread Stacey Roberts

Hi,
  I thought I had this one licked, but I may have ommited some step that
I'd like to get some info on, please.

I've got named configured as a caching nameserver in a sandbox on my
gateway as per the Handbook. However when I run nslookup on other
machines on my network, I get this:
# nslookup lan box
Server:  upstream NS
Address:  upstream NS IP

*** upstream NS can't find lan box: Non-existent host/domain
# 

I have the lan box in /etc/hosts and my domain included at the top of
/etc/resolv.conf. 

I'm thinking that I can't resolve any other hosts on my network because
I've not got entries for them in a zone file, but then the handbook says
that to create a caching nameserver:

A caching name server is a name server that is not authoritative for
any zones. It simply asks queries of its own, and remembers them for
later use. To set one up, just configure the name server as usual,
omitting any inclusions  of zones.

So, am I missing something here. I might well be mistaken in my
understanding of exactly *what* a caching nameserver is supposed to do.

Running nslookup on the g'way itself by name resolves to my external IP
address, for the record, though.

I'm willing to post my named.conf file and any others that might prove
helpful to anyone willing to help. Not sure what will be of use at this
point, so do let me know, please.

TIA

Stacey


-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com




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


Re: Caching namesever in sandbox not resolving local boxes

2002-10-14 Thread Nick Rogness

On 14 Oct 2002, Stacey Roberts wrote:

 Hi,
   I thought I had this one licked, but I may have ommited some step that
 I'd like to get some info on, please.

 I've got named configured as a caching nameserver in a sandbox on my
 gateway as per the Handbook. However when I run nslookup on other
 machines on my network, I get this:
 # nslookup lan box
 Server:  upstream NS
 Address:  upstream NS IP

 *** upstream NS can't find lan box: Non-existent host/domain
 #

 I have the lan box in /etc/hosts and my domain included at the top of
 /etc/resolv.conf.

Your /etc/resolv.conf should be:

search domain.com
nameserver 127.0.0.1


 I'm thinking that I can't resolve any other hosts on my network because
 I've not got entries for them in a zone file, but then the handbook says
 that to create a caching nameserver:

 A caching name server is a name server that is not authoritative for
 any zones. It simply asks queries of its own, and remembers them for
 later use. To set one up, just configure the name server as usual,
 omitting any inclusions  of zones.

 So, am I missing something here. I might well be mistaken in my
 understanding of exactly *what* a caching nameserver is supposed to do.


Yes, to have your local names resolve via nslookup you need to
create a zone and add your local hosts in that zone.  At that
point, your nameserver is no longer a caching-only nameserver.


Nick Rogness [EMAIL PROTECTED]
-
 Wouldn't it be great if we could answer people with a
  kick to the crotch?  [EMAIL PROTECTED]




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



loadable modules

2002-10-14 Thread Mike Ruhl

Howdy,

I am playing with loadable modules on my IBM Thinkpad A21p.

When the laptop boots, I see the modules get loaded, and I see a the 
word 'failed' scroll by.  By examininig kldstat and the loader.conf 
file, it appears that the xl driver isn't being loaded.  However, I 
can't confirm this from the log.

Is there anyway to get the output from that initial load?

(note: hitting scroll lock doesn't stop the scrolling).

Thanks,

Mike


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



Re: FreeBSD VPN similar question...maybe you can help me.

2002-10-14 Thread MrWebby

I've had bad luck with mpd. I couldn't get to work. So, I went back to 
use PoPToP. My firewall blocks GRE (or so I think), and there's nothing 
I can do about it. I'l keep trying. Thanks for all the help and expect 
to hear from me again.

MrWebby

Jim Durham wrote:

On Friday 11 October 2002 04:56 pm, you wrote:

I found YOUR post in the FreeBSD mailing list archive:

_
Sent: Friday, August 30, 2002 11:00 PM
To: [EMAIL PROTECTED]
Subject: Re: VPN - some questions
http://www.freebsd.org/cgi/getmsg.cgi?fetch=1629381+1634913+/usr/local/www/
db/text/2002/freebsd-questions/20020908.freebsd-questions
_

I'm trying to get my laptop (Win2k) or any
other Windows 2000 machine to connect to my FreeBSD server connected to
the internet thu a cable modem. My setup involves a D-Link DI-707
NAT/Firewall/Router connected to the Cable Modem. My client is somewhere
on in Internet behind a firewall or similar (Cable/DSL).


What I do here is run mpd set up for pptp. If you install the mpd port, it 
comes with sample config files, including sections of an example pptp
setup. This has worked well for me. You don't use IPSEC with it, it
has it's own encryption. 

PPTP uses a packet type called GRE. Some firewalls don't understand GRE 
packets. I had that problem with ipfw. I had to go to a default to accept
policy and then block all dangerous ports to get it to work.

It's also possible that the cable modem folks are blocking your GRE stuff.

-Jim






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



Re: Caching namesever in sandbox not resolving local boxes

2002-10-14 Thread Ceri Davies

On Mon, Oct 14, 2002 at 08:02:11PM +0100, Stacey Roberts wrote:
 Hi,
   I thought I had this one licked, but I may have ommited some step that
 I'd like to get some info on, please.
 
 I've got named configured as a caching nameserver in a sandbox on my
 gateway as per the Handbook. However when I run nslookup on other
 machines on my network, I get this:
 # nslookup lan box
 Server:  upstream NS
 Address:  upstream NS IP
 
 *** upstream NS can't find lan box: Non-existent host/domain

If these are local machines that aren't registered in the DNS, then that's
understandable.

 I have the lan box in /etc/hosts and my domain included at the top of
 /etc/resolv.conf. 

nslookup ignores /etc/hosts - it's just for querying nameservers.
In /etc/resolv.conf, you should have the IP address of your caching nameserver
listed as the first nameserver, otherwise there's not much point in having one.

 I'm thinking that I can't resolve any other hosts on my network because
 I've not got entries for them in a zone file, but then the handbook says
 that to create a caching nameserver:
 
 A caching name server is a name server that is not authoritative for
 any zones. It simply asks queries of its own, and remembers them for
 later use. To set one up, just configure the name server as usual,
 omitting any inclusions  of zones.

That's correct, but you probably want your nameserver to be authoritative for
you private LAN (i.e., you want a caching nameserver that is also
authoritative for your local machines).
Therefore you'll need a zone statement for the local machines, plus a
corresponding zone file.

 So, am I missing something here. I might well be mistaken in my
 understanding of exactly *what* a caching nameserver is supposed to do.

I think that's the case.
A caching nameserver will only query other nameservers, so nobody else is
serving DNS for your local machines, then you'll need to.

 I'm willing to post my named.conf file and any others that might prove
 helpful to anyone willing to help. Not sure what will be of use at this
 point, so do let me know, please.

Let us know exactly what you want first ;)

Ceri
-- 
you can't see when light's so strong
you can't see when light is gone

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



Re: CDs Won't Continue from song to song.

2002-10-14 Thread Kevin Golding

Someone, quite probably Matthias Trevarthan, once wrote:
No matter what CD Player I use (XMMS, Command Line, KsCD), my CDs stop after 
one track.

You're selecting Play File instead of Play Directory/Playlist/Similar?

Kevin
-- 
[EMAIL PROTECTED]

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



Re: problem with 4.7 iso

2002-10-14 Thread Gary W. Swearingen

[EMAIL PROTECTED] (Jim Pazarena) writes:

 Not sure if this is the group to report this. I have downloaded
 the iso's from 4.2 on, without a problem until this.

Correct group.  If nobody helps here, then you can usually ask on
about 4.x on freebsd-stable without getting complaints (say you asked
here first).  But in this case it's highly likely that the problem's
at your end.
 
 After composing the above, I downloaded the mini 4.7 iso, burnt a disk,
 and once again the boot process stops at text=0x2833b1 !

Sounds to me like a new problem with your CD burning software or
hardware.  I'm not familiar with that error message but I suspect
that the CD is booting well until it gets to the same point on the
disks.  You might try upgrading or reinstalling your burning software.

And check the CD by getting an MD5 of the CD or doing on a bit-by-bit
compare with the ISO on your hard disk.  It can be a bit tricky as
burncd seems to put and extra block or something on the CD than is in
the ISO file.  Here's my script for the bit-compare which you could also
modify to do the MD5 thing.  You can probably change it to use sh.

#!/bin/ksh

## This is /jojo/bin/ckisocd
#
## This compares the file named by the first argument to the beginning of the CD.
#  Note that the CD burning software (burncd) often writes an ISO CD at least a block 
bigger than the file.
#  I'm not sure why. (It's not a hard disk file system block size thing.)

iso_file=$1

if [ -z ${iso_file} ]; then
echo USAGE: $0 ISO-FILE-FILENAME
exit 1
fi

if [ ! -r ${iso_file} -o ! -f ${iso_file} ]; then
echo ERROR: The argument, \${iso_file}\, is not a readable regular file. 
Aborting with nothing done.
exit 1
fi

blocksize=2048  ## Block size of ISO CDs. Nothing else will work (esp, in dd command).

blocks=$(( $(ls -l ${iso_file} | awk '{print $5;}') / 2048 ))

bytes=$(( ${blocks} * ${blocksize} ))

echo WARNING: About to compare this file (${bytes} bytes, ${blocks} blocks) to CD.
ls -l ${iso_file}
echo -n Enter \y\ to continue, else to abort: 

read
if [ $REPLY != y ]; then
echo You entered \$REPLY\, so the command is aborting with nothing done.
exit 1
fi

echo NOTICE: Comparing \${iso_file}\ to the just-written CD. Please wait...
if dd if=/dev/acd0a count=${blocks} bs=${blocksize} | diff - ${iso_file}; then
echo NOTICE: Comparison OK.  The CD seems OK.
else
echo ERROR: The CD and file differred.
fi

echo done

beep 3

exit 0

## Note: The ls -s command gives a size rounded up to even multiple of fs block size 
-- no good.

## Note: Another, slower, more awkward way to compare the file and CD is this:
# vnconfig -c /dev/vn0a ${iso_file}
# mount -r -t cd9660 /dev/vn0a /mnt/tmp
# mount /cdrom
# diff -r /mnt/tmp /cdrom
# umount /cdrom; eject acd0
# umount /mnt/tmp
# vnconfig -u /dev/vn0a

# The End.

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



ports/graphics/ffmpeg compile issue

2002-10-14 Thread Christopher Schulte

ffmpeg doesn't want to compile for me Anyone
compiled this?  There is a PR about the distfile
changing, but notes indicate the port's Makefile
still works with it.  TIA for any ideas.

I've verified the same problem on multiple versions of FreeBSD
(4.5-RELEASE-p2, 4.6.1-RELEASE-p10, 4.7-Release).

Port version: # $FreeBSD: ports/graphics/ffmpeg/Makefile,v 1.6 2002/10/11 
19:28:30 lioux Exp $

in /usr/ports/graphics/ffmpeg

# make NO_CHECKSUM=yes

error:

gmake[1]: Leaving directory 
`/usr/local/ports/graphics/ffmpeg/work/ffmpeg/libav'
cc -I/usr/local/include -Wall -I. 
-I/usr/local/ports/graphics/ffmpeg/work/ffmpeg 
-I/usr/local/ports/graphics/ffmpeg/work/ffmpeg/libavcodec 
-I/usr/local/ports/graphics/ffmpeg/work/ffmpeg/libav -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o ffmpeg.o ffmpeg.c
ffmpeg.c:39: warning: `INT64_C' redefined
/usr/local/ports/graphics/ffmpeg/work/ffmpeg/libavcodec/common.h:113: 
warning: this is the location of the previous definition
ffmpeg.c:96: warning: `video_rc_qsquish' defined but not used
ffmpeg.c:97: warning: `video_rc_qmod_amp' defined but not used
ffmpeg.c:98: warning: `video_rc_qmod_freq' defined but not used
ffmpeg.c:99: warning: `video_rc_override_string' defined but not used
ffmpeg.c:105: warning: `video_rc_initial_cplx' defined but not used
cc  -Wl,--warn-common -o ffmpeg_g ffmpeg.o -L./libavcodec -L./libav \
   -lavformat -lavcodec -L/usr/local/lib -lz
./libavcodec/libavcodec.so: undefined reference to `log'
./libavcodec/libavcodec.so: undefined reference to `sqrt'
./libavcodec/libavcodec.so: undefined reference to `cosh'
./libavcodec/libavcodec.so: undefined reference to `floor'
./libavcodec/libavcodec.so: undefined reference to `cos'
./libavcodec/libavcodec.so: undefined reference to `tanh'
./libavcodec/libavcodec.so: undefined reference to `sin'
./libavcodec/libavcodec.so: undefined reference to `pow'
./libavcodec/libavcodec.so: undefined reference to `sinh'
./libavcodec/libavcodec.so: undefined reference to `log10'
./libavcodec/libavcodec.so: undefined reference to `exp'
./libavcodec/libavcodec.so: undefined reference to `tan'
gmake: *** [ffmpeg_g] Error 1
*** Error code 2

Stop in /usr/local/ports/graphics/ffmpeg.
#


--
Christopher Schulte
http://www.schulte.org/
Do not un-munge my @nospam.schulte.org
email address.  This address is valid.


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



FreeBSD 4.6.2 + OpenSSH_3.4p1 Weirdness

2002-10-14 Thread Mike Wade

Any idea why the following lines appear frequrently in /var/log/messages
on several of my FreeBSD 4.6.2 boxes?

sshd[50948]: fatal: msg_send: write

---
Mike Wade ([EMAIL PROTECTED])
Blue Highway Labs, LLC.
Office: (423) 634-7746
Cell  : (423) 580-2440
Fax   : (501) 423-5131
AIM   : BHmwade


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



Re: My Zip Drive

2002-10-14 Thread Bryan Cassidy

On Mon, 14 Oct 2002 11:47:50 -0700 (PDT)
Linh Pham [EMAIL PROTECTED] wrote:

 On 2002-10-14, Bryan Cassidy scribbled:
 
 # I am using FreeBSD 4.6.2 I have a Zip Drive on my machine. I try using
 # mount_msdos /dev/afd0 /mnt as root and I hear it trying to mount it
 # but get a error saying Invalid argument.
 
 You may need to add the slice moniker to the device, i.e.:
 
 mount_msdos /dev/afd0a /mnt
 
 -- 
 
 Linh Pham [EMAIL PROTECTED]
 Webmaster and FreeBSD Geekhttp://closedsrc.org
 closedsrc.org   Every solution breeds new problems
 
Well, I did what you said do and tried mount_msdos /dev/afd0a /mnt and still getthis

[bryanc2000@insightbb]/home/bryanc2000# mount_msdos /dev/afd0a /mnt/
mount_msdos: /dev/afd0a: Invalid argument

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



Re: Caching namesever in sandbox not resolving local boxes

2002-10-14 Thread Stacey Roberts

Hi Ceri,
   Thanks for getting back to me (Nick as well!), and sorry about the
top-post for this one.

From what I've learnt here, it would seem as if I've not thought this
one out completely, and haven't got the right kind of nameserver
set-up.

You mentioned that it'd be better to explain what I would like to
achieve: I'd like to have a named set-up that allows me to host DNS
information for my private lan, but also one that facilitates name
resolution of external hosts (via my ISP's upstream NS's).

What I did was literally follow the handbook with respect to even the
naming convention used, so that /etc/namedb has this:
# ls -la
total 16
drwxr-xr-x   8 root  wheel   512 Oct 12 10:30 .
drwxr-xr-x  17 root  wheel  2048 Oct 12 10:33 ..
-rw-r--r--   1 root  wheel   427 Jul 24 07:31 PROTO.localhost-v6.rev
-rw-r--r--   1 root  wheel   423 Sep 18  2001 PROTO.localhost.rev
drwxr-xr-x   2 root  wheel   512 Sep 15 20:51 bin
drwxr-xr-x   2 root  wheel   512 Oct 12 10:41 dev
drwxr-xr-x   2 root  wheel   512 Sep 15 20:35 etc
-rw-r--r--   1 root  wheel  1032 Jul 24 07:32 make-localhost
drwxr-xr-x   2 root  wheel   512 Sep 15 20:36 master
lrwxr-xr-x   1 root  wheel14 Sep 15 20:35 named.conf -
etc/named.conf
-rw-r--r--   1 root  wheel  2843 Oct 12 10:30 named.root
drwxr-xr-x   2 bind  bind512 Sep 15 20:34 slave
drwxr-xr-x   4 root  wheel   512 Sep 15 20:34 var
# 

With the following in /etc/namedb/etc:
# ls -la /etc/namedb/etc
total 8
drwxr-xr-x  2 root  wheel   512 Sep 15 20:35 .
drwxr-xr-x  8 root  wheel   512 Oct 12 10:30 ..
-r--r--r--  1 root  wheel  1323 Sep 15 20:35 localtime
-rw-r--r--  1 root  wheel  3544 Sep 15 21:14 named.conf
# 

..., and the only zone file I have at the moment is a copy of that
suggested in the handbook:

# more named.localhost 
$ORIGIN localhost.
$TTL 6h
@   IN  SOA localhost.  postmaster.localhost.   (
1   ; serial
3600; refresh
1800; retry
604800  ; expiration
3600 )  ; minimum
IN  NS  localhost.
IN  A   127.0.0.1
# 

What I'd appreciate is information on whether or not I can adjust my
bind set-up so as to achieve my intentions from where I am at the
moment.

Thanks so much for taking the time (both of you).

Stacey

snip
On Mon, 2002-10-14 at 20:14, Ceri Davies wrote:

 I think that's the case.
 A caching nameserver will only query other nameservers, so nobody else is
 serving DNS for your local machines, then you'll need to.
 
  I'm willing to post my named.conf file and any others that might prove
  helpful to anyone willing to help. Not sure what will be of use at this
  point, so do let me know, please.
 
 Let us know exactly what you want first ;)
 
 Ceri
 -- 
 you can't see when light's so strong
 you can't see when light is gone
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com




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


Upgrading Xfree86 and /stand

2002-10-14 Thread flash


I am tracking stable, and I have two questions about upgrading via cvsup
and the {build,install}{world,kernel} method.

  1) How do I upgrade Xfree86 to 4.2.x?My XFree is still 3.3.6.

  2) How do I upgrade all the files in /stand. Only sysinstall gets
 upgraded when I follow the handbook instructions.

Thank you.



-- 
Stephen Corbesero
Associate Professor of Computer Science
Moravian College, Bethlehem, PA 18018

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



perl 5.8

2002-10-14 Thread Tomoki Taniguchi

I just installed perl 5.8 from ports tree.  Now I am trying to update all my 
perl module using CPAN...  
when I run  
/usr/local/bin/perl -MCPAN -eshell
and run install Bundle::CPAN
for some reason I can't seem to connect to anything.
I can manually get to each of those ftp sites and grab the file if I want to, 
but was wondering why perl was failing this...  
I get the error messages below...

-tomoki

SNIP
LWP not available
CPAN: Net::FTP loaded ok
Fetching with Net::FTP:
  ftp://carroll.cac.psu.edu/pub/CPAN/authors/01mailrc.txt.gz
Couldn't login on carroll.cac.psu.edu at /usr/local/lib/perl5/5.8.0/CPAN.pm 
line 2178, FIN line 1.
LWP not available
Fetching with Net::FTP:
  ftp://cpan.nas.nasa.gov/pub/perl/CPAN/authors/01mailrc.txt.gz
Couldn't fetch 01mailrc.txt.gz from cpan.nas.nasa.gov
LWP not available
Fetching with Net::FTP:
  ftp://cpan.uky.edu/pub/CPAN/authors/01mailrc.txt.gz
/SNIP

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



Re: Upgrading Xfree86 and /stand

2002-10-14 Thread Linh Pham

On 2002-10-14, flash scribbled:

# I am tracking stable, and I have two questions about upgrading via cvsup
# and the {build,install}{world,kernel} method.
#
#   1) How do I upgrade Xfree86 to 4.2.x?My XFree is still 3.3.6.

There are two ways you can install XFree86 4.2.x on your machine, one is
by downloading the binaries for 4.2.0 plus the update binary package for
4.2.1 from XFree86.org:

4.2.0 for FreeBSD 4.x:
ftp://ftp.xfree86.org/pub/XFree86/4.2.0/binaries/FreeBSD-4.x/

4.2.1 Update for FreeBSD 4.x (requires 4.2.0):
ftp://ftp.xfree86.org/pub/XFree86/4.2.1/binaries/FreeBSD-4.x/

Just pull down all of the files for 4.2.0, read the Install file for
installation directions and notes, configure your video card and make
sure it works, then pull down the files for the 4.2.1 update, and then
follow the directions the Install file.

The second option is to install it using Ports or Packages, though it
seems that some of the ports still carry the 4.2.0 version tag.

Most likely, you will need to reinstall all ports and packages that
depend on XFree86 so that it picks up the new version and libraries. The
latest version of FreeBSD will default to XFree86 4.x... you may want to
check the /etc/defaults/make.conf file to see what it thinks the default
XFree86 version is. Change it if necessary.

#   2) How do I upgrade all the files in /stand. Only sysinstall gets
#  upgraded when I follow the handbook instructions.

All of the other files in /stand are hard-linked to the sysinstall
binary according to the following excerpt from the Handbook:

For the sake of completeness, you may want to update the files in /stand
as well. These files consist of hard links to the /stand/sysinstall
binary. This binary should be statically linked, so that it can work
when no other filesystems (and in particular /usr) have been mounted.

# cd /usr/src/release/sysinstall
# make all install

HTH

-- 

Linh Pham [EMAIL PROTECTED]
Webmaster and FreeBSD Geekhttp://closedsrc.org
closedsrc.org   Every solution breeds new problems


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



Re: problem with 4.7 iso

2002-10-14 Thread Kjell

To: [EMAIL PROTECTED] (Jim Pazarena)
Copies to:  [EMAIL PROTECTED]
Subject:Re: problem with 4.7 iso
From:   [EMAIL PROTECTED] (Gary W. Swearingen)
Date sent:  14 Oct 2002 12:25:31 -0700

 [EMAIL PROTECTED] (Jim Pazarena) writes:
 
  Not sure if this is the group to report this. I have downloaded
  the iso's from 4.2 on, without a problem until this.
 
 Correct group.  If nobody helps here, then you can usually ask on
 about 4.x on freebsd-stable without getting complaints (say you asked
 here first).  But in this case it's highly likely that the problem's
 at your end.
  
  After composing the above, I downloaded the mini 4.7 iso, burnt a disk,
  and once again the boot process stops at text=0x2833b1 !
 
If it is any comfort, I do have problems with the 4.7 ISOs also. I have 
downloaded and burned ISOs from 4.2 through 4.6.2 with no problems. I 
have downloaded 3 copies of 4.7 from different sites, and my Nero CD 
burning program gives the same error message on all 3. The resulting 
CDs are not bootable, and the kernel can not be read when the CDs are 
used as data disks. As a check I downloaded another copy of 4.6.2, 
and the resulting CD was perfect.
Kjell



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



Re: Caching namesever in sandbox not resolving local boxes

2002-10-14 Thread Ceri Davies

On Mon, Oct 14, 2002 at 09:30:51PM +0100, Stacey Roberts wrote:

 From what I've learnt here, it would seem as if I've not thought this
 one out completely, and haven't got the right kind of nameserver
 set-up.

Not yet, but you're 90% of the way there.

 You mentioned that it'd be better to explain what I would like to
 achieve: I'd like to have a named set-up that allows me to host DNS
 information for my private lan, but also one that facilitates name
 resolution of external hosts (via my ISP's upstream NS's).

OK, that's cool - you've already done the second bit, just point your
internal hosts to the nameserver that you've already set up.

 What I did was literally follow the handbook with respect to even the
 naming convention used, so that /etc/namedb has this:

 snip - I'm familiar with this for some reason or other ;) 

 ..., and the only zone file I have at the moment is a copy of that
 suggested in the handbook:

snip localhost. zone

 What I'd appreciate is information on whether or not I can adjust my
 bind set-up so as to achieve my intentions from where I am at the
 moment.

Yup, for sure you can - all you need to do is add a zone.

Here you've got a decision to make - what domain name are you going to use
internally ?  I use submonkey.net for all my hosts that are on the Internet
proper, and private.submonkey.net for machines that are on the internal LAN.
I'm going to assume you want to do the same, and for the purpose of this
discussion that the domain name you'll be using is example.com (although
if a submonkey.net slips in to the example below, then it's just because
I've cutnpasted and have missed one, so mentally substitute example.com).

In named.conf, you're going to want to add a zone statement for the zone
private.example.com (note that there is no need for you to advise anyone
responsible for the DNS for example.com for this to work properly, unless
you want people to get at hosts in private.example.com) :

In named.conf :

zone private.example.com in {
type master;
file master/private.example.com.db;
allow-query{ 127/8; 192.168.10/24; };
};

Then create the file ${NAMED_ROOT}/master/private.example.com.db containing
[note that my time-to-live, expire, etc. are quite large, as this network is
pretty much static] all your host information :
$TTL 864000
$ORIGIN example.com.
private IN  SOA amam.private.example.com. root.example.com. (
2002032302 43200 3600 604800 172800 )
IN  NS  amam.private.example.com.
IN  NS  rhadamanth.private.example.com.
$ORIGIN private.example.com.
rhadamanth  IN  A   192.168.10.1
hoatzin IN  A   192.168.10.3
amamIN  A   192.168.10.5
test-router IN  A   192.168.10.254
www-cache   IN  CNAME   rhadamanth
www IN  CNAME   amam
tftpIN  CNAME   amam
ftp IN  CNAME   amam
newsIN  CNAME   news.cable.ntlworld.com.

Now reload named, and assuming that you've not made any errors in the above
files (check /var/log/messages) then your forward DNS now works for hosts on
your LAN.

If you want reverse DNS working as well, then add this zone statement to
named.conf (modify for your RFC 1918 network(s)) :

zone 10.168.192.in-addr.arpa in {
type master;
file master/192.168.10.db;
allow-query{ 127/8; 192.168.10/24; };
};

Then in ${NAMED_ROOT}/master/192.168.10.db :

$TTL 864000
$ORIGIN 168.192.in-addr.arpa.
10  IN  SOA amam.private.example.com. root.example.com. (
2002032300 43200 3600 604800 172800 )
IN  NS  amam.private.example.com.
IN  NS  rhadamanth.private.example.com.
$ORIGIN 10.168.192.in-addr.arpa.
1   IN  PTR rhadamanth.private.example.com.
3   IN  PTR hoatzin.private.example.com.
5   IN  PTR amam.private.example.com.
254 IN  PTR test-router.private.example.com.

Job's a good 'un.

 Thanks so much for taking the time (both of you).

No problem.

If you need any more help on this, then let me know (and if others on the
list are getting bored, please say so and we'll take this to private mail).

Ceri
-- 
you can't see when light's so strong
you can't see when light is gone

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



WERP WERP --] Socket error! (FTP)

2002-10-14 Thread Janine C . Buorditez


Greetings.

I am running an OpenFTPD server and have no problems connecting to it locally.
Remotely I'm getting socket errors.

Using cons in the installation of OpenFTPD I set the portrange to 3000:4000. The
port the daemon listens to is 31337. I'm running NAT, and have forwarded these
ports to Ninja from my Cisco 677i-DIR ADSL-router/modem:

#

  NAT 
- 
|
Name: Router (CBOS)
IP:   217.13.29.51
|
v
Name: Ninja (FreeBSD)
IP:   192.168.187.1
|
v
Name: Aegis (FreeBSD)
IP:   192.168.187.2

   ROUTER 
- 
|
set nat entry add 10.0.0.2 1024-5000 0.0.0.0 1024-5000 tcp
set nat entry add 10.0.0.2 31337 0.0.0.0 31337 tcp

   RESULT 
- 
|
lftp [EMAIL PROTECTED]:~ ls
 Connecting to ninja.terrabionic.com (217.13.29.51) port 31337
 Socket error (Connection timed out) - reconnecting

#

NAT, it seems, has really made networking a lot harder for me than what I
deserve. I hope somebody understands my situation and are able to give useful
replies.

Thanks!

--janine

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



RE: monitor ALL connections to ALL ports

2002-10-14 Thread Maildrop



I moved this thread to [EMAIL PROTECTED] due to a request that
[EMAIL PROTECTED] was an inapropate place to discuss this issuse.


On Mon, Oct 14, 2002 at 02:31:05PM -0500, Maildrop wrote:

 I put these rule in:

 ipfw add count log all from any to any

 I am getting messages in my log (/var/log/all.log) that appears like
this:
 Oct 14 14:15:06 hydra /kernel: Connection attempt to UDP 192.168.17.1:161
 from 192.168.17.1:1166

That's a log_in_vain message, not ipfw(8).

 Which is exactly, what I want, but there is a couple isses:

 1) It only logs failed connects.  If I try to `telnet localhost 55`, it
 will log that, but if I do a `telnet locahost 80` (where web server is
 running) the connection is valid and doesn't log it.

Right, that's how log_in_vain works.


(from tcp(4))

 tcp.log_in_vainLog any connection attempts to ports where there is
not a socket accepting connections.  The value of 1
limits the logging to SYN (connection establishment)
packets only.  That of 2 results in any TCP packets
to
closed ports being logged.  Any value unlisted above
disables the logging (default is 0, i.e., the
logging
is disabled).

'1' is limited to connection established (valid connections) and '2' is
limited to connection failed... how do I get both failed AND established
from log_in_vain?  I want to log all connections, regardless if they failed
or successed, regardless if they have a daemon running on that port or not.

Currently, they are both set as '1':

net.inet.tcp.log_in_vain: 1
net.inet.udp.log_in_vain: 1


 2) How do I setup Syslog for this?  ipfw man page says it logs to
 LOG_SECURITY facility.  I want to log all connections (failed or not),
into
 one file..

 This is what I currently have in my syslogd.conf file (the log above I am
 pulling from all.log):

 security.*  /var/log/security
 log.security/var/log/ipfw.log

 Both these files are empty :(  I restarted syslogd.

The second one should give you an error. The first one should catch
ipfw(8) logging. You did rebuild your kernel with IPFIREWALL and
IPFIREWALL_VERBOSE, right?


Yep.  4.7-release:

options IPFIREWALL
options IPDIVERT
options IPFIREWALL_VERBOSE  #enable logging to
syslogd(8)
options IPFIREWALL_VERBOSE_LIMIT=100#limit verbosity
options IPSTEALTH   #support for stealth
forwarding

Kernel that is currently running (from kernel config above, clean reboot and
didn't change anything sysctl):

net.inet.ip.fw.enable: 1
net.inet.ip.fw.one_pass: 1
net.inet.ip.fw.debug: 1
net.inet.ip.fw.verbose: 1
net.inet.ip.fw.verbose_limit: 100
net.inet.ip.fw.dyn_buckets: 256
net.inet.ip.fw.curr_dyn_buckets: 256
net.inet.ip.fw.dyn_count: 0
net.inet.ip.fw.dyn_max: 1000
net.inet.ip.fw.static_count: 7
net.inet.ip.fw.dyn_ack_lifetime: 300
net.inet.ip.fw.dyn_syn_lifetime: 20
net.inet.ip.fw.dyn_fin_lifetime: 1
net.inet.ip.fw.dyn_rst_lifetime: 1
net.inet.ip.fw.dyn_udp_lifetime: 10
net.inet.ip.fw.dyn_short_lifetime: 5
net.inet.ip.fw.dyn_grace_time: 10
net.link.ether.ipfw: 0

Something weird that I found:

hydra# ipmon -D /var/log/ipfw.log
/dev/ipl: open: Device not configured

hydra# file /dev/ipl
/dev/ipl: character special (79/0)

hydra# grep ipmon /etc/rc.conf
ipmon_enable=NO   # Set to YES for ipmon; needs ipfilter or
ipnat
ipmon_program=/sbin/ipmon # where the ipfilter monitor program lives
ipmon_flags=-Ds   # typically -Ds or -D /var/log/ipflog

Is ipmon part of ipfw?


hydra# cd /var/log

hydra# ls -l ipfw*
-rw-r--r--  1 root  wheel0 Oct 14 13:26 ipfw.log
-rw---  1 root  wheel  163 Oct 13 03:05 ipfw.today
-rw---  1 root  wheel  151 Oct 12 03:07 ipfw.yesterday

hydra# cat ipfw.log

hydra# cat ipfw.today
00200   0  0 deny ip from any to 127.0.0.0/8
00300   0  0 deny ip from 127.0.0.0/8 to any
65535   0  0 deny ip from any to any

hydra# cat ipfw.yesterday
00200 00 deny ip from any to 127.0.0.0/8
00300 00 deny ip from 127.0.0.0/8 to any
65535 00 deny ip from any to any

hydra# ipfw list
00050 divert 8668 ip from any to any via dc1
00100 allow ip from any to any via lo0
00200 deny ip from any to 127.0.0.0/8
00300 deny ip from 127.0.0.0/8 to any
65000 allow ip from any to any
65100 count log logamount 100 ip from any to any
65535 deny ip from any to any





















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



Re: Upgrading Xfree86 and /stand

2002-10-14 Thread Matthew Seaman

On Mon, Oct 14, 2002 at 04:46:33PM -0400, flash wrote:
 
 I am tracking stable, and I have two questions about upgrading via cvsup
 and the {build,install}{world,kernel} method.
 
   1) How do I upgrade Xfree86 to 4.2.x?My XFree is still 3.3.6.

The best method is to delete XFree86-3.3.6 and all the packages that
depend on it, then build and install XFree86-4.2.0 and then rebuild
and install all the dependent packages again.

First make good backups of /usr/X11R6 and /etc/X11, just in case it
all goes horribly wrong and you need to revert your changes.

Next generate a list of all of the ports that depend on XFree86-3:

pkg_info -R XFree86-\*  /tmp/x-packages
vi /tmp/x-packages [ delete any extraneous stuff and any
 mention of XFree86-3.3.6 specific
 packages]

Then to do the deletion. It's easy if you've got the portupgrade
package installed:

pkg_deinstall -r XFree86-\*

Then you can change the /etc/make.conf setting to say you're now going
to use XFree86-4.2.x:

XFREE86_VERSION=4

Then re-install all the dependency packages:

xargs portinstall -RrN  /tmp/x-packages

This will involve quite a lot of compilation, especially if you've got
much in the way of gnome or kde stuff installed.

Then you'll have to generate a new XF86Config file and redo things
like the xdm(1) setup and all the other bits of customization you
require.  Almost all of the X configuration files -- with the glaring
exception of /etc/X11/XF86Config -- have moved from /etc/X11 to
/usr/X11R6/lib/X11 in the latest versions.

   2) How do I upgrade all the files in /stand. Only sysinstall gets
  upgraded when I follow the handbook instructions.

All of the binary files in /stand are actually hard linked together.
So the new sysinstall binary you've generated can be linked to sh,
gzip, ppp and so forth:

cd /stand
for f in `file -- * | grep ELF | grep -v sysinstall | sed -e 's,:.*$,,'` ;
do
rm -- $f
ln -- sysinstall $f
done

(All of the -- stuff is because of the '-sh' program, which tends to
get confused with command options other wise.)  On my machine that
ends up with a link count of 32.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
  Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK

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



Re: monitor ALL connections to ALL ports

2002-10-14 Thread Crist J. Clark

On Mon, Oct 14, 2002 at 05:09:43PM -0500, Maildrop wrote:
 On Mon, Oct 14, 2002 at 02:31:05PM -0500, Maildrop wrote:
 
  I put these rule in:
 
  ipfw add count log all from any to any
 
  I am getting messages in my log (/var/log/all.log) that appears like
 this:
  Oct 14 14:15:06 hydra /kernel: Connection attempt to UDP 192.168.17.1:161
  from 192.168.17.1:1166
 
 That's a log_in_vain message, not ipfw(8).
 
  Which is exactly, what I want, but there is a couple isses:
 
  1) It only logs failed connects.  If I try to `telnet localhost 55`, it
  will log that, but if I do a `telnet locahost 80` (where web server is
  running) the connection is valid and doesn't log it.
 
 Right, that's how log_in_vain works.
 
 
 (from tcp(4))
 
  tcp.log_in_vainLog any connection attempts to ports where there is
 not a socket accepting connections.  The value of 1
 limits the logging to SYN (connection establishment)
 packets only.  That of 2 results in any TCP packets
 to
 closed ports being logged.  Any value unlisted above
 disables the logging (default is 0, i.e., the
 logging
 is disabled).
 
 '1' is limited to connection established (valid connections)

No, it's limited to SYN's at _closed_ ports. Read the first sentence
again, Log any connection attempts to ports where there is not a
socket accepting connections.

 and '2' is
 limited to connection failed... how do I get both failed AND established
 from log_in_vain?  I want to log all connections, regardless if they failed
 or successed, regardless if they have a daemon running on that port or not.

log_in_vain doesn't do connections to listening ports. That's the job
of what ever is listening.

 Currently, they are both set as '1':
 
 net.inet.tcp.log_in_vain: 1
 net.inet.udp.log_in_vain: 1
 
  2) How do I setup Syslog for this?  ipfw man page says it logs to
  LOG_SECURITY facility.  I want to log all connections (failed or not),
 into
  one file..
 
  This is what I currently have in my syslogd.conf file (the log above I am
  pulling from all.log):
 
  security.*  /var/log/security
  log.security/var/log/ipfw.log
 
  Both these files are empty :(  I restarted syslogd.
 
 The second one should give you an error. The first one should catch
 ipfw(8) logging. You did rebuild your kernel with IPFIREWALL and
 IPFIREWALL_VERBOSE, right?

[snip]

 Something weird that I found:
 
 hydra# ipmon -D /var/log/ipfw.log
 /dev/ipl: open: Device not configured
 
 hydra# file /dev/ipl
 /dev/ipl: character special (79/0)
 
 hydra# grep ipmon /etc/rc.conf
 ipmon_enable=NO   # Set to YES for ipmon; needs ipfilter or
 ipnat
 ipmon_program=/sbin/ipmon # where the ipfilter monitor program lives
 ipmon_flags=-Ds   # typically -Ds or -D /var/log/ipflog
 
 Is ipmon part of ipfw?

No, it's part of IPFilter.

Here's your problem,

 hydra# ipfw list
 00050 divert 8668 ip from any to any via dc1
 00100 allow ip from any to any via lo0
 00200 deny ip from any to 127.0.0.0/8
 00300 deny ip from 127.0.0.0/8 to any
 65000 allow ip from any to any
 65100 count log logamount 100 ip from any to any
 65535 deny ip from any to any

How is anything ever going to reach rule 65100? 65000 passes
everything.
-- 
Crist J. Clark | [EMAIL PROTECTED]
   | [EMAIL PROTECTED]
http://people.freebsd.org/~cjc/| [EMAIL PROTECTED]

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



Re: problem with 4.7 iso

2002-10-14 Thread Jerry McAllister

 
 To:   [EMAIL PROTECTED] (Jim Pazarena)
 Copies to:[EMAIL PROTECTED]
 Subject:  Re: problem with 4.7 iso
 From: [EMAIL PROTECTED] (Gary W. Swearingen)
 Date sent:14 Oct 2002 12:25:31 -0700
 
  [EMAIL PROTECTED] (Jim Pazarena) writes:
  
   Not sure if this is the group to report this. I have downloaded
   the iso's from 4.2 on, without a problem until this.
  
  Correct group.  If nobody helps here, then you can usually ask on
  about 4.x on freebsd-stable without getting complaints (say you asked
  here first).  But in this case it's highly likely that the problem's
  at your end.
   
   After composing the above, I downloaded the mini 4.7 iso, burnt a disk,
   and once again the boot process stops at text=0x2833b1 !
  
 If it is any comfort, I do have problems with the 4.7 ISOs also. I have 
 downloaded and burned ISOs from 4.2 through 4.6.2 with no problems. I 
 have downloaded 3 copies of 4.7 from different sites, and my Nero CD 
 burning program gives the same error message on all 3. The resulting 
 CDs are not bootable, and the kernel can not be read when the CDs are 
 used as data disks. As a check I downloaded another copy of 4.6.2, 
 and the resulting CD was perfect.
 Kjell

As additional perspective,  I just downloaded the 4.7-mini.iso and
it boots and appears to configure and install just fine though it is 
still in the middle of downloading and extracting stuff.
This on a DELL 4600 server.

jerry


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



accept() doesn't pass back sockaddr

2002-10-14 Thread Christopher Weimann

I am using on a web filter ( dansguardian.org ) and am having
problems on FreeBSD (4.5-STABLE).  The filter runs fine for
about 20 minutes or so then can't seem to come up with the
right ip addresses for any client machines.

After much reading of man pages, Stevens, and some banging 
of my head against the desk I decided that maybe it wasn't 
me :)  I found a PR that I think seems to relate (misc/34307) 
but this still confuses me.  I would think that if the 
situation this PR describes were to be the case all sorts 
of things wouldn't be working right.

I don't have a hope of fixing the PR, I can't even seem
to find the source for accept().  Does anybody know of a 
better work around than closing the socket ( and loosing
any backlog ) and re-opening it?.

Thanks in advance.


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



Re: monitor ALL connections to ALL ports

2002-10-14 Thread Matthew Seaman

On Mon, Oct 14, 2002 at 05:09:43PM -0500, Maildrop wrote:
 
 I want to log all connections, regardless if they failed or
 successed, regardless if they have a daemon running on that port or
 not.

The only way I can think of to achieve what you want -- logging every
packet received by your machine -- is to use ipfw(8) and add the 'log'
keyword to all appropriate rules.  You'll need to have a lot of space
in /var and bump up the net.inet.ip.fw.verbose_limit sysctl to some
huge limit and run 'ipfw resetlog' at regular intervals (or ipfw(8)
will quit logging packets --- that's a measure introduced to prevent
the blackhats DoS'ing a machine by causing so many log messages to be
generated it fills up the disk).

You understand that if you make any significant use of networking on
your machine, configuring ipfw(8) in that way will result in you being
drowned in such a flood of log messages you probably won't be able to
cope.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
  Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK

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



Re: My Zip Drive

2002-10-14 Thread Bryan Cassidy

On Mon, 14 Oct 2002 14:12:29 -0700 (PDT)
Linh Pham [EMAIL PROTECTED] wrote:

 Based on the example from that page, replace afd0a with afd0s4 and see
 if it works for you or not. It's been a while since I've had to mount a
 Zip disk on FreeBSD...
 
OK i did that and I get a new error from that.

[bryanc2000@insightbb]/home/bryanc2000# mount_msdos /dev/afd0s4 /mnt/
mount_msdos: /dev/afd0s4: Device not configured
[bryanc2000@insightbb]/home/bryanc2000# 

I dont know what else to do but it would be nice to get it working and get some more 
zip disks instead of these damn floppies.

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



Re: accept() doesn't pass back sockaddr

2002-10-14 Thread Ian Dowse

In message [EMAIL PROTECTED], Christopher Weimann writes:
I am using on a web filter ( dansguardian.org ) and am having
problems on FreeBSD (4.5-STABLE).  The filter runs fine for
about 20 minutes or so then can't seem to come up with the
right ip addresses for any client machines.

After much reading of man pages, Stevens, and some banging 
of my head against the desk I decided that maybe it wasn't 
me :)  I found a PR that I think seems to relate (misc/34307) 
but this still confuses me.  I would think that if the 
situation this PR describes were to be the case all sorts 
of things wouldn't be working right.

Is the code in question correctly initialising the variable that
the `addrlen' parameter points to before calling accept?  It looks
as if this might be the problem in the PR you mention. I mean that
the code should look like

sin_len = sizeof(sin);
s = accept(servsock, (struct sockaddr *)sin, sin_len);

where `sin_len' is reset to the correct length before calling
accept() each time. I think sin_len may be reset to 0 when an error
occurs, but otherwise you would get away with not resetting it.

Ian

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



FreeBSD/Alpha Browser

2002-10-14 Thread Mike Hogsett


I am running Netscape 4.7/OSF1 on Alpha with the osf1.ko compatability
module, but I want a better browser.


[axp] [hogsett] [~]
 -- cd /usr/ports/www/netscape7/
[axp] [hogsett] [/usr/ports/www/netscape7]
 -- make
===  netscape7-7.0 is only for i386, and you are running alpha.
[axp] [hogsett] [/usr/ports/www/netscape7]
 -- cd /usr/ports/www/mozilla
[axp] [hogsett] [/usr/ports/www/mozilla]
 -- make
===  mozilla-1.0.1_1,2 is marked as broken: core dumps on alpha during post-build.
[axp] [hogsett] [/usr/ports/www/mozilla]
 -- argh
bash: argh: command not found


Suggestions?

 - Mike Hogsett

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



Re: accept() doesn't pass back sockaddr

2002-10-14 Thread Christopher Weimann

On Tue 10/15/2002-12:17:49AM +0100, Ian Dowse wrote:
 
 In message [EMAIL PROTECTED], Christopher Weimann writes:
 I am using on a web filter ( dansguardian.org ) and am having
 problems on FreeBSD (4.5-STABLE).  The filter runs fine for
 about 20 minutes or so then can't seem to come up with the
 right ip addresses for any client machines.
 
 After much reading of man pages, Stevens, and some banging 
 of my head against the desk I decided that maybe it wasn't 
 me :)  I found a PR that I think seems to relate (misc/34307) 
 but this still confuses me.  I would think that if the 
 situation this PR describes were to be the case all sorts 
 of things wouldn't be working right.
 
 Is the code in question correctly initialising the variable that
 the `addrlen' parameter points to before calling accept?  It looks
 as if this might be the problem in the PR you mention. I mean that
 the code should look like
 
   sin_len = sizeof(sin);
   s = accept(servsock, (struct sockaddr *)sin, sin_len);
 
 where `sin_len' is reset to the correct length before calling
 accept() each time. I think sin_len may be reset to 0 when an error
 occurs, but otherwise you would get away with not resetting it.
 

I think you have it.  I checked and the code in question has the
same problem as the PR code, sin_len is not being reset to the proper
value before each call to accept().  I will put this change in and
sometime tommorow ( once the box gets some traffic ) I will know if
this has fixed it.  I'm betting it will.

Thank you!


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



Re: one-line curses-type lib? (somewhat OT)

2002-10-14 Thread John Bleichert

On Mon, 14 Oct 2002, Kris Kennaway wrote:

 Date: Mon, 14 Oct 2002 17:29:59 -0700
 From: Kris Kennaway [EMAIL PROTECTED]
 To: John Bleichert [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: one-line curses-type lib? (somewhat OT)
 
 On Mon, Oct 14, 2002 at 04:42:03PM -0400, John Bleichert wrote:
  Hello All
  
  I've been fiddling with ncurses for a while and it doesn't seem to provide 
  what I need right now. I need a method for writing positionally to one 
  line, and one line only, sort of like a curses for one terminal line, not 
  the whole screen, a la the progress line in cdparanaoia ans rpm. Can 
  anybody tell me which lib facilitates this? Is there one? 
 
 Well, curses will let you do this too.
 
 Kris

I have a full-term curses interface, but I couldn't get curses to provide 
just a one-line terminal interface, leaving the rest uneffected.

Proper use of '\r' and fflush did the trick.

Thanks - JB

#  John Bleichert 
#  http://vonbek.dhs.org/latest.jpg


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



Re: Failed install of 4.7 on laptop...

2002-10-14 Thread Mike Berning

John Bleichert said:

 Is this blocking the install or just an error you see during the
 install?  On my Thinkpad there is a win32 utility available from IBM to
 set/disable  all the onboard devices. Luckily there's also a Linux
 utility ps2). Does  Toshiba provide any such utility?

 Search the freebsd-mobile list archives for your Satellite.

 #  John Bleichert
 #  http://vonbek.dhs.org/latest.jpg

This is blocking me from installing the system because it simply won't run
FreeBSD. Thanks for the suggestion on freebsd-mobile and the toshiba
utilities, I'll look into it. Thanks again,
mike




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



Re: ports/graphics/ffmpeg compile issue

2002-10-14 Thread Kris Kennaway

On Mon, Oct 14, 2002 at 02:17:16PM -0500, Christopher Schulte wrote:
 ffmpeg doesn't want to compile for me Anyone
 compiled this?  There is a PR about the distfile
 changing, but notes indicate the port's Makefile
 still works with it.  TIA for any ideas.

Port problems should usually be discussed with the maintainer.

 cc  -Wl,--warn-common -o ffmpeg_g ffmpeg.o -L./libavcodec -L./libav \
   -lavformat -lavcodec -L/usr/local/lib -lz

It should be linking with libm, and in fact the old version does so
for me (the package compiles successfully and is available on the ftp
site).

Perhaps the new version is broken.  You can either fetch the package,
or a copy of the correct distfile, from ftp.freebsd.org or a mirror.

kris

 



msg05081/pgp0.pgp
Description: PGP signature


Re: perl 5.8

2002-10-14 Thread cas

did you try using the cmd 'use.perl port' as root first? also, you can get
alot of those perl modules from ports also.. the ones I know off hand:

/usr/ports/devel
/usr/ports/lang
/usr/ports/net
/usr/ports/www

I believe 'LWP' is in /usr/ports/www/p5-libwww


On Mon, 14 Oct 2002, Tomoki Taniguchi wrote:

 I just installed perl 5.8 from ports tree.  Now I am trying to update all my
 perl module using CPAN...
 when I run
 /usr/local/bin/perl -MCPAN -eshell
 and run install Bundle::CPAN
 for some reason I can't seem to connect to anything.
 I can manually get to each of those ftp sites and grab the file if I want to,
 but was wondering why perl was failing this...
 I get the error messages below...

 -tomoki

 SNIP
 LWP not available
 CPAN: Net::FTP loaded ok
 Fetching with Net::FTP:
   ftp://carroll.cac.psu.edu/pub/CPAN/authors/01mailrc.txt.gz
 Couldn't login on carroll.cac.psu.edu at /usr/local/lib/perl5/5.8.0/CPAN.pm
 line 2178, FIN line 1.
 LWP not available
 Fetching with Net::FTP:
   ftp://cpan.nas.nasa.gov/pub/perl/CPAN/authors/01mailrc.txt.gz
 Couldn't fetch 01mailrc.txt.gz from cpan.nas.nasa.gov
 LWP not available
 Fetching with Net::FTP:
   ftp://cpan.uky.edu/pub/CPAN/authors/01mailrc.txt.gz
 /SNIP

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




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



Re: loadable modules

2002-10-14 Thread Tim Kellers


Try dmesg -a | less and use the spacebar or the Enter key to scroll
through the kernel and boot messages.

Tim Kellers
CPE/NJIT


On Mon, 14 Oct 2002, Mike Ruhl wrote:

 Howdy,

 I am playing with loadable modules on my IBM Thinkpad A21p.

 When the laptop boots, I see the modules get loaded, and I see a the
 word 'failed' scroll by.  By examininig kldstat and the loader.conf
 file, it appears that the xl driver isn't being loaded.  However, I
 can't confirm this from the log.

 Is there anyway to get the output from that initial load?

 (note: hitting scroll lock doesn't stop the scrolling).

 Thanks,

 Mike


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



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



Network config for new install

2002-10-14 Thread John Daniels

I will be installing 4.7-RELEASE over ftp.  I have a static DSL connection.  
I have looked through all the relevent docs but I can not find the answer to 
this:

Network config part of Sysinstall asks for a Host name and Domain name.  
But, I do not yet have a domain name, so...

  a) should I purchase one before I start the install? (if so
 is this necessary or very convenient - recommended?)
  b) can I enter anything for Host name and Domain name and
 change it later? (will this make my life very difficult?)
  c) can you point me to any docs?

Thanks in advance,

John


(c) Copyright 2002  John Daniels.  All rights reserved.


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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



Re: Monitor IP Traffic from many BSD computers

2002-10-14 Thread Mike Hogsett


If you intend to send the captured packets to the console host via the
same interface they were captured from this will multipy the network load
tremendously.  And if you also have the console host do the same this too
will likely cause your network to become overloaded sending the packets
captures.  I don't think this is a practical approuch.

It may be practicle if you place a second NIC in each machine and create a
second network only for sending the captures to the console host.  This
too is likely not the best solution.

I would recommend that you find your self a switch with a more functional
SPAN port, such as an old Cisco 2900.  The Catalyst series SPAN ports are
much more capable.  I often dump all the traffic from any one of a number
of VLANs from the 2900.

But mind you if your network is heavily loaded your SPAN port wont have
the bandwidth to keep up with the traffic.

 - Mike Hogsett

 I have a pool of bsd computers, connected together via an ethernet switch.
 I like to monitor the traffic that is exchanged between all the computers,
 and capture and display them on a console computer.  Since I'm using a
 switch, I will not be able to see the traffic and also the switch is a 3com
 superstack II -3300 which can only monitor one port at a time, so that
 option is out also.  I like to know how I can setup the pool of bsd
 computers, so that they send a copy of whatever packet they receive to the
 console computer so that I can capture and graph it using a utility like
 etherape.
 
 thanks for your help,
 ~koroush
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message

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



RE: Drive/DMA issuse

2002-10-14 Thread Jonas Fornander

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]] On Behalf Of Maildrop
 Sent: Monday, October 14, 2002 8:29 AM
 To: Maildrop; Jonas Fornander; 'FreeBSD LIST'
 Subject: RE: Drive/DMA issuse
 
 
 
 Any ideas on this, is it a hardware issuse, hardware config 
 issuse, softare issuse?
 
 Jack
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Maildrop
  Sent: Saturday, October 12, 2002 12:22 AM
  To: Jonas Fornander; 'FreeBSD LIST'
  Subject: Drive/DMA issuse
 
 
 
 
  Everytime I boot up, I see this in my log files:
 
 
  ad0: 4112MB SAMSUNG SV0432A [8912/15/63] at ata0-master UDMA33
  ad2: 95396MB WDC WD1000BB-00CAA0 [193821/16/63] at ata1-master 
  UDMA33
  ad3: 78167MB Maxtor 98196H8 [158816/16/63] at ata1-slave UDMA33
  ad0s1a: UDMA ICRC error reading fsbn 11199 of 5568-5571 (ad0s1 bn
  11199; cn
  0 tn 177 sn 48) retrying
  ad0s1a: UDMA ICRC error reading fsbn 255 of 96-127 (ad0s1 bn 255;
  cn 0 tn 4
  sn 3) retrying
  ad0s1a: UDMA ICRC error reading fsbn 255 of 96-127 (ad0s1 bn 255;
  cn 0 tn 4
  sn 3) retrying
  ad0s1a: UDMA ICRC error reading fsbn 255 of 96-127 (ad0s1 bn 255;
  cn 0 tn 4
  sn 3) retrying
  ad0s1a: UDMA ICRC error reading fsbn 255 of 96-127 (ad0s1 bn 255;
  cn 0 tn 4
  sn 3) falling back to PIO mode
 
 
  I tried switch IDE cables (used 3 differant cables on the 
 drive) and 
  played around with the PIO/bits in the BIOS (tried PIO 4, 
 PIO 1, none, 
  auto and both 16-bit and 32-bit and all combinations of these).  I 
  have ran fsck on the drive many times.
 
  Sometimes the server crashes, I think it might be related 
 to this hard 
  drive (if a hard drive fails to save data, could/would this cause a
  kernel panic?)
 
  Any suggestions?  It appears the other drives are working fine.
 
  ad0s1a is my root slice/drive, btw.  (this drive has a root slice, 
  /var slice and a swap slice).
 
 
  Regards,
  Jack
 
 
  To Unsubscribe: send mail to [EMAIL PROTECTED]
  with unsubscribe freebsd-questions in the body of the message
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message

I guess any and all of the above. I solved it by getting a new HD and/or
motherboard. Don't remember exactly what I replaced but anything until
the error vanished. My hunch is that it's a failing HD.

Jonas Fornander - System Administrator
Netwood Communications, LLC - www.netwood.net
Find out why we're better - 310-442-1530  


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



Re: Network config for new install

2002-10-14 Thread Tim Kellers

Your hostname is simply the name of your computer.  As any user, type
hostname at the shell prompt and it will return the name the computer
thinks it is (the FreeBSD default is Amnesiac).

If, as root, you type hostname (without the quotation marks, of course),
you make the hostname anything you like.  If you want a new hostname to
remain after reboot, you have to enter it into /etc/rc.conf

For the Domain name, type in the static ip address that the DSL provider
has assigned you.  After you get up and running with network support, you
can type:
nslookup (the IP address you entered)

and FreeBSD will return, usually*, the DNS equivalent of the IP address
you
entered.  You can change the ip address Domain Name to the value that
nslookup returns if you like, but its not really important to do.

Tim Kellers
CPE/NJIT

* I say usually because some ISP's don't have true DNS entries assigned
to their distributed IP addresses.  It's somewhat rare, but it happens.


On Mon, 14 Oct 2002, John Daniels wrote:

 I will be installing 4.7-RELEASE over ftp.  I have a static DSL connection.
 I have looked through all the relevent docs but I can not find the answer to
 this:

 Network config part of Sysinstall asks for a Host name and Domain name.
 But, I do not yet have a domain name, so...

   a) should I purchase one before I start the install? (if so
  is this necessary or very convenient - recommended?)
   b) can I enter anything for Host name and Domain name and
  change it later? (will this make my life very difficult?)
   c) can you point me to any docs?

 Thanks in advance,

 John


 (c) Copyright 2002  John Daniels.  All rights reserved.


 _
 Join the world’s largest e-mail service with MSN Hotmail.
 http://www.hotmail.com


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



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



Re: Failed install of 4.7 on laptop...

2002-10-14 Thread Bob Johnson

On Monday 14 October 2002 02:35 pm, Mike Berning appears to have 
written:
 When I attempt to install FreeBSD 4.7, or any 4.x for that matter, I
 recieve this error during the initial boot.

 pci0: unknown card (vendor = 0x8086, dev = 0x2445) at 31.5 irq 11
 pci0: unknown card (vendor = 0x8086, dev = 0x2445) at 31.6 irq 11


Unless something changed with 4.7, that error shouldn't prevent 
installation, unless the unknown card was some critical device, 
like your hard drive.  If it is simply your sound card, the install 
should continue happily without it.

 I've tried doing a kernel configuration to disable device pci0, but
 it says that this device doesn't exist. I know that pci0 is my
 soundcard because I tried to install 5.0 and it showed that it was
 multimedia device and soundcard. There is no way to disable sound in
 the bios. Does anybody have an idea about how to get around this
 problem, thanks in advance, mike

Are you getting any other error messages or clues?  Is the error 
message above the last thing that appears on the screen?  If not, 
what is?

- Bob


 ps laptop is toshiba satellite 1905-S301


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



Roadblock on Alpha installation

2002-10-14 Thread Ralph Walker

Hi!

I am attempting to install FreeBSD 4.6 for Alpha on a DEC Multia (UDB) 
box.  I have two multias one a 166 Mhgz and one 233 Mhgz.  I have been 
successful in installing and running NT 4.0 on both so I bekieve the 
hardware is OK.

 From the SRM console I boot DKA400 -flags   -file   and the boot 
process begins, I do get a few soft errors from the CDROM but it seems to 
continue.  After loading the kernel I get the list of devices then the 
message about running from the serial console and asks to enter a number 
from 1-5 choosing a terminal type.  At this point keyboard input is shut off.

This happens on both multias.  How do I get beyond this?  I have installed 
FReeBSD 4.6 on a intel box successfully.  I would like to utilize the 
multias as servers.

Thanks

Ralph

[EMAIL PROTECTED]



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



hardware terminal Wipro

2002-10-14 Thread Roman V. Mashak

Hello.
I need documentation for terminal, it's called Wipro WSM-14DF. I've 
beensearching in google - but ni success. Could someone help me? Thanks in advance.

-- 
Best regards, Roman

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



RE: Failed install of 4.7 on laptop...

2002-10-14 Thread Chris Kulish

This should get you past that:

Booting [kernel] in 10 seconds...
[press space key]
ok boot -c
[...boot messages...]
config eisa 0
config quit

hth,

Chris Kulish

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Bob Johnson
Sent: Monday, October 14, 2002 10:39 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Failed install of 4.7 on laptop...

On Monday 14 October 2002 02:35 pm, Mike Berning appears to have 
written:
 When I attempt to install FreeBSD 4.7, or any 4.x for that matter, I
 recieve this error during the initial boot.

 pci0: unknown card (vendor = 0x8086, dev = 0x2445) at 31.5 irq 11
 pci0: unknown card (vendor = 0x8086, dev = 0x2445) at 31.6 irq 11


Unless something changed with 4.7, that error shouldn't prevent 
installation, unless the unknown card was some critical device, 
like your hard drive.  If it is simply your sound card, the install 
should continue happily without it.

 I've tried doing a kernel configuration to disable device pci0, but
 it says that this device doesn't exist. I know that pci0 is my
 soundcard because I tried to install 5.0 and it showed that it was
 multimedia device and soundcard. There is no way to disable sound in
 the bios. Does anybody have an idea about how to get around this
 problem, thanks in advance, mike

Are you getting any other error messages or clues?  Is the error 
message above the last thing that appears on the screen?  If not, 
what is?

- Bob


 ps laptop is toshiba satellite 1905-S301


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


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



Mpd on a DEC alpha

2002-10-14 Thread Brent Wiese

I am trying to connect 2 networks via pptp using mpd.

I have confirmed my files are set up correct because I can connect 2
Intel Freebsd boxes successfully.

However, when trying to connect an alpha to the Intel, it fails.

I get tons of these messages:

pid 50112 (mpd): unaligned access: va=0x12005c175 pc=0x12002ecb8
ra=0x12002ec68 op=stq

It eventually says its using the ng0 interface.

I'm running 4.5 for alpha, the GENERIC kernel.

Any ideas? Any more info I can provide that may help?

And to answer the inevitable question - yes, I have to use PPTP in this
particular instance.

Thanks,
Brent


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



Re: monitor ALL connections to ALL ports

2002-10-14 Thread Roman V. Mashak

On Mon, Oct 14, 2002 at 11:42:25PM +0100, Matthew Seaman wrote:
  I want to log all connections, regardless if they failed or
  successed, regardless if they have a daemon running on that port or
  not.

 The only way I can think of to achieve what you want -- logging every
 packet received by your machine -- is to use ipfw(8) and add the 'log'
 keyword to all appropriate rules.  You'll need to have a lot of space
 in /var and bump up the net.inet.ip.fw.verbose_limit sysctl to some
Could you describe some methods of counting /var-partition size
for saving there:
1) 'maillog' data
2) 'ipfw' logs.

Thanks in advance.
 huge limit and run 'ipfw resetlog' at regular intervals (or ipfw(8)
[skip]

-- 
Best regards, Roman

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



Re: ports/graphics/ffmpeg compile issue

2002-10-14 Thread wolf

try updating your ports dir then doing a make clean install
I am using the latest version here, just trying to figure how to make it 
work with my bktr card

Kris Kennaway wrote:

 On Mon, Oct 14, 2002 at 02:17:16PM -0500, Christopher Schulte wrote:
 
ffmpeg doesn't want to compile for me Anyone
compiled this?  There is a PR about the distfile
changing, but notes indicate the port's Makefile
still works with it.  TIA for any ideas.

 
 Port problems should usually be discussed with the maintainer.
 
 
cc  -Wl,--warn-common -o ffmpeg_g ffmpeg.o -L./libavcodec -L./libav \
  -lavformat -lavcodec -L/usr/local/lib -lz

 
 It should be linking with libm, and in fact the old version does so
 for me (the package compiles successfully and is available on the ftp
 site).
 
 Perhaps the new version is broken.  You can either fetch the package,
 or a copy of the correct distfile, from ftp.freebsd.org or a mirror.
 
 kris
 
  
 


-- 
Michael Joyner
FreeBSD System Administrator
http://manhattan.hq.dyns.cx/


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



Re: one-line curses-type lib? (somewhat OT)

2002-10-14 Thread Giorgos Keramidas

On 2002-10-14 21:10, John Bleichert [EMAIL PROTECTED] wrote:
 On Mon, 14 Oct 2002, Kris Kennaway wrote:
  On Mon, Oct 14, 2002 at 04:42:03PM -0400, John Bleichert wrote:
   I've been fiddling with ncurses for a while and it doesn't seem
   to provide what I need right now. I need a method for writing
   positionally to one line, and one line only, sort of like a
   curses for one terminal line, [...]
 
  Well, curses will let you do this too.

 I have a full-term curses interface, but I couldn't get curses to
 provide just a one-line terminal interface, leaving the rest
 uneffected.  Proper use of '\r' and fflush did the trick.

You might also want to check the libedit of readline libraries.

-- 
[EMAIL PROTECTED]   FreeBSD: The Power to Serve
FreeBSD 5.0-CURRENT #12: Thu Oct 10 21:08:38 EEST 2002

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



Re: Network config for new install

2002-10-14 Thread sonam singh

U CAN GIVE ANY HOST NAME E.G BSD.XYZ.COM IN /ETC/HOSTS
TO CONFIGURE THE NETOWK CARD LOOK AT THE DMESG OUTPUT 
IT SHOWS U  NETWORK CARD U HAVE . OR USE IFCONFIG U
CAN ALSO USE /STAND/SYSINSTALL TO CONFIGURE IT

REGARDS
SONAM SINGH
 

--- Tim Kellers [EMAIL PROTECTED] wrote:
 Your hostname is simply the name of your computer. 
 As any user, type
 hostname at the shell prompt and it will return the
 name the computer
 thinks it is (the FreeBSD default is Amnesiac).
 
 If, as root, you type hostname (without the
 quotation marks, of course),
 you make the hostname anything you like.  If you
 want a new hostname to
 remain after reboot, you have to enter it into
 /etc/rc.conf
 
 For the Domain name, type in the static ip address
 that the DSL provider
 has assigned you.  After you get up and running with
 network support, you
 can type:
 nslookup (the IP address you entered)
 
 and FreeBSD will return, usually*, the DNS
 equivalent of the IP address
 you
 entered.  You can change the ip address Domain Name
 to the value that
 nslookup returns if you like, but its not really
 important to do.
 
 Tim Kellers
 CPE/NJIT
 
 * I say usually because some ISP's don't have true
 DNS entries assigned
 to their distributed IP addresses.  It's somewhat
 rare, but it happens.
 
 
 On Mon, 14 Oct 2002, John Daniels wrote:
 
  I will be installing 4.7-RELEASE over ftp.  I have
 a static DSL connection.
  I have looked through all the relevent docs but I
 can not find the answer to
  this:
 
  Network config part of Sysinstall asks for a Host
 name and Domain name.
  But, I do not yet have a domain name, so...
 
a) should I purchase one before I start the
 install? (if so
   is this necessary or very convenient -
 recommended?)
b) can I enter anything for Host name and Domain
 name and
   change it later? (will this make my life very
 difficult?)
c) can you point me to any docs?
 
  Thanks in advance,
 
  John
 
 
  (c) Copyright 2002  John Daniels.  All rights
 reserved.
 
 
 

_
  Join the world’s largest e-mail service with MSN
 Hotmail.
  http://www.hotmail.com
 
 
  To Unsubscribe: send mail to [EMAIL PROTECTED]
  with unsubscribe freebsd-questions in the body
 of the message
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of
 the message


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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



Re: Network config for new install

2002-10-14 Thread Tim Kellers

Ummm... that's exactly what I said, wasn't it?

(apart from ithe ifconfig -u parto, I mean)

On Mon, 14 Oct 2002, sonam singh wrote:

 U CAN GIVE ANY HOST NAME E.G BSD.XYZ.COM IN /ETC/HOSTS
 TO CONFIGURE THE NETOWK CARD LOOK AT THE DMESG OUTPUT
 IT SHOWS U  NETWORK CARD U HAVE . OR USE IFCONFIG U
 CAN ALSO USE /STAND/SYSINSTALL TO CONFIGURE IT

 REGARDS
 SONAM SINGH


 --- Tim Kellers [EMAIL PROTECTED] wrote:
  Your hostname is simply the name of your computer.
  As any user, type
  hostname at the shell prompt and it will return the
  name the computer
  thinks it is (the FreeBSD default is Amnesiac).
 
  If, as root, you type hostname (without the
  quotation marks, of course),
  you make the hostname anything you like.  If you
  want a new hostname to
  remain after reboot, you have to enter it into
  /etc/rc.conf
 
  For the Domain name, type in the static ip address
  that the DSL provider
  has assigned you.  After you get up and running with
  network support, you
  can type:
  nslookup (the IP address you entered)
 
  and FreeBSD will return, usually*, the DNS
  equivalent of the IP address
  you
  entered.  You can change the ip address Domain Name
  to the value that
  nslookup returns if you like, but its not really
  important to do.
 
  Tim Kellers
  CPE/NJIT
 
  * I say usually because some ISP's don't have true
  DNS entries assigned
  to their distributed IP addresses.  It's somewhat
  rare, but it happens.
 
 
  On Mon, 14 Oct 2002, John Daniels wrote:
 
   I will be installing 4.7-RELEASE over ftp.  I have
  a static DSL connection.
   I have looked through all the relevent docs but I
  can not find the answer to
   this:
  
   Network config part of Sysinstall asks for a Host
  name and Domain name.
   But, I do not yet have a domain name, so...
  
 a) should I purchase one before I start the
  install? (if so
is this necessary or very convenient -
  recommended?)
 b) can I enter anything for Host name and Domain
  name and
change it later? (will this make my life very
  difficult?)
 c) can you point me to any docs?
  
   Thanks in advance,
  
   John
  
  
   (c) Copyright 2002  John Daniels.  All rights
  reserved.
  
  
  
 
 _
   Join the world’s largest e-mail service with MSN
  Hotmail.
   http://www.hotmail.com
  
  
   To Unsubscribe: send mail to [EMAIL PROTECTED]
   with unsubscribe freebsd-questions in the body
  of the message
  
 
 
  To Unsubscribe: send mail to [EMAIL PROTECTED]
  with unsubscribe freebsd-questions in the body of
  the message


 __
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos  More
 http://faith.yahoo.com

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



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



route settings in rc.conf - question, with details.

2002-10-14 Thread Firsto Lasto


Hi,

I have a system with IPs assigned from 192.168.0.0/24 and 192.168.1.0/24

Right now I have this in my rc.conf:

defaultrouter=10.10.10.10
ifconfig_fxp0=inet 192.168.0.1 netmask 255.255.255.0
ifconfig_fxp0_alias0=inet 192.168.0.2 netmask 255.255.255.255
ifconfig_fxp0_alias1=inet 192.168.1.1 netmask 255.255.255.255

So, as you can see I have one default route, and both /24s use that single 
10.10.10.10 as the default router.  But, because I have simply added the 
192.168.1.1 IP as one more plain old alias, I now get this in my logs:

/kernel: arplookup 10.10.10.10 failed: host is not on local network

So, how do I add 192.168.1.1 as an alias, without adding another 
defaultrouter, since my current defaultrouter setting is already correct ?

thanks!


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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



Re: Ports FAQ is a great read [port.tar??]

2002-10-14 Thread Peter Leftwich

On 1 Oct 2002, Gary W. Swearingen wrote:
 non-cvsup method 3:
 --  cd /usr/ports/sub
 fetch
 ftp://ftp.freebsd.org/pub/FreeBSD/branches/-current/ports/sub/port.tar
 tar -xf port.tar
 Note: Not all of the mirrors support tar-on-the-fly ftp transfers, but some do, 
including the primary site.

What is tar-on-the-fly?  Case in point:

# mkdir /usr/ports/java ; cd /usr/ports/java
# fetch ftp://ftp.freebsd.org/pub/FreeBSD/branches/-current/ports/java/jdk13.tar
fetch: jdk13.tar: File unavailable (e.g., file not found, no access)

I am losing faith in my abilities and am most certainly settling on a life
of /stand/sysinstall and `pkg_add -r` :-(  Can someone offer me hope?

--
Peter Leftwich
President  Founder
Video2Video Services
Box 13692, La Jolla, CA, 92039 USA
+1-413-403-9555


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



Re: trouble mounting floppy

2002-10-14 Thread sonam singh

 U CAN TRY /DEV/FD.1440 THIS ALSO
REGARDS
SONAM SINGH
[EMAIL PROTECTED]


--- Roman Neuhauser [EMAIL PROTECTED] wrote:
 wayne, don't top-post. not even when following up to
 your own post.
 
 # [EMAIL PROTECTED] / 2002-10-13 22:53:25
 -0500:
  At 08:28 PM 10.13.2002 -0700, Wayne Lubin wrote:
  --- Wayne Lubin [EMAIL PROTECTED] wrote:
   Hi,
   
   I have been mounting my floppy drive for a long
   time.
   However, now when I do a 
   
   mount -t msdos /dev/fd0 /mnt/floppy
   
   it gives me the error msg 
   
   mount: /dev/fd0: Device not configured
   
   It may have to do with the fact that the last
 time I
   mounted the floppy I turned off the computer
 without
   umount ing it.  Thanks for you help.
  
  So I guess my question is what does it mean that
  /dev/fd0 is not configured and how can I get it
  configured so that I can start mounting it again.
 
  I see no one else has taken a shot at this, so:
  
  1) do you have a directory /mnt/floppy
  2) do you have the device fd0 in /dev
 
 also, are you trying to mount the same floppy
 you forgot
 to unmount? if you have ufs on the floppy you
 will need to fsck
 first. i don't remember if you would be getting
 not configured
 error though...
 
 -- 
 begin 666 nonexistent.vbs
 FreeBSD 4.7-STABLE
 9:36AM up 1 day, 12:06, 9 users, load averages:
 0.01, 0.02, 0.00
 end
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of
 the message


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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



Re: route settings in rc.conf - question, with details.

2002-10-14 Thread Patrick O'Reilly

From: Firsto Lasto [EMAIL PROTECTED]

 Hi,

 I have a system with IPs assigned from 192.168.0.0/24 and 192.168.1.0/24

 Right now I have this in my rc.conf:

 defaultrouter=10.10.10.10
 ifconfig_fxp0=inet 192.168.0.1 netmask 255.255.255.0
 ifconfig_fxp0_alias0=inet 192.168.0.2 netmask 255.255.255.255
 ifconfig_fxp0_alias1=inet 192.168.1.1 netmask 255.255.255.255

 So, as you can see I have one default route, and both /24s use that
single
 10.10.10.10 as the default router.  But, because I have simply added the
 192.168.1.1 IP as one more plain old alias, I now get this in my logs:

 /kernel: arplookup 10.10.10.10 failed: host is not on local network

 So, how do I add 192.168.1.1 as an alias, without adding another
 defaultrouter, since my current defaultrouter setting is already correct
?


The problem is not with the aliases - it is (as the message says) because
the default router is not on a local network.  If the router is attached
via fxp0, then try adding an alias like this:
ifconfig_fxp0_alias2=inet 10.10.10.1 netmask 255.255.255.0

Then your system will know which interface to use to talk to 10.10.10.10.

---
Regards,
Patrick O'Reilly.
______
   / _ )__ __ (_)_ __ ___ _/ / __
  / __/ -_) _) /  ~  ) -_), ,-/ -_) _)
 /_/  \__/_//_/_/~/_/\__/ \__/\__/_/
http://www.perimeter.co.za




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



Installing Packages Using Sysinstall?

2002-10-14 Thread Tony M.

Hello again everyone.
I am trying to use the sysinstall utility to add packages.  If I use the main server
(ftp.freebsd.org) then I get a message saying that it can't find the 4.7-RC1
distribution on this server.
When I set the options to any and then try it it says it can't find the /INDEX file
on the specified server.  Even when I put in the full path to
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-4.7-rc1/ as a url, it still
can't find it.

What am I doing wrong?

Thanks,

Tony

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



Re: Ports FAQ is a great read [port.tar??]

2002-10-14 Thread Roman Neuhauser

# [EMAIL PROTECTED] / 2002-10-15 01:19:17 -0400:
 On 1 Oct 2002, Gary W. Swearingen wrote:
  non-cvsup method 3:
  --  cd /usr/ports/sub
  fetch
  ftp://ftp.freebsd.org/pub/FreeBSD/branches/-current/ports/sub/port.tar
  tar -xf port.tar
  Note: Not all of the mirrors support tar-on-the-fly ftp transfers, but some 
do, including the primary site.
 
 What is tar-on-the-fly?

No idea. :)

 # mkdir /usr/ports/java ; cd /usr/ports/java
 # fetch ftp://ftp.freebsd.org/pub/FreeBSD/branches/-current/ports/java/jdk13.tar
 fetch: jdk13.tar: File unavailable (e.g., file not found, no access)

I don't think this will work. You have to fetch the files from
sun.com manually due to licensing issues.
 
-- 
If you cc me or take the list(s) out completely I'll most likely
ignore your message.

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



Re: Running ipfw from a webpage/using php.

2002-10-14 Thread Roman Neuhauser

# [EMAIL PROTECTED] / 2002-10-14 16:12:36 +0100:
 On Mon, Oct 14, 2002 at 04:54:03PM +0200, Jens Rehsack wrote:
  Patrick Holahan wrote:
 
   I need to run a root command (ipfw) from apache through php. (Yes, this is
   not very secure and I'm aware of this and if anyone has any better
   suggestions, please feel free to make them.)
 
  is that the function you search:
string exec ( string command [, array output [, int return_var]])
 
 That will run as the UID of the webserver, usually www, which won't be
 very useful for doing stuff with ipfw.
 
 I'd grab sudo(8) or one of the alternatives from ports and very
 carefully craft a /usr/local/etc/sudoers file that lets the www UID
 run a specific ipfw command line without giving a password.  Be very
 careful not to let the www UID make arbitrary changes to your firewall
 or you will discover the true meaning of pain in very short order.
 Remember to add www to the wheel group if you go this way.

this is IMO a better solution:

#!/bin/sh
[ -f /some/file ]  \
/your/command  \
/bin/rm -f /some/file

/etc/crontab:

*   *   *   *   *   root/your/script

in the php script:

touch('/some/file');

 Oh, and good luck maintaining the integrity of your machine if you do
 implement this.  You're going to need it...

not necessarily. implementation dependent. :)

-- 
If you cc me or take the list(s) out completely I'll most likely
ignore your message.

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



Business Proposal

2002-10-14 Thread Dr.Dan Musa


_
Looking to be employed? We have an ocean of employers and employees waiting to be 
matched. Go to Maktoob Jobs NOW.  
http://www.maktoob.com/



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