Re: Turn off server when shutdown

2007-07-10 Thread Ivan Carey

Ivan Carey wrote:

Erik Trulsson wrote:

On Tue, Jul 10, 2007 at 03:01:44PM +1000, Ivan Carey wrote:
 

Hello,
I am using FreeBSD 6.2 Release
When I run shutdown on my server it stays on and says:
The operating system has halted
Please press any key to reboot

Is it possible to have the server turn off?




Yes, assuming the hardware supports it (which most modern hardware 
does.)

Just use 'shutdown -p' instead of plain 'shutdown'.





  
Is this function available via kdm also I am using an apc ups and 
running apcupsd do you know of a setting here?


Thanks,
Ivan


Thanks to everyone, I have changed the kdm login manager to have 
/sbin/halt -p upon shutdown and modified the apcupsd apccontrol script 
to have the -p now option.


All is working as I would like.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


make package-recursive

2007-07-10 Thread Nejc Škoberne

Hello,

I would like to create a custom set of packages, so that they will
be installable to my other FreeBSD boxen.

As I understand, I have to use 'make package-recursive', but I have
some problems with it:

1. Is there a way to tell 'make package-recursive' not to _install_
   package, but only build it? It is annonying and time-consuming
   to deinstall every package after it is installed.
2. To refer to the previous point: I need to deinstall the packages
   which I 'make package-recursive'-ed before, or else some other
   package which also depends on a port which is already installed
   will not include that (already installed) package. How to change
   this behaviour? I would like that the packages, which I create
   via 'make package-recursive', _always_ include _all_ other
   dependent packages.

Thanks for your help.

P.S.: Do you guys have any scripts for building a customized package
set?

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


unusual off topic question

2007-07-10 Thread RJ45



Hello,
I would like to ask to some of you gurus... if you know
some good virtual server service at a low prize.
I know that there are such services around where you can install your own
machine virtualized or real, and manage it remotely and  you have controlo
also on power on and power off switch.
Anyone of you can suggest me a good provider for this service ?
thanks

Rick

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


gdvrecv produces very BIG FILES

2007-07-10 Thread Dino Vliet
Dear all,
   
  I managed to connect my new canon mini dv camera to my firewire port on my 
freebsd amd64 machine and used gdvrecv to transfer the first 2 minutes of my 
first recording (did I mention I really like FreeBSD and I'm so glad it's 
possible t do this first step:-)
   
  However, this 2 minutes recording produced a dv file of +/512MB in size. I 
have a 60 minute casette so in theorie I would get a 15GB dv file? Right? Is 
that normal, to have this big sized files as a result?
   
   
  ps Unfortunately Kino didn't compile sucessfully on my FreeBSD box, so I had 
to revert to my Linux partition and process the file there (I already asked the 
port maintainer of Kino what I could do to get it working on my amd64 system_
   
   

   
-
Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: gdvrecv produces very BIG FILES

2007-07-10 Thread Jonathan Chen
On Tue, Jul 10, 2007 at 02:26:30AM -0700, Dino Vliet wrote:

   However, this 2 minutes recording produced a dv file of +/512MB in size. I 
 have a 60 minute casette so in theorie I would get a 15GB dv file? Right? Is 
 that normal, to have this big sized files as a result?

Yup. The raw DV dump from a camera produces humongous amounts of data.
-- 
Jonathan Chen [EMAIL PROTECTED]
--
  You can get farther with a kind word and a gun
  than you can with a kind word alone - Al Capone
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: make package-recursive

2007-07-10 Thread Manolis Kiagias

Nejc Škoberne wrote:

Hello,

I would like to create a custom set of packages, so that they will
be installable to my other FreeBSD boxen.

As I understand, I have to use 'make package-recursive', but I have
some problems with it:

1. Is there a way to tell 'make package-recursive' not to _install_
   package, but only build it? It is annonying and time-consuming
   to deinstall every package after it is installed.
2. To refer to the previous point: I need to deinstall the packages
   which I 'make package-recursive'-ed before, or else some other
   package which also depends on a port which is already installed
   will not include that (already installed) package. How to change
   this behaviour? I would like that the packages, which I create
   via 'make package-recursive', _always_ include _all_ other
   dependent packages.

Thanks for your help.

P.S.: Do you guys have any scripts for building a customized package
set?

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



There is another little know way to create packages, assuming you have 
them already installed on the source machine: The pkg_create command. It 
can create installation packages from the already installed ones. Even 
better, it can create all dependency packages as well in one go with the 
-R option. For example, in my test machine I have the xorg 7.2 
installed. I can create packages for the whole system with:


pkg_create -Rb xorg-7.2

You have to get the exact name of the  installed pkg using the pkg_info 
or pkg_version command, i.e. in the above example pkg_info |grep -i xorg
The utility creates the packages in the directory you are currently in. 
I usually do this /usr/ports/packages


I used it last week to create packages for sudo, bash, xorg, xfce, 
portupgrade and others all of which installed without a hitch on my 
other machines. In fact I plan to create custom CDs with latest packages 
to use on my new BSD installations and spare the endless 
download-compile cycle...


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


make package-recursive

2007-07-10 Thread Karel Miklav
1. This is not possible since files may be generated
   or modified on the fly during the installation
   process.

2. Don't know exactly what you mean, but...

   a. you don't have to install under /usr/local
   b. man jail
   c. cat /usr/ports/ports-mgmt/tinderbox/pkg-descr

There are some nice articles about this on the web.

-- 

Regards,
Karel Miklav


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


accessing mysql server remotely

2007-07-10 Thread fbsd
Just a general question about mysql remote access.

Is it possible to login to my remote mysql server and create a 
new db  table using a file on the local system which contains 
the definition statements?

Thanks

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


accessing mysql server remotely

2007-07-10 Thread fbsd2
Just a general question about mysql remote access.

Is it possible to login to my remote mysql server and create a
new db  table using a file on the local system which contains
the definition statements?

Thanks


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


Re: accessing mysql server remotely

2007-07-10 Thread Yuri Pankov
On Mon, Jul 09, 2007 at 11:40:07PM -0400, fbsd2 wrote:
 Just a general question about mysql remote access.
 
 Is it possible to login to my remote mysql server and create a
 new db  table using a file on the local system which contains
 the definition statements?
 
 Thanks
 

Of course, it's possible. It's the same as you would use it locally,
with added hostname parameter:

mysql -h hostname -u username -p dbname  yourfile.sql

(that's basic syntax, check mysql(1) manpage).

HTH,
Yuri


pgpjBOBlWiJmy.pgp
Description: PGP signature


Re: accessing mysql server remotely

2007-07-10 Thread Duane Hill

On Mon, 9 Jul 2007 at 23:33 -0400, [EMAIL PROTECTED] confabulated:


Just a general question about mysql remote access.

Is it possible to login to my remote mysql server and create a
new db  table using a file on the local system which contains
the definition statements?


Sure. As long as the account name used to login to MySQL has login access 
from the remote location.


mysql -host=ip_or_hostname -user=username -password=password dbname  
statements.sql

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


Re: accessing mysql server remotely

2007-07-10 Thread Duane Hill

On Tue, 10 Jul 2007 at 12:01 -, [EMAIL PROTECTED] confabulated:


On Mon, 9 Jul 2007 at 23:33 -0400, [EMAIL PROTECTED] confabulated:


Just a general question about mysql remote access.

Is it possible to login to my remote mysql server and create a
new db  table using a file on the local system which contains
the definition statements?


Sure. As long as the account name used to login to MySQL has login access 
from the remote location.


mysql -host=ip_or_hostname -user=username -password=password dbname  
statements.sql


My bad. The command line parameters should have two hyphens:

mysql --host=ip_or_hostname --user=username --password=password dbname  
statements.sql

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


Re: gdvrecv produces very BIG FILES

2007-07-10 Thread Philipp Ost

Dino Vliet wrote:
  However, this 2 minutes recording produced a dv file of +/512MB in size. 
I have a 60 minute casette so in theorie I would get a 15GB dv file? Right? 

 Is that normal, to have this big sized files as a result?

According to the german Wikipedia  
http://de.wikipedia.org/wiki/Digital_Video#Speicherplatzbedarf_pro_Kassette 
it's normal.



Oh, and please wrap your lines ;-)


Philipp

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


Re: make package-recursive

2007-07-10 Thread Sam Lawrance


On 10/07/2007, at 7:41 PM, Nejc Škoberne wrote:


Hello,

I would like to create a custom set of packages, so that they will
be installable to my other FreeBSD boxen.

As I understand, I have to use 'make package-recursive', but I have
some problems with it:

1. Is there a way to tell 'make package-recursive' not to _install_
   package, but only build it? It is annonying and time-consuming
   to deinstall every package after it is installed.
2. To refer to the previous point: I need to deinstall the packages
   which I 'make package-recursive'-ed before, or else some other
   package which also depends on a port which is already installed
   will not include that (already installed) package. How to change
   this behaviour? I would like that the packages, which I create
   via 'make package-recursive', _always_ include _all_ other
   dependent packages.

Thanks for your help.

P.S.: Do you guys have any scripts for building a customized package
set?



You have to install a package in order to build it, since the package  
is built from the installed files.  Some level of transformation and  
rearrangement occurs during the install process, so there's no easy  
way to package without installing.


You can look in to using tinderbox (available from ports) to build  
packages inside a jail.


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


odd HP 1320 printer behaviour...

2007-07-10 Thread William Bulley

I have an HP 1320 (only has USB and parallel support) hooked
to a FreeBSD 6.2-STABLE box using a USB cable.

I have configured /dev/ulpt0 into my /etc/printcap file.

Everything works fine and I am happy with this setup except
for one odd behaviour.  The last page of a multi-page print
job will linger - somewhere - while the green light on the
HP continues to blink -- as if data were being sent to it.

The lpq(1) command reports no entries when run, and then
about a minute or two later, this last page gets printed.

Is there some configuration that I am missing?  Is this an
artifact of the USB protocol?  Is this the way the HP 1320
laser printer operates?  Is this a feature (or bug) of the
USB printer driver /dev/ulpt0 that is not documented?  I've
read the man pages and searched using Google to see if this
is a known problem.  Any suggestions will be gladly accepted.
I can live with this behaviour, but it seems very odd.


Regards,

web...

--
William Bulley Email: [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: odd HP 1320 printer behaviour...

2007-07-10 Thread Nikola Lecic
On Tue, 10 Jul 2007 08:52:57 -0400
William Bulley [EMAIL PROTECTED] wrote:

 I have an HP 1320 (only has USB and parallel support) hooked
 to a FreeBSD 6.2-STABLE box using a USB cable.
 
 I have configured /dev/ulpt0 into my /etc/printcap file.
 
 Everything works fine and I am happy with this setup except
 for one odd behaviour.  The last page of a multi-page print
 job will linger - somewhere - while the green light on the
 HP continues to blink -- as if data were being sent to it.
 
 The lpq(1) command reports no entries when run, and then
 about a minute or two later, this last page gets printed.
 
 Is there some configuration that I am missing?  Is this an
 artifact of the USB protocol?  Is this the way the HP 1320
 laser printer operates?  Is this a feature (or bug) of the
 USB printer driver /dev/ulpt0 that is not documented?  I've
 read the man pages and searched using Google to see if this
 is a known problem.  Any suggestions will be gladly accepted.
 I can live with this behaviour, but it seems very odd.

Hello William,

Do you have any ulpt0 configuration in /etc/rc.local? If the printer
port is interrupt-driven, try polled standard mode, i.e. add

  lptcontrol -p -d /dev/[printer-port]

to your /etc/rc.local. The kind of behaviour you described can occur in
the interrupt mode (including cutting pages, printing them in chunks,
etc.).

Also try to switch the printer to the parallel port; if both can serve
the printer, I'd always use the parallel one.

If this doesn't help, please post here the content of your /etc/printcap
and 'dmesg | grep ulpt0'.

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


Re: Patching with freebsd-update from 6.2-RELEASE-p4 to 6.2-RELEASE-p5

2007-07-10 Thread Stevan Tiefert
Am Montag, den 09.07.2007, 19:16 -0400 schrieb Gerard:
 On July 09, 2007 at 04:59PM Stevan Tiefert wrote:
 
 
  What is going wrong? Why he is not updating?
 
 You should check out these two URL's to get a better idea of what you
 are attempting to do as well as how to accomplish it.
 
 
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cutting-edge.html
 
 
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
 
 

The problem is that in these two chapters of the handbook is not
handling freebsd-update... And if you use freebsd-update you need not
necessarily to do a buildkernel or buildworld.



___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: odd HP 1320 printer behaviour...

2007-07-10 Thread William Bulley
According to Nikola Lecic [EMAIL PROTECTED]:
 
 Do you have any ulpt0 configuration in /etc/rc.local? If the printer
 port is interrupt-driven, try polled standard mode, i.e. add
 
   lptcontrol -p -d /dev/[printer-port]
 
 to your /etc/rc.local. The kind of behaviour you described can occur in
 the interrupt mode (including cutting pages, printing them in chunks,
 etc.).
 
 Also try to switch the printer to the parallel port; if both can serve
 the printer, I'd always use the parallel one.
 
 If this doesn't help, please post here the content of your /etc/printcap
 and 'dmesg | grep ulpt0'.

I have no /etc/rc.local file on this machine.

Correct me if I am wrong, but doesn't lptcontrol(8) deal
with the parallel port printer?  I have USB connected.
Parallel port connection is unfeasible in my situation.

 content of your /etc/printcap:

lp|default|hp|HP|ps|PS|Hewlett Packard LaserJet 1320 PostScript Printer:\
:sh:\
:lp=/dev/ulpt0:\
:sd=/var/spool/lpd/hp:\
:lf=/var/log/lpd-errs:\
:mx#0:

 'dmesg | grep ulpt0':

ulpt0: Hewlett-Packard hp LaserJet 1320 series, rev 1.10/1.00, addr 5, iclass 
7/1
ulpt0: using bi-directional mode
ulpt0: at uhub0 port 2 (addr 5) disconnected
ulpt0: detached
ulpt0: Hewlett-Packard hp LaserJet 1320 series, rev 1.10/1.00, addr 5, iclass 
7/1
ulpt0: using bi-directional mode
ulpt0: at uhub0 port 2 (addr 5) disconnected
ulpt0: detached
ulpt0: Hewlett-Packard hp LaserJet 1320 series, rev 1.10/1.00, addr 5, iclass 
7/1
ulpt0: using bi-directional mode
ulpt0: offline
ulpt0: at uhub0 port 2 (addr 5) disconnected
ulpt0: detached
ulpt0: Hewlett-Packard hp LaserJet 1320 series, rev 1.10/1.00, addr 5, iclass 
7/1
ulpt0: using bi-directional mode

Regards,

web...

--
William Bulley Email: [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: Patching with freebsd-update from 6.2-RELEASE-p4 to 6.2-RELEASE-p5

2007-07-10 Thread Stevan Tiefert
Am Montag, den 09.07.2007, 17:11 -0700 schrieb Jay Chandler:
 Stevan Tiefert wrote:
   
  What is going wrong? Why he is not updating?

 
 Really dumb question-- have you tried rebooting to commit the uname -a 
 display change?
 

Really dumb answer. Yes I did!




___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: accessing mysql server remotely

2007-07-10 Thread Tom Evans
On Tue, 2007-07-10 at 12:15 +, Duane Hill wrote:
 On Tue, 10 Jul 2007 at 12:01 -, [EMAIL PROTECTED] confabulated:
 
  On Mon, 9 Jul 2007 at 23:33 -0400, [EMAIL PROTECTED] confabulated:
 
  Just a general question about mysql remote access.
  
  Is it possible to login to my remote mysql server and create a
  new db  table using a file on the local system which contains
  the definition statements?
 
  Sure. As long as the account name used to login to MySQL has login access 
  from the remote location.
 
  mysql -host=ip_or_hostname -user=username -password=password dbname  
  statements.sql
 
 My bad. The command line parameters should have two hyphens:
 
 mysql --host=ip_or_hostname --user=username --password=password dbname  
 statements.sql
 


Whilst this syntax will work fine, it requires that the mysql server
allow remote logins - well I already have a nice cryptographically
secure way of allowing remote access, it's called SSH:

cat statements.sql |\ 
   ssh -C [EMAIL PROTECTED] 'mysql -uuser -ppass dbname'

The main benefit of this is that my mysql server now only needs to run
on localhost, and so cannot be touched by any external user. For an
interactive mysql prompt, you'd need either to open up mysql, or forward
a port:

ssh -C -L13306:localhost:3306 [EMAIL PROTECTED]
mysql -uuser -ppass -hlocalhost -P13306 dbname


signature.asc
Description: This is a digitally signed message part


Re: Patching with freebsd-update from 6.2-RELEASE-p4 to 6.2-RELEASE-p5

2007-07-10 Thread Stevan Tiefert
Am Montag, den 09.07.2007, 17:37 -0500 schrieb [EMAIL PROTECTED]:
 On 09/07/07, Stevan Tiefert [EMAIL PROTECTED] wrote:
  Hello list,
 
  I wanted to update via freebsd-update from 6.2-RELEASE-p4 to
  6.2-RELEASE-p5. But like you can see my system is after the update still
  p4!
 
  I have saved a script of my doing:
 
  Script started on Mon Jul  9 22:55:13 2007
  vagabund# freebsd-update fetch
  Looking up update.FreeBSD.org mirrors... 1 mirrors found.
  Fetching metadata signature from update1.FreeBSD.org... done.
  Fetching metadata index... done.
  Inspecting system... done.
  Preparing to download files... done.
 
  No updates needed to update system to 6.2-RELEASE-p5.
  vagabund# freebsd-update install
  No updates are available to install.
  Run '/usr/sbin/freebsd-update fetch' first.
  vagabund# uname -a
  FreeBSD vagabund.w33 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4 #0: Thu Apr
  26 17:40:53 UTC 2007
  [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386
  vagabund# exit
  exit
 
  Script done on Mon Jul  9 22:55:45 2007
  $
 
 
  What is going wrong? Why he is not updating?
 
 http://security.freebsd.org/advisories/FreeBSD-SA-07:04.file.asc
 
  -p5 only affects one utility in userland, and not the kernel.
 So the kernel at -p4 is itself ostensibly secure and doesn't
 need to be updated.
 

Thanks. Normally I did everytime a buildworld and buildkernel and the
uname -a was everytime changed. And now I was feared something gone
wrong. Thanks again :-)







___ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: odd HP 1320 printer behaviour...

2007-07-10 Thread Nikola Lecic
On Tue, 10 Jul 2007 09:41:34 -0400
William Bulley [EMAIL PROTECTED] wrote:

 According to Nikola Lecic [EMAIL PROTECTED]:
  
  Do you have any ulpt0 configuration in /etc/rc.local? If the printer
  port is interrupt-driven, try polled standard mode, i.e. add
  
lptcontrol -p -d /dev/[printer-port]
  
  to your /etc/rc.local. The kind of behaviour you described can
  occur in the interrupt mode (including cutting pages, printing them
  in chunks, etc.).
  
  Also try to switch the printer to the parallel port; if both can
  serve the printer, I'd always use the parallel one.
  
  If this doesn't help, please post here the content of
  your /etc/printcap and 'dmesg | grep ulpt0'.
 
 I have no /etc/rc.local file on this machine.
 
 Correct me if I am wrong, but doesn't lptcontrol(8) deal
 with the parallel port printer?  I have USB connected.
 Parallel port connection is unfeasible in my situation.

Yes, of course, sorry; I badly mixed paragraphs of my reply, my answer
was intented to be a recommendation to switch to parallel port and then
to try polled mode.

  content of your /etc/printcap:
 
 lp|default|hp|HP|ps|PS|Hewlett Packard LaserJet 1320 PostScript
 Printer:\ :sh:\
 :lp=/dev/ulpt0:\
 :sd=/var/spool/lpd/hp:\
 :lf=/var/log/lpd-errs:\
 :mx#0:

(Unrelated, do you have any special reason you don't have 'if'
configured?)

  'dmesg | grep ulpt0':
 
 ulpt0: Hewlett-Packard hp LaserJet 1320 series, rev 1.10/1.00, addr
 5, iclass 7/1 ulpt0: using bi-directional mode
 ulpt0: at uhub0 port 2 (addr 5) disconnected
 ulpt0: detached
 ulpt0: Hewlett-Packard hp LaserJet 1320 series, rev 1.10/1.00, addr
 5, iclass 7/1 ulpt0: using bi-directional mode
 ulpt0: at uhub0 port 2 (addr 5) disconnected
 ulpt0: detached
 ulpt0: Hewlett-Packard hp LaserJet 1320 series, rev 1.10/1.00, addr
 5, iclass 7/1 ulpt0: using bi-directional mode
 ulpt0: offline
 ulpt0: at uhub0 port 2 (addr 5) disconnected
 ulpt0: detached
 ulpt0: Hewlett-Packard hp LaserJet 1320 series, rev 1.10/1.00, addr
 5, iclass 7/1 ulpt0: using bi-directional mode

Well, try parallel port if you can; that is the simple way I resolved
many painful printing problems in the past. I'd also try using
print/apsfilter to configure printcap. Then you should surely know if
it's a usb port issue.

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


Re: Patching with freebsd-update from 6.2-RELEASE-p4 to 6.2-RELEASE-p5

2007-07-10 Thread Colin Percival
Stevan Tiefert wrote:
 The problem is that in these two chapters of the handbook is not
 handling freebsd-update... And if you use freebsd-update you need not
 necessarily to do a buildkernel or buildworld.

I've been meaning to write a handbook chapter about FreeBSD Update for
many months, but haven't managed to find time, unfortunately.  Obviously
if someone else wants to write such a chapter, I'd be overjoyed to review
it and help get it committed. :-)

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


(no subject)

2007-07-10 Thread scuba

Hi all,

	I have a server in a host service that stopped this morning. After 
a contact with the service support of them, I got the following answer to 
the problem:


[quote]
REBOOT SERVER

Due to a failed switch replacement FreeBSD did not restore the network 
link. This is a farly common issue with FreeBSD.


I restarted the server and it should be back online shortly.
[end quote]

It's a P4-3GHz, with the following, probably on-board, ether card:
vr0: VIA VT6102 Rhine II 10/100BaseTX port 0xcc00-0xccff mem 
0xfdffe000-0xfdffe0ff irq 23 at device 18.0 on pci0


	Is this a really known problem? Is there anything I can do to 
avoid reboot?

I have some (local) servers with FBSD and never had such problem.

- Marcelo

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


Help! FreeBSD: 88.78 KBps, Linux: 624.95 KBps

2007-07-10 Thread Kyrre Nygård

Hello.

My friend is switching to Linux because FreeBSD is failing on him.

When downloading a file from a FreeBSD box and a Linux box on the same 
network, the FreeBSD box got 88.78 KBps whereas the Linux got 624.95 
Kbps. I have no idea what's wrong, but my man isn't really into good 
information design (e.g. taking something complex and making it easy), 
so his system is a mess. Maybe some of you can help me locate where the 
problem's at?


Thanks guys,
Kyrre

# ifconfig -a
sis0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   options=8VLAN_MTU
   inet6 fe80::20e:a6ff:fe53:d066%sis0 prefixlen 64 scopeid 0x1
   inet 67.143.227.66 netmask 0xfff8 broadcast 67.143.227.71
   inet 67.143.227.67 netmask 0x broadcast 67.143.227.67
   inet 67.143.227.68 netmask 0x broadcast 67.143.227.68
   inet 67.143.227.69 netmask 0x broadcast 67.143.227.69
   inet 67.143.227.70 netmask 0x broadcast 67.143.227.70
   inet 67.143.231.97 netmask 0x broadcast 67.143.231.97
   inet 67.143.231.98 netmask 0x broadcast 67.143.231.98
   inet 67.143.231.99 netmask 0x broadcast 67.143.231.99
   inet 67.143.231.100 netmask 0x broadcast 67.143.231.100
   inet 67.143.231.101 netmask 0x broadcast 67.143.231.101
   inet 67.143.231.102 netmask 0x broadcast 67.143.231.102
   ether 00:0e:a6:53:d0:66
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active
plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
   inet6 ::1 prefixlen 128
   inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
   inet 127.0.0.1 netmask 0xff00
pflog0: flags=141UP,RUNNING,PROMISC mtu 33208

#cat /etc/rc.conf
ifconfig_sis0=inet 67.143.227.66  netmask 255.255.255.248
defaultrouter=67.143.227.65
hostname=his.box.com

ifconfig_sis0_alias0=67.143.227.67  netmask 0x
ifconfig_sis0_alias1=67.143.227.68  netmask 0x
ifconfig_sis0_alias2=67.143.227.69  netmask 0x
ifconfig_sis0_alias3=67.143.227.70  netmask 0x
ifconfig_sis0_alias4=67.143.231.97  netmask 0x
ifconfig_sis0_alias5=67.143.231.98  netmask 0x
ifconfig_sis0_alias6=67.143.231.99  netmask 0x
ifconfig_sis0_alias7=67.143.231.100 netmask 0x
ifconfig_sis0_alias8=67.143.231.101 netmask 0x
ifconfig_sis0_alias9=67.143.231.102 netmask 0x

kern.ipc.maxsockbuf=8388608
net.inet.tcp.sendspace=3217968
net.inet.tcp.recvspace=3217968
net.inet.tcp.rfc1323=1

syslogd_enable=YES
syslogd_flags=-4 -v -v -s -s -l /etc/namedb/var/run/log
stunnel_enable=YES
pf_enable=YES
pflog_enable=YES

sshd_enable=YES
inetd_enable=YES
inetd_flags=-wWl
named_enable=YES
named_program=/usr/local/sbin/named
named_flags=-u bind -c /etc/namedb/named.conf
mysql_enable=YES
apache2_enable=YES
apache2ssl_enable=YES
sendmail_enable=NONE
courier_authdaemond_enable=YES
courier_imap_imapd_enable=YES
courier_imap_imapdssl_enable=YES
courier_imap_imapd_ssl_enable=YES
courier_imap_pop3dssl_enable=YES
courier_imap_pop3d_ssl_enable=YES
sqwebmaild_enable=YES
spamd_enable=YES
spamd_flags=-d -q -v -x -r /var/run/spamd.pid
clamav_clamd_enable=YES
clamav_freshclam_enable=YES
svscan_enable=YES
snmpd_enable=YES
proftpd_enable=YES

usbd_enable=YES

clear_tmp_enable=YES
update_motd=NO

linux_enable=YES

--

# cat /etc/pf.conf
ext_if=sis0   # replace with actual external interface name i.e., dc0
loc_if=lo0# lo0 - local interface 127.0.0.1
table box { 67.143.227.66, 67.143.227.67, 67.143.227.68, 
67.143.227.69, 67.143.227.70 67.143.231.97 67.143.231.98 67.143.231.99 
67.143.231.100 67.143.231.101 67.143.231.102}

table customers { 205.209.177.60 }
table friends { 67.143.227.66, 128.242.160.3, 68.83.182.43, 66.252.8.133 }
table filter { 222.152.0.43, 219.89.75.39, 222.152.3.100, 
222.152.4.82, 65.175.125.87, 59.188.133.195, 59.59.154.71, 
222.245.97.116, 201.141.212.230, 208.53.3.92, 124.163.176.58, 
213.230.128.226, 208.69.32.130, 65.175.125.94, 65.111.17.147, 
216.15.177.196, 72.37.165.0/24, 200.184.163.0/24 }


scrub in all

#smtp forward
rdr inet proto tcp from any to $ext_if port 2525 - 67.143.227.70 port 25

#block in quick on $ext_if from filter
block drop in quick on $ext_if from filter to box

# Filtering: the implicit first two rules are
pass in all
pass out all

# block all incoming packets but allow ssh, pass all outgoing tcp and udp
# connections and keep state, logging blocked packets.
block in log all

# restrict SSH
#pass  in  log on $ext_if proto tcp from { cthhost, customers, 
friends} to $ext_if port 22 keep state

pass  in log on $ext_if proto tcp from any to $ext_if port 22 keep state

# seems to work
pass in quick on $loc_if all
pass out quick on $loc_if all

# Cybercon server monitor
#pass  in  on $ext_if proto {icmp, tcp, udp} from 72.29.23.120 to any 
all keep state


# for FTP
#pass  in  on $ext_if proto tcp from any to 

Re: (no subject)

2007-07-10 Thread Yuri Pankov
On Tue, Jul 10, 2007 at 11:08:43AM -0300, [EMAIL PROTECTED] wrote:
 Hi all,

   I have a server in a host service that stopped this morning. After a 
 contact with the service support of them, I got the following answer to the 
 problem:

 [quote]
 REBOOT SERVER

 Due to a failed switch replacement FreeBSD did not restore the network 
 link. This is a farly common issue with FreeBSD.

 I restarted the server and it should be back online shortly.
 [end quote]

   It's a P4-3GHz, with the following, probably on-board, ether card:
 vr0: VIA VT6102 Rhine II 10/100BaseTX port 0xcc00-0xccff mem 
 0xfdffe000-0xfdffe0ff irq 23 at device 18.0 on pci0

   Is this a really known problem? Is there anything I can do to avoid 
 reboot?
   I have some (local) servers with FBSD and never had such problem.

 - Marcelo


Just a guess - are you using autonegotiation on this NIC? Try to set
media type manually using 'media' and 'mediaopt' ifconfig' flags.


Yuri


pgpSEfdd7ZEHR.pgp
Description: PGP signature


Re: (no subject)

2007-07-10 Thread Tom Marchand

 -- Original message --
From: [EMAIL PROTECTED]
 Hi all,
 
   I have a server in a host service that stopped this morning. After 
 a contact with the service support of them, I got the following answer to 
 the problem:
 
 [quote]
 REBOOT SERVER
 
 Due to a failed switch replacement FreeBSD did not restore the network 
 link. This is a farly common issue with FreeBSD.
 
 I restarted the server and it should be back online shortly.
 [end quote]
 
   It's a P4-3GHz, with the following, probably on-board, ether card:
 vr0: VIA VT6102 Rhine II 10/100BaseTX port 0xcc00-0xccff mem 
 0xfdffe000-0xfdffe0ff irq 23 at device 18.0 on pci0
 
   Is this a really known problem? Is there anything I can do to 
 avoid reboot?
   I have some (local) servers with FBSD and never had such problem.
 
 - Marcelo
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

I've experienced this problem too.  My ISP replaced a switch and my FBSD server 
never regained network connectivity.  I had to logon via the console and reboot.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Installation woes with 6.2 release

2007-07-10 Thread Derek Ragona

At 07:47 PM 7/9/2007, Kurt Buff wrote:

On 7/9/07, Derek Ragona [EMAIL PROTECTED] wrote:


 At 04:20 PM 7/9/2007, Kurt Buff wrote:

On 7/9/07, Derek Ragona [EMAIL PROTECTED] wrote:


  At 03:43 PM 7/9/2007, Kurt Buff wrote:

 I've got a machine with 2GB of RAM, onto which I can install Windows
  XP with no issues.

  However, FreeBSD 6.2 Release is giving me fits on this machine. If any
  of you have insight, I'd surely appreciate you sharing

  The motherboard is an Intel D645 GEBV2. I've tried a couple of
  different disk arrangements, with no success.

  I've installed an IDE WD 180GB drive, which the motherboard BIOS
  detects just fine. When I boot from disk 1 for the FreeBSD install, it
  detects no hard drive.

  I've put in an Addonics ADSA2 PCI SATA card, which sports the SiL
  1352A chipset, but the install blows up when installing to a 74GB
  Seagate drive - the kernel panics and it reboots while copying files
  to disk.

  Has anyone run into these problems? Google hasn't been particularly my
  friend on this one.

  I've tried reading the install docs on the CD, with no particular
  luck, but I could be missing something.
  Clearly you have a disk controller compatibility problem.  I do know the
 Sil chips are terrible, and there is a long history of issues with these
 chips and FreeBSD!

  Can you find a regular IDE drive to plug into that motherboard?

  -Derek
 Plugging an IDE drive into the motherboard is the first thing I did -
 that's the case above where FreeBSD didn't see *any* HD. That's the
 one that really fries my brain, because the motherboard BIOS detects
 it correctly, and XP installs to it just fine.
 Any possibility the IDE master/slave jumper is not set right on that drive?

 On some intel MB's it takes a reboot into setup so that setup see's the
hard drive, then check that it has that hard drive in the boot order.  I
know this seems a bit simple, but just trying to check all possibilities.
I've never seen a problem with a standard IDE drive installation.  After you
had XP on the drive did you reformat the drive to clear it out?

 -Derek


I think I'll go beat my lackey again.

He was supposed to remove the jumper, and didn't do it.

I took it off, and it's installing happily to the IDE drive.

I'm gonna bag the SATA for now.

Thanks for your help,

Kurt


I'm glad I could help.  As an FYI windows ignores a lot of hardware issues 
until it simply can't run anymore, where FreeBSD is much better at error 
checking.  Of course sometimes that can make it frustrating.


If you can get a decent SATA controller you might try adding or switching 
to SATA in the future, but avoid the Sil ones.


-Derek


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


IPW3945 in 6.2

2007-07-10 Thread Tom Grove
What are the chances that IPW3945 will work in 6.2?  Has anyone 
accomplished this?  Also, is it likely that the wpi drivers will be 
ready for 7.0?


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


Re: Help! FreeBSD: 88.78 KBps, Linux: 624.95 KBps

2007-07-10 Thread Abdullah Ibn Hamad Al-Marri

On 7/10/07, Kyrre Nygård [EMAIL PROTECTED] wrote:

Hello.

My friend is switching to Linux because FreeBSD is failing on him.

When downloading a file from a FreeBSD box and a Linux box on the same
network, the FreeBSD box got 88.78 KBps whereas the Linux got 624.95
Kbps. I have no idea what's wrong, but my man isn't really into good
information design (e.g. taking something complex and making it easy),
so his system is a mess. Maybe some of you can help me locate where the
problem's at?

Thanks guys,
Kyrre


Could you please show the uname -a info?

--
Regards,

-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

sshd config config file question

2007-07-10 Thread Huy Ton That

Newbie question,

I've made a change to /etc/ssh/sshd_config

such as #MaxAuthTries 6 to MaxAuthTries 3

afterwards I /etc/rc.d/sshd reload as user root

the change did not propagate? Any ideas? Am I doing this correctly? Also
when I run:

/etc/rc.d/sshd status

I do not get any feedback. Am I editing the correct file?

Thanks

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


Re: odd HP 1320 printer behaviour...

2007-07-10 Thread Warren Block

On Tue, 10 Jul 2007, William Bulley wrote:


I have an HP 1320 (only has USB and parallel support) hooked
to a FreeBSD 6.2-STABLE box using a USB cable.

I have configured /dev/ulpt0 into my /etc/printcap file.

Everything works fine and I am happy with this setup except
for one odd behaviour.  The last page of a multi-page print
job will linger - somewhere - while the green light on the
HP continues to blink -- as if data were being sent to it.


If the print job is plain text, does it end in a formfeed?  If not, the 
printer may wait for one, and eventually timeout and print the page.


Depending on what processing you do to the source file, you may find 
utilities like /usr/ports/print/enscript useful.


-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: cannot log in via console, cannot su(1), only as root

2007-07-10 Thread Michael K. Smith - Adhost
Hello Martinko:

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:owner-freebsd-
 [EMAIL PROTECTED] On Behalf Of martinko
 Sent: Saturday, July 07, 2007 4:36 PM
 To: freebsd-questions@freebsd.org
 Subject: Re: cannot log in via console, cannot su(1), only as root
 
 martinko wrote:
  hello list,
 
  i was updating sw configuration of my old computer and towards the
 end i
  noticed i couldn't log in on local console other than root.  i tried
  remote ssh using public keys which worked but i found out su(1) to
 any
  user except root does not work either.  i've no idea how i could
  possibly manage to break my system like this and unfortunately i
 need
  to fix it by tomorrow.  therefore i would really appreciate your
 prompt
  hints as what to check etc.
 
 
 some more details follow ...
 
 upgrade from 6.0-R to 6.2-R
 everything went ok ..
 i was doing changes in /etc based on my other computer settings
 i was working via ssh(1), therefore i haven't noticed when logging on
 console stopped working.
 
 what works:
 log in via ssh(1) using public/private keys
 log in on local console as root
 su(1) to root
 
 what doesn't work:
 log in via ssh(1) using password
 log in on local console as a normal user
 su(1) to a normal user (it even doesn't ask for password a throws
 sorry)
 
 besides, as root i'm able to change passwords via passwd(1), but it
 doesn't help and a normal user cannot change their own password (old
 password check would fail).
 
 i ran vipw(8) and it doesn't seem to me there's something wrong with
my
 files.
 
 any hints pls ??
 

The normal user would have to be a member of the wheel group to use su
at any point.  If your normal user logs in via ssh/console/whatever,
they should be able to run the passwd command to change their own
password.  You wouldn't want them to su to do so.  If you want to test
this, add your normal user to the wheel group, log in again and see if
it works.

Regards,

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


Re: sshd config config file question

2007-07-10 Thread pete wright

On 7/10/07, Huy Ton That [EMAIL PROTECTED] wrote:

No, it was unhashed. Thanks for pointing it out though. But the strange
thing is when I run:

/etc/rc.d/sshd status

I get no message

No message for start, restart, reload etc. I am performing these commands as
root.

Any ideas?





(couple things, please don't top post, and be sure to keep
[EMAIL PROTECTED] cc'd on this thread so others can help you)

i'm not sure what you mean about no message.  make sure you have
sshd_enabled=YES in your /etc/rc.conf.

also check to see if sshd is running by using ps.  if it is not, try
starting it by hand - this will tell you if there are any errors on
startup.  once it starts cleanly by hand then use the init script in
/etc/rc.d/sshd.

the man page for sshd is very helpful, and should answer many of the
questions you may have - including how to start the daemon by hand,
etc..  type:
man sshd

-p




--
~~o0OO0o~~
Pete Wright
www.nycbug.org
NYC's *BSD User Group
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Help! FreeBSD: 88.78 KBps, Linux: 624.95 KBps

2007-07-10 Thread pete wright

On 7/10/07, Kyrre Nygård [EMAIL PROTECTED] wrote:

Hello.

My friend is switching to Linux because FreeBSD is failing on him.

When downloading a file from a FreeBSD box and a Linux box on the same
network, the FreeBSD box got 88.78 KBps whereas the Linux got 624.95
Kbps. I have no idea what's wrong, but my man isn't really into good
information design (e.g. taking something complex and making it easy),
so his system is a mess. Maybe some of you can help me locate where the
problem's at?



It's probably best to start at the basics and work up:

1) uname -ar on both systems
2) do both systems have identical hardware?

3)what are you coping over, lots of small files, one large file.  i.e.
what kind of benchmark are you using?

that's the best place to start.  it looks like you have a ton of pf
stuff going on, and have made many changes to your kernel via sysctl.
i didn't really look at that stuff closely - that info is kinda
pointless w/o the basic hardware, OS data.

-p


--
~~o0OO0o~~
Pete Wright
www.nycbug.org
NYC's *BSD User Group
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: odd HP 1320 printer behaviour...

2007-07-10 Thread William Bulley
According to Warren Block [EMAIL PROTECTED]:
 
 If the print job is plain text, does it end in a formfeed?  If not, the 
 printer may wait for one, and eventually timeout and print the page.

I only send PostScript to this printer.  My WWW browsers do this for
me automatically and the FreeBSD port print/enscript-letter does
the rest for me (plain text or ASCII files).

 Depending on what processing you do to the source file, you may find 
 utilities like /usr/ports/print/enscript useful.

I have been using enscript for about twenty years now...  :-)

Regards,

web...

--
William Bulley Email: [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: sshd config config file question

2007-07-10 Thread Huy Ton That

The daemon is up and has been up for a long time. In fact, when I made these
changes to sshd_config, for instance as a test maxauthtries to 3 I also
reloaded it during a ssh terminal session. After which I logged back in and
as a test, purposely errored the tries; it still defaulted to 6 despite the
sshd_config file change and reloading.

when I say I get no message I mean to state as such:

$/etc/rc.d/sshd status --carriage return
$ --no message after return.

Thanks Pete.

-Huy

On 7/10/07, pete wright [EMAIL PROTECTED] wrote:


On 7/10/07, Huy Ton That [EMAIL PROTECTED] wrote:
 No, it was unhashed. Thanks for pointing it out though. But the strange
 thing is when I run:

 /etc/rc.d/sshd status

 I get no message

 No message for start, restart, reload etc. I am performing these
commands as
 root.

 Any ideas?




(couple things, please don't top post, and be sure to keep
[EMAIL PROTECTED] cc'd on this thread so others can help you)

i'm not sure what you mean about no message.  make sure you have
sshd_enabled=YES in your /etc/rc.conf.

also check to see if sshd is running by using ps.  if it is not, try
starting it by hand - this will tell you if there are any errors on
startup.  once it starts cleanly by hand then use the init script in
/etc/rc.d/sshd.

the man page for sshd is very helpful, and should answer many of the
questions you may have - including how to start the daemon by hand,
etc..  type:
man sshd

-p




--
~~o0OO0o~~
Pete Wright
www.nycbug.org
NYC's *BSD User Group


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


How to create directory on MD via vnode?

2007-07-10 Thread Zhao Ryan
Dear Sir,
I would like to create directory on a memory disk(/dev/md0) via vnode 
operation, without mounting it to a mountpoint. How can I do that?
Thank you!








___ 
Mp3疯狂搜-新歌热歌高速下
http://music.yahoo.com.cn/?source=mail_mailbox_footer
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Help! FreeBSD: 88.78 KBps, Linux: 624.95 KBps

2007-07-10 Thread Thomas Sparrevohn
On Tuesday 10 July 2007 17:02:46 Abdullah Ibn Hamad Al-Marri wrote:
 On 7/10/07, Kyrre Nygård [EMAIL PROTECTED] wrote:
  Hello.
 
  My friend is switching to Linux because FreeBSD is failing on him.
 
  When downloading a file from a FreeBSD box and a Linux box on the same
  network, the FreeBSD box got 88.78 KBps whereas the Linux got 624.95
  Kbps. I have no idea what's wrong, but my man isn't really into good
  information design (e.g. taking something complex and making it easy),
  so his system is a mess. Maybe some of you can help me locate where the
  problem's at?
 
  Thanks guys,
  Kyrre
 
 Could you please show the uname -a info?
 

It could be at his router does not understand the RFC1323 extensions -
try setting 

tcp_extensions=NO

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


Re: severely OT; re PUTTY [ssh]

2007-07-10 Thread David Benfell
On Sun, 08 Jul 2007 23:12:44 -0700, Garrett Cooper wrote:
 Chad Perrin wrote:
 On Mon, Jul 09, 2007 at 12:44:46AM -0500, Tim Daneliuk wrote:
   
 P.S. If anyone tells anyone else that I know this stuff about Windows
  I will deny it loudly and come looking for you.  I do not need
  any more conversations that start with, Oh, you're a computer
  engineer - I have this problem with my/childrens'/wife's/dog's
  Windows machine... :)
 
 
 Oh, well that's your problem right there.  Here, try FreeBSD, or maybe
 this MacOS X thing, instead.  That should solve the problem.
 
 Isn't that the right answer to all such questions?
Although ideal to use FreeBSD/OS X, many circumstances force people to 
 use Windows (for now..).
Another possible solution (since Tim brought up Windows - BSD): 
 automount with mount_smbfs should do the trick. Just having the Unix server 
 run Samba would do the trick though.

Yeah, I like this trick.  And it worked for a while.  Beautifully, I should
add, except when Windows did its stupid media preview thing that took
forever while navigating through directories.

Then that idiot IT team at my university cut it off, I assume through
packet filtering rules.  (I wish they'd focus on getting things working
that they're supposed to be supplying instead.)



-- 
David Benfell, LCP
[EMAIL PROTECTED]
---
Resume available at http://www.parts-unknown.org/
NOTE: I sign all messages with GnuPG (0DD1D1E3).


pgpIqmzMJaxGS.pgp
Description: PGP signature


Re: Help! FreeBSD: 88.78 KBps, Linux: 624.95 KBps

2007-07-10 Thread Josh Paetzel
On Tuesday 10 July 2007, Thomas Sparrevohn wrote:
 On Tuesday 10 July 2007 17:02:46 Abdullah Ibn Hamad Al-Marri wrote:
  On 7/10/07, Kyrre Nygård [EMAIL PROTECTED] wrote:
   Hello.
  
   My friend is switching to Linux because FreeBSD is failing on
   him.
  
   When downloading a file from a FreeBSD box and a Linux box on
   the same network, the FreeBSD box got 88.78 KBps whereas the
   Linux got 624.95 Kbps. I have no idea what's wrong, but my man
   isn't really into good information design (e.g. taking
   something complex and making it easy), so his system is a mess.
   Maybe some of you can help me locate where the problem's at?
  
   Thanks guys,
   Kyrre
 
  Could you please show the uname -a info?

 It could be at his router does not understand the RFC1323
 extensions - try setting

 tcp_extensions=NO

 In rc.conf

I think the first thing I would do is go back to a default 
configuration.  Turn off pf, take out all of the sysctls and see what 
happens.  Then start adding things in one at a time until you find 
what breaks it.  It doesn't take much to do 625K/sec, the default 
configuration is easily capable of 30 times that.  My guess is that 
either one of the sysctl 'tunings' has broken something, or an 
interaction between two or more of them has caused an unexpected 
behavior, but that's an easy enough theory to test.


-- 
Thanks,

Josh Paetzel


pgphXFpsEuxsN.pgp
Description: PGP signature


Re: severely OT; re PUTTY [ssh]

2007-07-10 Thread David Benfell
On Sun, 08 Jul 2007 22:44:58 -0700, Garrett Cooper wrote:
 Peter Boosten wrote:
 Gary Kline wrote:
   
 I was able to find, ldown load and instal the DOS/Windows ssh
 utility, but am having trouble scp'ing stuff between my BSD side
 and my W2K server.  Anybody know what file I have to modify to
 get permission on the windows computer?
 
 
 Gary,
 
 Search for winscp, a (free) graphical dragdrop scp tool.
 I've seen some limitations with scp of putty (like file sizes over 2 
 Gigs).
 
 Peter
   
 Gary,
If you're just trying to do file transferring/sharing in a local 
 'secure' network, I suggest Samba in place of scp. You might also want to 
 consider Samba + VPN as well; scp is great for porting files over long 
 distances, or a last resort for dealing with Unix = Windows transferring, 
 but just seems incredibly kludgey when dealing with files/directories 
 otherwise (having to maintain an ssh connection, having to install a 
 scp/ssh client per machine for instance are what I consider kludgey).
 Cheers,
 -Garrett

My trick for this is that I got some Windows system somewhere to install
PuTTY (and some other nice to have software) on my memory stick.  I just
plug it in when I have to deal with a Windows system.


-- 
David Benfell, LCP
[EMAIL PROTECTED]
---
Resume available at http://www.parts-unknown.org/
NOTE: I sign all messages with GnuPG (0DD1D1E3).


pgphBXfLoivtO.pgp
Description: PGP signature


Re: IPW3945 in 6.2

2007-07-10 Thread Manolis Kiagias
Tom Grove wrote:
 What are the chances that IPW3945 will work in 6.2?  Has anyone
 accomplished this?  Also, is it likely that the wpi drivers will be
 ready for 7.0?

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


I have actually succeeded in making my 3945 work in 6.2 Release, but I
used the January 2007 version of the wpi driver

http://www.clearchain.com/~benjsc/download/20070125-wpi-freebsd.tar.gz

This only works on the release version and it breaks if you perform a
freebsd-update and recompile your kernel.
I have only tested basic features (i.e. no encryption of any kind) but
it worked ok.
From what I've read the driver is in heavy development and will probably
go open for beta testing soon. I believe there will be a working
solution either included in 7, or something you can download and compile
yourself. Read more details here:

http://www.clearchain.com/wiki/Wpi

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


Re: Installation woes with 6.2 release

2007-07-10 Thread Fredrik Tolf
I think I accidently posted a reply to this via private mail with an
invalid source address, but I'm not sure what I did, so I'll take this
opportunity to apologize to anyone to gets this message twice.

Derek Ragona [EMAIL PROTECTED] writes:
 Clearly you have a disk controller compatibility problem.  I do know
 the Sil chips are terrible, and there is a long history of issues with
 these chips and FreeBSD!

That's interesting to me. Is there any further information available
on that subject?

I've been using SiL chips with Linux for quite a while with no
problems, and I was planning to do the same with FreeBSD as well, but
if there are known problems with SiL and FreeBSD I may need to rethink
that decision.

(To be more exact, I've been using the SiL 311[24] chips)

Fredrik Tolf

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


Re: Installation woes with 6.2 release

2007-07-10 Thread Chuck Swiger

On Jul 10, 2007, at 1:15 PM, Fredrik Tolf wrote:

Derek Ragona [EMAIL PROTECTED] writes:

Clearly you have a disk controller compatibility problem.  I do know
the Sil chips are terrible, and there is a long history of issues  
with

these chips and FreeBSD!


That's interesting to me. Is there any further information available
on that subject?

I've been using SiL chips with Linux for quite a while with no
problems, and I was planning to do the same with FreeBSD as well, but
if there are known problems with SiL and FreeBSD I may need to rethink
that decision.

(To be more exact, I've been using the SiL 311[24] chips)


There are significant hardware defects with the SiliconImage 311x  
chips, which can mostly be worked around if you accept a loss of  
performance.  These workarounds are implemented in both Linux and the  
BSDs, but details are available here:


http://www.google.com/search?client=safarirls=enq=Silicon+Image+3112 
+bugsie=UTF-8oe=UTF-8


...gives results such as:

http://www.nabble.com/SII3512-rev0---t3995350.html

--
-Chuck

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


Detecting CPU Type

2007-07-10 Thread Olivier Regnier

Hi everyone,

I searching to find information about my CPU type.

With the following command:
# dmesg | grep -i cpu
i have this: CPU: Mobile AMD Sempron(tm) Processor 2800+ (1600.06-Mhz 
686-class CPU)

but with a
# uname -m
i have i386.

I must configure my CPUTYPE?= in /etc/make.conf.
I'ts i686 (686-class) or i386 ?

Can you give me information please ?

Thank you.

Olivier Regnier


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


Re: Selecting printer from apps core dumps. Howto debug?

2007-07-10 Thread Mark Kane
On Sat, Jun 30, 2007, at 22:06:58 +0100, Graham Bentley wrote:
 Its odd because the cups test page works, printing from
 mousepad and firefox works, but abiword bombs completely.
 In the short space of time I see it on the screen after 
 clicking print I can see there is no entry for the printer.

[...]
 [SOLVED] Set printer as 'default' using cups webmin.
 
 All working - thanks :)

Sorry to bring back the thread but I'm seeing this issue with a fresh
install of everything on a new machine.

Printing to an Epson USB printer from the CUPS test page works fine,
as does printing from Opera using the lpr binary installed by CUPS. When
trying to print via AbiWord or Claws Mail, they coredump. If the
printer is not set as default in CUPS (which is how I had it set before
reading this thread), it does bring up the print dialog in
Abiword/Claws but it dumps when you select the printer. If the printer
is set as default in CUPS, the app dumps right when opening the print
dialog and before the printer even shows up on the list of available
printers.

I think it's a somewhat new problem somewhere because I've been using
Xfce, CUPS, and these applications for quite a while on other machines
with no problems. CUPS is enabled in xfce4-print as well as
libgnomeprint, and GNOME printing is enabled in Claws Mail. The USB
permissions are also set properly. I also tried running AbiWord outside
of Xfce (in Xorg's default WM) which did the same thing. Maybe it's
something with libgnomeprint since both apps use it and both have
problems printing?

Here is a list of relevant software versions on the non working
machine:

abiword-2.4.6_1
claws-mail-2.10.0
cups-base-1.2.11_2
cups-pstoraster-8.15.4_1
gutenprint-cups-5.1.3
libgnomecups-0.2.2_4,1
libgnomeprint-2.18.0_2
libgnomeprintui-2.18.0_1
xfce4-print-4.4.1_1

Here is a list of relevant software versions on a machine that is
printing properly with Claws-Mail (and probably would with AbiWord if
it didn't have a problem with some laser printers):

abiword-gnome-2.4.6
claws-mail-2.8.1
cups-base-1.2.8
libgnomecups-0.2.2_2,1
libgnomeprint-2.12.1_3
libgnomeprintui-2.12.1_2
xfce4-print-4.4.0

Here's the backtrace from AbiWord if it helps:

http://tntpowerhost.com/mixx941/gdb_abiword_print.txt

Please let me know if I can provide any additional info. Thanks in
advance for any suggestions on how to fix or debug this.

-Mark

-- 
Internet Radio:
Party107 (Trance/Electronic) - http://www.party107.com
Rock 101.9 The Edge (Rock) - http://www.rock1019.net

IRC:
MIXXnet IRC Network - irc.mixxnet.net (Nick: MIXX941)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Detecting CPU Type

2007-07-10 Thread Rob

Olivier Regnier wrote:

I searching to find information about my CPU type.
i have this: CPU: Mobile AMD Sempron(tm) Processor 2800+ (1600.06-Mhz 686-class 
CPU)
I must configure my CPUTYPE?= in /etc/make.conf.
I'ts i686 (686-class) or i386 ?


i386 is the architecture;  it includes all the similar processors including 
the 486, Pentiums, Athlon, etc.   Other architectures are completely different hardware, 
eg Sun's SPARC.

The 686-class is the specific processor within the i386 architecture.  if you 
look in /usr/share/examples/etc/make.conf you'll see a list of options for 
CPUTYPE.  athlon-xp might be the closest to your cpu.  However, some folks here 
recommend against using overly specific cpu optimization.  You can go safe and 
just use pentium4

 -RW

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


Re: Detecting CPU Type

2007-07-10 Thread Momchil Ivanov
On Tuesday 10 July 2007 21:54:43 Olivier Regnier wrote:
 Hi everyone,

 I searching to find information about my CPU type.

 With the following command:
 # dmesg | grep -i cpu
 i have this: CPU: Mobile AMD Sempron(tm) Processor 2800+ (1600.06-Mhz
 686-class CPU)
 but with a
 # uname -m
 i have i386.

 I must configure my CPUTYPE?= in /etc/make.conf.
 I'ts i686 (686-class) or i386 ?

 Can you give me information please ?

 Thank you.

 Olivier Regnier

Hi Olivier,

from the manual page of uname(1) you can see what the -m option shows you, 
namely the platform on which you are running FreeBSD:

 -m  Write the type of the current hardware platform to standard out-
 put.
 
This page gives information on what kind of platforms does FreeBSD run 
http://www.freebsd.org/platforms/

-- 
PGP KeyID: 0x3118168B
Keyserver: pgp.mit.edu
Key fingerprint BB50 2983 0714 36DC D02E  158A E03D 56DA 3118 168B
  


pgpWIVoklXlLD.pgp
Description: PGP signature


mount_smbfs 6.2-release and w2k3 standard r2

2007-07-10 Thread Philip M. Gollucci

Hi, I've done lots of googling and I get lots of solutions, but they don't
work.

I can smbclient to this share just fine:
magneto# smbclient -U pgollucci glactus\\unix
Password:
Domain=[RIDERWAY] OS=[Windows Server 2003 3790 Service Pack 2]
Server=[Windows Server 2003 5.2]
smb: \ ls
   .   D0  Fri Jul  6 20:13:59 2007
   ..  D0  Fri Jul  6 20:13:59 2007

 55750 blocks of size 8388608. 55498 blocks available
BUT
BUT

mount_smbfs -W Riderway -I A.B.C.D //[EMAIL PROTECTED]/unix /x1/backups-cdp
Password:
mount_smbfs: unable to open connection: syserr = Connection refused

The share is valid, I can even write to it via smbclient.

Does any one have any great ideas ? I've tried with and with -I, -W and
replacing HOST with ip out-right.

Some machine info below:

uname -a
FreeBSD magneto. .2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12
08:43:30 UTC 2007
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMP  amd64

kldstat
Id Refs AddressSize Name
  16 0x8010 967700   kernel
  21 0x80a68000 30088smbfs.ko
  33 0x80a99000 5358 libiconv.ko
  43 0x80a9f000 20a0 libmchain.ko
  51 0xb5fea000 9306 ipfw.ko
  61 0xb604e000 795  accf_http.ko

sysctl kern.securelevel
kern.securelevel: 3

ls -ld /var/db/pkg/*samba*
magneto# ls -ld /var/db/pkg/*samba*
drwxr-xr-x  2 root  wheel  512 Jul  6 20:36 /var/db/pkg/samba-3.0.25a,1
drwxr-xr-x  2 root  wheel  512 Jul  6 20:19
/var/db/pkg/samba-libsmbclient-3.0.25a_1

namp glactus (the windows box)
Not shown: 1665 closed ports
PORT STATE SERVICE
25/tcp   open  smtp
42/tcp   open  nameserver
80/tcp   open  http
88/tcp   open  kerberos-sec
135/tcp  open  msrpc
389/tcp  open  ldap
445/tcp  open  microsoft-ds
464/tcp  open  kpasswd5
593/tcp  open  http-rpc-epmap
636/tcp  open  ldapssl
1025/tcp open  NFS-or-IIS
1723/tcp open  pptp
3268/tcp open  globalcatLDAP
3269/tcp open  globalcatLDAPssl
3389/tcp open  ms-term-serv
MAC Address: 00:1A:A0:1E:1D:DD (Unknown)
Device type: general purpose
Running: Microsoft Windows 2003/.NET|NT/2K/XP
OS details: Microsoft Windows 2003 Server Standart Edition SP1, Microsoft
Windows 2003 Server, 2003 Server SP1 or XP Pro SP2

--

Philip M. Gollucci  323.219.4708
Senior System Admin - Riderway, Inc. http://riderway.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


named listening on LAN

2007-07-10 Thread Zbigniew Szalbot

Hello,

I am slowly trying various features of FBSD and I have just enabled named
to be my local caching DNS server.  It works fine but I have one question.
I would like it to be a caching DNS server for my LAN. 

So following the Handbook I tried setting a proper LAN IP address of the
named machine:

listen-on { 192.168.11.50; };

However, when I restart named, it does not want to work (no DNS then). The
handbook suggests that when I want a caching server only, I should not
touch zones.

Any hint what I need to do to make it work for my LAN?

Thank you in advance!

Zbigniew Szalbot

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


Re: mount_smbfs 6.2-release and w2k3 standard r2

2007-07-10 Thread John Nielsen
On Tuesday 10 July 2007, Philip M. Gollucci wrote:
 Hi, I've done lots of googling and I get lots of solutions, but they
 don't work.

 I can smbclient to this share just fine:
 magneto# smbclient -U pgollucci glactus\\unix
 Password:
 Domain=[RIDERWAY] OS=[Windows Server 2003 3790 Service Pack 2]
 Server=[Windows Server 2003 5.2]
 smb: \ ls
 .   D0  Fri Jul  6 20:13:59
 2007 ..  D0  Fri Jul  6 20:13:59
 2007

   55750 blocks of size 8388608. 55498 blocks available
 BUT
 BUT

 mount_smbfs -W Riderway -I A.B.C.D //[EMAIL PROTECTED]/unix
 /x1/backups-cdp Password:
 mount_smbfs: unable to open connection: syserr = Connection refused

 The share is valid, I can even write to it via smbclient.

 Does any one have any great ideas ? I've tried with and with -I, -W and
 replacing HOST with ip out-right.

IIRC, Win2k3 only uses port 445 for smb/cifs by default, and our mount_smbfs 
can only use 139 (or thereabouts :) ). It would be nice if mount_smbfs were 
updated to work more easily with newer versions of Windows, but in the 
meantime it should be possible to tell the Windows server to also accept 
connections on the old port. Exactly how I don't remember ATM, but I've 
done it before.

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


Re: mount_smbfs 6.2-release and w2k3 standard r2

2007-07-10 Thread John Nielsen
On Tuesday 10 July 2007, John Nielsen wrote:
 On Tuesday 10 July 2007, Philip M. Gollucci wrote:
  Hi, I've done lots of googling and I get lots of solutions, but they
  don't work.
 
  I can smbclient to this share just fine:
  magneto# smbclient -U pgollucci glactus\\unix
  Password:
  Domain=[RIDERWAY] OS=[Windows Server 2003 3790 Service Pack 2]
  Server=[Windows Server 2003 5.2]
  smb: \ ls
  .   D0  Fri Jul  6 20:13:59
  2007 ..  D0  Fri Jul  6
  20:13:59 2007
 
55750 blocks of size 8388608. 55498 blocks available
  BUT
  BUT
 
  mount_smbfs -W Riderway -I A.B.C.D //[EMAIL PROTECTED]/unix
  /x1/backups-cdp Password:
  mount_smbfs: unable to open connection: syserr = Connection refused
 
  The share is valid, I can even write to it via smbclient.
 
  Does any one have any great ideas ? I've tried with and with -I, -W and
  replacing HOST with ip out-right.

 IIRC, Win2k3 only uses port 445 for smb/cifs by default, and our
 mount_smbfs can only use 139 (or thereabouts :) ). It would be nice if
 mount_smbfs were updated to work more easily with newer versions of
 Windows, but in the meantime it should be possible to tell the Windows
 server to also accept connections on the old port. Exactly how I don't
 remember ATM, but I've done it before.

I hate not remembering things, so I just verified this on a Windows Server 
2003 box I have access to. This feature (listening on port 139) is tied to 
NETBIOS over TCP/IP. Make sure it's enabled on the WINS tab of the Advanced 
TCP/IP settings dialog for the interface.

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


Re: mount_smbfs 6.2-release and w2k3 standard r2

2007-07-10 Thread Philip M. Gollucci

I hate not remembering things, so I just verified this on a Windows Server
2003 box I have access to. This feature (listening on port 139) is tied to
NETBIOS over TCP/IP. Make sure it's enabled on the WINS tab of the Advanced
TCP/IP settings dialog for the interface.

BRILLIANT!

Thats the one!

Thanks a bunch.


--

Philip M. Gollucci ([EMAIL PROTECTED]) 323.219.4708
Senior System Admin - Riderway, Inc. http://riderway.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FREEBSD 6.2

2007-07-10 Thread sebastien
Hi,

I try to install freebsd 6.2 on my freshly install hardware RAID1 (AIC-7901)
But sysinstall always show me two HD but not one.
Perhaps the driver is not load at the install and you must configure a kernel
after .
But i don't have this trouble with freebsd 5.x

Thank for help

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


Re: X11 forwarding problems in FreeBSD 6.2 - no xauth data?

2007-07-10 Thread Pollywog
On Sunday 08 July 2007 18:03:49 Pollywog wrote:
 I am having some problems with X11 forwarding. I can do X11 forwarding via
 ssh between two machines running Linux, but if I try to do this from
 FreeBSD (KDE) to either of the Linux machines, it only works if I use
 startx to start KDE on the fbsd machine (a laptop). If I start KDE from
 kdm, I get errors that go like this when I start the KDE app on the remote
 host running Linux: [EMAIL PROTECTED]:~$ kate
  Xlib: connection to localhost:11.0 refused by server
  Xlib: Invalid MIT-MAGIC-COOKIE-1 key
  kate: cannot connect to X server localhost:11.0

I just did 'ssh' to one of the Linux hosts and when the connection was made, I 
got this:

Warning: No xauth data; using fake authentication data for X11 forwarding.

Does this possibly have something to do with the problem I mentioned in my 
initial post in this thread?  I am going to Google that error and see if I 
can find something.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


external drive

2007-07-10 Thread Jean-Paul Natola
Hi all,

After yesterdays fiasco trying to upgrade 5.5 to 6.2 - I just grabbed a new
drive and did a clean install of 6.2

Its working great, no errors I'm happy- 

There are some files (basically some custom config  and cf files) that I
would like to copy from the 5.5 drive - 
So I put it in an external enclosure  and needless to say windows wouldn't
recognize it - and the MAC OSX though it sees it , it wont let me mount it
(despite the fact that I clicked mount drive ) 

2 questions;

1. Is there anything out there that would let me read a BSD drive from a
windows or mac machine?
2. If I do just plug the drive into the BSD USB port will it cause any
conflicts as there will be duplicates of the main slices
/var
/usr etc..

Or am I safe just plugging it in and mounting it?


PS: Thanks to everyone for the feedback yesterday - I learned A LOT in the
last 24 hours 









Jean-Paul 

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


Re: X11 forwarding problems in FreeBSD 6.2 - no xauth data?

2007-07-10 Thread Pollywog
On Tuesday 10 July 2007 14:41:01 Pollywog wrote:
  

 I just did 'ssh' to one of the Linux hosts and when the connection was
 made, I got this:

 Warning: No xauth data; using fake authentication data for X11 forwarding.

 Does this possibly have something to do with the problem I mentioned in my
 initial post in this thread?  I am going to Google that error and see if I
 can find something.

I found out that mcookie generates magic cookies for xauth, but I do not 
have the mcookie command in FreeBSD, though it exists on my Debian Etch 
system and is part of the util-linux package.  If I can find mcookie or a 
command that is analogous to it in FreeBSD, I might be able to fix this 
problem:

http://rocketcalc.com/bread.php?key=22

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


Re: X11 forwarding problems in FreeBSD 6.2 - no xauth data?

2007-07-10 Thread Pieter de Goeje
On Wednesday 11 July 2007, Pollywog wrote:
 I found out that mcookie generates magic cookies for xauth, but I do not
 have the mcookie command in FreeBSD, though it exists on my Debian Etch
 system and is part of the util-linux package.
I think you need to generate a new cookie with
$ xauth generate :0 . trusted
See xauth(1) for more info.

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


Re: X11 forwarding problems in FreeBSD 6.2 - no xauth data?

2007-07-10 Thread Federico Lorenzi

On 7/10/07, Pollywog [EMAIL PROTECTED] wrote:

On Tuesday 10 July 2007 14:41:01 Pollywog wrote:


 I just did 'ssh' to one of the Linux hosts and when the connection was
 made, I got this:

 Warning: No xauth data; using fake authentication data for X11 forwarding.

 Does this possibly have something to do with the problem I mentioned in my
 initial post in this thread?  I am going to Google that error and see if I
 can find something.

I found out that mcookie generates magic cookies for xauth, but I do not
have the mcookie command in FreeBSD, though it exists on my Debian Etch
system and is part of the util-linux package.  If I can find mcookie or a
command that is analogous to it in FreeBSD, I might be able to fix this
problem:

http://rocketcalc.com/bread.php?key=22
From what I've read at http://www.linuxcommand.org/man_pages/mcookie1.html:

  mcookie  generates a 128-bit random hexadecimal number for use with the
  X authority system.  Typical usage:
 xauth add :0 . 'mcookie'

Therefore, you should be able to use any random 128-bit hex number
instead of mcookie.
I'm not sure how secure it would be, but it should work just fine.

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


Help making too quiet sound work on Mac Pro running -STABLE

2007-07-10 Thread George Hartzell

I have a mac pro running amd64 -STABLE from a week or so ago.  Most
things are working well, but sound's not quite there.

When I plug a set of powered speakers into the headphone jack on the
front of the machine and max the mixer setting and the speakers, I can
just barely hear an mp3 played by mpg123.

I'm loading snd_hda from /boot/loader.conf, and /dev/sndstat tells me:

  FreeBSD Audio Driver (newpcm)
  Installed devices:
  pcm0: Intel 631x/632xESB High Definition Audio Controller at memory 
0x9310 irq 23 kld snd_hda [20070619_0045] (1p/1r/1v channels duplex default)

There's a chunk of the dmesg output from a verbose boot at

  http://shrimp.alerce.com/misc/delicious-dmesg

which seems to include all of the pcm info.

What other info can I provide?

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


acpi_smbust_read_2: AE_ERROR 0x10 on a mac pro running -STABLE

2007-07-10 Thread George Hartzell

I have a mac pro running amd64 -STABLE from about a week or so ago.

The console and dmesg output are flooded by 

  acpi_smbus_read_2: AE_ERROR 0x10

message.  There will be a couple, then silence, then a burst of them,
then

The don't seem to be hurting anything, but they push other stuff out
of dmesg.

Can anyone help me identify the problem and reduce the chatter (short
of commenting out the line that's generating the output...).

Thanks,

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


Re: external drive

2007-07-10 Thread Jonathan Horne
On Tuesday 10 July 2007 17:21:35 Jean-Paul Natola wrote:
 Hi all,

 After yesterdays fiasco trying to upgrade 5.5 to 6.2 - I just grabbed a new
 drive and did a clean install of 6.2

 Its working great, no errors I'm happy-

 There are some files (basically some custom config  and cf files) that I
 would like to copy from the 5.5 drive -
 So I put it in an external enclosure  and needless to say windows wouldn't
 recognize it - and the MAC OSX though it sees it , it wont let me mount it
 (despite the fact that I clicked mount drive )

 2 questions;

 1. Is there anything out there that would let me read a BSD drive from a
 windows or mac machine?
 2. If I do just plug the drive into the BSD USB port will it cause any
 conflicts as there will be duplicates of the main slices
 /var
 /usr etc..

 Or am I safe just plugging it in and mounting it?


 PS: Thanks to everyone for the feedback yesterday - I learned A LOT in the
 last 24 hours









 Jean-Paul

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

you can just plug it into the bsd box, it wont mount automatically.

you can create temporary mountpoints, say maybe:

/media/usr
/media/var
/media/root

and mount them on those.  copy what you need out, and the unmount them when 
youre ready.

hth,
-- 
Jonathan Horne
http://dfwlpiki.dfwlp.org
[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: Help! FreeBSD: 88.78 KBps, Linux: 624.95 KBps

2007-07-10 Thread Norbert Papke
On July 10, 2007, Kyrre Nygård wrote:
 Hello.

 My friend is switching to Linux because FreeBSD is failing on him.

 When downloading a file from a FreeBSD box and a Linux box on the same
 network, the FreeBSD box got 88.78 KBps whereas the Linux got 624.95
 Kbps. I have no idea what's wrong, but my man isn't really into good
 information design (e.g. taking something complex and making it easy),
 so his system is a mess. Maybe some of you can help me locate where the
 problem's at?

Are we comparing apples to oranges?

88.78 KBps  (kilo bytes per second) = 710.24 Kbps (kilo bits per second)

If this is true, then the FreeBSD box is faster :)

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


Re: named listening on LAN

2007-07-10 Thread jbarnet


this is what I got:

listen-on {
   127.0.0.1;
   192.168.11.50;
};

Try that, restart and see if it works locally (from the server).

Also the logs spit anything out?

Other thing is firewall, I think simple blocks it by default? So you 
might want to try that.






Zbigniew Szalbot wrote:

Hello,

I am slowly trying various features of FBSD and I have just enabled named
to be my local caching DNS server.  It works fine but I have one question.
I would like it to be a caching DNS server for my LAN. 


So following the Handbook I tried setting a proper LAN IP address of the
named machine:

listen-on { 192.168.11.50; };

However, when I restart named, it does not want to work (no DNS then). The
handbook suggests that when I want a caching server only, I should not
touch zones.

Any hint what I need to do to make it work for my LAN?

Thank you in advance!

Zbigniew Szalbot

___
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: Detecting CPU Type

2007-07-10 Thread RW
On Tue, 10 Jul 2007 16:42:33 -0400
Rob [EMAIL PROTECTED] wrote:

 Olivier Regnier wrote:
  I searching to find information about my CPU type.
  i have this: CPU: Mobile AMD Sempron(tm) Processor 2800+
  (1600.06-Mhz 686-class CPU) I must configure my CPUTYPE?=
  in /etc/make.conf. I'ts i686 (686-class) or i386 ?
 
 i386 is the architecture;  it includes all the similar processors
 including the 486, Pentiums, Athlon, etc.   Other architectures are
 completely different hardware, eg Sun's SPARC.
 
 The 686-class is the specific processor within the i386
 architecture.  if you look in /usr/share/examples/etc/make.conf
 you'll see a list of options for CPUTYPE.  athlon-xp might be the
 closest to your cpu.  However, some folks here recommend against
 using overly specific cpu optimization.  You can go safe and just use
 pentium4



I'm not sure that is safe, Athlons, Sempron etc are back-compatible to
686 i.e. Pentium Pro, which is way before Intel developed the Pentium4.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD 6.2 default bind9, question about customize logging [re-post]

2007-07-10 Thread Edward Shabotinsky

this is what i have from 5.2

logging {
channel namedlog {
file /var/log/named.log;
severity info;
print-category yes;
print-severity yes;
print-time yes;
};
category lame-servers {
null;
};
category default {
namedlog;
};
category xfer-out { namedlog;};
};

hope this help


On Jul 8, 2007, at 2:06 PM, Patrick Dung wrote:


I am using FreeBSD 6.2 with the default bind (not ports).
By default chroot is used.

When named start or stop, it does have log in /var/log/messages.
But for example, when some do domain transfer successfully, that is  
not

logged (zone transfer denied is logged).

So I tried to add this part in named.conf (enabled local0.* in
syslog.conf) , but still no luck. Any suggestions?

logging {
channel named-log {
//syslog daemon;
syslog local0;
severity info;
print-category yes;
};
 category default { named-log; };
 category xfer-in { named-log; };
 category xfer-out { named-log; };
 category unmatched { null; };
};

Thanks
Patrick



__ 
__
Be a better Heartthrob. Get better relationship answers from  
someone who knows. Yahoo! Answers - Check it out.

http://answers.yahoo.com/dir/?link=listsid=396545433
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-isp
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]


gpg-agent

2007-07-10 Thread Pollywog
I have been having trouble getting gpg-agent to work. kgpg complained about 
the agent not running.  I added this to my ~/.bashrc:

GPG_TTY=`tty`
export GPG_TTY

This seems to have taken care of the problem but it only works when my default 
shell is bash.  If my shell is tcsh, it doesn't work.  This is what I have in 
my ~/.cshrc:

setenv GPG_TTY tty

Apparently this is wrong.  Any ideas as to what I can try?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


SiL S-ATA (Was: Installation woes with 6.2 release)

2007-07-10 Thread Fredrik Tolf
Chuck Swiger [EMAIL PROTECTED] writes:
 [...]
 There are significant hardware defects with the SiliconImage 311x
 chips, which can mostly be worked around if you accept a loss of
 performance.  These workarounds are implemented in both Linux and the
 BSDs, but details are available here:

 http://www.google.com/search?client=safarirls=enq=Silicon+Image+3112
 +bugsie=UTF-8oe=UTF-8

 ...gives results such as:

 http://www.nabble.com/SII3512-rev0---t3995350.html

Thanks for the reference! It was an interesting read, and it does calm
me down a bit, as it suggests the problem to be limited to chips with
rev = 1, whereas all my cards are rev 2.

Well, if nothing else, it will be interesting to test my cards with
FreeBSD and see what happens. In the worst case, it won't be that hard
for me to switch to another card (just hoping that it won't cause any
data corruption). It will probably be a while before I get the drives
to connect to them, but I'll try to remember to post the results of my
testing.

Fredrik Tolf

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


Re: sshd config config file question

2007-07-10 Thread Schiz0

On 7/10/07, Huy Ton That [EMAIL PROTECTED] wrote:

The daemon is up and has been up for a long time. In fact, when I made these
changes to sshd_config, for instance as a test maxauthtries to 3 I also
reloaded it during a ssh terminal session. After which I logged back in and
as a test, purposely errored the tries; it still defaulted to 6 despite the
sshd_config file change and reloading.

when I say I get no message I mean to state as such:

$/etc/rc.d/sshd status --carriage return
$ --no message after return.

Thanks Pete.

-Huy

On 7/10/07, pete wright [EMAIL PROTECTED] wrote:

 On 7/10/07, Huy Ton That [EMAIL PROTECTED] wrote:
  No, it was unhashed. Thanks for pointing it out though. But the strange
  thing is when I run:
 
  /etc/rc.d/sshd status
 
  I get no message
 
  No message for start, restart, reload etc. I am performing these
 commands as
  root.
 
  Any ideas?
 



 (couple things, please don't top post, and be sure to keep
 [EMAIL PROTECTED] cc'd on this thread so others can help you)

 i'm not sure what you mean about no message.  make sure you have
 sshd_enabled=YES in your /etc/rc.conf.

 also check to see if sshd is running by using ps.  if it is not, try
 starting it by hand - this will tell you if there are any errors on
 startup.  once it starts cleanly by hand then use the init script in
 /etc/rc.d/sshd.

 the man page for sshd is very helpful, and should answer many of the
 questions you may have - including how to start the daemon by hand,
 etc..  type:
 man sshd

 -p




 --
 ~~o0OO0o~~
 Pete Wright
 www.nycbug.org
 NYC's *BSD User Group



Your PAM config may be overriding SSH's config (For the ignoring
MaxAuthTries option). It sometimes does that, depending on how the
login type is set up in the sshd_config file. Check your PAM config
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Detecting CPU Type

2007-07-10 Thread Garrett Cooper

RW wrote:

On Tue, 10 Jul 2007 16:42:33 -0400
Rob [EMAIL PROTECTED] wrote:

  

Olivier Regnier wrote:


I searching to find information about my CPU type.
i have this: CPU: Mobile AMD Sempron(tm) Processor 2800+
(1600.06-Mhz 686-class CPU) I must configure my CPUTYPE?=
in /etc/make.conf. I'ts i686 (686-class) or i386 ?
  

i386 is the architecture;  it includes all the similar processors
including the 486, Pentiums, Athlon, etc.   Other architectures are
completely different hardware, eg Sun's SPARC.

The 686-class is the specific processor within the i386
architecture.  if you look in /usr/share/examples/etc/make.conf
you'll see a list of options for CPUTYPE.  athlon-xp might be the
closest to your cpu.  However, some folks here recommend against
using overly specific cpu optimization.  You can go safe and just use
pentium4



I'm not sure that is safe, Athlons, Sempron etc are back-compatible to
686 i.e. Pentium Pro, which is way before Intel developed the Pentium4.
  

   Use athlon-xp (hyphen or no hyphen? I forget..).
-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: gpg-agent

2007-07-10 Thread Matt Emmerton
 I have been having trouble getting gpg-agent to work. kgpg complained
about
 the agent not running.  I added this to my ~/.bashrc:

 GPG_TTY=`tty`
 export GPG_TTY

 This seems to have taken care of the problem but it only works when my
default
 shell is bash.  If my shell is tcsh, it doesn't work.  This is what I have
in
 my ~/.cshrc:

 setenv GPG_TTY tty

 Apparently this is wrong.  Any ideas as to what I can try?

I noticed that you're using backticks, so GPG_TTY gets set to the output of
the tty command - not the text tty itself.
Perhaps you want this?

setenv GPG_TTY `tty`

--
Matt Emmerton

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


RE: Help! FreeBSD: 88.78 KBps, Linux: 624.95 KBps

2007-07-10 Thread Ted Mittelstaedt

sis ethernet cards are not known as very good cards.

Ted

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Kyrre Nygård
 Sent: Tuesday, July 10, 2007 7:12 AM
 To: [EMAIL PROTECTED]
 Subject: Help! FreeBSD: 88.78 KBps, Linux: 624.95 KBps


 Hello.

 My friend is switching to Linux because FreeBSD is failing on him.

 When downloading a file from a FreeBSD box and a Linux box on the same
 network, the FreeBSD box got 88.78 KBps whereas the Linux got 624.95
 Kbps. I have no idea what's wrong, but my man isn't really into good
 information design (e.g. taking something complex and making it easy),
 so his system is a mess. Maybe some of you can help me locate where the
 problem's at?

 Thanks guys,
 Kyrre

 # ifconfig -a
 sis0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 options=8VLAN_MTU
 inet6 fe80::20e:a6ff:fe53:d066%sis0 prefixlen 64 scopeid 0x1
 inet 67.143.227.66 netmask 0xfff8 broadcast 67.143.227.71
 inet 67.143.227.67 netmask 0x broadcast 67.143.227.67
 inet 67.143.227.68 netmask 0x broadcast 67.143.227.68
 inet 67.143.227.69 netmask 0x broadcast 67.143.227.69
 inet 67.143.227.70 netmask 0x broadcast 67.143.227.70
 inet 67.143.231.97 netmask 0x broadcast 67.143.231.97
 inet 67.143.231.98 netmask 0x broadcast 67.143.231.98
 inet 67.143.231.99 netmask 0x broadcast 67.143.231.99
 inet 67.143.231.100 netmask 0x broadcast 67.143.231.100
 inet 67.143.231.101 netmask 0x broadcast 67.143.231.101
 inet 67.143.231.102 netmask 0x broadcast 67.143.231.102
 ether 00:0e:a6:53:d0:66
 media: Ethernet autoselect (100baseTX full-duplex)
 status: active
 plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500
 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
 inet6 ::1 prefixlen 128
 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
 inet 127.0.0.1 netmask 0xff00
 pflog0: flags=141UP,RUNNING,PROMISC mtu 33208

 #cat /etc/rc.conf
 ifconfig_sis0=inet 67.143.227.66  netmask 255.255.255.248
 defaultrouter=67.143.227.65
 hostname=his.box~com

 ifconfig_sis0_alias0=67.143.227.67  netmask 0x
 ifconfig_sis0_alias1=67.143.227.68  netmask 0x
 ifconfig_sis0_alias2=67.143.227.69  netmask 0x
 ifconfig_sis0_alias3=67.143.227.70  netmask 0x
 ifconfig_sis0_alias4=67.143.231.97  netmask 0x
 ifconfig_sis0_alias5=67.143.231.98  netmask 0x
 ifconfig_sis0_alias6=67.143.231.99  netmask 0x
 ifconfig_sis0_alias7=67.143.231.100 netmask 0x
 ifconfig_sis0_alias8=67.143.231.101 netmask 0x
 ifconfig_sis0_alias9=67.143.231.102 netmask 0x

 kern.ipc.maxsockbuf=8388608
 net.inet.tcp.sendspace=3217968
 net.inet.tcp.recvspace=3217968
 net.inet.tcp.rfc1323=1

 syslogd_enable=YES
 syslogd_flags=-4 -v -v -s -s -l /etc/namedb/var/run/log
 stunnel_enable=YES
 pf_enable=YES
 pflog_enable=YES

 sshd_enable=YES
 inetd_enable=YES
 inetd_flags=-wWl
 named_enable=YES
 named_program=/usr/local/sbin/named
 named_flags=-u bind -c /etc/namedb/named.conf
 mysql_enable=YES
 apache2_enable=YES
 apache2ssl_enable=YES
 sendmail_enable=NONE
 courier_authdaemond_enable=YES
 courier_imap_imapd_enable=YES
 courier_imap_imapdssl_enable=YES
 courier_imap_imapd_ssl_enable=YES
 courier_imap_pop3dssl_enable=YES
 courier_imap_pop3d_ssl_enable=YES
 sqwebmaild_enable=YES
 spamd_enable=YES
 spamd_flags=-d -q -v -x -r /var/run/spamd.pid
 clamav_clamd_enable=YES
 clamav_freshclam_enable=YES
 svscan_enable=YES
 snmpd_enable=YES
 proftpd_enable=YES

 usbd_enable=YES

 clear_tmp_enable=YES
 update_motd=NO

 linux_enable=YES

 --

 # cat /etc/pf.conf
 ext_if=sis0   # replace with actual external interface name i.e., dc0
 loc_if=lo0# lo0 - local interface 127.0.0.1
 table box { 67.143.227.66, 67.143.227.67, 67.143.227.68,
 67.143.227.69, 67.143.227.70 67.143.231.97 67.143.231.98 67.143.231.99
 67.143.231.100 67.143.231.101 67.143.231.102}
 table customers { 205.209.177.60 }
 table friends { 67.143.227.66, 128.242.160.3, 68.83.182.43,
 66.252.8.133 }
 table filter { 222.152.0.43, 219.89.75.39, 222.152.3.100,
 222.152.4.82, 65.175.125.87, 59.188.133.195, 59.59.154.71,
 222.245.97.116, 201.141.212.230, 208.53.3.92, 124.163.176.58,
 213.230.128.226, 208.69.32.130, 65.175.125.94, 65.111.17.147,
 216.15.177.196, 72.37.165.0/24, 200.184.163.0/24 }

 scrub in all

 #smtp forward
 rdr inet proto tcp from any to $ext_if port 2525 - 67.143.227.70 port 25

 #block in quick on $ext_if from filter
 block drop in quick on $ext_if from filter to box

 # Filtering: the implicit first two rules are
 pass in all
 pass out all

 # block all incoming packets but allow ssh, pass all outgoing tcp and udp
 # connections and keep state, logging blocked packets.
 block in log all

 # restrict SSH
 #pass  in  log on $ext_if 

RE: Help! FreeBSD: 88.78 KBps, Linux: 624.95 KBps

2007-07-10 Thread Ted Mittelstaedt

One other thing you can try - set the ethernet adapter to 10BaseT half
duplex
and see if it gets better.

Ted

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Kyrre Nygård
 Sent: Tuesday, July 10, 2007 7:12 AM
 To: [EMAIL PROTECTED]
 Subject: Help! FreeBSD: 88.78 KBps, Linux: 624.95 KBps


 Hello.

 My friend is switching to Linux because FreeBSD is failing on him.

 When downloading a file from a FreeBSD box and a Linux box on the same
 network, the FreeBSD box got 88.78 KBps whereas the Linux got 624.95
 Kbps. I have no idea what's wrong, but my man isn't really into good
 information design (e.g. taking something complex and making it easy),
 so his system is a mess. Maybe some of you can help me locate where the
 problem's at?

 Thanks guys,
 Kyrre

 # ifconfig -a
 sis0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 options=8VLAN_MTU
 inet6 fe80::20e:a6ff:fe53:d066%sis0 prefixlen 64 scopeid 0x1
 inet 67.143.227.66 netmask 0xfff8 broadcast 67.143.227.71
 inet 67.143.227.67 netmask 0x broadcast 67.143.227.67
 inet 67.143.227.68 netmask 0x broadcast 67.143.227.68
 inet 67.143.227.69 netmask 0x broadcast 67.143.227.69
 inet 67.143.227.70 netmask 0x broadcast 67.143.227.70
 inet 67.143.231.97 netmask 0x broadcast 67.143.231.97
 inet 67.143.231.98 netmask 0x broadcast 67.143.231.98
 inet 67.143.231.99 netmask 0x broadcast 67.143.231.99
 inet 67.143.231.100 netmask 0x broadcast 67.143.231.100
 inet 67.143.231.101 netmask 0x broadcast 67.143.231.101
 inet 67.143.231.102 netmask 0x broadcast 67.143.231.102
 ether 00:0e:a6:53:d0:66
 media: Ethernet autoselect (100baseTX full-duplex)
 status: active
 plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500
 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
 inet6 ::1 prefixlen 128
 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
 inet 127.0.0.1 netmask 0xff00
 pflog0: flags=141UP,RUNNING,PROMISC mtu 33208

 #cat /etc/rc.conf
 ifconfig_sis0=inet 67.143.227.66  netmask 255.255.255.248
 defaultrouter=67.143.227.65
 hostname=his.box~com

 ifconfig_sis0_alias0=67.143.227.67  netmask 0x
 ifconfig_sis0_alias1=67.143.227.68  netmask 0x
 ifconfig_sis0_alias2=67.143.227.69  netmask 0x
 ifconfig_sis0_alias3=67.143.227.70  netmask 0x
 ifconfig_sis0_alias4=67.143.231.97  netmask 0x
 ifconfig_sis0_alias5=67.143.231.98  netmask 0x
 ifconfig_sis0_alias6=67.143.231.99  netmask 0x
 ifconfig_sis0_alias7=67.143.231.100 netmask 0x
 ifconfig_sis0_alias8=67.143.231.101 netmask 0x
 ifconfig_sis0_alias9=67.143.231.102 netmask 0x

 kern.ipc.maxsockbuf=8388608
 net.inet.tcp.sendspace=3217968
 net.inet.tcp.recvspace=3217968
 net.inet.tcp.rfc1323=1

 syslogd_enable=YES
 syslogd_flags=-4 -v -v -s -s -l /etc/namedb/var/run/log
 stunnel_enable=YES
 pf_enable=YES
 pflog_enable=YES

 sshd_enable=YES
 inetd_enable=YES
 inetd_flags=-wWl
 named_enable=YES
 named_program=/usr/local/sbin/named
 named_flags=-u bind -c /etc/namedb/named.conf
 mysql_enable=YES
 apache2_enable=YES
 apache2ssl_enable=YES
 sendmail_enable=NONE
 courier_authdaemond_enable=YES
 courier_imap_imapd_enable=YES
 courier_imap_imapdssl_enable=YES
 courier_imap_imapd_ssl_enable=YES
 courier_imap_pop3dssl_enable=YES
 courier_imap_pop3d_ssl_enable=YES
 sqwebmaild_enable=YES
 spamd_enable=YES
 spamd_flags=-d -q -v -x -r /var/run/spamd.pid
 clamav_clamd_enable=YES
 clamav_freshclam_enable=YES
 svscan_enable=YES
 snmpd_enable=YES
 proftpd_enable=YES

 usbd_enable=YES

 clear_tmp_enable=YES
 update_motd=NO

 linux_enable=YES

 --

 # cat /etc/pf.conf
 ext_if=sis0   # replace with actual external interface name i.e., dc0
 loc_if=lo0# lo0 - local interface 127.0.0.1
 table box { 67.143.227.66, 67.143.227.67, 67.143.227.68,
 67.143.227.69, 67.143.227.70 67.143.231.97 67.143.231.98 67.143.231.99
 67.143.231.100 67.143.231.101 67.143.231.102}
 table customers { 205.209.177.60 }
 table friends { 67.143.227.66, 128.242.160.3, 68.83.182.43,
 66.252.8.133 }
 table filter { 222.152.0.43, 219.89.75.39, 222.152.3.100,
 222.152.4.82, 65.175.125.87, 59.188.133.195, 59.59.154.71,
 222.245.97.116, 201.141.212.230, 208.53.3.92, 124.163.176.58,
 213.230.128.226, 208.69.32.130, 65.175.125.94, 65.111.17.147,
 216.15.177.196, 72.37.165.0/24, 200.184.163.0/24 }

 scrub in all

 #smtp forward
 rdr inet proto tcp from any to $ext_if port 2525 - 67.143.227.70 port 25

 #block in quick on $ext_if from filter
 block drop in quick on $ext_if from filter to box

 # Filtering: the implicit first two rules are
 pass in all
 pass out all

 # block all incoming packets but allow ssh, pass all outgoing tcp and udp
 # connections and keep state, logging blocked packets.
 block in 

Re: gpg-agent

2007-07-10 Thread Pollywog
On Tuesday 10 July 2007 19:24:33 Matt Emmerton wrote:
  I have been having trouble getting gpg-agent to work. kgpg complained

 about

  the agent not running.  I added this to my ~/.bashrc:
 
  GPG_TTY=`tty`
  export GPG_TTY
 
  This seems to have taken care of the problem but it only works when my

 default

  shell is bash.  If my shell is tcsh, it doesn't work.  This is what I
  have

 in

  my ~/.cshrc:
 
  setenv GPG_TTY tty
 
  Apparently this is wrong.  Any ideas as to what I can try?

 I noticed that you're using backticks, so GPG_TTY gets set to the output of
 the tty command - not the text tty itself.
 Perhaps you want this?

 setenv GPG_TTY `tty`


Thanks, I forgot to put in the backticks.

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