Re: Howto monitor system security

2005-03-16 Thread Jerry Bell
I've recently started using devialog (http://devialog.sourceforge.net/),
which is pretty good at sending exceptions to you.

Examlog (http://examlog.sourceforge.net/index.php) is by far the most
popular that I've seen, but I have not had a chance to try it on FreeBSD.

Lire (http://logreport.org/lire/) is a good all-around choice - it has
built in recognition for many different types of logs, but I found it a
bit hard to use.  If you are comfortable with it, I'd try this one.

I've heard of several companies that have part of the security monitoring
built around logwatch (http://www2.logwatch.org:81/), but it takes a good
amount of customizing to get it to where it's really useful.

Jerry
http://www.syslog.org


 On 2005-03-14, Jerry Bell [EMAIL PROTECTED] wrote:
 There are many tools that will send alerts to you, but very few that
 will
 work out of the box, without some level of tuning.  There is a
 collection of them here:
 http://www.syslog.org/Web_Links+index-req-viewlink-cid-4.phtml and here:
 http://www.syslog.org/Web_Links+index-req-viewlink-cid-19.phtml

 I see lots of log analizer tools.  Which one is a good choice?


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



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


Re: Howto monitor system security

2005-03-15 Thread Sergei Gnezdov
On 2005-03-14, Jerry Bell [EMAIL PROTECTED] wrote:
 There are many tools that will send alerts to you, but very few that will
 work out of the box, without some level of tuning.  There is a
 collection of them here:
 http://www.syslog.org/Web_Links+index-req-viewlink-cid-4.phtml and here:
 http://www.syslog.org/Web_Links+index-req-viewlink-cid-19.phtml

I see lots of log analizer tools.  Which one is a good choice?


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


Re: Howto monitor system security

2005-03-14 Thread h p
[...]
  FreeBSD security email is rather anoying, because it keeps sending
  messages even if nothing has changed.  I need an email sent to me only
  if there is something abnormal.

 What happens when someone breaks in and disables it from sending email?

 Think of it as a kind of heartbeat.

Well, different minds work differently, but for me it adds vastly to
the noise level.
If everything is normal, I get a mail. If there is something wrong, I
get a mail. A different one, for sure, but I have to actually read it
to know.
If I only get a mail in a special case, I am much more inclined to
read it than if I get a mail every day for 300 days and on the 301st
there is a mail with a warning. I've stopped paying attention long
before that.

Just my thoughts

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


Howto monitor system security

2005-03-13 Thread Sergei Gnezdov
Sorry, it is a rather generic message, but the problem is a generic as
well.

I am running my FreeBSD machine on DMZ.  I use ipfw and I expose http
and smtp ports.  I also expose sshd port, but only to a trusted
network (work).  I'd like to know what is the best way to monitor my
machine security.

FreeBSD security email is rather anoying, because it keeps sending
messages even if nothing has changed.  I need an email sent to me only
if there is something abnormal.

For example, I'd like to know if there is a significant change in
network activity.  My mailserver might be hijacked and is sending
spam.

I am running snort, but most of the time it simply reports MySQL warm
attempts.

Is there a log to see messages sent by sendmail?

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


Re: Howto monitor system security

2005-03-13 Thread Loren M. Lang
On Sun, Mar 13, 2005 at 09:58:41PM +, Sergei Gnezdov wrote:
 Sorry, it is a rather generic message, but the problem is a generic as
 well.
 
 I am running my FreeBSD machine on DMZ.  I use ipfw and I expose http
 and smtp ports.  I also expose sshd port, but only to a trusted
 network (work).  I'd like to know what is the best way to monitor my
 machine security.
 
 FreeBSD security email is rather anoying, because it keeps sending
 messages even if nothing has changed.  I need an email sent to me only
 if there is something abnormal.

What happens when someone breaks in and disables it from sending email?

Think of it as a kind of heartbeat.

snip

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

-- 
I sense much NT in you.
NT leads to Bluescreen.
Bluescreen leads to downtime.
Downtime leads to suffering.
NT is the path to the darkside.
Powerful Unix is.

Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc
Fingerprint: CEE1 AAE2 F66C 59B5 34CA  C415 6D35 E847 0118 A3D2
 


pgpTe74KjYi1t.pgp
Description: PGP signature


Re: Howto monitor system security

2005-03-13 Thread Jerry Bell
Sergei,

As one of the other responses points out, it's possible that it would be
too late by the time a monitoring system was able to send an email to you.

One way to partly mitigate that risk is by having your logs forwarded to
another system, and having the analysis run from that machine.  You still
run the risk of the attacker stopping the logs from being forwarded, but
you will likely get *some* notice that something is wrong.

There are many tools that will send alerts to you, but very few that will
work out of the box, without some level of tuning.  There is a
collection of them here:
http://www.syslog.org/Web_Links+index-req-viewlink-cid-4.phtml and here:
http://www.syslog.org/Web_Links+index-req-viewlink-cid-19.phtml

 I am running my FreeBSD machine on DMZ.  I use ipfw and I expose http
 and smtp ports.  I also expose sshd port, but only to a trusted
 network (work).  I'd like to know what is the best way to monitor my
 machine security.

 FreeBSD security email is rather anoying, because it keeps sending
 messages even if nothing has changed.  I need an email sent to me only
 if there is something abnormal.


If you have portaudit installed, the daily security emails will include a
section on vulnerable ports (software, not network) installed.  This is
really helpful, as it's hard to keep up with the latest vulnerabilities in
all the software that a given system has to run.  I think there tends to
be a lag between the announcement of the vulnerability and portaudit
knowing about it, though.  Staying subscribed to the security lists for
those applications you run is still a good idea.

Jerry
http://www.syslog.org

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


RE: HOWTO : Setting Up a mouse + wheel on a traditional ps/2 port in FBSD 5.3

2005-02-28 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Valery
 Sent: Saturday, February 26, 2005 10:35 PM
 To: freebsd-questions@freebsd.org
 Subject: HOWTO : Setting Up a mouse + wheel on a traditional ps/2 port
 in FBSD 5.3


 * Setting Up a mouse + wheel on a traditional ps/2 port in FBSD 5.3
... and others ... *


Hey Valery, a few things on this:

This only works for mice that support the intellimouse protocol.

Simplest way to find out if your mouse supports this is to kill
the moused daemon, then issue the command:

moused -p /dev/psm0 -t auto -d -f

and read the first line, it will print out the model of the mouse
(for example MouseMan+) then move the
wheel up and down should generate a stream of events on the console

If moving the wheel generates nothing, buy a different mouse.

usb and serial mice with wheels can be tested with the same procedure
except change the port -p  of course.

 1. Must know
   ps2 bus   : the ps/2 bus is mapped as /dev/psm0
   /dev/psm0 : support only 'ps/2' protocol ( moused(8) )
   moused : map /dev/psm0 as a virtual port to
/dev/sysmouse (ie like /dev/ttyv0 is a virtual tty)
   X : work with the /dev/sysmouse virtual device as
 input device.
   xorg.conf : When setting up Protocol to Auto the protocol choosed
   by X is ps/2 which don't work for me (i don't know how to
   use a wheel with it without setting up parms for
 each apps)
   xorg.conf : setting up Protocol to sysmouse is the best
 way i find
   to use my wheel. /sysmouse/ work natively with xterm,
   Mozilla, and so on. No needs to change anything.


You should NEVER set the protocol for the mouse in either Xfree86 or
xorg to anything other than sysmouse, when using FreeBSD.  And, if
your going to run X you should -always- run moused.

Per the man page if you use moused, ps/2 or auto are the only acceptable
protocols that are allowed to be set for the ps/2 port.

During the FreeBSD installation for 4.X you are asked to set these up.

 2. Parameters
   /etc/rc.conf :
   moused -p /dev/psm0 -t ps/2

moused -p /dev/psm0 -t auto

is setup by the FreeBSD installation program and it will work just as
well.

Note - many wheel mice use a push on the wheel as a second button.


   /etc/X11/xorg.conf :
   Section InputDevice
 Identifier  Mouse0
 Driver  mouse
 OptionProtocol sysmouse
 OptionDevice /dev/sysmouse
 OptionButtons 5
 OptionZAxisMapping X

This probably should be:

  OptionZAxisMapping 4 5

In fact, the only thing that generally needs to be added to this section
is:

  OptionButtons 5
  OptionZAxisMapping 4 5


   EndSection

 3. Some tips
   Testing :
   1 - kill the moused daemon
   2 - set mouse on console : vidcontrol -m on
   3 - launch moused on foreground to see if it's work :
moused -f -p /dev/psm0 -t ps/2
   4 - press ^C to end
   5 - if result are ok, launch moused with your previous parms
   6 - set up rc.conf  xorg.conf as above.
   7 - try to use a lightweight wm like IceWM or twm to test,
   it respect well X parms.


For testing with twm:

fill an xterm with text, scroll up and down.

firefox also supports the scroll wheel.

 4. Comments
i don't know why, but logoff/login or reboot your computer
 in order to
   get this stuff working properly : first time i set this parms, they
   don't work. Because i was almost sure they must work, i rebooted my
   computer and they work fine. Perhaps some guy from BSD could
   explain ...


I don't understand how your X server got:

   My X.log whith the 'sysmouse' protocol :
.
.
   (**) Option ZAxisMapping 4 5
   (**) Mouse0: ZAxisMapping: buttons 4 and 5

when you had configured

  OptionZAxisMapping X

If I knew I could probably tell you why rebooting worked.

Ted

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


Re: HOWTO : Setting Up a mouse + wheel on a traditional ps/2 port in FBSD 5.3

2005-02-28 Thread Valery
Ted Mittelstaedt wrote:
Hey Valery, a few things on this:
This only works for mice that support the intellimouse protocol.
Simplest way to find out if your mouse supports this is to kill
the moused daemon, then issue the command:
moused -p /dev/psm0 -t auto -d -f
All right, this explain a lot of mis-understand things i found
on the net (same parms working for one and not for others)
You should NEVER set the protocol for the mouse in either Xfree86 or
xorg to anything other than sysmouse, when using FreeBSD.  And, if
your going to run X you should -always- run moused.
Ok, that's what i found. But, why X choose ps/2 when Protocol
is set to Auto ?
I'm afraid that informations about Protocol sysmouse are very
difficult to find. I did not on my side, not even on the net nor
on the FreeBSD or X documentations.
Note - many wheel mice use a push on the wheel as a second button.
Thank
I don't understand how your X server got:
 My X.log whith the 'sysmouse' protocol :
(**) Option ZAxisMapping 4 5
(**) Mouse0: ZAxisMapping: buttons 4 and 5
when you had configured
  OptionZAxisMapping X
If I knew I could probably tell you why rebooting worked.
Sorry, it was the previous version of my log file.
(always difficult to write a summary with a lot of pieces)
Perhaps a mobo pb., or a forgot of mine, no matter to worry about that.
I'm sometimes Aemnesiac too ... :o)
Many thanks Ted for your tips. i hope that the whole thing will be
interesting for others, sheding a light on this stuff.
Just a little thing - to be clean - i found after posting :
2. Parameters
 /etc/X11/xorg.conf :
Section InputDevice
  # All parms according to previous posts and ...
  Option  Emulate3Buttons Off
EndSection
Regards,
v/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: HOWTO : Setting Up a mouse + wheel on a traditional ps/2 port in FBSD 5.3

2005-02-28 Thread Ted Mittelstaedt


 -Original Message-
 From: Valery [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 28, 2005 4:24 AM
 To: Ted Mittelstaedt
 Cc: freebsd-questions@freebsd.org
 Subject: Re: HOWTO : Setting Up a mouse + wheel on a traditional ps/2
 port in FBSD 5.3


 Ted Mittelstaedt wrote:

  Hey Valery, a few things on this:
 
  This only works for mice that support the intellimouse protocol.
 
  Simplest way to find out if your mouse supports this is to kill
  the moused daemon, then issue the command:
 
  moused -p /dev/psm0 -t auto -d -f
 

 All right, this explain a lot of mis-understand things i found
 on the net (same parms working for one and not for others)

  You should NEVER set the protocol for the mouse in either Xfree86 or
  xorg to anything other than sysmouse, when using FreeBSD.  And, if
  your going to run X you should -always- run moused.
 
 Ok, that's what i found. But, why X choose ps/2 when Protocol
 is set to Auto ?

auto instructs the mouse daemon that when it sees a ps/2 port to use
the ps/2 protocol, when it sees a serial port to probe for that, when
it sees a usb port to setup for usb protocol.

It is preferable particularly in a doc like this because it applies
universally.

 I'm afraid that informations about Protocol sysmouse are very
 difficult to find. I did not on my side, not even on the net nor
 on the FreeBSD or X documentations.


You don't need to worry about it.  Any problems between moused and
X's support for the sysmouse protocol are something an ordinary user
probably will never see.  This can be ignored as the problem of the
moused authors and X authors.

What an ordinary user needs to be concerned with is if moused is
correctly talking to their rodent.

  Note - many wheel mice use a push on the wheel as a second button.

 Thank

  I don't understand how your X server got:
 
   My X.log whith the 'sysmouse' protocol :
 (**) Option ZAxisMapping 4 5
 (**) Mouse0: ZAxisMapping: buttons 4 and 5
 
  when you had configured
 
OptionZAxisMapping X
 
  If I knew I could probably tell you why rebooting worked.

 Sorry, it was the previous version of my log file.
 (always difficult to write a summary with a lot of pieces)
 Perhaps a mobo pb., or a forgot of mine, no matter to worry about that.
 I'm sometimes Aemnesiac too ... :o)

 Many thanks Ted for your tips. i hope that the whole thing will be
 interesting for others, sheding a light on this stuff.

 Just a little thing - to be clean - i found after posting :
 2. Parameters
   /etc/X11/xorg.conf :
  Section InputDevice
# All parms according to previous posts and ...
Option  Emulate3Buttons Off

It's off whenever more than 2 buttons are detected - a wheel mouse always
has more than 2 - but this might prevent a useless error message in the
log

Ted

  EndSection

 Regards,

 v/


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


HOWTO : Setting Up a mouse + wheel on a traditional ps/2 port in FBSD 5.3

2005-02-27 Thread Valery
* Setting Up a mouse + wheel on a traditional ps/2 port in FBSD 5.3
  ... and others ... *
1. Must know
 ps2 bus   : the ps/2 bus is mapped as /dev/psm0
 /dev/psm0 : support only 'ps/2' protocol ( moused(8) )
 moused: map /dev/psm0 as a virtual port to
 /dev/sysmouse (ie like /dev/ttyv0 is a virtual tty)
 X : work with the /dev/sysmouse virtual device as input device.
 xorg.conf : When setting up Protocol to Auto the protocol choosed
 by X is ps/2 which don't work for me (i don't know how to
 use a wheel with it without setting up parms for each apps)
 xorg.conf : setting up Protocol to sysmouse is the best way i find
 to use my wheel. /sysmouse/ work natively with xterm,
 Mozilla, and so on. No needs to change anything.
2. Parameters
 /etc/rc.conf :
moused -p /dev/psm0 -t ps/2
 /etc/X11/xorg.conf :
Section InputDevice
  Identifier  Mouse0
  Driver  mouse
  OptionProtocol sysmouse
  OptionDevice /dev/sysmouse
  OptionButtons 5
  OptionZAxisMapping X
EndSection
3. Some tips
 Testing :
 1 - kill the moused daemon
 2 - set mouse on console : vidcontrol -m on
 3 - launch moused on foreground to see if it's work :
  moused -f -p /dev/psm0 -t ps/2
 4 - press ^C to end
 5 - if result are ok, launch moused with your previous parms
 6 - set up rc.conf  xorg.conf as above.
 7 - try to use a lightweight wm like IceWM or twm to test,
 it respect well X parms.
4. Comments
  i don't know why, but logoff/login or reboot your computer in order to
 get this stuff working properly : first time i set this parms, they
 don't work. Because i was almost sure they must work, i rebooted my
 computer and they work fine. Perhaps some guy from BSD could
 explain ...
 My X.log whith the 'sysmouse' protocol :
(**) Option Protocol sysmouse
(**) Mouse0: Device: /dev/sysmouse
(**) Mouse0: Protocol: sysmouse
(**) Option CorePointer
(**) Mouse0: Core Pointer
(**) Option Device /dev/sysmouse
(**) Option BaudRate 1200
(**) Option StopBits 2
(**) Option DataBits 8
(**) Option Parity None
(**) Option Vmin 1
(**) Option Vtime 0
(**) Option FlowControl None
(**) Option Buttons 5
(==) Mouse0: Emulate3Buttons, Emulate3Timeout: 50
(**) Option ZAxisMapping 4 5
(**) Mouse0: ZAxisMapping: buttons 4 and 5
(**) Mouse0: Buttons: 5
(**) Mouse0: BaudRate: 1200
// ... //
(II) 3rd Button detected: disabling emulate3Button
5. Probed apps
  xterm
  Mozilla
  gVim
6. Ref.
  sysmouse(4), moused(8)
  /usr/X11R6/lib/X11/doc/README.mouse ...
  ... no information about sysmouse protocol
  http://colas.nahaboo.net/mouse-wheel-scroll/#FAQ
yours
v/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ipfw altq support howto

2005-02-22 Thread RdBSD
dear all, 

i have patch for ipfw altq support. i've patch it and rebuild the
kernel. i have 5.3 stable with ipfw and pf enabled.
but when i rebuild the kernel by make buildkernel KERNCONF=conf i
have error :

cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -fformat-extensions -std=c99  -nostdinc -I-  -I.
-I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica
-I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter
-I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath
-I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm
-D_KERNEL -include opt_global.h -fno-common -finline-limit=8000
--param inline-unit-growth=100 --param large-function-growth=1000 
-mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding
-Werror  /usr/src/sys/netinet/in_proto.c
/usr/src/sys/netinet/in_proto.c:216: error: `div_usrreqs' undeclared
here (not in a function)
/usr/src/sys/netinet/in_proto.c:216: error: initializer element is not constant
/usr/src/sys/netinet/in_proto.c:216: error: (near initialization for
`inetsw[11].pr_usrreqs')
/usr/src/sys/netinet/in_proto.c:216: error: initializer element is not constant
/usr/src/sys/netinet/in_proto.c:216: error: (near initialization for
`inetsw[11]')
/usr/src/sys/netinet/in_proto.c:240: error: initializer element is not constant
/usr/src/sys/netinet/in_proto.c:240: error: (near initialization for
`inetsw[12]')
/usr/src/sys/netinet/in_proto.c:248: error: initializer element is not constant
/usr/src/sys/netinet/in_proto.c:248: error: (near initialization for
`inetsw[13]')
*** Error code 1

Stop in /usr/obj/usr/src/sys/blaster-pf.
*** Error code 1

Stop in /usr/src.
*** Error code 1


anybody can help me ?

Thanks. 

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


easy VPN config HOWTO?

2005-02-06 Thread darren david
Hi all-
I have been searching high and low for a straightforward VPN 
configuration HOWTO with no luck. everything i've found is way over my 
head and very convoluted (to me, at least). Perhaps such is the nature 
of VPN.

My goal is simply to allow users running Windows to VPN in to my home 
server and gain access to the private LAN. Sure, i can get in via ssh, 
but i have several less technical users who need to access to shared 
resources and for them, ssh is not a realistic solution. I've heard that 
OpenVPN is a bit simpler to set up, but it too is a complicated matter. 
All of the examples i've seen/googled involve unix-unix machines.

I'm tracking 5.3-STABLE with pf controlling traffic.
Can anyone point me in a good direction?
Thanks in advance,
darren david
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: easy VPN config HOWTO?

2005-02-06 Thread Andrew L. Gould
On Sunday 06 February 2005 01:39 pm, darren david wrote:
 Hi all-

 I have been searching high and low for a straightforward VPN
 configuration HOWTO with no luck. everything i've found is way over
 my head and very convoluted (to me, at least). Perhaps such is the
 nature of VPN.

 My goal is simply to allow users running Windows to VPN in to my home
 server and gain access to the private LAN. Sure, i can get in via
 ssh, but i have several less technical users who need to access to
 shared resources and for them, ssh is not a realistic solution. I've
 heard that OpenVPN is a bit simpler to set up, but it too is a
 complicated matter. All of the examples i've seen/googled involve
 unix-unix machines.

 I'm tracking 5.3-STABLE with pf controlling traffic.

 Can anyone point me in a good direction?

 Thanks in advance,
 darren david

Openvpn is in the ports and is cross-platform.  I've never used it; so I 
don't know how easy it is to setup.  A quick search via google came up 
with the following:

http://www.nilings.se/openvpn/
http://sourceforge.net/projects/openvpn/
http://www.osnews.com/story.php?news_id=5803
http://www.linuxjournal.com/article/7949

Best of luck,

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


Re: easy VPN config HOWTO?

2005-02-06 Thread Thomas Foster
http://www.section6.net/help/pptphow.php
Hope this helps
T
- Original Message - 
From: darren david [EMAIL PROTECTED]
To: freebsd-questions@freebsd.org
Sent: Sunday, February 06, 2005 11:39 AM
Subject: easy VPN config HOWTO?


Hi all-
I have been searching high and low for a straightforward VPN configuration 
HOWTO with no luck. everything i've found is way over my head and very 
convoluted (to me, at least). Perhaps such is the nature of VPN.

My goal is simply to allow users running Windows to VPN in to my home 
server and gain access to the private LAN. Sure, i can get in via ssh, but 
i have several less technical users who need to access to shared resources 
and for them, ssh is not a realistic solution. I've heard that OpenVPN is 
a bit simpler to set up, but it too is a complicated matter. All of the 
examples i've seen/googled involve unix-unix machines.

I'm tracking 5.3-STABLE with pf controlling traffic.
Can anyone point me in a good direction?
Thanks in advance,
darren david
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]


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


Re: easy VPN config HOWTO?

2005-02-06 Thread David van Geyn
You may want to take a look at 'mpd' ... I found it very easy to set up, 
works fine with Windows clients, and I documented it here:

http://www.bsdpronto.com/tutorials/22/
Hope that helps...
David
- Original Message - 
From: darren david [EMAIL PROTECTED]
To: freebsd-questions@freebsd.org
Sent: Sunday, February 06, 2005 2:39 PM
Subject: easy VPN config HOWTO?


Hi all-
I have been searching high and low for a straightforward VPN configuration 
HOWTO with no luck. everything i've found is way over my head and very 
convoluted (to me, at least). Perhaps such is the nature of VPN.

My goal is simply to allow users running Windows to VPN in to my home 
server and gain access to the private LAN. Sure, i can get in via ssh, but 
i have several less technical users who need to access to shared resources 
and for them, ssh is not a realistic solution. I've heard that OpenVPN is 
a bit simpler to set up, but it too is a complicated matter. All of the 
examples i've seen/googled involve unix-unix machines.

I'm tracking 5.3-STABLE with pf controlling traffic.
Can anyone point me in a good direction?
Thanks in advance,
darren david 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Howto measure packets per seconds

2005-01-25 Thread Thomas Vogt
Hello

I try to do a benchmark with freebsd 5.x. It's for a routing project.
So i'm only interessted in max pps for the integrated GigE interface. 

I tried netperf. But netperf don't show me the max. limit of pps for
4kbyte packets (only interessted in small udp packets).
netstat -w 1 is not really usefull, because it doesn't show the real
limit.

Is there a way to measure the pps limit? Perhaps with netperf?

Regards,
Thomas

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


Re: Howto measure packets per seconds

2005-01-25 Thread Michael Conlen
I use net-snmp and cricket. This gives me octets and packets over five 
minute averages.

--
Michael Conlen
On Jan 25, 2005, at 2:10 PM, Thomas Vogt wrote:
Hello
I try to do a benchmark with freebsd 5.x. It's for a routing project.
So i'm only interessted in max pps for the integrated GigE interface.
I tried netperf. But netperf don't show me the max. limit of pps for
4kbyte packets (only interessted in small udp packets).
netstat -w 1 is not really usefull, because it doesn't show the real
limit.
Is there a way to measure the pps limit? Perhaps with netperf?
Regards,
Thomas
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD HOWTO: Software Mirror System Disk

2005-01-24 Thread Danny Howard
[ From http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/ ]
A new feature of FreeBSD 5.3 is the ability to set up a software mirror 
of your system disk. This allows you to boot off either of a pair of 
hard disks, which will then function as a RAID1, which will ensure 
system uptime in the face of a single disk failure.

As the documentation is a bit sketchy, heres a quick cheat sheet for 
setting this up with gmirror:
(This crib sheet assumes you have a pair of identical IDE (in my case, 
SATA) drives identified as ad4 and ad6.)

  1. Install FreeBSD on to ad4.
  2. Reboot with the Install CD.
  3. Enter Fixit mode, using Install CD disc2 as the live filesystem
  4. # *chroot /dist*
 # *mount_devfs devfs /dev*
 # *gmirror label -v -b round-robin gm0 /dev/ad4*
 # *gmirror insert gm0 /dev/ad6*
 # *mount /dev/mirror/gm0s1a /mnt*
 # *echo geom_mirror_load=YES  /mnt/boot/loader.conf*
 # *echo swapoff=YES  /mnt/etc/rc.conf*
  5. Edit /mnt/etc/fstab to convert ad4 - mirror/gm0
  6. Reboot
Thanks to the few dozen people who have come before me, and posted 
crucial hints to the mailing lists. Thanks also to Ralf S. Engelschall 
who has a far more verbose explanation of how to do this sort of thing 
with mis-matched disks. [See http://people.freebsd.org/~rse/mirror/ ]
http://people.freebsd.org/%7Erse/mirror/
You should definately look over the gmirror man page, and review the 
output of *gmirror list gm0* when swapping out drives. You can disable 
automatic rebuild, etc. It is quite nice.

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


Re: FreeBSD HOWTO: Software Mirror System Disk

2005-01-24 Thread Danny Howard
Danny Howard wrote:
As the documentation is a bit sketchy, heres a quick cheat sheet for 
setting this up with gmirror:
(This crib sheet assumes you have a pair of identical IDE (in my case, 
SATA) drives identified as ad4 and ad6.)
Let me apologize for Thunderbird formatting my mail goofy.  (I only use 
it for mailing lists, silly vim weenie.)  Here's a little clean-up:

 1. Install FreeBSD on to ad4.
 2. Reboot with the Install CD.
 3. Enter Fixit mode, using Install CD disc2 as the live filesystem
 4. # chroot /dist
# mount_devfs devfs /dev
# gmirror label -v -b round-robin gm0 /dev/ad4
# gmirror insert gm0 /dev/ad6
# mount /dev/mirror/gm0s1a /mnt
# echo geom_mirror_load=YES  /mnt/boot/loader.conf
# echo swapoff=YES  /mnt/etc/rc.conf
 5. Edit /mnt/etc/fstab to convert ad4 - mirror/gm0
 6. Reboot
-danny
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: perl -MCPAN -e shell question - need a howto

2005-01-18 Thread Bryan Fullerton
On Fri, 14 Jan 2005 06:55:19 -0900, Andy Firman [EMAIL PROTECTED] wrote:
 I don't see the perl module for Text::Aspell in the ports, by doing
 all sorts of permutations of this:
 cd /usr/ports  make search name=p5 |grep Aspell

Ah, sorry, didn't see that in your posts about this.

 So, once again, sorry if this is really basic stuff, but how to I get
 Text::Aspell - Perl interface to the Aspell library installed?

This seems a good CPAN reference, including info on how to debug test failures:

http://sial.org/howto/perl/life-with-cpan/

(first Google result on perl cpan shell test fail)

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


Re: perl -MCPAN -e shell question - need a howto (DONE)

2005-01-17 Thread Andy Firman
On Fri, Jan 14, 2005 at 06:55:19AM -0900, Andy Firman wrote:
 On Fri, Jan 14, 2005 at 10:29:05AM -0500, Bryan Fullerton wrote:
  On Fri, 14 Jan 2005 06:20:49 -0900, Andy Firman [EMAIL PROTECTED] wrote:
   On Fri, Jan 14, 2005 at 03:08:23PM +, Gary Hayers wrote:
  [snip]
 
 I don't see the perl module for Text::Aspell in the ports, by doing
 all sorts of permutations of this:
 cd /usr/ports  make search name=p5 |grep Aspell
 
 So, once again, sorry if this is really basic stuff, but how to I get
 Text::Aspell - Perl interface to the Aspell library installed?

There is no port for Text::Aspell, so I had to install from source.

Text::Aspell depends on XML::DOM and CGI, which I installed from the
ports system.  (p5-XML-DOM-1.43, p5-CGI.pm-3.05)

The make test keeps failing for the source install of Text::Aspell,
but I did make install anyway, and all seems to be working now.

Andy

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


perl -MCPAN -e shell question - need a howto

2005-01-14 Thread Andy Firman

Using FreeBSD 4.10 stable, perl-5.8.5 installed from ports.

su-2.05b# perl -v
This is perl, v5.8.5 built for i386-freebsd-64int

When using perl -MCPAN -e shell, I can install the bundle fine,
but the when I try to install XML::DOM, or Text::Aspell, they fail.

Where can I go for help on getting the bsdpan ports installed?
Or is there a howto on this stuff because I am clueless?

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: perl -MCPAN -e shell question - need a howto

2005-01-14 Thread Bryan Fullerton
On Fri, 14 Jan 2005 04:34:33 -0900, Andy Firman [EMAIL PROTECTED] wrote:
 
 Using FreeBSD 4.10 stable, perl-5.8.5 installed from ports.
 
 su-2.05b# perl -v
 This is perl, v5.8.5 built for i386-freebsd-64int
 
 When using perl -MCPAN -e shell, I can install the bundle fine,
 but the when I try to install XML::DOM, or Text::Aspell, they fail.

What are the errors when they fail?

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


Re: perl -MCPAN -e shell question - need a howto

2005-01-14 Thread Andy Firman
On Fri, Jan 14, 2005 at 09:42:06AM -0500, Bryan Fullerton wrote:
 On Fri, 14 Jan 2005 04:34:33 -0900, Andy Firman [EMAIL PROTECTED] wrote:
  
  Using FreeBSD 4.10 stable, perl-5.8.5 installed from ports.
  
  su-2.05b# perl -v
  This is perl, v5.8.5 built for i386-freebsd-64int
  
  When using perl -MCPAN -e shell, I can install the bundle fine,
  but the when I try to install XML::DOM, or Text::Aspell, they fail.
 
 What are the errors when they fail?

Trying to install the XML::DOM I get this:

cpan install XML::DOM

snip lots

Manifying blib/man3/XML::DOM::Parser.3
Manifying blib/man3/XML::DOM::Comment.3
Manifying blib/man3/XML::DOM::Element.3
Manifying blib/man3/XML::DOM::XMLDecl.3
Manifying blib/man3/XML::DOM::CDATASection.3
Manifying blib/man3/XML::DOM::Node.3
Manifying blib/man3/XML::DOM::ElementDecl.3
Manifying blib/man3/XML::DOM::DOMImplementation.3
Manifying blib/man3/XML::DOM::EntityReference.3
Manifying blib/man3/XML::DOM::AttDef.3
Manifying blib/man3/XML::DOM::Text.3
Manifying blib/man3/XML::DOM::NodeList.3
Manifying blib/man3/XML::DOM::CharacterData.3
  /usr/bin/make  -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl5.8.5 -MExtUtils::Command::MM -e 
test_harness(0, 'blib/lib', 'blib/arch') t/*.t
t/build_dom...ok
t/dom_astress.ok
t/dom_attrok
t/dom_cdata...ok
t/dom_documenttypeok
t/dom_encode..ok
t/dom_example.ok
t/dom_extent..ok
t/dom_jp_astress..ok
t/dom_jp_attr.FAILED tests 3, 9, 12, 14, 19, 22
Failed 6/23 tests, 73.91% okay
t/dom_jp_cdataFAILED test 3
Failed 1/3 tests, 66.67% okay
t/dom_jp_example..ok
t/dom_jp_minusFAILED test 2
Failed 1/2 tests, 50.00% okay
t/dom_jp_modify...FAILED test 16
Failed 1/16 tests, 93.75% okay
t/dom_jp_printFAILED tests 2-3
Failed 2/3 tests, 33.33% okay
t/dom_minus...ok
t/dom_modify..ok
t/dom_noexpandok
t/dom_print...ok
t/dom_templateok
t/dom_textok
Failed Test   Stat Wstat Total Fail  Failed  List of Failed
---
t/dom_jp_attr.t 236  26.09%  3 9 12 14 19 22
t/dom_jp_cdata.t 31  33.33%  3
t/dom_jp_minus.t 21  50.00%  2
t/dom_jp_modify.t   161   6.25%  16
t/dom_jp_print.t 32  66.67%  2-3
Failed 5/21 test scripts, 76.19% okay. 11/129 subtests failed, 91.47% okay.
*** Error code 2

Stop in /root/.cpan/build/XML-DOM-1.43.
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force

#



Then with installing Text::Aspell I get this:

cpan install Text::Aspell
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Thu, 13 Jan 2005 09:50:06 GMT
Running install for module Text::Aspell
Running make for H/HA/HANK/Text-Aspell-0.04.tar.gz
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for /root/.cpan/sources/authors/id/H/HA/HANK/Text-Aspell-0.04.tar.gz ok
Scanning cache /root/.cpan/build for sizes
Text-Aspell-0.04/
Text-Aspell-0.04/t/
Text-Aspell-0.04/t/test.t
Text-Aspell-0.04/MANIFEST
Text-Aspell-0.04/typemap
Text-Aspell-0.04/Aspell.xs
Text-Aspell-0.04/META.yml
Text-Aspell-0.04/Aspell.pm
Text-Aspell-0.04/Changes
Text-Aspell-0.04/Makefile.PL
Text-Aspell-0.04/README
Removing previously used /root/.cpan/build/Text-Aspell-0.04

  CPAN.pm: Going to build H/HA/HANK/Text-Aspell-0.04.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Text::Aspell
cp Aspell.pm blib/lib/Text/Aspell.pm
/usr/local/bin/perl5.8.5 /usr/local/lib/perl5/5.8.5/ExtUtils/xsubpp 
-noprototypes -typemap
/usr/local/lib/perl5/5.8.5/ExtUtils/typemap -typemap typemap  Aspell.xs  
Aspell.xsc  mv Aspell.xsc Aspell.c
cc -c-DAPPLLIB_EXP=/usr/local/lib/perl5/5.8.5/BSDPAN -DHAS_FPSETMASK 
-DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe
-I/usr/local/include -O -pipe-DVERSION=\0.04\  -DXS_VERSION=\0.04\ 
-DPIC -fPIC -I/usr/local/lib/perl5/5.8.5/mach/CORE
Aspell.c
Aspell.c: In function `XS_Text__Aspell_DESTROY':
Aspell.c:98: warning: cast to pointer from integer of different size
Aspell.c: In function `XS_Text__Aspell_create_speller':
Aspell.c:125: warning: cast to pointer from integer of different size
Aspell.c: In function `XS_Text__Aspell_print_config':
Aspell.c:158: warning: cast to pointer from integer of different size
Aspell.c: In function `XS_Text__Aspell_set_option':
Aspell.c:194: warning: cast to pointer from integer of different size
Aspell.c: In function `XS_Text__Aspell_remove_option':
Aspell.c:230: warning: cast to pointer from integer of different size
Aspell.c: In function `XS_Text__Aspell_get_option':
Aspell.c:266: warning: cast to pointer from integer of different size
Aspell.c: In function 

Re: perl -MCPAN -e shell question - need a howto

2005-01-14 Thread Gary Hayers
Andy Firman wrote:
Using FreeBSD 4.10 stable, perl-5.8.5 installed from ports.
su-2.05b# perl -v
This is perl, v5.8.5 built for i386-freebsd-64int
When using perl -MCPAN -e shell, I can install the bundle fine,
but the when I try to install XML::DOM, or Text::Aspell, they fail.
Where can I go for help on getting the bsdpan ports installed?
Or is there a howto on this stuff because I am clueless?
Thanks,
Andy
If you have the Ports tree installed you can install it from the ports tree
# cd /usr/ports/textproc/p5-XML-DOM  make install clean
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: perl -MCPAN -e shell question - need a howto

2005-01-14 Thread Andy Firman
On Fri, Jan 14, 2005 at 03:08:23PM +, Gary Hayers wrote:
 Andy Firman wrote:
 Using FreeBSD 4.10 stable, perl-5.8.5 installed from ports.
 
 su-2.05b# perl -v
 This is perl, v5.8.5 built for i386-freebsd-64int
 
 When using perl -MCPAN -e shell, I can install the bundle fine,
 but the when I try to install XML::DOM, or Text::Aspell, they fail.
 
 Where can I go for help on getting the bsdpan ports installed?
 Or is there a howto on this stuff because I am clueless?
 
 Thanks,
 Andy
 
 If you have the Ports tree installed you can install it from the ports tree
 
 # cd /usr/ports/textproc/p5-XML-DOM  make install clean

Understood.  But I am having a hard time figuring out how Perl modules 
should get installed on a system.

One can use perl -MCPAN -e shell to install modules right?
One can install from source in /usr/local/src right?
One can install perl p5-Bla-Bla-1.03 from the ports right?

Which is the right way?

I have learned in the past it is very good practice to stick with the
system package management system if at all possible.  It will save
you in the future big time with dependancey problems.
Hence my hesitation with moving forward by throwing anything at the problem.

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


Re: perl -MCPAN -e shell question - need a howto

2005-01-14 Thread Bryan Fullerton
On Fri, 14 Jan 2005 06:20:49 -0900, Andy Firman [EMAIL PROTECTED] wrote:
 On Fri, Jan 14, 2005 at 03:08:23PM +, Gary Hayers wrote:
[snip]
  If you have the Ports tree installed you can install it from the ports tree
 
  # cd /usr/ports/textproc/p5-XML-DOM  make install clean
 
 Understood.  But I am having a hard time figuring out how Perl modules
 should get installed on a system.

The generally preferred way on a FreeBSD system is to use the FreeBSD
ports as noted above.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html

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


Re: perl -MCPAN -e shell question - need a howto

2005-01-14 Thread Andy Firman
On Fri, Jan 14, 2005 at 10:29:05AM -0500, Bryan Fullerton wrote:
 On Fri, 14 Jan 2005 06:20:49 -0900, Andy Firman [EMAIL PROTECTED] wrote:
  On Fri, Jan 14, 2005 at 03:08:23PM +, Gary Hayers wrote:
 [snip]
   If you have the Ports tree installed you can install it from the ports 
   tree
  
   # cd /usr/ports/textproc/p5-XML-DOM  make install clean
  
  Understood.  But I am having a hard time figuring out how Perl modules
  should get installed on a system.
 
 The generally preferred way on a FreeBSD system is to use the FreeBSD
 ports as noted above.
 
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html

Yeah...I understand that, I read the whole manual, and I read the whole
book, The Complete FreeBSD.   Sorry if I am missing something really basic.

I don't see the perl module for Text::Aspell in the ports, by doing
all sorts of permutations of this:
cd /usr/ports  make search name=p5 |grep Aspell

So, once again, sorry if this is really basic stuff, but how to I get
Text::Aspell - Perl interface to the Aspell library installed?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Howto check the hard disk bad sectors in FreeBSD?

2005-01-07 Thread Curtis Almond
You can do a simple dd command to read the entire disk. If bad sectors
are found during the dd you should see ATA error messages spewing to
the console and written in /var/log/messages.


On Wed, 5 Jan 2005 13:13:18 +0800, Unreal HSHH [EMAIL PROTECTED] wrote:
 Hi,
 
 I have one harddisk installed in FreeBSD.
 And I want to check if any bad sectors on it.
 How can I do ? It seems the fsck can't do this.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

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


gnats installation/configuration howto FreeBSD

2005-01-06 Thread dave
Hello,
I'm looking for a gnats install and configuration procedure for FreeBSD.
Googling has revealed a great many linux docs, but nothing for FreeBSD
specific, looking for apache2 and 5.3 if possible.
Any suggestions appreciated.
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: Howto check the hard disk bad sectors in FreeBSD?

2005-01-06 Thread Jay Moore
On Tuesday 04 January 2005 11:13 pm, Unreal HSHH wrote:

 I have one harddisk installed in FreeBSD.
 And I want to check if any bad sectors on it.
 How can I do ? It seems the fsck can't do this.

I'm not sure this can be done, but if you're looking for something to monitor 
the health of your drives there are a number of utilities available that use 
the S.M.A.R.T. feature built into most current hard drives. In general, 
these utilities will help you predict failure of your HDD.

Here's one such tool:
http://smartmontools.sourceforge.net/

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


Howto check the hard disk bad sectors in FreeBSD?

2005-01-04 Thread Unreal HSHH
Hi,

I have one harddisk installed in FreeBSD.
And I want to check if any bad sectors on it.
How can I do ? It seems the fsck can't do this.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Howto check the hard disk bad sectors in FreeBSD?

2005-01-04 Thread Ted Mittelstaedt
Basically impossible.

Your best bet is to go to the hard drive manufacturers website
and see if they have a software program (often a DOS program)
that you can boot off a floppy and do this to the hard drive.

Or, if it's a SCSI disk you can often run a manufacturers program
under DOS that talks to the SCSI card and will send the commands to the
SCSI disk.

Years ago with the old wd disk driver you could run bad144 and
do this to ESDI and MFM drives.

If you want to stress-test a hard disk then install and run one of the
disk stressing programs in the ports collection.

Ted

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Unreal HSHH
 Sent: Tuesday, January 04, 2005 9:13 PM
 To: freebsd-questions@freebsd.org
 Subject: Howto check the hard disk bad sectors in FreeBSD?
 
 
 Hi,
 
 I have one harddisk installed in FreeBSD.
 And I want to check if any bad sectors on it.
 How can I do ? It seems the fsck can't do this.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Freebsd remote install howto

2005-01-02 Thread Sunil Sunder Raj
Hi,
Had to install freebsd on a machine without a floppy disk nor a cd drive. 
This machine is on the lan. Is there any way I can install freebsd from 
another freebsd machine in the lan.

Regards
SSR
_
Redefine team work. Discover your true potential. 
http://www.microsoft.com/india/office/experience/ With the MS product suite.

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


Re: Freebsd remote install howto

2005-01-02 Thread cpghost
On Mon, Jan 03, 2005 at 01:05:26AM +0530, Sunil Sunder Raj wrote:
 Hi,
 Had to install freebsd on a machine without a floppy disk nor a cd drive. 
 This machine is on the lan. Is there any way I can install freebsd from 
 another freebsd machine in the lan.

You could try a pxeboot(8)-based method, if your machine supports PXE:

http://www.onlamp.com/pub/a/bsd/2004/09/09/diskless_server.html

I've done something similar to install FreeBSD 5.2.1 on a
Soekris net4801 board that comes without keyboard, floppy drives,
CD drives, nor VGA; just a serial console and ethernet ports.
It was amazingly simple and effective.

Good luck!

 Regards
 SSR

Cheers,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ipfw - a detailed howto

2004-12-23 Thread Florian Hengstberger
hi!
Can anybody recommend an in deep guide to ipfw?
I googled now for a longer time and found nothing really apropriate.
The FreeBSD security howto is a little short, other guides
don't cover security topics.
Is there something like OpenBSDs pf-docu for ipfw?

Thanks a lot
Florian


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


Re: ipfw - a detailed howto

2004-12-23 Thread Andrew L. Gould
On Thursday 23 December 2004 11:30 am, Florian Hengstberger wrote:
 hi!
 Can anybody recommend an in deep guide to ipfw?
 I googled now for a longer time and found nothing really apropriate.
 The FreeBSD security howto is a little short, other guides
 don't cover security topics.
 Is there something like OpenBSDs pf-docu for ipfw?

 Thanks a lot
 Florian


Dru Lavigne has a column called FreeBSD Basics at O'Reilly's 
ONLamp.com site.  A list of (links to) the articles can be found at:

http://www.onlamp.com/pub/ct/15

There is a series of articles covering IPFW -- the first was published 
on April 25, 2001.  (The articles are listed in reverse chronological 
order.)

While you're there, scan the list for other cool articles.

By the way, if you really like OpenBSD's pf documentation, you might 
consider using pf in FreeBSD.  It is available by default in FreeBSD 
5.3; and as a port for FreeBSD 4 STABLE (/usr/ports/security/pf).  The 
OpenBSD documentation is easily applied to FreeBSD.

Best of luck,

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


Re: ipfw - a detailed howto

2004-12-23 Thread Joshua Lokken
On Thu, 23 Dec 2004 18:30:50 +0100, Florian Hengstberger
[EMAIL PROTECTED] wrote:
 hi!
 Can anybody recommend an in deep guide to ipfw?

Yes.  'man ipfw(8)'
If that's not in-depth enough for you, I don't know what would
be ;) 


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


Install CD howto and some amd64 issue

2004-12-22 Thread Kvesdn Gbor
Hi,

I've found a Japanese mirror, where some 5.0-STABLE packages can be found,
and I'd like to build an own install disc, rather than using CVSup. Could
You help me, please, how can I do that?

I've got two reasons for building own install disc:

1, I'm going to administer an amd64 server with a RAID5 array and an MSI
mainboard with nforce 3 250GB chipset, and unfortunately the official
5.3-RELEASE for amd64 doesn't boot on this machine. I don't know whether the
chipset causes this issue or the 3ware 8xxx controller, but the loader stops
at the line starting with [EMAIL PROTECTED] Of course, I've
written to the freebsd-hardware mailing list, but I haven't got any answers.
I've also written to the 3ware, but the supporter was rather a lame guy, he
haven't even understood, what my problem is. I've written to MSI, but the
result is no answer. Finally, I decided to get a newer kernel somehow, maybe
some kind of current kernel would work. I'd like to give a try to
5.0-CURRENT or 6.0-CURRENT, but in this case I can't use the CVSup, because
the 5.3 kernel is useless on this machine, thus I haven't got anything to
upgrade from.

2, I'd like to install 5.0-STABLE on some machines, and I don't want to
upgrade so many times. An own standalone 5.0-CURRENT install disc would be
much more convenient for me. And in trouble, when I had to reinstall the
system, such a disc would be very useful.

Thanks for Your help.
I wish You a Merry Xmas,

Gabor Kovesdan (from Hungary)

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


BSD library HOWTO?

2004-12-10 Thread Jonathon McKitrick

Hi all,

I found some general guidelines in the Developer's Handbook, but is there a
more detailed HOWTO somewhere on setting up and using a library?  I'd like
to get the whole low-down on sonames, links to libraries, compiling versus
linking library names, and so on.

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


Re: Req: Good virtual mail server howto

2004-11-19 Thread Steve Bertrand
 Hello Chris,

 On Thu, Nov 18, 2004 at 07:07:40PM + or thereabouts, Chris Smith
 wrote:

 Has anyone got any good resources for configuring a virtual
 pop3/imap
 server under FreeBSD 5.x?  I need to host mail for more than one
 domain
 and do not wish to give users system accounts.

 Go for http://high5.net/howto/, where you can find decent mail
 solution.

I have used Matt Simerson's mail-toaster for a couple of years, and I
can't say enough about it.

http://www.tnpi.biz/internet/mail/toaster/

All virtual, no system accounts needed at all. Has pretty well any
features you could ask for.

Steve



   Cheers,

   Martin

 --
 martin hudec


* 421 907 303 393
* [EMAIL PROTECTED]
* http://www.aeternal.net

 Nothing travels faster than the speed of light with the possible
 exception of bad news, which obeys its own special laws.

Douglas Adams, The Hitchhiker's Guide to the Galaxy



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


Re: Req: Good virtual mail server howto

2004-11-19 Thread CHris Rich
I personally like qmail, we use it on our mail server, and like you we
didn't want to give system accounts so we did it with a mysql patch.
It took awhile to get up and running but now that it is running we
have a php script which handles user management, etc.

www.lifewithqmail.org is a good place to get a start on it.
http://iain.cx/qmail/mysql/ is the version of qmail we used though
documentation is limited and it sometimes can be a little tricky. It
can be compiled in /usr/ports/mail/qmail-mysql though.

Best of luck


On Thu, 18 Nov 2004 19:07:40 +, Chris Smith [EMAIL PROTECTED] wrote:
 Hi,
 
 Has anyone got any good resources for configuring a virtual pop3/imap
 server under FreeBSD 5.x?  I need to host mail for more than one domain
 and do not wish to give users system accounts.
 
 Cheers,
 
 Chris Smith
 http://www.ninjalabs.co.uk/
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

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


RE: Req: Good virtual mail server howto

2004-11-19 Thread Haulmark, Chris
Someone broke the silence: 

 I personally like qmail, we use it on our mail server, and like you we
 didn't want to give system accounts so we did it with a mysql patch.
 It took awhile to get up and running but now that it is running we
 have a php script which handles user management, etc.
 
 www.lifewithqmail.org is a good place to get a start on it.
 http://iain.cx/qmail/mysql/ is the version of qmail we used though
 documentation is limited and it sometimes can be a little tricky. It
 can be compiled in /usr/ports/mail/qmail-mysql though.
 
 Best of luck
 

If you opt for using postfix, I like using the www.high5.com howto which also 
includes using postfix admin to manage your virtual users.

 
 On Thu, 18 Nov 2004 19:07:40 +, Chris Smith
 [EMAIL PROTECTED] wrote:
 Hi,
 
 Has anyone got any good resources for configuring a virtual pop3/imap
 server under FreeBSD 5.x?  I need to host mail for more than one
 domain and do not wish to give users system accounts.
 
 Cheers,
 
 Chris Smith

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


Re: Req: Good virtual mail server howto

2004-11-19 Thread Ruben de Groot
On Fri, Nov 19, 2004 at 09:35:22AM -0500, Haulmark, Chris typed:
 Someone broke the silence: 
 
  I personally like qmail, we use it on our mail server, and like you we
  didn't want to give system accounts so we did it with a mysql patch.
  It took awhile to get up and running but now that it is running we
  have a php script which handles user management, etc.
  
  www.lifewithqmail.org is a good place to get a start on it.
  http://iain.cx/qmail/mysql/ is the version of qmail we used though
  documentation is limited and it sometimes can be a little tricky. It
  can be compiled in /usr/ports/mail/qmail-mysql though.
  
  Best of luck
  
 
 If you opt for using postfix, I like using the www.high5.com howto which also 
 includes using postfix admin to manage your virtual users.
 

Come on guys, the OP is asking for a virtual pop3/imap server. Not an MTA
like qmail or postfix. So let him decide on that first and then see which MTA
goes best with his choice.
Both courier and cyrus have support for virtual users and domains. Both are in
the portstree and both are well-documented on the web. google around.

  
  On Thu, 18 Nov 2004 19:07:40 +, Chris Smith
  [EMAIL PROTECTED] wrote:
  Hi,
  
  Has anyone got any good resources for configuring a virtual pop3/imap
  server under FreeBSD 5.x?  I need to host mail for more than one
  domain and do not wish to give users system accounts.
  
  Cheers,
  
  Chris Smith
 
 Chris Haulmark
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Req: Good virtual mail server howto

2004-11-19 Thread Haulmark, Chris
Someone broke the silence: 

 
 If you opt for using postfix, I like using the www.high5.com
 howto which also includes using postfix admin to manage your virtual
 users. 

Excuse my typo, I meant www.high5.net sorry.

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


Req: Good virtual mail server howto

2004-11-18 Thread Chris Smith
Hi,

Has anyone got any good resources for configuring a virtual pop3/imap
server under FreeBSD 5.x?  I need to host mail for more than one domain
and do not wish to give users system accounts.

Cheers,

Chris Smith
http://www.ninjalabs.co.uk/

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


Re: Req: Good virtual mail server howto

2004-11-18 Thread Martin Hudec
Hello Chris,

On Thu, Nov 18, 2004 at 07:07:40PM + or thereabouts, Chris Smith wrote:
 
 Has anyone got any good resources for configuring a virtual pop3/imap
 server under FreeBSD 5.x?  I need to host mail for more than one domain
 and do not wish to give users system accounts.

Go for http://high5.net/howto/, where you can find decent mail solution.


Cheers,

Martin

-- 
martin hudec


   * 421 907 303 393
   * [EMAIL PROTECTED]
   * http://www.aeternal.net

Nothing travels faster than the speed of light with the possible 
exception of bad news, which obeys its own special laws.

   Douglas Adams, The Hitchhiker's Guide to the Galaxy


pgp20aTUJpKna.pgp
Description: PGP signature


RE: Cpanel on FreeBSD 5.2 howto

2004-11-06 Thread Steven Adams
I run it fine..

I am updateing ti 5.3 atm with cpanel..

What seems to be the problem.. There is a few bugs with cpanel and freebsd
only minor ones tho.. Which I have told cpanel about and they are fixing.

Steven Adams [EMAIL PROTECTED] 
DriftNet Web Services http://www.drifthost.com 
Home: +61 2 94274857
Fax: +61 2 94274857
Mobile +61 (0) 404 085644

-Original Message-
From: Hadi Maleki-Baroogh [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 6 November 2004 6:48 PM
To: [EMAIL PROTECTED]
Subject: Cpanel on FreeBSD 5.2 howto

anyone know any good howtos on getting Cpanel going on FreeBSD 5.2?

_
Take advantage of powerful junk e-mail filters built on patented MicrosoftR 
SmartScreen Technology. 
http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=htt
p://hotmail.com/encaHL=Market_MSNIS_Taglines 
  Start enjoying all the benefits of MSNR Premium right now and get the 
first two months FREE*.

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


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


Cpanel on FreeBSD 5.2 howto

2004-11-05 Thread Hadi Maleki-Baroogh
anyone know any good howtos on getting Cpanel going on FreeBSD 5.2?
_
Take advantage of powerful junk e-mail filters built on patented Microsoft® 
SmartScreen Technology. 
http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines 
 Start enjoying all the benefits of MSN® Premium right now and get the 
first two months FREE*.

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


Re: howto software raid under FreeBSD?

2004-11-03 Thread Matthias F. Brandstetter
-- quoting Christian Hiris --
 If you use the whole disk as provider and your disk has left free 512
 bytes after the end of the last slice, gmirror setup works very easy and
 fast (no need to use dump/restore or dd):

 - Boot into the live-filesystem.
 - Do a 'gmirror load' and label your old disk with 'gmirror label -v
 ...'. - Mount the (now mirrored) / partition on /mnt.
 - echo 'geom_mirror_load=YES'  /mnt/boot/loader.conf
 - echo 'swapoff=YES'  /mnt/etc/rc.conf
 - Edit /mnt/etc/fstab to reflect the newly created mirror devices.
 - Reboot.
 - Add a second disk to the mirror: 'gmirror insert -v ...'.
 - If you use gdm replace 'reboot' by 'shutdown -r now'.

thanks for this, it worked liked a charm!
greets, Matthias

-- 
I don't want to look like a weirdo.  I'll just go with a muumuu.

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


Re: howto software raid under FreeBSD?

2004-10-31 Thread Matthias F. Brandstetter
-- quoting Emanuel Strobl --
 Why going outside and searching the internet?
 You have a complete operating system, and it's one of the best
 documented out there. Just 'man ata', 'man atacontrol' and 'man
 gmirror'. Remember that FreeBSD isn't just a hacked kernel with lots of
 stuff arround without any sense, it's standardized an documented! ;)

Ok, I looked at man gmirror, but found nothing for my 5.2.1 system. As 
you mentioned, gmirror is for 5.3 only.

I missed man atacontrol, sorry for this. Now I've looked at its man page, 
looks good. Only one problem: man page says that I can only rebuild an 
RAID1 array on RAID capable ATA controllers. But I have no such real ATA 
controller. How can I replace a faulty disk with atacontrol on a normal 
ATA controller then?

Thanks for your help, Emanuel!
Greetings, Matthias

-- 
You don't know what it's like -- I'm the one out there every day
putting his ass on the line.  And I'm not out of order!  You're out of 
order!  The whole freaking system is out of order!

  -- Homer Simpson
 Secrets of a Successful Marriage
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: howto software raid under FreeBSD?

2004-10-31 Thread Emanuel Strobl
Am Sonntag, 31. Oktober 2004 19:01 schrieb Matthias F. Brandstetter:
 -- quoting Emanuel Strobl --

  Why going outside and searching the internet?
  You have a complete operating system, and it's one of the best
  documented out there. Just 'man ata', 'man atacontrol' and 'man
  gmirror'. Remember that FreeBSD isn't just a hacked kernel with lots of
  stuff arround without any sense, it's standardized an documented! ;)

 Ok, I looked at man gmirror, but found nothing for my 5.2.1 system. As
 you mentioned, gmirror is for 5.3 only.

 I missed man atacontrol, sorry for this. Now I've looked at its man page,
 looks good. Only one problem: man page says that I can only rebuild an
 RAID1 array on RAID capable ATA controllers. But I have no such real ATA
 controller. How can I replace a faulty disk with atacontrol on a normal
 ATA controller then?

You can use 'atacontrol detach' then powerdown, replace the drive and after 
booting you can 'atacontrol addspar ar0 ad6' (or what ever drive and array 
failed) and 'atacontrol rebuild ar0'.
I've done some simulation of this but never had a real failed drive, also I 
never checked data integry by md5 sums or something like that.
One important thing:
If you simulate the failure by 'atacontrol detach' make sure to wipe out the 
first and last sectors of the failed disk, because otherwise ata would 
detect two raid arrays when booting next time and if you failed the first 
drive you get messed up!

-Mano


 Thanks for your help, Emanuel!
 Greetings, Matthias


pgpJPCNTDZajb.pgp
Description: PGP signature


Re: howto software raid under FreeBSD?

2004-10-31 Thread Matthias F. Brandstetter
-- quoting Emanuel Strobl --
 You can use 'atacontrol detach' then powerdown, replace the drive and
 after booting you can 'atacontrol addspar ar0 ad6' (or what ever drive
 and array failed) and 'atacontrol rebuild ar0'.

Problem is, that man page says atacontrol rebuild is only valid on RAID 
capable ATA controllers. But since I have no such controller, I can't use 
this command.

How can I rebuild the array on a normal ATA controller?
Greetings, Matthias

-- 
Marge, I ate those fancy soaps you bought for the bathroom.

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


Re: howto software raid under FreeBSD?

2004-10-31 Thread Matthias F. Brandstetter
-- quoting Matthias F. Brandstetter --
 Problem is, that man page says atacontrol rebuild is only valid on
 RAID capable ATA controllers. But since I have no such controller, I
 can't use this command.

Ahh, would it be possible to dd data to the new disk?

And if yes: Is this the correct way create the array for the first time? I 
mean I have an existing installation on one disk. Now can I just dd data 
to the second disk, create mirror via atacontrol, edit fstab accordingly, 
and reboot into RAID without any other changes?

Greetings, Matthias

-- 
It takes two to lie.  One to lie and one to listen.

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


Re: howto software raid under FreeBSD?

2004-10-31 Thread Emanuel Strobl
Am Sonntag, 31. Oktober 2004 19:42 schrieb Matthias F. Brandstetter:
 -- quoting Emanuel Strobl --

  You can use 'atacontrol detach' then powerdown, replace the drive and
  after booting you can 'atacontrol addspar ar0 ad6' (or what ever drive
  and array failed) and 'atacontrol rebuild ar0'.

 Problem is, that man page says atacontrol rebuild is only valid on RAID
 capable ATA controllers. But since I have no such controller, I can't use
 this command.

I don't know why this is in the man page, last time I read it (some years ago) 
it was not in there.
You can use the rebuild command also on non-raid controllers, at least it was 
possible for me when I did some tests about 3 months ago.
As I can see you're considering gmirror, perhaps that's the better solution 
for you. In all cases, simulate a drive failure, so you do know what to do 
when one drive really fails.

-Mano


 How can I rebuild the array on a normal ATA controller?
 Greetings, Matthias


pgpicGnquEGHP.pgp
Description: PGP signature


Re: howto software raid under FreeBSD?

2004-10-31 Thread Matthias F. Brandstetter
-- quoting Emanuel Strobl --
 I don't know why this is in the man page, last time I read it (some
 years ago) it was not in there.
 You can use the rebuild command also on non-raid controllers, at least
 it was possible for me when I did some tests about 3 months ago.
 As I can see you're considering gmirror, perhaps that's the better
 solution for you. In all cases, simulate a drive failure, so you do know
 what to do when one drive really fails.

Any docs for gmirror except man page out there anywhere? Something like how 
to use it for root file system, how to convert a non-gmirror system, 
kernel configuration etc.

Greets, Matthias

-- 
Pfft.  Now you tell me.

  -- Homer Simpson, finding out that working at a nuclear
  plant can make one sterile
 I Married Marge
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: howto software raid under FreeBSD?

2004-10-31 Thread Matthias F. Brandstetter
-- quoting Emanuel Strobl --
  Problem is, that man page says atacontrol rebuild is only valid on
  RAID capable ATA controllers. But since I have no such controller, I
  can't use this command.

 I don't know why this is in the man page, last time I read it (some
 years ago) it was not in there.
 You can use the rebuild command also on non-raid controllers, at least
 it was possible for me when I did some tests about 3 months ago.

Ok thx for that. Only one last question: Is it enough to just dd onto 2nd 
disk, create the raid via atacontrol and edit fstab to ar0 to use it on 
root partition as well?

Thx again for your help!
Greetings, Matthias

-- 
Homer: Aw, Marge, kids, I miss my club.

Marge: Oh, Homey.  You know, you are a member of a very exclusive
 club.

Homer: The Black Panthers?

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


Re: howto software raid under FreeBSD?

2004-10-31 Thread Christian Hiris
On Sunday 31 October 2004 23:33, Matthias F. Brandstetter wrote:
 Any docs for gmirror except man page out there anywhere? Something like how
 to use it for root file system, how to convert a non-gmirror system,
 kernel configuration etc.

Short time ago there was a thread on the current list:
http://lists.freebsd.org/pipermail/freebsd-current/2004-October/thread.html#39904

If you use the whole disk as provider and your disk has left free 512 bytes 
after the end of the last slice, gmirror setup works very easy and fast (no 
need to use dump/restore or dd):

- Boot into the live-filesystem.
- Do a 'gmirror load' and label your old disk with 'gmirror label -v ...'.
- Mount the (now mirrored) / partition on /mnt.
- echo 'geom_mirror_load=YES'  /mnt/boot/loader.conf
- echo 'swapoff=YES'  /mnt/etc/rc.conf
- Edit /mnt/etc/fstab to reflect the newly created mirror devices.
- Reboot. 
- Add a second disk to the mirror: 'gmirror insert -v ...'.   
- If you use gdm replace 'reboot' by 'shutdown -r now'.

This also works for an already existing ataraid raid1 array, you just need to 
delete the mirror before you start with the gmirror setup. 

That's how gmirror converted my devices when I a command like: 
'gmirror label -v -b split -s 4096 mirror0 ad4':

   slice  /dev/ad4s1   --  /dev/mirror/mirror0s1
   /  /dev/ad4s1a  --  /dev/mirror/mirror0s1a
   swap   /dev/ad4s1b  --  /dev/mirror/mirror0s1b
   raw --  /dev/mirror/mirror0s1c
   /usr   /dev/ad4s1d  --  /dev/mirror/mirror0s1d
   /home  /dev/ad4s1e  --  /dev/mirror/mirror0s1e

If you have a more complex slice/partition setup, it's a good idea to do at 
least a fine backup of your disklabels before you start conversion. 

HTH,
ch 

-- 
Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE 
OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: howto software raid under FreeBSD?

2004-10-30 Thread Matthias F. Brandstetter
-- quoting Subhro --
 Buddy, software RAIDs had always been a pain in the neck. they simply
 are not worth it as the kernel is busy babysitting the RAID and other
 applications suffer. Also in case of software RAID failures, it is a
 nightmare.

I do not think so.

I never ever had any diffuiculties or hatches with software raids on Linux 
systems. I use them for several years in several machines now, w/o any 
errors. AND: it's damn easy on Linux to create the array, hotadd a new 
disk and so on...

greets, Matthias

-- 
Homer/Apu/Moe:
 You can do it, Otto!
 You can do it, Otto!

Apu: Make this spare, I'll give you free gelato!

Moe: Then go back to my place where I will get you blotto!

Homer: Domo arigato, Mister Roboto!

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


Re: howto software raid under FreeBSD?

2004-10-30 Thread Matthias F. Brandstetter
-- quoting Emanuel Strobl --
 Why not, but you also have gmirror and ataraid, the former only on 5.3.
 For ataraid you can use 'atacontrol create RAID1 ad4 ad6' for example
 For gmirror you can use 'gmirror label -v -b split -s 2048 mrr ad4 ad6'
 And you mentioned vinum and ccd already.

why: because ccd seems not very good when it comes to replace a disk...
and ad ataraid and gmirror: where do I find docs about them on internet?

greets, Matthias

-- 
Flanders:
 They're not perfect, but the Lord says love they neighbor --

Homer: Shut up, Flanders.

Flanders:
 Okely-dokely-do.

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


Re: howto software raid under FreeBSD?

2004-10-30 Thread Subhro
On Sat, 30 Oct 2004 12:17:05 +0200, Matthias F. Brandstetter
[EMAIL PROTECTED] wrote:
 
 I never ever had any diffuiculties or hatches with software raids on Linux
 systems. 

You got me wrongly. The primary reason why I would make a RAID is
fault tolerance. In case of hardware RAIDs, rebuilding a sick RAID is
without any troubles. On the other hand for software RAIDs its quite a
trouble (atleast I am not confortablw with it, maybe I am biased
towards hardware). Also I guess you didn't notice that I mentioned
about the performance issues too.

Regards
S.

-- 
Subhro Sankha Kar
School of Information Technology
Block AQ-13/1 Sector V
ZIP 700091
India
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: howto software raid under FreeBSD?

2004-10-30 Thread Emanuel Strobl
Am Samstag, 30. Oktober 2004 12:18 schrieb Matthias F. Brandstetter:
 -- quoting Emanuel Strobl --

  Why not, but you also have gmirror and ataraid, the former only on 5.3.
  For ataraid you can use 'atacontrol create RAID1 ad4 ad6' for example
  For gmirror you can use 'gmirror label -v -b split -s 2048 mrr ad4 ad6'
  And you mentioned vinum and ccd already.

 why: because ccd seems not very good when it comes to replace a disk...
 and ad ataraid and gmirror: where do I find docs about them on internet?

Why going outside and searching the internet?
You have a complete operating system, and it's one of the best documented out 
there. Just 'man ata', 'man atacontrol' and 'man gmirror'. Remember that 
FreeBSD isn't just a hacked kernel with lots of stuff arround without any 
sense, it's standardized an documented! ;)

-Harry


 greets, Matthias


pgpx7djwyVDHB.pgp
Description: PGP signature


Re: howto software raid under FreeBSD?

2004-10-30 Thread Emanuel Strobl
Am Samstag, 30. Oktober 2004 23:52 schrieb Emanuel Strobl:
 Am Samstag, 30. Oktober 2004 12:18 schrieb Matthias F. Brandstetter:
  -- quoting Emanuel Strobl --
 
   Why not, but you also have gmirror and ataraid, the former only on 5.3.
   For ataraid you can use 'atacontrol create RAID1 ad4 ad6' for example
   For gmirror you can use 'gmirror label -v -b split -s 2048 mrr ad4 ad6'
   And you mentioned vinum and ccd already.
 
  why: because ccd seems not very good when it comes to replace a disk...
  and ad ataraid and gmirror: where do I find docs about them on internet?

 Why going outside and searching the internet?
 You have a complete operating system, and it's one of the best documented
 out there. Just 'man ata', 'man atacontrol' and 'man gmirror'. Remember
 that FreeBSD isn't just a hacked kernel with lots of stuff arround without
 any sense, it's standardized an documented! ;)

And I forgot to emphasize that users have a wonderful hadbook at: 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/
Also developer etc. have theri handbook at:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/
Just IBM writes handboocs which can compare ;)


 -Harry

  greets, Matthias


pgpeqngwp8ZMl.pgp
Description: PGP signature


howto software raid under FreeBSD?

2004-10-29 Thread Matthias F. Brandstetter
Hi all,

I want to create a software RAID 1 of two same disks. Coming from Linux I 
am used to the very simple /etc/raidtab files. Now I looked into vinum 
docs in FreeBSD handbook, and it seems somewhat difficult to me.

So my question is: Is vinum the only way to create a software RAID 1 from 
two ATA disks? I've read about ccd, but after reading its man page I do 
not tend to it.

Hope you guys can help me!
Greetings, Matthias

-- 
Hey, if you want wild bears eatin' your children and scarin' your
salmon, that's your business.  But I'm not gonna take it!  Who's with
me?

  -- Homer Simpson
 Much Apu About Nothing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: howto software raid under FreeBSD?

2004-10-29 Thread Emanuel Strobl
Am Freitag, 29. Oktober 2004 23:55 schrieb Matthias F. Brandstetter:
 Hi all,

 I want to create a software RAID 1 of two same disks. Coming from Linux I
 am used to the very simple /etc/raidtab files. Now I looked into vinum
 docs in FreeBSD handbook, and it seems somewhat difficult to me.

 So my question is: Is vinum the only way to create a software RAID 1 from
 two ATA disks? I've read about ccd, but after reading its man page I do
 not tend to it.

Why not, but you also have gmirror and ataraid, the former only on 5.3.
For ataraid you can use 'atacontrol create RAID1 ad4 ad6' for example
For gmirror you can use 'gmirror label -v -b split -s 2048 mrr ad4 ad6'
And you mentioned vinum and ccd already.

-Harry


 Hope you guys can help me!
 Greetings, Matthias


pgpiuoCbLAGAZ.pgp
Description: PGP signature


Re: howto software raid under FreeBSD?

2004-10-29 Thread Subhro
On Fri, 29 Oct 2004 23:55:43 +0200, Matthias F. Brandstetter
[EMAIL PROTECTED] wrote:
 Hi all,
 
 I want to create a software RAID 1 of two same disks. 

Buddy, software RAIDs had always been a pain in the neck. they simply
are not worth it as the kernel is busy babysitting the RAID and other
applications suffer. Also in case of software RAID failures, it is a
nightmare.

Regards
S.

-- 
Subhro Sankha Kar
School of Information Technology
Block AQ-13/1 Sector V
ZIP 700091
India
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: howto put /tmp partition into /md0

2004-10-28 Thread Panagiotis Christias
On Thu, 28 Oct 2004 15:01:44 +1000, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Hi guys,
 Has any tuned their freebsd to put the /tmp partition into the memory disk?
 I have followed the procedures on this url, but no luck to get it working.
 
 http://www.onlamp.com/pub/a/onlamp/excerpt/BSDHacks_chap1/index.html?page=2
 
 Can some one please point me to a detailed article or some other howtos?
 
 ps: please cc me to this email address, because I am not registered in this list.
 
 Thanks.
 
 Regards,
 LEI CHEN

In case you are using FreeBSD 5.3:

# egrep tmp /etc/defaults/rc.conf 
tmpmfs=AUTO   # Set to YES to always create an mfs /tmp, NO to never
tmpsize=20m   # Size of mfs /tmp if created

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


Re: howto put /tmp partition into /md0

2004-10-28 Thread Daniel Bye
On Thu, 28 October, 2004 8:13 am, Panagiotis Christias said:
 On Thu, 28 Oct 2004 15:01:44 +1000, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
 Hi guys, Has any tuned their freebsd to put the /tmp partition into the
 memory disk? I have followed the procedures on this url, but no luck to
 get it working.

 http://www.onlamp.com/pub/a/onlamp/excerpt/BSDHacks_chap1/index.html?pa
 ge=2

 Can some one please point me to a detailed article or some other
 howtos?

 ps: please cc me to this email address, because I am not registered in
 this list.

 Thanks.

 Regards, LEI CHEN

 In case you are using FreeBSD 5.3:

 # egrep tmp /etc/defaults/rc.conf tmpmfs=AUTO   # Set to YES
to
 always create an mfs /tmp, NO to never tmpsize=20m   # Size of
 mfs /tmp if created


Cool - didn't know you could do that!

Lei, the article you cited above is about as detailed as it needs to be. 
It's the very same one I used a while ago to move my /tmp into RAM.  If
it's not working, let us know what happens - no luck to get it working
isn't very useful as a statement of your symptoms!  ;-)

Ideally, tell us what `uname -a' says, and any salient extracts from your
messages log file, any errors/warnings generated if you try to mount the
memory disk manually, etc.

Dan

-- 
Daniel Bye

PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \




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


howto put /tmp partition into /md0

2004-10-27 Thread adslvmlg
Hi guys,
Has any tuned their freebsd to put the /tmp partition into the memory disk?
I have followed the procedures on this url, but no luck to get it working.

http://www.onlamp.com/pub/a/onlamp/excerpt/BSDHacks_chap1/index.html?page=2

Can some one please point me to a detailed article or some other howtos?

ps: please cc me to this email address, because I am not registered in this list.

Thanks.

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


devfs HOWTO... where?

2004-10-22 Thread Bjarne Wichmann Petersen

I'm looking for a guide that describes the magic of devfs, devfs.conf, 
devfs.rules? Devfs is all blackbox to me.

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


Re: devfs HOWTO... where?

2004-10-22 Thread Marc Fonvieille
On Fri, Oct 22, 2004 at 10:57:54AM +0200, Bjarne Wichmann Petersen wrote:
 
 I'm looking for a guide that describes the magic of devfs, devfs.conf, 
 devfs.rules? Devfs is all blackbox to me.


man devfs
is really interesting on this point.

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


Re: HOWTO Ping LAN???

2004-08-20 Thread Hakim Z. Singhji
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello,
Thank you for your replies gentlemen, this post is a bit old, I have
already built my FreeBSD NAT box and configured IPFW...I am currently
building a new kernel configuration for the machine to include IPDIVERT,
IPFIREWALL and a few other system specific modifications.
If I have any questions concerning this issue, I will include you both
(Eric, Rich) in the list. Thanks
Eric Crist wrote:
| SEE BOTTOM
|
|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED] On Behalf Of
|Rich Shinnick
|Sent: Thursday, August 19, 2004 11:46 PM
|To: 'Hakim Singhji'; 'Hakim Z. Singhji'; 'MatthewSeaman'
|Cc: 'Bill Moran'; [EMAIL PROTECTED]
|Subject: RE: HOWTO Ping LAN???
|
|
|Hakim,
|
|What you are trying to do is possible in two ways:
|
|1. SSH to the box, and tunnel to other internal machines
|according to the tunnels you have set up. (See the last email
|I sent). 2. Port forward connections from the Internet thru
|the BSD to internal machines.
|
|Check these links: http://www.rootprompt.net/freebsd_firewall.html
|http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/fire
|walls.html
|
|
|  _
|
|From: Hakim Singhji [mailto:[EMAIL PROTECTED]
|Sent: Thursday, July 29, 2004 10:27 AM
|To: Hakim Z. Singhji; MatthewSeaman
|Cc: Bill Moran; [EMAIL PROTECTED]
|Subject: Re: HOWTO Ping LAN???
|
|
|Hi Matt,
|
|You say that the only way I will be able to connect to my
|network is by tunneling.
|This is not what I want to do, I thought I may be able to
|SSH, Telnet, www, etc.
|from the outside to my default gateway and have the gateway
|pass SSH, Telnet,
|www., or any other request to the machine on the private
|network by including the
|localhost.defaultgateway.domain.org or something to that affect.
|
|Does NAT Overloading only go one way???
|
|Hakim Z. Singhji
|Coordinating Mgr. / Infection Control
|718-245-3923
|[EMAIL PROTECTED]
|
|
|Matthew Seaman [EMAIL PROTECTED]
|
|7/29/2004 5:32:32
|
|AM
|
|
|On Thu, Jul 29, 2004 at 01:40:02AM -0400, Hakim Z. Singhji wrote:
|
|
|Figure 1
|
|***
|* Internet *
|*24.199.1xx.xx*
|***
|~ |
|~ |
|*** **
|* Defaut GW * __ __ *Kids Machine*
|*192.68.0.1 * *192.68.0.3 *
|FreeBSD 4.10 * * Mandrake 10*
|*** **
|~ |
|~ |
|*
|*Wrk Station1*
|*192.68.0.2 *
|*Redhat 9 *
|*
|
|This is a rough diagram of the network... I would like to
|
|ssh, ping,
|
|etc. the machines behind the default gateway directly (without
|tunneling) from the outside the network (at work for
|
|example). Is this
|
|possible and if so how do I config. Keep in mind that my default
|gateway is FreeBSD. I know this may be a complicated project but if
|you could help that would help me greatly. Many thanks to
|
|everyone in
|
|advance.
|
|I'm afraid that's not going to be possible with your current
|network layout. If you want all of your machines to be
|accessible from the Internet, then you'll need routable
|addresses on all of your machines.
|
|I know you've said you don't want to use tunnelling, but
|unfortunately, that's the only way you can access a private
|address space as you have from outside it. A relatively
|simple way of doing that is to ssh into your gateway box, and
|use the '-L' or '-R' portforwarding options to create a
|tunnel to one of the internal machines, and then ssh or
|otherwise connect through that tunnel: see eg.
|
|
| http://www.linux.ie/articles/tutorials/ssh.php
|
| One other point: you're going to have problems if you're using
| 192.168.0.0 as the IP number on your FreeBSD machine. That's the
| *network* address, and shouldn't be applied directly to any specific
| machine. If you're running your internal network using 192.168.0.0/24 as
| the address space, then you have 254 addresses (from 192.168.0.1 to
| 192.168.0.254) to use for client machines, since 192.168.0.0 (network
| address) and 192.168.0.255 (broadcast address) are reserved as part of
| the networking setup.
|
| Cheers,
|
| Matthew
|
| --
| Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
| Savill Way
| PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
| Tel: +44 1628 476614 Bucks., SL7 1TH UK
|
|
| Hello,
|
| There is one real solution to this here.
|
| You could setup a DMZ to your Default Gateway.  If this is a Linksys
| Broadband Gateway, it's as simple as checking a box and typing in the
| private IP address.  This routes all incoming (non-statefull)
| connections to this host.  Since your IP changes, use a dynamic DNS
| service such as no-ip.org(sp?) or tzo.com.  I've used TZO.com,
| personally, then I just got DSL with a /29 static IP address allocation.
| This should work without issue, unless your DMZ firewall rules prevent
| it.  I would need more information to let you know.
|
| HTH
|
| Eric F Crist
| Best Access Systems
| 11300 Rupp Dr. Burnsville, MN 55337
| Phone: 952.894.3830
| Cell: 612.998.3588
| Fax: 952-894-1990

RE: HOWTO Ping LAN???

2004-08-19 Thread Rich Shinnick
Hakim,
 
What you are trying to do is possible in two ways:
 
1. SSH to the box, and tunnel to other internal machines according to the
tunnels you have set up. (See the last email I sent).
2. Port forward connections from the Internet thru the BSD to internal
machines.
 
Check these links:
http://www.rootprompt.net/freebsd_firewall.html
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls.html 


  _  

From: Hakim Singhji [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 29, 2004 10:27 AM
To: Hakim Z. Singhji; MatthewSeaman
Cc: Bill Moran; [EMAIL PROTECTED]
Subject: Re: HOWTO Ping LAN???


Hi Matt,

You say that the only way I will be able to connect to my network is by
tunneling. 
This is not what I want to do, I thought I may be able to SSH, Telnet, www,
etc. 
from the outside to my default gateway and have the gateway pass SSH,
Telnet, 
www., or any other request to the machine on the private network by
including the 
localhost.defaultgateway.domain.org or something to that affect.

Does NAT Overloading only go one way???

Hakim Z. Singhji
Coordinating Mgr. / Infection Control
718-245-3923
[EMAIL PROTECTED]

 Matthew Seaman [EMAIL PROTECTED] 7/29/2004 5:32:32 AM

On Thu, Jul 29, 2004 at 01:40:02AM -0400, Hakim Z. Singhji wrote:

 Figure 1
 
 ***
 * Internet *
 *24.199.1xx.xx*
 ***
 ~ |
 ~ |
 *** **
 * Defaut GW * __ __ *Kids Machine*
 *192.68.0.1 * *192.68.0.3 *
 FreeBSD 4.10 * * Mandrake 10*
 *** **
 ~ |
 ~ |
 *
 *Wrk Station1*
 *192.68.0.2 *
 *Redhat 9 *
 *
 
 This is a rough diagram of the network... I would like to ssh, ping,
 etc. the machines behind the default gateway directly (without
 tunneling) from the outside the network (at work for example). Is this
 possible and if so how do I config. Keep in mind that my default
 gateway is FreeBSD. I know this may be a complicated project but if you
 could help that would help me greatly. Many thanks to everyone in advance.

I'm afraid that's not going to be possible with your current network
layout. If you want all of your machines to be accessible from the
Internet, then you'll need routable addresses on all of your machines.

I know you've said you don't want to use tunnelling, but
unfortunately, that's the only way you can access a private address
space as you have from outside it. A relatively simple way of doing
that is to ssh into your gateway box, and use the '-L' or '-R'
portforwarding options to create a tunnel to one of the internal
machines, and then ssh or otherwise connect through that tunnel: see
eg.

http://www.linux.ie/articles/tutorials/ssh.php 

One other point: you're going to have problems if you're using
192.168.0.0 as the IP number on your FreeBSD machine. That's the
*network* address, and shouldn't be applied directly to any specific
machine. If you're running your internal network using 192.168.0.0/24
as the address space, then you have 254 addresses (from 192.168.0.1 to
192.168.0.254) to use for client machines, since 192.168.0.0 (network
address) and 192.168.0.255 (broadcast address) are reserved as part of
the networking setup.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614 Bucks., SL7 1TH UK




smime.p7s
Description: S/MIME cryptographic signature


RE: HOWTO Ping LAN???

2004-08-19 Thread Eric Crist
SEE BOTTOM
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
 Rich Shinnick
 Sent: Thursday, August 19, 2004 11:46 PM
 To: 'Hakim Singhji'; 'Hakim Z. Singhji'; 'MatthewSeaman'
 Cc: 'Bill Moran'; [EMAIL PROTECTED]
 Subject: RE: HOWTO Ping LAN???


 Hakim,

 What you are trying to do is possible in two ways:

 1. SSH to the box, and tunnel to other internal machines
 according to the tunnels you have set up. (See the last email
 I sent). 2. Port forward connections from the Internet thru
 the BSD to internal machines.

 Check these links: http://www.rootprompt.net/freebsd_firewall.html
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/fire
 walls.html


   _

 From: Hakim Singhji [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 29, 2004 10:27 AM
 To: Hakim Z. Singhji; MatthewSeaman
 Cc: Bill Moran; [EMAIL PROTECTED]
 Subject: Re: HOWTO Ping LAN???


 Hi Matt,

 You say that the only way I will be able to connect to my
 network is by tunneling.
 This is not what I want to do, I thought I may be able to
 SSH, Telnet, www, etc.
 from the outside to my default gateway and have the gateway
 pass SSH, Telnet,
 www., or any other request to the machine on the private
 network by including the
 localhost.defaultgateway.domain.org or something to that affect.

 Does NAT Overloading only go one way???

 Hakim Z. Singhji
 Coordinating Mgr. / Infection Control
 718-245-3923
 [EMAIL PROTECTED]

  Matthew Seaman [EMAIL PROTECTED]
 7/29/2004 5:32:32
  AM
 
 On Thu, Jul 29, 2004 at 01:40:02AM -0400, Hakim Z. Singhji wrote:

  Figure 1
 
  ***
  * Internet *
  *24.199.1xx.xx*
  ***
  ~ |
  ~ |
  *** **
  * Defaut GW * __ __ *Kids Machine*
  *192.68.0.1 * *192.68.0.3 *
  FreeBSD 4.10 * * Mandrake 10*
  *** **
  ~ |
  ~ |
  *
  *Wrk Station1*
  *192.68.0.2 *
  *Redhat 9 *
  *
 
  This is a rough diagram of the network... I would like to
 ssh, ping,
  etc. the machines behind the default gateway directly (without
  tunneling) from the outside the network (at work for
 example). Is this
  possible and if so how do I config. Keep in mind that my default
  gateway is FreeBSD. I know this may be a complicated project but if
  you could help that would help me greatly. Many thanks to
 everyone in
  advance.

 I'm afraid that's not going to be possible with your current
 network layout. If you want all of your machines to be
 accessible from the Internet, then you'll need routable
 addresses on all of your machines.

 I know you've said you don't want to use tunnelling, but
 unfortunately, that's the only way you can access a private
 address space as you have from outside it. A relatively
 simple way of doing that is to ssh into your gateway box, and
 use the '-L' or '-R' portforwarding options to create a
 tunnel to one of the internal machines, and then ssh or
 otherwise connect through that tunnel: see eg.

http://www.linux.ie/articles/tutorials/ssh.php

One other point: you're going to have problems if you're using
192.168.0.0 as the IP number on your FreeBSD machine. That's the
*network* address, and shouldn't be applied directly to any specific
machine. If you're running your internal network using 192.168.0.0/24 as
the address space, then you have 254 addresses (from 192.168.0.1 to
192.168.0.254) to use for client machines, since 192.168.0.0 (network
address) and 192.168.0.255 (broadcast address) are reserved as part of
the networking setup.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614 Bucks., SL7 1TH UK


Hello,

There is one real solution to this here.

You could setup a DMZ to your Default Gateway.  If this is a Linksys
Broadband Gateway, it's as simple as checking a box and typing in the
private IP address.  This routes all incoming (non-statefull)
connections to this host.  Since your IP changes, use a dynamic DNS
service such as no-ip.org(sp?) or tzo.com.  I've used TZO.com,
personally, then I just got DSL with a /29 static IP address allocation.
This should work without issue, unless your DMZ firewall rules prevent
it.  I would need more information to let you know.

HTH

Eric F Crist
Best Access Systems
11300 Rupp Dr. Burnsville, MN 55337
Phone: 952.894.3830
Cell: 612.998.3588
Fax: 952-894-1990



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


Re: HOWTO Ping LAN???

2004-07-29 Thread Matthew Seaman
On Thu, Jul 29, 2004 at 01:40:02AM -0400, Hakim Z. Singhji wrote:

 Figure 1
 
 ***
 *  Internet   *
 *24.199.1xx.xx*
 ***
 ~   |
 ~   |
 ***   **
 * Defaut GW   * __ __ *Kids Machine*
 *192.68.0.0   *   *192.68.0.3  *
 ~ FreeBSD 4.10 ** Mandrake 10*
 ***   **
 ~   |
 ~   |
 ***
 *Wrk Station 1*
 *192.68.0.1   *
 *Redhat 9 *
 ***
 
 This is a rough diagram of the network... I would like to ssh, ping,
 etc. the machines behind the default gateway directly (without
 tunneling) from the outside the network (at work for example). Is this
 possible and if so how do I config.  Keep in mind that my default
 gateway is FreeBSD.  I know this may be a complicated project but if you
 could help that would help me greatly.  Many thanks to everyone in advance.

I'm afraid that's not going to be possible with your current network
layout.  If you want all of your machines to be accessible from the
Internet, then you'll need routable addresses on all of your machines.

I know you've said you don't want to use tunnelling, but
unfortunately, that's the only way you can access a private address
space as you have from outside it.  A relatively simple way of doing
that is to ssh into your gateway box, and use the '-L' or '-R'
portforwarding options to create a tunnel to one of the internal
machines, and then ssh or otherwise connect through that tunnel: see
eg.

http://www.linux.ie/articles/tutorials/ssh.php

One other point: you're going to have problems if you're using
192.168.0.0 as the IP number on your FreeBSD machine.  That's the
*network* address, and shouldn't be applied directly to any specific
machine.  If you're running your internal network using 192.168.0.0/24
as the address space, then you have 254 addresses (from 192.168.0.1 to
192.168.0.254) to use for client machines, since 192.168.0.0 (network
address) and 192.168.0.255 (broadcast address) are reserved as part of
the networking setup.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgpWWQfQYD8aq.pgp
Description: PGP signature


Re: HOWTO Ping LAN???

2004-07-29 Thread Matthew Seaman
On Thu, Jul 29, 2004 at 10:27:05AM -0400, Hakim Singhji wrote:
 Hi Matt,
 
 You say that the only way I will be able to connect to my network is by tunneling.  
 This is not what I want to do, I thought I may be able to SSH, Telnet, www, etc. 
 from the outside to my default gateway and have the gateway pass SSH, Telnet, 
 www., or any other request to the machine on the private network by including the 
 localhost.defaultgateway.domain.org or something to that affect.
 
 Does NAT Overloading only go one way???


Essentially, yes.  What you're after is called 'port forwarding'
(which is actually a class of tunnelling methods).

What you can't do in the sort of setup you describe is ssh(1) to the
gateway machine and have it connect you to some arbitrary machine on
your internal network.  The outside world doesn't know anything
about the arrangement of your private network: which machine should
the gateway box forward the incoming connection to?  All it sees is a
TCP syn packet sent to port 22 on its internet interface.

Going the other way round -- where the internal machine initiates the
connection -- works because you can match up the response 'ACK' packet
to the outgoing 'SYN' packet

In order to allow remote access to your private machines you've
somehow got to introduce a mechanism to permit the gateway machine to
know which of the internal machines you want to connect to.  You can
set up non-standard ports on the NAT gateway to forward connections to
internal machines: eg.

 Port:  Destination:
 --
 2201   192.168.0.1:22
 2202   192.168.0.2:22
 2203   192.168.0.3:22

(see natd(8) 

but a) you'ld have to do that for each service on each machine you
want connectivity to, and b) it's not going to work in the specific
case of ssh(1) specifically, because ssh(1) attempts to verify the
identity of the host it connects to against the host keys presented to
it during the SSH connection. 

Probably the easiest thing to do is log into your gateway machine via
ssh(1) and then take a second hop from there to your internal
machines.  telnet(1) is generally a bad idea for security
reasons. ping(8) which operates via ICMP echo request is completely
out: ICMP doesn't have the concept of port numbers at all, so there's
no way to clue the NAT gateway into which machine you want to
communicate with.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgpdfHI8Byvo2.pgp
Description: PGP signature


HOWTO Ping LAN???

2004-07-28 Thread Hakim Singhji
Hi All,

Many of you have seen my posts lately, I'm a noobie to FreeBSD.  I'm trying to 
configure a home Windows Free home network complete with default gateway, LAN, 
Wireless 802.11b and several flavors of Linux/BSD.

Its a pretty big project for me and is teaching me ALOT.  However I have a test setup 
and I'm am not able to ping my local machine.  I can only ping my gateway.  My local 
machine is enabled to receive FTP, PING and SSH. In addition the firewall on my 
default gateway is also configured to operate those services.

I don't know where I''ve gone wrong, my default gateway works fine however...I cannot 
find my network from the outside.  What is the problem???  Thanks in advance for all 
your help.

HZS



Hakim Z. Singhji
Coordinating Mgr. / Infection Control
718-245-3923
[EMAIL PROTECTED]


smime.p7s
Description: S/MIME Cryptographic Signature


Re: HOWTO Ping LAN???

2004-07-28 Thread Bill Moran

PLEASE wrap your lines.  I'm not interested in fixing obnoxious email formatting
any more.  See http://www.lemis.com/questions.html

Hakim Singhji [EMAIL PROTECTED] wrote:
 Hi All,
 
 Many of you have seen my posts lately, I'm a noobie to FreeBSD.  I'm trying
 to configure a home Windows Free home network complete with default
 gateway, LAN, Wireless 802.11b and several flavors of Linux/BSD.
 
 Its a pretty big project for me and is teaching me ALOT.  However I have a
 test setup and I'm am not able to ping my local machine.  I can only ping
 my gateway.  My local machine is enabled to receive FTP, PING and SSH. In
 addition the firewall on my default gateway is also configured to operate
 those services.
 
 I don't know where I''ve gone wrong, my default gateway works fine
 however...I cannot find my network from the outside.  What is the problem???
  Thanks in advance for all your help.

Do you have _real_ IPs?  Most people only get one real IP from their ISP, and
then use private IPs (such as 192.168.0.x or 10.0.0.x) for the rest of their
machines.  If you're doing such, you'll either need exciting nat rules on
the gateway, or some other workaround.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HOWTO Ping LAN???

2004-07-28 Thread Hakim Z. Singhji
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi Bill,
| Do you have _real_ IPs?
I have one IP only...
|Most people only get one real IP from their ISP, and
|then use private IPs (such as 192.168.0.x or 10.0.0.x) for the rest
|of their machines.
Yes, I have a similar setup for my private network...
|If you're doing such, you'll either need exciting nat rules on
| the gateway, or some other workaround.
Yes this is where I need assistance, I have read quite a bit on NAT
however it seems that I am missing something???
With that said, I'll get back to business. I was thinking that NAT would
resolve my issue, however only one way. What if I am outside my
home-network and I want to SSH one of the machines behind the default
gateway. At present it is not possible and I don't know how to make this
possible.
Figure 1
***
*  Internet   *
*24.199.1xx.xx*
***
~   |
~   |
***   **
* Defaut GW   * __ __ *Kids Machine*
*192.68.0.0   *   *192.68.0.3  *
~ FreeBSD 4.10 *  * Mandrake 10*
***   **
~   |
~   |
***
*Wrk Station 1*
*192.68.0.1   *
*Redhat 9 *
***
This is a rough diagram of the network... I would like to ssh, ping,
etc. the machines behind the default gateway directly (without
tunneling) from the outside the network (at work for example). Is this
possible and if so how do I config.  Keep in mind that my default
gateway is FreeBSD.  I know this may be a complicated project but if you
could help that would help me greatly.  Many thanks to everyone in advance.
HZS
Bill Moran wrote:
| PLEASE wrap your lines.  I'm not interested in fixing obnoxious email
formatting
| any more.  See http://www.lemis.com/questions.html
|
| Hakim Singhji [EMAIL PROTECTED] wrote:
|
|Hi All,
|
|Many of you have seen my posts lately, I'm a noobie to FreeBSD.  I'm
trying
|to configure a home Windows Free home network complete with default
|gateway, LAN, Wireless 802.11b and several flavors of Linux/BSD.
|
|Its a pretty big project for me and is teaching me ALOT.  However I have a
|test setup and I'm am not able to ping my local machine.  I can only ping
|my gateway.  My local machine is enabled to receive FTP, PING and SSH. In
|addition the firewall on my default gateway is also configured to operate
|those services.
|
|I don't know where I''ve gone wrong, my default gateway works fine
|however...I cannot find my network from the outside.  What is the
problem???
| Thanks in advance for all your help.
|
|
| Do you have _real_ IPs?  Most people only get one real IP from their
ISP, and
| then use private IPs (such as 192.168.0.x or 10.0.0.x) for the rest
of their
| machines.  If you're doing such, you'll either need exciting nat rules on
| the gateway, or some other workaround.
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFBCI2xNF6tCt5tOyIRAuioAJwIqSmh060ZCg4j2AB1qyFzbE4/+gCfRwtI
1HdZdh/+e9KVTjaP8tVoZ7s=
=ZVbx
-END PGP SIGNATURE-
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: howto setup zope.sh (zope-2.7) ?

2004-06-06 Thread Khairil Yusof
On Sat, 2004-06-05 at 19:05 +0200, Peter Ulrich Kruppa wrote:

 Could someone help me with this? Perhaps I am messing up the 
 syntax somehow?
 
 My instancehome dir is /usr/local/etc/zope .

zope_enable=YES
zope_instances=/usr/local/etc/zope

Also make sure that you have copied zope.conf.sample to zope.conf and
modified it accordingly to point to your instance directory. If you have
any problems, see the last entry in your event.log in your the log
directory of your Zope instance.





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


howto setup zope.sh (zope-2.7) ?

2004-06-05 Thread Peter Ulrich Kruppa
Hi!
I am trying to get zope-2.7 running.
So far I get it started manually by
# zopectl start
and can view the management screen in my browser.
Of course this should be done on boot-up via 
/local/etc/rc.d/zope.sh , but I can't work out howto.
As far, as I understand this script, all I have to do is to 
create a file /etc/rc.conf.local containing 2 variables
zope_enable= ...
zope_instance= ...

Could someone help me with this? Perhaps I am messing up the 
syntax somehow?

My instancehome dir is /usr/local/etc/zope .
Thanks,
Uli.
+---+
|Peter Ulrich Kruppa|
| Wuppertal |
|  Germany  |
+---+
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Howto set sysinstall to use CURRENT packages

2004-05-19 Thread Matthew Seaman
On Tue, May 18, 2004 at 01:55:54PM -0700, Dinesh Nadarajah wrote:

 How do I set sysinstall to use current packages? In the config menu I
 changed 5.2.1-RELEASE to 5.2.1-CURRENT and several other values but
 would not recognize. Complains no such distribution is available on
 ftp.freebsd.org.

There's no such package collection I'm afraid.  Mostly because there's
no such thing as '5.2.1-CURRENT'.  There is 5-CURRENT, but that is the
bleeding edge absolute latest development version of the OS, and as
it's of no conceivable use except to system developers it doesn't have
a package collection compiled for it. (OTOH, as you can probably use
the packages for a similar OS version, the FTP sites do have a
'packages-5-current' sym-link to the packages-5.2-release directory).

However, the packages for 5.2.1-RELEASE (or 4.10-RELEASE due any time
now...) are updated at reasonably frequent intervals.  Check the
'Latest' directory on the FTP sites -- eg:

ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5.2-release/Latest
 also, where is the config file for sysinstall? Where can I set its
 package repository, etc?

Sysinstall(8) doesn't really have a config file in the way you mean.
Sysinstall is designed for /installing the system/ (the clue is in the
name) not as a general systems administration interface (although you
can do some stuff with it along those lines).  So the config file that
sysinstall does have is more aimed at doing automated installion.
There isn't a file that sysinstall will automatically check -- if you
want to load a config file you have to either do it via the sysinstall
Menu system, by setting 'LOAD_CONFIG_FILE' in the environment before
you start sysinstall or by telling sysinstall the filename on the
command line.

Instead of sysinstall, try using the pkg_add(1) command -- the man
page will tell you everything you need to know about how to use it.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgpUvmbqrVKGT.pgp
Description: PGP signature


Howto set sysinstall to use CURRENT packages

2004-05-18 Thread Dinesh Nadarajah
Hi:

How do I set sysinstall to use current packages? In the config menu I
changed 5.2.1-RELEASE to 5.2.1-CURRENT and several other values but
would not recognize. Complains no such distribution is available on
ftp.freebsd.org.

also, where is the config file for sysinstall? Where can I set its
package repository, etc?

Thanks in advance.

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


Re: Voice Recording HowTo???

2004-05-11 Thread parahat melayev
you can find my experience here

http://parahat.blogspot.com/


On Mon, 10 May 2004 13:59:29 +0200 (CEST), Peter Ulrich Kruppa wrote
 Hi!
 
 Could someone please give me a hint where I can find
 docs/information about setting up a microphone and how to do some
 simple recording with it?
 Though I know there are some tools and apps for this in the
 ports, I need to find out first, what kind of devices have to be
 configured, if my sound card is supported, and so on.
 
 Thanks a lot,
 
 Uli.
 
   +---+
   |Peter Ulrich Kruppa|
 | Wuppertal |
 |  Germany  |
 +---+
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

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


Re: Voice Recording HowTo???

2004-05-11 Thread Peter Ulrich Kruppa
On Tue, 11 May 2004, parahat melayev wrote:

 you can find my experience here

 http://parahat.blogspot.com/
Arrrgh ... sorry:

So one has to open mic _and_ rec (I never thought about the
latter).

Thanks very much!

Uli.


+---+
|Peter Ulrich Kruppa|
| Wuppertal |
|  Germany  |
+---+
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Voice Recording HowTo???

2004-05-10 Thread Peter Ulrich Kruppa
Hi!

Could someone please give me a hint where I can find
docs/information about setting up a microphone and how to do some
simple recording with it?
Though I know there are some tools and apps for this in the
ports, I need to find out first, what kind of devices have to be
configured, if my sound card is supported, and so on.

Thanks a lot,

Uli.


+---+
|Peter Ulrich Kruppa|
| Wuppertal |
|  Germany  |
+---+
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


USB mouse config, console X, micro HOWTO

2004-04-08 Thread sd
I thought I would post the end results of my own struggle to get my 
USB trackball working as I prefer it to work, for the archives and 
for the benefit of anyone else struggling with this issue, 
although my particular configuration may be more, or less, 
relevant to someone else's hardware and preferences.

Hardware

USB trackball with left button, right button, and two small scroll 
buttons (one for up and one for down). It is a Logitech 
Marble Mouse USB (an optical trackball), and I really like the 
feel of it.

What I wanted the mouse to do
-
It has only two primary buttons (buttons 1 (left) and 3 (right) and 
no middle button (button 2)), so I wanted to enable middle-button 
emulation so that when I pressed the left and right buttons 
simultaneously, it would be as though I had pressed a middle 
button (to do a paste function, for example).

In addition, I wanted to use the mouse, somehow, to scroll the 
contents of windows when I was in the X environment (I use KDE).

How I achieved my goals
---
Here are the relevant exerpts from my /etc/rc.conf and /usr/X11R6/
lib/X11/XF86Config  files --

--- begin excerpt, /etc/rc.conf ---
moused_enable=YES
moused_port=/dev/ums0
moused_type=auto
moused_flags=-p /dev/ums0 -3 -w4
--- end excerpt, /etc/rc.conf ---

--- begin excerpt, /usr/X11R6/lib/X11/XF86Config ---
Section InputDevice
Identifier  Mouse0
Driver  mouse
Option  Protocol auto
Option  Device /dev/sysmouse
#   Option  Emulate3Buttons
#   Option  Emulate3Timeout 50
#   Option  Buttons 5
Option  ZAxisMapping 4 5
EndSection
--- end excerpt, /usr/X11R6/lib/X11/XF86Config ---

Commentary
--
In /etc/rc.conf I have the mouse port specified twice, using both 
'moused_port=/dev/ums0' and the '-p /dev/ums0' option of moused, 
the mouse daemon. For some reason I don't understand, I had to 
have both of those, in order for the mouse to work as I wanted it 
to in the console as well as in X.

In a console, the left button of my trackball selects a starting 
point (which can be extended by dragging), the right button when 
clicked defines the end of a selection, and pressing both buttons 
at once pastes the selection into the text entry area. The two 
scroll buttons don't do anything in the console.

In X (in KDE, in my case), the left and right buttons each act as 
they are configured to do, pressing both simultaneously pastes a 
selection, and pressing the small left scroll button (which is 
button 4 of 5, the 2nd button being the virtual middle button 
accessed by pressing both buttons 1 and 3)--anyway, pressing the 
small left scroll button and then moving the mouse (the trackball 
in my case) up or down while the left-scroll button is kept 
depressed, causes the contents of a window to scroll up or down.

This behavior is achieved by setting options to moused in /etc/
rc.conf. Notice that in the XF86Config file the options for 
emulating 3 buttons are commented out--are not active. The 
important options in XF86Config are the Protocol auto, 
Device /dev/sysmouse, and ZAxisMapping 4 5

The ZAxisMapping option was necessary in my XF86Config, even 
though I specified in /etc/rc.conf that the moused was to report 
Z-axis movement whenever it received Y-axis movement of the mouse 
or trackball, by using the -w4 (wheel mode) option for moused in
/etc/rc.conf. The -w option with the 4 argument (specified either 
as -w4 or -w 4) tells the mouse daemon to substitute Z-axis 
movement for Y-axis movement whenever the 4th button is pressed 
and held down while the mouse is moved. This has no effect in the 
console (that I can see, other than appearing to freeze the 
mouse cursor while the 4th button is depressed), but in X it 
causes the contents of a window to scroll, IF the XF86Config file 
is also edited to have the line:

Option  ZAxisMapping 4 5

as indicated above.

The -3 option for moused in /etc/rc.conf is what causes 3-button 
emulation to occur, which means that the moused reports that (a 
nonexistent) button 2 has been pressed whenever buttons 1 and 3 
are pressed simultaneously. Because X gets this information from 
moused, it does not need to do the 3-button emulation itself, 
which is why those options are commented out in my XF86Config 
file.


Best wishes,
Steve D, NM US

-- 

Any fool can make a rule, and any fool will mind it.
-Henry David Thoreau


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


howto

2004-04-07 Thread Jerry Hatok
Hello,

   I am trying to copy files from a cd I have into my usr directory.  The cd has one 
directory with a lot of subdirectories and files.  Is there a command that I can copy 
everything at once? If so what is it?  If not what would you suggest being the fastest 
way to copy everything?

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


Re: howto

2004-04-07 Thread Konrad Heuer

On Wed, 7 Apr 2004, Jerry Hatok wrote:

 Hello,

I am trying to copy files from a cd I have into my usr directory.
 The cd has one directory with a lot of subdirectories and files.  Is
 there a command that I can copy everything at once? If so what is it?
 If not what would you suggest being the fastest way to copy everything?

cd /to/target/directory
tar cCf /cdrom - . | tar xvpf -

Regards
Konrad Heuer

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


Re: howto

2004-04-07 Thread Matthew Seaman
On Wed, Apr 07, 2004 at 04:06:18AM -0400, Jerry Hatok wrote:

I am trying to copy files from a cd I have into my usr directory.  The cd has one 
 directory with a lot of subdirectories and files.  Is there a command that I can 
 copy everything at once? If so what is it?  If not what would you suggest being the 
 fastest way to copy everything?

There's many, many ways of doing this sort of thing under Unix.
Assuming that your CD Rom is mounted under /cdrom and you want to copy
everything onto /home/jerry/cdimage then:

% cd /cdrom
% mkdir /home/jerry/cdimage
% tar -cvf - . | ( cd /home/jerry/cdimage ; tar -xvpf - )

However there are any number of commands you could substitute for that
3rd line:

% find . -depth -print | cpio -pdmu /home/jerry/cdimage

or, if you're installed the net/rsync port:

% rsync -avx --delete /cdrom/ /home/jerry/cdimage/

That last one is particularly good if you've already got a partial
copy in the destination directory, as it will avoid copying stuff it
doesn't need to, and it will remove stuff under the destination not
present in the source.

None of these will be particularly faster than any of the others if
you're copying from scratch -- the limiting factor should be the IO
bandwidth of your hardware.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: howto

2004-04-07 Thread Clint Gilders
Matthew Seaman wrote:
On Wed, Apr 07, 2004 at 04:06:18AM -0400, Jerry Hatok wrote:


  I am trying to copy files from a cd I have into my usr directory.  The cd has one directory with a lot of subdirectories and files.  Is there a command that I can copy everything at once? If so what is it?  If not what would you suggest being the fastest way to copy everything?


There's many, many ways of doing this sort of thing under Unix.
Assuming that your CD Rom is mounted under /cdrom and you want to copy
everything onto /home/jerry/cdimage then:
% cd /cdrom
% mkdir /home/jerry/cdimage
% tar -cvf - . | ( cd /home/jerry/cdimage ; tar -xvpf - )
However there are any number of commands you could substitute for that
3rd line:
% find . -depth -print | cpio -pdmu /home/jerry/cdimage

or, if you're installed the net/rsync port:

% rsync -avx --delete /cdrom/ /home/jerry/cdimage/
Are these not a little bit of overkill?  Seems to me (in this case) it 
could be as simple as:

cp -Rp /cdrom/ /home/jerry/

--
Clint Gilders [EMAIL PROTECTED]
Director of Technology Services
OnlineHobbyist.com, Inc.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: howto

2004-04-07 Thread Matthew Seaman
On Wed, Apr 07, 2004 at 09:13:19AM -0400, Clint Gilders wrote:
 Matthew Seaman wrote:
 On Wed, Apr 07, 2004 at 04:06:18AM -0400, Jerry Hatok wrote:

   I am trying to copy files from a cd I have into my usr directory.  The 
   cd has one directory with a lot of subdirectories and files.  Is there 
   a command that I can copy everything at once? If so what is it?  If not 
   what would you suggest being the fastest way to copy everything?

 There's many, many ways of doing this sort of thing under Unix.
 Assuming that your CD Rom is mounted under /cdrom and you want to copy
 everything onto /home/jerry/cdimage then:
 
 % cd /cdrom
 % mkdir /home/jerry/cdimage
 % tar -cvf - . | ( cd /home/jerry/cdimage ; tar -xvpf - )
 
 However there are any number of commands you could substitute for that
 3rd line:
 
 % find . -depth -print | cpio -pdmu /home/jerry/cdimage
 
 or, if you're installed the net/rsync port:
 
 % rsync -avx --delete /cdrom/ /home/jerry/cdimage/
 
 Are these not a little bit of overkill?  Seems to me (in this case) it 
 could be as simple as:
 
 cp -Rp /cdrom/ /home/jerry/

Like I said: TIMTOWTDI.  However, I tend not to think of cp(1) in the
first instance because historically it tended to do nasty things, like
turn sym-links into real files.  Of course, the cp(1) in the system
today is much better behaved than that, and your suggestion certainly
does have merit.

There is still this caveat in the cp(1) man page:

   Note that cp copies hard linked files as separate files.  If you
   need to preserve hard links, consider using tar(1), cpio(1), or
   pax(1) instead.

but that is unlikely to be anything that affects the OP -- I'm not
even sure if the iso9660 filesystem on CD Roms even supports hard
links.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: howto mount logical fat32 partition? (Invalid argument error...)

2004-03-30 Thread Shantanoo
+++ Tamas ZADORI [freebsd] [30-03-04 00:24 +0200]:
| Hi!
| 
| After browsing and googleing a lot I have no other idea how to mount my
| logical partition. I'm using RELEASE-5.2.1 with a freshly compiled
| kernel (yes, with msdosfs included).
| 
| The output of fdisk is here:
| 
| #fdisk ad0
| *** Working on device /dev/ad0 ***
| parameters extracted from in-core disklabel are:
| cylinders=116301 heads=16 sectors/track=63 (1008 blks/cyl)
| 
| Figures below won't work with BIOS for partitions not in cyl 1
| parameters to be used for BIOS calculations are:
| cylinders=116301 heads=16 sectors/track=63 (1008 blks/cyl)
| 
| Media sector size is 512
| Warning: BIOS sector numbering starts with sector 1
| Information from DOS bootblock is:
| The data for partition 1 is:
| sysid 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX)
| start 63, size 16386237 (8001 Meg), flag 80 (active)
|   beg: cyl 0/ head 1/ sector 1;
|   end: cyl 1019/ head 254/ sector 63
| The data for partition 2 is:
| sysid 15 (0x0f),(Extended DOS (LBA))
| start 16386300, size 100840005 (49238 Meg), flag 0
|   beg: cyl 1020/ head 0/ sector 1;
|   end: cyl 1023/ head 254/ sector 63
| 
| # file -s /dev/ad0s5
| /dev/ad0s5: x86 boot sector, extended partition table
| 
| After I try to mount it brings up the following error:
| 
| [EMAIL PROTECTED]:~# mount -t msdos /dev/ad0s5 /mnt
| msdosfs: /dev/ad0s5: Invalid argument
| [EMAIL PROTECTED]:~# mount -t msdosfs /dev/ad0s5 /mnt
| msdosfs: /dev/ad0s5: Invalid argument
| [EMAIL PROTECTED]:~# mount_msdosfs /dev/ad0s5 /mnt
| mount_msdosfs: /dev/ad0s5: Invalid argument
| 
| Is there a workaround for this? As I mentioned I found nothing on the
| web that could help me.
| 
| Thanks,
| Thomas
| 
| ps: I'm not on the list, please cc it to me as well.

try 'scandisk' through windows and then try re-mounting.
This type of prob. is faced when you have Win2k and FBSD dual booted.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


howto mount logical fat32 partition? (Invalid argument error...)

2004-03-29 Thread Tamas ZADORI
Hi!

After browsing and googleing a lot I have no other idea how to mount my
logical partition. I'm using RELEASE-5.2.1 with a freshly compiled
kernel (yes, with msdosfs included).

The output of fdisk is here:

#fdisk ad0
*** Working on device /dev/ad0 ***
parameters extracted from in-core disklabel are:
cylinders=116301 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=116301 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX)
start 63, size 16386237 (8001 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1019/ head 254/ sector 63
The data for partition 2 is:
sysid 15 (0x0f),(Extended DOS (LBA))
start 16386300, size 100840005 (49238 Meg), flag 0
beg: cyl 1020/ head 0/ sector 1;
end: cyl 1023/ head 254/ sector 63

# file -s /dev/ad0s5
/dev/ad0s5: x86 boot sector, extended partition table

After I try to mount it brings up the following error:

[EMAIL PROTECTED]:~# mount -t msdos /dev/ad0s5 /mnt
msdosfs: /dev/ad0s5: Invalid argument
[EMAIL PROTECTED]:~# mount -t msdosfs /dev/ad0s5 /mnt
msdosfs: /dev/ad0s5: Invalid argument
[EMAIL PROTECTED]:~# mount_msdosfs /dev/ad0s5 /mnt
mount_msdosfs: /dev/ad0s5: Invalid argument

Is there a workaround for this? As I mentioned I found nothing on the
web that could help me.

Thanks,
Thomas

ps: I'm not on the list, please cc it to me as well.

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


howto serve vnc ipv4

2004-03-14 Thread mario
on freebsd 4.9 kde 3.2 or less for that matter i only get desktop
sharing (vnc:5[98]00) on ipv6 does anyone now how to get this to
work on ipv4

thanx

mario;

- - - - - - - -   House Of Sites   - - - - - - - -
Web Design :: Programming :: Hosting :: Maintenance

Web site: http://www.HouseOfSites.net
Email: [EMAIL PROTECTED]
Tel: 415-242-3376


Do you schmut!?
http://www.schmut.com
http://blog.schmut.com



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


RE: Howto for

2004-03-10 Thread Remko Lodder
Hi,

Try searchin google,

mgetty+sendfax howto gave some hits (3700)
Perhaps there is something usefull for you between those.

Have a look

Cheers :)

--

Kind regards,

Remko Lodder
Elvandar.org/DSINet.org
www.mostly-harmless.nl Dutch community for helping newcomers on the
hackerscene

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Stephen Liu
Verzonden: woensdag 10 maart 2004 18:01
Aan: [EMAIL PROTECTED]
Onderwerp: Howto for


Hi folks,

Where can I find a Howto for mgetty+sendfax other than follow;

http://www.leo.org/~doering/mgetty/mgetty_toc.html

TIA

B.R.
Stephen Liu

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

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


Howto for

2004-03-09 Thread Stephen Liu
Hi folks,

Where can I find a Howto for mgetty+sendfax other than follow;

http://www.leo.org/~doering/mgetty/mgetty_toc.html

TIA

B.R.
Stephen Liu

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


Kdevelop3 port HOWTO?

2004-02-18 Thread J. Seth Henry
Guys,
I would like to help out the kdevelop project by building and testing releases 
on my system. However, as it comes from the project, the source won't 
configure OR (if I managed to dink with the configure script enough to get it 
to complete) compile on my system. This includes the released 3.0.0 version, 
which works in the port tree, so clearly something was done in the ports tree 
to make it build on FreeBSD.

Can anyone tell me what? I'd like to test out a patch in the 3.0.1 version and 
verify that the bug was fixed. Alternately, does anyone know when 3.0.1 is 
going to be included in the ports tree for cvs?

BTW- I submitted a more detailed question to [EMAIL PROTECTED], but haven't 
gotten a reply.

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


Howto umount a cdrom as non-root?

2004-02-06 Thread Edd Barrett
I have used vfs.usermount=1 to allow users to mount the cdrom in a dir in
thier home dir. What is the most proper and secure method of doing so. If
possible without the use of sudo or chmod +s.

Thanks
vext01

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


Re: Howto umount a cdrom as non-root?

2004-02-06 Thread Lowell Gilbert
Edd Barrett [EMAIL PROTECTED] writes:

 I have used vfs.usermount=1 to allow users to mount the cdrom in a dir in
 thier home dir. What is the most proper and secure method of doing so. If
 possible without the use of sudo or chmod +s.

If the users can mount the disk, they should be able to umount it as
well.  [I just checked; it works for me, on both -STABLE and
-CURRENT.]  This is not occurring on your system?  What version?  What
*does* happen when the user tries the umount?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


<    1   2   3   4   5   6   7   >