Re: Why do you use a devil as a mascot?

2010-11-20 Thread Andrew Falanga
2010/11/11 José Silveira jmlsilve...@gmail.com

 Why do you use a devil as a mascot?

 For me it is nonsense... It makes Christians, Jwishes and Muslins run away!


Jose,

So many have replied already and I truthfully haven't read each post.  I did
want to say something about this though since I am a Christian.  Early on I
was a little troubled.  However, this was due, not to some tennent of the
faith but rather to my ignorance of my own faith and immaturity.  The
reality is, that mascot for FreeBSD has nothing whatsoever to do with Satan.

Andy
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Invitation to connect on LinkedIn

2009-10-26 Thread Andrew Falanga
LinkedIn


Andrew Falanga requested to add you as a connection on LinkedIn:
--

Jerry,

I'd like to add you to my professional network on LinkedIn.

- Andrew

Accept invitation from Andrew Falanga
http://www.linkedin.com/e/1o3bCy0npDqyzD3wjrAbLV0nLmqMr8R-MulSGyDnb3nr/blk/I1536239637_2/pmpxnSRJrSdvj4R5fnhv9ClRsDgZp6lQs6lzoQ5AomZIpn8_cBYTcPoVcP8ScPkNiiZyhm5js397biYRdPoMcP0OczwLrCBxbOYWrSlI/EML_comm_afe/

View invitation from Andrew Falanga
http://www.linkedin.com/e/1o3bCy0npDqyzD3wjrAbLV0nLmqMr8R-MulSGyDnb3nr/blk/I1536239637_2/39vdPcSejcOdzcRckALqnpPbOYWrSlI/svi/


 
--
(c) 2009, LinkedIn Corporation

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: having problems copying a dvd

2009-09-02 Thread Andrew Falanga
On Wed, Sep 2, 2009 at 7:53 AM, Sergio de Almeida Lenzi 
lenzi.ser...@gmail.com wrote:

 Hello

 Thanks Roland for the parameters in the mplayer/mencoder...

 To make things easier.. I recomend to create a profile
 in the directory ~/.mplayer/mencoder.conf with the content:
 =
 [pal]
 oac=lavc=yes
 ovc=lavc=yes
 lavcopts=vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=6000:vbitrate=4000
 Lavcopts=keyint=15:trell=yes:mbd=2:precmp=2:subcmp=2:cmp=2:dia=-10
 lavcopts=predia=-10:cbp=yes:mv0=yes:aspect=16/9
 lavcopts=vqmin=1:lmin=1:dc=10:vstrict=0
 lavcopts=acodec=ac3:abitrate=192
 lavcopts=lumi_mask=0.2:dark_mask=0.15:scplx_mask=0.2:tcplx_mask=0.1
 vf=scale=720:576,harddup=yes
 af=lavcresample=48000
 mpegopts=format=dvd:tsaf=yes
 of=mpeg=yes
 srate=48000
 channels=2
 ofps=25

 [pal_cinemascope]
 profile=pal
 vf=scale=720:432,expand=720:576,harddup=yes
 ==

 Or using the options from Roland
 extract the stream (as Roland said...)  mplayer dvd://1 -dumpstream
 -dumpfile dvd.mpg
 crop detect...   mplayer -vf cropdetect dvd.mpg

 and then finally encode with mencoder using the profile above and
 Roland's example...

 mencoder -profile pal -vf crop=704:416:10:80 dvd.mpg -o film.mpg

 the result will be a high definition video with 1024x576 PAL (25 fps)
 16:9 aspect with audio AC3 192Kbps (plays using HDMI)
 in any dvd player... or in your computer.
 if the source (dvd.mpg) is in 2.35/1 ratio use -profile pal_cinemascope
 and mencoder will adjust the aspect for the video.


 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org


To both, thanks a bunch for this information.  This is awesome!  I can't
wait to install and try.

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Firefox 3.5 on FBSD

2009-08-26 Thread Andrew Falanga
Hi,

Well, I installed firefox 3.5 on my box at home but it wasn't working
correctly.  Every time I'd start it I'd get, Bad system call (core dump),
or something similar.  Does anyone here run firefox 3.5 on their box?  If
so, what is the trick?

Andy

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


X errors when I open gvim

2009-07-25 Thread Andrew Falanga
Hi,

When I open gVim from the command line, I get the following errors:

Xlib:  extension Generic Event Extension missing on display :0.0.
Xlib:  extension Generic Event Extension missing on display :0.0.
Xlib:  extension Generic Event Extension missing on display :0.0.
Xlib:  extension Generic Event Extension missing on display :0.0.
Xlib:  extension Generic Event Extension missing on display :0.0.
Xlib:  extension Generic Event Extension missing on display :0.0.


How do I fix this?

Andy

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: What flash players should be used from ports?

2009-04-15 Thread Andrew Falanga
On Tue, Apr 14, 2009 at 6:03 PM, John Gage grepk...@gmail.com wrote:

 You have three viable choices, I'd recommend the third:
 1. ports/graphics/gnash or gnash-devel (high CPU utilization on FreeBSD)
 2. ports/www/swfdec-plugin [ ports/graphics/swfdec itself is a
 standalone flash player, the plugin port installs a plugin for firefox
 usage.  0.8.4 is the latest version for the standalone player(which,
 according to the official swfdec site, can play youtube video just
 fine). However, the plugin port of swfdec is still at version 0.8.2
 and does not work with youtube videos at the moment.]
 3. ports/emulators/linux_base-fc4 + ports/www/linux-flashplugin9 +
 ports/www/nspluginwrapper (this method is the most complex, but
 usually yields the fastest-responding flash and best results, at the
 moment.)

 On Tue, Apr 14, 2009 at 7:14 PM, Vasadi I. Claudiu Florin wrote:
 
 
  Currently running i386.  I'm using firefox 3.0.4 (need to upgrade, wow
  didn't realize that).
 
 
 
  Hy,
 
 
  There are several ways to use flash player in FreeBSD X environment. One
 is,
  as someone previously pointed out, gnash. Another is by using
  nspluginwrapper and linux-flashplugin. Yet another is by using swfdec.
  A god start would be http://freebsd.langhans.com.pl/af/index.html and

 This link from Vasadi should be very helpful to you, I have found that
 the most stable fedora core base for myself has been 4.  I had a great
 deal of trouble with npviewer.bin core dumping and locking up firefox
 really nicely with fedora base 8, so I'd stick with 4.

 
 http://www.google.ro/search?hl=roq=freebsd+firefox+flash+playerbtnG=C%C4%83utare+Googlemeta=aq=foq=
  and of course http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/but
  aspecially
 
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/desktop-browsers.html
  .  Hope that triggered your appetite.
 


Thanks everyone.  I'll be getting into this as time permits over the next
few days I hope.

Andy

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


What flash players should be used from ports?

2009-04-14 Thread Andrew Falanga
Hi,

I'd like to finally get a flashplayer installed for use with Firefox.  Which
one should I use from the ports system?  I found this one that looks
promising:

/usr/ports/www/flashplugin-mozilla

Is the recommended one, or should I choose another?

Andy

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: What flash players should be used from ports?

2009-04-14 Thread Andrew Falanga
On Tue, Apr 14, 2009 at 3:41 PM, John Gage grepk...@gmail.com wrote:

 On Tue, Apr 14, 2009 at 4:47 PM, Andrew Falanga af300...@gmail.com
 wrote:
 
  Hi,
 
  I'd like to finally get a flashplayer installed for use with Firefox.
  Which
  one should I use from the ports system?  I found this one that looks
  promising:
 
  /usr/ports/www/flashplugin-mozilla
 
  Is the recommended one, or should I choose another?
 
  Andy

 I'd like to give you a detailed, step-by-step procedure; but first can
 you list your:

 1. CPU architecture (e.g. i386, amd64, etc.)
 2. Firefox version branch (e.g. /usr/ports/www/firefox == firefox 2.*
 branch, /usr/ports/www/firefox3 == firefox 3.* branch)


Currently running i386.  I'm using firefox 3.0.4 (need to upgrade, wow
didn't realize that).


-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: having trouble with OpenOffice

2009-02-06 Thread Andrew Falanga
On Thu, Feb 5, 2009 at 10:08 PM, Adam Vande More amvandem...@gmail.comwrote:

 af300...@gmail.com wrote:

 Hi,

 Tonight I finally took the bull by the horns and got OpenOffice installed.
 However, I'm not having a problem that I haven't found an answer to yet but
 seems to be related to the X server (from searches on the net). So, I do
 this:

 [a...@sniper /usr/home/andy]$ /usr/local/bin/openoffice.org-2.4.2-scalc
 I18N: Operating system doesn't support locale en_US
 The application cannot be started.
 The component manager is not available.
 Segmentation fault (core dumped)


 As you can tell, OpenOffice failed because my OS doesn't support locale
 en_US. Huh!?! I'm using the English version. In fact, the only way to
 consider me as being bilingual is something of a matter of mental gymnastics
 because English is spoken in England and to me, England is a foreign
 country. Thus, I'm bilingual, or at the least, I speak a foreign language.

 Never the less, how would this be fixed?

 Andy

  Is there a reason you're not using /usr/ports/editors/openoffice.org-3?



 http://lists.freebsd.org/pipermail/freebsd-openoffice/2006-November/002847.html


I didn't want to wait for compilation.

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: having trouble with OpenOffice

2009-02-06 Thread Andrew Falanga
On Thu, Feb 5, 2009 at 10:08 PM, Adam Vande More amvandem...@gmail.comwrote:

 af300...@gmail.com wrote:

 Hi,

 Tonight I finally took the bull by the horns and got OpenOffice installed.
 However, I'm not having a problem that I haven't found an answer to yet but
 seems to be related to the X server (from searches on the net). So, I do
 this:

 [a...@sniper /usr/home/andy]$ /usr/local/bin/openoffice.org-2.4.2-scalc
 I18N: Operating system doesn't support locale en_US
 The application cannot be started.
 The component manager is not available.
 Segmentation fault (core dumped)


 As you can tell, OpenOffice failed because my OS doesn't support locale
 en_US. Huh!?! I'm using the English version. In fact, the only way to
 consider me as being bilingual is something of a matter of mental gymnastics
 because English is spoken in England and to me, England is a foreign
 country. Thus, I'm bilingual, or at the least, I speak a foreign language.

 Never the less, how would this be fixed?

 Andy

  Is there a reason you're not using /usr/ports/editors/openoffice.org-3?



 http://lists.freebsd.org/pipermail/freebsd-openoffice/2006-November/002847.html



Thanks for the thread, by the way.  Tonight, when I get home, I'll give this
a try.  On the heals of my last post, I should also mention that I failed to
find a pre-built package for version 3 so I used version 2.  I downloaded
this from the FreeBSD ftp server from packages-stable.

Andy


-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: cups issue, unsupported format

2009-01-25 Thread Andrew Falanga
On Sat, Dec 6, 2008 at 4:03 AM, Michael Powell nightre...@verizon.netwrote:

 af300...@gmail.com wrote:

  Hi,
 
  I'm working on getting cups working and I've installed the hplip port
  and the cups program used that to install the printer. At least, there
 was
  an HPLIP in a list in one of the pages during the setup. My printer is
  an old HP LaserJet 4+ which I've connected through the parallel port. My
  URI for the printer is parallel:/dev/lp0. When I went to do the test page
  I got this error, Unsupported format 'application/postscript'. Here's
  the problem, I chose a driver which, though I don't remember the full
  string in cups, was a 4/5 PCL driver. So, why is it trying to print using
  postscript?
 

 It's been a while since I've done a virgin cups install so I'm not real
 current on what it might be like now. You start out with installing the
 /usr/ports/print/cups metaport and this should pull in a few other sub
 ports as dependencies.

 The port cups-pstoraster is what coverts postscript print output into
 PCL, utilizing (IIRC) one of the ghostscript ports. Perhaps your install
 may be incomplete. In the past I've just installed the metaport and it
 happily sucked everything else in automagically.

 -Mike



 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org


Truly sad that it took  me this long to get to this,  but thanks for the
tip.  I installed that port and everything indeed does work much better.
Took me some doing but I've finally got my LJ4+ printing.  Cool!  Now,
though, I've got to go and buy a new toner/drum :-(.

Andy

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Odd behavior after upgrading to 7.0-p7

2009-01-10 Thread Andrew Falanga
Hi,

I installed 7.0 i386 and all was working great.  I upgraded to p7 and now when 
I end my X session, I have kdm loading, it doesn't bring me to a login 
prompt.  It dumps me on console 0 and I have to kill the kdm-bin process to 
return to a kdm login.

This didn't happen before upgrading to p7.  What would have changed that would 
not prevent this?

Thanks,
Andy
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: postgresql network access problem

2008-12-31 Thread Andrew Falanga
On Wed, Dec 31, 2008 at 5:42 PM, stan st...@panix.com wrote:

 I am having a bit of a problem enabling remote access to postgress on my
 7.1 system.

 I have added to postgresql.conf

 listen_addresses = '*'

 and to pg_hba.conf

 hostall all XXX.159.77.0/24 trust

 XX is a real number, and is the first octect of the network that this
 mahcine lives on

 Now, it appears that I alos need to add the -i, or -h flag to the
 invocation of postgress itslef, but I can't seem to get the rc.conf sysntax
 corrcet for that. What should this entry look like?


Stan,

I'm not aware of anything needed in /etc/rc.conf other than

postgresql_enable=YES

I know the argument of which you speak.  Lately, I've been using just
UNIX domain sockets for access to my databases but I do remember
having to use this argument, if memory serves it's the -i option, to
enable access on TCP (basically, it tells the daemon to open TCP
sockets when starting).  I would, instead of looking for an rc.conf
entry, edit the script that starts the postgresql server in
/usr/local/etc/rc.d.  From the following link,
http://www.freebsddiary.org/postgresql.php, if you're using a recent
server, perhaps 8.x, the file will be named postgresql.  If you're
using an older server, it will something like, 010.pgsql.sh.  Find
the appropriate line that starts the server and modify the arguments
there.

Hope this is of help to you.

Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


gmirror and the UFS file systems

2008-11-28 Thread Andrew Falanga
Hi,

I'm getting ready to move forward on enabling gmirror on my churches website 
server (FreeBSD 7.0-RELEASE p4).  I used defaults during the install (most 
importantly for this, the file system defaults).  I've read in the manual 
pages that the data for the mirror is contained in the last sector of the 
drive/partitions.  So, I want to mirror the entire drive (ad4) to the second 
drive (ad5).  This server doesn't yet have much data at all.  I'm wondering 
if I turn on this mirror, will anything important be overwritten in the last 
sector?

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


Installing gimp from ports, need a GTK+, what port is it

2008-11-23 Thread Andrew Falanga
HI,

I'm installing gimp from ports.  I've recently done a csup on my ports tree 
and was happily working through the issues that were coming up while 
installing.  Normally, the issues were only due to a particular package that 
was installed, such as poppler, being older than the one gimp wanted.  So, a 
call to portupgrade fixed it.

However, this one has me stumped (I haven't yet installed the gnomelogalyzer 
mentioned in the error to try that method, but I don't think I have to).  The 
configure script:
===  Configuring for gimp-app-2.6.1_2,1

stopped for:
checking for GTK+ - version = 2.12.5... no

A search for installed gtk packages on my system revealed this:
sniper# pkg_info | grep gtk
gtk-1.2.10_20   Gimp Toolkit for X11 GUI (previous stable version)
gtk-2.12.1_1Gimp Toolkit for X11 GUI (current stable version)
gtk-engines2-2.14.3 Theme engine for the Gtk+-2.0 toolkit
poppler-gtk-0.8.7   Gtk bindings to poppler
webkit-gtk2-0.0.30549_1 An opensource browser engine
wxgtk2-common-2.8.9 The wxWidgets GUI toolkit (common files)
wxgtk2-unicode-2.8.9 The wxWidgets GUI toolkit (Unicode)

The only thing in it that mentions GTK+ is the gtk-engines* port, but that 
has in the description, Theme engine for  Gtk+  Is this really the port 
to update, or is there something else I should update, or is there a port 
that isn't installed that I should install?  What port is this GTK+ anyway?

A make search name=gtk+ at /usr/ports revealed more stuff than my konsole 
window would scroll through, so there's quite a bit to know.  What package is 
it I'm looking for?

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


Installing HP LaserJet 4+ in CUPS

2008-11-16 Thread Andrew Falanga
Hi,

I finally bit the bullet as it were and switched from amd64 to i386 (too 
many programs I couldn't run, such as flashplayer and the nvidia drivers).  
Anyway, I'm getting things going again and I remember that I had to install a 
printer driver from ports for my HP LJ 4+ but I can't remember what it was.  
Could someone here please refresh my memory?

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


How long does it take to compile KDE4

2008-11-08 Thread Andrew Falanga
Hi

I'm trying to install in KDE 4 and it's been stuck on 
Generating k3iconviewsearchline.moc

for about 4 hours now.  My box is a an amd64 (running amd64 kernel) 1.8ghz 
w/1gb RAM.  I know that this request is quite relative based on hard 
hardware and such, but from those who have installed KDE4 from ports, can you 
give me the times it took you to compile?

There are two reasons I haven't stopped the process yet.  First, it's not 
acting like it's stuck, e.g. top shows that the system is 0.0% idle and the 
process, automoc4, isn't steady on a specific number it keeps going from 
~92% - ~98% WCPU usage.  This would seem to indicate that it's not stuck in a 
loop doing the same thing over and over but is really doing some work.  
Second, I've been around long enough to know that sometimes you just have to 
wait . . . a long time.

Any ideas on time to compile would be good.

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


Re: How to upgrade to KDE4

2008-11-07 Thread Andrew Falanga
On Wed, Nov 5, 2008 at 3:26 PM, RW [EMAIL PROTECTED] wrote:
 On Wed, 05 Nov 2008 06:52:06 -0800
 [EMAIL PROTECTED] wrote:
 the only
 thing that updated was the meta-port (I did a portupgrade -r too).

 Aside from the fact that there are separate kde meta-ports,
 portupgrade -r kde... updates the metaport and everything that depends
 on the metaport, not everything the metaport depends on.

Thanks for the clarification.  I think I had things backwards.

Also, as I'd like to go to KDE 4, should I do a make deinstall in
kdebase, or perhaps pkg_delete for the kde packages before installing?
 I know that the first respondent said the two versions could be run
in tandem, and while I've got plenty of disk space for this, it also
seems quite error prone.  What would be the recommended course?

Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how much memory can be support in FreeBSD system?

2008-11-04 Thread Andrew Falanga
On Tue, Nov 4, 2008 at 6:52 AM, Alex Zhang [EMAIL PROTECTED] wrote:
 Hi buddy.



 I'm a new comer and want to configure a Virtual server base on UNIX. The
 safe, steady and easy for maintenance is needed.

 Approximately 8GB memory will be mounted. Can anyone tell me how much memory
 can be supported in FreeBSD?

 Thanks.



 BR

 Alex



See
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/compatibility-memory.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Authentication with SSH using public keys

2008-11-03 Thread Andrew Falanga
On Fri, Oct 31, 2008 at 6:46 PM, आशीष शुक्ल Ashish Shukla
[EMAIL PROTECTED] wrote:
 In [EMAIL PROTECTED], Andrew Falanga wrote:

 Hi,

 My father recently setup a new 7.0-Release system for some web
 development.  I use ssh to login remotely.  I've normally not had any
 trouble configuring authentication through public key encryption using
 ssh-keygen and such.  I have for myself a id_rsa.pub and an id_rsa key pair
 that I use for this purpose.

 Normally, I just copy, via scp, the file id_rsa.pub to my
 ~/.ssh/authorized_keys file on the remote host and the next time I attempt a
 login all is well.  That is, I don't have to enter my password.  However, on
 my Dad's new machine, this isn't the case.  I still have to enter the
 password.

 Now, I've looked through his /etc/ssh/sshd_config file and nothing in
 there looks odd, or different, from other remote hosts I do this on.  So,
 I'm embedding a copy/paste of an ssh login session on my father's host using
 -v -v to ssh:

 [/usr/home/andy/MCH]
 - ssh -v -v malumgat

 [...]

 debug1: Authentications that can continue: publickey,keyboard-interactive
 debug1: Next authentication method: publickey
 debug1: Trying private key: /home/andy/.ssh/identity
 debug1: Offering public key: /home/andy/.ssh/id_rsa
 debug2: we sent a publickey packet, wait for reply
 debug1: Authentications that can continue: publickey,keyboard-interactive

 It seems OpenSSH (on your dad's box) hasn't recognized your private key, so
 how about checking permissions of ~/.ssh/authorized_keys and ~/.ssh on his
 box. Or how about enabling verbose logging on his box, using 'LogLevel'
 parameter in sshd_config.

 HTH
 Ashish Shukla

The permissions on the machine where it works:
[www:/home/afalanga]
- ls -la .ssh/
total 6
drwxr-xr-x  2 afalanga  staff  512 Sep 28 03:33 .
drwxr-xr-x  3 afalanga  staff  512 Oct 29 08:31 ..
-rw-r--r--  1 afalanga  staff  393 Sep 28 03:33 authorized_keys

The permissions on the machine where it doesn't work:
[EMAIL PROTECTED] ~]$ ls -la .ssh/
total 6
drwxrwxr-x  2 andy  wheel  512 Oct 10 04:30 .
drwxr-xr-x  4 andy  wheel  512 Oct 31 06:30 ..
-rw-r--r--  1 andy  wheel  393 Oct 28 10:01 authorized_keys

I see a difference in that the directory on the machine where it
doesn't work is writable to the group, but on the machine where it
does work the directory isn't writable.  Other than that, the
permissions don't look different, do they?

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

Re: Authentication with SSH using public keys

2008-11-03 Thread Andrew Falanga


 debug1: Authentications that can continue: publickey,keyboard-interactive
 debug1: Next authentication method: publickey
 debug1: Trying private key: /home/andy/.ssh/identity
 debug1: Offering public key: /home/andy/.ssh/id_rsa
 debug2: we sent a publickey packet, wait for reply
 debug1: Authentications that can continue: publickey,keyboard-interactive

 It seems OpenSSH (on your dad's box) hasn't recognized your private key, so
 how about checking permissions of ~/.ssh/authorized_keys and ~/.ssh on his
 box. Or how about enabling verbose logging on his box, using 'LogLevel'
 parameter in sshd_config.

 HTH
 Ashish Shukla


Following onto the e-mail I made before, apparently that little permissions 
difference for the directory, .ssh, was the problem.  Changing it to 644 has, 
apparently, fixed the problem.

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


Authentication with SSH using public keys

2008-10-31 Thread Andrew Falanga
Hi,

My father recently setup a new 7.0-Release system for some web development.  I 
use ssh to login remotely.  I've normally not had any trouble configuring 
authentication through public key encryption using ssh-keygen and such.  I 
have for myself a id_rsa.pub and an id_rsa key pair that I use for this 
purpose.

Normally, I just copy, via scp, the file id_rsa.pub to my 
~/.ssh/authorized_keys file on the remote host and the next time I attempt a 
login all is well.  That is, I don't have to enter my password.  However, on 
my Dad's new machine, this isn't the case.  I still have to enter the 
password.

Now, I've looked through his /etc/ssh/sshd_config file and nothing in there 
looks odd, or different, from other remote hosts I do this on.  So, I'm 
embedding a copy/paste of an ssh login session on my father's host 
using -v -v to ssh:

[/usr/home/andy/MCH]
- ssh -v -v malumgat
OpenSSH_4.5p1 FreeBSD-20061110, OpenSSL 0.9.7e-p1 25 Oct 2004
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to malumgat [24.59.91.121] port 22.
debug1: Connection established.
debug1: identity file /home/andy/.ssh/identity type -1
debug2: key_type_from_name: unknown key type '-BEGIN'
debug2: key_type_from_name: unknown key type '-END'
debug1: identity file /home/andy/.ssh/id_rsa type 1
debug1: identity file /home/andy/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.5p1 
FreeBSD-20061110
debug1: match: OpenSSH_4.5p1 FreeBSD-20061110 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.5p1 FreeBSD-20061110
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: 
diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-dss,ssh-rsa
debug2: kex_parse_kexinit: 
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,[EMAIL
 PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: 
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,[EMAIL
 PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: 
hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: 
hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,[EMAIL PROTECTED],zlib
debug2: kex_parse_kexinit: none,[EMAIL PROTECTED],zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: 
diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-dss
debug2: kex_parse_kexinit: 
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,[EMAIL
 PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: 
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,[EMAIL
 PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: 
hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: 
hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,[EMAIL PROTECTED]
debug2: kex_parse_kexinit: none,[EMAIL PROTECTED]
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_init: found hmac-md5
debug1: kex: server-client aes128-cbc hmac-md5 none
debug2: mac_init: found hmac-md5
debug1: kex: client-server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102410248192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 132/256
debug2: bits set: 526/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'malumgat' is known and matches the DSA host key.
debug1: Found key in /home/andy/.ssh/known_hosts:9
debug2: bits set: 494/1024
debug1: ssh_dss_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/andy/.ssh/identity (0x0)
debug2: key: /home/andy/.ssh/id_rsa (0x5308a0)
debug2: key: /home/andy/.ssh/id_dsa (0x0)
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/andy/.ssh/identity
debug1: 

Re: Realtek 8111C?

2008-09-30 Thread Andrew Falanga
On Mon, Sep 22, 2008 at 8:58 PM, Sebastian [EMAIL PROTECTED] wrote:
 Andrew Falanga wrote:

 On Saturday 20 September 2008 12:14:57 Sebastian wrote:


 Da Rock wrote:


 I have used the compiled driver on 6.3 with success- but then I've used
 the driver linked in a post to drivers list. 7.0 is a no go.


 I tried to compile the current OEM Realtek driver under (v176) on fbsd
 6.3, but couldn't get it to build. My foo is a little thin here. :)



 Where did you get this OEM driver?


 The oem driver can be found here:

 http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1PNid=13PFid=5Level=5Conn=4DownTypeID=3GetDown=false

 It builds just fine on 6.3, once I read the file manual on how to build a
 kernel module.

 So far no problems running it with a fair amount of traffic.



Awesome!  Thanks.  If I've been understanding another thread on here,
it sounds like there's a FreeBSD driver coming in 7.1.

Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Setting up gmirror

2008-09-30 Thread Andrew Falanga
Hi,

I've just finished setting up a new web server, and if I get my DNS
stuff correct hopefully an e-mail server too, for my church.
Originally, the intention was to use RAID1 on the MOBO.  However, the
RAID controller on the MOBO consistently tried to make the SATA DVD
drive part of the RAID array and wouldn't boot the FreeBSD boot disk.
So, at the suggestion of another respondent here, I've decided to use
gmirror.

Now, it seems that gmirror is, perhaps, newer to FreeBSD than the
software RAID stuff in the Handbook.  That mentions ccd(4) and doesn't
make any mention of gmirror(8).  It seems like gmirror is rather easy
to work with, and more important, easy to recover from is hardware
fails.  In any event, I want to make sure I'm understanding the manual
page correctly because I don't have anything else to test this on
except the churches computer.  We have two Seagate 250gb SATA drives.
Identical drive models so their sizes are the same.  Is this the
command, from gmirror(8), the one I'll want to use?

 Create a mirror on disk with valid data (note that the last sector of the
 disk will be overwritten).  Add another disk to this mirror, so it will
 be synchronized with existing disk:

   gmirror label -v -b round-robin data da0
   gmirror insert data da1


Though in my case, da0 and da1 will be ad4 and ad5.  This seems to be
the one I'm looking for, I'm just scared of wiping out more than I
bargain for.

Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


The consequences of turning off sendmail

2008-09-27 Thread Andrew Falanga
This question comes from complete ignorance about this stuff (what
happens when turning off sendmail), but if I turn off sendmail will
system messages still get delivered?  Also, I'm going to be using this
box as a web server and I'm using Joomla!.  If I turn this off, will I
still get the notifications that new users have signed on, etc.?  I'd
like to turn it off because the box doesn't sit inside of a fully
qualified domain (it sits inside a 192.168.x/24 network), but will
host web services for www.whitneybaptist.org.  Obviously, requests
sent to 72.24.34.252 on port 80 are forwarded to this box (actually,
internally it's 192.168.2.23).  Also, (for those who have endured
helping me work through the issues with our mail server) until I get
things worked out with DNS this new server will not be hosting e-mail
for this domain (whitneybaptist.org), that's temporarily being done at
google mail.

So, basically, what sort of trouble am I going to get into by turning
off sendmail?  Also, I think I'm going to implement DNS, an internal
thing, to make this box happy and then point the resolver to use the
Internet DNS servers for everything else.

Thanks for any help,
Andy

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: The consequences of turning off sendmail

2008-09-27 Thread Andrew Falanga
On Sat, Sep 27, 2008 at 8:20 PM, Sahil Tandon [EMAIL PROTECTED] wrote:
 Andrew Falanga [EMAIL PROTECTED] wrote:

 This question comes from complete ignorance about this stuff (what
 happens when turning off sendmail), but if I turn off sendmail will
 system messages still get delivered?  Also, I'm going to be using this
 box as a web server and I'm using Joomla!.  If I turn this off, will I
 still get the notifications that new users have signed on, etc.?  I'd
 like to turn it off because the box doesn't sit inside of a fully
 qualified domain (it sits inside a 192.168.x/24 network), but will
 host web services for www.whitneybaptist.org.  Obviously, requests
 sent to 72.24.34.252 on port 80 are forwarded to this box (actually,
 internally it's 192.168.2.23).  Also, (for those who have endured
 helping me work through the issues with our mail server) until I get
 things worked out with DNS this new server will not be hosting e-mail
 for this domain (whitneybaptist.org), that's temporarily being done at
 google mail.

 So, basically, what sort of trouble am I going to get into by turning
 off sendmail?  Also, I think I'm going to implement DNS, an internal
 thing, to make this box happy and then point the resolver to use the
 Internet DNS servers for everything else.

 You can turn off the Sendmail daemon so that it does not actually listen
 for incoming connections or act as an MTA in the conventional sense.
 But local utilities like cron can still invoke the /usr/sbin/sendmail
 command to send you notifications.

 http://lists.freebsd.org/pipermail/freebsd-questions/2005-December/107610.html


Thanks, just wanted to make sure before doing it.

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


Can't build all in /usr/src/crypto/openssh

2008-09-25 Thread Andrew Falanga
Hi,

I've just updated my sources for 6.2-RELEASE.  It took me from p11 to
p12.  The changes were quite minor.  Only changes were to UPDATING
(obviously), channels.c in the openssh directory and a newvers.sh file
in /usr/src/conf.  So, instead of rebuilding world, since the UPDATING
notes say that the changes only affect sshd, I'm following the
instructions in the handbook for section, 23.4.14.1. Do I need to
re-make the world for every change?.  The instructions state, ... go
to the appropriate sub-directories and make all install.  However,
when I do this I get, make: don't know how to make all.  Stop.

So, what do I tell it to do?  Especially, considering that the
Makefile.in in this directory (/usr/src/crypto/openssh), appears to
have a default rule of all.

Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Can't build all in /usr/src/crypto/openssh

2008-09-25 Thread Andrew Falanga
On Thu, Sep 25, 2008 at 9:49 AM, Mel
[EMAIL PROTECTED] wrote:
 On Thursday 25 September 2008 17:33:56 Andrew Falanga wrote:
 Hi,

 I've just updated my sources for 6.2-RELEASE.  It took me from p11 to
 p12.  The changes were quite minor.  Only changes were to UPDATING
 (obviously), channels.c in the openssh directory and a newvers.sh file
 in /usr/src/conf.  So, instead of rebuilding world, since the UPDATING
 notes say that the changes only affect sshd, I'm following the
 instructions in the handbook for section, 23.4.14.1. Do I need to
 re-make the world for every change?.  The instructions state, ... go
 to the appropriate sub-directories and make all install.  However,
 when I do this I get, make: don't know how to make all.  Stop.

 So, what do I tell it to do?  Especially, considering that the
 Makefile.in in this directory (/usr/src/crypto/openssh), appears to
 have a default rule of all.


 Openssh/ssl is distributed accross the source tree. crypto/openssh only
 contains the imported sources, not the files that FreeBSD actually uses to
 build them.
 cd /usr/src/secure  make all install should work for you (but will also
 rebuild openssl and sendmail).

 --
 Mel

 Problem with today's modular software: they start with the modules
and never get to the software part.



Because this will rebuild OpenSSL, would it be advisable to rebuild
the world or is this sufficient?

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Can't build all in /usr/src/crypto/openssh

2008-09-25 Thread Andrew Falanga

 Bad choice of words on my part. It won't rebuild openssl, if you still
 have /usr/obj/usr/src/* from last time. But it will go through the motions to
 see if stuff needs to be rebuilt. It will only rebuild libssh and anything
 that uses libssh:
 # find . -name 'Makefile' -exec grep channels.c {} \+
 ./secure/lib/libssh/Makefile:   canohost.c channels.c cipher.c cipher-acss.c
 cipher-aes.c \

 # find . -name 'Makefile' -exec grep -l 'DPADD.*LIBSSH' {} \+
 ./lib/libpam/modules/pam_ssh/Makefile
 ./secure/libexec/sftp-server/Makefile
 ./secure/libexec/ssh-keysign/Makefile
 ./secure/usr.bin/scp/Makefile
 ./secure/usr.bin/sftp/Makefile
 ./secure/usr.bin/ssh/Makefile
 ./secure/usr.bin/ssh-add/Makefile
 ./secure/usr.bin/ssh-agent/Makefile
 ./secure/usr.bin/ssh-keygen/Makefile
 ./secure/usr.bin/ssh-keyscan/Makefile
 ./secure/usr.sbin/sshd/Makefile

 The pam module is the only one outside secure that depends on libssh.

 --

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


Re: Realtek 8111C?

2008-09-21 Thread Andrew Falanga
On Saturday 20 September 2008 12:14:57 Sebastian wrote:
 Da Rock wrote:
  I have used the compiled driver on 6.3 with success- but then I've used
  the driver linked in a post to drivers list. 7.0 is a no go.

 I tried to compile the current OEM Realtek driver under (v176) on fbsd
 6.3, but couldn't get it to build. My foo is a little thin here. :)

 Would you be able to send me your successful 6.3 driver? I'd like to
 test it on FreeNAS.

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

Where did you get this OEM driver?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kill -KILL fails to kill process

2008-09-19 Thread Andrew Falanga
On Fri, Sep 19, 2008 at 11:41 AM, Steve Franks [EMAIL PROTECTED] wrote:
 Which I thought was impossible.  Neophyte question, no doubt, but
 googling was less than helpful (which probably means I'm fubar, no
 doubt).  Anyway, I have a certain common X app (xmms) that likes to
 hang (since my last buildworld, it seems) when when it's right about
 to open a file-choosing dialog.  The only way to get rid of it is to
 reboot.  Now, given the behavior, I'd have to suspect something
 underlying as the true source of the problem, but shouldn't kill kill
 it anyway - I mean, isn't there some way to kill a process that's
 stuck waiting on a child process?  I haven't figured out how to ps
 -ax grep | some neublous file dialog process yet...so I'm sort of
 stuck wanting to kill the parent...


I remember the first time this happened to me.  I was stunned.  I
thought kill -9 (or kill -KILL) would kill any process.  Even the
manual page for kill, kill(1), says that this signal is non-catchable,
non-ignorable.  In my experience, there's only one condition that will
cause this (perhaps those more experienced here than I know of
others).  This can happen when your process blocks on pending file
I/O.  The process opens a file descriptor, could even be a socket, and
leaves it marked as blocking.  The kernel then blocks the process
while awaiting I/O in the buffers.  In this blocked state, the signal
is prevented from being delivered.  If you left the process open long
enough, perhaps assuming it's not completely hung, the process would
get what it's waiting for (hopefully), then move on.  At that very
moment, the kill signal would be delivered and the process would die
(as you wanted it to so very long ago when you delivered that signal
to it).

I don't run xmms so perhaps some other kind soul here will know what's
going on.  However, that's why your process didn't die.

Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Kill NFS connection

2008-09-16 Thread Andrew Falanga
On Monday 08 September 2008 13:01:08 patrick wrote:
 Is there a way to kill an NFS connection to a server that's stopped
 responding? When I try to simply unmount it, I get a never-ending
 stream of server not responding messages. (Using FreeBSD 6.2, BTW.)

 Thanks,

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

Another respondent already mentioned umount -f ...  I wanted to clear up 
something you may, or may not, know about NFS and that is that there isn't 
really a connection.  Unless the behaviour changed in FBSD 7, when mounting 
NFS; UDP is used.  UDP is a connectionless protocol in the IP suite of 
protocols.  Because of this, detecting a lost connection is rather 
problematic.  Usually, timeouts are used when sending new information, or 
requesting something from the server.

I'd read through the mount_nfs(8) manual page just to be sure of options that 
may help out in this case.  The -c -t -D and some others looked rather 
promising.  In my experience, it's usually pretty difficult to unmount an 
unresponsive NFS mount.  In fact, *and only because of the environment in 
which I was working*, I usually ended up rebooting my box.  This is because I 
didn't want to wait for the timeouts (painfully slow in some default 
configurations; upwards of 10 minutes or more).  This probably isn't feasible 
if your system hosts services for other clients.

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


Re: mail server DNS configuration questions

2008-09-10 Thread Andrew Falanga

Patrick Mahan wrote:



Andrew Falanga presented these words - circa 9/6/08 6:28 PM-

Hi,

Well, my clients at church are still having issues and after working 
with George, a respondant to my original questions, I think that 
most, if not all, of my problems are related to DNS and how we've got 
it improperly configured.


First, a crude drawing of how our mail server exists in the world:

192.168.2.x/24   72.24.23.252  lot's of networks
Private Network -- CableOne -- Internet

Now, our mail server's IP is 192.168.2.23.  On the router, he (the 
person at whose house the mail server is) has IP forwarding setup so 
that mail get's sent to our FreeBSD machine.  Using dig, here's the 
responses:


(from my FBSD machine at home, not the server)
[/usr/home/andy]
- dig +short -t MX whitneybaptist.org
10 mail.whitneybaptist.org.
[/usr/home/andy]
- dig +short -t A whitneybaptist.org
72.24.34.252
[/usr/home/andy]
- dig +short -x 72.24.34.252
34-252.72-24-cpe.cableone.net.

(from the church FBSD machine)
[/home/afalanga]
- hostname
whitbap
[/home/afalanga]
- ifconfig fxp0
fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=8VLAN_MTU
inet 192.168.2.23 netmask 0xff00 broadcast 255.255.255.255
ether 00:d0:b7:74:87:48
media: Ethernet autoselect (100baseTX full-duplex)
status: active
[/home/afalanga]
- cat /etc/resolv.conf
search McCutchanLAN
nameserver 192.168.2.1


It doesn't take a rocket scientist, or a computer scientist, to 
figure out we've got DNS issues.  I'm thinking that I should setup a 
domain within the 192.168.2.0/24 network on this box.  I've done this 
before, at work.  The question I've got is I've never actually 
integrated a domain like this to a domain on the Internet.  I'm 
thinking that we'll setup something like: internal.whitneybaptist.org 
with hosts in that sub-domain.





First, what are you trying to accomplish with the internal DNS?  Make 
it easier to
resolve machines in the 192.168.2.0 network?  Allow lookups external 
of the
192.168.2.0 network?  What machine is 'mail.whitneybaptist.com'?  Is 
it on the

192.168.2.0 network?  Is it reachable from the Internet?

Who is the owner of whitneybaptist.org DNS zone?  I show the following 
NS servers:


[EMAIL PROTECTED]/src/MPS/DocDownload 140  dig +short -t NS 
whitneybaptist.org

ns1.domaindirect.com.
ns2.domaindirect.com.
ns3.domaindirect.com.

Which is administered by tucows.com (Tucows, Inc) a seller of DNS 
services.


So, what would my DNS tables need to look like to make this happen.  
Also, to any knowledgable souls here, what RFCs address these issues?




You can read the RFC's if you want, but you would be better served to 
purchase
DNS and BIND, Fourth Edition, by Paul Albitz  Cricket Liu to learn 
how to

administer DNS.

Patrick


It's been quite some time since I last looked at that book.  It was at 
edition 3 then, and owned by the company I worked for so I didn't get to 
keep it.  I'll have to look into it.


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


Re: mail server DNS configuration questions

2008-09-10 Thread Andrew Falanga

George Davidovich wrote:

On Sat, Sep 06, 2008 at 07:28:28PM -0600, Andrew Falanga wrote:
  
Well, my clients at church are still having issues and after working with 
George, a respondant to my original questions, I think that most, if not all, 
of my problems are related to DNS and how we've got it improperly configured.


First, a crude drawing of how our mail server exists in the world:

192.168.2.x/24   72.24.23.252  lot's of networks
Private Network -- CableOne -- Internet

Now, our mail server's IP is 192.168.2.23.  On the router, he (the person at 
whose house the mail server is) has IP forwarding setup so that mail get's 
sent to our FreeBSD machine.  Using dig, here's the responses:


(from my FBSD machine at home, not the server)
[/usr/home/andy] - dig +short -t MX whitneybaptist.org
10 mail.whitneybaptist.org.
[/usr/home/andy] - dig +short -t A whitneybaptist.org
72.24.34.252
[/usr/home/andy] - dig +short -x 72.24.34.252
34-252.72-24-cpe.cableone.net.

(from the church FBSD machine)
[/home/afalanga] - hostname
whitbap
[/home/afalanga] - ifconfig fxp0
fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=8VLAN_MTU
inet 192.168.2.23 netmask 0xff00 broadcast 255.255.255.255
ether 00:d0:b7:74:87:48
media: Ethernet autoselect (100baseTX full-duplex)
status: active
[/home/afalanga] - cat /etc/resolv.conf
search McCutchanLAN
nameserver 192.168.2.1

It doesn't take a rocket scientist, or a computer scientist, to figure out 
we've got DNS issues.  I'm thinking that I should setup a domain within the 
192.168.2.0/24 network on this box.  I've done this before, at work.  The 
question I've got is I've never actually integrated a domain like this to a 
domain on the Internet.  I'm thinking that we'll setup something like: 
internal.whitneybaptist.org with hosts in that sub-domain.


So, what would my DNS tables need to look like to make this happen.  Also, to 
any knowledgable souls here, what RFCs address these issues?



Hello again, Andy.
 
What you're asking is actually a FAQ, but I'll spell things out anyway.

The following excerpt from RFC 1918 is most relevant:

If an enterprise uses the private address space, or a mix of
private and public address spaces, then DNS clients outside of
the enterprise should not see addresses in the private address
space used by the enterprise, since these addresses would be
ambiguous.  One way to ensure this is to run two authority
servers for each DNS zone containing both publically and
privately addressed hosts.  One server would be visible from the
public address space and would contain only the subset of the
enterprise's addresses which were reachable using public
addresses.  The other server would be reachable only from the
private network and would contain the full set of data,
including the private addresses and whatever public addresses
are reachable the private network.  In order to ensure
consistency, both servers should be configured from the same
data of which the publically visible zone only contains a
filtered version. There is certain degree of additional
complexity associated with providing these capabilities.

That's a roundabout way of saying you can't mix and match private
non-routable addresses with public addresses in the same namespace.

Note the authoritative part.  Until CableOne delegates your assigned
netblock to your organisation, your public DNS server will not be
authoritative (it currently isn't!) for 72.24.34.252.  You can reference
RFC 2317 (classless in-addr.arpa delegation) for how that works.  As to
why you must be authoritative, I've already pointed out off-list how Bad
Things can happen when you're not, especially in regards to email where
reverse lookups are integral to How Things Work.
  


I could be wrong, but I think they've done something like this.  I 
administered DNS on an OpenBSD machine (2 of them actually) back in 
2000-2001.  Since then, I've done nothing with DNS administration.  I'm 
wondering what I need to get from CableOne to get this done.  Here's the 
result of a dig, on that mail server, for the IP address 72.24.34.252:


[/home/afalanga]
- dig -x 72.24.34.252

;  DiG 9.3.3  -x 72.24.34.252
;; global options:  printcmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 19747
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;252.34.24.72.in-addr.arpa. IN  PTR

;; ANSWER SECTION:
252.34.24.72.in-addr.arpa. 86333 IN PTR 
34-252.72-24-cpe.cableone.net.


;; AUTHORITY SECTION:
24.72.in-addr.arpa. 75566   IN  NS  NS1.cableone.net.
24.72.in-addr.arpa. 75566   IN  NS  NS2.cableone.net.

;; ADDITIONAL SECTION:
NS1.cableone.net.   3507IN  A   24.116.0.201
NS2.cableone.net.   69544

Re: mail server DNS configuration questions

2008-09-10 Thread Andrew Falanga

Sahil Tandon wrote:

Andrew Falanga [EMAIL PROTECTED] wrote:

  
It doesn't take a rocket scientist, or a computer scientist, to 
figure out we've got DNS issues.



What exactly is the problem though?  What problems are you having on 
the mail server that lead you to the above conclusion?


  
Clients in the churches private network cannot send mail using this 
server, though they can receive mail from it (POP).  The church has a 
private network, PN1, and the mail server sits at a church members house 
because he has a static IP address; let's call that PN2.  The router at 
his house is setup to forward traffic over port 25, and the POP port, to 
this server.  Also, just to further clarify, the Internet separates 
these two Private Networks.  However, this may not be entirely true as I 
think about it because at both locations, the ISP is CableOne using 
cable broadband.  So, though technically part of the Internet, the 
traffic shouldn't leave the CableOne domain.  Also, of interest, is that 
another of our pastors uses CableOne at home and is unable to send 
e-mail using the churches server from home.  However, from a coffee shop 
in town, that our pastors frequent, they are able to send mail.  It is 
my understanding that this coffee shop does not use CableOne.


So, just to make sure everyone's got it, the mail server sits in PN2.  
While diagnosing this, I connect to the server (using Putty) from a 
machine in PN1, using either a mail client or telnet I'm unable to make 
a connection to the mail server over port 25.  Using tcpdump during this 
putty session I do not even see the SYN packets for the start of the 
connection from the machines in PN1.  This is only when connecting to 
port 25.  Obviously, I can connect to the server because I'm using 
putty.  Also, I can see the SYN packets for the start of the connection 
when this same machine in PN1 attempts to connect to port 80.  The 
problem seems to be when trying to connect over port 25.  For some 
reason, the packets aren't being delivered to that address 
(72.24.34.252).  This happens if I try to telnet to 
mail.whitneybaptist.org or telnet to 72.24.34.252 on port 25.  The 
packets aren't being delivered.  They're being sent somewhere else, or 
lost in digital purgatory.


Now, from home (my home) let's call this PN3, I can send/receive mail 
using the church e-mail server.  I, however, don't use CableOne.  Are 
there routers that route traffic based on port number?  It's almost as 
if traffic, that originates within the CableOne domain and travels 
through, but not outside, the CableOne domain, doesn't get routed to the 
correct address when it's destined for port 25.


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


mail server DNS configuration questions

2008-09-06 Thread Andrew Falanga
Hi,

Well, my clients at church are still having issues and after working with 
George, a respondant to my original questions, I think that most, if not all, 
of my problems are related to DNS and how we've got it improperly configured.

First, a crude drawing of how our mail server exists in the world:

192.168.2.x/24   72.24.23.252  lot's of networks
Private Network -- CableOne -- Internet

Now, our mail server's IP is 192.168.2.23.  On the router, he (the person at 
whose house the mail server is) has IP forwarding setup so that mail get's 
sent to our FreeBSD machine.  Using dig, here's the responses:

(from my FBSD machine at home, not the server)
[/usr/home/andy]
- dig +short -t MX whitneybaptist.org
10 mail.whitneybaptist.org.
[/usr/home/andy]
- dig +short -t A whitneybaptist.org
72.24.34.252
[/usr/home/andy]
- dig +short -x 72.24.34.252
34-252.72-24-cpe.cableone.net.

(from the church FBSD machine)
[/home/afalanga]
- hostname
whitbap
[/home/afalanga]
- ifconfig fxp0
fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=8VLAN_MTU
inet 192.168.2.23 netmask 0xff00 broadcast 255.255.255.255
ether 00:d0:b7:74:87:48
media: Ethernet autoselect (100baseTX full-duplex)
status: active
[/home/afalanga]
- cat /etc/resolv.conf
search McCutchanLAN
nameserver 192.168.2.1


It doesn't take a rocket scientist, or a computer scientist, to figure out 
we've got DNS issues.  I'm thinking that I should setup a domain within the 
192.168.2.0/24 network on this box.  I've done this before, at work.  The 
question I've got is I've never actually integrated a domain like this to a 
domain on the Internet.  I'm thinking that we'll setup something like: 
internal.whitneybaptist.org with hosts in that sub-domain.

So, what would my DNS tables need to look like to make this happen.  Also, to 
any knowledgable souls here, what RFCs address these issues?

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


Re: Realtek RTL8111C and re(4) driver

2008-08-25 Thread Andrew Falanga
On Sunday 24 August 2008 18:20:58 cpghost wrote:
 
  Hello,
 
  I'm curious to know about this.  I just put together a computer for my
  church which has this NIC built in.  I've downloaded a driver which
  claims to be for FreeBSD 5.  Has anyone here any experience with it, or
  would anyone know if it's reliable and works?
 
  The web link is:
  http://driverscollection.com/?H=RTL8111CBy=RealTekSS=FreeBSD%205
 
  Andy

 This has just been suggested here, but it looks like it wouldn't
 support FreeBSD 7. Have you actually tried it? Which version of
 FreeBSD are you using?

 If you can use that machine you've just put together for a couple
 of tests (i.e. not yet being into production), could you please
 try the patches on kern/123123:

 http://www.freebsd.org/cgi/query-pr.cgi?pr=123123

 I don't have the hardware yet to test myself. I would be great
 to have at least basic RTL8111C support in re(4) soon. ;)

 Regards,
 -cpghost.


I have not yet tried it.  I was hoping to hear that some talented person here 
had already gotten it working.  Fortunately, I have some breathing room for 
this as the church has a functioning server that this is intended to replace.  
I just started back in school this semester today, so time is limited but I 
will give it a try time permitting of course.

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


SATA, RAID and AHCI

2008-08-25 Thread Andrew Falanga
Hi,

As I mentioned in response to a thread started by someone wanting drivers for 
a Realtek 8111c NIC, I'm building a server for our church.  We purchased an 
ASUS motherboard, M3A78 PRO (in case it matters or anyone cares).  Everyone 
is already aware of FreeBSD's lack of driver support for the RTL8111c NIC 
which, unfortunately, is embedded on this MOBO.

This question is about the storage settings for this board (ASUS' name for it 
is Storage Configuration).  In the CMOS (or whatever it's called these 
days, just out of curiousity, will FreeBSD support things like OpenBoot or 
UEFI on i386, sorry for the digression), I found where to turn the Storage 
Configuration, as ASUS calls it, from IDE, to RAID, or AHCI.  It's 
currently set to IDE because when set to RAID the MOBO apparently kept 
trying to put the SATA DVD drive as part of the RAID and when set to AHCI 
mode the install had hundreds of, can't create symlink, no inodes free, 
during the copying of the files into the newly created file systems.

Now, I'm a complete neophyte to making these SATA RAID systems.  What's the 
magic to making it work, and how do you keep the DVD drive from being part of 
the RAID?  Also, what should be done for AHCI mode?  It looked as though in 
this mode the drives would perform *much* faster.

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


Re: Realtek RTL8111C and re(4) driver

2008-08-24 Thread Andrew Falanga

cpghost wrote:

Hello,

I'm about to get an MSI K9A2GM-FIH mobo with an on-board Realtek
RTL8111C GigE adapter (I've picked that because the on-board Radeon HD
3200 RS780 chip seems supported by the radeon(4x) xorg driver).

Unfortunately, I (wrongly) assumed that the RTL8111C would be
supported by the rl(4) or re(4) driver, and noticed a bit too late
kern/123123.

So the question: has anyone with an RTL8111C actually tried the
patches from this PR on RELENG_7? All I need for now is 100Mbit/s
Ethernet with no frills (no offloading etc...), and I'd rather not
sacrifice one PCI slot for an extra NIC if at all possible.

Thanks,
-cpghost.

  

Hello,

I'm curious to know about this.  I just put together a computer for my 
church which has this NIC built in.  I've downloaded a driver which 
claims to be for FreeBSD 5.  Has anyone here any experience with it, or 
would anyone know if it's reliable and works?


The web link is: 
http://driverscollection.com/?H=RTL8111CBy=RealTekSS=FreeBSD%205


Andy

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


[dhcpd] BOOTP from dynamic client and no dynamic leases

2008-08-08 Thread Andrew Falanga
Hi,

If I had hair I'd be pulling it out now.  I cannot find adequate help
anywhere as yet for this issue.  I've installed the ISC dhcpd program
from ports and am struggling to get it setup properly.  As I mentioned
in my other e-mail, I cannot share the contents of my configuration
file.  I'm sorry, I really wished I could.  What I have is this
(censored for host names and IP addresses):

not authoritative;
ddns-update-style none;
deny unknown-clients;
allow bootp;
use-host-decl-names on;


subnet 192.168.24.0 netmask 255.255.248.0 {
# this server will only host bootp, thus the range is left out
#leases
default-lease-time 6000;
max-lease-time 6000;
option subnet-mask 255.255.248.0;
option broadcast-address 192.168..31.255;
option routers 192.168.24.1;
option domain-name-servers 192.168.0.51;
option domain-name internal.domain;
}

host host1 {
option host-name host1;
hardware ethernet 00:01:a2:4a:cc:af;
fixed-address 192.168.27.0;
}


That's all of the globals in use by this server and a single host
entry (there are 44 hosts using the range 192.168.27.0-192.168.27.43).
 I do not know what is causing my problem.  The dhcpd server starts so
I know there are no syntactic problems with my configuration file, but
it's not answering requests for IP addresses.  When I start the
server, dhcpd -d, I get many lines with the test, BOOTP from dynamic
client and no dynamic leases.  Also, because of how things are
configured for the subnet I'm on, I cannot allow this server to
respond to other DHCP requests.  It can only service the small range
of 44 that I've been allocated.

The clients use bootp for this and although they are not booting
anything from this server, or any other, bootp is used.  Whether or
not this is a good, or proper use, of bootp I know not.  I didn't set
it up, but it is what I have to use.  Can anyone here offer me any
ideas about what the problem might be?

From looking through the dhcpd.conf file I've found a configuration
option for pool clauses that's something like this:

lease limit N;

but I don't think this is what I'm looking for.  First off, it seems
to only apply to pools and I'm not using any pools.  Secondly, it
would only help if the assumption is correct that without this
statement the server defaults to a lease limit of 0.  This, I don't
believe, is the case from what I've read in this man page.

Any help is greatly appreciated thanks,
Andy

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [dhcpd] BOOTP from dynamic client and no dynamic leases

2008-08-08 Thread Andrew Falanga
On Fri, Aug 8, 2008 at 10:54 AM, Chuck Swiger [EMAIL PROTECTED] wrote:
 Hi--

 On Aug 8, 2008, at 8:02 AM, Andrew Falanga wrote:


 not authoritative;

 If you are in charge of the subnet range that you are using, then you should
 be setting yours to authoritative.  If there is already a DHCP server
 running as authoritative for the local subnet, you should configure your
 static IPs on it, rather than trying to set up a second one.  You could
 probably gain more information by running:


I just read through my original post for this message here and should
have made it more clear that this list wasn't among the inadequate
helps I was referencing.  I cannot tell you the number of Google
searches I've done in looking for this.

I am not authoritative on this subnet.  Originally, I had the
statement as authoritative but thought this might be my problem
(unfortunately it wasn't).  The organization I work for is
sufficiently large enough that getting requests handled for the
authoritative serves nearly takes an act of Congress.  When our team
ramps up, we change out hardware quite frequently and this (asking for
changes made to the authoritative servers) isn't feasible for us to
meet demand.  So, this solution was put in place.  Our old bootp
server worked just fine, but is now having problems (it runs for about
a day and then crashes).

  tcpdump -s 0 -vv port bootps

 ...and look at whether the MAC addrs match what you think they should be in
 the request, and whether your server or another is replying with DHCPNAK.
  There is fine documentation and even a mailing list for the ISC DHCPD
 available here and at [EMAIL PROTECTED]:

  http://www.isc.org/index.pl?/sw/dhcp/authoritative.php
  http://www.isc.org/sw/dhcp/dhcpv3-README.php#support


thank you for these two links.  I hadn't yet found them from all the
searches I'd done thus far.  Also, though I should have thought of it
myself, thanks for the pointer on using tcpdump.  I'll give that a
try.

Andy


-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


having problems with dhcpd and bootp clients

2008-08-07 Thread Andrew Falanga
Hi,

dhcpd starts so I know that there are no problems with my
configuration file (at least syntax, I suppose that a semantic error
may still be present).  Running dhcpd with the -d option shows this
string being placed on stderr:

BOOTREQUEST from MAC via fxp0: BOOTP from dynamic client and no dynamic leases

Now, what's confusing is that the MAC for this client is one in which
I've specifically called out in /usr/local/etc/dhcpd.conf.  This is a
work machine so I can't share the config file with you (sorry I know
that will make it difficult to help).  This DHCP server can't hand out
any addresses dynamically so I've prevented that from happening.  It's
only purpose is to hand out a small block of IP addresses that my team
uses within a much larger subnet.

None of these clients are DHCP clients, they are only BOOTP.  These
clients aren't actually trying to boot over the network they're just
getting an address.  (Yes, this probably isn't the best way, or the
correct way, of doing this but I didn't set it up but I must use it).
So, the long and the short of it is that our older BOOTP server has
died and I'm trying to get something in place to keep us functioning.

From the manual page for dhcpd(8)


subnet 239.252.197.0 netmask 255.255.255.0 {
  range 239.252.197.10 239.252.197.250;
}

   If  a  subnet  will  only be provided with BOOTP service and no dynamic
   address assignment, the range clause can be left out entirely, but  the
   subnet statement must appear.

So, I have:

subnet mysubnet netmask thenetmask {
}

Then, all of the host entries are:

host host1 {
 option host-name host1;
 hardware ethernet the MAC;
 fixed-address the IP to give this client;
}

I noticed that the manual page shows this for a bootp client:

host haagen {
  hardware ethernet 08:00:2b:4c:59:23;
  fixed-address 239.252.197.9;
  filename /tftpboot/haagen.boot;
}

The verbiage used in the paragraph right above this example, in the
man page, would lead one to believe that the filename option used in
the host declarator isn't necessary, but never the less it is
different than what I have and I wanted to ask.

I haven't been able to track it down as yet but I'm thinking that my
problem probably isn't with my host declarator sections.  It probably
has something to do with an option to the configuration that I haven't
found yet.  I'm going to keep looking, but it was time to ask for some
help too.

This is all running on a FreeBSD 6.2p11 box.

Any help is greatly appreciated,
Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[Off Topic] Clients still not connecting to the FreeBSD mail server

2008-08-05 Thread Andrew Falanga
Hi,

Thanks again everyone for the pointers with Outlook and my fellow church 
parishoners.  I'm hoping for some more pointers.  Using tcpdump I'm fairly 
certain that the initial SYN packets from the clients are never reaching the 
server.  I'll need to test one more time to be sure (I wasn't 100% positive 
of the public IP address on the Internet side of the cable modem installed).  
Never the less, from home here I've verified what I should see if the initial 
SYN packets are received at the server and now know what to look for.  (Who 
knows, maybe the wireless router knows it's in a church and has decided no 
SYN's allowed.  Ok, that was bad.)

What I'm hoping to glean from the experts here is about wireless routers.  
I've never used them before, but one of the pastors was reasonably certain 
that the problems commenced for the one person who never had problems, the 
secretary, when she was switched from wired to wireless operations.  Sunday I 
was briefly able to see the administration pages of the wireless access 
point, however nothing seemed to jump off the page at me that, Yeah, this is 
what's blocking them.  However, it definitely seems that something is 
preventing traffic over port 25 because we can all browse the Internet just 
fine.

I've verified the same timeout behavior with Outlook Express and Thunderbird.  
Using Thunderbird, I was able to check different settings too.  The settings 
should be to use authentication on the smtp server using SSL.  Someone, 
please educate me, does this mean that the authentication takes place over 
port 465 and the regular smtp still takes place over 25, or do both take 
place over 25?  I ask because KMail (my setup at home that works) says to use 
SSL, not TLS which uses port 465.  At the server, I use sockstat and see that 
on IPv4 sendmail has an open port on 465.

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


Re: Having some problems with a FreeBSD mail server (SMTP)

2008-07-31 Thread Andrew Falanga
On Thursday 31 July 2008 03:31:36 Barry Byrne wrote:


 Andrew:

 I've seen a similar problem from time to time with Outlook 2003 clients.
 For seemingly no reason whatsoever, they give a timeout sending mail.
 Googling the error code throws up many with the same error and no solution
 that I've found. Telneting to port 25 or even running the Outlook test mail
 account feature still work, while Outlook comlains it can't send.

 The workaround is to quit Outlook and start again. By quitting Outlook, the
 user must choose 'exit' from the 'file' menu. Simply closing the close box
 still leaves Outlook in memory and the problem remains. The problem seems
 to happen perhaps once or twice a month for some users.

 Regards,

 Barry


To everyone who responded,

Thanks for the great suggestions.  A couple of you replied that they've seen 
issues with this and resolved them by closing down Outlook, by the File -- 
Exit method rather than the X in the upper right.  I'm really beginning to 
suspect this because the pastor I was working with told me that our senior 
pastor explained to him that he could send from a particular coffee shop in 
town when he couldn't from church.

Though I can't personally see a down side to having an office in a Starbucks 
(I don't know the name of the actual shop they were in), I think that the 
Outlook client get's some bad stuff in the cache that is flushed out when 
they shutdown their computers to go make the journey.  The pastor I was 
dealing with said he went there and all of this mail sent without a hitch.

The other possibility is that the ISP is blocking some particular port.  We 
did just change ISP's within the last 2 weeks and according to this pastor, 
these sending problems originated at that time.  We'll see.

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


Having some problems with a FreeBSD mail server (SMTP)

2008-07-30 Thread Andrew Falanga
Hi,

I run a mail server for my church.  Today I was called that folks are able to 
receive, but not send their mail.  They are all currently configured for POP3 
(I use dovecot).

At home I tried to send mail to two different e-mail accounts of mine using 
the church e-mail server and was successful.  I used KMail for this.

As I look through /var/log/maillog I do not even see authid=their_user_ids 
in the mail log (I'm using TLS with sendmail).  One of the pastor's told me 
the error he's seeing is timeout.  They are using Outlook, I'm not sure of 
the version.  What problems do people here usually encounter with Outlook 
mail clients and their SMTP servers?

At this point, I'd just like to have some leads.  Any ideas what might be 
keeping them from sending?  They can all log in and receive e-mail POP3.

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


Has anyone used libusb for accessing usb devices here?

2008-07-22 Thread Andrew Falanga
Hi,

I'd like to know if anyone here on the list has ever used libusb
(http://libusb.sourceforge.net) for accessing usb devices.  I
successfully compiled and installed it on my FreeBSD 7 laptop but when
I run a test program no USB HUBs are found.  The same test on a Fedora
box works fine.  I was wondering what the magic is for FreeBSD since
the web site claims the package works on FreeBSD.

Thanks,
Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Has anyone used libusb for accessing usb devices here?

2008-07-22 Thread Andrew Falanga
On Tue, Jul 22, 2008 at 8:38 AM, Lowell Gilbert
[EMAIL PROTECTED] wrote:
 Andrew Falanga [EMAIL PROTECTED] writes:

 I'd like to know if anyone here on the list has ever used libusb
 (http://libusb.sourceforge.net) for accessing usb devices.  I
 successfully compiled and installed it on my FreeBSD 7 laptop but when
 I run a test program no USB HUBs are found.  The same test on a Fedora
 box works fine.  I was wondering what the magic is for FreeBSD since
 the web site claims the package works on FreeBSD.

 libusb is in ports, and a number of other ports use it.
 (See make search key=libusb.)
 That should provide a variety of working examples.


Well, I feel like a total bafoon.  I searched yesterday for it at
freshports.org and turned up nothing.  The reason: I was searching for
usblib rather than libusb.  How incredibly frustrating.

Thanks,
Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Has anyone used libusb for accessing usb devices here?

2008-07-22 Thread Andrew Falanga
On Tuesday 22 July 2008 08:38:58 Lowell Gilbert wrote:
 Andrew Falanga [EMAIL PROTECTED] writes:
  I'd like to know if anyone here on the list has ever used libusb
  (http://libusb.sourceforge.net) for accessing usb devices.  I
  successfully compiled and installed it on my FreeBSD 7 laptop but when
  I run a test program no USB HUBs are found.  The same test on a Fedora
  box works fine.  I was wondering what the magic is for FreeBSD since
  the web site claims the package works on FreeBSD.

 libusb is in ports, and a number of other ports use it.
 (See make search key=libusb.)
 That should provide a variety of working examples.

Ok, I've installed from the ports collection this time (at home now on my 
6.2p11 box) and I'm seeing busses in my computer.  However, when I plug in my 
USB thumb drive, a Sandisk Cruizer Micro that the kernel does see as da0 
(verified in /var/log/messages), I don't get any devices shown.  Below is the 
code to the program I'm using.  It's a hack of the basic example on the 
libusb.sourceforge.net website docs.

#include iostream


#include usb.h

int main(void) {
   usb_init();

   struct usb_bus *busses;

   usb_init();
   usb_find_busses();
   usb_find_devices();

   busses = usb_get_busses();
   if(busses)
  std::cout  we found some busses  std::endl;
   else
  std::cout  no busses were found  std::endl;

   struct usb_bus *bus;
   int c, i, a, bussCount(0);

   /* ... */

   for (bus = busses; bus; bus = bus-next) {
  std::cout  enumerating buss:   ++bussCount  std::endl;
  struct usb_device *dev;

  // loop through each device and display its vid pid
  for (dev = bus-devices; dev; dev = dev-next) {
 struct usb_device_descriptor* pUsbDev = dev-descriptor;

 if(pUsbDev-bDeviceClass == 0x09)
std::cout  Device is a HUB\n;
 if(pUsbDev-bDeviceClass == 0x07)
std::cout  Device is a printer:\n;
 if(pUsbDev-bDeviceClass == 0x08)
 std::cout  Device is a mass storage device:\n;
 std::cout  Device Class: 
(int)pUsbDev-bDeviceClass  std::endl;
 std::cout  VID: 
std::dec  pUsbDev-idVendor   
std::hex  pUsbDev-idVendor  std::endl;
 std::cout  PID: 
std::dec  pUsbDev-idProduct   
std::hex  pUsbDev-idProduct   std::endl;

 if(dev-num_children  0) {
struct usb_device* pChild = *(dev-children);
while(pChild) {
   std::cout  Childs device class: 
  std::dec  pChild-descriptor.bDeviceClass
   
  std::hex  pChild-descriptor.bDeviceClass
  std::endl;

   pChild = pChild-next;
}
 }
  }
   }

   return 0;
}

Any ideas why I'm not seeing any devices?

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


Having trouble installing joomla from ports

2008-07-20 Thread Andrew Falanga
Hi,

I've installed the joomla CMS program from the ports tree.  Then, following 
the instructions from joomla's website, started the installation process.  
The first step in the process is to test for system requirements.  It says 
I'm failing the Zlib compression support requirement.  What is it looking 
for?  I have php5-zlib installed from ports.  What Zlib package does it want 
to have?  Any help is greatly appreciated.

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


Re: Any advice for learning debugging threading and stack corruption problems for c/c++?

2008-07-20 Thread Andrew Falanga
On Wednesday 16 July 2008 13:41:46 Edward Sutton wrote:
   I have had a very hard time trying to debug which has hindered my work on
 some projects.  In particular I have had trouble properly grasping how to
 work with debugging multi threaded applications, memory errors, and stack
 corruption. I know that it is not a five minute learning process to absorb
 such knowledge, but I have not yet found helpful references. I have had
 best luck trying to logically guess a location close to the problem, then
 setting a break and walking through the code. Once I hit a segfault, I run
 through the code with a breakpoint bringing me to just before the problem,
 but do not always understand how to go further. Strange things I see look
 like bad pointer addresses or the problems being caused within another
 thread. Since moving to FreeBSD7, I have been unable to use valgrind (which
 did not seem to help much on multi threaded apps) and I have not found a
 way to test binaries in the work directories and have had to install it to
 test it. At present, either gdb alone or kdbg seem to be the only ways I
 have been able to get even partially reliable responses from gdb because
 other interfaces disregard breakpoints and interrupts to execution. Are
 such difficulties common? On another similar topic, is there a good place
 to start learning about limitations to system internals, such as
 kern.ipc.shmmax and why I may 'not' want to set it to excessively high
 values or how other values relate to changing it? How can I tell what cap
 is occurring, whether it be a system limit or something controlled within
 the app such as with pthread_attr_setstacksize() and how are 'proper'
 values determined? The books advanced programming in the unix environment
 and programming with posix threads help me learn the unix world a bit
 better, but without debugging knowledge I find it hard to get anywhere with
 writing more than my high school level of programs and very difficult to
 get anywhere on the projects of others once threads and/or dynamic memory
 is involved. Any suggested course for further study from here?
 Thanks again,
 Edward Sutton, III


Debugging threaded applications is an exercise in frustration and downright 
irritation.  There aren't many easy methods.  It seems that you're already 
familiar with gdb so brush up on how to attach to specific threads within the 
application and such.

Usually, it seems that problems with multi-threaded programming come from two 
threads trying to access the same structure, or object, at the same time.  
Look through your code and make sure you're not doing something like this.  
For example, one thread is trying to read from the same file another is 
trying to read from thus getting file pointers confused.  Please note that 
this scenario only causes problems if the file was opened in one thread and 
then the file handle was passed to two others (probably not the best way to 
do things but . . .).

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


Reading from USB devices

2008-07-19 Thread Andrew Falanga

Hi,

I'd like to read data from a USB device that is not a thumb drive.  How 
would I do this?  For instance, it's an oximeter for reading 
biometrics.  What libraries exist for reading things like VID/PID, and 
most importantly, reading the data from the device?


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


Re: User properties and how to make files with a specific group owner

2008-07-10 Thread Andrew Falanga
On Wed, Jul 9, 2008 at 9:30 PM, Sahil Tandon [EMAIL PROTECTED] wrote:
 Andrew Falanga [EMAIL PROTECTED] wrote:

 I've not had to set this up and so far my efforts have proven less than
 successful.  I'm working on a web project with my father and one other
 developer.  I need to have it so that our user id's, when creating files in
 the directory we share the source code in, create the files with the group
 id common to the three of us.  How do I do this?

 [...]

 New files are created with GID set to that of the directory in which they're
 contained.  In your case, is that directory owned by user and group 'andy'?
 If so:


Thank you.  That is very helpful.  I did not know that.

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


User properties and how to make files with a specific group owner

2008-07-09 Thread Andrew Falanga
Hi,

I've not had to set this up and so far my efforts have proven less than 
successful.  I'm working on a web project with my father and one other 
developer.  I need to have it so that our user id's, when creating files in 
the directory we share the source code in, create the files with the group id 
common to the three of us.  How do I do this?

I thought that it would be that I change the primary group membership from the 
group ID equal to our userid's to the shared group name (in this case www).  
However, this doesn't seem to be doing it.  I've done this on the three of 
our user ids, but when I checked it (checking out files from subversion), all 
of the files were still owned by, in my case, UID=andy and GID=andy.  How do 
I get this to stop working like this and create files with UID=andy GID=www?

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


Re: Wipe a drive clean

2008-06-24 Thread Andrew Falanga
On Mon, Jun 23, 2008 at 8:03 PM, Norberto Meijome [EMAIL PROTECTED] wrote:
 On Mon, 23 Jun 2008 14:36:35 -0600
 Andrew Falanga [EMAIL PROTECTED] wrote:

  I'd rather not install a port, if I can avoid it.  I
 
  Have a look at security/wipe.

 Before reading this, yes I did.  In fact, I even installed it.
 However, the first operation appears to be a renaming of the file in
 question.  I was doing:

 wipe -z /dev/da2

 which was being kicked out with Operation not permitted.  It seemed
 to want to move/rename the file first.  I didn't do enough digging to
 get around this before reading this e-mail.


 do you have access rights to write to that device?

 is the device mounted ? (it shouldn't)


No.  I unmounted before trying.

Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Wipe a drive clean

2008-06-23 Thread Andrew Falanga
Hi,

I'm having no luck finding hits for wipe drive or zero drive in
the mail list archives and I can't believe I'm the first to ask this
question but here it is anyway.  How can I simply write 0's across a
USB thumb drive?  I'd rather not install a port, if I can avoid it.  I
was thinking that something like dd would work, but everything I've
tried thus far is not working.  What suggestions does everyone have?

Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Wipe a drive clean

2008-06-23 Thread Andrew Falanga
On Mon, Jun 23, 2008 at 2:23 PM, Roland Smith [EMAIL PROTECTED] wrote:

 I'm not sure about flash memory, but for a harddrive, simple writing 0's
 is not a secure way to delete data. It can still be recovered.

Actually, this is for an experiment that I want to start with a
clean device for.  I'm not actually trying to obtain some level of
security.


 I'd rather not install a port, if I can avoid it.  I

 Have a look at security/wipe.

Before reading this, yes I did.  In fact, I even installed it.
However, the first operation appears to be a renaming of the file in
question.  I was doing:

wipe -z /dev/da2

which was being kicked out with Operation not permitted.  It seemed
to want to move/rename the file first.  I didn't do enough digging to
get around this before reading this e-mail.



 I think the trick is to use the right block size. Try bs=512 or
 2048 in your dd command. Use if=/dev/random instead of if=/dev/zero and
 repeat a couple of times. Note that wiping flash drives way will
 shorten the lifespan of the device.


The man page says that a block size of 512 is the default, though I
put it on the command line anyway (talk about being paranoid).  My
problem was the input file.  I was using /dev/null instead of
/dev/zero (which I didn't know about until this e-mail).  Thanks guys.

Andy

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Networking issues

2008-06-08 Thread Andrew Falanga
Hello,

I have, for some time, been able to ssh into my father's FreeBSD machine in 
the Road Runner network in Central New York.  Last night, I tried so that I 
could fix a problem for him and ssh timed out.  No problem I thought, his 
modem has a different IP than the one I have in my /etc/hosts file, but this 
turned to not be the case.

Well, after some digging, I did a traceroute to his IP address.  The packets 
went all over the place, from San Jose, to Colorado, back to San Jose, to 
Colorado then to Ohio, then to Denver, then to San Jose, then to Ohio, etc. 
(you get the idea).  Eventually, traceroute was just lost and confused and I 
hit ctrl-c.  Thinking the problem would work itself out, I decided to wait 
and try again tonight however, I'm having the same problem tonight.

Obviously, though, I can use my Internet connection (after all, the 
e-mail . . .), but why can't I get to his IP address.  For kicks and grins 
tonight, I logged onto my DSL modem and looked at it's routing table.  I 
found some interesting information.

First, my DSL modems IP is 71.221.172.38, however, the default route appears 
to be 67.41.38.201.  Obviously, I've got to cross at least one network to get 
to this default route in the first place.  I'm assuming this is the default 
route because it appears in the routing table as such:

destnetmask gateway
0.0.0.0 0.0.0.0 67.41.38.201

Now, here's the output of traceroute (with name resolution turned off):

[/usr/home/andy]
- traceroute -n 67.41.38.201
traceroute to 67.41.38.201 (67.41.38.201), 64 hops max, 52 byte packets
 1  * * *
 2  67.41.38.201  40.303 ms *  39.421 ms

Why on earth would there be delays on the first hop when not using name 
resolution?

Ok, now my machines setup: my DSL modem is the router (as you all knew).  It 
also acts as a DHCP server but my FreeBSD machine is setup as static IP.  The 
local, private, IP network is 192.168.0.0/24 with the DSL modem as 
192.168.0.1 and my box is statically assigned 192.168.0.10.

Any thoughts as what might be wrong on my end before I start bugging my ISP?

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


IPSec woes

2008-04-23 Thread Andrew Falanga
I'm going off of the handbook section for setting up IPsec but I'm
having some problems because I'm having to modify the instructions
some.  The handbook section covers a VPN secured by IPsec, but I'm
trying to setup a point-to-point between my host and another.

All seemed to be going well.  I've compiled it into my kernel.  I've
installed racoon from ports and the first time I tried to ping my peer
host, it paused for several seconds and then started up (as the
handbook mentions).  However, when I do setkey -D I get, no SAD
entries.  This makes me sad.  Sorry, I couldn't resist.

I have this in my /etc/ipsec.conf file (in the below 192.168.0.5 is my
IP, 192.168.0.6 is the remote host):

add 192.168.0.5 192.168.0.6 ipcomp 256 3des

I should make note that the other host is not a FreeBSD machine, it is
a printer.  I'm doing this as an exercise to learn setting this up.

As for the racoon setup file, I copied the file from
/usr/local/share/examples/ipsec-tools/racoon.conf to
/usr/local/etc/racoon and modified only this entry:

sainfo address 192.168.0.6 any address 192.168.0.5 any
{
pfs_group 2;
lifetime time 30 sec;
encryption_algorithm 3des;
authentication_algorithm hmac_md5;
compression_algorithm deflate;
}

Any help is greatly appreciated.  Thanks.  Oh, what makes me think
that it's not working is wireshark and tcpdump both didn't seem to
dump anything that would lead me to believe anything is being
encrypted.  What's odd, is that this printer I'm working against has
been set to disallow any traffic from my IP address without it's being
encrypted.

Thanks,
Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Having trouble getting cups working

2008-04-22 Thread Andrew Falanga
HI,

I've never actually tried to install cups before and last night decided to 
give it a try because I was not having much success getting my printer 
working using the handbook directions.  (I got it all setup correctly, 
obviously something is incorrect but stay with me, and although I could get 
stuff to print when I did 'cat somefile  /dev/lp0' I couldn't get anything 
to print when I submitted to lpd.)

So, I installed cups from ports, and setup my HP LaserJet 4+.  All seemed to 
go well.  At first I had a problem with an error, something like unknown 
application/postscript.  Anyway, some digging on the internet revealed that 
I needed ESP Ghostscript installed.  So, I got that and that error went away.  
Now, however, I still cannot get it to print.

When I try to submit the printer test page from the web management interface, 
it says, network host 'sniper' busy: will retry in X seconds.  The URI I'm 
using for my printer is, lpd://sniper/lj4.  The printer is connected to my 
parallel port and I think this is what I want because the other options are 
whatever it is that cups calls JetDirect and then IPP and something else.

Anyway, if someone could please point me in the correct direction I'd 
appreciate it greatly.

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


Re: Having trouble getting cups working

2008-04-22 Thread Andrew Falanga
On Tue, Apr 22, 2008 at 9:16 AM, Reid Linnemann [EMAIL PROTECTED] wrote:
 Written by Andrew Falanga on 04/22/08 09:40


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

  Your device URI should not be an lpd URI, especially since you can't
  print with lpd. Use a 'parallel' URI in your case; parallel:/dev/lpt0
  works for me. When you want to refer to the printer from an external
  system, use ipp://hostname/printers/printername


How interesting.  I suspected something like this but the web
interface didn't show a parallel URI.  Thank you all.  I'll give this
a try tonight when I get home.

Andy


-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


clean for kernel build

2008-04-22 Thread Andrew Falanga
How does one clean the build environment for the kernel?  I'm building
a custom kernel for IPSec and when it got to the linking phase of the
build, the build process bailed with many linking errors:

xform_ah.o(.text+0x15): In function `ah_algorithm_lookup':
: undefined reference to `auth_hash_hmac_sha2_512'
xform_ah.o(.text+0x25): In function `ah_algorithm_lookup':
: undefined reference to `auth_hash_key_md5'
xform_ah.o(.text+0x35): In function `ah_algorithm_lookup':
: undefined reference to `auth_hash_hmac_ripemd_160'
xform_ah.o(.text+0x3f): In function `ah_algorithm_lookup':
: undefined reference to `auth_hash_hmac_sha1'
xform_ah.o(.text+0x4f): In function `ah_algorithm_lookup':
: undefined reference to `auth_hash_hmac_md5'

Many more lines that look very similar to this.  I'm thinking that it
might be something left over from the last time I rebuilt the kernel
(which on this system is when it went from 6.2-RELEASE to
7.0-RELEASE).  So, what make target will clean what I need it to
clean, and are there any other directions similar to what can be found
in the handbook for when rebuilding world?  (This time I don't want to
rebuild world, I just need a new kernel.)

Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: clean for kernel build

2008-04-22 Thread Andrew Falanga
On Tue, Apr 22, 2008 at 3:17 PM, Fraser Tweedale [EMAIL PROTECTED] wrote:
 `make buildkernel` in /usr/src does a clean before building.  You most
 likely are missing something in your kernel config (i.e. a device that is
 depended on by another device).

  frase




Thanks.  What options are needed in conjunction with IPSEC?  I have
this in my config file:

options  IPSEC
options  IPSEC_ESP # from the handbook

The IPSec  VPN page in the handbook says to use these.  However, the
IPSEC_ESP errors out of the build with unknown option.  What else is
needed?  Also, if I'm not mistaken, the linker errors I'm seeing are
dealing with the IPSEC implementation.  What kernel options are
necessary for building a kernel with IPSec?

Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


building a kernel for IPsec, what dependencies exist for option IPSEC

2008-04-22 Thread Andrew Falanga
Hi,

I'm building a kernel for IPSec and am going off of the handbook
instructions from the section, VPN over IPsec.  In there it says to
add:

options  IPSEC
options  IPSEC_ESP

However, on 7.0 it appears that IPSEC_ESP isn't a valid option.
However, what dependencies exist for the option IPSEC?  I'm getting
several linker errors for files like, xform_ah.o xform_esp.o
xform_ipcomp.o and I'm very suspicious that they are due to
dependencies that I'm lacking for IPSec.  Below is my conf file.  It's
basically the GENERIC file with several device options commented out
because I don't have SCSI hardware on this laptop or many of the RAID
controllers.

cpu I486_CPU
cpu I586_CPU
cpu I686_CPU
ident   GENERIC

# A. Falanga; new kernel with IPSEC capability
options IPSEC


# To statically compile in device wiring instead of /boot/device.hints
#hints  GENERIC.hints # Default places to look for devices.

#makeoptionsDEBUG=-g# Build kernel with gdb(1) debug symbols

options SCHED_4BSD  # 4BSD scheduler
options PREEMPTION  # Enable kernel thread preemption
options INET# InterNETworking
options INET6   # IPv6 communications protocols
options SCTP# Stream Control Transmission Protocol
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options UFS_GJOURNAL# Enable gjournal-based UFS journaling
options MD_ROOT # MD is a potential root device
options NFSCLIENT   # Network Filesystem Client
options NFSSERVER   # Network Filesystem Server
options NFS_ROOT# NFS usable as /, requires NFSCLIENT
options MSDOSFS # MSDOS Filesystem
options CD9660  # ISO 9660 Filesystem
options PROCFS  # Process filesystem (requires PSEUDOFS)
options PSEUDOFS# Pseudo-filesystem framework
options GEOM_PART_GPT   # GUID Partition Tables.
options GEOM_LABEL  # Provides labelization
options COMPAT_43TTY# BSD 4.3 TTY compat [KEEP THIS!]
#optionsCOMPAT_FREEBSD4 # Compatible with FreeBSD4
#optionsCOMPAT_FREEBSD5 # Compatible with FreeBSD5
options COMPAT_FREEBSD6 # Compatible with FreeBSD6
options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
options KTRACE  # ktrace(1) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time
extensions
options KBD_INSTALL_CDEV# install a CDEV entry in /dev
options ADAPTIVE_GIANT  # Giant mutex is adaptive.
options STOP_NMI# Stop CPUS using NMI instead of IPI
options AUDIT   # Security event auditing

# To make an SMP kernel, the next two lines are needed
#optionsSMP # Symmetric MultiProcessor Kernel
device  apic# I/O APIC
# CPU frequency control
device  cpufreq

# Bus support.
device  eisa
device  pci

# Floppy drives
device  fdc

# ATA and ATAPI devices
device  ata
device  atadisk # ATA disk drives
device  ataraid # ATA RAID drives
device  atapicd # ATAPI CDROM drives
device  atapifd # ATAPI floppy drives
device  atapist # ATAPI tape drives
options ATA_STATIC_ID   # Static device numbering

# SCSI Controllers
#device ahb # EISA AHA1742 family
#device ahc # AHA2940 and onboard AIC7xxx devices
#optionsAHC_REG_PRETTY_PRINT# Print register bitfields in debug
# output.  Adds ~128k to driver.
#device ahd # AHA39320/29320 and onboard AIC79xx devices
#optionsAHD_REG_PRETTY_PRINT# Print register bitfields in debug
# output.  Adds ~215k to
driver.device  amd # AMD 53C974 (Tekram DC-390(T))
device  hptiop  # Highpoint RocketRaid 3xxx series
device  isp # Qlogic family
#device ispfw   # Firmware for QLogic HBAs- normally a module
#device mpt # LSI-Logic MPT-Fusion
#device ncr # 

Re: Having trouble getting cups working

2008-04-22 Thread Andrew Falanga
On Tuesday 22 April 2008 09:16:42 Reid Linnemann wrote:

 Your device URI should not be an lpd URI, especially since you can't
 print with lpd. Use a 'parallel' URI in your case; parallel:/dev/lpt0
 works for me. When you want to refer to the printer from an external
 system, use ipp://hostname/printers/printername


Thank you all.  My problem, as you all know, was the URI.  I changed to using 
parallel:/dev/lpt0 and everything is working great.  This is too cool!

Because there wasn't a URI of that type listed on the administration web page, 
I didn't think to use something other than what was there.

At any rate, I'm printing from KPDF and it's really cool!  Thanks again.

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


Re: StartKde

2008-04-11 Thread Andrew Falanga
On Thursday 10 April 2008 16:51:03 Barry Walker wrote:
 Hi all.

 I'm not sure if this is the proper place for this posting, but I am trying
 to determine what is causing my KDE problems.

 Here's what I get

 u85 50 ps -ef |grep kde
 bjwalker 11622 11076  0 17:45 pts/200:00:00 grep kde

 u85 51% startkde
 xset:  bad font path element (#104), possible causes are:
 Directory does not exist or has wrong permissions
 Directory missing fonts.dir
 Incorrect font server address or syntax
 startkde: Starting up...

 After about 5 minutes of waiting, thats all I get.

 I've looked around to see where else I may have kde things running and
 think I've killed them all.  I've also moved my .kde directory and allowed
 for the build of a new one.  I'm currently in a gnome session but I would
 like to run KDE apps like Kile for example.

 Any help of where to start looking or things to do to help diagonose the
 problem would be appreciated.

 thanks

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

Barry,

I'm not sure why but apparently the fonts incorrectly installed or missing in 
your X installation.  Look in /etc/X11/xorg.conf to see where the system is 
looking for the fonts (path directives are under things like

Section Files
FontPath
EndSection

Find where the server thinks they are and then verify that they are there.

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


High resolution timing in FreeBSD for program code

2008-03-26 Thread Andrew Falanga
Hi,

What available functions in FreeBSD would be good for
finer-than-microsecond detail for timing of code execution?  Some
searches on the NG comp.unix.programmer turned up clock_gettime(),
which I see FreeBSD does support.  However, I was wondering if there
might be something better or used more often.  Secondly, I was
wondering if anyone here knows what this function, clock_gettime(),
uses for it's timing?

Thanks,
Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: media conversion utilities in the ports

2008-03-25 Thread Andrew Falanga
On Sun, Mar 23, 2008 at 5:19 AM, Roland Smith [EMAIL PROTECTED] wrote:
 On Sun, Mar 23, 2008 at 07:26:20PM +1000, Da Rock wrote:
  
   On Sun, 2008-03-23 at 09:41 +0100, Michaël Grünewald wrote:
Andrew Falanga a écrit :
 Hi,

 A few quick searches on freshports.org didn't turn up much so I'm
 hoping that the knowledge here will eclipse it.  Are there any good,
 or workable, scriptable WMA to MP3 converter programs in ports?
   
Mplayer pretends it can handle WMA files, however I did not try this
feature. See multimedia/mplayer, it installs an `mencoder' program you
might be interested in.
  
   you need the win32 codecs to make this work though.

  No you don't. The built-in ffmpeg can handle it:

  uname -a
  FreeBSD slackbox.xs4all.nl 7.0-STABLE FreeBSD 7.0-STABLE #0: Fri Feb 29
  01:45:32 CET 2008  amd64

  Note: win32 codecs don't even work on amd64!

  mplayer foo.wma
  MPlayer 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team
  CPU: AMD Athlon(tm) 64 Processor 4000+ (Family: 15, Model: 39, Stepping: 1)
  CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
  Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

  Playing foo.wma.
  ASF file format detected.
  [asfheader] Audio stream found, -aid 1
  Clip info:
   name: x
   author: 
  ==
  Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
  AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16002-176400)
  Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
  ==
  AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
  Video: no video
  Starting playback...


Thanks everyone.  This is great.

Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


media conversion utilities in the ports

2008-03-20 Thread Andrew Falanga
Hi,

A few quick searches on freshports.org didn't turn up much so I'm
hoping that the knowledge here will eclipse it.  Are there any good,
or workable, scriptable WMA to MP3 converter programs in ports?

Thanks,
Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Network programming question

2008-03-14 Thread Andrew Falanga
On Thu, Mar 13, 2008 at 11:57 PM, Patrick Mahan [EMAIL PROTECTED] wrote:



  inet_pton() clobbered the fields you pointed out.  In fact the sin_family
  field was being set to 0x01 which caused your initial EADDRNOTSUPPORT error
  you were seeing.  You quick change fixed that problem.  However, (depending
  on how sockaddr_in structure is actually allocated) the sin_addr field was
  0.0.0.0.  This is actually an accepted form of the broadcast address for UDP
  packets.  I forget exactly who the culprit was (Sun comes to mind) but there
  was a need to allow broadcasts to 0.0.0.0 (which is also know as INADDR_ANY).
  So, therefore, sendto() succeeded, just not in the way you expected.  Looking
  at in_pcbconnect_setup() in the kernel shows that actually the packet is sent
  to the local primary interface address.

  Let's look at what really happen to that packet -

192.168.0.1 after being mangled by inet_pton() gives
the field sin_addr.s_addr of 0x0100A8C0.  This should make
your sockaddr_in structure look like -

  sa.sin_len = 0x01
  sa.sin_family = 0x00
  sa.sin_port = 0xA8C0 (which is port 49320)
  sa.sin_addr.s_addr = 0x

  So the sendto() call was sending a packet to your local interface for port 
 49320.
  And since UDP is a connectionless protocol, you don't have a way (unless it 
 is
  builtin to your application protocol) to determine an error.  For example, 
 TFTP
  sends back notification for every dgram received.

  I hope this helps with your understanding.  I highly recommend if you are 
 going
  to do more network programming that you obtain at least some books on the 
 subject.


  Patrick


Thanks much for this explanation.  Books would be good, yes.  I guys
got to learn somehow.  Thanks for taking the time to explain it.
That's interesting that a broadcast may be sent to 0.0.0.0.  I knew
that 0.0.0.0 is equal to INADDR_ANY.  However, I thought it wasn't
possible to send to that address, only to bind to it locally for a
server application.

Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[slightly off topic] Users of tikiwiki (on this list), question about the editors

2008-03-14 Thread Andrew Falanga
Hi,

I'm looking at possibly using tikiwiki.  First off, does anyone here
use it?  Second, if so, is there a WYSIWYG editor for editing pages in
it?  I'm very curious to know about that.  I've used wiki's before and
for my church, I don't think many who would keep content on the site
would like to use syntax like:

+++ item 1
+++ item 2

etc.
(The above is from memory, it's been quite a while and I didn't use it
much.)  Are there management interfaces that present users with rich
text editors and they simply type what they want and the editor
translates it to wiki?

Thanks,
Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Network programming question

2008-03-13 Thread Andrew Falanga
Hi,

I'd like to know why the inet_pton(3) doesn't fill in the address
family of the proper structure passed into it.  I'm at a complete loss
for why.  Here's the prototype:

int inet_pton(int af, const char * restrict src, void * restrict dst);


Three arguments only.  The address family, hm, I'm passing it in; the
address string in printable ASCII text, and a void pointer to the
address structure to put the address into, presumably one of the
sockaddr_* family structures for AF_INET or AF_INET6 (further, the man
page says that this function is only valid for these two families now
anyway).

From some coding for a program, I did find that this function,
inet_pton(3), *does* in fact mangle the sin_family member of the
sockaddr_in structure, so why not mangle it to what it should be?  I
was doing something like this:

// valid code above
sockaddr_in   sa;

sa.sin_family = AF_INET;
sa.sin_port = htons(3252);

inet_pton(AF_INET, 192.168.0.1, sa);

sendto(sa, msg, strlen(msg), 0, (struct sockaddr*)sa, sizeof(sa));


The call to sendto is wrapped in an if an was failing for errno code
47, Address family not supported by protocol (I was using UDP).  I
changed the assignment of AF_INET to the sa.sin_family member to
*after* the call to inet_pton(3) and suddenly everything worked.  Why?
 Since the address family was used by inet_pton(3) to figure out how
to read the address and assign it to sa.sin_addr.s_addr, why not
simply assign AF_INET to the address family member in inet_pton(3)?

I'm not trying to be argumentative.  I'm just curious.  It seems like
redundancy.  I've used the address family to tell inet_pton(3) how to
operate, and then this function can't assign it to the sockaddr_in
structure passed to it?  This makes little sense.  In case it's
because I'm using older FBSD libraries that had a flaw fixed, I'm
using FreeBSD 6.2-RELEASE-p4.  Is this because that's how POSIX
defined it to work?  Is this the right venue or should I try one of
the other mailing lists?

Thanks,
Andy



-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Network programming question

2008-03-13 Thread Andrew Falanga
On Thu, Mar 13, 2008 at 11:45 AM, Patrick Mahan [EMAIL PROTECTED] wrote:


  Andrew Falanga presented these words - circa 3/13/08 9:10 AM-

  Hi,

  See man inet_pton . . . for details.

  Briefly, inet_pton() doesn't understand sockaddr structures.  Instead,
  it only understands in_addr or in6_addr structures which are included
  inside the sockaddr structure.  So your above example should be changed
  to


Ok, I should have thought of that when reading the manual.


if ((res = inet_pton(AF_INET, 192.168.0.1, sa.sin_addr))  0)
  perror(inet_pton);


  Because it is treating the sockaddr_in structure as an in_addr structure
  which is clobbering the sin_family field.


If this is true, then why are my packets sent at all?  The definition
of sockaddr_in (from /usr/include/netinet/in.h):

struct sockaddr_in {
uint8_t sin_len;
sa_family_t sin_family;
in_port_t   sin_port;
struct  in_addr sin_addr;
charsin_zero[8];
};


The definition of in_addr (from /usr/include/netinet/in.h):

struct in_addr {
in_addr_t s_addr;
};

The definition of in_addr_t (from /usr/include/netinet/in.h):
typedef uint32_tin_addr_t;

Passing in what I have, the address should indeed (as you've pointed
out) clobber the sin_family member.  However, since in_addr is
basically an unsigned integer, i.e. 4 bytes wide, shouldn't
inet_pton(3) clobber sin_len, sin_family  sin_port before ever
reaching sin_addr?  The sin_len  sin_family are 8 bit quantities, the
sin_port is 16 bits, that's 32.  If inet_pton(3) is expecting only an
in_addr I would think that a call to sendto(2) would fail because the
address in sin_addr is not filled, correct?

Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IPv4 loopback address is missing, why?

2008-02-19 Thread Andrew Falanga
On Feb 17, 2008 1:14 PM, Dominique Goncalves [EMAIL PROTECTED]
wrote:

 Hi,

 On Feb 16, 2008 6:41 PM, Andrew Falanga [EMAIL PROTECTED] wrote:
  HI,
 
  On my father's computer there isn't an IPv4 loopback address being
 assigned to
  the lo0 interface.  What would cause this?  I've looked at his configs
 and
  they're the same as on my system (obviously something is different, but
 I
  don't know what).  I see in his /etc/defaults/rc.conf the ifconfig_lo0
 line
  is *NOT* commented out or otherwise altered and his file looks the same
 as
  mine (at least on this point, I haven't contrasted the two entirely).
 
  So, why would his system not be configuring an IPv4 loopback address?
  After
  bootup, I can add the address manually using ifconfig.

 Do you have
 network_interfaces=something in your /etc/rc.conf ?
 If so you need also to add lo0.

 Hope this helps


His machine does have it in /etc/defaults/rc.conf (I assume this is where
it's supposed to be because my /etc/rc.conf file doesn't have it either but
I do have it in /etc/defaults/rc.conf), but not in /etc/rc.conf.  Basically,
his rc.conf files look nearly identical to mine (mine works).  I didn't look
closely at this /etc/hosts file as the other respondent mentioned but I
will.

Andy

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


IPv4 loopback address is missing, why?

2008-02-16 Thread Andrew Falanga
HI,

On my father's computer there isn't an IPv4 loopback address being assigned to 
the lo0 interface.  What would cause this?  I've looked at his configs and 
they're the same as on my system (obviously something is different, but I 
don't know what).  I see in his /etc/defaults/rc.conf the ifconfig_lo0 line 
is *NOT* commented out or otherwise altered and his file looks the same as 
mine (at least on this point, I haven't contrasted the two entirely).

So, why would his system not be configuring an IPv4 loopback address?  After 
bootup, I can add the address manually using ifconfig.

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


Re: Please help in diagnosing these smartmon messages

2008-02-15 Thread Andrew Falanga
On Thursday 07 February 2008 15:29:29 Mel wrote:
 On Tuesday 05 February 2008 04:14:39 Andrew Falanga wrote:
  I know it's probably near impossible to know exactly how much longer this
  drive has, but how serious are these errors?  As I mentioned, the
  unreadable sectors on the hard drive are repeated many times in the log (
   100 times).

 If it's not dead already, it can be when you read this or in 2-3 months. I
 usually change the cable on the first read error I see popping up, just to
 rule out the cable. If the errors persist, it's time to order and stop
 adding new stuff to the disk.
 Since it's a church disk, you might have better luck with your prayers then
 most people.


I wanted to say thanks to everyone who answered this one.  I figured that the 
problems shouldn't be good, but wanted to get some input from those who'd 
used smartd before.

Thanks again,

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


Re: Please help in diagnosing these smartmon messages

2008-02-07 Thread Andrew Falanga
On Feb 7, 2008 3:38 PM, Jerry McAllister [EMAIL PROTECTED] wrote:

 On Thu, Feb 07, 2008 at 11:29:29PM +0100, Mel wrote:

  On Tuesday 05 February 2008 04:14:39 Andrew Falanga wrote:
 
   I know it's probably near impossible to know exactly how much longer
 this
   drive has, but how serious are these errors?  As I mentioned, the
   unreadable sectors on the hard drive are repeated many times in the
 log ( 
   100 times).
 
  If it's not dead already, it can be when you read this or in 2-3 months.
 I
  usually change the cable on the first read error I see popping up, just
 to
  rule out the cable. If the errors persist, it's time to order and stop
 adding
  new stuff to the disk.

 Agree.   If it is seeing repeated errors, it is most likely about to
 die totally at any time.



I suspected as much but being new to smartmon wanted to make sure.  I was
especially curious to find out what a pending sector was.  I understand a
sector, but the pending part was curious for me.  I was talking with a guy
at work that does some file system stuff and he told me that if SMART is
giving you errors, it's not good.

I have to admit, I wished something like this existed in '92 when I started
as a service tech for a small, local computer company in upstate NY.  It
would have made life a lot easier.

Andy

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Please help in diagnosing these smartmon messages

2008-02-04 Thread Andrew Falanga
HI,

I just installed smartmontools from ports on my churches system and I think 
I'm glad I did.  However, not being completely familiar with it, I'd like 
some help with the messages (and errors) that have been discovered thus far 
(since I installed it on Saturday, yikes!).

First was this, and it's repeated in the log /var/log/messages frequently:

Feb  4 18:19:44 whitbap smartd[64783]: Device: /dev/ad0, 12 Currently 
unreadable (pending) sectors


Even though this entry comes from today, this was e-mailed to me within hours 
of enabling smartd on Saturday.  I understand what sectors are and I know 
what unreadable is.  I was wondering what pending meant.

Then, yesterday I was e-mailed this one:

Feb  3 02:49:44 whitbap smartd[64783]: Device: /dev/ad0, Self-Test Log error 
count increased from 0 to 1

Using smartctl I found that option -l with the argument selftest would 
give me more information.  This is what I found:

whitbap# smartctl -l selftest /dev/ad0
smartctl version 5.37 [i386-portbld-freebsd6.2] Copyright (C) 2002-6 Bruce 
Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num  Test_DescriptionStatus  Remaining  LifeTime(hours)  
LBA_of_first_error
# 1  Short offline   Completed: read failure   70% 60397 
67413
# 2  Short offline   Completed: read failure   70% 60373 
67413


I know it's probably near impossible to know exactly how much longer this 
drive has, but how serious are these errors?  As I mentioned, the unreadable 
sectors on the hard drive are repeated many times in the log (  100 times).

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


Installing apache and it conflicts with a previously installed port, how to fix

2008-01-26 Thread Andrew Falanga
Hi,

I'm installing apache 2.2 on my father's computer and got this error from the 
install of apache:

===  Installing for apache-2.2.8

===  apache-2.2.8 conflicts with installed package(s):
  apr-db42-1.2.8_2

  They install files into the same place.
  Please remove them first with pkg_delete(1).

As you can see, a recommended course of action is given here.  I wanted to 
find out what apr-db42 is, or what depends upon it, before removal and got 
this:

roadrunner# pkg_info -r apr-db42-1.2.8_2
Information for apr-db42-1.2.8_2:

Depends on:
Dependency: expat-2.0.0_1
Dependency: perl-5.8.8_1
Dependency: db42-4.2.52_5
Dependency: libiconv-1.9.2_2

Can I safely remove apr-db42-1.2.8_2 that using pkg_delete to complete the 
install of apache, or should I do something different?

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


KDE won't allow me to logout and restart kdm after upgrade to xorg 7.3

2008-01-18 Thread Andrew Falanga
Hi,

About two months ago (yes, I'm only now getting around to fixing this), I 
decided it was time to upgrade my Xorg install from 6.9 to the current.  I 
followed the instructions in /usr/ports/UPDATING from 20070519.  After the 
upgrade, everything was going ok, until I logged out of KDE.  I ended the 
session and was redirected to ttyv0.  The following was on the system 
console:

Jan 18 20:22:36 sniper kdm-bin[788]: X server for display :0 terminated 
unexpectedly
Jan 18 20:22:36 sniper kdm-bin: :0[948]: IO Error in XOpenDisplay
Jan 18 20:22:36 sniper kdm-bin[788]: Display :0 cannot be opened
Jan 18 20:22:36 sniper kdm-bin[788]: Unable to fire up local display :0; 
disabling.

I then went to another console and, as root, did:

sniper# sockstat | grep x
root kdm-bin788   9  stream /var/run/xdmctl/dmctl/socket

Which cleared out whatever was wrong and restarted kdm-bin and allowed me to 
start another session.  What exactly is going on here?  The reason it isn't 
too big a deal, and took me until now to mention it is because I'm about the 
only person who uses FreeBSD here at home and so when I logout, it's usually 
to shut off the computer.

Any thoughts on how to fix this?

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


Re: VoIP and SSH

2008-01-07 Thread Andrew Falanga
On Jan 7, 2008 8:45 AM, Jon Krause [EMAIL PROTECTED] wrote:

  Andrew Falanga wrote:

 On Friday 04 January 2008 14:55:00 Jon Krause wrote:


  Andrew Falanga wrote:


  Hi,

 I don't understand this one and I'm hoping someone here might know.  My
 father's router wasn't forwarding connection requests for any port that
 we'd configured for sshd to listen on.  After changing out his linksys
 router and his Cable MODEM (the company said it was a very old modem),
 the problem was still present.  Oddly enough, if he unplugs his VoIP box
 from his network, all this problem goes away and connection requests over
 ssh and port 22 are forwarded fine.  With the VoIP box present, it
 doesn't work.

 Neither the FreeBSD machine or the VoIP box share IPs, but it doesn't
 work with the VoIP in the network.  Any ideas?


  The VoIP box is usually an MTA, many include a router/firewall also.
 It should have an admin interface usually 192.168.0.1 or 192.168.1.1
 The cable company technical support should be able to walk you through
 getting access (or check any documentation that came with the MTA)

 They may or may not have port options (open or forward) that may allow
 ssh to work for you.

 Good Luck,

 Jon



  Andy
 [EMAIL PROTECTED] mailing 
 listhttp://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to[EMAIL PROTECTED] [EMAIL PROTECTED]

  Thanks to all for the suggestions.  I'll see what I can find.  Something one
 of you mentioned has me curious.  That being whether or not there is a DHCP
 server running.  My father's linksys router doles out IPs from 192.168.1.100 
 - something (I forget now).  Once, while trying to get this
 working, he logged into his system (from his system) using ssh.  What was odd
 was that he was able to log into his system by using the IP address of 
 192.168.100.101, but using ifconfig he'd always tell me that the IP was 
 192.168.1.100.  I'm betting that his VoIP box must be doling out IPs as well
 as his Linksys router, or something like that.

 Jon, what do you mean when you say, The 'VoIP box' is usually an MTA?  I'm
 used to MTA meaning Message Transfer Agent.  Is it the same in this case too?


  Sorry for the late response.

 MTA = multimedia terminal adapter
 It's a Cable industry term most recently replaced by eMTA (embedded) where
 the MTA is embedded in the cablemodem.  Most commonly used by Comcast, Time
 Warner and others for Packet Cable telephone service.


Regardless of the response being late, thank you very much for the
response.  In fact, my father's cable modem service comes from Time Warner's
Road Runner service in upstate NY.  I'll bet this must be the problem.

Thanks again.

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do I get sendmail working again

2008-01-07 Thread Andrew Falanga
On Sunday 06 January 2008 02:34:34 Josh Tolbert wrote:
 On Sun, Jan 06, 2008 at 09:22:52AM +, Matthew Seaman wrote:
  There's your problem.  You've got two conflicting sets of daemon
  options -- effectively you're telling sendmail to bind to the
  same interfaces twice for port 25.
 
  Just delete the DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl line
  and try again.
 
  Cheers,
 
  Matthew

 Or just comment out both the IPv4 and IPv6 DAEMON_OPTIONS lines, leaving
 the smtp/smtps lines alone. I didn't notice that in the config he posted;
 good catch.

 I sent Andy my box's .mc and it has both commented out.

 Thanks,

 Josh

Yes, thanks for explaining this.  I figured it had to be something like that.

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


How do I get sendmail working again

2008-01-05 Thread Andrew Falanga
HI,

I've gotten myself into a real fix at this point.  (This is a continuation of 
the thread I started, sendmail is broken, how do I fix?)  I was trying to 
setup authentication based relaying using istructions at 
http://www.puresimplicity.net/~hemi/freebsd/sendmail.html.  I must first say 
that I was trying to get authentication based relaying working by using the 
instructions in the handbook under the title SMTP Authentication.  The two 
set of instructions do overlap slightly.

Well, after following the instructions at the former link, sendmail will no 
longer start and is complaining with errors as follows from 
the /var/log/maillog file:

Jan  4 17:36:42 whitbap sm-mta[975]: starting daemon (8.13.8):
[EMAIL PROTECTED]:30:00
Jan  4 17:36:42 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket:
daemon MTA: cannot bind: Address already in use
Jan  4 17:36:42 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:36:42 whitbap sm-msp-queue[979]: starting daemon (8.13.8):
[EMAIL PROTECTED]:30:00
Jan  4 17:36:42 whitbap sm-mta[978]: m010sNBM004564:
to=[EMAIL PROTECTED], delay=3+23:42:19, xdelay=00:00:00,
mailer=esmtp, pri=2555114, relay=mail02.interchangeusa.com. [63.251.210.81],
dsn=4.0.0, stat=Deferred: Connection refused by mail02.interchangeusa.com.
Jan  4 17:36:47 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket:
daemon MTA: cannot bind: Address already in use
Jan  4 17:36:47 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:36:52 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): pendaemonsocket:
daemon MTA: cannot bind: Address already in use
Jan  4 17:36:52 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:36:57 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket:
daemon MTA: cannot bind: Address already in use
Jan  4 17:36:57 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:02 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket:
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:02 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:07 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket:
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:07 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:12 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket:
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:12 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:17 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket:
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:17 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:22 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): pendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:22 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:27 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket:
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:27 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:32 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket:
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:32 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:32 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket:
daemon MTA: server SMTP socket wedged: exiting 

Someone asked me to post the result of doing, sockstat | grep :25 just 
after starting the sendmail process.  Well, here's that output:

whitbap# /etc/rc.d/sendmail start
Starting sendmail.
whitbap# sockstat | grep :25
root sendmail   1133  3  tcp4   *:25  *:*
root sendmail   1133  5  tcp6   *:25  *:*
whitbap# sockstat | grep :25
root sendmail   1133  3  tcp4   *:25  *:*
root sendmail   1133  5  tcp6   *:25  *:*
whitbap# sockstat | grep :25
root sendmail   1133  3  tcp4   *:25  *:*
root sendmail   1133  5  tcp6   *:25  *:*
whitbap# sockstat | grep :25
root sendmail   1133  3  tcp4   *:25  *:*
root sendmail   1133  5  tcp6   *:25  *:*
whitbap# sockstat | grep :25
root sendmail   1133  3  tcp4   *:25  *:*
root sendmail   1133  5  tcp6   *:25  *:*
whitbap# sockstat | grep :25
root sendmail   1133  3  tcp4   *:25  *:*
root sendmail   1133  5  tcp6   *:25  *:*
whitbap# sockstat | grep :25
whitbap# 


I do know for a fact that it's sendmail that's killing itself.  Without 
anything else running related to mail (sendmail or dovecot) I wrote a little 
C program to open a socket and bind to port 25 and it works ok.  Please help 
me.  I have got to get this working for the church and at this point, I'm not 
sure how to make it work.

Andy

RE: How do I get sendmail working again

2008-01-05 Thread Andrew Falanga
Wanted to post the contents of my hostname.mc file:

whitbap# cat whitbap.mc
divert(-1)
#
# Copyright (c) 1983 Eric P. Allman
# Copyright (c) 1988, 1993
#   The Regents of the University of California.  All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#notice, this list of conditions and the following disclaimer in the
#documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
#must display the following acknowledgement:
#   This product includes software developed by the University of
#   California, Berkeley and its contributors.
# 4. Neither the name of the University nor the names of its contributors
#may be used to endorse or promote products derived from this software
#without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#

#
#  This is a generic configuration file for FreeBSD 5.X and later systems.
#  If you want to customize it, copy it to a name appropriate for your
#  environment and do the modifications there.
#
#  The best documentation for this .mc file is:
#  /usr/share/sendmail/cf/README or
#  /usr/src/contrib/sendmail/cf/README
#

divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.30.2.2 2006/08/23 
03:31:00 gshapiro Exp $')
OSTYPE(freebsd6)
DOMAIN(generic)

FEATURE(access_db, `hash -o -TTMPF /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')

dnl Uncomment to allow relaying based on your MX records.
dnl NOTE: This can allow sites to use your server as a backup MX without
dnl   your permission.
dnl FEATURE(relay_based_on_MX)

dnl DNS based black hole lists
dnl 
dnl DNS based black hole lists come and go on a regular basis
dnl so this file will not serve as a database of the available servers.
dnl For that, visit
dnl http://directory.google.com/Top/Computers/Internet/Abuse/Spam/Blacklists/

dnl Uncomment to activate Realtime Blackhole List
dnl information available at http://www.mail-abuse.com/
dnl NOTE: This is a subscription service as of July 31, 2001
dnl FEATURE(dnsbl)
dnl Alternatively, you can provide your own server and rejection message:
dnl FEATURE(dnsbl, `blackholes.mail-abuse.org', `550 Mail from  
${client_addr}  rejected, see http://mail-abuse.org/cgi-bin/lookup?; 
${client_addr}')

dnl Dialup users should uncomment and define this appropriately
dnl define(`SMART_HOST', `your.isp.mail.server')

dnl Uncomment the first line to change the location of the default
dnl /etc/mail/local-host-names and comment out the second line.
dnl define(`confCW_FILE', `-o /etc/mail/sendmail.cw')
define(`confCW_FILE', `-o /etc/mail/local-host-names')

dnl Enable for both IPv4 and IPv6 (optional)
DAEMON_OPTIONS(`Name=IPv4, Family=inet')
DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')

define(`confBIND_OPTS', `WorkAroundBroken')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
FEATURE(`no_default_msa')
MAILER(local)
MAILER(smtp)

dnl set SASL options
dnl TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
dnl define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
define(`confAUTH_MECHANISMS',`PLAIN LOGIN')dnl
TRUST_AUTH_MECH(`PLAIN LOGIN')dnl
define(`CERT_DIR', `/etc/mail/certs')dnl
define(`confCACERT_PATH', `CERT_DIR')dnl
define(`confCACERT', `CERT_DIR/whitbap_cert.pem')dnl
define(`confSERVER_CERT', `CERT_DIR/whitbap_cert.pem')dnl
define(`confSERVER_KEY', `CERT_DIR/whitbap_key.pem')dnl
define(`confCLIENT_CERT', `CERT_DIR/whitbap_cert.pem')dnl
define(`confCLIENT_KEY', `CERT_DIR/whitbap_key.pem')dnl
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA')dnl


Andy
___

Anyone using dovecot deliver for virtual users

2008-01-05 Thread Andrew Falanga
Hi,

Is anyone on this list, who's using dovecot, using dovecot deliver to deliver 
mail to virtual users?  If so, what's the key to setting up the deliver 
process in sendmail?

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


My sendmail appears to be fixed, advice needed though

2008-01-05 Thread Andrew Falanga
Hi everybody,

Sorry for this flurry of e-mail from me over the last few days.  This has been 
highly frustrating.  At any rate, I think I've worked it out.  Although, I'd 
like to have some folks look over this hostname.mc file and tell me if the 
fix is legitimate.

Basically, the instructions for setting up SSL and Authentication (from 
http://www.puresimplicity.net/~hemi/freebsd/sendmail.html) instruct to have 
the following lines in the hostname.mc file:

define(`confAUTH_MECHANISMS',`PLAIN LOGIN')dnl
TRUST_AUTH_MECH(`PLAIN LOGIN')dnl
define(`CERT_DIR', `/etc/mail/certs')dnl
define(`confCACERT_PATH', `CERT_DIR')dnl
define(`confCACERT', `CERT_DIR/mycert.pem')dnl
define(`confSERVER_CERT', `CERT_DIR/mycert.pem')dnl
define(`confSERVER_KEY', `CERT_DIR/mykey.pem')dnl
define(`confCLIENT_CERT', `CERT_DIR/mycert.pem')dnl
define(`confCLIENT_KEY', `CERT_DIR/mykey.pem')dnl
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl

I deleated this line:
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl

And all is working ok now (at least it seems so).  I also went over Josh's 
instructions with a finer tooth comb than before (I skipped a couple of steps 
because they looked identical to what was in the FreeBSD handbook for this, 
but found there were some very subtle differences).  After recompiling and 
installing a new sendmail binary per Josh's instructions at the above line, I 
actually still have the can't bind to port problems, but things are now 
working as I said, without that line in the *.mc file.

Is this a viable fix or will I be missing something?  I was able to telnet to 
port 25 and send mail that way.  I cannot relay without logging in, so I 
think it's fixed.

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


Re: My sendmail appears to be fixed, advice needed though

2008-01-05 Thread Andrew Falanga
Well, oddly enough I moved those additional lines to a position before the 
MAILER macros (I'll post the whitbap.mc file below as it exists now).  
However, I still got those error messages:

Jan  5 18:29:10 whitbap sm-mta[6207]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  5 18:29:10 whitbap sm-mta[6207]: daemon MTA: problem creating SMTP socket
Jan  5 18:29:15 whitbap sm-mta[6207]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use


Anyway, I'm going to remove that line I mentioned before as this seems to make 
things work.  Please help me to resolve this and thanks very much for the 
help, this is great.

Andy

whitbap# cat whitbap.mc
divert(-1)
#
# Copyright (c) 1983 Eric P. Allman
# Copyright (c) 1988, 1993
#   The Regents of the University of California.  All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#notice, this list of conditions and the following disclaimer in the
#documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
#must display the following acknowledgement:
#   This product includes software developed by the University of
#   California, Berkeley and its contributors.
# 4. Neither the name of the University nor the names of its contributors
#may be used to endorse or promote products derived from this software
#without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#

#
#  This is a generic configuration file for FreeBSD 5.X and later systems.
#  If you want to customize it, copy it to a name appropriate for your
#  environment and do the modifications there.
#
#  The best documentation for this .mc file is:
#  /usr/share/sendmail/cf/README or
#  /usr/src/contrib/sendmail/cf/README
#

divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.30.2.2 2006/08/23 
03:31:00 gshapiro Exp $')
OSTYPE(freebsd6)
DOMAIN(generic)

FEATURE(access_db, `hash -o -TTMPF /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')

dnl Uncomment to allow relaying based on your MX records.
dnl NOTE: This can allow sites to use your server as a backup MX without
dnl   your permission.
dnl FEATURE(relay_based_on_MX)

dnl DNS based black hole lists
dnl 
dnl DNS based black hole lists come and go on a regular basis
dnl so this file will not serve as a database of the available servers.
dnl For that, visit
dnl http://directory.google.com/Top/Computers/Internet/Abuse/Spam/Blacklists/

dnl Uncomment to activate Realtime Blackhole List
dnl information available at http://www.mail-abuse.com/
dnl NOTE: This is a subscription service as of July 31, 2001
dnl FEATURE(dnsbl)
dnl Alternatively, you can provide your own server and rejection message:
dnl FEATURE(dnsbl, `blackholes.mail-abuse.org', `550 Mail from  
${client_addr}  rejected, see http://mail-abuse.org/cgi-bin/lookup?; 
${client_addr}')

dnl Dialup users should uncomment and define this appropriately
dnl define(`SMART_HOST', `your.isp.mail.server')

dnl Uncomment the first line to change the location of the default
dnl /etc/mail/local-host-names and comment out the second line.
dnl define(`confCW_FILE', `-o /etc/mail/sendmail.cw')
define(`confCW_FILE', `-o /etc/mail/local-host-names')

dnl Enable for both IPv4 and IPv6 (optional)
DAEMON_OPTIONS(`Name=IPv4, Family=inet')
DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')

define(`confAUTH_MECHANISMS',`PLAIN LOGIN')dnl
TRUST_AUTH_MECH(`PLAIN LOGIN')dnl
define(`CERT_DIR', `/etc/mail/certs')dnl
define(`confCACERT_PATH', `CERT_DIR')dnl
define(`confCACERT', `CERT_DIR/whitbap_cert.pem')dnl
define(`confSERVER_CERT', `CERT_DIR/whitbap_cert.pem')dnl
define(`confSERVER_KEY', 

Re: My sendmail appears to be fixed, advice needed though

2008-01-05 Thread Andrew Falanga
On Saturday 05 January 2008 15:06:59 Giorgos Keramidas wrote:
 On 2008-01-05 13:08, Andrew Falanga [EMAIL PROTECTED] wrote:
  Hi everybody,
  Sorry for this flurry of e-mail from me over the last few days.  This
  has been highly frustrating.

 You should post *more* details, not less.  One of the things which was
 missing from the older posts (or at least, one thing which I didn't see)
 was a *FULL* copy of your local *.mc configuration file.

  Basically, the instructions for setting up SSL and Authentication (from
  http://www.puresimplicity.net/~hemi/freebsd/sendmail.html) instruct to
  have the following lines in the hostname.mc file:
 
  define(`confAUTH_MECHANISMS',`PLAIN LOGIN')dnl
  TRUST_AUTH_MECH(`PLAIN LOGIN')dnl
  define(`CERT_DIR', `/etc/mail/certs')dnl
  define(`confCACERT_PATH', `CERT_DIR')dnl
  define(`confCACERT', `CERT_DIR/mycert.pem')dnl
  define(`confSERVER_CERT', `CERT_DIR/mycert.pem')dnl
  define(`confSERVER_KEY', `CERT_DIR/mykey.pem')dnl
  define(`confCLIENT_CERT', `CERT_DIR/mycert.pem')dnl
  define(`confCLIENT_KEY', `CERT_DIR/mykey.pem')dnl
  DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
  DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl
 
  I deleated this line:
  DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl

 That doesn't sound right.  I think it's because you have the options
 listed above *after* the MAILER() calls.  This means that the options
 are not `set' at the time the MAILER() calls generate your
 configuration.  So you probably end up with several instances of the
 `MTA' and `TLSMTA' daemon definitions in the final `sendmail.cf' file.

 This could very well be the explanation of why your Sendmail *is*
 listening on port :25 and it *also* tries to listen again, logging the
 failures in syslog.

  Is this a viable fix or will I be missing something?  I was able to
  telnet to port 25 and send mail that way.  I cannot relay without
  logging in, so I think it's fixed.

 See my previous post about moving MAILER() calls to the end of the file,
 and give it another spin.  You are *very* close to figuring it all out
 and having a fully working setup, AFAICT :)

 Regards,
 Giorgos

Glad to see that I'm on the right track.  I think, after seeing the full 
contents of my whitbap.mc file, you'll see that the problem is that put these 
lines *after* the MAILER lines.  At any rate, here's the full whitbap.mc file 
and sorry for not posting it completely before:

whitbap# cat whitbap.mc
divert(-1)
#
# Copyright (c) 1983 Eric P. Allman
# Copyright (c) 1988, 1993
#   The Regents of the University of California.  All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#notice, this list of conditions and the following disclaimer in the
#documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
#must display the following acknowledgement:
#   This product includes software developed by the University of
#   California, Berkeley and its contributors.
# 4. Neither the name of the University nor the names of its contributors
#may be used to endorse or promote products derived from this software
#without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#

#
#  This is a generic configuration file for FreeBSD 5.X and later systems.
#  If you want to customize it, copy it to a name appropriate for your
#  environment and do the modifications there.
#
#  The best documentation for this .mc file is:
#  /usr/share/sendmail/cf/README or
#  /usr/src/contrib/sendmail/cf/README
#

divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.30.2.2 2006/08/23 
03:31:00 gshapiro Exp $')
OSTYPE(freebsd6)
DOMAIN(generic)

FEATURE(access_db, `hash -o -TTMPF /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')

dnl

Re: My sendmail appears to be fixed, advice needed though

2008-01-05 Thread Andrew Falanga
On Saturday 05 January 2008 19:26:30 Giorgos Keramidas wrote:
 On 2008-01-05 17:13, Andrew Falanga [EMAIL PROTECTED] wrote:
  Well, oddly enough I moved those additional lines to a position before
  the MAILER macros (I'll post the whitbap.mc file below as it exists now).
  However, I still got those error messages:
 
  Jan  5 18:29:10 whitbap sm-mta[6207]: NOQUEUE: SYSERR(root):
  opendaemonsocket: daemon MTA: cannot bind: Address already in use
  Jan  5 18:29:10 whitbap sm-mta[6207]: daemon MTA: problem creating SMTP
  socket Jan  5 18:29:15 whitbap sm-mta[6207]: NOQUEUE: SYSERR(root):
  opendaemonsocket: daemon MTA: cannot bind: Address already in use
 
  Anyway, I'm going to remove that line I mentioned before as this seems to
  make things work.  Please help me to resolve this and thanks very much
  for the help, this is great.

 Ok, not can you show us the contents of `/etc/rc.conf' related to
 Sendmail?  It's the next thing we have to check to ensure you are not
 starting up multiple Sendmail listeners on the default smtp port.

 % grep -i sendmail /etc/rc.conf

 should do it :)

You bet.  

whitbap# grep -i sendmail /etc/rc.conf
#20071229 A. Falanga; these two are needed to allow for sendmail to listen
sendmail_enable=YES


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


VoIP and SSH

2008-01-04 Thread Andrew Falanga
Hi,

I don't understand this one and I'm hoping someone here might know.  My 
father's router wasn't forwarding connection requests for any port that we'd 
configured for sshd to listen on.  After changing out his linksys router and 
his Cable MODEM (the company said it was a very old modem), the problem was 
still present.  Oddly enough, if he unplugs his VoIP box from his network, 
all this problem goes away and connection requests over ssh and port 22 are 
forwarded fine.  With the VoIP box present, it doesn't work.

Neither the FreeBSD machine or the VoIP box share IPs, but it doesn't work 
with the VoIP in the network.  Any ideas?

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


Re: VoIP and SSH

2008-01-04 Thread Andrew Falanga
On Friday 04 January 2008 14:55:00 Jon Krause wrote:
 Andrew Falanga wrote:
  Hi,
 
  I don't understand this one and I'm hoping someone here might know.  My
  father's router wasn't forwarding connection requests for any port that
  we'd configured for sshd to listen on.  After changing out his linksys
  router and his Cable MODEM (the company said it was a very old modem),
  the problem was still present.  Oddly enough, if he unplugs his VoIP box
  from his network, all this problem goes away and connection requests over
  ssh and port 22 are forwarded fine.  With the VoIP box present, it
  doesn't work.
 
  Neither the FreeBSD machine or the VoIP box share IPs, but it doesn't
  work with the VoIP in the network.  Any ideas?

 The VoIP box is usually an MTA, many include a router/firewall also.
 It should have an admin interface usually 192.168.0.1 or 192.168.1.1
 The cable company technical support should be able to walk you through
 getting access (or check any documentation that came with the MTA)

 They may or may not have port options (open or forward) that may allow
 ssh to work for you.

 Good Luck,

 Jon

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

Thanks to all for the suggestions.  I'll see what I can find.  Something one 
of you mentioned has me curious.  That being whether or not there is a DHCP 
server running.  My father's linksys router doles out IPs from 
192.168.1.100 - something (I forget now).  Once, while trying to get this 
working, he logged into his system (from his system) using ssh.  What was odd 
was that he was able to log into his system by using the IP address of 
192.168.100.101, but using ifconfig he'd always tell me that the IP was 
192.168.1.100.  I'm betting that his VoIP box must be doling out IPs as well 
as his Linksys router, or something like that.

Jon, what do you mean when you say, The 'VoIP box' is usually an MTA?  I'm 
used to MTA meaning Message Transfer Agent.  Is it the same in this case too?

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


Re: sendmail is broken, how do I fix

2008-01-04 Thread Andrew Falanga
On Wednesday 02 January 2008 14:18:53 Derek Ragona wrote:
 At 03:03 PM 1/2/2008, Andrew Falanga wrote:
   While you think there is nothing on that port something is running not
   letting that socket connection.  Try rebooting the system and see if
   the problem is still there.
  
-Derek
 
 I did try that too.  Didn't work.

 Have you tried telnet to the IP and port 25?  If it is sendmail, you can
 see that from the banner, also you can watch the maillog file in /var/log.

 I suspect you have another process tying up that port.

  -Derek

The problem seems to be sendmail itself.  Here's what I've done to isolate the 
problem.

1) changed /etc/rc.conf to NOT start sendmail or anything mail related
  -- sendmail (external stuff, the local daemon still starts in
   /etc/defaults/rc.conf)
  -- dovecot
  -- saslauthd

I know that saslauthd isn't exactly mail related but I installed it for 
sendmail

2) rebooted the computer (and verified that it did actually reboot by using 
uptime).  I'm not sitting in front of this computer, I'm ssh-ing into it.

3) once restarted, I wrote a little C program to open a socket and then bind 
the ip address 192.168.2.23 (the machines IP) and port 25 to that socket.  
The effectiveness of this program was verified using sockstat.  If necessary, 
I will post the source code, but didn't see much need to now.  The program 
worked and the bind(2) call made no complaints.

4) Stopped ALL sendmail processes (/etc/rc.d/sendmail stop)

5) edited /etc/rc.conf and re-enabled the external sendmail process

6) Started sendmail and now see the exact same problems in /var/log/maillog:  
see below

Jan  4 17:36:42 whitbap sm-mta[975]: starting daemon (8.13.8): 
[EMAIL PROTECTED]:30:00
Jan  4 17:36:42 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  4 17:36:42 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:36:42 whitbap sm-msp-queue[979]: starting daemon (8.13.8): 
[EMAIL PROTECTED]:30:00
Jan  4 17:36:42 whitbap sm-mta[978]: m010sNBM004564: 
to=[EMAIL PROTECTED], delay=3+23:42:19, xdelay=00:00:00, 
mailer=esmtp, pri=2555114, relay=mail02.interchangeusa.com. [63.251.210.81], 
dsn=4.0.0, stat=Deferred: Connection refused by mail02.interchangeusa.com.
Jan  4 17:36:47 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  4 17:36:47 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:36:52 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  4 17:36:52 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:36:57 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  4 17:36:57 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:02 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:02 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:07 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:07 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:12 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:12 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:17 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:17 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:22 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:22 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:27 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:27 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:32 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  4 17:37:32 whitbap sm-mta[975]: daemon MTA: problem creating SMTP socket
Jan  4 17:37:32 whitbap sm-mta[975]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: server SMTP socket wedged: exiting

What does one do when sendmail is it's own worst enemy?

Any help is greatly appreciated because I don't understand at all what I could 
have done to this.  If necessary, I'll post my hostname.mc file for all to 
read.  Heck, I'll post whatever is necessary because this has to be working.

Andy
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send

Re: sendmail is broken, how do I fix

2008-01-04 Thread Andrew Falanga


 With sendmail generating the errors above, post the results of this:
 # sockstat | grep :25


whitbap# /etc/rc.d/sendmail start
Starting sendmail.
whitbap# sockstat | grep :25
root sendmail   1133  3  tcp4   *:25  *:*
root sendmail   1133  5  tcp6   *:25  *:*
whitbap# sockstat | grep :25
root sendmail   1133  3  tcp4   *:25  *:*
root sendmail   1133  5  tcp6   *:25  *:*
whitbap# sockstat | grep :25
root sendmail   1133  3  tcp4   *:25  *:*
root sendmail   1133  5  tcp6   *:25  *:*
whitbap# sockstat | grep :25
root sendmail   1133  3  tcp4   *:25  *:*
root sendmail   1133  5  tcp6   *:25  *:*
whitbap# sockstat | grep :25
root sendmail   1133  3  tcp4   *:25  *:*
root sendmail   1133  5  tcp6   *:25  *:*
whitbap# sockstat | grep :25
root sendmail   1133  3  tcp4   *:25  *:*
root sendmail   1133  5  tcp6   *:25  *:*
whitbap# sockstat | grep :25
whitbap# 

I kept on doing this until the daemon died with the same error as before.

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


Re: sendmail is broken, how do I fix

2008-01-02 Thread Andrew Falanga


 While you think there is nothing on that port something is running not
 letting that socket connection.  Try rebooting the system and see if the
 problem is still there.

  -Derek


I did try that too.  Didn't work.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


sendmail is broken, how do I fix

2008-01-01 Thread Andrew Falanga
Hello,

I'm not sure what I did.  I've been following instructions (really!) and after 
following the instructions from here: 
http://www.puresimplicity.net/~hemi/freebsd/sendmail.html

to setup SSL/TLS authentication for mail relaying, my sendmail installation 
always gives me this very frustrating messages in /var/log/maillog:

Jan  1 11:24:27 whitbap sm-mta[3706]: starting daemon (8.13.8): 
[EMAIL PROTECTED]:30:00
Jan  1 11:24:27 whitbap sm-mta[3706]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  1 11:24:27 whitbap sm-mta[3706]: daemon MTA: problem creating SMTP socket
Jan  1 11:24:27 whitbap sm-msp-queue[3710]: starting daemon (8.13.8): 
[EMAIL PROTECTED]:30:00
Jan  1 11:24:27 whitbap sm-mta[3707]: m010sNBM004564: 
to=[EMAIL PROTECTED], delay=17:30:04, xdelay=00:00:00, mailer=esmtp, 
pri=1835114, relay=mail02.interchangeusa.com. [63.251.210.81], dsn=4.0.0, 
stat=Deferred: Connection refused by mail02.interchangeusa.com.
Jan  1 11:24:32 whitbap sm-mta[3706]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  1 11:24:32 whitbap sm-mta[3706]: daemon MTA: problem creating SMTP socket
Jan  1 11:24:37 whitbap sm-mta[3706]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Jan  1 11:24:37 whitbap sm-mta[3706]: daemon MTA: problem creating SMTP socket
Jan  1 11:24:42 whitbap sm-mta[3706]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use

Try as I have, I cannot isolate what is causing this.  When I completely kill 
all sendmail processes (as verified by sockstat  and ps -aux) there is 
*nothing* using port 25.  I do not understand what is going on.

While following the instructions for smtp authentication in: 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/smtp-auth.html

I perhaps made one of my blunders.  These instructions say to alter the 
file freebsd.mc rather than hostname.mc.  It does say that some admin's 
like to use hostname.mc, but because I didn't know much about how FreeBSD 
does the install, I saw freebsd.mc and added the three lines listed in bullet 
item 6 on that web page.  Later, I saw that I did have the file hostname.mc 
and while researching a resolution to this problem learned that FreeBSD makes 
the hostname.mc file when doing a make all if memory serves.

Anyway, I then removed those three lines from freebsd.mc and pasted them into 
hostname.mc.  Regardless, when I had those three lines in freebsd.mc 
everything worked.  I made the changes for SSL/TLS as Josh Tolbert lays out 
in his web site (see above link) and when I restarted sendmail, that's when 
my troubles began.  I don't understand what it is that I did and how it made 
it so that sendmail now thinks something else is using the socket/address.

I'm desperate for a solution.  Thanks for any help.

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


Now sendmail won't even start

2007-12-31 Thread Andrew Falanga
HI,

Ok, a couple of days ago, Josh Tolbert told me to check out his site for how 
to setup sendmail+SMTP AUTH+SSL/TLS.  So, I went to your (Josh's) site and 
followed the directions.  Now however, sendmail doesn't even want to start.  
Actually, more correctly, it doesn't want to stay running.

If I do: /etc/rc.d/sendmail start

sendmail starts and is actually listening on port 25 for all of 30 seconds, 
then that section of sendmail dies.  Then, all I have is this left over from 
the start of sendmail (gleened by doing sockstat | grep sendmail):

smmspsendmail   5085  3  dgram  - /var/run/log
root sendmail   5082  4  dgram  - /var/run/logpriv
root sendmail   5082  6  tcp4   192.168.2.23:63862204.17.36.86:25

Doing tail /var/log/maillog yeilds this:
Dec 31 18:40:16 whitbap sm-msp-queue[5059]: starting daemon (8.13.8): 
[EMAIL PROTECTED]:30:00
Dec 31 18:40:24 whitbap sm-mta[5018]: lBU9XI9f063744: to=[EMAIL PROTECTED], 
delay=1+16:07:06, xdelay=00:01:15, mailer=esmtp, pri=7595712, 
relay=gpcvb.org. [204.17.36.86], dsn=4.0.0, stat=Deferred: Operation timed 
out with gpcvb.org.
Dec 31 18:41:03 whitbap sm-mta[5080]: gethostbyaddr(192.168.2.23) failed: 1
Dec 31 18:41:03 whitbap sm-mta[5081]: starting daemon (8.13.8): 
[EMAIL PROTECTED]:30:00
Dec 31 18:41:03 whitbap sm-mta[5081]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Dec 31 18:41:03 whitbap sm-mta[5081]: daemon MTA: problem creating SMTP socket
Dec 31 18:41:03 whitbap sm-msp-queue[5085]: starting daemon (8.13.8): 
[EMAIL PROTECTED]:30:00
Dec 31 18:41:03 whitbap sm-mta[5082]: m010sNBM004564: 
to=[EMAIL PROTECTED], delay=00:46:40, xdelay=00:00:00, mailer=esmtp, 
pri=845114, relay=mail02.interchangeusa.com. [63.251.210.81], dsn=4.0.0, 
stat=Deferred: Connection refused by mail02.interchangeusa.com.
Dec 31 18:41:08 whitbap sm-mta[5081]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon MTA: cannot bind: Address already in use
Dec 31 18:41:08 whitbap sm-mta[5081]: daemon MTA: problem creating SMTP socket

Other than the below lines my hostname.mc file is unaltered.  These are the 
only lines I've added:  

dnl set SASL options
TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
#define(`confAUTH_MECHANISMS',`PLAIN LOGIN')dnl
#TRUST_AUTH_MECH(`PLAIN LOGIN')dnl
#define(`CERT_DIR', `/etc/mail/certs')dnl
#define(`confCACERT_PATH', `CERT_DIR')dnl
#define(`confCACERT', `CERT_DIR/whitbap_cert.pem')dnl
#define(`confSERVER_CERT', `CERT_DIR/whitbap_cert.pem')dnl
#define(`confSERVER_KEY', `CERT_DIR/whitbap_key.pem')dnl
#define(`confCLIENT_CERT', `CERT_DIR/whitbap_cert.pem')dnl
#define(`confCLIENT_KEY', `CERT_DIR/whitbap_key.pem')dnl
#DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
#DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA')dnl


The commented stuff is what I added from Josh's web site.  The stuff above it 
is what I added following some other instructions a couple of days ago.  I 
made these changes from the instructions in the handbook, 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/smtp-auth.html.  I 
uncommented them because before I made the changes to use SSL, it (sendmail) 
worked.  Now it's not so I was trying to back the changes out just to see if 
sendmail would work again, but it's not.  What is going on?

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


Now sendmail won't even start (update)

2007-12-31 Thread Andrew Falanga
With every sendmail process turned off (verified using ps -aux | grep 
sendmail, and netstat -naf inet and lastly sockstat | grep sendmail; ok, ok, 
overkill); I've determined that nothing on the system is listening on port 25 
except sendmail.

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


Having problems with SMTP authentication

2007-12-29 Thread Andrew Falanga
HI,

I've followed the instructions @ 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/smtp-auth.html, but 
am still having problems with the authentication process.

If I set my client to use either CRAM-MD5 or DIGEST-MD5, I get an error return 
of authentication failure, most likely the password is wrong.  Now, to make 
sure that I'm understanding this correctly, this program (saslauthd) takes 
the username and passwords given it and attempts to verify them against what 
the system knows to be it's users, correct?

Working under this assumption, it would seem that the user vmail (a user I 
created on the system) would be the user that I would want to use in the 
e-mail client.  Well, I've done this and verified that the password is, in 
fact, correct; I'm unable to authenticate to the SMTP server.

Another point of interest, I added these lines (from the handbook) to my 
freebsd.mc file (as per instructions):

dnl set SASL options
TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl

But when I ask my e-mail client to check what the server supports, the 
returned list is only, GSSAPI, DIGEST-MD5 and CRAM-MD5.  Why is LOGIN not 
listed when it's included in this macro file?  Is there anything missing from 
this section of the handbook that I've missed?

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


Re: Having problems with SMTP authentication

2007-12-29 Thread Andrew Falanga
On Saturday 29 December 2007 13:51:06 Matthew Seaman wrote:
 Andrew Falanga wrote:
  dnl set SASL options
  TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
  define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
 
  But when I ask my e-mail client to check what the server supports, the
  returned list is only, GSSAPI, DIGEST-MD5 and CRAM-MD5.  Why is LOGIN not
  listed when it's included in this macro file?  Is there anything missing
  from this section of the handbook that I've missed?

 LOGIN will only be enabled over an encrypted connection.  All you need
 to do to enable the stock sendmail to support STARTTLS is tell it to
 use one or more SSL certs.  Adding something like this to
 /etc/mail/`hostname`.mc is how to do that:

this seems to imply you want me to create a file named hostname.mc.  The 
instructions I followed in the handbook also mentioned that, Many 
administrators choose to use the output from hostname(1) as the .mc file for 
uniqueness.  Do I have to make this new file, paste into it all the stuff 
in freebsd.mc and then add these lines too?


 dnl
 dnl TLS stuff
 dnl
 define(`CERT_DIR', `MAIL_SETTINGS_DIR`'certs')dnl
 define(`confCACERT_PATH', `CERT_DIR')dnl
 define(`confCACERT', `CERT_DIR/cacert.pem')dnl
 define(`confSERVER_CERT', `CERT_DIR/cert.pem')dnl
 define(`confSERVER_KEY', `CERT_DIR/key.pem')dnl
 define(`confCLIENT_CERT', `CERT_DIR/cert.pem')dnl
 define(`confCLIENT_KEY', `CERT_DIR/key.pem')dnl

 Which means you'ld put the PEM encoded cacert, key and cert into
 /etc/mail/cacert.pem, /etc/mail/key.pem and /etc/mail/key.cert
 respectively.  To generate all of those, there are some pithy
 instructions here:

 http://www.sendmail.org/~ca/email/other/cagreg.html

Thanks for all this.

Andy


 When submitting a new message, most mail clients will automatically
 do STARTTLS if it's available.

   Cheers,

   Matthew


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


Still having problems burning DVDs

2007-12-29 Thread Andrew Falanga
Ok,

Thanks to the help of earlier posts (a couple of weeks ago), using kldload 
atapicam now allows for the scsi ioctls on my IDE CD/DVD burner.

However, when I do the following:

growisofs -Z /dev/cd0 -dvd-video /usr/local/dvds/whereisGod1.iso

I get this output:
Executing 'mkisofs -dvd-video /usr/local/dvds/whereisGod1.iso | builtin_dd 
of=/dev/pass0 obs=32k seek=0'
mkisofs: Value too large to be stored in data type. 
File /usr/local/dvds/whereisGod1.iso is too large - ignoring
mkisofs: Unable to make a DVD-Video image.
:-( write failed: Input/output error


Now, what is causing this?  The command I'm using is right off of the handbook 
for creating DVD video:  
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-dvds.html

And the size of this file is:

-rw-r--r--  1 root  wheel  4317872128 Nov 21 16:30 whereisGod1.iso


That's slightly smaller than the 4.7 gb that the DVD+R says it will hold.  
Please keep in mind that this iso file I've made is from doing:

cp /dev/acd0 /usr/local/dvds/whereisGod1.iso

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


How to make sendmail listen on an address other than the loopback

2007-12-28 Thread Andrew Falanga
Hi,

I'm trying to get an e-mail system working for my church (whitneybaptist.org).  
I've added a file called local-host-names in /etc/mail as described in the 
Handbook, then did /etc/rc.d/sendmail restart and then did sockstat | grep 
sendmail and got the following results:

root sendmail   32889 3  tcp4   127.0.0.1:25  *:*
root sendmail   32889 4  dgram  - /var/run/logpriv
smmspsendmail   696   3  dgram  - /var/run/log


Now, with the exception of the additional file, nothing has been done to this 
stock sendmail configuration (system is 6.2-RELEASE-p7).  How would I make 
sendmail listen on the ip of 192.168.2.23?  I do have some experience with 
sendmail, however, it was several years ago and I've forgotten quite a bit.  
Why isn't it listening on that address now?

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


  1   2   3   >