Re: 6.0-R && DMA with Intel ICH6 UDMA100/SATA150 controller

2006-01-03 Thread guru
El día Tuesday, January 03, 2006 a las 09:05:23PM -0800, Ted Mittelstaedt 
escribió:

> 
> If you play a movie file from the hard disk does the same thing happen?

Interestingly it only happens with Mplayer but not with ogle; before
yesterday I could not use ogle because the one from the ports collection
has a bug and only played the sound, but dark screen; yesterday I got
the hint to compile ogle from the CVS and now it works too; I was
surprised that ogle play the same DVD fine, while Mplayer with these
breaks... playing from disk also Mplayer works without breaks;

> 
> Is this full screen or not?

not full screen;

> 
> What is the laptop make and model?

its a Fujitsu Siemens Lifebook E8020 with 2.13 GHz CPU, 1 GB RAM,
ATI "M24 1P Radeon Mobility X600" graphic ship
and Xorg works fine with a resolution of 1400x1050

matthias

-- 
Matthias Apitz / Sisis Informationssysteme GmbH
ein Tochterunternehmen der OCLC PICA B.V. Leiden (NL)
D-82041 Oberhaching, Gruenwalder Weg 28g
Fon: +49 89 / 61308-351, Fax: -399, Mobile +49 170 4527211
http://www.sisis.de/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: termcap and TERM detection

2006-01-03 Thread E. Eusey

Malcolm Kay wrote:

On Wed, 4 Jan 2006 03:29 pm, Malcolm Kay wrote:


Seems this applies to both rxvt and urxvt, To target urxvt 
specifically use:

URxvt*termName: rxvt-unicode

Looking at the Makefile in the rxvt-unicode port I find:
CONFIGURE_ARGS= --enable-shared --enable-everything \ 
--with-term=rxvt

Which I would guess changes the default from rxvt-unicode to
rxvt probably because rxvt-unicode is not normally available in 
the termcap file. You could also consider modifying the Makefile 
and rebuilding the port.


Malcolm Kay



Brilliant.  Thanks much.

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


Re: termcap and TERM detection

2006-01-03 Thread Malcolm Kay
On Wed, 4 Jan 2006 03:29 pm, Malcolm Kay wrote:
> On Wed, 4 Jan 2006 07:34 am, E. Eusey wrote:
> > The secondary screen functionality on my xterm
> > (rxvt-unicode) was acting strangly.  So, following the
> > advice at:
> >
> > http://cvs.schmorp.de/browse/*checkout*/rxvt-unicode/doc/rxv
> >t. 7.html
> >
> > I added an rxvt-unicode termcap entry to my termcap file and
> > ran cap_mkdb.  After login, I'm able to 'setenv TERM
> > rxvt-unicode' and everything works perfectly.
> >
> > However, when running urxvt initially, it detects the $TERM
> > as 'rxvt', not 'rxvt-unicode'.  How is the $TERM variable
> > determined by the system? Is there a way to detect my new
> > termcap entry?  Any help would be greatly appreciated.
>
> You should be able to set this through resources:
> For example in .Xdefaults add:
> Rxvt*termName: rxvt-unicode
>
Seems this applies to both rxvt and urxvt, To target urxvt 
specifically use:
URxvt*termName: rxvt-unicode

Looking at the Makefile in the rxvt-unicode port I find:
CONFIGURE_ARGS= --enable-shared --enable-everything \ 
--with-term=rxvt
Which I would guess changes the default from rxvt-unicode to
rxvt probably because rxvt-unicode is not normally available in 
the termcap file. You could also consider modifying the Makefile 
and rebuilding the port.

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


RE: 6.0-R && DMA with Intel ICH6 UDMA100/SATA150 controller

2006-01-03 Thread Ted Mittelstaedt

If you play a movie file from the hard disk does the same thing happen?

Is this full screen or not?

What is the laptop make and model?

Ted

>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED]
>Sent: Monday, January 02, 2006 10:37 PM
>To: freebsd-questions@freebsd.org
>Subject: 6.0-R && DMA with Intel ICH6 UDMA100/SATA150 controller
>
>
>
>Hi,
>
>I've this configuration for the DVD device in my notebook:
>
>$ fgrep 'Jan  3' messages | egrep 'ata|acd0'
>Jan  3 07:05:23 rebelion kernel: atapci0: controller> port
>0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x14c0-0x14cf at device 31.1 on pci0
>Jan  3 07:05:23 rebelion kernel: ata0:  on atapci0
>Jan  3 07:05:23 rebelion kernel: ata1:  on atapci0
>Jan  3 07:05:23 rebelion kernel: atapci1: controller> port
>0x14f0-0x14f7,0x14e4-0x14e7,0x14e8-0x14ef,0x14e0-0x14e3,0x14d0-0
>x14df mem 0xc8000c00-0xc8000fff irq 19 at device 31.2 on pci0
>Jan  3 07:05:23 rebelion kernel: ata2:  on atapci1
>Jan  3 07:05:23 rebelion kernel: ata3:  on atapci1
>Jan  3 07:05:23 rebelion kernel: ata4:  on atapci1
>Jan  3 07:05:23 rebelion kernel: ata5:  on atapci1
>Jan  3 07:05:23 rebelion kernel: acd0: DVDR
> at ata0-master UDMA33
>Jan  3 07:05:23 rebelion kernel: ad4: 76319MB ST98823AS 3.03> at ata2-master SATA150
>
>and DMA is activated:
>
>$ sysctl -a | fgrep _dma
>hw.ata.ata_dma: 1
>hw.ata.atapi_dma: 1
>$
>
>but playing a movie from DVD with mplayer gives these breaks and jumps
>as if DMA is not active; any hints?
>
>Thx
>
>   matthias
>___
>freebsd-questions@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to
>"[EMAIL PROTECTED]"
>
>--
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.1.371 / Virus Database: 267.14.11/219 - Release
>Date: 1/2/2006
>

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


Re: termcap and TERM detection

2006-01-03 Thread Malcolm Kay
On Wed, 4 Jan 2006 07:34 am, E. Eusey wrote:
> The secondary screen functionality on my xterm (rxvt-unicode)
> was acting strangly.  So, following the advice at:
>
> http://cvs.schmorp.de/browse/*checkout*/rxvt-unicode/doc/rxvt.
>7.html
>
> I added an rxvt-unicode termcap entry to my termcap file and
> ran cap_mkdb.  After login, I'm able to 'setenv TERM
> rxvt-unicode' and everything works perfectly.
>
> However, when running urxvt initially, it detects the $TERM as
> 'rxvt', not 'rxvt-unicode'.  How is the $TERM variable
> determined by the system? Is there a way to detect my new
> termcap entry?  Any help would be greatly appreciated.
>
You should be able to set this through resources:
For example in .Xdefaults add:
Rxvt*termName: rxvt-unicode

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


Re: Problems reading CDRW after writing

2006-01-03 Thread Malcolm Kay
On Wed, 4 Jan 2006 03:37 am, Marc Evans wrote:
> Hello -
>
> I am running FreeBSD 6.0-STABLE as of Dec-15-2005 on a P4
> system. I have a CDRW drive attached, which identifies as
> follows:
>
>   acd0: CDRW  at ata1-slave UDMA33
>
> I wish to use this device to produce CDRW backup disks
> periodically. I use the following commands to produce the
> backup:
>
>   burncd erase
>   sleep 2 # needed to avoid READY error
>   tar czf - ... | burncd data - fixate
>
> This appears to work fine, from the perspective of the output
> of the commands, e.g. I see output like:
>
> blanking CD - 100 % done
> next writeable LBA 0
> writing from stdin
> written this track 633420 KB total 633420 KB
> fixating CD, please wait..
>
> My problem is that attempts to read the data back, always
> fail:
>
> # tar tzf /dev/acd0
> tar: Error opening archive: Error reading '/dev/acd0':
> Input/output error # ls -l /dev/*cd*
> crw-r-  1 root  operator0,  93 Jan  3 10:33 /dev/acd0
> crw-r-  1 root  operator0, 127 Dec 30 14:26
> /dev/acd0t01
>
> No errors are shown in /var/log/messages.
>
> I have also tried writing an ISO9660 image and mounting it,
> with similar problems at mount time.
>
> The above said, I am able to create CD-R data disks and mount
> them or otherwise use them. I have tried several different
> CD-RW media, and played with -s (the media is rated as 12x),
> but have observed no changes.
>
> Can anyone suggest solutions?
>

This raises a number of questions:-
* Can the RW disks you have written be read in some other drive?
* Can you read RW disks written somewhere else?

A pure shot in the dark -- but I suspect the read on your drive 
may not be sensitive enough to read RW disks.

Of course if it can write them one would expect it is designed to 
be able to read them -- but it may be out of spec. or have 
deteriorated since manufacture.

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


Re: Mozilla plugins broken after port upgrade

2006-01-03 Thread Chris Hill

On Tue, 3 Jan 2006, Chris Whitehouse wrote:


Chris Hill wrote:


[snip]


Beech,

Thank you that, and especially thank you for writing the "107925" post 
referred to above. Your procedure worked beautifully.


Did the 107925 post work for you? it was superceded by
http://lists.freebsd.org/pipermail/freebsd-questions/2005-December/107927.html 
which corrected a typo, specifically


rm -rf /usr/X11R6/lib/browser_plugins /usr/X11R6/lib/browser_linux_plugins

(possibly wrapped) was replaced by

rm -rf /usr/X11R6/lib/browser_linux_plugins

I used the second and it worked. I can't see how the first would work (but 
that doesn't mean much :).


I figured that part out myself :^)  What I actually did was rename the 
browser_linux_plugins directory in case I needed it back.


--
Chris Hill   [EMAIL PROTECTED]
** [ Busy Expunging <|> ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ipfw divert with exception?

2006-01-03 Thread Foo Ji-Haw

Which is the part that does not work?

You can see the matching process by adding 'log' to the rule:
ipfw log add 70 allow tcp from 10.0.1.254 to any

Last thing to check: traffic runs both ways, so you may need to have two 
rules instead of one.


- Original Message - 
From: "patrick" <[EMAIL PROTECTED]>

To: "Foo Ji-Haw" <[EMAIL PROTECTED]>
Cc: 
Sent: Wednesday, January 04, 2006 3:06 AM
Subject: Re: ipfw divert with exception?



That's what I thought too, but it doesn't seem to be the case. Here's
what I have:

ipfw -f flush
ipfw add 70 allow tcp from 10.0.1.254 to any
ipfw add accept tcp from any to any 22 in via ${ext_if}
ipfw add 6000 allow all from any to any via lo0
ipfw add 6100 allow all from any to any via ${int_if}
ipfw add 7000 divert natd all from any to any via ${ext_if}
ipfw add 7100 check-state
ipfw add pass all from any to any via ${ext_if}
ipfw add pass all from any to any via ${int_if}
ipfw add 65534 allow ip from any to any

Patrick

On 1/2/06, Foo Ji-Haw <[EMAIL PROTECTED]> wrote:

I've not tried it myself, but putting the exception rules before the
'divert' rule should help, since ipfw exits the rule matching upon first
match.

- Original Message -
From: "patrick" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, January 03, 2006 4:56 AM
Subject: ipfw divert with exception?


> I have a FreeBSD 6.0 machine acting as a router for our office. We use
> natd for address translation, and I have rule like so:
>
> ipfw add divert natd all from any to any via ${ext_if}
>
> To allow incoming SSH access, I have a redirect_port line setup in my
> /etc/natd.conf file, and while it works just fine, I don't like that
> natd has to be running in order for me to SSH into the server.
> (Because, if -- hypothetically of course -- one were to *cough*
> accidentally kill the natd process without realizing this, then
> *ahem*, one would be locked out remotely without any means of fixing
> it. And I'd like to stress that this situation is indeed, uh,
> hypothetical. ;) )
>
> So, I'm sure there is a way for me to create some ipfw rules above the
> divert line to accept incoming SSH traffic and not having it get
> diverted, but I'm at a bit of a loss as to how I can achieve this. The
> current rule I have above this does not do anything to stop the
> traffic from being diverted:
>
> ipfw add accept tcp from any to any 22 in via ${ext_if}
>
> Any help or insight would be greatly appreciated.
>
> Thanks,
>
> Patrick
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"



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

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


Re: Mozilla plugins broken after port upgrade

2006-01-03 Thread Beech Rintoul
On Tuesday 03 January 2006 02:11 pm, Chris Whitehouse wrote:
> Chris Hill wrote:
> > This led me to
> > http://lists.freebsd.org/pipermail/freebsd-questions/2005-December/107925
> >.html
> >
> > ...which was exactly what I was looking for.
> >
> >> For acroread make sure you rename /usr/local/bin/acroread7
> >> to /usr/local/bin/acroread.
> >
> > Beech,
> >
> > Thank you that, and especially thank you for writing the "107925" post
> > referred to above. Your procedure worked beautifully.
>
> Did the 107925 post work for you? it was superceded by
> http://lists.freebsd.org/pipermail/freebsd-questions/2005-December/107927.h
>tml which corrected a typo, specifically
>
> rm -rf /usr/X11R6/lib/browser_plugins /usr/X11R6/lib/browser_linux_plugins
>
> (possibly wrapped) was replaced by
>
> rm -rf /usr/X11R6/lib/browser_linux_plugins
>
> I used the second and it worked. I can't see how the first would work
> (but that doesn't mean much :).

That was a typo, I attached the text file. Sorry about that.

Beech
-- 

---
Beech Rintoul - System Administrator - [EMAIL PROTECTED]
/"\   ASCII Ribbon Campaign  | NorthWind Communications
\ / - NO HTML/RTF in e-mail  | 201 East 9th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - Please visit Alaska Paradise - http://akparadise.byethost33.com
---











## Workaround for broken port linuxpluginwrapper.
## Beech Rintoul - [EMAIL PROTECTED]

## Before building linuxpluginwrapper:

rm -R /usr/X11R6/lib/browser_linux_plugins

ln -s /usr/X11R6/lib/browser_plugins /usr/X11R6/lib/browser_linux_plugins


## Build linuxpluginwrapper:

cd /usr/ports/www/linuxpluginwrapper

make -DWITH_PLUGINS install clean

## or upgrade:

portupgrade -vm -DWITH_PLUGINS linuxpluginwrapper

## Remove symlink (Will break Mozilla).

rm -rf /usr/X11R6/lib/browser_linux_plugins

## Fix acroread:

rm -rf /usr/local/bin/acroread  # If upgrade.

mv  /usr/local/bin/acroread7  /usr/local/bin/acroread

rm -rf /usr/X11R6/lib/browser_plugins/nppdf.so

ln -s  
/usr/local/lib/acroread/usr/local/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so 
/usr/X11R6/lib/browser_plugins/nppdf.so

## Change path to nppdf.so in /etc/libmap.conf:

# Acrobat7 with Mozilla/Firebird/Galeon/Epiphany/Konqueror
[/usr/local/lib/acroread/usr/local/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so]
 
libc.so.6   pluginwrapper/acrobat.so

## Note:
## Acroread now works properly in browser.
## Helix plugin does not work with Firefox or Mozilla at this time. 
## Flash 6.0 works without modification.
## Flash7 is VERY unstable and will crash Firefox (possibly Mozilla).

## Launch browser and type "about:plugins" without the quotes to check that 
plugins are enabled.___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Free BSD install tutorial I wrote

2006-01-03 Thread Jerry McAllister
> 
> On Tuesday 03 January 2006 16:50, Josh Soza wrote:
> > Allen wrote:
> > >I wrote this quite a while ago and I've posted it to the docs list before
> > > and it got a good repsonce, but I've seen a couple install questions on
> > > here so I'm going to link to it again for this list. I don't think there
> > > is an easier to follow installer help anywhere. Not arrogance, but I did
> > > do very well with it in making it easy as crap to install:
> > >
> > >http://www.antionline.com/showthread.php?s=&threadid=259335
> > >
> > >You don't have to sign up to read this.
> > >
> > >-Allen
> >
> > First off this is NOT a flame.  But I found your tutorial extremely hard
> > to follow.  First what does a user do if they can't boot from CD?  
> 
> I believe in the intro I pointed out "Assumptions" that you need to boot from 
> CD for this particular tutorial. May God have mercy on anyone trying to do a 
> floppy install. Even the books say not to do that.

Doing the full install from floppy would be tortuous, but using the 
floppy to boot the sysinstall and then doing the installation over
the net is reasonable - not much different from using the CD to 
install over the net - which is what I normally do.

jerry

> 
> Ah here it is:
> 
> Assumptions:
> You have a CD-ROM drive
> 
> > -josh
> >
> > p.s.  Hello World!  Sorry I'm a newbie...Had to get that out  :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Free BSD install tutorial I wrote

2006-01-03 Thread Jerry McAllister
> 
> Allen wrote:
> 
> >On Tuesday 03 January 2006 16:50, Josh Soza wrote:
> >
> <..snip..>
> 
> >And another mail I sent to the list today, I pointed out the reason I didn't 
> >link tot he docs. I WANT people to BUY the books from Free BSD to help 
> >support the project. You can't possibly think that was wrong of me, the 
> >developers need to eat too.
> >
> 
> For the sake of argument, most of those publishers do not contribute to 
> the community anyways. 


I think that is true, but just having some traffic in their FreeBSD 
selection is positive and supports the possibility that they might
just publish more.

>   I believe the freebsdmall contributes a portion 
> of all profits to the project, im not 100% sure though..

I have heard they do, but don't know any details.

jerry

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

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


Re: Free BSD install tutorial I wrote

2006-01-03 Thread Frank J. Laszlo

Allen wrote:


On Tuesday 03 January 2006 16:50, Josh Soza wrote:
 

 


<..snip..>

And another mail I sent to the list today, I pointed out the reason I didn't 
link tot he docs. I WANT people to BUY the books from Free BSD to help 
support the project. You can't possibly think that was wrong of me, the 
developers need to eat too.
 



For the sake of argument, most of those publishers do not contribute to 
the community anyways. I believe the freebsdmall contributes a portion 
of all profits to the project, im not 100% sure though..


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


Re: How long to compile...

2006-01-03 Thread Rowdy

Crispy Beef wrote:

Hi,

This is kind of related to my other post (Kernel Compilation), but 
thought I'd post it seperately as it would be interesting to know...


Was wondering on average how long building userland and the kernel for 
6.0-RELEASE should take on a 466MHz Celeron machine with 128Mb RAM?


The only frame of reference I have is building 4.5-RELEASE on an ancient 
P120 system with next to nothing on it (gateway/firewall box).



Cheers,

Paul


On a Celeron 466 with 256M RAM, I upgraded from 5.3 to 6.0.

make buildworld took around 5 hours 37 minutes.

make kernel took around 1 hour 25 minutes.

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


Re: Mozilla plugins broken after port upgrade

2006-01-03 Thread Chris Whitehouse

Chris Hill wrote:


This led me to 
http://lists.freebsd.org/pipermail/freebsd-questions/2005-December/107925.html 


...which was exactly what I was looking for.


For acroread make sure you rename /usr/local/bin/acroread7
to /usr/local/bin/acroread.



Beech,

Thank you that, and especially thank you for writing the "107925" post 
referred to above. Your procedure worked beautifully.


Did the 107925 post work for you? it was superceded by
http://lists.freebsd.org/pipermail/freebsd-questions/2005-December/107927.html 
which corrected a typo, specifically


rm -rf /usr/X11R6/lib/browser_plugins /usr/X11R6/lib/browser_linux_plugins

(possibly wrapped) was replaced by

rm -rf /usr/X11R6/lib/browser_linux_plugins

I used the second and it worked. I can't see how the first would work 
(but that doesn't mean much :).


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


RE: ipnat -CF -f /etc/ipnat.rules

2006-01-03 Thread fbsd_user

On 1/2/06, fbsd_user <[EMAIL PROTECTED]> wrote:
> I see "tun" in your ipnat rule.
> That means you are using ppp for phone dialup connection.
> Every time you lose your phone connection you get different IP
from
> your ISP.
> Use NAT function of PPP and not ipnat and your problem will go
away.
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of caleb
> Sent: Friday, December 30, 2005 9:16 PM
> To: freebsd-questions@freebsd.org
> Subject: ipnat -CF -f /etc/ipnat.rules
>
>
> Hi everyone,
> I have just put together a router/firewall using 5.4
> RELEASE
> and IPFILTER. Everything is working fine except I have to manually
> flush
> the NAT table every time the router boots. below is my rc.conf and
> ipnat.rules, I have used rc.conf to start everything at boot;
>
> /* rc.conf */
>
> gateway_enable="YES"
> sshd_enable="YES"
> ifconfig_rl1="inet 10.0.0.1 netmask 255.255.255.0"
> ifconfig_rl0="inet 192.168.0.1 netmask 255.255.255.0"
> hostname="tweak"
> ipfilter_enable="YES"
> ipfilter_rules="/etc/ipf.rules"
> ipmon_enable="YES"
> ipmon_flags="-Ds"
> ipnat_enable="YES"
> ipnat_rules="/etc/ipnat.rules"
> ppp_enable="YES"
> ppp_mode="ddial"
> ppp_nat="NO"
> ppp_profile="netspace"
> ppp_user="root"
>
> /* ipnat.rules */
>
> map tun0 192.168.0.0/24 -> 0/32
>
>
> Is there something I am missing? I do not think it is ipf, as I
have
> configured it to allow everything in and out. Could you please CC
me
> if
> you decide to help.
>
> Thankyou,
>
> caleb
> --
>
>

   Well i use PPPoE protocol, i have never try the same ppp program
to
handle the NAT thing, them i disable ipnat or what...? I need to
understand this very clear.

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

You are not configured correctly. This statement
 ifconfig_rl0="inet 192.168.0.1 netmask 255.255.255.0"
is forceing that ip addr to be used and its wrong.
you have to get ip assigned by your isp.
Follow this example.  Which means you can use ipnat or ppp nat.

  start of ppp.conf  ###
default:

 set log Phase tun #use to avoid excessive log sizes
 set timeout 0 # no idle time out, will not
disconnect

dialisp:
 set device PPPoE:XXX  # replace xxx with your NIC device
name
 set authname YOURLOGINNAME# Replace with your ISP account
username
 set authkey YOURPASSWORD  # Replace with your ISP account
password
 add default HISADDR   # Add a (sticky) default route
(Mandatory)
 enable dns # Gets the ISP's DNS IP address & places
them
# in resolv.conf for reference by FBSD box.

###   End of ppp.conf
#


Replace the XXX in the [set device PPPoE:XXX] statement with the
NIC's FBSD interface name. Sometimes it will be necessary to use a
service tag to establish your connection depending on how your ISP
and/or the phone company has its DSL network configured. Service
tags are used to distinguish between different PPPoE servers
attached to a given network. You should have been given any required
service tag information in the documentation provided by your ISP.
If you cannot locate it there, ask your ISP's tech support
personnel. This is the format of the command with the service tag
added:

set device PPPoE::service_tag(in your case  = rl0)

The  is the FBSD interface name used by PPPoE. The interface
must be UP (IE: enabled). It is only used as a transport, and does
not need to be assigned an IP address. This can be done
automatically at boot time by updating the /etc/rc.conf file. The
format of the statement to add is ifconfig_=up where  is the
NIC's FBSD interface name used by PPPoE that you specified in the
/etc/ppp/ppp.conf file.


ee /etc/rc.conf # add following statements

ifconfig_=up# (in your case  = rl0)

ifconfig_tun0="DHCP"# get your ISP assigned IP address



To setup user ppp to dial your ISP automatically at FBSD boot time,
you have to add the following statements to the rc.conf file. The
ddial option means to redial every time the connection to the ISP
gets dropped.

ee /etc/rc.conf


# Activate user ppp auto start at boot time
ppp_enable="YES" # Start User PPP task
ppp_mode="ddial" # ddial, auto, background
ppp_profile="dialisp"# section in ppp.conf to exec

#ppp_nat="YES"   # only if you have LAN behind this PC.

# deactivate ipfilter Nat function (comment statements out)

#ipnat_enable="YES"
#ipnat_rules="/etc/ipnat.rules"

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


Re: FreeBSD 6.0: Problem with network, doesn't use default

2006-01-03 Thread Christer Folkesson



Glenn Dawson wrote:


At 07:18 AM 1/3/2006, Christer Folkesson wrote:

Hi, this is my first message to the mailing-list. I hope that I have 
included

enough information about the problem.

The problem is that my FreeBSD 6.0 (release) won't use the default route
(gateway). So I can't access anything on the internet.

Hardware and network equipment:
Dell latitude D810 (Pentium M 2.0 GHz, 1.5 GB of primary memory, 
broadcom

gigabit/fast/"normal" ethernet controller).
The broadcom chip uses the bge driver. I have looked in the man page 
for that

and no troubles or something like that is mentioned.
IPv4 address: 192.168.0.228 /25

The gateway is a netgear RP614 broadband router. IPv4: 192.168.0.199 /25

Also a windows 2003 server is acting as DNS-server for my network.

FreeBSD shares the computer with windows XP pro SP2 using dual boot.
In windows it works fine so this convince me that it's a software 
problem in

FreeBSD.

As said, it works perfectly fine inside the LAN, but not outside.


I include a dmesg output (at the bottom) if that is of any importance 
and also

output from ifconfig, netstat -nr, ping and traceroute.
I was logged in as root while testing this.
Notice that because I'm using an internal DNS-server I can do lookups.
Obviously that wouldn't have been possible with the DNS-server 
provided by my

ISP.



I don't see anything obviously wrong with the configuration info you 
sent below.  The problem you are having is more likely in the router 
you are using, but without that configuration info, it's impossible to 
tell.


Are you using dhcp to assign IP addresses?  If so, is the router doing 
that job or something else?


Since you mentioned that it works when you boot into windows, are the 
network settings the same? (IP, netmask, default route ,etc) or is 
windows configured to use something different?


How is NAT configured in the router?  Does it's configuration cover 
the 192.168.0.228 address?


-Glenn



Problem is solved!
Sometimes oneself must be told to re-think what you think you already have
though of ;-)

(I'm not using DHCP for the record)

The network settings for the broadcom controller wasn't the same in windows,
but the same as the intel p/w 2915 wireless controller in windows.
IP for broadcom in windows was 192.168.0.225 /25 and .228 for the wireless.

My conclusion is that the netgear RP614 played along fine in the LAN.
For example I had no problem accessing it's web-interface.
BUT when it comes to do NAT:ing it must have remembered the MAC of .228
(since I had used windows right before freebsd) and the NAT function of it
refuse to understand that it has to use another MAC for sending back
information.

After changing the broadcom controller's IP in freebsd to 192.168.0.225 /25
it works perfectly.


Thanks to you all for your replys. I have still some endeavors left before
freebsd is like a hand in the glove on my laptop, but hopefully I won't
run in to "unresolvable" problems =)

/ Christer


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


Re: Free BSD install tutorial I wrote

2006-01-03 Thread Allen
On Tuesday 03 January 2006 16:50, Josh Soza wrote:
> Allen wrote:
> >I wrote this quite a while ago and I've posted it to the docs list before
> > and it got a good repsonce, but I've seen a couple install questions on
> > here so I'm going to link to it again for this list. I don't think there
> > is an easier to follow installer help anywhere. Not arrogance, but I did
> > do very well with it in making it easy as crap to install:
> >
> >http://www.antionline.com/showthread.php?s=&threadid=259335
> >
> >You don't have to sign up to read this.
> >
> >-Allen
>
> First off this is NOT a flame.  But I found your tutorial extremely hard
> to follow.  First what does a user do if they can't boot from CD?  

I believe in the intro I pointed out "Assumptions" that you need to boot from 
CD for this particular tutorial. May God have mercy on anyone trying to do a 
floppy install. Even the books say not to do that.

Ah here it is:

Assumptions:
You have a CD-ROM drive

You won't be sharing the HD with another OS (If you are, when it comes time to 
partition, you're on your own I won't be showing you how to partition to use 
another OS with it, as I don't, and don't feel the need to, as there is 
enough documentation to get you through this anyway, and besides, you have to 
partition to use Free BSD anyway, so if you can do that, you can do it to 
allow another OS to reside on disk with Free BSD too.)


You will be setting up a network connection. (If you are not, then skip that 
section).

> Are 
> there any preinstallation tasks like: inventory of hardware, ps/2 mouse
> or serial, size of partitions, user accounts/groups(other than root).  I
> personally find it easier if you have a plan rather than shooting from
> the hip.

Again I believe that was pointed out as well where I pointed out the others I 
wrote, those say to grab all hardware info from your current OS as you'll 
need it. And I believe it was pointed out in this one as well. Not positive 
as I'm not reading through the entire thing, I've been up for 24 hours and 
I'm to tired to look when I know my other tutorials are linked to at the 
bottom and that do say to do so.

> You should have just told people to use the FreeBSD book or goto the
> handbook online.

I did Several times. Except I took out online and put "Buy these two books 
as they are good for anyone using BSD". Again, I believe people should at 
least buy those two books listed in the tutorial, both go over installs with 
pictures, and again, this was meant for people that you rightly pointed out 
don't care how the computer works.

The users who've read it and used it have told me it was the easiest doc the 
have ever read and they were glad it was in non technical terms for them. A 
couple admins told me they have printed this out and put it up at the office.



> Another thing is that most people don't want to know or figure out how
> to install an operating system.  They just want that puter thing to
> work.  They don't care about disk partitions, video cards, or mouse
> daemons they just want it to work.
> You say:
>
> "I don't think there is an easier
> to follow installer help anywhere. Not arrogance, but I did do very well
> with
> it in making it easy as crap to install"
>
> I guess thats anitonline.com for yah.
> What about http://www.freebsd.org/handbook as Frank said.
> You should join the core team with your humbleness.  Then in a later
> post on this thread you go onto say "Lots more but I'm not going to
> waste space."  For that I applaude you ;)  Again this isn't a flame just
> being brutally honest.  I think Frank said it best "Good luck on your
> future writing, I hope that I didnt come across to strong on this post,
> But it is what it is."

If I got bothered because someone didn't appreciate my work I'd sure be 
depressed. I've been flamed to the point someone said something I wrote was 
complete crap and I should commit suicide. THAT was harsh.

And another mail I sent to the list today, I pointed out the reason I didn't 
link tot he docs. I WANT people to BUY the books from Free BSD to help 
support the project. You can't possibly think that was wrong of me, the 
developers need to eat too.

>
> -josh
>
> p.s.  Hello World!  Sorry I'm a newbie...Had to get that out  :)
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Re- FreeBSD 6 - Do i need both CD1 and CD2 ?

2006-01-03 Thread FlashWebHost.com
Thanks Abhi for the link. I am downloading boot only ISO. I will try this
and see if i can get FreeBSD installed.

Regards,

Yujin


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


termcap and TERM detection

2006-01-03 Thread E. Eusey
The secondary screen functionality on my xterm (rxvt-unicode) was acting 
strangly.  So, following the advice at:


http://cvs.schmorp.de/browse/*checkout*/rxvt-unicode/doc/rxvt.7.html

I added an rxvt-unicode termcap entry to my termcap file and ran 
cap_mkdb.  After login, I'm able to 'setenv TERM rxvt-unicode' and 
everything works perfectly.


However, when running urxvt initially, it detects the $TERM as 'rxvt', 
not 'rxvt-unicode'.  How is the $TERM variable determined by the system? 
 Is there a way to detect my new termcap entry?  Any help would be 
greatly appreciated.


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


Re: log file conversion (OT?)

2006-01-03 Thread Giorgos Keramidas
On 2006-01-03 14:05, Doug Poland <[EMAIL PROTECTED]> wrote:
> I wrote some time ago:
> >$ echo '1131556815.537101 172.16.2.153 TCP_HIT/200 35674 GET' | \
> >  perl -MPOSIX=strftime \
> >  -pe 'chomp; @x=split /\./; \
> >   $ts = strftime "%Y-%m-%d %H:%M:%S", (localtime($x[0])); \
> >   $_=$ts.".".join(".",@x[1,$#x])."\n";'
> >2005-11-09 09:20:15.537101 172.153 TCP_HIT/200 35674 GET
>
> Thank you, Giorgos, for that excellent Perl one-liner.  There is a
> minor problem in that not all the input fields are output correctly.
> Note the IP address is truncated.   I took the liberty of fixing and
> simplifiing (or, obfuscating, depending on one's point of view)
>
> tail -f /usr/local/squid/logs/access.log | \
>   perl -MPOSIX=strftime -ane \
>   '$F[0] = strftime "%Y-%m-%d %H:%M:%S", (localtime($F[0])); \
>   print join(" ", @F) . "\n";'

You're most welcome, of course :)

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


Re: mapping [process|socket|...] to Filesystem

2006-01-03 Thread Richard Kästner
On Tuesday 03 January 2006 20:20, Gary Corcoran wrote:
>
> Richard Kästner wrote:
> > On Monday 02 January 2006 22:29, Björn König wrote:
> >>Richard Kästner schrieb:
> >>>Hello,
> >>>
> >>>hope to find some help, hints and experience here:
> >>>
> >>>an external device expects commands and command data,
> >>>it produces result-codes and result data.
> >>>Communication is done via HTTP (and working)
> >>>
> >>>The idea is, to allow access via Samba, which requires either
> >>>implementation of Samba - VFS modules or mapping to BSD-Filesystem -
> >>>pseudofs came to my mind.
> >>>[...]
> >>
> >>Hello,
> >>
> >>your description is a little bit vague to me, but it sounds like that
> >>this task can be probably done by using portalfs. See mount_portalfs(8)
> >>for examples.
> >>
> >>Regards Björn
> >
> > Björn,
> > (sorry for being vague - I seem to be too deep in my problems)
> >
> > thanks for the tip - portalfs was the first thing to try, but it does not
> > work with samba (at least the way, I wanted ):
> > Portalfs does not allow to pass anything besides '/p/tcp/localhost/'
> >
> > To be less vague :
> > the external device is a black box, communicates via ???-HTTP server.
> >
> > The idea is:
> > - a (windows)user copies a file to a directory (say: .../commands/xyz),
> > - there is a "thing", that maps this file to some activity towards
> > external box (similar to: procfs_doprocnote )
> > - as a response, a file appears in another file (.../response/data),
> >   which can be read from (windows)client ( similar to:
> > procfs_doproccmdline) - the whole stuff should work diskless
> > - response data can be from a few bytes up to several megabyte
> >
> >
> > - if I can manage, I could export this filesystem via samba _and_ nfs ...
> >
> > - if it all was only about acces to the black box, it could be done via
> > HTTP ... unfortunately, I have to deal with windows clients
>
> I'm just curious: why can't the windows clients just use Firefox (or
> any other browser) to access the black box?  You can download files
> (e.g. results) with a browser...
>
> Gary

As I wrote: it could be done via browser, but 
1. it is a request 
2. I became curious, if it is possible ... 

Richard

BTW: I appologize, if I am cross-posting. 
Originally only posted to [EMAIL PROTECTED] Don't realize, how it 
appeared on freebsd-questions

-- 
Mit freundlichen Grüßen

Richard Kästner
EDV-Beratung
Woerthgasse 17
2500 Baden
Austria
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: log file conversion (OT?)

2006-01-03 Thread Doug Poland
On 11/9/05, Giorgos Keramidas <[EMAIL PROTECTED]> wrote:
> On 2005-11-09 13:44, Bart Silverstrim <[EMAIL PROTECTED]> wrote:
> > On Nov 9, 2005, at 1:03 PM, Giorgos Keramidas wrote:
> > >Yes.  Perl should work fine here.
> > >
> > >$ echo '1131556815.537101 172.16.2.153 TCP_HIT/200 35674 GET' | \
> > >  perl -MPOSIX=strftime \
> > >  -pe 'chomp; @x=split /\./; \
> > >   $ts = strftime "%Y-%m-%d %H:%M:%S", (localtime($x[0])); \
> > >   $_=$ts.".".join(".",@x[1,$#x])."\n";'
> > >2005-11-09 09:20:15.537101 172.153 TCP_HIT/200 35674 GET
> >
Thank you, Giorgos, for that excellent Perl one-liner.  There is a
minor problem in that not all the input fields are output correctly. 
Note the IP address is truncated.   I took the liberty of fixing and
simplifiing (or, obfuscating, depending on one's point of view)

tail -f /usr/local/squid/logs/access.log | \
  perl -MPOSIX=strftime -ane \
  '$F[0] = strftime "%Y-%m-%d %H:%M:%S", (localtime($F[0])); \
  print join(" ", @F) . "\n";'


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


Re: unable to write data to disk ad0

2006-01-03 Thread Jerry McAllister
> 
> 
> >First of all, lets get the terminology straightened out.
> >I think you mean to say that you want to add a partition to
> >your FreeBSD slice.   
> >
> Yes.
> 
> >Second, I presume you are booted to that drive.   The system does
> >not allow you to modify the label on the boot drive.   If it is the
> >only FreeBSD bootable drive you have, then you will need to boot
> >from the 'fixit' CD and run from that to modify the label and 
> >add the additional partition.
> >  
> >
> Well, finally I read the disklabel manual over again (about 3 times) and 
> I COULD add a new
> partition on my boot drive!
> 
> >By the way, this is in either the handbook, FAQs or the archive.
> >  
> >
> This is typical. You know what, after googling for serveral hours, I 
> found out that
> it did not let me write on the disk because the kernel had 
> SECURELEVEL=2. This is
> something that should be in the manual. I appreciate that you wanted to 
> help me, but
> actually you pointed me to the wrong direction two times.

regardless, you would be better off doing this from a not booted drive.

jerry

> 
> I suggest to change the documentation of the disklabel/bsdlabel and 
> fdisk programs.
> We should add this warning:
> 
> "Warning: you need to disable your kernel securelevel in /etc/rc.conf. 
> The kernel does not
> allow to modify disk label information above securelevel=N."
> 
> (I'm still not sure about the value of N).
> 
> I'm not sure where can I add this request to change the documentation.
> But it would save hundreds of hours for newbies and supporters too.
> 
> Best,
> 
>Les
> 
> 

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


Re: FreeBSD 6 - Do i need both CD1 and CD2 ?

2006-01-03 Thread Jerry McAllister
> 
> On 1/3/06, Jerry McAllister <[EMAIL PROTECTED]> wrote:
> > Just a question here -- What do you mean until it goes stable?
> > FreeBSD 6.0 is already at RELEASE which is beyond stable.
> > So you have the terminology mangled or just the typing?
> 
> You're right: per the FreeBSD world, I've botched the two terms.  But
> if we're talking pure semantics, wouldn't you be more likely to
> entrust something labelled "STABLE" over a similar thing labelled
> "RELEASE"? ;)

Well, not if stable means just barely able to run without falling 
all over itself. 
 -- And release means solid reliable product, approved for general use.

Yah, stable is better than alpha or the bleeding edge 'current' development
image, but still in need of significant care.

Think of how they report someone's health condition after a trauma.
Stable seems to mean they can finally move the patient from the operating
room to a bed with monitors and walk down and get lunch.   But, the patient
is still a long way from being able to drive home.

Just so, a FreeBSD version spends a long time in stable before 
making it to RELEASE.

jerry

> 
> And of course, I'm now much more interested that procedure than I was
> a few minutes ago!

Good luck on that.I normally install from scratch rather than
do major level upgrades.

jerry

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


Re: Free BSD install tutorial I wrote

2006-01-03 Thread Josh Soza



Allen wrote:

I wrote this quite a while ago and I've posted it to the docs list before and 
it got a good repsonce, but I've seen a couple install questions on here so 
I'm going to link to it again for this list. I don't think there is an easier 
to follow installer help anywhere. Not arrogance, but I did do very well with 
it in making it easy as crap to install:


http://www.antionline.com/showthread.php?s=&threadid=259335

You don't have to sign up to read this.

-Allen



First off this is NOT a flame.  But I found your tutorial extremely hard 
to follow.  First what does a user do if they can't boot from CD?  Are 
there any preinstallation tasks like: inventory of hardware, ps/2 mouse 
or serial, size of partitions, user accounts/groups(other than root).  I 
personally find it easier if you have a plan rather than shooting from 
the hip.  
You should have just told people to use the FreeBSD book or goto the 
handbook online. 
Another thing is that most people don't want to know or figure out how 
to install an operating system.  They just want that puter thing to 
work.  They don't care about disk partitions, video cards, or mouse 
daemons they just want it to work. 
You say: 


"I don't think there is an easier
to follow installer help anywhere. Not arrogance, but I did do very well 
with

it in making it easy as crap to install"

I guess thats anitonline.com for yah. 
What about http://www.freebsd.org/handbook as Frank said. 
You should join the core team with your humbleness.  Then in a later 
post on this thread you go onto say "Lots more but I'm not going to 
waste space."  For that I applaude you ;)  Again this isn't a flame just 
being brutally honest.  I think Frank said it best "Good luck on your 
future writing, I hope that I didnt come across to strong on this post, 
But it is what it is."


-josh

p.s.  Hello World!  Sorry I'm a newbie...Had to get that out  :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Free BSD install tutorial I wrote

2006-01-03 Thread Allen
On Tuesday 03 January 2006 12:30, Giorgos Keramidas wrote:
> On 2006-01-03 12:25, fbsd_user <[EMAIL PROTECTED]> wrote:
> > On Monday 02 January 2006 10:52, fbsd_user wrote:
> > > here is another install guide more up to date
> > >
> > >http://www.unixguide.net/freebsd/fbsd_installguide/index.php
> >
> > When I finish with getting Free BSD 6.0 I'll write another one the
> > same way I did that one.
> >
> > Are you claiming authorship for the install guide at the above URL?

No, I claimed authorship to the link I posted in the original message. I tried 
to trim out a huge chunk but for some reason that was what it ended up with. 
although I know I left more than this in there.

The original message I sent has a link to the one I wrote, I said I would make 
it the same as the one I wrote and explained what i meant further down in the 
message.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Programming Book(s)

2006-01-03 Thread John S

Sean wrote:


Sean wrote:



Looking for recommendations on any Unix programming books.
I have been out of things for a while so I would put my skill level 
back to the beginning.


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




I forgot to mention that I wish to work with C/C++

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




Check out the book reviews at the ACCU website:

http://www.accu.org

You're bound to find some good tips there.

/John

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


Re: startup script not working

2006-01-03 Thread Derek Ragona

Make sure your script is named with the extension .sh

Also, don't assume your script has a proper environment.  You will do best 
to use full path names to any commands.


-Derek


At 01:14 AM 1/3/2006, Mike Esquardez wrote:
Hello.  I have been reading the docs but i can see what i'm doing 
wrong.  I also was to read this 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-starting-services.html 
but I am not running a service, just some command that need to be run on 
start up.


I have a shell script that works when i run it as root. I have moved it to 
/usr/local/etc/rc.d and chmod +x but it is not running when the pc starts. 
Is moving file to usr/local/etc/rc.d/ and chmod +x all i have to do?


Any ideas would be great. many thanks to you.
Mik

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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

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


Re: mapping [process|socket|...] to Filesystem

2006-01-03 Thread Gary Corcoran

Richard Kästner wrote:

On Monday 02 January 2006 22:29, Björn König wrote:


Richard Kästner schrieb:


Hello,

hope to find some help, hints and experience here:

an external device expects commands and command data,
it produces result-codes and result data.
Communication is done via HTTP (and working)

The idea is, to allow access via Samba, which requires either
implementation of Samba - VFS modules or mapping to BSD-Filesystem -
pseudofs came to my mind.
[...]


Hello,

your description is a little bit vague to me, but it sounds like that
this task can be probably done by using portalfs. See mount_portalfs(8)
for examples.

Regards Björn


Björn,
(sorry for being vague - I seem to be too deep in my problems)

thanks for the tip - portalfs was the first thing to try, but it does not work 
with samba (at least the way, I wanted ):

Portalfs does not allow to pass anything besides '/p/tcp/localhost/'

To be less vague :
the external device is a black box, communicates via ???-HTTP server.

The idea is:
- a (windows)user copies a file to a directory (say: .../commands/xyz),
- there is a "thing", that maps this file to some activity towards external
  box (similar to: procfs_doprocnote )
- as a response, a file appears in another file (.../response/data), 
  which can be read from (windows)client ( similar to: procfs_doproccmdline)
- the whole stuff should work diskless 
- response data can be from a few bytes up to several megabyte



- if I can manage, I could export this filesystem via samba _and_ nfs ...

- if it all was only about acces to the black box, it could be done via 
HTTP ... unfortunately, I have to deal with windows clients


I'm just curious: why can't the windows clients just use Firefox (or
any other browser) to access the black box?  You can download files
(e.g. results) with a browser...

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


Re: ipfw divert with exception?

2006-01-03 Thread patrick
That's what I thought too, but it doesn't seem to be the case. Here's
what I have:

ipfw -f flush
ipfw add 70 allow tcp from 10.0.1.254 to any
ipfw add accept tcp from any to any 22 in via ${ext_if}
ipfw add 6000 allow all from any to any via lo0
ipfw add 6100 allow all from any to any via ${int_if}
ipfw add 7000 divert natd all from any to any via ${ext_if}
ipfw add 7100 check-state
ipfw add pass all from any to any via ${ext_if}
ipfw add pass all from any to any via ${int_if}
ipfw add 65534 allow ip from any to any

Patrick

On 1/2/06, Foo Ji-Haw <[EMAIL PROTECTED]> wrote:
> I've not tried it myself, but putting the exception rules before the
> 'divert' rule should help, since ipfw exits the rule matching upon first
> match.
>
> - Original Message -
> From: "patrick" <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, January 03, 2006 4:56 AM
> Subject: ipfw divert with exception?
>
>
> > I have a FreeBSD 6.0 machine acting as a router for our office. We use
> > natd for address translation, and I have rule like so:
> >
> > ipfw add divert natd all from any to any via ${ext_if}
> >
> > To allow incoming SSH access, I have a redirect_port line setup in my
> > /etc/natd.conf file, and while it works just fine, I don't like that
> > natd has to be running in order for me to SSH into the server.
> > (Because, if -- hypothetically of course -- one were to *cough*
> > accidentally kill the natd process without realizing this, then
> > *ahem*, one would be locked out remotely without any means of fixing
> > it. And I'd like to stress that this situation is indeed, uh,
> > hypothetical. ;) )
> >
> > So, I'm sure there is a way for me to create some ipfw rules above the
> > divert line to accept incoming SSH traffic and not having it get
> > diverted, but I'm at a bit of a loss as to how I can achieve this. The
> > current rule I have above this does not do anything to stop the
> > traffic from being diverted:
> >
> > ipfw add accept tcp from any to any 22 in via ${ext_if}
> >
> > Any help or insight would be greatly appreciated.
> >
> > Thanks,
> >
> > Patrick
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
>
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mapping [process|socket|...] to Filesystem

2006-01-03 Thread Richard Kästner
On Monday 02 January 2006 22:29, Björn König wrote:
>
> Richard Kästner schrieb:
> > Hello,
> >
> > hope to find some help, hints and experience here:
> >
> > an external device expects commands and command data,
> > it produces result-codes and result data.
> > Communication is done via HTTP (and working)
> >
> > The idea is, to allow access via Samba, which requires either
> > implementation of Samba - VFS modules or mapping to BSD-Filesystem -
> > pseudofs came to my mind.
> > [...]
>
> Hello,
>
> your description is a little bit vague to me, but it sounds like that
> this task can be probably done by using portalfs. See mount_portalfs(8)
> for examples.
>
> Regards Björn
Björn,
(sorry for being vague - I seem to be too deep in my problems)

thanks for the tip - portalfs was the first thing to try, but it does not work 
with samba (at least the way, I wanted ):
Portalfs does not allow to pass anything besides '/p/tcp/localhost/'

To be less vague :
the external device is a black box, communicates via ???-HTTP server.

The idea is:
- a (windows)user copies a file to a directory (say: .../commands/xyz),
- there is a "thing", that maps this file to some activity towards external
  box (similar to: procfs_doprocnote )
- as a response, a file appears in another file (.../response/data), 
  which can be read from (windows)client ( similar to: procfs_doproccmdline)
- the whole stuff should work diskless 
- response data can be from a few bytes up to several megabyte


- if I can manage, I could export this filesystem via samba _and_ nfs ...

- if it all was only about acces to the black box, it could be done via 
HTTP ... unfortunately, I have to deal with windows clients

Regards
Richard


-- 
Mit freundlichen Grüßen

Richard Kästner
EDV-Beratung
Woerthgasse 17
2500 Baden
Austria
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How long to compile...

2006-01-03 Thread Russell J. Wood
On Tue, Jan 03, 2006 at 11:04:41AM -0500, Robert Huff wrote:
> 
> Crispy Beef writes:
> 
> >  Was wondering on average how long building userland and the
> >  kernel for 6.0-RELEASE should take on a 466MHz Celeron machine
> >  with 128Mb RAM?
> 
>   Many hours.  :-(
>   For comparison: it takes ~1h45 on a P4/2.25ghz with 512mb.  I
> seem to remember the 500mhz Celeron being an overnight or all-day
> job.
> 
> 
>   Robert Huff

I'm currently doing this on an AMD K6 ~500Mhz. Buildworld took about 12
hours -- installing now -- and kernel is roughly a few hours.

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


Re: Problems reading CDRW after writing

2006-01-03 Thread Fabian Keil
Marc Evans <[EMAIL PROTECTED]> wrote:
 
> I am running FreeBSD 6.0-STABLE as of Dec-15-2005 on a P4 system. I
> have a CDRW drive attached, which identifies as follows:
> 
>   acd0: CDRW  at ata1-slave UDMA33
> 
> I wish to use this device to produce CDRW backup disks periodically.
> I use the following commands to produce the backup:
> 
>   burncd erase
>   sleep 2 # needed to avoid READY error
>   tar czf - ... | burncd data - fixate
> 
> This appears to work fine, from the perspective of the output of the
> commands, e.g. I see output like:
> 
> blanking CD - 100 % done
> next writeable LBA 0
> writing from stdin
> written this track 633420 KB total 633420 KB
> fixating CD, please wait..

> I have also tried writing an ISO9660 image and mounting it, with
> similar problems at mount time.
> 
> The above said, I am able to create CD-R data disks and mount them or
> otherwise use them. I have tried several different CD-RW media, and
> played with -s (the media is rated as 12x), but have observed no
> changes.

You could use readcd's c2scan option to check if your CD-RWs are OK.
readcd is part of (/usr/ports/sysutils/cdrtools/) if you don't have
atapicam in your kernel you have to kldload it.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Is remote gdb debugging supported on FreeBSD-5.4?

2006-01-03 Thread Paul Marciano

I have a need to remotely debug an application on a
remote FreeBSD-5.4 machine that is devoid of utilities
and source code.

I previously asked a question about gdbserver, but it
looks like it's not available so I'll ask the more
general question.

I could login in to the remote machine, mount a source
and utility NFS partition and run gdb locally, but I
would rather attach a gdb session from my development
machine to the target machine.

Is remote debugging with gdb supported at all on
FreeBSD (5.4)?

Thanks,
Paul.




__ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 

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


Re: FreeBSD 6 - Do i need both CD1 and CD2 ?

2006-01-03 Thread John DeStefano
On 1/3/06, Jerry McAllister <[EMAIL PROTECTED]> wrote:
> Just a question here -- What do you mean until it goes stable?
> FreeBSD 6.0 is already at RELEASE which is beyond stable.
> So you have the terminology mangled or just the typing?

You're right: per the FreeBSD world, I've botched the two terms.  But
if we're talking pure semantics, wouldn't you be more likely to
entrust something labelled "STABLE" over a similar thing labelled
"RELEASE"? ;)

And of course, I'm now much more interested that procedure than I was
a few minutes ago!

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


Ports dependencies questions (php5-mysql-5.1.1 and php5-mysqli-5.1.1)

2006-01-03 Thread Ian Lord

Hi,

I have installed the ports php5-mysql-5.1.1 and php5-mysqli-5.1.1
during the make, the port mysql-client-4.1.16 got installed

I need the newer version of mysql-client-5.x

When I try to install it, I get an error saying I cannot install 
because mysql-client-4.1.16 is already installed.
If I try to uninstall mysql-client-4.1.16 using pkg_delete I get an 
error because php5-mysql-5.1.1 and php5-mysqli-5.1.1 requires it...


So is there a better way to install php5 with mysql support, or can 
the maintainer of this port change it so we can use mysql-client-5x 
or am I doing something stupid ? :)


Thanks

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


Ports dependencies questions (php5-mysql-5.1.1 and php5-mysqli-5.1.1)

2006-01-03 Thread Ian Lord

Hi,

I have installed the ports php5-mysql-5.1.1 and php5-mysqli-5.1.1
during the make, the port mysql-client-4.1.16 got installed

I need the newer version of mysql-client-5.x

When I try to install it, I get an error saying I 
cannot install because mysql-client-4.1.16 is already installed.
If I try to uninstall mysql-client-4.1.16 using 
pkg_delete I get an error because 
php5-mysql-5.1.1 and php5-mysqli-5.1.1 requires it...


So is there a better way to install php5 with 
mysql support, or can the maintainer of this port 
change it so we can use mysql-client-5x or am I doing something stupid ? :)


Thanks


~~
Windows:"Where do you want to go today?"
Linux:  "Where do you want to go tomorrow?"
FreeBSD:"Are you guys coming or what?"
~~
Ian Lord, CCNA
MSD Informatique
1711 Montée Major Terrebonne (Québec) J7M 1E6
Tél.: (514) 776-MSDI-> (514) 776-6734
Sans Frais: 1(877) 776-MSDI -> 1(877) 776-6734
http://www.msdi.ca 


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


Re: Free BSD install tutorial I wrote

2006-01-03 Thread Frank Laszlo



fbsd_user wrote:
> here is another install guide more up to date
>
>http://www.unixguide.net/freebsd/fbsd_installguide/index.php
>
>   
This is an excellent howto. Explains each step in detail, and highlights
key points. also shows screenshots of the entire process.

__
Frank Laszlo
System Administrator
The VonOstin Group
Email:  [EMAIL PROTECTED]
WWW:http://www.vonostingroup.com
Mobile: 248-863-7584

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


Logo Contest Winner

2006-01-03 Thread CRAZY SCIENTIST
can someone send me his e-mail?

thanks in advance 



__
×ñçóéìïðïéåßôå Yahoo!;
ÂáñåèÞêáôå ôá åíï÷ëçôéêÜ ìçíýìáôá (spam);   Ôï Yahoo! Mail äéáèÝôåé ôçí 
êáëýôåñç äõíáôÞ ðñïóôáóßá êáôÜ ôùí åíï÷ëçôéêþí ìçíõìÜôùí  
http://mail.yahoo.gr 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD 6 - Do i need both CD1 and CD2 ?

2006-01-03 Thread Jerry McAllister
> 
> From: "FlashWebHost.com" <[EMAIL PROTECTED]>:
> > There is 5.4 to 6 upgrade also at
> >
> > http://www.daemonology.net/freebsd-upgrade-5.4-to-6.0/
> 
> This would be a great resource, if it were sure to work.  I am not
> anxious to go from 5.4-STABLE to 6.0 (not until it goes stable), but I
> tried to run through the preparatory steps as outlined on that page. 
> I ran into a few concerns with steps 2 and 4:


Just a question here -- What do you mean until it goes stable?
FreeBSD 6.0 is already at RELEASE which is beyond stable. 
So you have the terminology mangled or just the typing?

jerry

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


Re: FreeBSD 6 - Do i need both CD1 and CD2 ?

2006-01-03 Thread John DeStefano
From: "FlashWebHost.com" <[EMAIL PROTECTED]>:
> There is 5.4 to 6 upgrade also at
>
> http://www.daemonology.net/freebsd-upgrade-5.4-to-6.0/

This would be a great resource, if it were sure to work.  I am not
anxious to go from 5.4-STABLE to 6.0 (not until it goes stable), but I
tried to run through the preparatory steps as outlined on that page. 
I ran into a few concerns with steps 2 and 4:

> freebsd-update -v IDS | tail +8 | grep . > /root/base-modified

This resulted in an empty file for me... but perhaps that is as
expected.  When the suggested step is to "generate a list of files
from the base system which have been locally modified", are we talking
about a list of only binaries, or of _all_ locally modified files? 
While I've edited many configuration parameters, I certainly haven't
modified any binary files.

> cut -f 1 -d '$' /usr/local/freebsd-update/work/md5all | uniq |
> while read X; do
> if [ -f $X ]; then echo $X; fi;
> done | sort > /root/base-old

First, after installing freebsd-update according to the first step, I
don't have a "work" directory (nor anything at all in that directory,
for that matter).  Should something exist in this path after
installing the freebsd-update port?  And second, how would one
correctly execute this command string in bash?  I got errors from both
cut and while:
cut: [-cf] list: illegal list value
while: Expression Syntax.

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


Re- FreeBSD 6 - Do i need both CD1 and CD2 ?

2006-01-03 Thread Abhi
--- "FlashWebHost.com" <[EMAIL PROTECTED]> wrote:
>Hi,

>Anyone know where i can purchase FreeBSD 6 CD in india ?

You can try www.linuxbazar.com for purchasing FreeBSD/Linux CDs. They
didn't have FreeBSD 6 CDs when i checked the site last time. But they
can make it available for you evenif they don't have it currently. I
also have a dialup connection so downloading the ISOs is a daunting
task for me. I myself purchased CDs for FreeBSD 5.4 release and
NetBSD, so i think the site is reliable. Anyways give it a try if you
want.

Regards,
Abhijit


--
If Karl, instead of writing a lot about Capital, had made a lot of
Capital, it would have been much better.
-- Karl Marx's Mother
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Free BSD install tutorial I wrote

2006-01-03 Thread Giorgos Keramidas
On 2006-01-03 12:25, fbsd_user <[EMAIL PROTECTED]> wrote:
> On Monday 02 January 2006 10:52, fbsd_user wrote:
> > here is another install guide more up to date
> >
> >http://www.unixguide.net/freebsd/fbsd_installguide/index.php
>
> When I finish with getting Free BSD 6.0 I'll write another one the
> same way I did that one.
>
> Are you claiming authorship for the install guide at the above URL?

Nice quoting and attribution of post snippets there...

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


Re: mouse dead on FreeBSD but not on Windows

2006-01-03 Thread Frank Laszlo
>
> Frank, thanks for your reply,
>
> this is not just a problem in xorg, it is also the mouse not
> working in the console (without X). I don't get an arrow
> cursor that I can use in the console to copy/paste text.
>
> I've tried using moused (moused_enable="YES" in rc.conf) and
> then using /dev/sysmouse in xorg.conf and also disabling
> moused and using /dev/psm0 in xorg.conf.
>
> Identifier  "Mouse1"
> Driver  "mouse"
> Option "Protocol""PS/2"
> Option "Device"  "/dev/psm0"
> Option "ZAxisMapping" "4 5"
>
> (I've done tests with and w/o the ZAxisMapping line, and as
> mentioned with psm0 or sysmouse after /dev/ in the "Device"
> option. None worked).
>
> When using /dev/psm0 in xorg.conf I got the typical X cursor
> instead of the arrow, and I could move it with the mouse,
> although the movement was erratic ... most of the movement
> of the mouse was not recognized and sometimes the cursor
> would move to the bottom left corner of the screen  
>
> Using moused and /dev/sysmouse in xorg.conf resulted in a
> black arrow as a cursor, as mentioned, but the cursor would
> not move at all. 
>
> I exchanged the mouse, and now the same setup works (only
> tested the mouse in the console since I'm now rebuilding the
> xorg from ports). This is also a generic mouse (Noganet,
> PS/2) but it has three buttons instead of two and a wheel. 
>
> Maybe the other mouse is defective, but it works without a
> hitch in WinXP ... or perhaps I'm missing some essential flags
> that need to be added for a wheel mouse?
>
> Also, I've tried different combinations of ports/types using
> /stand/sysinstall (post-install configurarion->mouse) and I
> never got an arrow shown in the screen when activating the
> mouse daemon with the wheel mouse.
>
> Fernan
>   
Have you tried starting mouse manually in the foreground? or with
debugging flags? take a look at `man moused` I had a PS/2 mouse, pretty
generic, came up in dmesg as a "4D+" mouse. It would work, but was
jumping all over the screen, worked fine in windows AND interestingly
enough, linux as well. might just be a glitchy implementation, worst
case you gotta pickup another $5 mouse. :)

__
Frank Laszlo
System Administrator
The VonOstin Group
Email:  [EMAIL PROTECTED]
WWW:http://www.vonostingroup.com
Mobile: 248-863-7584


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


RE: Free BSD install tutorial I wrote

2006-01-03 Thread fbsd_user




On Monday 02 January 2006 10:52, fbsd_user wrote:
> here is another install guide more up to date
>
>http://www.unixguide.net/freebsd/fbsd_installguide/index.php

When I finish with getting Free BSD 6.0 I'll write another one the
same way I
did that one.

Are you claiming authorship for the install guide at the above URL?



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


Problems reading CDRW after writing

2006-01-03 Thread Marc Evans

Hello -

I am running FreeBSD 6.0-STABLE as of Dec-15-2005 on a P4 system. I have a CDRW 
drive attached, which identifies as follows:


acd0: CDRW  at ata1-slave UDMA33

I wish to use this device to produce CDRW backup disks periodically. I use the 
following commands to produce the backup:


burncd erase
sleep 2 # needed to avoid READY error
tar czf - ... | burncd data - fixate

This appears to work fine, from the perspective of the output of the commands, 
e.g. I see output like:


blanking CD - 100 % done
next writeable LBA 0
writing from stdin
written this track 633420 KB total 633420 KB
fixating CD, please wait..

My problem is that attempts to read the data back, always fail:

# tar tzf /dev/acd0
tar: Error opening archive: Error reading '/dev/acd0': Input/output error
# ls -l /dev/*cd*
crw-r-  1 root  operator0,  93 Jan  3 10:33 /dev/acd0
crw-r-  1 root  operator0, 127 Dec 30 14:26 /dev/acd0t01

No errors are shown in /var/log/messages.

I have also tried writing an ISO9660 image and mounting it, with similar 
problems at mount time.


The above said, I am able to create CD-R data disks and mount them or otherwise 
use them. I have tried several different CD-RW media, and played with -s (the 
media is rated as 12x), but have observed no changes.


Can anyone suggest solutions?

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


Re: How long to compile...

2006-01-03 Thread Charles Swiger

On Jan 3, 2006, at 10:46 AM, Crispy Beef wrote:
This is kind of related to my other post (Kernel Compilation), but  
thought I'd post it seperately as it would be interesting to know...


Was wondering on average how long building userland and the kernel  
for 6.0-RELEASE should take on a 466MHz Celeron machine with 128Mb  
RAM?


2-3 hours, I'd guess?  It depends on how good a hard drive and I/O  
subsystem you have, too...


--
-Chuck

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


RE: Pls Require info win ipfw

2006-01-03 Thread fbsd_user
ASIM.
According to the development website http://wipfw.sourceforge.net
the FBSD IPFW firewall was ported to run under MS Windows
XP/2000/2003
which are all variations of Windows NT.
It says the NATed ability is not included but is planed for later.
This FreeBSD list is not the correct place to ask your questions.
There is a forum at that website where you can ask your questions.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of asim hafeez
Sent: Monday, January 02, 2006 5:47 AM
To: [EMAIL PROTECTED]
Subject: Pls Require info


Dear,
Can i use NATD with wipfw on MS Windows XP/200/2003, If yes then
please let me know from where i can download it.
Best Regards
ASIM
--
a.$.im
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"[EMAIL PROTECTED]"

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


6.0-RELEASE Thinkpad 600e SMBus IOCTL: Device not configured error & apm issues.

2006-01-03 Thread Ross Marchiafava
Hello,

This is my second email to this list, I got no response from the first email
I sent, I hope i'm providing enough information.

I'm currently running FreeBSD 6.0-RELEASE on my IBM Thinkpad 600e 2645-4AU
with a custom kernel.  I updated the BIOS to the latest version that IBM
offers ( INET36WW
http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=DSHY-46HLKQ).

I've searched google quite a bit on how to get this laptop properly working
in FreeBSD.  I'm using APM on my system, one thing I noticed is that when
running 'apm' the Remaining battery time is not consistent, it jumps from
2:00:00 to 3:05:00 back to 2:35:00 it's really all over the place.  The
Remaining battery does not randomly change, so i'm assuming that is correct?


I also noticed that whenever my laptop comes out of suspend ( apm -Z ), the
video color is distorted I'm using VESA with 'vidcontrol MODE_279'
1024x768x16, all other modes seem to do the same thing however when coming
out of suspend mode it distorts to a different color, so on mode 279 it
distorts the white color to a light blue, and with 280 it distorts the white
color to red, it distorts other colors as well but that's the main color I
notice.

I've compiled smbus into my kernel and I load the intpm driver and the
/dev/smb0 is created.  I tried using 'chm' but I get these errors:

I have listed pciconf, dmesg, loader.conf, device.hints, and kernel config
below.
I appreciate any help that anyone is able to provide, I would love to have
this Laptop working 100%.
Thank you.

-Ross

chm:
ioctl: Device not configured

IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
Motherboard Temperature: 191 ° C
CPU_0 Temperature: 191 ° C
CPU_1 Temperature: 191 ° C
IOCTL: Device not configured
VCore:   2.98438 V
IOCTL: Device not configured
Vit: 2.98438 V
IOCTL: Device not configured
Vio: 2.98438 V
IOCTL: Device not configured
+5V: 4.98391 V
IOCTL: Device not configured
+12V: 11.9375 V
IOCTL: Device not configured
-12V:-11.9375 V
IOCTL: Device not configured
-5V: -4.98391 V
IOCTL: Device not configured
Fan 1: 883 rpm
IOCTL: Device not configured
Fan 2: 1767 rpm
IOCTL: Device not configured
Fan 3: 3534 rpm


pciconf -vl:
[EMAIL PROTECTED]:0:0:  class=0x06 card=0x chip=0x71908086 rev=0x03
hdr=0x00
vendor   = 'Intel Corporation'
device   = '82443BX/ZX 440BX/ZX CPU to PCI Bridge (AGP Implemented)'
class= bridge
subclass = HOST-PCI
[EMAIL PROTECTED]:1:0: class=0x060400 card=0x chip=0x71918086 rev=0x03
hdr=0x01
vendor   = 'Intel Corporation'
device   = '82443BX/ZX 440BX/ZX AGPset PCI-to-PCI bridge'
class= bridge
subclass = PCI-PCI
[EMAIL PROTECTED]:2:0:  class=0x060700 card=0x00eb1014 chip=0xac1d104c rev=0x00
hdr=0x02
vendor   = 'Texas Instruments (TI)'
device   = 'PCI1251 PC Card CardBus Controller'
class= bridge
subclass = PCI-CardBus
[EMAIL PROTECTED]:2:1:  class=0x060700 card=0x00eb1014 chip=0xac1d104c rev=0x00
hdr=0x02
vendor   = 'Texas Instruments (TI)'
device   = 'PCI1251 PC Card CardBus Controller'
class= bridge
subclass = PCI-CardBus
[EMAIL PROTECTED]:6:0: class=0x040100 card=0x10101014 chip=0x60011013 rev=0x01
hdr=0x00
vendor   = 'Cirrus Logic'
device   = 'CS4610 CrystalClear SoundFusion PCI Audio Accelerator'
class= multimedia
subclass = audio
[EMAIL PROTECTED]:7:0: class=0x068000 card=0x chip=0x71108086 rev=0x02
hdr=0x00
vendor   = 'Intel Corporation'
device   = '82371AB/EB/MB PIIX4/4E/4M ISA Bridge'
class= bridge
[EMAIL PROTECTED]:7:1:   class=0x010180 card=0x chip=0x71118086
rev=0x01 hdr=0x00
vendor   = 'Intel Corporation'
device   = '82371AB/EB/MB PIIX4/4E/4M IDE Controller'
class= mass storage
subclass = ATA
[EMAIL PROTECTED]:7:2: class=0x0c0300 card=0x chip=0x71128086 rev=0x01
hdr=0x00
vendor   = 'Intel Corporation'
device   = '82371AB/EB/MB PIIX4/4E/4M USB Interface'
class= serial bus
subclass = USB
[EMAIL PROTECTED]:7:3:class=0x068000 card=0x chip=0x71138086
rev=0x02 hdr=0x00
vendor   = 'Intel Corporation'
device   = '82371AB/EB/MB PIIX4/4E/4M Power Management Controller'
class= bridge
[EMAIL PROTECTED]:0:0: class=0x03 card=0x00dd1014 chip=0x000510c8 rev=0x20
hdr=0x00
vendor   = 'Neomagic Corporation'
device   = 'NM2200 MagicMedia 256AV'
class= display
subclass = VGA

Here is my dmesg ( this is after It wakes from the lid being opened after
it's closed, I get some ROUTE_INTERRUPT failed mesages :

Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986

Re: mouse dead on FreeBSD but not on Windows

2006-01-03 Thread Fernan Aguero
+[ Frank Laszlo <[EMAIL PROTECTED]> (03.Jan.2006 12:10):
|
| Fernan Aguero wrote:
| > Hi!
| >
| > I've a dual boot machine, which was running FreeBSD-5.4 (now
| > 6.0p1) and WinXP. It has a cheap PS/2 mouse (Biswal is the
| > brand, but I guess it's just a generic mouse, details at the
| > bottom).
| >
| > In Windows it works flawlessly ... wheel included. It's been
| > running for months. In FreeBSD it never worked. I don't know
| > if I'm doing something wrong ... this machine is the first
| > box in which I installed 5.x so perhaps there are some
| > configuration differences from 4.x tham I'm unaware of?
| >
| > Any help would be appreciated (of course I can go buy
| > another cheap mouse ... but I'm intrigued now).
| >
| > The details:
| >
| > dmesg says:
| > psm0:  irq 12 on atkbdc0
| > psm0: [GIANT LOCKED]
| > psm0: model Intellimouse, device ID 3
| >
| > moused says:
| > moused -i all -p /dev/psm0
| > /dev/psm0 ps/2 sysmouse Intellimouse
| >
| > I've tried to run 'vidcontrol -m on' and then 'moused -p
| > /dev/psm0 -t auto/sysmouse' and I never get an arrow on the
| > screen.
| >
| > I've got X installed with gnome and when booting I always
| > get a black arrow in the xdm login screen that I cannot move
| > with the mouse. I also tried to tweak my Xorg.conf file to
| > no avail.
| >
| > My custom kernel has the following (I quote what I guess
| > it's relevant, do ask for more detail if neccessary):
| > device  atkbdc
| > device  atkbd
| > device  psm
| >
| > I just cvsuped against RELENG_6_0 and rebuilt the world and
| > kernel. All the base system is now 6.0p1, and now I need to
| > rebuild all ports ... but apart from that the mouse is still
| > dead on FreeBSD.
| >
| > Again thanks for any help,
| >
| > fernan
| >
| >   
| Are you using moused, or Xorg's mouse daemon? please send the applicable
| section from your xorg.conf. Thanks
|
+]

Frank, thanks for your reply,

this is not just a problem in xorg, it is also the mouse not
working in the console (without X). I don't get an arrow
cursor that I can use in the console to copy/paste text.

I've tried using moused (moused_enable="YES" in rc.conf) and
then using /dev/sysmouse in xorg.conf and also disabling
moused and using /dev/psm0 in xorg.conf.

Identifier  "Mouse1"
Driver  "mouse"
Option "Protocol""PS/2"
Option "Device"  "/dev/psm0"
Option "ZAxisMapping" "4 5"

(I've done tests with and w/o the ZAxisMapping line, and as
mentioned with psm0 or sysmouse after /dev/ in the "Device"
option. None worked).

When using /dev/psm0 in xorg.conf I got the typical X cursor
instead of the arrow, and I could move it with the mouse,
although the movement was erratic ... most of the movement
of the mouse was not recognized and sometimes the cursor
would move to the bottom left corner of the screen  

Using moused and /dev/sysmouse in xorg.conf resulted in a
black arrow as a cursor, as mentioned, but the cursor would
not move at all. 

I exchanged the mouse, and now the same setup works (only
tested the mouse in the console since I'm now rebuilding the
xorg from ports). This is also a generic mouse (Noganet,
PS/2) but it has three buttons instead of two and a wheel. 

Maybe the other mouse is defective, but it works without a
hitch in WinXP ... or perhaps I'm missing some essential flags
that need to be added for a wheel mouse?

Also, I've tried different combinations of ports/types using
/stand/sysinstall (post-install configurarion->mouse) and I
never got an arrow shown in the screen when activating the
mouse daemon with the wheel mouse.

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


Re: FreeBSD handles leapsecond correctly

2006-01-03 Thread David Benfell
On Tue, 03 Jan 2006 12:50:38 +0100, Poul-Henning Kamp wrote:
> 
> 99.9% of the computers are used by people who are not scientists and
> engineers.
> 
> 99.999% of the computers do not track extra-terrestial objects.
> 
> Wanna bet how the cost balances ?
> 
You assume that the cost is borne individually for each of the 99.9%
of computers.  But there are relatively few operating systems -- the
actual development cost occurs there.

-- 
David Benfell, LCP
[EMAIL PROTECTED]
---
Resume available at http://www.parts-unknown.org/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Problems reading CDRW after writing

2006-01-03 Thread Marc Evans

Hello -

I am running FreeBSD 6.0-STABLE as of Dec-15-2005 on a P4 system. I have a CDRW 
drive attached, which identifies as follows:


acd0: CDRW  at ata1-slave UDMA33

I wish to use this device to produce CDRW backup disks periodically. I use the 
following commands to produce the backup:


burncd erase
sleep 2 # needed to avoid READY error
tar czf - ... | burncd data - fixate

This appears to work fine, from the perspective of the output of the commands, 
e.g. I see output like:


blanking CD - 100 % done
next writeable LBA 0
writing from stdin
written this track 633420 KB total 633420 KB
fixating CD, please wait..

My problem is that attempts to read the data back, always fail:

# tar tzf /dev/acd0
tar: Error opening archive: Error reading '/dev/acd0': Input/output error
# ls -l /dev/*cd*
crw-r-  1 root  operator0,  93 Jan  3 10:33 /dev/acd0
crw-r-  1 root  operator0, 127 Dec 30 14:26 /dev/acd0t01

No errors are shown in /var/log/messages.

I have also tried writing an ISO9660 image and mounting it, with similar 
problems at mount time.


The above said, I am able to create CD-R data disks and mount them or otherwise 
use them. I have tried several different CD-RW media, and played with -s (the 
media is rated as 12x), but have observed no changes.


Can anyone suggest solutions?

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


Re: FreeBSD 6.0: Problem with network, doesn't use default gateway

2006-01-03 Thread Glenn Dawson

At 07:18 AM 1/3/2006, Christer Folkesson wrote:

Hi, this is my first message to the mailing-list. I hope that I have included
enough information about the problem.

The problem is that my FreeBSD 6.0 (release) won't use the default route
(gateway). So I can't access anything on the internet.

Hardware and network equipment:
Dell latitude D810 (Pentium M 2.0 GHz, 1.5 GB of primary memory, broadcom
gigabit/fast/"normal" ethernet controller).
The broadcom chip uses the bge driver. I have looked in the man page for that
and no troubles or something like that is mentioned.
IPv4 address: 192.168.0.228 /25

The gateway is a netgear RP614 broadband router. IPv4: 192.168.0.199 /25

Also a windows 2003 server is acting as DNS-server for my network.

FreeBSD shares the computer with windows XP pro SP2 using dual boot.
In windows it works fine so this convince me that it's a software problem in
FreeBSD.

As said, it works perfectly fine inside the LAN, but not outside.


I include a dmesg output (at the bottom) if that is of any importance and also
output from ifconfig, netstat -nr, ping and traceroute.
I was logged in as root while testing this.
Notice that because I'm using an internal DNS-server I can do lookups.
Obviously that wouldn't have been possible with the DNS-server provided by my
ISP.


I don't see anything obviously wrong with the configuration info you 
sent below.  The problem you are having is more likely in the router 
you are using, but without that configuration info, it's impossible to tell.


Are you using dhcp to assign IP addresses?  If so, is the router 
doing that job or something else?


Since you mentioned that it works when you boot into windows, are the 
network settings the same? (IP, netmask, default route ,etc) or is 
windows configured to use something different?


How is NAT configured in the router?  Does it's configuration cover 
the 192.168.0.228 address?


-Glenn





alcoy# ifconfig
bge0: flags=8843 mtu 1500
  options=1a
  inet6 fe80::214:22ff:fee1:41be%bge0 prefixlen 64 scopeid 0x1
  inet 192.168.0.228 netmask 0xff80 broadcast 192.168.0.255
  ether 00:14:22:e1:41:be
  media: Ethernet autoselect (100baseTX  )
  status: active
lo0: flags=8049 mtu 16384
  inet6 ::1 prefixlen 128
  inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
  inet 127.0.0.1 netmask 0xff00
alcoy# netstat -nr
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.0.199  UGS 0   52   bge0
127.0.0.1  127.0.0.1  UH  0   52lo0
192.168.0.128/25   link#1 UC  00   bge0
192.168.0.199  00:09:5b:10:de:14  UHLW2  190   bge0   1182
192.168.0.210  00:05:5d:0c:f8:23  UHLW1   29   bge0

Internet6:
Destination   Gateway
Flags  Netif Expire
::1   ::1
UH  lo0
fe80::%bge0/64link#1
UC bge0
fe80::214:22ff:fee1:41be%bge0 00:14:22:e1:41:be
UHL lo0
fe80::%lo0/64 fe80::1%lo0
U   lo0
fe80::1%lo0   link#2
UHL lo0
ff01::/32 ::1
U   lo0
ff02::%bge0/32link#1
UC bge0
ff02::%lo0/32 ::1
UC  lo0
alcoy# traceroute ping.sunet.se
traceroute to ping.sunet.se (130.242.80.31), 64 hops max, 40 byte packets
1  sentinel (192.168.0.199)  0.524 ms  0.518 ms  0.515 ms
2  * * *
^C
alcoy# ping sentinel
PING router.aqualize.tk (192.168.0.199): 56 data bytes
64 bytes from 192.168.0.199: icmp_seq=0 ttl=250 time=0.669 ms
64 bytes from 192.168.0.199: icmp_seq=1 ttl=250 time=0.679 ms
64 bytes from 192.168.0.199: icmp_seq=2 ttl=250 time=0.673 ms
64 bytes from 192.168.0.199: icmp_seq=3 ttl=250 time=0.673 ms
^C
--- router.aqualize.tk ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.669/0.673/0.679/0.004 ms
alcoy#








Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
  The Regents of the University of California. All rights reserved.
FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005
  [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
ACPI APIC Table: 
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) M processor 2.00GHz (1995.15-MHz 686-class CPU)
Origin = "GenuineIntel"  Id = 0x6d8  Stepping = 8
Features=0xafe9fbff 


Features2=0x180
AMD Features=0x10
real memory  = 1610448896 (1535 MB)
avail memory = 1569087488 (1496 MB)
ioapic0: Changing APIC ID to 1
ioapic0  irqs 0-23 on motherboard
npx0: [FAST]
npx0:  on motherboard
npx0: INT 16 interface
acpi0:  on motherboard
pci_link0:  irq 11 on acpi0
pci_link1:  irq 10 on acpi0
pci_link2:  irq 9 on acpi0
pci_link3:  irq 7 on acpi0
pci_link4:  on acpi0
pci_link5:  on acpi0
pci_link6:  on acpi0
Timecounter "A

Re: unable to write data to disk ad0

2006-01-03 Thread László Nagy



First of all, lets get the terminology straightened out.
I think you mean to say that you want to add a partition to
your FreeBSD slice.   


Yes.


Second, I presume you are booted to that drive.   The system does
not allow you to modify the label on the boot drive.   If it is the
only FreeBSD bootable drive you have, then you will need to boot
from the 'fixit' CD and run from that to modify the label and 
add the additional partition.
 

Well, finally I read the disklabel manual over again (about 3 times) and 
I COULD add a new

partition on my boot drive!


By the way, this is in either the handbook, FAQs or the archive.
 

This is typical. You know what, after googling for serveral hours, I 
found out that
it did not let me write on the disk because the kernel had 
SECURELEVEL=2. This is
something that should be in the manual. I appreciate that you wanted to 
help me, but

actually you pointed me to the wrong direction two times.

I suggest to change the documentation of the disklabel/bsdlabel and 
fdisk programs.

We should add this warning:

"Warning: you need to disable your kernel securelevel in /etc/rc.conf. 
The kernel does not

allow to modify disk label information above securelevel=N."

(I'm still not sure about the value of N).

I'm not sure where can I add this request to change the documentation.
But it would save hundreds of hours for newbies and supporters too.

Best,

  Les

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


Re: FreeBSD 6.0: Problem with network, doesn't use default gateway

2006-01-03 Thread Greg Barniskis

Christer Folkesson wrote:
Hi, this is my first message to the mailing-list. I hope that I have 
included

enough information about the problem.

The problem is that my FreeBSD 6.0 (release) won't use the default route
(gateway). So I can't access anything on the internet.

[snip]

I may have snipped some clue to what's actually wrong, but don't let 
that discourage you from trying to file complete problem reports. 
I'm a snipper. What I found to be most relevant follows.



Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.0.199  UGS 0   52   bge0

[snip]

This shows generally that the router IP is being properly used by 
FreeBSD as a gateway (Use = 52). Suggests that your assumption that 
FreeBSD isn't using the gateway properly is not correct.




alcoy# traceroute ping.sunet.se
traceroute to ping.sunet.se (130.242.80.31), 64 hops max, 40 byte packets
1  sentinel (192.168.0.199)  0.524 ms  0.518 ms  0.515 ms


[snip]

This shows the gateway IP is being properly used by FreeBSD as the 
appropriate route to ping.sunet.se. Indicates that the problem 
really is not FreeBSD's default route configuration or 
functionality. The route is clearly being used.




alcoy# ping sentinel
PING router.aqualize.tk (192.168.0.199): 56 data bytes
64 bytes from 192.168.0.199: icmp_seq=0 ttl=250 time=0.669 ms

[snip]

This shows you communicating with the gateway directly (confirms the 
assertion that local LAN operations are doing just fine).



Since your packets are being routed and NATed by the gateway 
correctly when the box is in Windows mode, packets should be getting 
routed and NATed correctly for FreeBSD as well. That is, if the box 
in Windows mode is using the same IP number and mask as the FreeBSD 
settings (you should double check that it is).


If the gateway is running fine (seems to be) and FreeBSD is properly 
using the gateway (seems to be), then the most likely suspect seems 
to be firewall configuration -- after your connection is properly 
routed, reply packets from the Internet could be getting dropped on 
the floor by your gateway or by FreeBSD.


Have you configured any kind of packet filter (ipf, ipfw, other) for 
FreeBSD? Try disabling that and see if your results change. If so, 
tune your filtering rules accordingly.


Use of tcpdump -i bge0 may also be informative (see man tcpdump).


--
Greg Barniskis, Computer Systems Integrator
South Central Library System (SCLS)
Library Interchange Network (LINK)
, (608) 266-6348
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Programming Book(s)

2006-01-03 Thread Gayn Winters

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Danial Thom
> Sent: Tuesday, January 03, 2006 7:53 AM
> To: Nicolas Blais; freebsd-questions@freebsd.org; 
> [EMAIL PROTECTED]
> Subject: Re: Programming Book(s)
> 
> 
> 
> 
> --- Nicolas Blais <[EMAIL PROTECTED]> wrote:
> 
> > On January 2, 2006 04:52 pm, Sean wrote:
> > > Sean wrote:
> > > > Looking for recommendations on any Unix
> > programming books.
> > > > I have been out of things for a while so I
> > would put my skill level back
> > > > to the beginning.
> > > >
> > > > Thanks
> > > > Sean
> > > >
> > ___
> > > > freebsd-questions@freebsd.org mailing list
> > > >
> >
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > > > To unsubscribe, send any mail to
> > > > "[EMAIL PROTECTED]"
> > >
> > > I forgot to mention that I wish to work with
> > C/C++
> > >
> > >   Thanks again,
> > >   Sean
> > 
> > There's a free C++ book which is great : 
> >
> http://mindview.net/Books/TICPP/ThinkingInCPP2e.html
> > 
> > You can also buy the hardcopy on Amazon.
> > 
> > Nicolas
> > 
> 
> I'd recommend learning C before C++. In order to
> be an effective unix programmer you must master
> the C language, as you'll have to examine and
> modify code in C to do anything substantial.
> Virtually all major programs and kernels are 'C'
> based.
> 
> DT

>From the website referenced:

Chapter 3 is a fairly intense coverage of the C that's used in C++, but
if you're just getting started with all this it may be a little too
intense. To remedy this, the printed book contains a CD ROM training
course that gently introduces you to the C syntax that you need to
understand in order to take on C++ or Java.

-gayn

Bristol Systems Inc.
714/532-6776
www.bristolsystems.com 


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


Re: How long to compile...

2006-01-03 Thread Crispy Beef

Was wondering on average how long building userland and the
kernel for 6.0-RELEASE should take on a 466MHz Celeron machine
with 128Mb RAM?



Many hours.  :-(
For comparison: it takes ~1h45 on a P4/2.25ghz with 512mb.  I
seem to remember the 500mhz Celeron being an overnight or all-day
job.


Oh well, at least it's a second machine and I can let it go.

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


Re: FreeBSD 6 - Do i need both CD1 and CD2 ?

2006-01-03 Thread Adam Nealis
--- JK <[EMAIL PROTECTED]> wrote:

> On Tue, 3 Jan 2006 05:18:59 -0800 (PST)
>   Adam Nealis <[EMAIL PROTECTED]> wrote:
> > --- "FlashWebHost.com" <[EMAIL PROTECTED]> wrote:
> > 
> >> Hi,
> >> 
> >> I am using FreeBSD 5.2 on my local computer.
> >> 
> >> I want to upgrade to FreeBSD 6.0
> >> 
> >> Do i need to download both files ?
> > 
> > No. CD1 will give you as much as the OS plus X11 plus all sources. 
> >Plus
> > the complete ports tree as of 6.0-RELEASE.
> > 
> > CD2 contains several hundred binary packages, but are not required 
> >for the
> > OS upgrade.
> 
> I've always wondered this.  I'm running 5.1.  Can I upgrade to 6.x in 
> place, i.e. without having to full install and wipe my filesystem etc?


You should never do a major (any?) upgrade without making a backup of
important data, and then verifying the backup works.


Yes, you can upgrade in place. Read this.



It specifically warns against going from 4-STABLE to 6.0-RELEASE.

> If so, how do I do that?  I couldn't find anything in the Handbook or 
> anywhere that says one can do this.





__ 
Yahoo! for Good - Make a difference this year. 
http://brand.yahoo.com/cybergivingweek2005/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD 6 - Do i need both CD1 and CD2 ?

2006-01-03 Thread Daniel A.
Hi Yujin,
If you want to do a fresh install of FreeBSD 6.0, I suggest that you
only download the bootonly ISO, and then do a minimal install using
FTP as source.
On 1/3/06, FlashWebHost.com <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am using FreeBSD 5.2 on my local computer.
>
> I want to upgrade to FreeBSD 6.0
>
> Do i need to download both files ?
>
> ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/6.0/6.0-RELEASE-i386-disc1.iso
> ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/6.0/6.0-RELEASE-i386-disc2.iso
>
> Or first ISO will do the installation ?
>
> Since i am on slow net, downloading both will take few days to finish. I
> don't need GUI, just FreeBSD black and white installation :-)
>
> Anyone know where i can purchase FreeBSD 6 CD in india ?
>
> Regards,
>
> Yujin
>
> 
> www.NetFreeHost.com
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How long to compile...

2006-01-03 Thread Robert Huff

Crispy Beef writes:

>  Was wondering on average how long building userland and the
>  kernel for 6.0-RELEASE should take on a 466MHz Celeron machine
>  with 128Mb RAM?

Many hours.  :-(
For comparison: it takes ~1h45 on a P4/2.25ghz with 512mb.  I
seem to remember the 500mhz Celeron being an overnight or all-day
job.


Robert Huff


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


Re: Programming Book(s)

2006-01-03 Thread Danial Thom


--- Nicolas Blais <[EMAIL PROTECTED]> wrote:

> On January 2, 2006 04:52 pm, Sean wrote:
> > Sean wrote:
> > > Looking for recommendations on any Unix
> programming books.
> > > I have been out of things for a while so I
> would put my skill level back
> > > to the beginning.
> > >
> > > Thanks
> > > Sean
> > >
> ___
> > > freebsd-questions@freebsd.org mailing list
> > >
>
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > > To unsubscribe, send any mail to
> > > "[EMAIL PROTECTED]"
> >
> > I forgot to mention that I wish to work with
> C/C++
> >
> > Thanks again,
> > Sean
> 
> There's a free C++ book which is great : 
>
http://mindview.net/Books/TICPP/ThinkingInCPP2e.html
> 
> You can also buy the hardcopy on Amazon.
> 
> Nicolas
> 

I'd recommend learning C before C++. In order to
be an effective unix programmer you must master
the C language, as you'll have to examine and
modify code in C to do anything substantial.
Virtually all major programs and kernels are 'C'
based.

DT



__ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 

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


Re: FreeBSD 6.0: Problem with network, doesn't use default gateway

2006-01-03 Thread Danial Thom


--- Christer Folkesson <[EMAIL PROTECTED]>
wrote:

> Hi, this is my first message to the
> mailing-list. I hope that I have 
> included
> enough information about the problem.
> 
> The problem is that my FreeBSD 6.0 (release)
> won't use the default route
> (gateway). So I can't access anything on the
> internet.
> 
> Hardware and network equipment:
> Dell latitude D810 (Pentium M 2.0 GHz, 1.5 GB
> of primary memory, broadcom
> gigabit/fast/"normal" ethernet controller).
> The broadcom chip uses the bge driver. I have
> looked in the man page for 
> that
> and no troubles or something like that is
> mentioned.
> IPv4 address: 192.168.0.228 /25
> 
> The gateway is a netgear RP614 broadband
> router. IPv4: 192.168.0.199 /25
> 
> Also a windows 2003 server is acting as
> DNS-server for my network.
> 
> FreeBSD shares the computer with windows XP pro
> SP2 using dual boot.
> In windows it works fine so this convince me
> that it's a software 
> problem in
> FreeBSD.
> 
> As said, it works perfectly fine inside the
> LAN, but not outside.
> 
> 
> I include a dmesg output (at the bottom) if
> that is of any importance 
> and also
> output from ifconfig, netstat -nr, ping and
> traceroute.
> I was logged in as root while testing this.
> Notice that because I'm using an internal
> DNS-server I can do lookups.
> Obviously that wouldn't have been possible with
> the DNS-server provided 
> by my
> ISP.
> 
> 
> 
> alcoy# ifconfig
> bge0:
>
flags=8843
> mtu 1500
>   
> options=1a
>inet6 fe80::214:22ff:fee1:41be%bge0
> prefixlen 64 scopeid 0x1
>inet 192.168.0.228 netmask 0xff80
> broadcast 192.168.0.255
>ether 00:14:22:e1:41:be
>media: Ethernet autoselect (100baseTX
>  )
>status: active
> lo0: flags=8049
> mtu 16384
>inet6 ::1 prefixlen 128
>inet6 fe80::1%lo0 prefixlen 64 scopeid
> 0x2
>inet 127.0.0.1 netmask 0xff00
> alcoy# netstat -nr
> Routing tables
> 
> Internet:
> DestinationGatewayFlags   
> Refs  Use  Netif Expire
> default192.168.0.199  UGS  
>   0   52   bge0
> 127.0.0.1  127.0.0.1  UH   
>   0   52lo0
> 192.168.0.128/25   link#1 UC   
>   00   bge0
> 192.168.0.199  00:09:5b:10:de:14  UHLW 
>   2  190   bge0   1182
> 192.168.0.210  00:05:5d:0c:f8:23  UHLW 
>   1   29   bge0
> 
> Internet6:
> Destination   Gateway  
> 
> Flags  Netif Expire
> ::1   ::1  
> 
> UH  lo0
> fe80::%bge0/64link#1   
> 
> UC bge0
> fe80::214:22ff:fee1:41be%bge0
> 00:14:22:e1:41:be 
> UHL lo0
> fe80::%lo0/64 fe80::1%lo0  
> 
> U   lo0
> fe80::1%lo0   link#2   
> 
> UHL lo0
> ff01::/32 ::1  
> 
> U   lo0
> ff02::%bge0/32link#1   
> 
> UC bge0
> ff02::%lo0/32 ::1  
> 
> UC  lo0
> alcoy# traceroute ping.sunet.se
> traceroute to ping.sunet.se (130.242.80.31), 64
> hops max, 40 byte packets
> 1  sentinel (192.168.0.199)  0.524 ms  0.518 ms
>  0.515 ms
> 2  * * *
> ^C
> alcoy# ping sentinel
> PING router.aqualize.tk (192.168.0.199): 56
> data bytes
> 64 bytes from 192.168.0.199: icmp_seq=0 ttl=250
> time=0.669 ms
> 64 bytes from 192.168.0.199: icmp_seq=1 ttl=250
> time=0.679 ms
> 64 bytes from 192.168.0.199: icmp_seq=2 ttl=250
> time=0.673 ms
> 64 bytes from 192.168.0.199: icmp_seq=3 ttl=250
> time=0.673 ms
> ^C
> --- router.aqualize.tk ping statistics ---
> 4 packets transmitted, 4 packets received, 0%
> packet loss
> round-trip min/avg/max/stddev =
> 0.669/0.673/0.679/0.004 ms
> alcoy#

It seems obvious from the traceroute that its
going to the gateway. Since the address of the
system is not a legal internet address, its
likely a NAT problem. I'd look closely at the
windows setup to see what might be different.

DT




__ 
Yahoo! for Good - Make a difference this year. 
http://brand.yahoo.com/cybergivingweek2005/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How long to compile...

2006-01-03 Thread Crispy Beef

Hi,

This is kind of related to my other post (Kernel Compilation), but thought I'd 
post it seperately as it would be interesting to know...


Was wondering on average how long building userland and the kernel for 
6.0-RELEASE should take on a 466MHz Celeron machine with 128Mb RAM?


The only frame of reference I have is building 4.5-RELEASE on an ancient P120 
system with next to nothing on it (gateway/firewall box).



Cheers,

Paul

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


Re: How to bind ntpd to a single address?

2006-01-03 Thread Kirk Strauser
On Tuesday 03 January 2006 01:31, Darren Pilgrim wrote:

> So how to I tell ntpd to bind to a specific IP address?

ISC's ntpd doesn't support that, AFAIK.  However, depending on your needs, 
you might be able to use OpenNTPD which does have that feature.
-- 
Kirk Strauser


pgpiXu61XgOvj.pgp
Description: PGP signature


FreeBSD 6.0: Problem with network, doesn't use default gateway

2006-01-03 Thread Christer Folkesson
Hi, this is my first message to the mailing-list. I hope that I have 
included

enough information about the problem.

The problem is that my FreeBSD 6.0 (release) won't use the default route
(gateway). So I can't access anything on the internet.

Hardware and network equipment:
Dell latitude D810 (Pentium M 2.0 GHz, 1.5 GB of primary memory, broadcom
gigabit/fast/"normal" ethernet controller).
The broadcom chip uses the bge driver. I have looked in the man page for 
that

and no troubles or something like that is mentioned.
IPv4 address: 192.168.0.228 /25

The gateway is a netgear RP614 broadband router. IPv4: 192.168.0.199 /25

Also a windows 2003 server is acting as DNS-server for my network.

FreeBSD shares the computer with windows XP pro SP2 using dual boot.
In windows it works fine so this convince me that it's a software 
problem in

FreeBSD.

As said, it works perfectly fine inside the LAN, but not outside.


I include a dmesg output (at the bottom) if that is of any importance 
and also

output from ifconfig, netstat -nr, ping and traceroute.
I was logged in as root while testing this.
Notice that because I'm using an internal DNS-server I can do lookups.
Obviously that wouldn't have been possible with the DNS-server provided 
by my

ISP.



alcoy# ifconfig
bge0: flags=8843 mtu 1500
  options=1a
  inet6 fe80::214:22ff:fee1:41be%bge0 prefixlen 64 scopeid 0x1
  inet 192.168.0.228 netmask 0xff80 broadcast 192.168.0.255
  ether 00:14:22:e1:41:be
  media: Ethernet autoselect (100baseTX  )
  status: active
lo0: flags=8049 mtu 16384
  inet6 ::1 prefixlen 128
  inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
  inet 127.0.0.1 netmask 0xff00
alcoy# netstat -nr
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.0.199  UGS 0   52   bge0
127.0.0.1  127.0.0.1  UH  0   52lo0
192.168.0.128/25   link#1 UC  00   bge0
192.168.0.199  00:09:5b:10:de:14  UHLW2  190   bge0   1182
192.168.0.210  00:05:5d:0c:f8:23  UHLW1   29   bge0

Internet6:
Destination   Gateway   
Flags  Netif Expire
::1   ::1   
UH  lo0
fe80::%bge0/64link#1
UC bge0
fe80::214:22ff:fee1:41be%bge0 00:14:22:e1:41:be 
UHL lo0
fe80::%lo0/64 fe80::1%lo0   
U   lo0
fe80::1%lo0   link#2
UHL lo0
ff01::/32 ::1   
U   lo0
ff02::%bge0/32link#1
UC bge0
ff02::%lo0/32 ::1   
UC  lo0

alcoy# traceroute ping.sunet.se
traceroute to ping.sunet.se (130.242.80.31), 64 hops max, 40 byte packets
1  sentinel (192.168.0.199)  0.524 ms  0.518 ms  0.515 ms
2  * * *
^C
alcoy# ping sentinel
PING router.aqualize.tk (192.168.0.199): 56 data bytes
64 bytes from 192.168.0.199: icmp_seq=0 ttl=250 time=0.669 ms
64 bytes from 192.168.0.199: icmp_seq=1 ttl=250 time=0.679 ms
64 bytes from 192.168.0.199: icmp_seq=2 ttl=250 time=0.673 ms
64 bytes from 192.168.0.199: icmp_seq=3 ttl=250 time=0.673 ms
^C
--- router.aqualize.tk ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.669/0.673/0.679/0.004 ms
alcoy#








Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
  The Regents of the University of California. All rights reserved.
FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005
  [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
ACPI APIC Table: 
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) M processor 2.00GHz (1995.15-MHz 686-class CPU)
Origin = "GenuineIntel"  Id = 0x6d8  Stepping = 8

Features=0xafe9fbff 


Features2=0x180
AMD Features=0x10
real memory  = 1610448896 (1535 MB)
avail memory = 1569087488 (1496 MB)
ioapic0: Changing APIC ID to 1
ioapic0  irqs 0-23 on motherboard
npx0: [FAST]
npx0:  on motherboard
npx0: INT 16 interface
acpi0:  on motherboard
pci_link0:  irq 11 on acpi0
pci_link1:  irq 10 on acpi0
pci_link2:  irq 9 on acpi0
pci_link3:  irq 7 on acpi0
pci_link4:  on acpi0
pci_link5:  on acpi0
pci_link6:  on acpi0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
cpu0:  on acpi0
acpi_throttle0:  on cpu0
acpi_acad0:  on acpi0
battery0:  on acpi0
battery1:  on acpi0
acpi_lid0:  on acpi0
acpi_button0:  on acpi0
acpi_button1:  on acpi0
pcib0:  port 0xcf8-0xcff on acpi0
pci0:  on pcib0
pcib1:  at device 1.0 on pci0
pci1:  on pcib1
pci1:  at device 0.0 (no driver attached)
pcib2:  at device 28.0 

Anybody using wep encryption with ndis on a recent FreeBSD 5.4?

2006-01-03 Thread Fabian Keil
Since about a month ago I can no longer use wep encryption
with up to date ndis.

[EMAIL PROTECTED] ~ $uname -a
FreeBSD TP51.local 5.4-STABLE FreeBSD 5.4-STABLE #28: Mon Jan  2
12:37:11 CET 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/THINKPAD  i386

[EMAIL PROTECTED] /root #ifconfig ndis0 wepkey 0x$key
ifconfig: SIOCS80211: Invalid argument

On FreeBSD 6.0 this means you have to kldload wlan_wep.ko,
but on FreeBSD 5.4 there is no wlan_wep.ko.

ATM I use ndis modules from an older build without trouble.

Is anybody else seeing this?

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: Kernel Compilation...

2006-01-03 Thread Crispy Beef

Jonathan Chen wrote:

On Mon, Jan 02, 2006 at 04:15:48PM +, Crispy Beef wrote:


Hi All,

Just joined this list.  The last time I used FreeBSD was with 4.6-RELEASE, 
so a while ago now.  I have just installed 6.0-RELEASE on my old laptop and 
have been configuring the system, am onto the kernel at the moment, have 
followed the traditional method in the FreeBSD handbook.  All works fine 
(make depends) until I do 'make' then I get a compilation error as follows:



/usr/src/sys/modules/ata/atapci/../../../dev/ata/ata-chipset.c:617:
internal compiler error: Segmentation fault: 11
Please submit a full bug report,
with preprocessed source if appropriate.



Internal compiler errors usually indicate faulty memory. If you rerun
your compilation and it fails in the same spot, then it could be
software. If the compilations fails in a different area, you've
probably got faulty hardward.


It's looking very much like faulty hardware at the moment...bit of a shame 
really.  Have used Gentoo Linux on this machine before (compiling from source) 
and that's always worked just fine, I only ditched it a couple of weeks ago to 
have a play with FreeBSD again.


Also tried the memtest86 util from a floppy, that doesn't even boot properly 
so looks like it might be a no go.  :-/


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


Re: mouse dead on FreeBSD but not on Windows

2006-01-03 Thread Frank Laszlo
Fernan Aguero wrote:
> Hi!
>
> I've a dual boot machine, which was running FreeBSD-5.4 (now
> 6.0p1) and WinXP. It has a cheap PS/2 mouse (Biswal is the
> brand, but I guess it's just a generic mouse, details at the
> bottom).
>
> In Windows it works flawlessly ... wheel included. It's been
> running for months. In FreeBSD it never worked. I don't know
> if I'm doing something wrong ... this machine is the first
> box in which I installed 5.x so perhaps there are some
> configuration differences from 4.x tham I'm unaware of?
>
> Any help would be appreciated (of course I can go buy
> another cheap mouse ... but I'm intrigued now).
>
> The details:
>
> dmesg says:
> psm0:  irq 12 on atkbdc0
> psm0: [GIANT LOCKED]
> psm0: model Intellimouse, device ID 3
>
> moused says:
> moused -i all -p /dev/psm0
> /dev/psm0 ps/2 sysmouse Intellimouse
>
> I've tried to run 'vidcontrol -m on' and then 'moused -p
> /dev/psm0 -t auto/sysmouse' and I never get an arrow on the
> screen.
>
> I've got X installed with gnome and when booting I always
> get a black arrow in the xdm login screen that I cannot move
> with the mouse. I also tried to tweak my Xorg.conf file to
> no avail.
>
> My custom kernel has the following (I quote what I guess
> it's relevant, do ask for more detail if neccessary):
> deviceatkbdc
> deviceatkbd
> devicepsm
>
> I just cvsuped against RELENG_6_0 and rebuilt the world and
> kernel. All the base system is now 6.0p1, and now I need to
> rebuild all ports ... but apart from that the mouse is still
> dead on FreeBSD.
>
> Again thanks for any help,
>
> fernan
>
>   
Are you using moused, or Xorg's mouse daemon? please send the applicable
section from your xorg.conf. Thanks

__
Frank Laszlo
System Administrator
The VonOstin Group
Email:  [EMAIL PROTECTED]
WWW:http://www.vonostingroup.com
Mobile: 248-863-7584

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


Re: FreeBSD 6 - Do i need both CD1 and CD2 ?

2006-01-03 Thread FlashWebHost.com
Thanks Adam for the reply. I will try downloading CD1.

I have upgraded my FreeBSD 5.3 to FreeBSD 5.4 as per

http://www.daemonology.net/freebsd-upgrade-5.3-to-5.4/

There is 5.4 to 6 upgrade also at

http://www.daemonology.net/freebsd-upgrade-5.4-to-6.0/

Regards,

Yujin

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


Re: unable to write data to disk ad0

2006-01-03 Thread Jerry McAllister
>   Hello,
> 
> I have a FreeBSD 6.0 system on i386. I would like to add a new label on 
> my main FreeBSD partition (I have about 30GB free space left).
> If I try to add a new slice (ad0s1g,  mount point: /shares 
> size:20031MB,  UFS2+S) then I get this message:
> 
> unable to write data to disk ad0

First of all, lets get the terminology straightened out.
I think you mean to say that you want to add a partition to
your FreeBSD slice.   The slice (from 1-4) is the main division 
in FreeBSD and it is subdivided in to partitions a-h.

Second, I presume you are booted to that drive.   The system does
not allow you to modify the label on the boot drive.   If it is the
only FreeBSD bootable drive you have, then you will need to boot
from the 'fixit' CD and run from that to modify the label and 
add the additional partition.

The fixit is now on the main install CD.   Just boot it and then
choose the fixit item and get a UNIX shell.   You can use sysinstall
from that as well if you don't want to handle fdisk and bsdlabel
yourself.Just make sure you are careful about the slice and
partition[s] you modify so you don't wipe out something you want
to keep.

By the way, this is in either the handbook, FAQs or the archive.
I know I have answered this questions several times in the last
year - about every two months.Those resources are your best
first source before making someone write the same thing yet one
more time.

jerry

> I also tried to do the same with the bsdlabel utility, but it has so 
> many options, and the examples given in
> 
> http://www.freebsd.org/cgi/man.cgi?query=bsdlabel&sektion=8
> 
> are too confusing to me. I do not want to accidentally overwrite my good 
> partitions.
> Can somebody tell me a simple way to add a new label? Then I guess I 
> need to format it with
> 
> newfs /dev/ad0s1g
> 
> and finally mount it. Please help.
> 
>Les
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 

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


Re: unable to write data to disk ad0

2006-01-03 Thread László Nagy


are too confusing to me. I do not want to accidentally overwrite my 
good partitions.



I could create a new partition using

disklabel -e ad0s1

The result is a new 'g' partition:

messias# disklabel ad0s1
# /dev/ad0s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
 a:  209715204.2BSD 2048 16384 28552
 b:  2097152  2097152  swap
 c: 1600715970unused0 0 # "raw" part, 
don't edit

 d:  6291456  41943044.2BSD 2048 16384 28552
 e:  4194304 104857604.2BSD 2048 16384 28552
 f: 83886080 146800644.2BSD 2048 16384 28552
 g: 61505453 985661444.2BSD 2048 16384 28552

When I try to format it:

messias# newfs -O2 /dev/ad0s1g
newfs: /dev/ad0s1g: failed to open disk for writing


What am I doing wrong?

Thanks

  Les

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


Re: 6.0-REL && isos of distfiles

2006-01-03 Thread Greg Barniskis

RW wrote:

On Friday 30 December 2005 13:54, Greg Barniskis wrote:



distribution ISOs as packages. Again, if you simply must have
sources not packages, then at your high speed location, do something
like:

portupgrade -F '*'

Then burn your own ISOs any which way you like. Try to be more
specific about what you want than '*' or you may be sorry due to the
sheer volume -- do you really want all of the sources for nearly
14,000 ports?



"*" is a package glob that applies only to the entries in the package 
database, so you wont get the source 14,000 ports, unless you've already 
installed them all. 


Yeah, I guess I knew that wasn't quite right, thus the hedge 
language: "something like". I suppose I should have just said "see 
man portupgrade" or taken the time to do that myself. Thanks for the 
clarification.



--
Greg Barniskis, Computer Systems Integrator
South Central Library System (SCLS)
Library Interchange Network (LINK)
, (608) 266-6348
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD 6 - Do i need both CD1 and CD2 ?

2006-01-03 Thread JK

On Tue, 3 Jan 2006 05:18:59 -0800 (PST)
 Adam Nealis <[EMAIL PROTECTED]> wrote:

--- "FlashWebHost.com" <[EMAIL PROTECTED]> wrote:


Hi,

I am using FreeBSD 5.2 on my local computer.

I want to upgrade to FreeBSD 6.0

Do i need to download both files ?


No. CD1 will give you as much as the OS plus X11 plus all sources. 
Plus

the complete ports tree as of 6.0-RELEASE.

CD2 contains several hundred binary packages, but are not required 
for the

OS upgrade.


I've always wondered this.  I'm running 5.1.  Can I upgrade to 6.x in 
place, i.e. without having to full install and wipe my filesystem etc?


If so, how do I do that?  I couldn't find anything in the Handbook or 
anywhere that says one can do this.


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


mouse dead on FreeBSD but not on Windows

2006-01-03 Thread Fernan Aguero
Hi!

I've a dual boot machine, which was running FreeBSD-5.4 (now
6.0p1) and WinXP. It has a cheap PS/2 mouse (Biswal is the
brand, but I guess it's just a generic mouse, details at the
bottom).

In Windows it works flawlessly ... wheel included. It's been
running for months. In FreeBSD it never worked. I don't know
if I'm doing something wrong ... this machine is the first
box in which I installed 5.x so perhaps there are some
configuration differences from 4.x tham I'm unaware of?

Any help would be appreciated (of course I can go buy
another cheap mouse ... but I'm intrigued now).

The details:

dmesg says:
psm0:  irq 12 on atkbdc0
psm0: [GIANT LOCKED]
psm0: model Intellimouse, device ID 3

moused says:
moused -i all -p /dev/psm0
/dev/psm0 ps/2 sysmouse Intellimouse

I've tried to run 'vidcontrol -m on' and then 'moused -p
/dev/psm0 -t auto/sysmouse' and I never get an arrow on the
screen.

I've got X installed with gnome and when booting I always
get a black arrow in the xdm login screen that I cannot move
with the mouse. I also tried to tweak my Xorg.conf file to
no avail.

My custom kernel has the following (I quote what I guess
it's relevant, do ask for more detail if neccessary):
device  atkbdc
device  atkbd
device  psm

I just cvsuped against RELENG_6_0 and rebuilt the world and
kernel. All the base system is now 6.0p1, and now I need to
rebuild all ports ... but apart from that the mouse is still
dead on FreeBSD.

Again thanks for any help,

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


Problems with phpMyAdmin ...

2006-01-03 Thread Thomas T. Veldhouse
Recently, I pulled down the current ports on my 6.0-RELEASE system and 
ran portupgrade (-Ra).  Everything works fabulously except for 
phpMyAdmin.  Other PHP (5.1.1) applications work just fine, including 
postfixadmin and others.  With phpMyAdmin (2.7.0p2 and all previous 
versions that I have attempted manually) I simply get a empty page.  If 
I run it through Squid, I get the following.


"The following error was encountered:

   * * Zero Sized Reply *

Squid did not receive any data for this request."

I have checked my Apache (2.0) error logs and find no errors at all.  
This problem is unique to phpMyAdmin and I am truly stumped.  I have 
been through all of the documentation and I have searched Google for 
hours.  I have found MANY reports of this same issue, but none have 
found the cause (some wiped everything and reinstalled with success, but 
that is not an option).


So, does anybody here with experience with this piece of software have a 
suggestion as to its cause?


Thanks in advance,

Tom Veldhouse



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


unable to write data to disk ad0

2006-01-03 Thread László Nagy


 Hello,

I have a FreeBSD 6.0 system on i386. I would like to add a new label on 
my main FreeBSD partition (I have about 30GB free space left).
If I try to add a new slice (ad0s1g,  mount point: /shares 
size:20031MB,  UFS2+S) then I get this message:


unable to write data to disk ad0

I also tried to do the same with the bsdlabel utility, but it has so 
many options, and the examples given in


http://www.freebsd.org/cgi/man.cgi?query=bsdlabel&sektion=8

are too confusing to me. I do not want to accidentally overwrite my good 
partitions.
Can somebody tell me a simple way to add a new label? Then I guess I 
need to format it with


newfs /dev/ad0s1g

and finally mount it. Please help.

  Les

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


Re: ftp nologin problem

2006-01-03 Thread Leonidas Tsampros
On Wed, Dec 28, 2005 at 12:36:21PM +0500, Imran Imtiaz wrote:
> I am running ProFTPD 1.2.10 on my bsd server but the problem is that if a user
> don't have a shell and I've defined his shell as nologin then the ftp server 
> does 
> not logon and give the following error
> C:\Documents and Settings\Asif>ftp 192.168.0.3
> Connected to 192.168.0.3.
> 220 ProFTPD 1.2.10 Server (ProFTPD Default Installation) [192.168.0.3]
> User (192.168.0.3:(none)): db.backup
> 331 Password required for db.backup.
> Password:
> 530 Login incorrect.
> Login failed.
> ftp>
> 
> tell me how can I correct this problem cause I don't want to give user a 
> shell.
> Regards,
> Imran Imtiaz
> 

Try this options in your proftpd.conf :

RequireValidShell   off

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


Re: FreeBSD 6 - Do i need both CD1 and CD2 ?

2006-01-03 Thread Adam Nealis
--- "FlashWebHost.com" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I am using FreeBSD 5.2 on my local computer.
> 
> I want to upgrade to FreeBSD 6.0
> 
> Do i need to download both files ?

No. CD1 will give you as much as the OS plus X11 plus all sources. Plus
the complete ports tree as of 6.0-RELEASE.

CD2 contains several hundred binary packages, but are not required for the
OS upgrade.

Cheers,
Adam.




__ 
Yahoo! for Good - Make a difference this year. 
http://brand.yahoo.com/cybergivingweek2005/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: check script for tcp connection

2006-01-03 Thread Halid Faith
Thanks a lot

I have installed monit from ports.
But I have a problem. monit daemon is running . But Although set daemon is
60 ( 1 minute interval) in any problem it send an email to sysadmin only
once time. I want the monit to send a mail every interval during any
problem.

my configuration is below;
in /etc/monitrc

set daemon 60   # Poll at 2-minute intervals
#set logfile syslog facility log_daemon  # Set syslog logging
## (facility LOG_DAEMON)
# set mailserver mail.bar.baz, backup.bar.baz port 10025, localhost
#
## Set localhost as a fall back
server
## if the primary mail server fails
## and the backup mail server fails
 set mail-format   # Set a default mail from-address for
  { from: [EMAIL PROTECTED] }  # all alert messages emitted by monit
 set alert [EMAIL PROTECTED]  # Send alert to system admin on any event


check host test with address 192.168.1.111
if failed icmp type echo with timeout 3 seconds then alert
#if failed port 3306 then alert
if failed port 81 protocol http then alert

What shall I do ?

Thanks

- Original Message - 
From: "Eric Kamara" <[EMAIL PROTECTED]>
To: "'Halid Faith'" <[EMAIL PROTECTED]>
Cc: 
Sent: Tuesday, January 03, 2006 12:31 PM
Subject: RE: check script for tcp connection


>
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:owner-freebsd-
> > [EMAIL PROTECTED] On Behalf Of Halid Faith
> > Sent: Tuesday, January 03, 2006 12:49 PM
> > To: freebsd-questions@freebsd.org
> > Subject: check script for tcp connection
> >
> > Hello
> >
> > I use FreeBSD6.0. I want to use a script to check two or more case.
> > My first cases are as below;
> > First case My Server will check the remote ip address alive or not as
icmp
> > Second case My server will connect to other remote ip address as tcp
> > protocol like connected or not.
> >
> > if my server could not see the remote ip address AND not connect tcp
> > connection, My server will send an email me.
> >
> > How can I write a simple script about that ?
>
> Why don't you try out monit(/usr/ports/sysutils/monit) in the ports? It
can
> do that and much more and yet is very easy to configure.
>
> Regards,
> Eric
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
>

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


FreeBSD 6 - Do i need both CD1 and CD2 ?

2006-01-03 Thread FlashWebHost.com
Hi,

I am using FreeBSD 5.2 on my local computer.

I want to upgrade to FreeBSD 6.0

Do i need to download both files ?

ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/6.0/6.0-RELEASE-i386-disc1.iso
ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/6.0/6.0-RELEASE-i386-disc2.iso

Or first ISO will do the installation ?

Since i am on slow net, downloading both will take few days to finish. I
don't need GUI, just FreeBSD black and white installation :-)

Anyone know where i can purchase FreeBSD 6 CD in india ?

Regards,

Yujin


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


Fwd: Re: Disk error messages (ad0: HARD READ ERROR blk# xxxxxx)

2006-01-03 Thread Malcolm Kay
On Tue, 3 Jan 2006 12:25 pm, Gayn Winters wrote:
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > Russell J. Wood
> > Sent: Monday, January 02, 2006 3:54 PM
> > To: freebsd-questions@freebsd.org
> > Subject: Re: Disk error messages (ad0: HARD READ ERROR blk#
> > xx)
> >
> > On Mon, Jan 02, 2006 at 11:15:08PM +, [EMAIL PROTECTED] 
wrote:
> > > Hi there,
> > >
> > > On my screen, there were messages like the followings
> >
> > comeing up. I have to
> >
> > > reboot mutiple times to get it boot up normally. Does this
> >
> > mean I have to
> >
> > > replace the disk which is a relatively new disk (1-2
> >
> > years)? Any simple way to
> >
> > > fix it and to avoid the time consuming task?
> > >
> > >
> > > ad0: 39205MB  [79656/16/63] at ata0-master
> > > WDMA2 ad0: HARD READ ERROR blk# 131199
> > > ad0: HARD READ ERROR blk# 131199 status=59 error=40
> > > ad0: DMA problem fallback to PIO mode
> > > ad0: HARD READ ERROR blk# 11272319 status=59 error=40
> > > ad0: HARD READ ERROR blk# 11272319 status=59 error=40
> > > ad0: HARD READ ERROR blk# 11272319 status=59 error=40
> > > ad0: HARD READ ERROR blk# 131199 status=59 error=40
> > > ad0: HARD READ ERROR blk# 3473535 status=59 error=40
> > > ad0: HARD READ ERROR blk# 9240703 status=59 error=40
> > > ad0: HARD READ ERROR blk# 17367167 status=59 error=40
> > > ad0: HARD READ ERROR blk# 17760383 status=59 error=40
> >
> > I suspect that you have bad sectors on your hard disk drive
> > (and many of
> > them). A good tool to use is Segate's Seatools
> > (http://www.seagate.com/support/seatools/index.html). Just
> > burn the Seatools Desktop edition to CDROM and boot from it.
> >
> > - Russell
>
> After you've checked for loose cables, you might want to take
> the drive out and check it in another system (using the
> Seagate or other such tools).  If indeed the problem is with
> DMA, the drive might be ok but the MB is flakey.  Perhaps the
> PC or MB manufacturer has diagnosics with which you can zero
> into the latter ugly possiblity.  In any case, get yourself a
> backup asap (at least of the user data so that you can recover
> from a fresh installation.)  Unless you are getting other
> types of errors, it is probably still possible to copy the
> drive with dd using bs=512b, and this would be your quickest
> fix of a hard drive problem. Run fsck on your new disk after
> the copy.
>

dd is generally not a good choice for copying disks (although it 
does sort of work). The new disk will appear unclean when copied 
from a live fs and may in fact have an odd instance of a file 
which has not yet been physically updated. 

And it just takes too long since you copy empty space as well as 
real data.

Instead slice, partition the new disk and create newfs on the new 
partitions.

And then pipe dump (using the snapshot option) through to restore 
for each fs on the disks.
I have (successfully) used this approach extensively for cloning 
systems.

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


Re: umass detected, but da is never created

2006-01-03 Thread Scott Smith
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nikolas Britton wrote:
> One more thing. It's highly likey that your system will hang when you
> disconnect the ipod... prep your system for the worst, a warm reboot.
> Also don't connect the ipod untill you have X running. Connecting the
> ipod and then running KDE will hang the system. Start KDE and then ALT
> + CTRL + F1 to get to the console and then connect it... jump back to
> X (ALT + F9) to mount the drive "mount_msdosfs /dev/da0s2 /mnt/ipod"
> and then everything should be good to go for amaroK to use it. I use
> umount and "camcontrol eject da0" before I unplug it, but it still
> seems to hang the system. Oh.. and it's not as "rapid" as I said
> before. Connect the ipod then disconnect it... wait for error(s) then
> reconnect it. rinse and repeat until you get device da0... It's all
> about your timing Is their something wrong in the FreeBSD code?
> Anyways.

It works fine for me:

umass0: Apple iPod, rev 2.00/0.01, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0:  Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 3906MB (7999488 512 byte sectors: 255H 63S/T 497C)

blingbling# mount_msdosfs /dev/da0s2 /ipod
blingbling# ls /ipod
Calendars   ContactsData Files  Notes   iPod_Control
blingbling# umount /ipod
blingbling# camcontrol eject 1:0:0
Unit stopped successfully, Media ejected
blingbling# id
uid=0(root) gid=0(wheel) groups=0(wheel), 5(operator)

Scott

- --
[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)

iD8DBQFDumigKBeC2yZ3EEsRAoWPAKCOgL7ZJaeNJkvoyvbdibSLNqvvzwCgk+p8
+Txrap8lTYmloKTC1p7dnYg=
=D6NX
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to bind ntpd to a single address?

2006-01-03 Thread Matthew Seaman

Darren Pilgrim wrote:

I don't like (let alone want) ntpd binding to every IP address on the host.
The man pages don't say anything about specifying a binding address for
ntpd.  A search of the sources and Google also failed to reveal anything
useful.

So how to I tell ntpd to bind to a specific IP address?


ntpd doesn't have that functionality I'm afraid.  The next best you can do
is review your /etc/ntpd.conf 'restrict' rules carefully and implement a
firewall to control access to port 123/UDP.  NTP is not usually counted as
much of a security risk, and the benefits of running it certainly do outweigh
the risks.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW


signature.asc
Description: OpenPGP digital signature


Re: umass detected, but da is never created

2006-01-03 Thread Nikolas Britton
On 1/2/06, Nikolas Britton <[EMAIL PROTECTED]> wrote:
> On 12/24/05, Philip Lykke Carlsen <[EMAIL PROTECTED]> wrote:
> > I have this external harddisk kit, and when I plug it in, the system 
> > correctly
> > recognizes it as a umass.. but afterwards, the da device is never created..
> >
> > this is what I get from the console:
> >
> > umass0: vendor 0x05e3 USB TO IDE, rev 2.00/0.33, addr 2
> > umass0: BBB reset failed, TIMEOUT
> > umass0: BBB bulk-in clear stall failed, TIMEOUT
> >
> > Also, the very same thing but the timeouts are happening if I connect an 
> > Apple
> > iPod..
> >
> > And for the record, I had this problem with both the generic and my custom
> > kernel.. both with umass,da,ses,pass compiled in..
> >
> > Any ideas as for how to solve this?
> > Any guidelines and I'd gladly edit the files in question and submit a patch,
> > when I get it working..
> >
> > PS, Any other usb-drive I've tried has worked without problems..
>
> I was having a similar problem with my new ipod... it would stall here:
> umass0: Apple iPod, rev 2.00/0.01, addr 2
>
> After two hours of frustration (pissed off) I decided to repeatedly
> unplugged and re-plug the device cable in... To my surprise it started
> working!!!
>
> umass0: Apple iPod, rev 2.00/0.01, addr 2
> da0 at umass-sim0 bus 0 target 0 lun 0
> da0:  Removable Direct Access SCSI-0 device
> da0: 40.000MB/s transfers
>
> The trick is to rapidly (without being careless) unplug / replug the
> device in 2 or 3 times... My mainboard is an Intel 845GBV with ICH4,
> USB settings in BIOS are set to defaults.
>
> uname -a:
> FreeBSD spectra.intranet 6.0-RELEASE-p1 FreeBSD 6.0-RELEASE-p1 #2: Mon
> Jan  2 22:26:01 CST 2006
> [EMAIL PROTECTED]:/usr/src/sys/i386/compile/Info-Matic  i386
>
> Kernel config file:
> #
> # Info-Matic -- Generic kernel configuration file for FreeBSD/i386 Info-Matic
> #   Appends system specific options to the generic kernel
> #
>
> include GENERIC
>
> ident   Info-Matic
>
> # System Management Bus
> device  smb
> device  smbus
> device  ichsmb
>
> # Sound Support
> device  sound   # PCM audio device infrastructure
> device  "snd_emu10k1"   # SoundBlaster Live! and Audigy PCI bridge 
> devic
>
> # Video Support
> device  "radeondrm" # ATI Radeon Direct Rendering Module
> device  drm # Direct Rendering Module
> options VESA# Full VESA BIOS support
> options SC_PIXEL_MODE   # Console raster text mode (VESA graphic 
> modes)
>

One more thing. It's highly likey that your system will hang when you
disconnect the ipod... prep your system for the worst, a warm reboot.
Also don't connect the ipod untill you have X running. Connecting the
ipod and then running KDE will hang the system. Start KDE and then ALT
+ CTRL + F1 to get to the console and then connect it... jump back to
X (ALT + F9) to mount the drive "mount_msdosfs /dev/da0s2 /mnt/ipod"
and then everything should be good to go for amaroK to use it. I use
umount and "camcontrol eject da0" before I unplug it, but it still
seems to hang the system. Oh.. and it's not as "rapid" as I said
before. Connect the ipod then disconnect it... wait for error(s) then
reconnect it. rinse and repeat until you get device da0... It's all
about your timing Is their something wrong in the FreeBSD code?
Anyways.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: check script for tcp connection

2006-01-03 Thread Eric Kamara


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:owner-freebsd-
> [EMAIL PROTECTED] On Behalf Of Halid Faith
> Sent: Tuesday, January 03, 2006 12:49 PM
> To: freebsd-questions@freebsd.org
> Subject: check script for tcp connection
> 
> Hello
> 
> I use FreeBSD6.0. I want to use a script to check two or more case.
> My first cases are as below;
> First case My Server will check the remote ip address alive or not as icmp
> Second case My server will connect to other remote ip address as tcp
> protocol like connected or not.
> 
> if my server could not see the remote ip address AND not connect tcp
> connection, My server will send an email me.
> 
> How can I write a simple script about that ?

Why don't you try out monit(/usr/ports/sysutils/monit) in the ports? It can
do that and much more and yet is very easy to configure.

Regards,
Eric

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


Re: check script for tcp connection

2006-01-03 Thread Scott Smith
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Halid Faith wrote:
> Hello 
> 
> I use FreeBSD6.0. I want to use a script to check two or more case. 
> My first cases are as below;
> First case My Server will check the remote ip address alive or not as icmp 
> Second case My server will connect to other remote ip address as tcp protocol 
> like connected or not.
> 
> if my server could not see the remote ip address AND not connect tcp 
> connection, My server will send an email me.
> 
> How can I write a simple script about that ?

Install the nagios-plugins port. It has scripts to do both of those
things (and more). If you want even more functionality, check out the
full nagios package.

Scott

- --
[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)

iD8DBQFDukyXKBeC2yZ3EEsRAtLdAJ41hd+Ti+Lv6HJyURxDXeNHKIJnWQCfRa5y
A3d5EKLJrfRYKRq6wbzNqyc=
=qRpm
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Kernel Compilation...

2006-01-03 Thread Crispy Beef

Robert Huff wrote:

Crispy Beef writes:



I wasn't aware that I needed to do a buildworld too, am limited
on the amount of disk space I have, the whole disk is 6Gb with a
1Gb /home and over 3Gb /usr.  Is that going to be enough?



1) It is _very_ important to keep the kernel and userland in
sync.
	2) 


huff@>> du -s /usr/src
442996  /usr/src

As a ball-park estimate, figure 1Gb when you need to update.
Assuming you have a high-speed connection, I would rebuild
world and kernel per the handbook.  After installing and testing the
new system I would save the kernel config file elsewhere and delete
/usr/src and /usr/obj.  THe next time you need to rebuild you'll
need to clear the disk and download the entire source tree, but
you'll have the disk available until then.


Basically I had just installed 6.0-RELEASE from the CD, got the kernel sources 
 from an ftp server (using sysinstall) and then proceded to build the kernel 
as I mentioned in another post (traditional method).  Basically you're saying 
I should grab the entire source tree and then build everything before the 
kernel?  Just checking before I go ahead...having said that as it's a clean 
install there's nothing too vital on the system so won't matter to much if I 
trash it.

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


check script for tcp connection

2006-01-03 Thread Halid Faith
Hello 

I use FreeBSD6.0. I want to use a script to check two or more case. 
My first cases are as below;
First case My Server will check the remote ip address alive or not as icmp 
Second case My server will connect to other remote ip address as tcp protocol 
like connected or not.

if my server could not see the remote ip address AND not connect tcp 
connection, My server will send an email me.

How can I write a simple script about that ?

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


Re: FreeBSD 6.0 AMD64 Dont Detect My PCIExpress Card...? Radeon X300.

2006-01-03 Thread Björn König

perikillo schrieb:

  Hi people.
I have this motherboard:

http://www.msi.com.tw/program/products/mainboard/mbd/pro_mbd_detail.php?UID=652

   K8N Neo4 AMD64

   I install freebsd 6.0 AMD64, the installation was easy. The
problema is my VGA card is one PCIExpress ATI Radeon X300, i install
suse 10 on the same computer and suse detect the card, i say if suse
can bsd can, but no :-(


There is no reason for this conclusion.


, on the BIOS i dont have the option PnP OS =
YES or NO, i have 2 options for the VGA card:
PCIE or PCI, and IRQ Auto and Manual, i test both Auto and Manual, but
still didnt detect my card.


What do you mean with detection of the card? How do you determine 
whether the card has been detected or not?



I read the NOTES file and found two options:

drm
radeondrm


These are for 3D support, but "man radeon" says that your card isn't 
supported in this regard by this driver.



[...]

   If iam correct pci5 is my the PCIE card...? But dont see nothing
that say PCIExpress Card...?


This is not a problem because PCI express devices appear as regular PCI 
devices.



   I have 2 options, find another VGA card compatible with freebsd or
continue locking for help and maybe the results would not be good ?


Buy an Nvidia card if you need 3D support necessarily, because Nvidia 
offers drivers for FreeBSD. ATI does not; they support Linux only.


The third option would be to do it without 3D support. This should work 
always. If you have problems with configuring the X Window Server then 
/var/log/Xorg.0.log might be helpful. :-)



   Another thing is that, if i compile the GENERIC kernel deleting
some fields but let the 3 options for Firewire support, make send me
errors and dosent finish...?

[...]


Most likely you deleted some options that are necessary for firewire 
support. I can't say more unless you tell the error message and your 
kernel configuration file.


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


Re: STressing a new server...

2006-01-03 Thread Gary Kline
On Mon, Jan 02, 2006 at 10:06:52AM -0800, James Long wrote:
> A buildworld is indeed an excellent test of memory, CPU, drives
> and cabling.
> 
> The memory tester is sysutils/memtest.
> 
> It's not a very scientific test, but one thing I do is a 
> make -j8 buildworld whilst I do a large tar operation,
> optionally with compression.  Just anecdotally it appears
> that tar likes to use lots of memory.  I usually do some 
> sort of file system move, ala:
> 
> tar jcf - original | tar xpvf - -C copy
> 
> Make sure you have enough disk space to burn.
> 
> This has caught dodgy memory on servers in the past.
> 
> 

Thanks for the tar pointer.  Got to copy over /home here to
the new box and run several into /usr/tmp.  Thanks to everybody
for ideas.  I don't want to stress things until something
*melts*... but some reasonably hard use.  I'm using three or 
four benchmarks, and a couple of my own tests.  xload and top
show that the results are a fair simulation of real-world use.
Should know by the 22nd!

gary


-- 
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public service Unix

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