Re: Closing some open ports

2005-12-17 Thread James Long
 Date: Fri, 16 Dec 2005 10:13:13 -0800
 From: BSD Mail [EMAIL PROTECTED]
 Subject: Closing some open ports
 To: FreeBSD-questions@freebsd.org
 Message-ID:
   [EMAIL PROTECTED]
 Content-Type: text/plain; charset=ISO-8859-1
 
 All I want is to get rid
 of this:
 root smbd   709   21 tcp4   *:445 *:*
 root smbd   709   22 tcp4   *:139 *:*
 root nmbd   705   6  udp4   *:137 *:*
 root nmbd   705   7  udp4   *:138 *:*

Read your smb.conf file.  In my (dated) smb.conf, it's
Interfaces and Bind Interfaces Only.

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


Re: HP ScanJet 4100c?

2005-12-17 Thread Gary Kline
On Sat, Dec 17, 2005 at 02:39:07AM -0500, Anish Mistry wrote:
 On Friday 16 December 2005 11:31 pm, you wrote:
  On Fri, Dec 16, 2005 at 08:19:21PM -0500, Anish Mistry wrote:
   On Friday 16 December 2005 08:02 pm, Gary Kline wrote:
 
  Do I have to build it into the kernel or what?  IOW, what's the
  deal with USB stuff?  I've had enough headbanging with ye olden
  COM[1234] ports.  But it's time to get my fingers wet.
 Depending on what version of FreeBSD you're running you might want to 
 build usb into the kernel.  If you just run kldload uscanner it 
 should automatically load the usb kernel module, if it's not already 
 in the default kernel, which I think it may be.  The usb stuff should 
 work fine as long as you don't have some funky chipset. 6.0-RELEASE 
 should have pretty good support for usb.
 
I just tried a lkdload uscanner on my ThinkPad running 5.4 
and got 

kldload: can't load uscanner: File exists

In the USB section in /boot/loader.conf, everything was 
set to NO.  Which of these options should I switch to YES.
---This goes for my other FBSD servers too.  I've never 
used anything usb so I'll check my KERNEL config files too.

All my hardware is fairly standard.  Intel, HP, whatever 
ThinkPad has, and whatever's on the USB 2.0 m'board on my
just-shipped AMD system.  I stick to the Keep It Simple Sir
philosophy, so if  I need to buy a USB board I well.  Meanwhile,
if you have any feedback about the /boot/loader.conf and 
KERNEL config files, I'd like to hear them.

thanks!

gary




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

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


Re: Adding lines to /etc/rc.conf during sysinstall wihout being REMOVED

2005-12-17 Thread legalois

Josh Endries wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Does anyone know the correct way to add lines to rc.conf without
sysinstall commenting them out and prepending REMOVED to them,
during an automated install.cfg routine? Currently I have a pkg I
made that adds stuff like ntp.conf and rc.conf, but all the lines in
my custom rc.conf are removed after the script finishes.

I looked through the code for sysinstall but didn't see any way to
disable this behavior (my C isn't very good). What would be the
correct way to do this? I'm now having my pkg install a rc.d script
which cat's  /etc/rc.conf...

Thanks,
Josh
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDovfOV/+PyAj2L+IRAjzcAJ4lJm+8vIP3QLy/DmuxTB0b4APp1gCfbhI1
waoWrsCORg3CiQMVToAFEaI=
=RlT3
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]






Put the settings you do not want changed in /etc./rc.conf.local
Settings in /etc/rc.conf.local override those in /etc/rc.conf

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


extended/logical slices

2005-12-17 Thread Hanspeter Roth
Hello,

FreeBSD 6 seems to recognize logical slices in extended ones. The
appropriate entries /dev/ad0sN appear. At least this works with
logical slices that contain VFAT or ext2fs.
Just 'fdisk' doesn't list the logical slices. Is there a tool that
can list these?

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


syntax error

2005-12-17 Thread Gojyo
While trying to install the php5-pcre port (called from the phpmyadmin
port),
I get this error:

...
./configure.lineno: 3204: Syntax error: word unexpected (expecting ))
===  Script configure failed unexpectedly.
Please report the problem to [EMAIL PROTECTED] [maintainer] and attach the
/usr/ports/devel/php5-pcre/work/php-5.1.1/ext/pcre/config.log including
the
output of the failure of your make command. Also, it might be a good idea to
provide an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/devel/php5-pcre.
*** Error code 1

Stop in /usr/ports/databases/phpmyadmin.
...

I'm using Freebsd6.0 Release, and I've upgraded my ports tree about one week

ago.
If some other info (like the config.log written above) are needed, please
ask.
Thanks!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: syntax error

2005-12-17 Thread Matthew Seaman

Gojyo wrote:

While trying to install the php5-pcre port (called from the phpmyadmin
port),
I get this error:

...
./configure.lineno: 3204: Syntax error: word unexpected (expecting ))
===  Script configure failed unexpectedly.
Please report the problem to [EMAIL PROTECTED] [maintainer] and attach the
/usr/ports/devel/php5-pcre/work/php-5.1.1/ext/pcre/config.log including
the
output of the failure of your make command. Also, it might be a good idea to
provide an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/devel/php5-pcre.
*** Error code 1

Stop in /usr/ports/databases/phpmyadmin.
...

I'm using Freebsd6.0 Release, and I've upgraded my ports tree about one week

ago.
If some other info (like the config.log written above) are needed, please
ask.
Thanks!


Hmmm... I'd cvsup again and try with a fresher ports tree.  There were
quite a number of significant changes made to the tree to do with the
update from php 5.0.5 to 5.1.1 -- I suspect you've just been caught by
fallout from that.

If the problem still occurs, please do as the error message suggests:
send the config.log and all other relevant information you can find to
the port maintainer.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


CardBus problems. $PIR: ROUTE_INTERRUPT Failed.

2005-12-17 Thread Andrew Walker
Yeah, so I'm about to give up on this computer entirely and throw it
away unless someone can even give me some sort of clue about what's
going on here.  I have installed FreeBSD 6.0 on my Thinkpad 380XD, but
I cannot get networking to work, and I believe it is because there is
a conflict with my cardbus initializing.

The card is a Xircom RBEM58G-100, and is listed as supported under the
dc driver. Here are the relavent messages from /var/log/messages:


cbb0: TI1250 PCI-CardBus Bridge mem 0x20822000-0x20822fff at device
2.0 on pci0
cardbus0: CardBus bus on cbb0
cbb0: TI1250 PCI-CardBus Bridge mem 0x20821000-0x20821fff at device
2.1 on pci0
cardbus0: CardBus bus on cbb1
$PIR: ROUTE_INTERRUPT failed.
cbb: Unable to map IRQ...
device_attach: cbb1 attach returned 12

...and then later...

unknown: PNP0303 can't assign resource (port)
unknown: PNP0f13 can't assign resource (irq)
unknown: PNP0700 can't assign resource (port)
unknown: PNP0c02 can't assign resource (memory)
unknown: PNP0400 can't assign resource (port)
unknown: PNP0071 can't assign resource (port)
unknown: PNP0e03 can't assign resource (port)


I've sent this to this list before, and I've posted on the forums, but
so far no response.  Is this not the right mailing-list?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


change max username length

2005-12-17 Thread aksis
Is there a simple was to change the max username length?
___
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 dual boot

2005-12-17 Thread RW
On Friday 16 December 2005 21:31, Marty Landman wrote:
 I'm trying to get a dual boot system set up with FBSD 5.3 and Win XP sp1.
 First I installed FBSD using 15GB of the HD, then installed XP on the
 remaining 5GB. However now it boots up XP automatically. I can get back to
 the FBSD installer by booting from the 5.3 CD but what do I do to provide a
 choice of which to boot right on the HD?

Get the GAG bootloader, it's free, really easy to use and you can install it 
from ports or from many linux live CDs.

What's really nice about it, is that it's all menu driven, and the complete 
setup menu is accessible from the boot screen. So a year from now you can 
tweak the boot delay or add a new OS without the risk of screwing up.   
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Random password generation

2005-12-17 Thread Lowell Gilbert
Sean Murphy [EMAIL PROTECTED] writes:

 When creating user accounts with adduser you can have the system
 generate a random password.
 
 Can you use a tool included in FreeBSD to change specific existing
 users passwords with a random one such as the one in adduser?

I've occasionally hacked something up along the lines of 
(date;netstat;netstat -i)|gzip|uuencode foo|head|tail -1
and I suppose you could add something to remove unacceptable
characters and bring pw(8) into the equation.

 it would also be usefull to do this from a input file to do multiple users.
 
 The passwords I would need on the screen to give to the users.
 
 If not is there an open source one to do this?

The makepasswd port is certainly more evolved than my hack.
Scripting it with pw(8) can be an exercise for the moderately
experienced system administrator...

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ntp problems (strata too high)

2005-12-17 Thread Chuck Swiger
Christopher McGee wrote:
[ ... ]
 I hate to reopen a dead thread, however, I'm having a very strange
 problem I have 2 machines running ntpd.  I just set this up and it is
 not working.
[ ... ]
 192.168.1.3.STEP.  16 u1  12800.0000.000
 192.168.1.2.DROP.  16 u-   6400.0000.000

When a machine is badly out of sync, it indicates this by setting it's stratum
to an unbelievable level, so other NTP servers avoid depending on it until some
time has passed and the server's time remains stable for a reasonable time 
period.

This appears to be what is happening with the .DROP. and .STEP. refid's you've
shown.  Be patient, NTPD ought to sync up given a few hours...

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


Recursive ACLs commands

2005-12-17 Thread bazzoola

Greetings,

I was just wondering if I can set or lists acls recursively on specific 
directories ?


I couldn't find the usual '-R' option for setfacl
Is there another way to do this?

Thanks,
bazzoola

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


Re: change max username length

2005-12-17 Thread Lowell Gilbert
aksis [EMAIL PROTECTED] writes:

 Is there a simple was to change the max username length?

Check the archives of this list; this has been 
discussed more than once in the last month.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


webmail solution

2005-12-17 Thread Dave

Hello,
   I'm looking for experiences with a webmail solution. I want to use 
postfix as my mta and on a freebsd6 machine. The users who will be using the 
server probably would do better with a webmail package so they can get to it 
from anywhere. The box already has apache and php so i don't think that'll 
be an issue. One thing i'm uncertain is whether to offer direct pop/imap or 
their equivalent encrypted counterparts or just do it all through webmail.

   Experiences and recommendations welcome.
Thanks.
Dave.

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


Re: Download the whole ports tree

2005-12-17 Thread RW
On Saturday 17 December 2005 07:54, Kris Kennaway wrote:
 Well, if you really think you want this, then just:

 cd /usr/ports
 make fetch

Just idle curiosity, but does anyone have a feeling for how much that would 
download?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Download the whole ports tree

2005-12-17 Thread Kövesdán Gábor

RW wrote:


On Saturday 17 December 2005 07:54, Kris Kennaway wrote:
 


Well, if you really think you want this, then just:

cd /usr/ports
make fetch
   



Just idle curiosity, but does anyone have a feeling for how much that would 
download?
 

This would not fetch all of the distfiles, because there are broken 
ports that are unfetchable and the fetching would stop when reaching the 
first such port.


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


Re: Download the whole ports tree

2005-12-17 Thread Michael C. Shultz
On Saturday 17 December 2005 09:03, Kövesdán Gábor wrote:
 RW wrote:
 On Saturday 17 December 2005 07:54, Kris Kennaway wrote:
 Well, if you really think you want this, then just:
 
 cd /usr/ports
 make fetch
 
 Just idle curiosity, but does anyone have a feeling for how much that
  would download?

 This would not fetch all of the distfiles, because there are broken
 ports that are unfetchable and the fetching would stop when reaching the
 first such port.

 Gabor Kovesdan

Even with:  make fetch -i  ?

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


Re: Download the whole ports tree

2005-12-17 Thread Kövesdán Gábor

Michael C. Shultz wrote:


On Saturday 17 December 2005 09:03, Kövesdán Gábor wrote:
 


RW wrote:
   


On Saturday 17 December 2005 07:54, Kris Kennaway wrote:
 


Well, if you really think you want this, then just:

cd /usr/ports
make fetch
   


Just idle curiosity, but does anyone have a feeling for how much that
would download?
 


This would not fetch all of the distfiles, because there are broken
ports that are unfetchable and the fetching would stop when reaching the
first such port.

Gabor Kovesdan
   



Even with:  make fetch -i  ?

-Mike
 


Haven't tried, but I suppose it would be okay with -i.

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


Re: grub doesn't know ufs filesystem

2005-12-17 Thread RW
On Wednesday 14 December 2005 21:42, Micah wrote:
 I used chainloading for a while until I wanted multiple installs of
 FreeBSD on the same drive.  Using chainloading from grub always booted
 the first FreeBSD regardless of which slice was specified in menu.lst.
 Changing it to use /boot/loader allowed me to actually have more than
 one FreeBSD on the same drive.

I pretty sure you did something wrong, I've chainloaded multiple FreeBSD 
slices on the same drive using Lilo and other  bootloaders. 

 Also, grub places some files on a host filesystem.  It may be more
 convenient to have those files stored on UFS rather than FAT or EXT.  
 ...
 In that case, if you use grub (rather than FreeBSD's manager), you'd
 have to make a partition solely for grub.

But is it a good idea for a bootloader to require external files at boot-time? 

I assume there are cases were grub does things that other loaders can't, but 
it seems to me that for most people booting FreeBSD it's an overcomplicated 
and awkward solution.




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


Re: webmail solution

2005-12-17 Thread Sasa Stupar



--On 17. december 2005 11:46 -0500 Dave [EMAIL PROTECTED] wrote:


Hello,
I'm looking for experiences with a webmail solution. I want to use
postfix as my mta and on a freebsd6 machine. The users who will be using
the server probably would do better with a webmail package so they can
get to it from anywhere. The box already has apache and php so i don't
think that'll be an issue. One thing i'm uncertain is whether to offer
direct pop/imap or their equivalent encrypted counterparts or just do it
all through webmail.
Experiences and recommendations welcome.
Thanks.
Dave.

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


Squirrelmail is my choise. Works nice, easy to setup, a lot of plugins to 
add, etc. I use it with cyrus-imapd imap/pop3 server and sendmail as mta.


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


RE: change max username length

2005-12-17 Thread Gayn Winters
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Lowell Gilbert
 Sent: Saturday, December 17, 2005 8:54 AM
 To: aksis
 Cc: freebsd-questions@freebsd.org
 Subject: Re: change max username length
 
 
 aksis [EMAIL PROTECTED] writes:
 
  Is there a simple was to change the max username length?
 
 Check the archives of this list; this has been 
 discussed more than once in the last month.
 ___

From man adduser:

The user name is restricted to whatever pw(8) will
 accept.  Generally this means it may contain only lowercase
char-
 acters or digits.  Maximum length is 16 characters.  The
reasons
 for this limit are historical.  Given that people have
tradition-
 ally wanted to break this limit for aesthetic reasons, it
has
 never been of great importance to break such a basic
fundamental
 parameter in UNIX.  You can change UT_NAMESIZE in utmp.h
and
 recompile the world; people have done this and it works,
but you
 will have problems with any precompiled programs, or source
that
 assumes the 8-character name limit and NIS.  The NIS
protocol
 mandates an 8-character username.  If you need a longer
login
 name for e-mail addresses, you can define an alias in
 /etc/mail/aliases.

Plus here's a pointer to one discussion.  
http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2005-04/1879.h
tml

Our only application for this is email, and aliases work fine.

-gayn

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


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


Re: Passing make options to portmanager

2005-12-17 Thread Dimitris Tsamis
Michael C. Shultz wrote:

On Friday 16 December 2005 16:31, Dimitris Tsamis wrote:
  

I want to switch from portupgrade to portmanager, but I have a few
questions.

First of all, how do I pass make options to portmanager? (like the -m
option  for portupgrade). I often pass selected make options to
multimedia players to choose what formats will be supported.



Place make options in either pkgtools.conf, pm-020.conf or /etc/make.conf,
man portmanager explains how.  There isn't a way to pass make options
from portmanager's command line.
  

Thanks for clearing it up.

Can someone verify that portmanager reads pkgtools.conf?



You can see for yourself, run portmanager -u -ui, it will stop
before upgrading the first port.  As it collects initial information
any make options found in either pm-020.conf or pkgtools.conf
will be shown to the right of the port name.  One caveat, you
must have ruby and portupgrade installed or portmanager will
ignore pkgtools.conf.
  

I prefer to use pkgtools.conf because from what I understand it is a
system file, whereas pm-020.conf is only for portmanager (I have ruby
and portupgrade installed).

  

Thanks for your time



welcome

-Mike
  

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


Re: HP ScanJet 4100c?

2005-12-17 Thread Anish Mistry
On Saturday 17 December 2005 03:21 am, Gary Kline wrote:
 On Sat, Dec 17, 2005 at 02:39:07AM -0500, Anish Mistry wrote:
  On Friday 16 December 2005 11:31 pm, you wrote:
   On Fri, Dec 16, 2005 at 08:19:21PM -0500, Anish Mistry wrote:
On Friday 16 December 2005 08:02 pm, Gary Kline wrote:
  
 Do I have to build it into the kernel or what?  IOW, what's
   the deal with USB stuff?  I've had enough headbanging with ye
   olden COM[1234] ports.  But it's time to get my fingers wet.
 
  Depending on what version of FreeBSD you're running you might
  want to build usb into the kernel.  If you just run kldload
  uscanner it should automatically load the usb kernel module, if
  it's not already in the default kernel, which I think it may be. 
  The usb stuff should work fine as long as you don't have some
  funky chipset. 6.0-RELEASE should have pretty good support for
  usb.

   I just tried a lkdload uscanner on my ThinkPad running 5.4
   and got
This just means that it is already built into the kernel.  Just plug 
in the scanner and you should see uscanner0: some stuff appear on the 
console.


   kldload: can't load uscanner: File exists

   In the USB section in /boot/loader.conf, everything was
   set to NO.  Which of these options should I switch to YES.
   ---This goes for my other FBSD servers too.  I've never
   used anything usb so I'll check my KERNEL config files too.

   All my hardware is fairly standard.  Intel, HP, whatever
   ThinkPad has, and whatever's on the USB 2.0 m'board on my
   just-shipped AMD system.  I stick to the Keep It Simple Sir
   philosophy, so if  I need to buy a USB board I well.  Meanwhile,
   if you have any feedback about the /boot/loader.conf and
   KERNEL config files, I'd like to hear them.

   thanks!

   gary

-- 
Anish Mistry


pgpuTS4MKdGtL.pgp
Description: PGP signature


Re: Passing make options to portmanager

2005-12-17 Thread Michael C. Shultz
On Saturday 17 December 2005 09:54, Dimitris Tsamis wrote:
 Michael C. Shultz wrote:
 On Friday 16 December 2005 16:31, Dimitris Tsamis wrote:
 I want to switch from portupgrade to portmanager, but I have a few
 questions.
 
 First of all, how do I pass make options to portmanager? (like the -m
 option  for portupgrade). I often pass selected make options to
 multimedia players to choose what formats will be supported.
 
 Place make options in either pkgtools.conf, pm-020.conf or /etc/make.conf,
 man portmanager explains how.  There isn't a way to pass make options
 from portmanager's command line.

 Thanks for clearing it up.

 Can someone verify that portmanager reads pkgtools.conf?
 
 You can see for yourself, run portmanager -u -ui, it will stop
 before upgrading the first port.  As it collects initial information
 any make options found in either pm-020.conf or pkgtools.conf
 will be shown to the right of the port name.  One caveat, you
 must have ruby and portupgrade installed or portmanager will
 ignore pkgtools.conf.

 I prefer to use pkgtools.conf because from what I understand it is a
 system file, whereas pm-020.conf is only for portmanager (I have ruby
 and portupgrade installed).

 Thanks for your time
 
 welcome
 
 -Mike

 Thanks for your answer :)

Welcome

-Mike

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


Re: shell script doesnot executing

2005-12-17 Thread Harley D. Eades III
On Fri, 2005-12-16 at 23:17 -0800, James Long wrote:
  Message: 24
  Date: Fri, 16 Dec 2005 01:51:22 -0600
  From: Harley D. Eades III [EMAIL PROTECTED]
  Subject: Re: shell script doesnot executing
  To: Anirban Adhikary [EMAIL PROTECTED]
  Cc: freebsd-questions@freebsd.org
  Message-ID: [EMAIL PROTECTED]
  Content-Type: text/plain
  
  On Fri, 2005-12-16 at 11:23 +0530, Anirban Adhikary wrote:
 Hi guys
   This is Anirban here. I have the problem again with the previous shell
   script.Which was
   Write a shell script that will check whether a server is up or not(on 
   ping)
log the report to a file.
   
   I have tried to write the program in the following way
   
   #! /bin/sh
   echo -n Enter the IP or Hostname of the Server
   read host
   #echo $host
   ping -c2 $host file2
   if [ $? = 0 ];then
  The problem is you're checking the exit status of ping, even if the host
  is down ping is exiting with a successful status.  You need to use sed
  or awk or something similiar to test for replys.
 
 That is false.  ping exits with a true result code if at least one
 ICMP reply is received, false otherwise.
Yup, if you read the entire thread, I openly admit that.
http://docs.freebsd.org/cgi/getmsg.cgi?fetch=2178259+0
+current/freebsd-questions

Cheers
-- Harley
-BEGIN GEEK CODE BLOCK-
G: GCS-- d- a? C B- E+++ W+++ N++ w--- X+++ b++ G e* r x+ z+
--END GEEK CODE BLOCK--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: webmail solution

2005-12-17 Thread chip
On 12/17/05, Dave [EMAIL PROTECTED] wrote:

 Hello,
 I'm looking for experiences with a webmail solution. I want to use
 postfix as my mta and on a freebsd6 machine. The users who will be using
 the
 server probably would do better with a webmail package so they can get to
 it
 from anywhere. The box already has apache and php so i don't think that'll
 be an issue. One thing i'm uncertain is whether to offer direct pop/imap
 or
 their equivalent encrypted counterparts or just do it all through webmail.
 Experiences and recommendations welcome.
 Thanks.
 Dave.



I've always had good luck with Squirrel Mail, www.squirrelmail.org.
However,
recently the webhost I use has started offering the IMP Webmail Client,
http://www.horde.org/imp/.
And I must say it's pretty nice.

Most of what you will find is that these web based clients are simply
interface to the imap/pop servers.
That way is doesn't really mattter what you do under the hood.

--chip

Just my $.02, your mileage may vary,  batteries not included, etc
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Download the whole ports tree

2005-12-17 Thread Chuck Swiger
RW wrote:
 On Saturday 17 December 2005 07:54, Kris Kennaway wrote:
 Well, if you really think you want this, then just:

 cd /usr/ports
 make fetch
  
 Just idle curiosity, but does anyone have a feeling for how much that would 
 download?

Around 25 GB.

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


Re: Download the whole ports tree

2005-12-17 Thread Kris Kennaway
On Sat, Dec 17, 2005 at 06:03:12PM +0100, K??vesd??n G??bor wrote:
 RW wrote:
 
 On Saturday 17 December 2005 07:54, Kris Kennaway wrote:
  
 
 Well, if you really think you want this, then just:
 
 cd /usr/ports
 make fetch

 
 
 Just idle curiosity, but does anyone have a feeling for how much that 
 would download?
  
 
 This would not fetch all of the distfiles, because there are broken 
 ports that are unfetchable and the fetching would stop when reaching the 
 first such port.

Sorry, you're right - you want 'make -k fetch BATCH=yes' (the variable
is to avoid any interaction from things like config dialogs).  You
might be able to get away with using -j for concurrent fetches too,
although there's a possibility of corrupting a distfile if two ports
that share the same distfile fetch it at once.

Kris


pgpwAz1MZBpYV.pgp
Description: PGP signature


Re: Download the whole ports tree

2005-12-17 Thread Kris Kennaway
On Sat, Dec 17, 2005 at 04:59:57PM +, RW wrote:
 On Saturday 17 December 2005 07:54, Kris Kennaway wrote:
  Well, if you really think you want this, then just:
 
  cd /usr/ports
  make fetch
 
 Just idle curiosity, but does anyone have a feeling for how much that would 
 download?

On the order of 15GB or so.

Kris


pgpQiizrdw8SO.pgp
Description: PGP signature


Re: Passing make options to portmanager

2005-12-17 Thread RW
On Saturday 17 December 2005 17:54, Dimitris Tsamis wrote:

 I prefer to use pkgtools.conf because from what I understand it is a
 system file, whereas pm-020.conf is only for portmanager

This is incorrect.  

pkgtools.conf is the configuration file for portupgrade and the other 
package-tools installed by the portupgrade port.  Portmanager has recently 
aquired the ability to read  pkgtools.conf, but it is not a system file, and 
it is not read by the ports system if you use the make targets directly. 

If you want  to set options in a more general way, put them in make.conf, 
using alternative configuration method given on the portmanager man-page.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Script Problem

2005-12-17 Thread Gerard Seibert
Using FreeBSD 5.4

Please do not laugh. I absolutely suck at writing scripts. Someday I
might learn, but in the mean time, I need some assistance.

I want to run a script from CRON that will check to see if MySQL is
running, and if not, restart it. I have had a problem with MySQL
shutting down unexpectedly.

This is my first attempt at writing the script.

#!/bin/sh
if  (`ps -wxuU mysql | grep -o  mysqld_safe`)
then
echo MySQL is Running
else
/usr/local/etc/rc.d/mysql-server.sh restart
echo MySql Server is Restarted
fi

That produces this output even though MySQL is running.

A mysqld process already exists
Stopping mysql.
Waiting for PIDS: 47567, 47567.
Starting mysql.
MySql Server is Restarted

If I stop MySQL and then run the script, I get this output.

mysql not running? (check /var/db/mysql/seibercom.net.pid).
Starting mysql.
MySql Server is Restarted

Obviously, I do not know what I am doing. Perhaps someone could help me
with this.

Ciao
-- 
Gerard Seibert
[EMAIL PROTECTED]

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


Re: Passing make options to portmanager

2005-12-17 Thread Dimitris Tsamis
RW wrote:

On Saturday 17 December 2005 17:54, Dimitris Tsamis wrote:

  

I prefer to use pkgtools.conf because from what I understand it is a
system file, whereas pm-020.conf is only for portmanager



This is incorrect.  

pkgtools.conf is the configuration file for portupgrade and the other 
package-tools installed by the portupgrade port.  Portmanager has recently 
aquired the ability to read  pkgtools.conf, but it is not a system file, and 
it is not read by the ports system if you use the make targets directly. 

  

Ok, the name pkgtools is misleading - I thought it refered to pkg_add
and family.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HP ScanJet 4100c?

2005-12-17 Thread Gary Kline
On Sat, Dec 17, 2005 at 12:57:59PM -0500, Anish Mistry wrote:
 On Saturday 17 December 2005 03:21 am, Gary Kline wrote:
  On Sat, Dec 17, 2005 at 02:39:07AM -0500, Anish Mistry wrote:
   On Friday 16 December 2005 11:31 pm, you wrote:
On Fri, Dec 16, 2005 at 08:19:21PM -0500, Anish Mistry wrote:
 On Friday 16 December 2005 08:02 pm, Gary Kline wrote:
   
 
  I just tried a lkdload uscanner on my ThinkPad running 5.4
  and got
 This just means that it is already built into the kernel.  Just plug 
 in the scanner and you should see uscanner0: some stuff appear on the 
 console.
 
 
  kldload: can't load uscanner: File exists
 

This seems strange: kldstat here shows that uscanner is 
loaded the kernel; on the laptop, kldstat doesn't show the
kernel module.  Maybe the 600E is too old or IBM didn't 
think about it.  

AAre there any 5.4 kernel wizards reading this who can suggest 
what to add to my KERNEL conf file for my l'top?

tia, guys,

gary



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

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


Re: Script Problem

2005-12-17 Thread Matthew Seaman

Gerard Seibert wrote:


I want to run a script from CRON that will check to see if MySQL is
running, and if not, restart it. I have had a problem with MySQL
shutting down unexpectedly.



This is my first attempt at writing the script.

#!/bin/sh
if  (`ps -wxuU mysql | grep -o  mysqld_safe`)
then
echo MySQL is Running
else
/usr/local/etc/rc.d/mysql-server.sh restart
echo MySql Server is Restarted
fi


if tests the exit status of the commands it runs, so this
would be a better way to code that:

 if ps -wxuU mysql | grep -o mysqld_safe /dev/null 21 ;
 then
 echo MySQL is running
 else
 /usr/local/etc/rc.d/mysql-server.sh restart  \
 echo MySQL restarted
 fi

However, grepping the process list is not the best way to find
if a process is still running.  Daemon processes generally have 
a pid file, and you can test that a process with that PID is 
running by using kill(1):


  if kill -0 $( cat /var/db/mysql/$( hostname ).pid ) ; then
  ...

But then you usually have to worry about coping with the pid file
being absent.  However, since you're worrying about mysql, one of
the best tools to find out if mysql is running is mysqladmin(1). 
Try running:


   mysqladmin ping 


(possible with a few more arguments to specify exactly how to contact
the mysql server and what DB userid to use) as your test that the
server is still alive.  


Note that if MySQL is crashing it may well leave database tables
in a damaged state: automatically restarting mysql in that case isn't
going to me very productive.  mysqlcheck(1) is your friend in this 
situation.


Your best strategy is really to work out why MySQL is crashing and take
steps to stop it.  It would be unusual for mysql to die without leaving
some sort of clue in the error log (by default /var/db/mysql/`hostname`.err)
and you can always turn on the query log (or the bin log, which is
equivalent, but needs a separate program to display its contents in a
readable form) to see exactly what was happening around the time of the
crash.

One big reason for MySQL to crash is incorrect sizing of various buffers
and internal arrays.  Another is if the process tries to grow beyond the
maximum possible size -- 128MiB by default, but can be tuned by setting
kern.maxdsiz in loader.conf or by eg. 'options MAXDSIZ=(1024UL*1024*1024)'
in your kernel configuration. 


Cheers,

Matthew

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


signature.asc
Description: OpenPGP digital signature


Device needed to manage several FreeBSD servers

2005-12-17 Thread patrick
I have a bunch of FreeBSD servers to manage, and I'm wanting to find a
device that lets you SSH/telnet in, and access the servers connected
to it via serial cables. I know such a device exists, but it was a
long time ago since I last saw one, and I'm not really sure what one
of these would be called. Has anyone had any experience with such a
device?

Thanks,

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


Re: Script Problem

2005-12-17 Thread Paul Schmehl
--On December 17, 2005 2:13:04 PM -0500 Gerard Seibert 
[EMAIL PROTECTED] wrote:



Using FreeBSD 5.4

Please do not laugh. I absolutely suck at writing scripts. Someday I
might learn, but in the mean time, I need some assistance.

I want to run a script from CRON that will check to see if MySQL is
running, and if not, restart it. I have had a problem with MySQL
shutting down unexpectedly.

This is my first attempt at writing the script.

# !/bin/sh
if  (`ps -wxuU mysql | grep -o  mysqld_safe`)
then
echo MySQL is Running
else
/usr/local/etc/rc.d/mysql-server.sh restart
echo MySql Server is Restarted
fi

The reason your script isn't doing what you want it to do is because you're 
using backticks in your if statement.  Essentially what your script says is:


if (please execute this command)
then
do this
else
do this
fi

Which is the same as saying:
if ()
then
do this
else
do this
fi

The script should be saying:

if (this command is successful)
then
do this
else
do this
fi

Remove the backticks and it will work as expected.

You use backticks when you want the results of a command to use somewhere 
else.  For example:

TESTING=`ps -wxuU mysql | grep -o mysqld_safe`
if ( $TESTING )

When you want to test the logic of a script, use echo statements.  That 
will tell you every loop and conditional statement's results without 
actually running anything that might cause problems for you.  Once you're 
sure the conditional or loop is working as you expect, then you can add the 
actual commands.


Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Device needed to manage several FreeBSD servers

2005-12-17 Thread Tamouh H.
 I have a bunch of FreeBSD servers to manage, and I'm wanting
 to find a device that lets you SSH/telnet in, and access the
 servers connected to it via serial cables. I know such a
 device exists, but it was a long time ago since I last saw
 one, and I'm not really sure what one of these would be
 called. Has anyone had any experience with such a device?


It is called Remote Serial Console or Remote SSH Console. Something like:

http://www.networktechinc.com/srvsw-term-ssh.html

You might also want to look KVM over IP switches



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


FreeBSD 6, WPA-PSK, wpa_supplicant and a IBM a31p

2005-12-17 Thread Daniel Hanson
Ok, I've exhausted a FreeBSD phanatic friend of mine, and spent quite a while 
trying different configurations to get this working, and am coming up against a 
brick wall. 

I am attempting to setup a Thinkpad a31p with a built in wireless card, it uses 
the wi driver. The output of dmesg
=-=-
wi0: Intersil Prism2.5 mem 0xf800-0xf8000fff irq 11 at device 2.0 on pci2
wi0: using RF:PRISM2.5 MAC:ISL3874A(Mini-PCI)
wi0: Intersil Firmware: Primary (1.0.7), Station (1.3.6)
wi0: Ethernet address: 00:20:e0:8c:ea:87
=-=-

It will happily chatter unencrypted, but, well, I would rather have wpa-psk on 
my home setup. so, after following the various man pages, handbook pages, and 
some webpages I am currently doing the following. 

Boot 
kldload wlan_wep wlan_acl wlan_ccmp wlan_tkip ( Ihave also loaded wlan_xauth 
under some config attempts although nothign I have read indicates this is 
required)
/etc/wpa_supplicant.conf contains

=-=-=-
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
eapol_version=1
ap_scan=1 I have tried ap_scan=2 more details below 
fast_reauth=1

network={
ssid=my_ssid
key_mgmt=WPA-PSK
psk=my_passphrase
} 
=-=-=-


When I start wpa_supplicant, it seems to find the SSID, and then nothign... no 
errors, no nothing, I have the debug enabled output of the wpa_supplicant -dd 
command that I can include as a text file, but it is a little long (due to teh 
ping and commands issued from wpa_cli). 

At one point, I tried changing ap_scan=1 to ap_scan=2, as someone had posted 
they had done. I saw immediate (well once I reinitiated teh wpa_supplicant 
command) results. All of a sudden, it found, and as best as I can tell, tried 
to negotiate. but threw out the following error. 

=-=-=-
wpa_driver_bsd_associate: ssid 'myssid' wpa ie len 22 pairwise 3 group 3 key 
mgmt 1
wpa_driver_bsd_associate:

ioctl[SIOCS80211, op 21 len 42] invalid request
association request to the driver failed
=-=-=-

The AP uses WPA-PSK(TKIP), I have tried it with the network directive including 
proto as WPA and WPA2, key_mgmt as TKIP, pairwise as TKIP, and probably a few 
other things I am currently forgeting. 

Thoughts, ideas? directions. From my reading of the man pages, ap_scan should 
only ever be 1, and the others are used for other OS's, which might explain the 
error that I am receiving when it's set to 2. I am at a dead end of where I can 
look to further investigate. 

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


Re: Device needed to manage several FreeBSD servers

2005-12-17 Thread RW
On Saturday 17 December 2005 23:11, patrick wrote:
 I have a bunch of FreeBSD servers to manage, and I'm wanting to find a
 device that lets you SSH/telnet in, and access the servers connected
 to it via serial cables. I know such a device exists, but it was a
 long time ago since I last saw one, and I'm not really sure what one
 of these would be called. Has anyone had any experience with such a
 device?

I've heard them called Terminal Servers, but that name is also used in the 
sense of Windows Terminal Server.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Problems rebuilding world

2005-12-17 Thread Justin Pessa
I'm rebuilding world to upgrade from 5.4 to 6.0 on my laptop. The
original build worked find then crapped out when running install world
with an error saying that /usr/share/locale/uk_UA.CP1251/LC_COLLATE
could not be found. So now I can't load any additional applications
because almost everything segfaults.

I removed my /usr/src directory and cvsup'd everything fresh. I can
build my 6.0 kernel without problem but I get the following make error
when building world:

 === share/termcap (all)
gzip -cn /usr/src/share/termcap/termcap.5  termcap.5.gz
TERM=dumb TERMCAP=dumb: ex - /usr/src/share/termcap/termcap.src 
/usr/src/share/termcap/reorder
cap_mkdb -l termcap
cap_mkdb: illegal option -- l
usage: cap_mkdb [-v] [-f outfile] file [file ...]

I know this is related to my original the borked partial installworld.
I'm stumped as to what I should try from here. Any thoughts?

Please CC me on your response. Thanks a lot!

Best,

--
- justin

Whatever I feel like I wanna do. Gosh!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: freebsd-questions Digest, Vol 117, Issue 23

2005-12-17 Thread Jeff Molofee

Having some serious problems with gnome-theme-manager.

Up until last week it was running great. I installed a few icon packs, 
themes, etc, no problems.


2 days ago I went to install a new theme and notice the the theme 
manager took a long time to come up, and when it did, none of the themes 
looked like themes. They were all greyed out with a question mark in the 
middle. Clicking theme details opened a theme window with nothing in it 
(partially drawn).


I did some quick reading and found that the transparency in X can cause 
problems. So I disabled it. Rebooted and noted the same problems. I then 
removed all my themes and reinstalled them, thinking perhaps one was 
corrupt and it was messing up the rest. Same problem.


Yesterday early in the morning I decided to reinstall everything from 
scratch (drastic, but wanted to be sure it wasn't my set up).


Gnome is back up, but theme manager is still screwed up. If I select 
certain themes not only do they not work, but my machine has a tendancy 
to crash. Gnome crashes, and I'm back to the login prompt.


Is anyone aware of a problem with the gnome-theme-manager or am I the 
only one having this problem?


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


Re: Device needed to manage several FreeBSD servers

2005-12-17 Thread David Gerard
RW wrote:
 On Saturday 17 December 2005 23:11, patrick wrote:

I have a bunch of FreeBSD servers to manage, and I'm wanting to find a
device that lets you SSH/telnet in, and access the servers connected
to it via serial cables. I know such a device exists, but it was a
long time ago since I last saw one, and I'm not really sure what one
of these would be called. Has anyone had any experience with such a
device?

 I've heard them called Terminal Servers, but that name is also used in the 
 sense of Windows Terminal Server.


Console server, specifically remote serial console servers. You can
make one yourself with a PC and a bunch of serial cards very easily
(using conserver(8)) - or (a better idea in a commercial setting) buy
them as a supported piece of hardware.

It doesn't matter for FreeBSD on a PC, but if you're running Suns then
important matters include not sending BREAKs down the line at
inopportune moments.

I asked about this on my LiveJournal and got quite informative responses:

http://www.livejournal.com/users/reddragdiva/241324.html


- d.

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


IPFW pipe command

2005-12-17 Thread Malcolm Clarke
I have a question regarding use of the pipe command in IPFW.

I use the following commands

#ipfw add pipe 1 ip from any to any
#ipfw pipe 1 config

but get the following error

ipfw: setsockopt(IP_DUMMYNET_CONFIGURE): Protocol not available

I have added firewall_enable=YES in rc.conf

Is there a setting I need to set or change

Regards

Malcolm

--
---
Dr Malcolm Clarke
Senior Lecturer in Data Communication Systems and Telemedicine
Department of Information Systems and Computing
Brunel University
Uxbridge
Middlesex
UB8 3PH
UK

Tel: +44 1895 265053
Fax: +44 1895 251686




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


Question about PHP5 vs mod_php5

2005-12-17 Thread Jose Borquez
I am currently running FreeBSD 5.4 with Apache+mod_ssl 1.3.34 and I am 
attempting to configure group office which is a project management 
suite.  I need php support and I am confused about what the difference 
is between PHP5 and mod_php5.  If I just install mod_php5 will that be 
enough to allow php support?


Thanks in advance,
Jose

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


Re: Device needed to manage several FreeBSD servers

2005-12-17 Thread Will Maier
On Sat, Dec 17, 2005 at 03:11:24PM -0800, patrick wrote:
 I have a bunch of FreeBSD servers to manage, and I'm wanting to
 find a device that lets you SSH/telnet in, and access the servers
 connected to it via serial cables. I know such a device exists,
 but it was a long time ago since I last saw one, and I'm not
 really sure what one of these would be called. Has anyone had any
 experience with such a device?

Other responses in the thread are correct -- you're looking for a
console server (or a serial concentrator). There's an article
shipped with FreeBSD that describes just this type of thing; it's
also available online:


http://www.freebsd.org/doc/en_US.ISO8859-1/articles/console-server/index.html

-- 

o--{ Will Maier }--o
| jabber:[EMAIL PROTECTED] | email:[EMAIL PROTECTED] |
| [EMAIL PROTECTED] | [EMAIL PROTECTED] |
*--[ BSD Unix: Live Free or Die ]--*
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


wired and wireless network setup interactions

2005-12-17 Thread Dave

Hello,
   I have a setup that was a 10 megabit hub holding together a freebsd6 
firewall/router/webserver/other box. Updated that to a 10/100 megabitt 
Belkin g+ router for wireless. The problem now that i'm having is both the 
server and this new router do the following:

firewall
dhcp
dns
nat
and they both utilize separate subnets. I'd like for the Belkin router to 
handle wireless traffic, while the original fbsd router handles wired as 
well as it's original functions of firewall, nat, dns, and dhcp.
   If anyone has any experience with this or recommendations i'd appreciate 
it. My thought was turn off the dhcp server on the belkin router and let the 
original fbsd server's dhcp server handle it, but i'm not sure if doing so 
will disable it's ability to accept wireless clients. I'd also like the 
wireless network to be secure.

Some urgency!
Thanks.
Dave.

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


Re: Problems rebuilding world

2005-12-17 Thread Frank Steinborn
Justin Pessa wrote:
  === share/termcap (all)
 gzip -cn /usr/src/share/termcap/termcap.5  termcap.5.gz
 TERM=dumb TERMCAP=dumb: ex - /usr/src/share/termcap/termcap.src 
 /usr/src/share/termcap/reorder
 cap_mkdb -l termcap
 cap_mkdb: illegal option -- l
 usage: cap_mkdb [-v] [-f outfile] file [file ...]
 
 I know this is related to my original the borked partial installworld.
 I'm stumped as to what I should try from here. Any thoughts?

Go to /usr/src/usr.bin/cap_mkdb/ and do make and make install, then
try again.

Frank


pgpfLBmBLCdrP.pgp
Description: PGP signature


Re: wired and wireless network setup interactions

2005-12-17 Thread Barney Wolff
On Sat, Dec 17, 2005 at 09:24:47PM -0500, Dave wrote:
I have a setup that was a 10 megabit hub holding together a freebsd6 
 firewall/router/webserver/other box. Updated that to a 10/100 megabitt 
 Belkin g+ router for wireless. The problem now that i'm having is both the 
 server and this new router do the following:
 firewall
 dhcp
 dns
 nat
 and they both utilize separate subnets. I'd like for the Belkin router to 
 handle wireless traffic, while the original fbsd router handles wired as 
 well as it's original functions of firewall, nat, dns, and dhcp.
If anyone has any experience with this or recommendations i'd appreciate 
 it. My thought was turn off the dhcp server on the belkin router and let 
 the original fbsd server's dhcp server handle it, but i'm not sure if doing 
 so will disable it's ability to accept wireless clients. I'd also like the 
 wireless network to be secure.

Use the Belkin as a bridge rather than a router, by simply not using
its WAN port, and do turn off its dhcp server.  I do the same with a
Netgear.

-- 
Barney Wolff http://www.databus.com/bwresume.pdf
I never met a computer I didn't like.
___
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 dual boot

2005-12-17 Thread Jerry McAllister
 
 At 07:39 PM 12/16/2005, Jerry McAllister wrote:
 
 You need to read the documentation better.
 
 Or at all. :)  Was hoping it would just magically guide me through it. Not 
 a critical box of mine of course.
 
 It tells you that you should install Microsloth first and then FreeBSD.
 
 Did that, lost MS so reinstalled it.
 
 But, FreeBSD is more sophisticated and also more friendly to the rest
 of the world and, first of all, asks if you want an MBR installed in
 the sector 0 and then if you go ahead and write FreeBSD's MBR, it will
 give you a choice of bootable slices to boot, including MS if present.
 
 Ok, I'll read the docs and reinstall FBSD. That's no problem, I hope.
 
 Here is the problem. This is my kids' computer and they insist on 
 installing XP. So we keep doing 30 day trials. On the bright side they've 
 all learned to install the OS. Sounds like I'll have problems though 
 keeping a FreeBSD install on there if Windows has to be reinstalled every 
 30 days.

Oh well, such is life in the fast lane.
Have fun.

jerry

 Yuck.
 
 Marty
 
___
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 init(8) run a daemon to me??

2005-12-17 Thread Gustavo Parrini

Hi All,

I'm having a pretty hard time trying to figure out how
can I get init(8) to run a daemon and respawn it if it
crashes. By the time I was a Linux user, it was done by
adding a line in /etc/inittab and it was all...

I know that it must be done in /etc/ttys but I couldn't
find any syntax example after searching the FreeBSD manpages,
maillists, Handbook and Google.

man init gives me this:

...
The *init* utility can also be used to keep arbitrary daemons running,
automatically restarting them if they die.  In this case, the first field
in the ttys(5) 
http://www.freebsd.org/cgi/man.cgi?query=ttyssektion=5apropos=0manpath=FreeBSD+6.0-RELEASE+and+Ports
 file must not reference the path to a configured device
node and will be passed to the daemon as the final argument on its com-
mand line.  This is similar to the facility offered in the ATT System V
UNIX //etc/inittab/.
...

Sounded a little cryptic to me... sorry...

Can anyone help me? If so, An example line would be fine.

Thanx !! =)

Gustavo

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


Re: IPFW pipe command

2005-12-17 Thread Dan Nelson
In the last episode (Dec 18), Malcolm Clarke said:
 I have a question regarding use of the pipe command in IPFW. I use
 the following commands
 
 #ipfw add pipe 1 ip from any to any
 #ipfw pipe 1 config
 
 but get the following error
 
 ipfw: setsockopt(IP_DUMMYNET_CONFIGURE): Protocol not available
 
 I have added firewall_enable=YES in rc.conf
 
 Is there a setting I need to set or change

Ipfw pipes and queues are part of the dummynet traffic shaper.  You
will need to rebuild your kernel with options DUMMYNET.

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


Re: X error: [drm] failed to load kernel module i915

2005-12-17 Thread Remington
On Wed, 2005-12-07 at 20:46 +0200, [EMAIL PROTECTED] wrote:
 Hello
 
 I have problem with running X. I have tried to run it on FreeBSD 6.0 with LG 
 1730s and intel integrated card 82865G.
 after I had read previous posts I have tried to change the Xorg.conf.new and 
 test it but I still getting the errors:
 
 [drm] failed to load kernel module i915
 (EE) I810(0): [DRI] DRIScreenInit failed. Disabling DRI.
 FreeFontPath: FPE /usr/X11R6/lib/X11/Fonts/misc/ refcount is 2, should be 
 1:, fixing
 
 also I have seen this warning on the log file:
 (WW) I810(0): Bad V_BIOS checksum
 
 Does anyone know how to solve it?
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

You need to update your xorg driver. Let me know if you need it

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


Re: webmail solution

2005-12-17 Thread Olivier Nicole
 I'm looking for experiences with a webmail solution. I want to use 
 postfix as my mta and on a freebsd6 machine. The users who will be using the 
 server probably would do better with a webmail package so they can get to it 
 from anywhere. The box already has apache and php so i don't think that'll 
 be an issue. One thing i'm uncertain is whether to offer direct pop/imap or 
 their equivalent encrypted counterparts or just do it all through webmail.

I am using imp from the ports. It need some pop/imap to access the
mailboxes.

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