Re: Newbie: The C / C++ Issue

2003-11-11 Thread Matthew Emmerton
> Thanks for all of the great suggestions to my previous question!
>
> Yet, the responses have led me to another question. If C++ is newer and
more advanced than C, will it replace C? If so, should I learn C++ and
forget C?

You can't learn C++ without learning C first.  So I'd suggest you become
intimiately familiar with C, and then move on to the advanced concepts and
features that C++ provides once you want/need to use them.

--
Matt Emmerton

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


Re: ejecting a Zip disk using eject(1)

2003-12-01 Thread Matthew Emmerton
> > On Tue, 2 Dec 2003 08:13 am, DG wrote:
> > > # eject afd0
> > > eject: No such file or directory
> >
> > I dont know the syntax expected but you probably should be doing:
> >
> >   eject /dev/afd0
> >
> > Regards,
> > Jacob
>
>
> I tried that too.  The eject command accepts just the device name without
a
> prefix, and prepends "/dev/" as necessary.
>
> Specifically from man eject(1):
>
> SYNOPSIS
>  eject [-fnv] device
>
> DESCRIPTION
>  eject is a program to eject removable media from drive.  The device
is
> a
>  removable drive name such as cd0, matcd0, mcd0, scd0, wcd0 or od0.
> eject
>  unmounts the device if it was mounted brefore ejecting.
>
> Given that it says "removable drive name such as ..." I assumed that those
> listed were just examples, and that any ejectable media should be
> programatically ejectable.  My interpretation of the man page may have
been
> incorrect, or eject might not support Zip drives?

It's probably the case that the actual Zip drive itself doesn't have the
hardware to eject the disk automatically -- you have to push the eject
button on the front (like a floppy) -- at least with the Zip drives I've
used.

CD-ROMs, OTOH, can be ejected through software since the tray is motorized.

--
Matt Emmerton

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


Re: ghostview missing libc.so.4?

2003-12-29 Thread Matthew Emmerton

You sound like you're running 5.x.  You will need to install the
compat4x distribution to get FreeBSD-4.x compatibility libraries.

You sound lik you should be running 4.x anyway -- 5.x is still a strange
mix of "bleeding edge" and "stable" -- but it *is* called -CURRENT for a
reason.

Matt

On Sat, 27 Dec 2003, Chip Wiegand wrote:

> Mine has libc.so.5. No wonder the app is failing, it specifically wants
> .4 and is too dumb to work with anything newer. I'm getting real
> frustrated with this again, I'd like to move away from MS but it's not
> easy to do when the apps I need don't even work properly.
> --
> Chip
>
> paul beard wrote:
>
> >
> > On Dec 27, 2003, at 8:17 PM, chip wrote:
> >
> >> I just installed ghostview and when I try to open a .ps file I get
> >> the error that libc.so.4 is missing. If this is a dependency then why
> >> wasn't it installed with ghostscript or ghostview? What do I need to
> >> do to fix this? There is no one port for libc.so.4.
> >>
> >
> > This is what I have for libc (which I think is pretty darn integral to
> > your system): what does ls -l /usr/lib/libc.so* show?
> >
> > lrwxr-xr-x  1 root  wheel   9 Nov 22 23:04 /usr/lib/libc.so ->
> > libc.so.4
> > -r--r--r--  1 root  wheel  578964 Nov 22 23:04 /usr/lib/libc.so.4
> >
> > --
> > Paul Beard
> > 
> > paulbeard [at] mac.com
> >
> > ___
> > [EMAIL PROTECTED] mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "[EMAIL PROTECTED]"
> >
> > .
> >
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: wrong name on emails

2003-10-24 Thread Matthew Emmerton
Have you restarted sendmail (if you're running a sendmail server on badboy
to handle your outgoing mail?)
Have you checked /etc/mail/submit.cf and /etc/mail/sendmail.cf to ensure
that the old hostname wasn't hard-coded in your sendmail configuration?

Matt

- Original Message - 
From: "M.D. DeWar" <[EMAIL PROTECTED]>
To: "Micheal Patterson" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, October 24, 2003 10:37 AM
Subject: Re: wrong name on emails


> Hello,
> Thanks.
> Yes it reports the correct hostname.
> And its correct in the rc.conf.
>
> Here is a copy of the FROM on a email sent by the cron
> [EMAIL PROTECTED] (Cron Daemon)
>
> and hostname shows
> spiderman.wirelesscommunitynetworks.com
>
> Mark
> - Original Message - 
> From: "Micheal Patterson" <[EMAIL PROTECTED]>
> To: "M.D. DeWar" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Friday, October 24, 2003 10:13 AM
> Subject: Re: wrong name on emails
>
>
> >
> > - Original Message - 
> > From: "M.D. DeWar" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, October 24, 2003 9:03 AM
> > Subject: wrong name on emails
> >
> >
> > > Hello,
> > > When I first setup from FreeBSD 4.8 box I gave it one name, badboy.
Then
> > > later to due to dns issues I changed it to match DNS. Now when I get
an
> > > email from the box it says [EMAIL PROTECTED] instead of the new
> name.
> > > I searched every file I can think of. rc.local,rc.conf , resolv.conf
and
> > > other files but with no luck.
> > > I tried egrep -iR "badboy" /
> > > to find it but it was taking a long long time. So killed it.
> > > Were do I find it and change it or is it permanently at the original
> > > hostname.
> > >
> > > Thanks
> > > Mark
> > >
> >
> > Use the command hostname to verify that it's using the new name. If it
> shows
> > the old name there, do a hostname  to correct it.. Provided
it's
> > correct in your rc.conf file as well.
> >
> > --
> >
> > Micheal Patterson
> > TSG Network Administration
> > 405-917-0600
> >
> > Confidentiality Notice:  This e-mail message, including any attachments,
> is
> > for the sole use of the intended recipient(s) and may contain
confidential
> > and privileged information. Any unauthorized review, use, disclosure or
> > distribution is prohibited. If you are not the intended recipient,
please
> > contact the sender by reply e-mail and destroy all copies of the
original
> > message.
> >
> > ___
> > [EMAIL PROTECTED] mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
> >
>
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
>

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


Re: tar question...

2003-10-30 Thread Matthew Emmerton
> Hi list, the question is: can I tar a hole directory without include the
> tree ??? I mean when I tar all files in a /dir1/dir2/dir3 path, the tar
file
> includes me the path too and I want to tar only the filenames in dir3: I'm
> using the syntax tar -czf /path/to/store/myfile.tgz
> /the/path/where/are/the/files, any clue  Thanks...

cd /the/path/where/are/the/files
tar -czf /path/to/store/myfile.tgz .

--
Matt Emmerton

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


Re: hangs on boot

2002-12-31 Thread Matthew Emmerton
> When I try to send e-mails to the *freebsd mailing
> lists* from my *SMTP* also *ISP* e-mail account it
> never makes it to the list. I was able to send e-mails
> to the list at one point then all of a sudden I can't.
> What about the sendmail hang? Do you know how to stop
> it from hanging like that at boot?

Please email [EMAIL PROTECTED] to work out your email issues.

As for sendmail hanging, this is usually caused because there is no network
connection up and running and sendmail is trying to do a reverse-DNS lookup
on the local hostname.

--
Matt Emmerton


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



Re: installing software question

2002-12-31 Thread Matthew Emmerton
> When I install something from the ports collection, the makefile
> nicely generates a packing list so I can deinstall it at a later time.
>
> Is there an easy way to do this if I download some random tar file for
> which I would normally untar it, ./configure, and make install?
>
> In other words, I install something which is not in the ports
> collection manually, I'd like to generate a packing list so I can use
> pkg_delete to remove it.  Is there an easy way to do this?

The best way to do this is to create a port for the software you want to
install and get it added to the ports collection.
The porters handbook
(http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/index.htm
l) has detailed instructions on how to do this.

--
Matt Emmerton



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



Re: flashpluginwrapper question

2002-12-31 Thread Matthew Emmerton
> Hi,
>
> I downloaded the flashpluginwrapper by hand. You know,
> I went to the ftp server into the flashpluginwrapper
> directory and simply downloaded all files to a
> directory that I created on my box called
> /usr/ports/www/flashpluginwrapper/
> and now when I do a make I get
>
> >> flashpluginwrapper-0.20021113.tar.gz doesn't seem
> to exist in /usr/ports/dist
> files/.
> >> Attempting to fetch from
> ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfi
> les/petef/.
> Receiving flashpluginwrapper-0.20021113.tar.gz (4791
> bytes): 100%
> 4791 bytes transferred in 0.2 seconds (26.22 kBps)
> ===>  Extracting for flashpluginwrapper-0.20021113
> >> Checksum OK for
> flashpluginwrapper-0.20021113.tar.gz.
> ===>  Patching for flashpluginwrapper-0.20021113
> -e:No such file or directory
> *** Error code 1
>
> Stop in /usr/ports/www/flashpluginwrapper.
>
> Does anyone know what is going on? Is it saying that I
> don't have the patches? But that does not make sense
> because I would think all of the patches should have
> been provided in the skeleton code I downloaded.

The files you downloaded need to be placed in /usr/ports/distfiles, NOT
/usr/ports/www/flashpluginwrapper.

--
Matt Emmerton


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



Re: ata "fallback to PIO mode" on dual processor AMD systems

2002-12-31 Thread Matthew Emmerton
[ cc'ing Soren since he's the ATA guru ]

> I am seeing a problem with ata disks on 4 new systems, which
> I believe is either a bug in the ata driver, or a problem with
> the onboard IDE controller, or something else.  Systems are as follows:
>
> Motherboard: ASUS A7M266-D
> CPUs   : 2 x 2000+ AMD MP
> Memory : 2 x 512MB Crucial part: CT6472Y265
>
> Disks (all UDMA100):
>
> Master   Slave
> System 1:WDC WD400BB   WDC WD1000BB
> System 2:  WDC WD400BB WDC WD1000BB
> System 3:  WDC WD400BB WDC WD800BB
> System 4:  WDC WD400BB Maxtor 98196H8
>
> Kernel : 4.7-RELEASE, custom kernel (compared to GENERIC):
>
> commented out:
>
>  cpu   I386_CPU
>  cpu   I486_CPU
>
> enabled
>
>  options   SMP # Symmetric MultiProcessor Kernel
>  options   APIC_IO # Symmetric (APIC) I/O
>
>
> I am running a test with "dbench" (/usr/ports/benchmarks/dbench)
> with a script which runs:
>
>   dbench 1
>   sleep for 5 minutes
>   dbench 2
>   sleep for 5 minutes
>   dbench 3
>   ...
>
> to simulate 1,2,3... clients.
>
> The following has happened on systems 2,3 and 4, after about 15 hours
> of running the test:
>
> Dec 30 23:26:59 ecserv13 /kernel: ad0: WRITE command timeout tag=0
serv=0 -
> resetting
> Dec 30 23:26:59 ecserv13 /kernel: ata0: resetting devices .. done
> Dec 30 23:26:59 ecserv13 /kernel: ad0: WRITE command timeout tag=0 serv=0
> resetting
> Dec 30 23:27:00 ecserv13 /kernel: ata0: resetting devices .. done
> Dec 30 23:27:00 ecserv13 /kernel: ad0: WRITE command timeout tag=0 serv=0
> resetting
> Dec 30 23:27:00 ecserv13 /kernel: ata0: resetting devices .. done
> Dec 30 23:27:00 ecserv13 /kernel: ad0: WRITE command timeout tag=0 serv=0
> resetting
> Dec 30 23:27:00 ecserv13 /kernel: ad0: timeout waiting for cmd=ef s=d0
e=00
> Dec 30 23:27:00 ecserv13 /kernel: ad0: trying fallback to PIO mode
> Dec 30 23:27:00 ecserv13 /kernel: ata0: resetting devices .. done
>
> The test continues to run with the ata controller in PIO mode, with
> slower performance, and higher load average.
>
> Once the master drops to PIO, attempts to access the slave then cause
> it to drop to PIO.
>
> If I run:
>
>   atacontrol mode 0 UDMA100 UDMA100
>
> attempts to access either drive result in a delay until the controller
> drops to PIO, and then operations resume.  A soft reboot and things
> work in UDMA mode again.  Also tried UDMA33 and UDMA66 with no change.
> I also tried "atacontrol reinit 0" with no help.
>
> Theories when I search the web for "fallback to PIO mode" include:
>
>  - bad disks
>  - something to do with thermal recalibration
>
> I don't believe the problems are bad disks, as the slave drops to PIO
> after the master does, and I can't get in back to UDMA, other than by
> soft reboot.  Plus I see the problem on 6 of 8 disks.
>
> The problem is very repeatable.
>
> Can anyone offer any ideas, or suggest investigative steps ?  I have a
system
> in PIO mode right now.

The reason the slave drops to PIO after the master does is by design - the
master and slave have to use the same signalling mode since they're on the
same cable.  (People often report lackluster performance of fast UDMA hard
drives with non-UDMA CD-ROMs on the same channel.)

Are you using 80-conductor cables on all your drives?  These are required to
get consistent high throughput, and running without them may cause the
problems you're seeing.

--
Matt Emmerton


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



Re: flashpluginwrapper question

2002-12-31 Thread Matthew Emmerton
> > > Hi,
> > >
> > > I downloaded the flashpluginwrapper by hand. You
> > know,
> > > I went to the ftp server into the
> > flashpluginwrapper
> > > directory and simply downloaded all files to a
> > > directory that I created on my box called
> > > /usr/ports/www/flashpluginwrapper/
> > > and now when I do a make I get
> > >
> > > >> flashpluginwrapper-0.20021113.tar.gz doesn't
> > seem
> > > to exist in /usr/ports/dist
> > > files/.
> > > >> Attempting to fetch from
> > >
> > ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfi
> > > les/petef/.
> > > Receiving flashpluginwrapper-0.20021113.tar.gz
> > (4791
> > > bytes): 100%
> > > 4791 bytes transferred in 0.2 seconds (26.22 kBps)
> > > ===>  Extracting for flashpluginwrapper-0.20021113
> > > >> Checksum OK for
> > > flashpluginwrapper-0.20021113.tar.gz.
> > > ===>  Patching for flashpluginwrapper-0.20021113
> > > -e:No such file or directory
> > > *** Error code 1
> > >
> > > Stop in /usr/ports/www/flashpluginwrapper.
> > >
> > > Does anyone know what is going on? Is it saying
> > that I
> > > don't have the patches? But that does not make
> > sense
> > > because I would think all of the patches should
> > have
> > > been provided in the skeleton code I downloaded.
> >
> > The files you downloaded need to be placed in
> > /usr/ports/distfiles, NOT
> > /usr/ports/www/flashpluginwrapper.
> >
> > --
> > Matt Emmerton
>
>
> What? NO! I downloaded the skeleton. The tarball goes
> in the distfiles directory. Look see above. The
> tarball was correctly gotten an put into the distfiles
> dir.  No, I am ok with respect to that.
>
> Wayne

You should probably update your version of /usr/ports/Mk/bsd.port.mk then.
I have a feeling you're running an older version of the ports-base code
(bsd.port.mk) and the port skeleton you downloaded is too new to use with
what you have installed.

Is there any reason you're not using cvsup to keep your ports collection in
sync?

--
Matt Emmerton


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



Re: Limiting kernel core usage

2003-01-01 Thread Matthew Emmerton
> Hello,
>
> How do I stop my kernel from using a piece of core? I mean,
> if I have 32MB of memory, how do i make it to use only the
> low 16,for instance (not removing the chips themselves,though)?

I think setting MAXMEM in your kernel config file as follows will do what
you want.

optionsMAXMEM="(16*1024)"

>From the LINT kernel:

# MAXMEM specifies the amount of RAM on the machine; if this is not
# specified, FreeBSD will first read the amount of memory from the CMOS
# RAM, so the amount of memory will initially be limited to 64MB or 16MB
# depending on the BIOS.  If the BIOS reports 64MB, a memory probe will
# then attempt to detect the installed amount of RAM.  If this probe
# fails to detect >64MB RAM you will have to use the MAXMEM option.
# The amount is in kilobytes, so for a machine with 128MB of RAM, it would
# be 131072 (128 * 1024).

--
Matt Emmerton


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



Re: Sendmail waiting?

2003-01-02 Thread Matthew Emmerton
> >>My silly system ...  Using 4.6 RELEASE, 1.1G Athlon ABit KT7A VIA
> >>chipset - running FVCool permanently in idle mode to maintain
> >>CPU cool
> >>temperature.  The really silly bit is ...
> >>
> >>I don't switch off every day, but I have noticed that, on restart,
> >>loading sometimes waits "for ever" at "installing standard daemons"
> >>sendmail.  Last night the wait was 2 full minutes, and the effect was
> >>for me not to be able to get X and worse - "getty repeating
> >>too fast -
> >>sleeping for 30 seconds"  During that sleep, I could work from the
> >>console normally, but then the screen blanked and fluttered
> >>for several
> >>seconds before the sleeping phase was again reimposed.
> >>
> >>This morning - not expecting too much - I switched on and this time
> >>loading swept past sendmail without delay and everything is working
> >>normally again.
> >>
> >>I do not propose to switch off for some time.   :-)
> >>
> >>Q1.  Can anyone suggest any explanation for the sendmail-wait problem
> >>and subsequent horrors?
> >>Q2.  I am cvsupping and ready to update to the latest stable.
> >> Is this sound, and is it in any way likely to resolve my problem with
> >>v 4.6 RELEASE?
> >>
> >My experience is that if your network goes down or DNS cannot easily
> >resolve your name, sendmail will pause for a bit.  I believe installing
> >a caching(sp) name server on the box will probably help out.  I cannot
> >remember the command to install it, so check the archives, but it is
> >really simple.
> >
> > Michael K. Smith wrote:
> >
> >> Whenever I see that hang on sendmail it is due to a network
> >> failure.   Usually the machine cannot contact its IP default gateway.
> >
> Thanks, guys - but why would this be an intermittent problem?  And - why
> would it affect my access to X?  The Good Lord knows what was going on
> last night with the repeating getty! :-)
>
> Everything is just fine, now - my real problem is how can I keep it that
> way?  That of course requires my identifying the cause.
> One clue - I recently went broadband with an ADSL modem and that modem
> is set up as my default gateway.  It is a Netcomm NB1300.
>
> That caching name server idea sounds good. I will have a search on FBSD
> org for that.  That still wouldn't identify the cause, though.   :-(

I assume that your ADSL provider uses PPPoE -- how to you fire up your PPP
interface at boot?

I do this in /etc/rc.conf, which forces ppp to establish a connection before
progressing with the boot, which means that the net connection is up by the
time sendmail is started:

# PPP
ppp_enable="YES"
ppp_profile="HSE"
ppp_mode="ddial"

--
Matt Emmerton


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



Re: command host does not check /etc/hosts.

2003-01-02 Thread Matthew Emmerton
> Hi,
>
> Command host does not check /etc/hosts file. Is it a bug or normal
behavior?
> My sendmail could not deliver mail to localhost. I had to comment the
> following lines in the config file.
>
> # Resolve map (to check if a host exists in check_mail)
> #Kresolve host -a -T
> #C{ResOk}OKR
>
> My system:
>
> uname -a
>
> FreeBSD fb.homeunix.org 4.7-STABLE FreeBSD 4.7-STABLE #1: Tue Dec 31
> 21:29:27 MST 2002 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/BSD  i386
>
> I did some investigation:
>
>  start
> 
>
> bkn@fb /home/bkn> ktrace host localhost
> localhost.ab.hsia.telus.net has address 10.166.205.185
>
> ** end
> ***
>
>  start
> 
> bkn@fb /home/bkn> kdump | less
>
> ..
>   3032 host CALL  readlink(0x18120194,0xbfbff770,0x3f)
>   3032 host NAMI  "/etc/malloc.conf"
>   3032 host RET   readlink -1 errno 2 No such file or directory
>   3032 host CALL  mmap(0,0x1000,0x3,0x1002,0x,0,0,0)
>   3032 host RET   mmap 403931136/0x18138000
>   3032 host CALL  break(0x8896000)
>   3032 host RET   break 0
>   3032 host CALL  break(0x8897000)
>   3032 host RET   break 0
>   3032 host CALL  gettimeofday(0xbfbff3c8,0)
>   3032 host RET   gettimeofday 0
>   3032 host CALL  getpid
>   3032 host RET   getpid 3032/0xbd8
>   3032 host CALL  break(0x8898000)
>   3032 host RET   break 0
>   3032 host CALL  open(0x807bca2,0,0x1b6)
>   3032 host NAMI  "/etc/resolv.conf"
>   3032 host RET   open 3
>   3032 host CALL  fstat(0x3,0xbfbff2c0)
>   3032 host RET   fstat 0
>   3032 host CALL  break(0x889c000)
>   3032 host RET   break 0
>   3032 host CALL  read(0x3,0x8898000,0x4000)
>   3032 host GIO   fd 3 read 132 bytes
>"search ab.hsia.telus.net
> nameserver 216.123.198.243
> nameserver 209.115.152.130
> nameserver 209.115.131.51
> nameserver 209.115.152.150
>"
>   3032 host RET   read 132/0x84
>   3032 host CALL  read(0x3,0x8898000,0x4000)
>   3032 host GIO   fd 3 read 0 bytes
>""
>   3032 host RET   read 0
>   3032 host CALL  close(0x3)
>   3032 host RET   close 0
>   3032 host CALL  socket(0x2,0x2,0)
>   3032 host RET   socket 3
>   3032 host CALL  connect(0x3,0x8893770,0x10)
>   3032 host RET   connect 0
>   3032 host CALL  sendto(0x3,0xbfbef410,0x2d,0,0,0)
>   3032 host GIO   fd 3 wrote 45 bytes
>"\^P\M-%\^A\0\0\^A\0\0\0\0\0\0
> localhost\^Bab\^Dhsia\^Etelus\^Cnet\0\0\^A\0\^A"
>   3032 host RET   sendto 45/0x2d
> ..
> ** end
> ***
>
> Have a nice day.
>
> Konstaintin
>
>
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
>

Why does "localhost" resolve to 10.166.205.185?

localhost should always resolve to 127.0.0.1.  If it doesn't, something is
severely broken with your (or your ISP's) DNS setup.

--
Matt Emmerton


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



Re: ppp on freebsd 4.7 - disable ccp?

2003-01-03 Thread Matthew Emmerton
- Original Message -
From: "Lauri Ahonen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 03, 2003 9:06 PM
Subject: ppp on freebsd 4.7 - disable ccp?


> If I'm reading this logfile right trying to negotiate compression levels
> kills my connection.
> I got the connection working on windows by disabling software compression.
> Dns is static,
> so it's defined in resolv.conf. No ipv6 thank you
>
> (This is a GPRS connection, that's why the odd dial-in number and low com
> speed)
>
> -bash-2.05b$ ppp
> Working in interactive mode
> Using interface: tun0
> ppp ON libretto> set device /dev/cuaa0
> ppp ON libretto> set speed 57600
> ppp ON libretto> disable dns
> ppp ON libretto> disable ipv6
> ppp ON libretto> disable ipv6cp
> ppp ON libretto>  set log local phase lcp ipcp
> ppp ON libretto> term
> Phase: bundle: Establish
> Phase: deflink: closed -> opening
> Phase: deflink: Connected!
> deflink: Entering terminal mode on /dev/cuaa0
> Type `~?' for help
> Phase: deflink: opening -> carrier
> Phase: deflink: /dev/cuaa0 doesn't support CD
> Phase: deflink: carrier -> ready
> AT
> OK
> ATZ
> OK
> AT+CGDCONT=1,"IP","internet"
> OK
> ATDT*99***1#
> CONNECT
> Phase: deflink: PPP packet detected, coming up
> Phase: deflink: ready -> carrier
> Phase: deflink: carrier -> lcp
> LCP: FSM: Using "deflink" as a transport
> LCP: deflink: State change Initial --> Closed
> LCP: deflink: State change Closed --> Stopped
> ppp ON libretto> LCP: deflink: LayerStart
> LCP: deflink: SendConfigReq(1) state = Stopped
> LCP:  ACFCOMP[2]
> LCP:  PROTOCOMP[2]
> LCP:  ACCMAP[6] 0x
> LCP:  MRU[4] 1500
> LCP:  MAGICNUM[6] 0xd8c553ad
> LCP: deflink: State change Stopped --> Req-Sent
> LCP: deflink: RecvConfigNak(1) state = Req-Sent
> LCP:  ACCMAP[6] 0x000a
> LCP: deflink: SendConfigReq(2) state = Req-Sent
> LCP:  ACFCOMP[2]
> LCP:  PROTOCOMP[2]
> LCP:  ACCMAP[6] 0x000a
> LCP:  MRU[4] 1500
> LCP:  MAGICNUM[6] 0xd8c553ad
> LCP: deflink: RecvConfigAck(2) state = Req-Sent
> LCP:  ACFCOMP[2]
> LCP:  PROTOCOMP[2]
> LCP:  ACCMAP[6] 0x000a
> LCP:  MRU[4] 1500
> LCP:  MAGICNUM[6] 0xd8c553ad
> LCP: deflink: State change Req-Sent --> Ack-Rcvd
> LCP: deflink: RecvConfigReq(3) state = Ack-Rcvd
> LCP:  ACCMAP[6] 0x000a
> LCP:  PROTOCOMP[2]
> LCP:  ACFCOMP[2]
> LCP:  MAGICNUM[6] 0x7e8713c3
> LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x05)
> LCP: deflink: SendConfigAck(3) state = Ack-Rcvd
> LCP:  ACCMAP[6] 0x000a
> LCP:  PROTOCOMP[2]
> LCP:  ACFCOMP[2]
> LCP:  MAGICNUM[6] 0x7e8713c3
> LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x05)
> LCP: deflink: State change Ack-Rcvd --> Opened
> LCP: deflink: LayerUp
> LCP: deflink: SendIdent(0) state = Opened
> LCP:  MAGICNUM d8c553ad
> LCP:  TEXT user-ppp 3.1 (built Oct  8 2002)
> Phase: bundle: Authenticate
> Phase: deflink: his = CHAP 0x05, mine = none
> Ppp ON libretto> Phase: Chap Input: CHALLENGE (20 bytes)
> Phase: Chap Output: RESPONSE ()
> Phase: Chap Input: SUCCESS
> Phase: deflink: lcp -> open
> Phase: bundle: Network
> IPCP: FSM: Using "deflink" as a transport
> IPCP: deflink: State change Initial --> Closed
> IPCP: deflink: LayerStart.
> IPCP: deflink: SendConfigReq(1) state = Closed
> IPCP:  IPADDR[6] 127.0.0.1
> IPCP:  COMPPROTO[6] 16 VJ slots with slot compression
> IPCP: deflink: State change Closed --> Req-Sent
> PPp ON libretto> LCP: deflink: RecvProtocolRej(4) state = Opened
> LCP: deflink: -- Protocol 0x80fd (Compression Control Protocol) was
> rejected!
> IPCP: deflink: RecvConfigRej(1) state = Req-Sent
> LCP: deflink: SendIdent(1) state = Opened
> LCP:  MAGICNUM d8c553ad
> LCP:  TEXT user-ppp 3.1 (built Oct  8 2002)
> IPCP:  COMPPROTO[6] 16 VJ slots with slot compression
> IPCP: deflink: SendConfigReq(2) state = Req-Sent
> IPCP:  IPADDR[6] 127.0.0.1
> LCP: deflink: RecvTerminateReq(5) state = Opened
> LCP: deflink: LayerDown
> LCP: deflink: SendTerminateAck(5) state = Opened
> LCP: deflink: State change Opened --> Stopping
> Phase: deflink: open -> lcp
> IPCP: deflink: State change Req-Sent --> Starting
> IPCP: deflink: LayerFinish.
> IPCP: Connect time: 1 secs: 0 octets in, 0 octets out
> IPCP: 0 packets in, 0 packets out
> IPCP:  total 0 bytes/sec, peak 0 bytes/sec on Sat Jan  4 04:02:01 2003
> IPCP: deflink: State change Starting --> Initial
> Phase: bundle: Terminate
> ppp ON libretto> LCP: deflink: LayerFinish
> LCP: deflink: State change Stopping --> Stopped
> LCP: deflink: State change Stopped --> Closed
> LCP: deflink: State change Closed --> Initial
> Phase: deflink: Disconnected!
> Phase: deflink: Connect time: 132 secs: 289 octets in, 362 octets out
> Phase: deflink: 13 packets in, 10 packets out
> Phase:  total 4 bytes/sec, peak 129 bytes/sec on Sat Jan  4 04:02:03 2003
> Phase: deflink: lcp -> closed
> Phase: bundle: Dead
> ppp ON libretto>

Since you didn't ask a question, I assume you wanted to ask "how can I
disable software compression on FreeBSD"?

The answer is to add "disable vjcomp" to your ppp.conf file.

--
Matt Emmertno


To Unsubscribe: 

Re: Mysterious problem with ldconfig and ld

2003-01-03 Thread Matthew Emmerton
> This may be a very simple fix, but so far I've found no solution.  Just
> installed expat-1.95.5 in a FreeBSD 4.4 machine.  The install went fine,
> and I verified that ldconfig had picked up the library:
>
> host# ldconfig -r | grep expat
> 73:-lexpat.4 => /usr/local/lib/libexpat.so.4
>
> However, I need to install other packages that require the expat
> library, and the configuration fails stating that the expat library
> cannot be found.  In fact, just a simple test fails:
>
> host# ld -lexpat
> /usr/libexec/elf/ld: cannot find -lexpat

How about ld -L/usr/local/lib -lexpat?  Works fine here:

gabby# ld -L /usr/local/lib -lexpat
/usr/libexec/elf/ld: warning: cannot find entry symbol _start; not setting
start address
/usr/local/lib/libexpat.so: undefined reference to `memmove'
/usr/local/lib/libexpat.so: undefined reference to `memcpy'
/usr/local/lib/libexpat.so: undefined reference to `malloc'
/usr/local/lib/libexpat.so: undefined reference to `realloc'
/usr/local/lib/libexpat.so: undefined reference to `memset'
/usr/local/lib/libexpat.so: undefined reference to `free'
gabby#

If some programs can't find it, it's probably because /usr/local/lib isn't
in their search path.

--
Matt Emmerton


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



Re: utility that measure electricty usage?

2003-01-04 Thread Matthew Emmerton
> i know there is something you can put on the socket to measure how much
> current is being drawn... but i was wondering if there was some utility
> that i could install on my server to measure the power usage for the
> server?  i'd like to make a chart to see if this device is really
> impacting the electricity bill.

You can find out the worst-case scenario by hand:

1) Take the wattage of the power supply of the system (ie P = 300W)
2) Determine the amount of time this server operates per month (ie t = 24
hours x 31 days = 744 hours)
3) Compute kWh:  P / 1000 * t = 300 / 1000 * 744 = 223.2 kWh

In my neck of the woods, electricity costs 4.9 cents per kWh, so my one
server costs me $11.16/month to run.

Of course, you should also take into account the power used by things like
monitors, printers, and network equipment.

--
Matt Emmerton


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



Re: how can I filter on subject with sendmail 8.12.6?

2003-01-04 Thread Matthew Emmerton
> # [EMAIL PROTECTED] / 2003-01-03 20:48:18 -0500:
> >
> > we're having a problem with some cracker using addresses
> > harvested from whois and the "abuse/www/webmaster" with
> > domains they get from the database. The mail appears to
> > come from us but it cannot as the addresses are oneway incoming
> > only.
> >
> > the subject is always
> >
> > "XXX templates"
>
> filtering on subject might help in short term, but it's not the
> right answer IMO.
>
> > It claims its advertising for www.liquid2d.com,
> > their website says:
> >
> > "
> > Liquid 2D is being attacked by a group calling itself the 'asian WAREZ
> > crackers' who are trying to disrupt our business. They are sending out
> > massive amounts of spam mail to anger people and are using open mail
> > servers to send it out.
>
> your email mentions at least three hooks that are better suited for
> weeding out spam, and will help you generally, not just against
> these losers.
>
> Also, I don't use Sendmail, so you'll have to transform this into
> the m4 configuration; Postfix configuration is very readable.
>
> 1. it's not clear whether "The mail appears to come from us" means
> that the envelope sender address has your domain or it's just the
> From: header. If it's the latter you can employ some header check,
> which means you'll have to accept the message first, but envelope
> sender check are easy:
>
> smtpd_sender_restrictions =
> permit_mynetworks
> ...
> check_sender_access hash:/usr/local/etc/postfix/spammers
> permit
>
> /usr/local/etc/postfix/spammers contains (among others):
>
> bellavista.cz 554 Stick it up your nostril, liar
>
> 2. the statement you cited says the spammers abuse open relays.
> you probably don't want to accept any mail from such MTAs anyway:
>
> maps_rbl_domains =
> bl.spamcop.net
> relays.osirusoft.com
> relays.ordb.org
> list.dsbl.org
> sbl.spamhaus.org
>
> smtpd_client_restrictions =
> ...
> reject_maps_rbl
> ...
>
> 3. while you might not want to use this for your regular (business
> related) user accounts, addresses like hostmaster@ can be quite
> easily protected from spam by TMDA or qsecretary.

The simple solution if you're running sendmail is to install
mail/p5-Mail-SpamAssassin and mail/procmail.  It checks for known hooks,
verifies headers and checks for mail servers that are in the various RBLs.
I've been using it for 2 weeks and only had one false positive.

--
Matt Emmerton



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



Re: ports that never get updated

2003-01-04 Thread Matthew Emmerton
> Certain ports, such as audio/csound audio/normalize and net/amcl, have
> had updates sitting in the PR database for months now. Is there any way
> I can convince a committer to even glance at these?

ports-related questions are best asked on freebsd-ports; I've cc'd them on
this message.

The main reason your PRs haven't seen any action is because the ports
collection was frozen for the better part of December to get ready for the
upcoming 5.0-RELEASE.

In the past few days I've seen hundreds of ports commits; perhaps yours will
be next?

--
Matt Emmerton


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



Re: Redirecting root's email

2003-01-06 Thread Matthew Emmerton
[ dah!  Don't top-post! ]
> >
> > I'm not a big Sendmail expert or anything, but do you even
> > have the MTA
> > process running? Can you successfully telnet localhost.visimation.com
> > port 25? What sendmail related lines do you have in /etc/rc.conf?
> > --
> > Toomas Aas | [EMAIL PROTECTED] |
> > http://www.raad.tartu.ee/~toomas/
> > * All wiyht.  Rho sritched
> > mg kegboawd awound?
> >
> Yes, I have the Sendmail Process running.  Telnet to port 25 of
> localhost.visimation.com gives this:
> Forcefield# telnet localhost.visimation.com 25
> Trying 127.0.0.1
> Connected to locahost.visimation.com.
> Escape character is '^]'.
> 220 forcefield.visimation.com ESMTP Sendmail 8.12.6/8.12.6; Mon, 6 Jan
> 2003 16:50:15 -0800 (PST)
>
> I really wish I could get this working.  It seems like such a simple
> thing, and my installation was pretty much straight-out-of-the-box from
> the Standard installation.

Usually to redirect root's email, you edit /etc/mail/aliases to have an
entry that looks like this:

root:matt

and then run 'newalises' for it to take effect.  If you want to redirect
root's email to a non-local mailbox, then you have to make an entry in
/etc/mail/virtusertable, like this:

root[EMAIL PROTECTED]

and then 'cd /etc/mail' and 'make' which will do the trick.

--
Matt Emmerton


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



Re: Cisco Aironet PCI card - Supported ?

2003-01-09 Thread Matthew Emmerton
They also work on -CURRENT too.

Matt Emmerton

- Original Message -
From: "Trevor S. Cornpropst" <[EMAIL PROTECTED]>
To: "Wayne Pascoe" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, January 09, 2003 10:20 PM
Subject: Re: Cisco Aironet PCI card - Supported ?


> The Cisco PCI 350 Aironet cards definitely work with the an driver. I am
currently running them on FreeBSD-STABLE with no problems.
>
> Trevor Cornpropst
>
> On 09 Jan 2003 16:42:38 +
> Wayne Pascoe <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
> >
> > Does anyone know if the Cisco Aironet 350 series PCI card works under
> > FreeBSD-STABLE ?
> >
> > From what I can see in GENERIC and LINT, it looks like the 4500/4800
> > is supported as device an.
> >
> > Anyone know for sure though?
> >
> > TIA,
> >
> > --
> > - Wayne Pascoe
> > Win if you can. Lose if you must. But
> > always cheat!
> >
> >
> > To Unsubscribe: send mail to [EMAIL PROTECTED]
> > with "unsubscribe freebsd-questions" in the body of the message
>
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
>


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



Re: newbie questions about pppoe and netgraph

2003-01-11 Thread Matthew Emmerton
> attempting to run pppoe on freebsd 4.7 over cable/dsl connection.
>
> manual says kernel recompilation unnecessary for this release in
> order to run pppoe. however, netgraph does not seem to be loading at boot
> time. additionally, pppoe seems unable to get past lcp when connecting.
>
> how can i tell if netgraph is active after boot? if not, can netgraph
> modules be loaded at boot by adding necessary lines into loader.conf? or
> is recompiling kernel a preferred method?

If netgraph and pppoe support are not present in your kernel (or not loaded
from modules automatically), the ppp program will complain loudly.

Can you post part of your ppp log file so that we can determine if the lack
of pppoe is your problem or if it's something else?

--
Matt Emmerton



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



Re: newbie questions about pppoe and netgraph

2003-01-11 Thread Matthew Emmerton
> What does your ppp.conf look like?  For PPPoE, it you should have a line
> like this:

[ dang email client ]

set device PPPoE:ed1

where ed1 is the network card that is hooked up to your DSL modem.

>
> --
> Matt
>
> >
> > www# /usr/sbin/ppp
> > Working in interactive mode
> > Using interface: tun0
> > tun0: Command: default: add default HISADDR
> > tun0: Command: default: enable DNS
> > tun0: Command: default: set ifaddr 10.0.0.1/0 10.0.0.0/2 255.255.255
> > 0.0.0.0
> > tun0: Command: default: set authname **
> > tun0: Command: default: set authkey **
> > tun0: Command: default: set login
> > tun0: Command: default: set dial
> > tun0: Command: default: set timeout 0
> > tun0: Command: default: open
> > tun0: Phase: bundle: Establish
> > tun0: Phase: closed -> opening
> > tun0: Phase: PPP started (interactive)
> > tun0: Phase: deflink: Connected!
> > tun0: Phase: deflink: opening -> dial
> > tun0: Chat: deflink: Dial attempt 1 of 1
> > tun0: Phase: deflink: dial -> carrier
> > ppp ON www> tun0: Phase: deflink: Disconnected!
> > tun0: Phase: deflink: carrier -> hangup
> > tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
> > tun0: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Sat Jan 11
> > tun0: Phase: deflink hangup -> closed
> > tun0: Phase: bundle: Dead
> >
> > i imagine that some of this is unnecessary, but it appears that i am not
> > even getting to authentication before disconnecting.
> >
> > thank you
> >
> > stephen
> >
> > On Sat, 11 Jan 2003, Matthew Emmerton wrote:
> >
> > >> attempting to run pppoe on freebsd 4.7 over cable/dsl connection.
> > >>
> > >> manual says kernel recompilation unnecessary for this release in
> > >> order to run pppoe. however, netgraph does not seem to be loading at
> boot
> > >> time. additionally, pppoe seems unable to get past lcp when
connecting.
> > >>
> > >> how can i tell if netgraph is active after boot? if not, can netgraph
> > >> modules be loaded at boot by adding necessary lines into loader.conf?
> or
> > >> is recompiling kernel a preferred method?
> > >
> > >If netgraph and pppoe support are not present in your kernel (or not
> loaded
> > >from modules automatically), the ppp program will complain loudly.
> > >
> > >Can you post part of your ppp log file so that we can determine if the
> lack
> > >of pppoe is your problem or if it's something else?
> > >
> > >--
> > >Matt Emmerton
> > >
> > >
> > >
> > >To Unsubscribe: send mail to [EMAIL PROTECTED]
> > >with "unsubscribe freebsd-questions" in the body of the message
> > >
> >
>
>
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
>


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



Re: Installing new versions of GCC

2003-01-27 Thread Matthew Emmerton
> Greetings-
> 
> I'm a pretty new user of FreeBSD and I've enjoyed every minute of it so
> far.  
> 
> I'm trying to update gcc via the package/ports system, but I've had a
> few problems.
> 
> 'pkg_add -r gcc'
> 
> Results in a error message that the file is unavailable.  This make
> sense, because the package it's looking for
> (ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4.7-release/Latest/gcc.
> tgz) does not exist.
> 
> I downloaded the ports package (/usr/ports) and went into the /lang/gcc
> directory.  I first tried 'make.'  That ran for awhile, but when it
> finished, gcc still reported version '2.95.4.'  After that, I realized I
> should run 'make install.'  That ran for awhile, but in the end, when I
> ran gcc -v I still got this message-
> 
> Using builtin specs.
> gcc version 2.95.4 20020320 [FreeBSD]
> 
> I'd like to be using 3.2 so I'd be using the same compiler as my
> University's server. I could get the source from GNU and install that,
> but I'm trying to utilize the FreeBSD Package/ports system as much as
> possible.
> 
> Am I missing something?? Is there something else I should try?

Upgrade to 5.0-RELEASE if you're daring -- it includes GCC 3.2.1 (IIRC).

--
Matt Emmerton

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



Re: Installing new versions of GCC

2003-01-27 Thread Matthew Emmerton
> Wow, Thanks for all of the responses.
>
> First off, that was a typo in my original email.
>
> I was running make in /usr/ports/lang/gcc32.
>
> Now, I tried a few things.  I ran 'make clean' to start over, 'make',
> 'make deinstall', and then 'make install'.
>
> When that's done, I end up with gcc32 (and g++32, etc) in
> /usr/local/bin.
>
> So, THAT appears to be working alright.  However, the original gcc
> (etc.) remain in /usr/bin.

As would be expected.  If you plan on recompiling your kernel, you need to
have the "system gcc" around or else things will get screwy.

If you want to compile using gcc32, just use gcc32 intead of gcc.  To get
configure to use your new compile, do this:

./configure CC=gcc32 CXX=g++32

--
Matt Emmerton


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



Re: fouled up cvsup

2003-01-30 Thread Matthew Emmerton
> I thought I understood cvsup till I did it.. After running cvsup all
> my ports collection was deleted... accept ports I had already
> installed.  I wanted to avoid installing ANY ports untill I had
> cvsuped the collection.
>
> How can I leave ports not yet installed, alone in the collection?
>
> advice please?
> ==
> here's my cvsupfile
> ==
>
> *default release=cvs
> *default host=cvsup10.freebsd.org
> *default base=/usr/local/etc/cvsup
> *default prefix=/usr
> *default delete
> *default compress
> *default tag=RELENG_4_7
> *default use-rel-suffix
> src-all
> ports-all
> doc-all

ports and docs don't use the RELENG_x_y tagging convention.  What you really
want is something like this:

src-all tag=RELENG_4_7
ports-all tag=.
doc-all tag=.

You can leave out the tag on src-all since it will use the default from
above, but it's absolutely neccessary to have tag=. on ports-all and
doc-all.

--
Matt Emmerton


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



Re: Verizon DSL+PPPoE

2003-01-31 Thread Matthew Emmerton
> I remember seeing this posted about a year ago, but I couldn't google
> it
>
> one my business server, I run Verizon DSL and PPPoE.  I setup it up
> like with the example they used on Freebsddairy.
>
> the problem I ran into, after about 1 week is that the connection just
> died.  everything is lit up, no log entries in the ppp.log.  the only
> solution was a 'killall ppp' and restarting in about a minute later,
> and everything is fine...
>
> however, after i did that, I noticed my IP changed.  whereas i've
> closed the connection b4 and reopened it and got the same IP.  Does
> this have something to do with ppp not accepting a renewed DHCP IP
> address?

PPP doesn't use DHCP; you're confusing two technologies.

Whether or not you get the same IP after dropping your connection depends
entirely upon your provider.  Some providers will keep recently-dropped IPs
around for some period of time so that you can get the same IP back when you
reconnect, but others won't.

In most cases, PPPoE service with dynamic IPs are not designed for hosting
servers (which is the only case where you'd need a static IP).  If this is
allowable by your AUP, I'd look into using a commercial DNS service that can
let you auto-update your IPs when they change.  My personal choice is
ZoneEdit (http://www.zoneedit.com).

--
Matt Emmerton


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



Re: Tomcat's dogging me...

2003-02-02 Thread Matthew Emmerton
> Hi,
>
> Okay, after many hours I have tomcat installed and I can connect to it's
> webserver. Unfortunately, I want to connect to to Apache and have it hand
> off the requests to tomcat.
> Here's the background and the most current glitches...
>
> FreeBSD 4.7-RELEASE
> Jakarta-Tomcat 4.1.12
> Apache 2.0.43
> jdk1.2.2
> mod_jk-3.3-ap20.so // does this even work with tomcat 4??
>
> ...and probably other things that I already forgot about.
>
> Okay, after adding the following lines to my httpd.conf,
>
> LoadModule jk_module libexec/apache2/mod_jk-3.3-ap20.so
> AddModule mod_jk.c # why is this here? Isn't this compile-time stuff?
> JkWorkersFile /usr/local/jakarta-tomcat/conf/workers.properties
> JkLogFile /usr/local/apache/logs/mod_jk.log
> JkLogLevel info
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
>
> when I try to start apache, I get:
>
> Syntax error on line 277 of /usr/local/etc/apache2/httpd.conf:
> Cannot load /usr/local/libexec/apache2/mod_jk-3.3-ap20.so into server:
> Shared object "libc.so.6" not found
>
> The catch is libc.so.6 is on the system. The mod_jk that I got was the
> binary, and I got it as binary on the recommendation of the documentation
> on jakarta.apache.org. It's my guess, that the binary doesn't know where
> to look for the shared object.

Run 'ldconfig -r' to get the current list of cached shared objects.  If
libc.so.6 isn't there, then you've got your explanation.

However, there is a bigger problem -- where the heck did you get libc.so.6
from?  FreeBSD doesn't have one of these -- FreeBSD 4.x has libc.so.4 and
FreeBSD 5.x has libc.so.5.

--
Matt Emmerton


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



Why won't linux_base install for me?

2003-02-02 Thread Matthew Emmerton
I'm running 4.7-R with a recent (~1 week) ports tree, and the install of
linux_base is failing for me.

root@gabby# make install
===>  Installing for linux_base-7.1_2
kern.fallback_elf_brand: 3 -> 3
glibc-common-2.2.4-31.i386.rpm
glibc-2.2.4-31.i386.rpm
execution of glibc-2.2.4-31 script failed, exit status 0
*** Error code 1

This this is all RPM gunk, I have no idea how to figure out what is failing.

Does anyone have any tips?

--
Matt Emmerton


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



Re: Apache built correctly?

2003-02-05 Thread Matthew Emmerton
> On Wednesday, February 05, 2003 10:31 AM [EMAIL PROTECTED]
 wrote:
>
> > "Mike Loiterman" <[EMAIL PROTECTED]> writes:
> >
> >>
> >> On Tuesday, February 04, 2003 9:11 AM [EMAIL PROTECTED]
> >>  wrote:
> >>
> >>> "Mike Loiterman" <[EMAIL PROTECTED]> writes:
> >>>
>  Absolutly nothing appears in the httpd-access.log file when I try
>  to access the index.html.
> 
>  When I try to do http://localhost I get nothing.  Just this:
>  unable to connect to remote host.
> 
>  I've restarted apache many times with the same results.  I
>  restarted my machine with the same results.
> 
>  I can telnet into port 80 but Apache doesn't appear to answer.
>  Something tells me that the daemon isn't running correctly or that
>  Apache was installed incorrectly, although 'ps -aux | grep httpd'
>  shows:
> >>>
> >>> What does "doesn't appear to answer" mean?  The fact that you can
> >>> telnet in tells you that it isn't a network-layer issue.  Did you
> >>> try a legitimate HTTP request?
> >>
> >> Well I telnet to 80 and it just says refused:
> >>
> >> [02:22:47 root@little_boy: /etc/mail]# telnet localhost 80 Trying
> >> 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused
> >> telnet: Unable to connect to remote host
> >
> > Ah.  So you *can't* telnet into port 80.  That's different.
> > Use sockstat(1) to see if anything is bound to port 80, and look at
> > firewall rules to see if something's blocking it before it gets there.
>
> [13:41:19 root@little_boy: /etc/mail]# sockstat | grep 80
> www  httpd  30322 3  tcp6   *:80  *:*
> www  httpd  30321 3  tcp6   *:80  *:*
> www  httpd  30320 3  tcp6   *:80  *:*
> www  httpd  30319 3  tcp6   *:80  *:*
> www  httpd  30318 3  tcp6   *:80  *:*
> root httpd  30309 3  tcp6   *:80  *:*
>
> Hrmm...seems to be bound to thr right ports???  I'm not sure how to check
the firewall rules, as this machine is already behind a firewall.  Even so,
wouldn't the http://localhost bypass any firewall stuff?

It's bound to the right ports, but it's only listening on the IPv6
address -- not the IPv4 address.  I'm not sure what the fix for this is, but
this has been discussed on the list recently -- check the archives.

--
Matt Emmerton


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



Re: OT: razor-agent.log vanishing

2003-02-09 Thread Matthew Emmerton

> Louis LeBlanc wrote:
> > On 02/09/03 02:53 PM, Per olof Ljungmark sat at the `puter and typed:
> >
> >>Dear all,
> >>
> >>FreeBSD 4.6.2-p4+postfix 1.11+SA 2.44+Razor-agents 2.22
> >>
> >>Nobody at razor-users or SA-Talk seems to know so I thought I give
> >>it a try here.
> >>
> >>I have a problem understanding how to configure the razor-agent.log.
> >>On two mail servers running FreeBSD 4.6.2 and OpenBSD 3.2 I
> >>experience same issue: razor-agent.log stops logging for some reason
> >>(probably me). Razor is called from Spamassassin.
> >>
> >>Everything else works fine, SA, Razor2 checks, postfix etc. are all
> >>without a problem but razor-agent.log is completely empty even if
> >>Razor does what it should.
> >>
> >>Permissions are checked ok Paths are checked ok I have read all the
> >>applicable man pages I ran razor-admin with applicable options
> >>razor-agent.conf seems ok with correct log settings There are no
> >>errors generated anywhere Razorhome is properly configured
> >>
> >>SA is 2.44, but have seen same behaviour with 2.41 and 2.43 Razor
> >>2.22 from 2.20, same thing
> >>
> >>I have simply ran out of options here, could somebody offer a clue
> >>on where to start?
> >
> >
> > I have been trying to resort my mail configuration to include
> > spamassassin, running from procmail as the recipient to allow per-user
> > whitelists and blacklists.  So I've been hitting razor around the
> > perimiter myself.  The logfile location is one I haven't quite been
> > able to get locked down either, but check ~/.razor/ and see if it
> > shows up there.
> >
> No, it's not there, in fact it is nowhere.  is in
> /var/spool/filter/.razor/ where everything else *except* the log (which
> is clearly defined in razor-agent.conf) shows up proper. It used to
> work, then vanished, then after running razor-admin it came back only to
> dissappear again, and I'm clueless :-(

On my SA/Razor machine, every user who gets mail has a .razor directory in
their home directory (ie, /home/matt/.razor).  There is no Razor "global"
log file on my machine.

--
Matt Emmerton


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



Re: 5.0 on Compaq Evo 610c notebook - no way?

2003-02-10 Thread Matthew Emmerton

When the system boots and displays its "Hit [Enter] to boot immediately, or
any other key for command prompt" prompt, hit space to get to a bootloader
prompt.

Then type this in:

set hint.acpi.0.disabled=1
boot

You system will then boot with ACPI disabled.

You will need to do this on every successive boot until you can edit the
/boot/device.hints file and disable ACPI permanently.

Matt

- Original Message -
From: "Willie Viljoen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 8:00 AM
Subject: Re: 5.0 on Compaq Evo 610c notebook - no way?


> It sounds to me like the Evo has a problem with its ACPI functions,
> reporting a temperature that is well outside the bounds of what any system
> should be able to handle.
>
> The best thing I can think of would be to compile a bare kernel without
ACPI
> support on another system and create a boot disk with it. Also make sure
to
> make an MFSROOT disk to get sysinstall running, from there on, you will be
> able to install from the CD-ROM.
>
> Will
>
> On Sunday 09 February 2003 20:58, Jenisch Ewald wrote:
> > Hi,
> >
> > I'm having serious trouble with setting up FreeBSD 5.0-Release on a
> > Compaq Evo 610c-notebook.
> >
> > First of all, here's my configuration:
> >
> > Compaq Evo 610c notebook - ROM family 68P4F
> > System-Bios: 1/17/2003 (latest available)
> > RAM: 1GB
> > HD: 40GB
> > DVD/CD-RW
> > Display: 1400x1050
> > NIC: Intel Pro/100 builtin
> > Modem: Lucent internal modem,
> > Synaptics touchpad and pointstick
> > Graphics: ATI Radeon Mobility 7500 AGP(LW) 32MB
> >   Bios 6.0.0 VR006.004.006.008-001.001.001
> >   350MHz DAC
> >
> >
> > Now for the problem:
> >
> > I run FreeBSD-setup from a CD obtained from the ISO-image (5.0-RELEASE).
> > Upon booting the system runs into a
> > loop like the following:
> >
> > First of all the "acpi.ko" ist loaded
> > Then after some messages I see
> > acpi_cpu: CPU throttling enabled, 8 steps from 100% to 12.5%
> > acpi_tz0: WARNING - current temperature (1331362.0C) exceeds system
> > limits followed by
> > ACPI-1287 *** Error: Method execution failed, AE_AML_NO_RETURN_VALUE
> > with the latter one repeated dozen of times
> >
> > The system seems to run into a loop with the messages "acpi_tz0..."
> > and "ACPI-1287..." repeated forever. The only way to "cure" the
> > problem is to completely turn off power!
> >
> > I don't even come to the point where the system starts up in order to
> > install something... :-(
> >
> >
> >
> > So here are my questions:
> >
> > 1) Has anybody else seen this before?
> >
> > 2) What can I do against it? (I *really* want to have FreeBSD running
> >on that box - "going back to Windoze" is no option for me)
> >
> > 3) To me it looks like ACPI doesn't work - any ways to turn it of in
> >the FreeBSD-installation? (no way to turn it of in the system BIOS -
> >I've already checked this)
> >
> > TIA for your help,
> > -ewald
> >
> >
> > To Unsubscribe: send mail to [EMAIL PROTECTED]
> > with "unsubscribe freebsd-questions" in the body of the message
>
> --
> Willie Viljoen
> Freelance IT Consultant
>
> 214 Paul Kruger Avenue, Universitas
> Bloemfontein
> 9321
> South Africa
>
> +27 51 522 15 60
> +27 51 522 44 36 (after hours)
> +27 82 404 03 27 (mobile)
>
> [EMAIL PROTECTED]
>
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
>


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



Re: rc.conf syntax for ip alias on external nic

2003-02-10 Thread Matthew Emmerton

All aliases on the same subnet need to use a netmask of 255.255.255.255, as
described in the ifconfig man page.

This is what you should be doing:

ifconfig_xl0="inet 129.x.x.35 netmask 255.255.255.0"
ifconfig_xl0_alias0="inet 129.x.x.6 netmask 255.255.255.255"
ifconfig_xl0_alias1="inet 129.x.x.5 netmask 255.255.255.255"

Matt

- Original Message -
From: "Redmond Militante" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 12:13 PM
Subject: rc.conf syntax for ip alias on external nic

hi

i have the following lines in my rc.conf, and i was wondering if my syntax
was ok:

---
#here, i'm setting the ip/subnet mask for outside nic interface for a dual
homed gateway box
ifconfig_xl0="inet 129.x.x.35 netmask 255.255.255.0"

#declaring three network interfaces - outside nic interface for gateway,
internal interface for private subnet, and loopback
network_interfaces="xl0 xl1 lo0"

#not sure about the following lines: trying to alias two public ip's to the
outside nic interface for the gateway.  the gateway will use ipnat to nat
these public ip's to two internal client machines hooked up to the internal
interface - xl1- of the gateway box
ifconfig_xl0_alias0="inet 129.x.x.6 netmask 255.0.0.0"
ifconfig_xl0_alias1="inet 129.x.x.5 netmask 255.0.0.0"

#inside nic of gateway box
ifconfig_xl1="inet 192.168.1.1 netmask 255.0.0.0"
---

i'm having trouble i think with the two aliases to the outside nic of the
gateway.  it works fine when i have only one client hooked up to the
gateway, but when i have both clients hooked up to the gateway through a
hub, i have problems - mainly, i reboot both machines, and one machine
usually freezes on reboot.

any advice would be really appreciated

thanks
redmond


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



Re: apache frontpage question

2003-02-10 Thread Matthew Emmerton
> If I want to support the MS frontpage extentions I need to install
> "www/apache13-fp" and "www/frontpage" from ports (as I understand).
> I do not understand the warning in the (ports) message, stating that
> libcrypt.* needs to be linked against libdescrypt.* insteadof
> libscrypt.* My question is: how can I be sure this will be true?
> Do I need to recompile some libcrypt things too or will this be done by
> the ports of apache/frontpage?
>
> Another question is: how safe is supporting the FP extentions these
> days?

It's not, and probably never will be.

You have to change the libcrypt symlinks (manually) to point to libdescrypt;
this may break some other things on the system.

--
Matt


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



Console messages from ahc0 - how serious are they?

2002-09-19 Thread Matthew Emmerton


I'm running 4.4-REL on a bunch of older systems with onboard Adaptec 7870
controllers and recently I've been getting lots of console output from one
of them.  I'm pretty sure it means that one of my drives is dying (which
I've suyspected for a while), but I'm just curious as to what the messages
really mean, and if I can determine the bad drive just from the messages.

The dmesg information (hardware probes):

ahc0:  port 0xf800-0xf8ff mem
0xffbef000-0xffbe irq 11 at device 11.0 on pci0
aic7870: Wide Channel A, SCSI Id=7, 16/255 SCBs
da0 at ahc0 bus 0 target 0 lun 0
da0:  Fixed Direct Access SCSI-2 device
da0: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queuing Enabled
da0: 2049MB (4197405 512 byte sectors: 64H 32S/T 2049C)
da1 at ahc0 bus 0 targer 4 lun 0
da1:  Fixed Direct Access SCSI-CCS device
da1: 3.300MB/s transfers
da1: 1033MB (2117025 512 byte sectors: 64H 32S/T 1033C)
da2 at ahc0 bus 0 target 6 lun 0
da2:  Fixed Direct Access SCSI-2 device
da2: 10.000MB/s transfer (10.000MHz, offset 15), Tagged Queueing Enabled
da2: 4340MB (543 512 byte sectors: 64H 32S/T 4340C)

The console error messages:

(da0:ahc0:0:0:0): BDR message in message buffer
(da0:ahc0:0:0:0): SCB 0xe - timed out
ahc0: Dumping Card State in Data-in phase, at SEQADDR 0x7a
< snip dump data >
(da0:ahc0:0:0:0): no longer in timeout, status = 34b
ahc0: Issued Channel A Bus Reset.  3 SCBs aborted

I get these kinds of errors on da0, da1 and da2.  However, I only see this
message on da1:

(da1:ahc0:0:4:0): Unexpected busfree in Data-in phase

Is this the error that triggers off all the bus reset (and subsequent
timeouts and aborts)?  Should i look at replacing da1 real soon now?

--
Matt Emmerton



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



Re: PPP, dynamic IPs, and handling renumbering

2002-09-29 Thread Matthew Emmerton


> On Sun, 29 Sep 2002, Louis LeBlanc wrote:
>
> > I can't even find the dhcp lease or the network broadcast info.  When
> > I was with AT&T, it was basic DHCP and it all went into
> > /var/db/dhclient.leases.  The only place I can get the IP from now is
> > ifconfig tun0
>
> [...]
>
> You are not getting your address via DHCP, as you are using PPP which
> does its own address negotiation.  One of these days I will understand
> the point of running PPP over ethernet...

The point is that established ISPs have everything hooked into the
server-side PPP authentication mechanism - billing, IP assignment (dynamic
for Joe User, static /32 for customer A who pays, static /28 for the local
small business customers) and goodness knows what else.

So for these ISPs, the easiest way of deploying DSL for these ISPs is via
PPPoE, as it uses the same back-end to administer things and just a
different set of link-layer hardware.  Yes, the extra features of PPP
(framing, error correction, etc) are really just overhead, but it's a
tradeoff of "best administrative solution" vs "best technical solution".

The cable providers, OTOH, did it right - use the modem as a bridge, and use
DHCP for IP allocation and MAC addresses for user identification.

--
Matt Emmerton




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



Re: Phoenix browser problems

2002-10-08 Thread Matthew Emmerton

> Hi all,
>
> Has anyone gotten Phoenix to work in FreeBSD?  I'm running: FreeBSD
4.6-STABLE
> #0: Mon Aug  5 01:39:14 EDT 2002.  When I follow the install & run
directions
> for the Linux version I get:
>
> ./phoenix-bin: error while loading shared libraries: libgtk-1.2.so.0:
cannot
> open shared object file: No such file or directory
>
> When I try to symlink to /usr/X11R6/lib/libgtk12.so I get:
>
> ./phoenix-bin: error while loading shared libraries: ./libgtk-1.2.so.0:
ELF
> file OS ABI invalid
>
> Any ideas why Linux emulation is failing in this instance?

Probably because you're asking a Linux executable to use a FreeBSD shared
library.

--
Matt Emmerton


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



Re: ISO CDROM Image for Freebsd4.7

2002-10-09 Thread Matthew Emmerton

- Original Message -
From: "Martin McCormick" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 09, 2002 11:08 AM
Subject: ISO CDROM Image for Freebsd4.7


> After looking through the FreeBSD web site, I am not sure
> if there is not presently an ISO image for a new 4.7 CDROM or if
> I just missed it?

4.7 has yet to be officially released, but should be in a very short while.
When it is released, ISO images will be available.

--
Matt Emmerton


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



Re: ASUS P4S533 on-board LAN

2002-10-09 Thread Matthew Emmerton

> I recently bought a machine with an ASUS P4S533 motherboard,
> and FreeBSD 4.6 does not see the on-board LAN connection at
> boot-up time.  (Yes, it is enabled in the BIOS.)
>
> Must I buy a separate LAN card, or is there a way to get the
> on board connection to work?
>
> Thanks in advance.

Can you provide us the dmesg output that shows what FreeBSD is seeing?  I'm
betting that it's seeing a 'sis' internet device but is spewing out an error
about the PHY.

--
Matt Emmerton


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



Re: SAP DB on FreeBSD

2002-10-25 Thread Matthew Emmerton
> Mike,
>
> > I would assume that SAP DB would work as well under Linux emulation,
> > but it would be cool if a native FreeBSD port effort was underway.
> > However, with 6000+ source files it sounds like a monster to port.
>
> The Handbook from 4.6 says that it runs under Linux; I've never tried it
> but it's under the section called "The Cutting Edge". I would assume
> that 4.7 hasn't broken it.
>
> My question would be, if it runs as (or almost as efficiently) under
> Linux emulation then why port such a huge project [apart from the
> obvious reason "because we can"]?

There really isn't any reason, unless we feel we can make it perfom better
in native FreeBSD mode than Linux mode.

However, getting to this point may well be an exercise in futility.  A long
time ago (when it was first announced, IIRC) I spent a fair bit amount of
time bending my head around the excessively Linux-centric SAPDB code
(everything from pathnames to #includes) and just gave up, because it was
much easier to just "give up" and run it under the Linuxulator.

Furthermore, a FreeBSD-native port is only really useful if SAP is willing
to adopt the patches and our feedback, which I doubt, since that implies
some form of support.

--
Matt Emmerton


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



Re: Install FreeBSD 4.4 into EXTENDED Partition

2002-10-26 Thread Matthew Emmerton
> In installation programm of FreeBSD 4.4 I have select extended partition,
FreeBSD said, that
> this partition will be deleted (TOGETHER WITH LINUX NATIVE AND SWAP
PARTITIONS!).
>
> How can I do something like this:
>
>
>


> |   |EXTENDED  |   |
|
> |Primary (FAT32)|--|Primary
(FAT32)|Primary (FAT32)|
> |   |Linux native|linux Swap|FreeBSD Slince|   |
|
>


>
> Surely I have backup the first sector 512 bytes information and may
experiment, but...

Unless I'm mistaken, FreeBSD cannot use DOS Extended partitions for disk
space.

--
Matt Emmerton


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



Re: gateway_enable="YES" without a restart

2002-11-03 Thread Matthew Emmerton
> Hi,
> I'm new to FreeBSD, I've had my box running for about 3-4 weeks now.
Anyway
> I've decided to enable it as a gateway by editing the /etc/rc.conf file. I
> previously had it running as a gateway but I commented the
> gateway_enable="YES" line. Now I want to uncomment this line so it routes
my
> traffic, but I don't want to actually restart my box because its got a 17
> day uptime, and I want to see how high I can get it, and the past 17 days
> would of been wasted if I reboot :)
>
> Sorry if this sounds a bit lame, but I'm trying to beat my 21day uptime on
> Windows 2k. So what command could I type, or which process could I
> kill/restart so that my box will function as a gateway?

sysctl -w net.inet.ip.forwarding=1

> I had a quick scan through the man page on rc.conf, but didn't find
anything
> of relevance, but I did find many other useful lines I might add to my
> rc.conf file later (just to play around with)..
>
> Anyway I'll be very gratefull if someone could tell me how to keep this
> uptime :)
> thanks
> Andrew
>
>
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
>


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



Re: SUPPORTED HARDWARE

2002-11-04 Thread Matthew Emmerton
> Here is my problem:  I have an HP NetServer LC that I
> cannot get FreeBSD to recognize the CD-ROM (it is a
> Toshiba), the SCSI adapter is an AIC-7770.  I have
> purchased the FreeBSD book and have tried the
> following:
> increased the SCSI settling time to 30 secs (as per
> the book), moved the SCSI id from 2 to 5, moved the
> device on the SCSI cable.  When I do a dmesg the
> CD-ROM appears to be recognized, but it states the
> media cannot be read (there is a cd in the tray).
> What do you need from me to help me with this?

A copy of the dmesg (bootup information) would be useful.  This is in
/var/log/dmesg.*, and also is output from the 'dmesg' command.

Matt


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



Re: Cleaning up /]

2002-11-05 Thread Matthew Emmerton
> I need some help. I'm not a complete newbie but I'm new enough to not
> know which files are actually needed in my / filesystem.
>
> my current df -k shows
>
> Filesystem  1K-blocks   UsedAvail Capacity  Mounted on
> /dev/ad0s1a100750  82898 979289%/
> /dev/ad0s1g  10080382 766404  8507548 8%/usr
> /dev/ad0s1h  15421366  26432 14161226 0%/usr/home
> /dev/ad0s1e201518   3332   182066 2%/var
> /dev/ad0s1f   2015918144  1854502 0%/var/mail
> procfs  4  40   100%/proc
>
> and I am aware that if / gets to 100% the system has a good chance of
> crashing.
>
> how can I tell what files can be removed in order to free up some space?

In a properly-configured system, the files in / shouldn't change (nor should
new files be added), so / should should stay at 89% used indefinitely.

By default, user home directories are in /usr/home (which has lots of free
space), and system logs and mail are in /var (which also has lots of space.)

> and/or how can i tell which files are the largest and need to be
addressed?

I wouldn't delete any files from / unless you're 110% sure that they're not
needed.

--
Matt Emmerton


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



Re: PHP4 install problems

2002-11-06 Thread Matthew Emmerton
> Hi all
>
> I am trying to install mod_php4 on my FreeBSD 4.7 server (with Apache
2.0.43).

I believe all of the mod_xxx ports are only designed to work properly with
the Apache 1.3.x family of web servers.

> When I install php with firebird I get a error in the firebird
installation
> process, so I try without firebird. Now I get:
> Configuring SAPI modules
> checking for AOLserver support... no
> checking for Apache 1.x module support via DSO through APXS... configure:
> error: Use --with-apxs2 with Apache 2.x!
> ===>  Script "configure" failed unexpectedly.
>   Please report the problem to [EMAIL PROTECTED] [maintainer] and
attach
> the
>   "/usr/ports/www/mod_php4/work/php-4.2.3/config.log" including the
> output
>   of the failure of your make command. Also, it might be a good idea
> to
>   provide an overview of all packages installed on your system (e.g.
> an `ls
>   /var/db/pkg`).
> *** Error code 1
>
> Stop in /usr/ports/www/mod_php4.
> *** Error code 1
>
> I have added --with-apxs2 to Makefile and also Makefile.inc, but it
doesn't
> help (I have also tried make clean and then add --wthi-apxs2 before make
> install).
>
> Hope someone can help.
>
> br
> socketd
>
>
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
>

Matt


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



Re: Network Card question

2002-11-13 Thread Matthew Emmerton
> Greetings,
> I have Freebsd 4.7-release installed on my computer.  The ISP just came
and
> installed
> DSL and provided a Allied Telesyn simple ethernet PCI NIC (PN
AT-2400T-001).
>
> Freebsd did not recoginize it on boot.  How do I get FreeBSD to recognize
> this card, so
> I can start using my DSL ?

You should see an  message when you boot.  What is that
message?

--
Matt Emmerton


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



Re: Error code 1 in make depend (kernel)

2002-11-13 Thread Matthew Emmerton
> Hello,

> I wanted to compile my newly reconfigured kernel and the make command
cannot
> finish. An error interrupts it. What is wrong?

What is the error message?

--
Matt Emmerton


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



Re: restore question

2002-11-13 Thread Matthew Emmerton
> > On Wed, 13 Nov 2002, Mark wrote:
> >
> > > Worse even, how do I safely restore the "/" filesystem? (should it
ever
> > > become corrupted).
> >
> > The last time I needed to do that, I booted to the Fixit system
> > on CD2 and used the tools there to newfs/restore from backup.
>
> But what to do if you did your dumps to tape and the fixit disk does not
> have the right tapedriver?
> one would like to be able to restore the tape-dumps...

I've run into a problem like this before.  What I ended up doing was just
doing a bare-bones network install on the system without newfs'ing the file
systems, brought the system up and built a custom kernel with the right
drivers, rebooted and then was able to clean up from the mess.

> You build a custom boot disk with a custom kernel (Handbook). That's what
I
> tried. But: the MINI kernel doesn't fit on the disk, and I stripped it
> a -lot- :(   (my 4.7 MINI kernel is still about 1.2M with ATA-tape
drivers)

If you post your MINI kernel, I'm sure someone could find something to
remove that would save space.

Making a general statement, I've seen people trying to make custom boot
disks for rescue purposes but keeping things like usb support, smp support,
or netgraph stuff around.  Although this stuff may normally be in the custom
kernel used on the machine, it's usually never neccessary for rescue
purposes.

--
Matt Emmerton


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



Re: www.freebsd.org link broken!

2002-11-14 Thread Matthew Emmerton
> On Thu, Nov 14, 2002 at 04:14:38PM +1100, Jacob Rhoden wrote:
>
> > Currently if you try the 'send a bug report' on www.freebsd.org, it
reports
> > permission denied!! To be precise:
> >
> >   You don't have permission to access /send-pr.html on this server
> >
> > I would submit a bug report to notify people that the bug report page
doesnt
> > work, but well *grin*
>
> That's deliberate I'm afraid.  Some unsociable nitwit was submitting
> dozens of bogus PR's and flooding various mailing lists.

Could we not change the send-pr page to say "sorry, this service has been
temporarily discontinued.  Please use send-pr(1) on your system instead."

--
Matt Emmerton


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



Re: Aging Apple LaserWriter

2002-11-21 Thread Matthew Emmerton
> Hello,
> I could not find what I want to know doing the ususal perusals.
> I have the chance to pick up an aging Apple Laserwriter 16/600 that
> supports PS2 .. I assume (hope) that this would work trouble-free on
> FreeBSD. It has parallel port and ethernet connections.
>
> (I know you have to make provision for plain-text, but I am more
> interested in using it to print larger PostScript files).
>
> Word on the street is that any PS printer should work on FBSD.
> True ?

True enough.  With ghostscript + apsfilter + magicfilter, anything is
possible.

--
Matt Emmerton


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



Re: Interesting modem problem

2002-11-22 Thread Matthew Emmerton
> Hi all, I'm running into a rather interesting modem problem with one of my
> boxes.  Just installed an external 28.8k modem for faxing onto it (and the
> occasional PPP when needed) and I can't seem to find the port the modem is
> on.  It's currently connected to the parallel/LPT port, but I'm unsure how
> to tell PPP where to find it or what device/port/etc. that it's on.
>
> How do I find out where my modem is (kinda like windows autodetect) and
> what port it's on?  Thanks.

Modems need to be connected to serial ports, not parallel ports.

--
Matt Emmerton


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



Re: Cracker attack...is my system compromised?

2002-11-25 Thread Matthew Emmerton
> On to my question:
>
> The past few days have seen some strange activity in my log files.

You're freaking out at "normal" error messages.

> 11/25/2002 Security Report:
> 25 02:14:46 fat_man sendmail[16217]: gAP8Ekh16217: SYSERR: putoutmsg
> (www.nakorinthias.gr): error on output channel sending "220
> fat_man.ascendency.net ESMTP Sendmail 8.11.6/8.11.6; Mon, 25 Nov 2002
> 02:14:46 -0600 (CST)": Broken pipe

All this means is that www.nakorinthias.gr dropped a SMTP session without
aborting or closing first.  This usually occurs when the connection times
out or gets dropped.

> 11/24/2002 Security Report
> > 44:59 fat_man last message repeated 2 times
> > Nov 23 16:23:03 fat_man sshd[80281]: warning: /etc/hosts.allow,
> > line   23: host name/name mismatch: www.craftworks.co.jp !=
> > ns.craftworks.co.jp Nov 23 16:24:32 fat_man sshd[80292]: warning:
> > /etc/hosts.allow, line 23: host name/name mismatch:
> > www.craftworks.co.jp != ns.craftworks.co.jp

This means that a host listed in /etc/hosts.allow doesn't resolve to the
same name forwards and backwards.  This is a DNS problem with
[www|ns].craftworks.co.jp.

> > arp: 192.168.1.1 moved
> > from 00:04:5a:20:6e:b7 to 00:06:25:92:58:f5 on ep0 Nov 23 16:27:53
> > fat_man /kernel: arp: 192.168.1.1 moved from 00:04:5a:20:6e:b7 to
> > 00:06:25:92:58:f5 on ep0 arp: 192.168.1.2 moved from
> > 00:01:03:20:2f:75  to 00:06:25:10:e0:03 on ep0 Nov 23 16:57:41
> > fat_man /kernel: arp:  192.168.1.2 moved from 00:01:03:20:2f:75 to
> > 00:06:25:10:e0:03 on ep0  arp: 192.168.1.2 moved from
> > 00:06:25:10:e0:03 to 00:01:03:20:2f:75 on  ep0 Nov 23 17:00:17
> > fat_man /kernel: arp: 192.168.1.2 moved from
> > 00:06:25:10:e0:03 to 00:01:03:20:2f:75 on ep0 arp: 192.168.1.4
> > moved  from 00:06:25:10:e0:03 to 00:80:c6:fa:9f:21 on ep0 Nov 23
> > 18:24:50 fat_man /kernel: arp: 192.168.1.4 moved from
> > 00:06:25:10:e0:03 to
> > 00:80:c6:fa:9f:21 on ep0 arp: 192.168.1.4 moved from
> > 00:80:c6:fa:9f:21 to 00:06:25:10:e0:03 on ep0 Nov 23 18:25:05
> > fat_man /kernel: arp: 192.168.1.4 moved from 00:80:c6:fa:9f:21 to
> > 00:06:25:10:e0:03 on ep0 arp: 192.168.1.4 moved from
> > 00:06:25:10:e0:03 to 00:80:c6:fa:9f:21 on ep0 Nov 23 18:27:51
> > fat_man /kernel: arp: 192.168.1.4 moved from 00:06:25:10:e0:03 to
> > 00:80:c6:fa:9f:21 on ep0 arp: 192.168.1.4 moved from
> > 00:80:c6:fa:9f:21 to 00:06:25:10:e0:03 on ep0 Nov 23 18:31:39
> > fat_man /kernel: arp: 192.168.1.4 moved from 00:80:c6:fa:9f:21 to
> > 00:06:25:10:e0:03 on ep0

This means that you've got one machine (192.168.1.4) with two network cards
plugged into the same hub.  These messages are FreeBSD saying "hey, traffic
for this IP came from one NIC (00:06:25:10:e0:03) and now it's coming from
another (00:80:c6:fa:9f:21).".  This is a problem with your network setup.

> 11/23/2002 Daily run report
> fat_man.ascendency.net group diffs:
> 16a17
> > cyrus:*:60:daemon
> 30d30
> < cyrus:*:60:daemon
>
> Whats going on here?

Have you cvsup'd -STABLE lately and run mergemaster, or have you
reinstalled/upgraded the mail/cyrus port?  This was discussed on -stable not
too long ago.

> I just changed most of my passwords and changed the root password to
> an 18 digit alpha numeric string.  I have SMTP-AUTH on and working
> all relays have been turned off.  I checked my /etc/hosts, groups,
> passwd as well as "last" and everything appears to be secure.  I have
> restricted sshd to only one particular IP.  Firewalled off all
> unnecessary ports and removed everything possible from hosts.allow.
> I'm running 8.11.6 sendmail, but can't find the version of ssh.  Do I
> need to do anything else?  This appears to be a program running
> various probes to determine my systems security level.  Am I wrong?

It's nice to see that you've tightened up security, but you're freaking out
wy too much.  All of this is just "normal" error logging.

--
Matt


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



Re: PPP and NAT, this time.

2002-11-26 Thread Matthew Emmerton
> To whom it may concern:
>
> Thanks to all responses regarding my previous problem.  The issue was
> resolved and our box is connected to our DSL line completely and
correctly.
>
> We completely remade our ppp.config, and it looks as follows:
>
> default:
>  ident user-ppp VERSION (built COMPILATIONDATE)
>  set log Phase Chat IPCP CCP tun command
>
> adsl:
>  set authname our_username
>  set authkey our_password
>  add default HISADDR
>  set device !"pppoa2 -vpi 8 -vci 35 -v 1"
>  accept pap
>  set speed sync
>  set timeout 0
>  enable lqr
>  set lqrperiod 5
>  set redial 15 1
>  set dial ""
>  set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
>  enable dns
>
> This works beautifully.  Now, another problem we believed would be simple
to
> solve, but it isn't quite so.  We have a network card in the FreeBSD
machine
> with IP address 192.168.1.3.  It is connected to a Windows 98 machine with
> IP address 192.168.1.1.The Windows 98 machine's TCP stack is
completely
> configured and operational (it can ping the FreeBSD machine and vice
versa;
> we are using a crossover cable to connect the two).   We want to enable
NAT
> on the FreeBSD machine to allow the Windows 98 machine access to the
> Internet via the FreeBSD box.
>
> We have done the following to accomplish this:
>
> 1)  Built a custom kernel with options IPDIVERT and IPFIREWALL
>
> 2)  Enabled the machine to act as a gateway in rc.conf
> (gateway_enable="YES")
>
> 3)  Enabled natd in rc.conf (nat_enable="YES")
>
> 4)  Changed natd interface to "tun0" (our interface for ppp)
> (natd_interface="tun0")
>
> 5)  Enabled named, so Win98 can resolve names using the FreeBSD box
> (named_enable="YES")
>
> 6)  Created rc.firewall with the following lines:
>
> /sbin/ipfw -f flush
> /sbin/ipfw add divert natd all from any to any via tun0
> /sbin/ipfw add pass all from any to any
>
> 7)  Enabled the firewall in rc.conf (We compiled kernel with
DEFAULT_ACCEPT
> option)
>
> 8)  Created rc.local to initialise the USB Alcatel Hometouch on startup:
>
> modem_run -f /usr/local/libdata/mgmt.o -m
>
> 9)  We manually connect doing the following:
>
> ppp -ddial -nat adsl
>
> It connects succesfully and the FreeBSD box is on the net.
>
> 10)  The Win98 machine can ping IP addresses outside the LAN and our ISP
> (i.e. it can ping the IP of www.google.com), but it cannot resolve domain
> names, nor access IP addresses of web sites (i.e. we used www.hawaii.edu
's
> IP address, and the web server could not be found, yet it is accessible by
> IP address from elsewhere)
>
> 11)  We attempt to manually start natd on the FreeBSD box:
>
> natd -interface tun0
>
> 12)  Same problem as # 10, no change.
>
> Going with info given in reply to my previous problem, does a default
route
> for the 192.168.1.0 network need to be configured?
>
> Again, any help is greatly appreciated.

If you're running ppp with the -nat flag, don't run ipfw/natd.  The two
mechanisms are mutually exclusive.  I would recommend sticking with
'ppp -nat', so you can eliminate steps 3,4,6,7 and you don't need to run
with a custom kernel (IPDIVERT, IPFIREWALL).

As for step 5 (enabling named), this will only work as you intend if you've
configured named to forward all requests to your ISP's DNS server, like the
following:

options {
directory "/etc/namedb";
forwarders
{
209.226.175.224;// Sympatico DNS 1
198.235.216.110;// Sympatico DNS 2
};
};

--
Matt Emmerton


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



Re: Unexpected Soft Update Inconsistency / Cannot Read: Blk

2002-11-29 Thread Matthew Emmerton
> On Fri, 29 Nov 2002, Vinco Maldini wrote:
>
> > 1) What does the result below mean? (Is my drive failing? Why can't I
> > clean the FS?)
> >
> [ ... snip ... ]
> > CANNOT READ: BLK 152744928
> > UNEXPECTED SOFT UPDATE INCONSISTENCY
> [ ... snip ... ]
> >
> > THE FOLLOWING DISK SECTORS COULD NOT BE READ: 152744946,
> [ ... etc, etc, snip ... ]
> >
>
> Were there any kernel messages displayed on the consoles (the bright white
> text)?  If you don't have console access, run the /sbin/dmesg command.  If
> you see any ad2 read errors from the console, then you likely have a bad
> drive.  On the other hand, if you don't see any errors being reported by
> the kernel, then the "CANNOT READ" errors are probably just caused by
> incompleted meta-data writes to the drive.  However, "THE FOLLOWING DISK
> SECTORS COULD NOT BE READ" makes me think it is a hardware problem.
>
>
> > 2) Are there any BSD tools for reading the SMART data off the Hard Disk
> > so that I can see whether it is about to fail or currently experiencing
> > HW failure. Any other ways to check for bad sectors?
>
> I thought that someone asked this same questions a few days ago, but I
> can't find it in the archives.  I'm honestly not sure if anything like
> that is available.  Searching the FreeBSD site did not yield any results.
> My best suggestions is to check google.

Or check with [EMAIL PROTECTED]  If there was something like this out there,
he'd know :)

--
Matt Emmerton


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



Re: denied packet, where?

2002-12-19 Thread Matthew Emmerton
> How quaint! Today, one of the (standard) daily security scripts returned
> this:
>
> test-server denied packets:
> test-server kernel log messages:
> >  1 READY ad6: 39205MB  [79656/16/63] at ata3-master
> UDMA133
>
> I take it that had to go to /var/log/messages? Which would mean I am
> inadvertently blocking a packet. Well, pardon my daftness, but what port
> would that be blocked on then? I checked /var/log/security, but that is
> empty. If it were an ipfw issue, I think it would have wound up in
> /var/log/security, right?

Yes.  But you're not denying any packets.  The lack of any lines of data
between "test-server denied packets:" and "test-server kernel log messages"
indicates that no packets were denied.

> I am kinda worried about this, because maybe my kernel is trying to tell
me
> one of the disks in my RAID 1 failed, and came back on line. If so, I
would
> like to know about this.

The only thing it's telling you is that drive ad6: came back online
(probably due to a soft error or timeout of some sort.)  This message should
also be found in /var/log/messages.

--
Matt Emmerton


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



Re: Help With Custom Kernel

2002-12-20 Thread Matthew Emmerton
Please read the comments in the kernel config file:

device  umass   # Disks/Mass storage - Requires scbus and da

You need to have 'device scbus' and 'device da' in your kernel to enable USB
mass storage (umass) support.

--
Matt Emmerton

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 21, 2002 12:25 AM
Subject: Help With Custom Kernel


> I am building a custom kernel so I can use my sound card.
> I am building it the ``traditional'' way. And when I type
> the second make comand It ends with the fallowing:
>
>  -include opt_global.h -elf  -mpreferred-stack-boundary=2
> vers.c
> linking kernel
> umass.o: In function `umass_cam_attach_sim':
> umass.o(.text+0x137f): undefined reference to
> `cam_simq_alloc'
> umass.o(.text+0x13a5): undefined reference to
> `cam_sim_alloc'
> umass.o(.text+0x13be): undefined reference to
> `xpt_bus_register'
> umass.o(.text+0x13ce): undefined reference to
> `cam_simq_free'
> umass.o: In function `umass_cam_rescan_callback':
> umass.o(.text+0x13e7): undefined reference to
> `xpt_free_path'
> umass.o: In function `umass_cam_rescan':
> umass.o(.text+0x1431): undefined reference to `xpt_periph'
> umass.o(.text+0x143a): undefined reference to
> `xpt_create_path'
> umass.o(.text+0x144d): undefined reference to
> `xpt_setup_ccb'
> umass.o(.text+0x1468): undefined reference to `xpt_action'
> umass.o: In function `umass_cam_detach_sim':
> umass.o(.text+0x151f): undefined reference to
> `xpt_bus_deregister'
> umass.o(.text+0x153d): undefined reference to
> `cam_sim_free'
> umass.o: In function `umass_cam_detach':
> umass.o(.text+0x157e): undefined reference to
> `xpt_create_path'
> umass.o(.text+0x159f): undefined reference to `xpt_async'
> umass.o(.text+0x15a7): undefined reference to
> `xpt_free_path'
> umass.o: In function `umass_cam_action':
> umass.o(.text+0x18c5): undefined reference to `xpt_done'
> umass.o(.text+0x18d5): undefined reference to `xpt_done'
> umass.o: In function `umass_cam_cb':
> umass.o(.text+0x19d1): undefined reference to `xpt_done'
> umass.o: In function `umass_cam_sense_cb':
> umass.o(.text+0x1ad8): undefined reference to `xpt_done'
> umass.o(.text+0x1ae9): undefined reference to `xpt_done'
> umass.o(.text+0x1b03): more undefined references to
> `xpt_done' follow
> *** Error code 1
>
> Any help would geratly be appreceated.
>
>
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
>


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



Re: Refusing Connections

2002-12-21 Thread Matthew Emmerton

Does 'sockstat' show that httpd is listening on port 80?

Matt

- Original Message -
From: "Jimi Thompson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 22, 2002 12:53 AM
Subject: Refusing Connections


> OS - 5.0 RC2
> Apache - 2.0.43
> OpenSSL - 0.9.6g
>
> I'm having a rather odd problem and I can't quite put my finger on it.   I
> can verify that the apache httpd is running but I am unable to connect to
> the box on port 80.
> I verified that httpd.conf specifies port 80.  I've verified that the
> firewall is disabled.  I can connect on other ports so I know that the
> network settings are working properly.If someone could point out what
> I'm missing, I'd really appreciate it.  I have a feeling that it's going
to
> be a "DOH!" momemt.
>
> Thanks,
>
> Ms. Jimi Thompson
>
> Those who are too smart to engage in politics are punished by being
governed
> by those who are dumber. - Plato
>
>
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
>


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



Re: Why is there no JFS?

2003-02-12 Thread Matthew Emmerton
> Thus spake Daxbert <[EMAIL PROTECTED]>:
> > The inspiration for this email was from a thread in
> > -questions: "Re: fsck takes very long after crash/reset"
> >
> > Is anybody currently working on or does there exist
> > a JFS for FreeBSD?

Various people (including myself and Hiten Pandya) have done work to port
the GPL'd JFS implementation, but there's one ugly problem -- the GPL.

We can make JFS into a kernel module (avoiding the static-link policy of the
GPL), but then it can only (legally) be used on non-root filesystems, as the
code to read the root filesystem must be statically linked into the kernel.
This in itself makes JFS support somewhat pointless.

This is the same reason why XFS and ReiserFS haven't been ported -- the GPL
prevents us from statically linking the code into the kernel, hence we can't
support booting from any XFS/JFS/ResierFS filesystems.

--
Matt Emmerton


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



Re: SAPDB port for FreeBSD

2003-02-13 Thread Matthew Emmerton
> Hello FreeBSD gurus,
>
> I was surprised; there are no SAPDB (www.sapdb.org) in
> http://www.freebsd.org/ports/databases.html list!
> Has someone tried to install SAPDB on FreeBSD? Is it possible to create
new
> port?

I tried about a year or so ago, but gave up.  The SAPDB "build tools" are
extremely Linux-centric (they expect a LSB-compliant filesystem layout, and
it's next to impossible to trick it, as paths are hardcoded everywhere).
Furthermore, the actual SAPDB product is again, Linux-centric and has all
the warts that one would expect.

I eventually gave up and just ran it in Linux emulation -- much less effort
than making a FreeBSD port.

--
Matt Emmerton


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



Re: SAPDB port for FreeBSD

2003-02-15 Thread Matthew Emmerton
On Fri, 14 Feb 2003, taxman wrote:

> On Friday 14 February 2003 03:30 am, Matthew Emmerton wrote:
> > > I was surprised; there are no SAPDB (www.sapdb.org) in
> > > http://www.freebsd.org/ports/databases.html list!
> > > Has someone tried to install SAPDB on FreeBSD? Is it possible to create
> > new port?
> >
> > I tried about a year or so ago, but gave up.  The SAPDB "build tools" are
> > extremely Linux-centric (they expect a LSB-compliant filesystem layout, and
> > it's next to impossible to trick it, as paths are hardcoded everywhere).
> > Furthermore, the actual SAPDB product is again, Linux-centric and has all
> > the warts that one would expect.

Actually, I just took another look at this and things seems to be a bit
less hairy than they were when I first looked at it.  (For example, it
uses autoconf now.)

--
Matt Emmerton

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



Re: multi-port serial IO support

2003-02-19 Thread Matthew Emmerton
> The hardware page on freebsd.org seems pretty skimpy on multi-port
> serial IO support. The Stallion refers to some unsupported driver,
> however stallion doesn't seem to have such a driver.
> 
> Can anyone suggest a reliable multi-port serial system which has
> native support for FreeBSD (without the linux compat module) ?

Digi products are supported natively.

--
Matt Emmerton

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



Re: C scale using /dev/speaker

2003-02-19 Thread Matthew Emmerton


> Hi,
> what is proper syntax for coaxing C major scale out of  /dev/speaker?
TIA.
> Dave

To play C major scale, starting at middle C, do this:

cat "o3cdefgabo4c" > /dev/speaker

man spkr(4) for more details.

--
Matt Emmerton



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



Re: C scale using /dev/speaker

2003-02-19 Thread Matthew Emmerton
Yes.  It's been a LONG day.


> 
> did you mean
> echo "o3cdefgabo4c" > /dev/speaker
> ?
> 
> On Wednesday 19 February 2003 10:14 pm, Matthew Emmerton wrote:
> > > Hi,
> > > what is proper syntax for coaxing C major scale out of  /dev/speaker?
> >
> > TIA.
> >
> > > Dave
> >
> > To play C major scale, starting at middle C, do this:
> >
> > cat "o3cdefgabo4c" > /dev/speaker
> >
> > man spkr(4) for more details.
> 

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



Re: Root Kits?

2003-02-20 Thread Matthew Emmerton
> We've done a freash installation of FreeBSD 5.0 on our
> system, downloaded a root kit checker from
> www.chkrootkit.com & found that a few things were
> infected.  The files include chfn, chsh, date, ls, and
> ps.  We made sure the system was compleatly isolated by
> installing from the cd's & burning the root kit checker
> to cd & installing it from there.
>
> If you could let me know if this is an error on the root
> kit checker or something else is causing it to look
> infected, that'd be great.

It doesn't support FreeBSD 5.0 yet.

>From http://www.chkrootkit.com/:

chkrootkit has been tested on: Linux 2.0.x, 2.2.x and 2.4.x, FreeBSD 2.2.x,
3.x and 4.x, OpenBSD 2.6, 2.7, 2.8, 2.9, 3.0, 3.1 and 3.2, NetBSD 1.5.2 and
Solaris 2.5.1, 2.6 and 8.0.

--
Matt Emmerton


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



Re: The web-based bug interface is currently disabled.

2003-03-02 Thread Matthew Emmerton
> On Sun, Mar 02, 2003 at 12:48:58PM -0500, Bill Moran wrote:
> > Pedro F. Giffuni wrote:
> > >>No, FreeBSD dislikes moronic skript kiddies spamming
> > >>the PR database.
> > >
> > >OK, I'm screwed :(. It's difficult to find committers
> > >interested in my ports (math/cad stuff) anyway. I
> > >guess I'll just keep'em for myself for some more time.
> >
> > Or you could consider helping find a way to re-enable
> > the www to send-pr while preventing script kiddies from
> > abusing it.

Why not have a "pr-moderator" for each category (i386, kern, doc, etc), who
approves each incoming PR.  Basically this person would act as a front-line
defense against spammers, but it would also allow them to assign PRs to
developers as they are submitted, rather than letting them sit in the PR
database for weeks/months before anyone picks them up.

--
Matt Emmerton


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


Re: Growing / shrinking a file system

2003-03-06 Thread Matthew Emmerton

- Original Message -
From: "Murray Taylor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 12:54 AM
Subject: Growing / shrinking a file system


> I've found growfs and looked at tunefs--- is there a utility to shrink a
> partition so that I can give the space to another one

No.

> [EMAIL PROTECTED](/sbin)ttyp1 > df -h
> FilesystemSize   Used  Avail Capacity  Mounted on
> /dev/ad0s1a97M41M48M46%/
> /dev/ad0s1f17G   1.8G14G11%/usr
> /dev/ad0s1e19M   7.9M   9.9M44%/var
> procfs4.0K   4.0K 0B   100%/proc
>
> This is the current disk stats ... NB this disk was setup using auto
sizing
> from the install CD (poss miscalculation??)

Auto-sizing is not perfect for everyone, especially people running large
mail servers or database servers which require lots of space in /var.

> We need to reallocate space from ad0s1f and give it to ad0s1e
> preferably with out rebuilding the machine.
>
> I am thinking of paxing /var to /usr/var, then unmounting /var
> and symlinking /usr/var to /var as an interim step

What is your main consumer of space in /var?

One trick I've often done is create a /usr/var2 directory, move stuff from
/var into /usr/var2 (such as /var/log and /var/mail) and then symlink the
directories from /var over to /usr/var2.

> But I would like them to remain on separate better sized slices

Then your only choice is to backup, re-splice and restore.

--
Matt Emmerton


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


Re: New Device inphy0??

2003-03-09 Thread Matthew Emmerton

- Original Message -
From: "Rod Person" <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Sent: Sunday, March 09, 2003 6:34 PM
Subject: New Device inphy0??


> I looked at my dmesg output today and it seems that 4.8-prerelease is now
picking up my built in Broadcom Ethernet card.
>
> I now have this entry in demesg:
>
> inphy0:  on miibus0
> inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
>
> I tried to switch my ppp.conf to use this device to connect to my DSL. NO
LUCK :(
>
> So I checked LINT and even the MAKEDEV entries and see no such device
listed anywhere? Is it possible to use this device? If so how.
>
> TIA
>
> Rod

The inphy0 device is just one-half of a ethernet device, specifying the
physical layer controller (which is often separate from the interface to the
system).  You should have a network card identified just above this (such as
fxp0, bge0, etc.)  It is this ethernet device which you should reference in
your ppp.conf to enable your PPPoE DSL.

--
Matt Emmerton


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


Re: Linksys WMP11, ca. 2003.

2003-03-10 Thread Matthew Emmerton

- Original Message -
From: "Aaron Benner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 10, 2003 2:54 PM
Subject: Linksys WMP11, ca. 2003.


> I'm trying to coerce a new Linksys WMP11 802.11b card into working on a
> FreeBSD install of 4.7-RELEASE.   In looking through the freebsd-mobile
> lists I've seen some discussion on this (from around this time last
> year), but all of the resources included in that discussion
> (particularly the patches to the wi driver) are out of sync with the
> kernel sources I've got.  I just cvsup'd 4.x-STABLE and -current and
> didn't manage to find either the vendor ID or device ID reported in
> dmesg in the driver code there.  I was wondering if anyone out there
> could give me an update on support for this wireless card?  The posts
> from freebsd-mobile
>
(http://www.riverside.org/archive/html/freebsd-mobile/2002-02/msg00038.html)
> that were most promising mentioned commiting the patches to -current,
> but I don't see any evidence of that in my kernel sources.
>
> To top off my confusion when I boot I'm getting different dev/vendor
> id's from the card than are mentioned in the post referenced above.
>
> Here's my dmesg output:
>
> pcib0:  on motherboard
> pci0:  on pcib0
> pcib1:  at device 1.0 on pci0
> pci1:  on pcib1
> pci1:  at 0.0 irq 11
> pcib2:  at device 30.0 on pci0
> pci3:  on pcib2
> pci3:  (vendor=0x14e4, dev=0x4301) at 2.0 irq 11
> xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xac00-0xac7f mem
> 0xdfefdf80-0xdfefdfff irq 10
> at device 5.0 on pci3
> xl0: Ethernet address: 00:01:03:de:12:db
> miibus0:  on xl0
> ukphy0:  on miibus0
> ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
>
> The linksys WMP11 is listed as pci3.  Note that the vendor/dev ids are
> different from those listed in the patch posted by Thomas Skibo
> <[EMAIL PROTECTED]> to freebsd-mobile (as referenced above) which shows
> the device as:
>
> + {0x1260, 0x3873, WI_BUS_PCI_NATIVE, "Linksys WMP11 PCI Prism2.5"},
>
> So, the qeustion is, can I make this (actually these 10) cards work with
> FreeBSD?  Any help or pointers on this would be greatly appreciated.
>
> --Aaron

Looking up your PCI IDs (http://www.yourvote.com/pci), I see that the
unknown device on pci3 is really a Broadcom IEEE 802.11b WLAN client
chipset.

Not sure which device driver should be extended to support this chipset.

--
Matt Emmerton



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


Re: How to tell FreeBSD to immediately break network connection instead of those stupid "ed0: device timeout" repeated 10-20 times if other computer (the one FreeBSD was connected to) was shut down?

2003-03-13 Thread Matthew Emmerton
> Hi
>
> I have one problem with my home network. I'm using
> FreeBSD to mount shares on my computer under Windows.
> When I turn off the computer with Windows I begin to
> receive this message in FreeBSD (and it repeats from
> 10 to 20 times with  10 seconds interval):
>
> ed0: device timeout
>
> How to get rid of this annoying message? How can I
> tell FreeBSD to stop trying to connect to Windows if
> first attempt fails?

It has nothing to do with samba or the fact that you Windows computer has
gone away.  It's a sign of a bad (or poor quality) NIC.

--
Matt Emmerton


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


Re: Serial ATA support in FreeBSD

2003-03-16 Thread Matthew Emmerton
> Received no responses the first time, so am trying again.
> -
> I am in the process of building a new system and was looking at
> using the new Seagate Barracuda Serial ATA drives.
> Does FreeBSD 4.x, or 5.x support SATA?
> Mark Jacobs

If FreeBSD can detect the SATA controller, then I imagine it would support
it just fine, since the same command set is used on the software side.

Are you offering to donate a SATA controller / SATA-equipped motherboard to
Soren to make this a reality? 

--
Matt Emmerton


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


Re: Reverse name lookups

2003-03-17 Thread Matthew Emmerton

- Original Message -
From: "Joshua Lokken" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 17, 2003 2:33 PM
Subject: Reverse name lookups


> Hello
>
> ***This is not a FreeBSD-specific issue!***
>
> I use ZoneEdit's dynamic DNS service to point to my domain, however,
> reverse lookups still point at my ISP.  At ZoneEdit, my page is
> telling me this:
>
> PTR Records:
> Contact your ISP and/or set up an ARPA zone for reverse DNS.
>
> I have contacted my ISP.  The best answer I've received is:
>
> "I'm not sure what you mean, but call back in 3 business days, and see
> if
> we were able to do that for you."
>
> So, I'd like to go to the next option, "/or set up an ARPA zone for
> reverse DNS."
> However, I've read and it's been suggested that unless I have two
> static IPs, I
> cannot manage my own DNS.  What do I need to do?  Thanks for any help.

Managing your own reverse-DNS requires you to have full control over your
DNS.  This means you need to run your own authoritative name server (for
your block of IP addresses), and your ISP has to be willing to delegate
control of DNS (forward and reverse) for that block of IPs to you.

Most ISPs won't do this unless you're paying for a business level connection
(2 Mbps DSL, T1, frame, etc) and have a block of IP addresses (at least a
/26) assigned to you.

In short, doing this for a single IP is not worth the hassle, nor will your
ISP go for it.

--
Matt Emmerton


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


Re: Reverse name lookups

2003-03-17 Thread Matthew Emmerton

- Original Message -
From: "Joshua Lokken" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, March 17, 2003 4:04 PM
Subject: RE: Reverse name lookups


>
>
> > -Original Message-
> > From: James Long [mailto:[EMAIL PROTECTED]
> > Sent: Monday, March 17, 2003 12:21 PM
> > To: Joshua Lokken
> > Subject: Re: Reverse name lookups
>
> > >
> > > So, I'd like to go to the next option, "/or set up an
> > ARPA zone for
> > > reverse DNS."
> > > However, I've read and it's been suggested that unless I have two
> > > static IPs, I
> > > cannot manage my own DNS.  What do I need to do?  Thanks
> > for any help.
> >
> > Hi, Joshua.
> >
> > Can you send me a specific IP and hostname so that I can do
> > some lookups
> > to see what the status quo is?  And can you also tell me
> > what you'd like
> > the status quo to be?
> >
> > Jim
> >
>
> No problem.
>
> IP 12.225.249.250  <== dynamically assigned by attbi.com, but hasn't
> changed in 2 years.
> domain  joshualokken.com
>
> nslookups for joshualokken.com are fine.  They point to
> 12.225.249.250.
> nslookups for 12.225.249.250 resolve fine, but point to
> 12-225-249-250.client.attbi.com,
>
> so, for example, if I send mail to questions from my 'main' account at
> home, it gets
> returned, because it doesn't recognize [EMAIL PROTECTED]
> as a valid
> host.
>
> I would like to be able to maintain a mailserver for
> [EMAIL PROTECTED], and have
> www.joshualokken.com resolve correctly.  Now I'm getting 'unable to
> connect with
> remote host' when I point to www.joshualokken.com, and like I said,
> returned email
> from home.
>
> I'll gladly post more info if it helps.  Thanks,

Since you're using zoneedit, add a CNAME entry for joloxbox.joshualokken.com
that points to joshualokken.com.  That way when you expose "internal"
hostnames on the internet, they will be resolvable.

I have had to do this to two of my internal boxes whose hostnames sometimes
leak out in email headers.  (Damn sendmail -- when I say masquerade, I mean
it!)

--
Matt Emmerton


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


Re: Problems compiling KDE3 because of libmng - part 2

2003-03-21 Thread Matthew Emmerton

- Original Message -
From: "RexFelis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 20, 2003 11:46 PM
Subject: Problems compiling KDE3 because of libmng - part 2


> Hello,
>
> Not long ago I wrote in about my attempt to
> compile KDE3 from ports failing during libmng
> build.  The advice I was given was, stick with
> the STABLE tree (I was using 5.0) and try "make
> index" from /usr/ports.
>
> I decided to install 4.7 STABLE,and try again.
> The first time, I installed all possible
> distributions, and then after updatuing src and
> ports through cvsup, I did a "pkg_delete *" and
> then "make install" for XFree86 (which always
> works fine) and KDE3.
>
> KDE3 failed building libmng again.  So I tried
> reinstalling, this time without installing any
> packages (custom install, only base, ports, src
> and docs/man), theorizing that perhaps the
> problem was files left behind by pkg_delete.
> Once again, even with an up to date src and
> ports, and having done a "make index" after
> update, the build fails during build of libmng.
>
> Ok, so I have determined that the problem is not
> version specific, and that it is not caused by
> incomplete uninstall of packages.  I have used
> script to record the error output, but this
> brings me to my next problem - no matter what I
> do, I can't get FreeBSD to mount a dos floppy,
> which I would use to save the script output for
> mailing in with my problem under a different OS.

Why not install KDE3 from packages?  This will save you a ton of headaches
trying to compile.

> "The Complete FreeBSD", OnLamp, and the handbook
> have done little to help with this problem.
> I have tried "mount -t msdos /dev/fd0 /floppy"
> (and yes, I did create a /floppy dir first), and
> the response is this:
>
> msdos: /dev/fd0: invalid argument

Does 'device fdc0' and 'device fd' appear in your kernel config file?
Do you see a floppy drive being detected at boot (look at dmesg to see)
Is your floppy drive enabled in your BIOS?
Is your floppy drive cabled properly?

(The last 2 are from personal experience.)

> I have tried "mount /dev/fd0 /floppy", which
> returns
>
> mount: /dev/fd0 on /floppy: incorrect superblock

Expected, since your floppy disk is most likely not a FreeBSD-formatted
floppy.

> I attempted using mtools, as built from ports,
> whic returned an error because I am not using
> Linux emulation.
>
> Upon deciding to install Linux Base from ports, I
> came to the question, "Which one?"  Linux Base,
> or Linux Base 6?

linux_base, unless you have a specific reason for using linux_base_6.

> The system I am using is a Cyrix MII 266 MMX
> processor, 192 megs of RAM, a 40 gig hard disk, 5
> gigs allocated for FreeBSD, and 1 gig swap.  If I
> left anything out, please let me know.
>
> If I can get a floppy mounted, I can mail in the
> script output, and hopefully, I can get KDE3 to
> finish compiling.  Please help.  Thanks in
> advance.
>
> Shannon

--
Matt Emmerton


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


Re: Lilypond and LaTeX

2005-06-02 Thread Matthew Emmerton

[ moving discussion to freebsd-ports ]


I haven't used Lilypond since last fall. Running the current port
(lilypond-2.2.2) today, I get the following error message:

*
lilypond: error: LaTeX failed on the output file.
lilypond: error: The error log is as follows:

! Undefined control sequence.
 \kern 098.0248\outputscale \embeddedps
 {000.0650 000.0650
-00.187...
l.164 }
  %
The control sequence
LATEX output to `chorosClaves.latex'...
TEX output to `chorosClaves.tex'...
***

The ly file is one that I've run Lilypond on before, without problem.

None of this means anything to me. I searched the archives but didn't
see a bug report or any discussion of this problem. Is this a bug in the
port?


This sounds like a bug in the port, as it appears to be outputing bogus 
LaTeX code.  This could mean one of two things (at the least):

1) lilypond has a bug
2) port is not prereq'ing the proper version of LaTeX or related tools.

If you can send me your .ly file via private mail, I can take a stab at 
analysing the problem in more depth in the next few days.


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


Re: ppp filling /var

2005-06-02 Thread Matthew Emmerton



On Thu, 2 Jun 2005, James wrote:


On Thursday 02 June 2005 07:30 am, Dmitry Mityugov wrote:

On 6/2/05, James <[EMAIL PROTECTED]> wrote:

Forgot to include this:

FreeBSD 4.11-RELEASE-p2 #3

# cat ppp.conf:

default:
set device PPPoE:ed0
set speed sync
set mru 1492
set mtu 1492
set ctsrts on
#enable dns
enable lqr
set log phase tun
add default HISADDR
dsl:
set authname 
set authkey **


# cat ppp.linkup
MYADDR:
!bg /sbin/natd -f /etc/natd.conf

#cat natd.conf
interface tun0
log yes


^^ - do you need this?  Try using "log no" and see if your /var space 
issues go away.


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


Re: FreeBSD and Oracle

2003-03-30 Thread Matthew Emmerton
On Fri, 28 Mar 2003, Adam wrote:

> On Fri, 2003-03-28 at 04:25, Michael Hostbaek wrote:
> > I have a linux box runnning Oracle, I'd like to switch it to FreeBSD.
> > Has anyone successfully run oracle on FreeBSD in a prodution
> > environment?
> >
> > I am using Oracle 8i - it should be possible to run it under FreeBSD
> > with linux emulation, right ?
>
> It can be an amazing pain getting Oracle to work on FreeBSD .. The only
> way I've ever heard of anyone getting it to work is to install it on a
> Linux box, then copy all the files over to FreeBSD, then use Linux
> emulation to run it .. Even this is a bit too dodgy for me ..
>
> IMO, better to stick with DB2 or PGSQL on FreeBSD.

DB2 on FreeBSD?  You must be dreaming the same dream I'm having :)

--
Matt Emmerton

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


Re: db2

2003-03-30 Thread Matthew Emmerton
On Fri, 28 Mar 2003, Mike Meyer wrote:

> In <[EMAIL PROTECTED]>, Brian Henning <[EMAIL PROTECTED]> typed:
> > is there a port for db2 for freebsd?
>
> "make search key=db2" in /usr/ports turns up:
>
> Port:   db-2.7.7_1
> Path:   /usr/ports/databases/db2
> Info:   The Berkeley DB package, revision 2

I think the poster was asking about IBM DB2, adn the answer is no.

Last time I asked (and I work for IBM), the price was USD$250,000 to get
them to _think_ about making a port, and then they'd have to get people to
actually buy it.

FreeBSD 5.0 satisfies a lot of the pre-requisites for the most
recent DB2 implementation, so the landscape may be shaping up for this to
become a reality in the future.

Any interested parties should contact me directly.

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


Re: logging websites visited

2003-04-01 Thread Matthew Emmerton

- Original Message -
From: "Asenchi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 01, 2003 2:26 PM
Subject: logging websites visited


> Hello All,
>
> I have a been googling and reading for about 3-4 weeks on this, and can't
seem to find the answer to.  How do I log internet connections through my
firewall.  I am running IPFW with Natd and I want to log who is going to
what site.  Is there a way to do this? (I know, of course there is, ITS
BSD!)
>
> Can anyone help me?

If you create a ipfw log rule to log all outbound access on port 80, you
will get some sort of idea on what web servers people are hitting, but not
the URLs.

If you want to capture the full URL of sites people are hitting, you should
considering running a transparent proxy server (like Squid) on your firewall
box.

--
Matt Emmerton

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


Re: How much RAM is needed for FreeBSD

2003-04-05 Thread Matthew Emmerton
> On Sat, 05 Apr 2003 18:23:18 +0200
> Clemens Jaeger <[EMAIL PROTECTED]> wrote:
>
> > Hello!
> >
> > I was looking for information : how much RAM is needed to run FreeBSD on
> > a Pentium Computer?
> > There is no information on your website / documentation for Version 5.0
>
> should be something like 4Mb, iirc

*cough*.  You haven't tried to install FreeBSD since the 2.2.x days then :)

My recommendation is no less than 16MB.

--
Matt Emmerton

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


Re: PPPoE : User can't access while root can!

2003-04-05 Thread Matthew Emmerton

The error message in the ppp.log file indicates that ppp is attempting to
negotiate an IPv6 address with Sympatico, which it refuses.

How do you configure your vr0 interface in /etc/rc.conf?
--
Matt Emmerton

- Original Message -
From: "E. J. Cerejo" <[EMAIL PROTECTED]>
To: "Benedict Plante" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, April 05, 2003 9:52 PM
Subject: Re: PPPoE : User can't access while root can!


> You need to edit /etc/group file and make every user member of the
> network group I believe.
> The line that you looking for on this file should look like this:
>
> network:*:69:root,webdude,webdude2,webdude3
>
> separate user by commons and no spaces.
>
>
> Benedict Plante wrote:
> > Hello all!
> >Well, let get straight to the point. I use Bell Canada
Sympatico Internet Service Provider, with a DSL connection, and I'm using
FreeBSD-4.8-release.
> >
> > I've used FreeBSD-4.7 for a while, and sometime, when I installed, ppp
wasn't working for user... unless one time, when I completely wipe my
FreeBSD-4.7 partition and reinstalling it, it worked. Later, I deinstalled
it and reinstalled it completely and it wasn't working.
> >
> > Now, I've move to FreeBSD-4.8-release and its still not working! I
mean... it does work as root but not as a user.
> >
> > If I use internet with a user from the wheel group, it gives me that
message:
> >
> > $ ping www.google.ca
> > ping: cannot resolve www.google.ca: Host name lookup failure
> >
> > In order to make my connection work, I need to configure my
/etc/ppp/ppp.conf along with rp-pppoe-3.5.
> >
> > -Here is my /etc/ppp/ppp.conf:
> >
> > default:
> >   set log Phase tun command
> >   set ifaddr 10.0.0.1/0 10.0.0.2/0
> >
> > sympatico.ca:
> >   set device PPPoE:vr0
> >   set authname *
> >   set authkey *
> >   set dial
> >   set login
> >   add default HISADDR
> >
> >
> >
> > -Here is my /etc/rc.conf:
> >
> > hostname="FreeBSD"
> > kern_securelevel_enable="NO"
> > linux_enable="YES"
> > moused_enable="YES"
> > moused_port="/dev/psm0"
> > moused_type="auto"
> > nfs_reserved_port_only="YES"
> > sendmail_enable="YES"
> > sshd_enable="YES"
> > usbd_enable="YES"
> > ppp_enable="YES"
> > ppp_mode="ddial"
> > ppp_profile="sympatico.ca"
> > ppp_nat="YES"#I tried with it turned to "NO" also
> > inetd_enable="YES"
> >
> >
> > -Here is my /var/log/ppp.log:
> >
> >  15:24:53 FreeBSD ppp[53]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook
"62031100098933-")
> > Apr  5 15:24:53 FreeBSD ppp[53]: tun0: Phase: Received
NGM_PPPOE_SESSIONID
> > Apr  5 15:24:53 FreeBSD ppp[53]: tun0: Phase: Received NGM_PPPOE_SUCCESS
> > Apr  5 15:24:53 FreeBSD ppp[53]: tun0: Phase: deflink: carrier -> login
> > Apr  5 15:24:53 FreeBSD ppp[53]: tun0: Phase: deflink: login -> lcp
> > Apr  5 15:24:53 FreeBSD ppp[53]: tun0: Warning: deflink: Reducing
configured MRU from 1500 to 1492
> > Apr  5 15:24:53 FreeBSD ppp[53]: tun0: Phase: bundle: Authenticate
> > Apr  5 15:24:53 FreeBSD ppp[53]: tun0: Phase: deflink: his = PAP, mine =
none
> > Apr  5 15:24:53 FreeBSD ppp[53]: tun0: Phase: Pap Output: *** 
> > Apr  5 15:24:54 FreeBSD ppp[53]: tun0: Phase: Pap Input: SUCCESS ()
> > Apr  5 15:24:54 FreeBSD ppp[53]: tun0: Phase: deflink: lcp -> open
> > Apr  5 15:24:54 FreeBSD ppp[53]: tun0: Phase: bundle: Network
> > Apr  5 15:24:54 FreeBSD ppp[53]: tun0: Phase: deflink: IPV6CP protocol
reject closes IPV6CP !
> > Apr  5 15:25:06 FreeBSD last message repeated 5 times
> >
> >
> >
> >
> >
> > -My ifconfig as root (working)
> > FreeBSD# ifconfig
> > vr0: flags=8843 mtu 1500
> > inet6 fe80::250:baff:fee5:bdb0%vr0 prefixlen 64 scopeid 0x1
> > ether 00:50:ba:e5:bd:b0
> > media: Ethernet autoselect (10baseT/UTP)
> > status: active
> > lp0: flags=8810 mtu 1500
> > sl0: flags=c010 mtu 552
> > faith0: flags=8002 mtu 1500
> > lo0: flags=8049 mtu 16384
> > inet6 ::1 prefixlen 128
> > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
> > inet 127.0.0.1 netmask 0xff00
> > ppp0: flags=8010 mtu 1500
> > tun0: flags=8051 mtu 1492
> > inet 64.228.205.31 --> 64.228.205.1 netmask 0x
> > Opened by PID 53
> >
> >
> >
> > -My ifconfig as user (wheel):
> >
> > $ ifconfig
> > vr0: flags=8843 mtu 1500
> > inet6 fe80::250:baff:fee5:bdb0%vr0 prefixlen 64 scopeid 0x1
> > ether 00:50:ba:e5:bd:b0
> > media: Ethernet autoselect (10baseT/UTP)
> > status: active
> > lp0: flags=8810 mtu 1500
> > sl0: flags=c010 mtu 552
> > faith0: flags=8002 mtu 1500
> > lo0: flags=8049 mtu 16384
> > inet6 ::1 prefixlen 128
> > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
> > inet 127.0.0.1 netmask 0xff00
> > ppp0: flags=8010 mtu 1500
> > tun0: flags=8051 mtu 1492
> > inet 64.228.205.31 --> 64.228.205.1 netmask 0x
> > Opened by PID 53
> >
> >
> >
> >
> > - Do you need some more info??? Thank you to all the people who will

Re: How do I specify a unit for ppp?

2003-04-02 Thread Matthew Emmerton

- Original Message -
From: "Dan Langille" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 02, 2003 8:12 AM
Subject: How do I specify a unit for ppp?


> >From man ppp I see this:
>
>   The -unit flag tells ppp to only attempt to open /dev/tunN.
>
> I want it to use tun0.  I can't see a way to specify a unit in
> /etc/rc.conf.
>
> Clues?
> --
> Dan Langille : http://www.langille.org/

We really need a ppp_flags variable in /etc/rc.conf which is recognized by
/etc/rc.network for this kind of thing.
Then you could specificy ppp_flags="-unit 0" in /etc/rc.conf and be on your
way.

Patches against 4.7-REL (sorry, I don't have an up-to-date -stable box).
Comments requested; I will submit a PR with patches against -stable later
today.

--- rc.network.orig Wed Apr  2 08:23:43 2003
+++ rc.network  Wed Apr  2 08:24:07 2003
@@ -284,7 +284,7 @@
;;
esac

-   ppp_command="${ppp_command} ${ppp_profile}"
+   ppp_command="${ppp_command} ${ppp_flags} ${ppp_profile}"

echo "Starting ppp as \"${ppp_user}\""
su -m ${ppp_user} -c "exec ${ppp_command}"

--- defaults/rc.conf.orig   Wed Apr  2 08:23:12 2003
+++ defaults/rc.confWed Apr  2 08:23:36 2003
@@ -108,6 +108,7 @@
 ppp_nat="YES"  # Use PPP's internal network address translation or
NO.
 ppp_profile="papchap"  # Which profile to use from /etc/ppp/ppp.conf.
 ppp_user="root"# Which user to run ppp as
+ppp_flags=""   # Additional flags to pass to ppp(8).

 ### Network daemon (miscellaneous) ###
 syslogd_enable="YES"   # Run syslog daemon (or NO).

--
Matt Emmerton

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


Re: sendmail woes

2003-04-06 Thread Matthew Emmerton
> Quoting Giorgos Keramidas <[EMAIL PROTECTED]>:
>
> > I'd probably boot single user mode and run 'mergemaster' after mounting
> > all the filesystems.
>
> Giorgios,
> Am I expecting too much of mergemaster?
> I took your advice and ran it without any options.
> It showed me the comparision between old and new files as it ran on the
> console, and stored the new files in /var/tmp/temproot for me to compare
and
> adjust my old files - without any guide about what the differences might
be.
> The "old" files remain untouched until I manually change them.
> Is there at least a log somewhere which highlights any differences so I
have
> the same sort of guide that appeared on the console when I ran
mergemaster?

The differences are shown, per file, when you run mergemaster.  You can
choose "i" (install) to install the new file, which will wipe out any
changes you may have made in your "old" version.  Of your can choose to
"leave until later", and then you will have to diff and merge the changes by
hand.  (Use the diff command to show the differences, and then edit your
"old" files with the changes.)

> BTW, the difference between old and new freebsd.mc appears (more-or-less)
> cosmetic - BUT I didn't have a freebsd_submit.mc and one or two other
files
> which look important.

If you don't have some of the files which look important, then you should
have chosen "i" (install) when mergemaster gave you the choice.  For these,
just copy them from /var/tmp/temproot into their appropriate place.

--
Matt Emmerton

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


Re: error when compiling 5.1

2003-06-06 Thread Matthew Emmerton
> i cvsed the new 5.1 source code and when i try to build the new kernel i
got
> this error:
> buildsystem is 5.0 and buildworld build without any errors
>
>  linking kernel
> init_main.o: In function `proc0_init':
> init_main.o(.text+0x279): undefined reference to `kse0_sched'
> init_main.o(.text+0x283): undefined reference to `ksegrp0_sched'
> init_main.o(.text+0x28d): undefined reference to `proc0_sched'
> init_main.o(.text+0x297): undefined reference to `thread0_sched'
> kern_clock.o: In function `statclock':
> kern_clock.o(.text+0x675): undefined reference to `sched_clock'
> kern_condvar.o: In function `cv_waitq_add':
> kern_condvar.o(.text+0x1403): undefined reference to `sched_sleep'
> kern_exit.o: In function `exit1':
> kern_exit.o(.text+0x1468): undefined reference to `sched_exit'
> kern_fork.o: In function `fork1':
> kern_fork.o(.text+0xc1c): undefined reference to `sched_fork'
> kern_idle.o: In function `idle_proc':
> kern_idle.o(.text+0x1c6): undefined reference to `sched_runnable'
> kern_thr.o: In function `thr_exit1':
> kern_thr.o(.text+0xe8): undefined reference to `sched_exit_kse'
> kern_thr.o(.text+0x17b): undefined reference to `sched_exit_thread'
> kern_thr.o: In function `thr_create':
> kern_thr.o(.text+0x46f): undefined reference to `sched_fork_kse'
> kern_thr.o(.text+0x481): undefined reference to `sched_fork_thread'
> kern_mutex.o: In function `propagate_priority':
> kern_mutex.o(.text+0x70): undefined reference to `sched_prio'
> kern_proc.o: In function `procinit':
> kern_proc.o(.text+0xe9): undefined reference to `sched_sizeof_proc'
> kern_proc.o: In function `fill_kinfo_proc':
> kern_proc.o(.text+0x1675): undefined reference to `sched_pctcpu'
> kern_resource.o: In function `donice':
> kern_resource.o(.text+0x918): undefined reference to `sched_nice'
> kern_resource.o: In function `rtp_to_pri':
> kern_resource.o(.text+0xcd5): undefined reference to `sched_class'
> kern_subr.o: In function `uio_yield':
> kern_subr.o(.text+0x548): undefined reference to `sched_prio'
> kern_switch.o: In function `choosethread':
> kern_switch.o(.text+0x6): undefined reference to `sched_choose'
> kern_switch.o: In function `kse_reassign':
> kern_switch.o(.text+0xda): undefined reference to `sched_add'
> kern_switch.o: In function `adjustrunqueue':
> kern_switch.o(.text+0x155): undefined reference to `sched_rem'
> kern_switch.o(.text+0x15d): undefined reference to `sched_add'
> kern_switch.o(.text+0x18b): undefined reference to `sched_rem'
> kern_switch.o: In function `setrunqueue':
> kern_switch.o(.text+0x27c): undefined reference to `sched_rem'
> kern_switch.o(.text+0x324): undefined reference to `sched_add'
> kern_synch.o: In function `msleep':
> kern_synch.o(.text+0x52f): undefined reference to `sched_sleep'
> kern_synch.o: In function `mi_switch':
> kern_synch.o(.text+0xe0f): undefined reference to `sched_switchout'
> kern_synch.o(.text+0xe38): undefined reference to `sched_switchin'
> kern_synch.o: In function `setrunnable':
> kern_synch.o(.text+0xf33): undefined reference to `sched_wakeup'
> kern_synch.o: In function `yield':
> kern_synch.o(.text+0x1169): undefined reference to `sched_prio'
> kern_thread.o: In function `threadinit':
> kern_thread.o(.text+0x14c7): undefined reference to `sched_sizeof_thread'
> kern_thread.o(.text+0x1511): undefined reference to `sched_sizeof_ksegrp'
> kern_thread.o(.text+0x155b): undefined reference to `sched_sizeof_kse'
> subr_trap.o: In function `userret':
> subr_trap.o(.text+0x18): undefined reference to `sched_userret'
> subr_trap.o: In function `ast':
> subr_trap.o(.text+0x667): undefined reference to `sched_prio'
> ksched.o: In function `ksched_attach':
> ksched.o(.text+0x31): undefined reference to `sched_rr_interval'
> ksched.o: In function `ksched_setscheduler':
> ksched.o(.text+0x2c3): undefined reference to `sched_prio'
> ksched.o(.text+0x3a1): undefined reference to `sched_prio'
> ffs_snapshot.o: In function `ffs_snapshot':
> ffs_snapshot.o(.text+0xb85): undefined reference to `sched_nice'
> ffs_snapshot.o(.text+0x257d): undefined reference to `sched_nice'
> vm_zeroidle.o: In function `vm_pagezero':
> vm_zeroidle.o(.text+0x3e2): undefined reference to `sched_runnable'
> vm_pageout.o: In function `vm_pageout_scan':
> vm_pageout.o(.text+0x1ae5): undefined reference to `sched_nice'
> machdep.o: In function `cpu_idle':
> machdep.o(.text+0x16be): undefined reference to `sched_runnable'
> *** Error code 1
>
> Stop in /usr/obj/usr/src/sys/GENERIC.
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
>
> Stop in /usr/src.

You're missing SCHED_4BSD in your kernel configuration file.

--
Matt Emmerton

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


Re: Awfully OT Question.

2003-06-04 Thread Matthew Emmerton

This was brought up a while ago (check the archives.)

The answer was "porting ALSA to FreeBSD would be a bad idea", mainly
becaue the sound system architecture that we have is much better than
ALSA.

Please refer to the archives for more details.


On Tue, 3 Jun 2003, Frank J. Cameron wrote:

> FYI, There is a general questions list at [EMAIL PROTECTED]
>
> I actually know nothing about this; but, I would be  surprised if this
> was possible.  FreeBSD does have its own driver pcm.  Add "device pcm"
> to your kernel config and reboot; it usually works pretty well for plug
> and play cards (though I've never tried anything high-end or exotic).
>
> -frank
>
> On Tue, 2003-06-03 at 15:56, Mario Lobo wrote:
> > Please forgive me for this terribly off-topic question but could anyone on this
> > list point to me the proper direction on info to get the ALSA sound driver to
> > work under FreeBSD (if that is at all possible!!)? I figured there are many
> > kernel experts here who would an idea about this.
> >
> > I looked in the FreeBSD and ALSA sites and there is no mention of each other on
> > neither.
> >
> > Again, sorry and Thanks!
> --
> Frank J. Cameron <[EMAIL PROTECTED]>
> Concurrent Technologies Corp.
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: IBM serveraid controllers????? FreeBSD Support?????

2003-06-09 Thread Matthew Emmerton
> We just got a couple of IBM X220 Eservers at my office from an old client
> who did not want them anymore. Does anybody know if FreeBSD supports IBM
> serveRaid Controllers?

They are supported by the ips driver in FreeBSD 5.1.

http://www.freebsd.org/releases/5.1R/relnotes-i386.html

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


Re: mounting Win with spaces via samba in fstab

2003-06-11 Thread Matthew Emmerton
> I'm trying to mount a remote Windows directory, which happens to have a
space in its name; "mount -a" returns the following error:
> fstab: /etc/fstab:14: Inappropriate file type or format
>
> I have tried both of the following formats:
> //[EMAIL PROTECTED]/Win\ Partition /mountpoint   smbfs   rw 0   0
> "//[EMAIL PROTECTED]/Win Partition"   /mountpoint   smbfs   rw 0   0
>
> I pulled this format directly from "man mount_smbfs 8":
> "//[EMAIL PROTECTED]/public/smb/public smbfs   rw,noauto 0  0"
>
> I searched the archives, and it seems this question had been asked once
before, but no conclusion was reached:
>
http://groups.google.com/groups?hl=en&lr=lang_en&ie=UTF-8&threadm=1042037002.72844.6.camel%40d80h149.public.uconn.edu.lucky.freebsd.questions&rnum=1&prev=/groups%3Fq%3D%2522fstab:%2B/etc/fstab%2522%2B%2522Inappropriate%2Bfile%2Btype%2Bor%2Bformat%2522%2Bsmbfs%26hl%3Den%26lr%3Dlang_en%26ie%3DUTF-8%26selm%3D1042037002.72844.6.camel%2540d80h149.public.uconn.edu.lucky.freebsd.questions%26rnum%3D1

I think the problem is that the fstab(5) file format treats spaces as field
delimiters, and the routines used to parse fstab
(/usr/src/lib/libc/gen/fstab.c, fstabscan() in particular) do not know how
to handle escaped spaces nor quoted fields.

--
Matt Emmerton

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


Re: mounting Win with spaces via samba in fstab

2003-06-11 Thread Matthew Emmerton
[top-posting corrected]

> Matthew Emmerton <[EMAIL PROTECTED]> wrote:> I'm trying to mount a remote
Windows directory, which happens to have a
> space in its name; "mount -a" returns the following error:
> > fstab: /etc/fstab:14: Inappropriate file type or format
> >
> > I have tried both of the following formats:
> > //[EMAIL PROTECTED]/Win\ Partition /mountpoint smbfs rw 0 0
> > "//[EMAIL PROTECTED]/Win Partition" /mountpoint smbfs rw 0 0
> >
> > I pulled this format directly from "man mount_smbfs 8":
> > "//[EMAIL PROTECTED]/public /smb/public smbfs rw,noauto 0 0"
> >
> > I searched the archives, and it seems this question had been asked once
> before, but no conclusion was reached:
> >
>
http://groups.google.com/groups?hl=en&lr=lang_en&ie=UTF-8&threadm=1042037002.72844.6.camel%40d80h149.public.uconn.edu.lucky.freebsd.questions&rnum=1&prev=/groups%3Fq%3D%2522fstab:%2B/etc/fstab%2522%2B%2522Inappropriate%2Bfile%2Btype%2Bor%2Bformat%2522%2Bsmbfs%26hl%3Den%26lr%3Dlang_en%26ie%3DUTF-8%26selm%3D1042037002.72844.6.camel%2540d80h149.public.uconn.edu.lucky.freebsd.questions%26rnum%3D1
>
> I think the problem is that the fstab(5) file format treats spaces as
field
> delimiters, and the routines used to parse fstab
> (/usr/src/lib/libc/gen/fstab.c, fstabscan() in particular) do not know how
> to handle escaped spaces nor quoted fields.
>
> --
> Matt Emmerton

> I'm afraid you may be right, Matt.
> I found the following in "man fstab 5":
> "If a program needs the character special file name, the pro-
>  gram must create it by appending a ``r'' after the last ``/'' in the
spe-
>  cial file name."
> ...but that didn't seem to help.
> The mount_smbfs command seems to work fine with the "\ " sequence, but
this isn't the case with fstab.
> Perhaps if I were instead to include mount_smbfs commands in a script to
be run at boot time:
> #!/bin/sh
> mount_smbfs //[EMAIL PROTECTED]/Win\ Partition /mountpoint
>
> Is this the proper syntax for a script?  And if so, where would I put such
a file?
> Thank you,
> ~John

Since this is a script, I'd use judicious use of quotes to protect the shell
from messing things up.

#!/bin/sh
mount_smbfs "//[EMAIL PROTECTED]/Win Partition" /mountpoint

You can put a script like this in /usr/local/etc/rc.d, and it will get
executed automatically upon boot.

--
Matt Emmerton

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


Re: fdimage.exe on win 2000

2003-06-11 Thread Matthew Emmerton
> I'm on win 2000 using fdimage.exe from ftp.freebsd.org to make the
> kern.flp and mfsroot.flp images to install, but apparently 2000 dosent
> like fdimage.exe cause it throws an illegal operation, any ideas or
> suggestions? And no, I dont have any 95, 98, ME boxes.

Use rawrite.exe (found in the tools/ directory) instead.  I've used it
successfully on W2K before.

--
Matt Emmerton

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


Re: kernel make problems, release-5.1

2003-06-17 Thread Matthew Emmerton
> I've been trying to compile a kernel; config and make depend are 
> successful but when I run make, it returns:
> 
> umass.o: In function `umass_cam_attach_sim':
> umass.o(.text+0x1851): undefined reference to `cam_simq_alloc'
> umass.o(.text+0x189c): undefined reference to `cam_sim_alloc'
> umass.o(.text+0x18ad): undefined reference to `cam_simq_free'
> umass.o(.text+0x18c9): undefined reference to `xpt_bus_register'
> umass.o: In function `umass_cam_rescan_callback':
> umass.o(.text+0x1903): undefined reference to `xpt_free_path'
> umass.o: In function `umass_cam_rescan':
> umass.o(.text+0x1975): undefined reference to `xpt_periph'
> umass.o(.text+0x1984): undefined reference to `xpt_create_path'
> umass.o(.text+0x19a0): undefined reference to `xpt_setup_ccb'
> umass.o(.text+0x19bd): undefined reference to `xpt_action'
> umass.o: In function `umass_cam_detach_sim':
> umass.o(.text+0x1b0b): undefined reference to `xpt_bus_deregister'
> umass.o(.text+0x1b29): undefined reference to `cam_sim_free'
> umass.o: In function `umass_cam_detach':
> umass.o(.text+0x1b94): undefined reference to `xpt_create_path'
> umass.o(.text+0x1bb9): undefined reference to `xpt_async'
> umass.o(.text+0x1bc4): undefined reference to `xpt_free_path'
> umass.o: In function `umass_cam_action':
> umass.o(.text+0x1f70): undefined reference to `xpt_done'
> umass.o: In function `umass_cam_cb':
> umass.o(.text+0x20bc): undefined reference to `xpt_done'
> umass.o: In function `umass_cam_sense_cb':
> umass.o(.text+0x2221): undefined reference to `xpt_done'
> umass.o: In function `umass_cam_quirk_cb':
> umass.o(.text+0x2244): undefined reference to `xpt_done'
> *** Error code 1

"device umass" requires "device scbus" and "device da".

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


Re: can't send email from my box.

2003-06-25 Thread Matthew Emmerton
> Hi, all
>
> I have tried below
>
>   echo "this is my testing email" | mail -s "1st mail" [EMAIL PROTECTED]
>
> but no luck. /var/log/maillog show me that
>
> [EMAIL PROTECTED], ctladdr=pjn (1001/1001), delay=00:00:00,
xdelay=00:00:00,
> mailer=relay, pri=30040, relay=localhost.mytestdomain.com [127.0.0.1],
> dsn=4.0.0, stat=Deferred: Connection refused by localhost.mytestdomain.com
>
> My question are
> 1. Is it possible for sending emails from the host that hasn't run
"sendmail"
> on it.
> 2. It seem "mail" try to connect SMTP on localhost.mytestdomain.com.  If I
want
> "mail" connect to SMTP on the remote host (@mydomain.com's mail server),
or
> say I want to change my "outgoing mail host". How can I do this ?
>
> Thanks in advance,

1) You will need to set up sendmail as "submit-only" on your box.  Look at
/etc/mail/freebsd.submit.mc and "man rc.sendmail"
2) You need to set up sendmail to use another mail server instead of
localhost.  This is set using the "SMART_HOST" option in freebsd.submit.mc;
check http://www.sendmail.org for documentation on how to set this.

--
Matt Emmerton
Take a look at "SMART_HOST" in /etc/mail/freebsd.mc

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


Re: Stand-a-lone NAT PGM

2003-07-01 Thread Matthew Emmerton
> I have been looking for NAT program which is not part of some other
> program like NATD is part of IPFW or IPNAT is part of IPFILTER or
> NAT of user ppp. I can not find any NAT program in the FBSD ports
> collection unless I mis-understood some description.  If anybody
> knows of one please let me know. Yes I know that I can set firewall
> rule to pass all packets just to use NAT function, but I don't want
> overhead of firewall logic, just simple NAT like PPP NAT function
> with out the PPP stuff.

The reason you can't find a NAT program in the ports collection is because
such a program exists in the base system.
natd(8) is a front-end to the libalias(3) library, which implements generic
packet aliasing and masqerading functions (aka NAT).

> I was wondering if the NAT logic code from user ppp could be copied
> and made into stand-a-lone NAT program. My programming ability is
> not great so I am asking for opinions  on weather this is technical
> possible?  Thanks

Both ppp(8) and natd(8) use the libalias(3) library for NAT functionality.

--
Matt Emmerton

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


Re: Stand-a-lone NAT PGM

2003-07-01 Thread Matthew Emmerton

I'm saying that the functionality you want already exists -- in a low-level
library called libalias(3), or with a cleaner front-end called natd(8).

What you're failing to understand is that NATD cannot run "standalone' -- 
you have to have hook it into the TCP/IP stack somehow.

For ppp(8) this is easy, since ppp is already "hooked" into your system's
TCP/IP stack, and can easily run the packets through libalias(3) to achieve
NAT functionality.

For "standard" ethernet applications, a common approach is to use ipfw(8)
with a single "divert" rule which redirects all TCP/IP traffic from the
TCP/IP stack, through the natd(8) front-end to libalias(3), and then back
into the TCP/IP stack.

The overhead of ipfw with a single "divert" rule is very low.  The overhead
of IPFITLER/IPNAT is even lower.

I'm not sure exactly what performance problem you're trying to overcome.

--
Matt Emmerton

> Are you saying I can run NATD as a stand-a-lone function? IE: not
> enabling IPFW and using the 'divert natd' rule
>
> -----Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Matthew
> Emmerton
> Sent: Tuesday, July 01, 2003 6:49 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED] ORG
> Subject: Re: Stand-a-lone NAT PGM
>
> > I have been looking for NAT program which is not part of some
> other
> > program like NATD is part of IPFW or IPNAT is part of IPFILTER or
> > NAT of user ppp. I can not find any NAT program in the FBSD ports
> > collection unless I mis-understood some description.  If anybody
> > knows of one please let me know. Yes I know that I can set
> firewall
> > rule to pass all packets just to use NAT function, but I don't
> want
> > overhead of firewall logic, just simple NAT like PPP NAT function
> > with out the PPP stuff.
>
> The reason you can't find a NAT program in the ports collection is
> because
> such a program exists in the base system.
> natd(8) is a front-end to the libalias(3) library, which implements
> generic
> packet aliasing and masqerading functions (aka NAT).
>
> > I was wondering if the NAT logic code from user ppp could be
> copied
> > and made into stand-a-lone NAT program. My programming ability is
> > not great so I am asking for opinions  on weather this is
> technical
> > possible?  Thanks
>
> Both ppp(8) and natd(8) use the libalias(3) library for NAT
> functionality.
>
> --
> Matt Emmerton
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
>

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


Re: Dead natd -> dead system

2003-07-10 Thread Matthew Emmerton
On Thu, 10 Jul 2003, Brett Glass wrote:

> While working with a FreeBSD system this afternoon, I did something which killed
> natd (the NAT daemon), which was processing packets in the usual way via ipfw
> and a divert socket.
>
> The result? Network communications on the system simply went dead.
>
> It seems to me that ipfw should be able to "self-heal" (that is, bypass the
> rule) or reinvoke a daemon that's attached to a divert socket. Otherwise,
> the process that's attached to the socket becomes an Achilles' heel for
> the whole system. Crash it for any reason, and the system's offline.
>
> Ideas?

Use kernel-mode IPNAT instead of user-mode natd?

--
Matthew Emmerton
Computer Partners
IT Specialist

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


Re: Unable to compile gigabit driver?

2003-07-14 Thread Matthew Emmerton
> I am not able to compile either the "ti", or "em" driver, and get the
following errror:
>
> linking kernel
> if_ti.o: In function `ti_rxeof':
> if_ti.o(.text+0x297b): undefined reference to `vlan_input_tag_p'
> if_ti.o(.text+0x29d2): undefined reference to `vlan_input_tag_p'
> if_em.o: In function `em_process_receive_interrupts':
> if_em.o(.text+0x2d0e): undefined reference to `vlan_input_tag_p'
> if_em.o(.text+0x2d31): undefined reference to `vlan_input_tag_p'
> *** Error code 1
>
> Stop in /usr/src/sys/compile/Hssi.
>
> This is under FreeBSD 4.7-RELEASE. I also tried the "bge" driver for kicks
and it gives a similar error, but all the fast ethernet drivers I tried
compile just fine...

Although it doesn't mention it in LINT, I believe the gigabit drivers
(ti/em) require "pseudo-device vlan" in your kernel config.  (At least
that's what I infer from the error messages.)

--
Matt Emmerton

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


Re: how to copy just part of a file?

2003-07-16 Thread Matthew Emmerton
> On Wed, 16 Jul 2003, BSD baby wrote:
>
> > Is there an easy built-in way to copy only part of a file?
> >
> > I want to take a WAV audio file and copy from #__ bytes to
> > #___ bytes into a new file.
> >
> > (I'm making 30-second clips of files.)

You might find WavSplit (http://www.xmailserver.org/davide.html) useful.  It
will split a wav file into sections of X seconds each.

It isn't part of the ports collection yet, but I just submitted a PR to add
it.

--
Matt Emmerton

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


Re: Confusion over which version to use for a production server

2003-07-23 Thread Matthew Emmerton
> Hi,
>
> I am confused about which version to use for a production server. Nowhere
does it say "this is the newest version to use for a production server",
especially if the STABLE branch is still a development branch. I'm not sure
if this is a CYA thing, or if I'm just not finding the right information.
Obviously, this can be a difficult question to answer, since there are so
many branches to follow. However, people who want to use the software (as
oppossed to developing it) will need to know what the most recent version is
that can be used for a production server.
>
> Several pages, as well as messages posted to newsgroups, say that there
are two branchs, STABLE and CURRENT. Yet, there seems to be a third branch:
RELEASE. Is the RELEASE version pre-CURRENT or post-STABLE?

RELEASE is just a snapshot of STABLE when -STABLE is good enough to be
RELEASEd.  Clear?

> Because I have the perspective of a newbie, I don't mind writing a brief
description for other newbies to determine which version they should use and
how to get it. Unfortunately, I don't know how to determine any of this. Is
the Latest Production Release shown on the right column as "Production
Release: 4.8 (or whatever it is at the time)"? If so, why does the newbies
page (http://www.freebsd.org/projects/newbies.html#fbsd) say to use the
latest mainstream release, which is 5.1-RELEASE? If I do figure all of this
out, please let me know if you want me to write something for other newbies.

The FreeBSD project is in an interesting state right now.  We have two sets
of RELEASEs -- one from the -STABLE branch (4.x) and one from the -CURRENT
branch (5.x).  The reason for this is because there's been a lot of major
redesign work in 5.x and it's taking a while for it to solidify.  Hence, the
5.x releases are for convenience for those who want to help increase it's
stability by installing it on non-production (or non-critical production)
systems.

Since you're running production systems, do what the front page tells you -- 
install 4.8, the latest "production" release.
If you were someone just messing around with FreeBSD for the first time,
we'd tell you to install 5.1, the latest "new technology" release, since
you'd help us find problems.

--
Matt Emmerton

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


Re: apache + Frontpage extensions = I have a mess

2003-07-30 Thread Matthew Emmerton
> Greetings,
> I am running 4.7 stable as I previously posted.  I was running apache13
> without frontpage.
> Due to measure beyond my control I must enable frontpage extensions on my
> webserver.

Please tell your boss that running FP extensions is an invitation for
hackers and will be more of a maintainance headache than anything.

> I went to /usr/ports/www/apache13 and did make deinstall.  I then went to
> /usr/ports/www/mod_frontpage and did a make.  Then a makeinstall.  I then
> went into
> /usr/ports/www/apache13-fp and did a make, followed by a make install.  I
> went
> to /usr/local/etc/apache and edited httpd.conf to change the DocumentRoot
> and
> Directory statements.  When I visit my website I can see my data.  When I
> try to
> publish from FrontPage 2000 it tells me that the server is not running
> frontpage
> extensions and I can only publish with FTP.
>
> What am I screwing up here ?  Is there a cookbook or tutorial that will
lay
> this
> out for me so I can get this working ?

Please read /usr/ports/ww/mod_frontpage/pkg-message.  You should have seen
this message when you did the "make install" in mod_frontpage.  You have to
do all of these steps in order to configure a website for FrontPage.

--
Matt Emmerton

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


Re: fdisk ID for FreeBSD

2003-07-31 Thread Matthew Emmerton
A5 is hexadecimal for 165.

- Original Message - 
From: "mess-mate" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 31, 2003 4:31 PM
Subject: Re: fdisk ID for FreeBSD


> Sorry, I didn't find it, but fdisk say's 'a5'.
> mess-mate
>
> On Thu, 31 Jul 2003 16:20:45 -0400
> Mike Tancsa <[EMAIL PROTECTED]> wrote:
>
> |
> | 165.
> |
> | Its in the man pages as well which you can see off www.freebsd.org.
> |
> |  ---Mike
> |
> | At 10:10 PM 31/07/2003 +0200, mess-mate wrote:
> | >Hi,
> | >what ID do I use on fdisk for a FreeBSD partition ?
> | >( for ex. 83 for a linux partition)
> | >thanks
> | >mess-mate
> | >___
> | >[EMAIL PROTECTED] mailing list
> | >http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> | >To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
> |
> | ___
> | [EMAIL PROTECTED] mailing list
> | http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> | To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
>

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


Re: Floppy drive confusion

2003-08-14 Thread Matthew Emmerton
> OK, my fist trime trying to mount a floppy under FreebSD (4.8) isn't going
so
> well.
>
> I've looked over the net and I think I have a problem.
>
> I tried the command:
>
> mount_msdos /dev/fd0 /mnt
>
> and variants with the slices added.  In all cases tried so far I get the
> error:
>
> mount_msdos: /dev/fd0: Device not configured
>
> Here's where I think the problem lies:  (from my dmesg.boot)
>
> fdc0:  at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
> fdc0: FIFO enabled, 8 bytes threshold
>
> The significant thing here is, there's no fd0 device after the controller
is
> detected.  I assume this must be why I can't mount my floppy.  Any idea
how I
> can get fd0 to show up?

Do you have a 'device fd0' line in your kernel config, like this?

device  fdc0at isa? port IO_FD1 irq 6 drq 2
device  fd0 at fdc0 drive 0

--
Matt Emmerton

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


Re: FreeBSD 4.8 install issues

2003-08-23 Thread Matthew Emmerton
> I downloaded the 4.8 iso images from freebsd.org and began an install
> on a box I recently built for this purpose.  I could not find a
> description of the various CDs (CD1, CD2, CDmini), so I grabbed them
> all.   I'm still not sure what the purpose of each is, but I started
> with CD1 (seemed logical).
>
> I had no trouble following the manual to get the installation going,
> however I have two problems:
>
> 1)  There are only 6 network adapters listed in the kernel config
> screen, and the Realtec is not one of them.  Realtec cards are
> supposedly supported according to the hardware compatibility list.

The network adapters listed in the kernel config are ISA NICs that require
configuration.  If you have a PCI NIC that is supported, it will be
auto-detected.

> 2)  Towards the end of the installation, I get the following error:
> "unable to get packages/INDEX"
>
> I'm left with a bootable and what appears to be a fully functional
> system when sysinstall is complete, except of course, I have no network
> accessibility.
>
> Can anyone clarify these issues for me?

When your system boots, all of the device probe information is saved and can
be displayed by the "dmesg" program.  Are there any lines in your dmesg
output that say "unknown device"?  It's possible that while you have a
RealTek-based card, the FreeBSD driver doesn't recognize it as a compatible
card.

--
Matt Emmerton

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


Re: IBM Emulation

2003-08-26 Thread Matthew Emmerton
> My department has been tasked with trying to find an alternative to
Windows
> in our organization. I can get the normal workplace items, spreadsheets,
> word, etc taken care of, but I have one issue that eludes me. We have an
> application server running on an IBM RS6000 running AIX 4.3 that requires
> IBM 3151 terminal emulation. Is there anyone that has successfully been
able
> to utilize a termcap for the IBM3151 so that the character sets and
function
> keys map accordingly when using an xterm session to an IBM RS6000 system
> running AIX?

The naive approach would be to copy the IBM3151 definition from the termcap
on AIX to FreeBSD.
I took a look on the AIX 4.3 (and 5.1) machines that I have access to and
there is no such definition.

What do you currently set your TERM variable to on AIX to get the desired
emulation?

--
Matt Emmerton

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


  1   2   >