Re: BSDStats Report for December 1st, 2006

2006-12-08 Thread Abdullah Al-Marrie

KEY='8a0283ceb2478ad5bec8e611dfc6299b'
TOKEN='oc0f+hmaYdsqXkcC+UqfrUKB+a1JiYX8pJHB6oYPIEY='
VERSION=5.0


On 12/7/06, Marc G. Fournier [EMAIL PROTECTED] wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Can you email me the output of /var/db/bsdstats?

- --On Thursday, December 07, 2006 13:38:28 +0300 Abdullah Al-Marrie
[EMAIL PROTECTED] wrote:

 Hello,

 I'm using it in my laptop, but I don't see my country State of Qatar
 in http://www.bsdstats.org/countries.php

 Is it supported?

 Thank you,

 -Abdullah



- 
Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFeADH4QvfyHIvDvMRAuYtAKCftqpwXxhFc2wtmAMbHnMTSQ7r7QCeI0JH
15AmGUXeq9zhyO2UkNgE4y4=
=f0xv
-END PGP SIGNATURE-



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


Re: Which version to use ( Xeon 64 bits )

2006-12-08 Thread Frank Bonnet

Vince wrote:

Vince wrote:





Sorry lacking coffeee this morning I mean of course

/pub/FreeBSD/releases/amd64/ISO-IMAGES/6.2

/me goes back to sleep now.
Vince

Vince,

OK i'm going to have a try with it
I'll let you know how it worked.


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


Re: BSDStats Report for December 1st, 2006

2006-12-08 Thread Marc G. Fournier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



- --On Friday, December 08, 2006 11:20:23 +0300 Abdullah Al-Marrie 
[EMAIL PROTECTED] wrote:

 KEY='8a0283ceb2478ad5bec8e611dfc6299b'
 TOKEN='oc0f+hmaYdsqXkcC+UqfrUKB+a1JiYX8pJHB6oYPIEY='
 VERSION=5.0

Thanks, fixed ...




 On 12/7/06, Marc G. Fournier [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 Can you email me the output of /var/db/bsdstats?

 - --On Thursday, December 07, 2006 13:38:28 +0300 Abdullah Al-Marrie
 [EMAIL PROTECTED] wrote:

  Hello,
 
  I'm using it in my laptop, but I don't see my country State of Qatar
  in http://www.bsdstats.org/countries.php
 
  Is it supported?
 
  Thank you,
 
  -Abdullah



 - 
 Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
 Email . [EMAIL PROTECTED]  MSN . [EMAIL 
 PROTECTED]
 Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.5 (FreeBSD)

 iD8DBQFFeADH4QvfyHIvDvMRAuYtAKCftqpwXxhFc2wtmAMbHnMTSQ7r7QCeI0JH
 15AmGUXeq9zhyO2UkNgE4y4=
 =f0xv
 -END PGP SIGNATURE-





- 
Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFeTc04QvfyHIvDvMRAkWKAJ4tVmj9sXxnYWhRY22aJ1jsJSoqsQCg1ne2
0v7Hq3vGOfZyvoz66aRsjQc=
=AkAY
-END PGP SIGNATURE-

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


Re: access wikipedia (walk through the great firewall of China)

2006-12-08 Thread 张韡武
在 2006-12-08五的 06:53 +,Matthew Seaman写道:
 ??? wrote:
  Hello. My office use this method to access wikipedia behind the great
  firewall of China:
  
  1) we have a server in europ, let's call it server;
  2) I run this command on my desktop:
  $ ssh -L 80:en.wikipedia.org:80 server;
  3) everybody in the office edit /etc/hosts, add this line:
  [my_ip_addr] en.wikipedia.org
  
  So my computer become a 'proxy'.
  
  The trouble is I have to keep the ssh running there. The 'proxy' will
  not automatically set up next time I reboot my computer.
  
  Is it possible to install some software to run as a daemon and do this
  proxy?
  
  I think of stunnel, but I have too few knowledge to know if stunnel can
  do this.
 
 There are two general possibilities here:
 
   a) A Web cache/proxy -- squid is the canonical example, but you can
  do this sort of stuff in apache very readily.  I think apache 
  would be a good place for you to start, as most sysadmins have
  at least a passing acquaintance with its configuration.
 
  You'ld need set up a proxy on your European server to redirect
  any web traffic to en.wikipedia.org -- your users would use the
  service exactly as they do at the moment, but they'd put the
  IP of the European server into their hosts file, rather than
  your desktop.  If that is a problem, then you can chain together
  a series of proxies starting with your desktop machine, then
  the European server -- but performance may be a tad slow.

We have a lot of problems accessing any sort of proxy outside China, the
latest technology in the great firewall of China, if you had read the
newspaper, is content-based filtering. 443 port of many foreign servers
are also being blocked.

 
   b) IPsec or other VPN tunnel between your server in Europe and a
  local firewall -- preferably your local firewall should be on
  the egress path from your LAN.  Then you can arrange routing
  so that packets to destinations in Europe pass through the 
  tunnel and use your European server as the gateway to the
  internet.  In this case, there shouldn't be any need for your
  users to have to spoof the address of en.wikipedia.org in 
  their hosts files.  IPSec comes standard with FreeBSD, but
  you'ld probably want to combine it with pf(4) or other firewall
  software which you can use to control redirecting appropriate
  packets through your tunnel.  If IPSec is too mind-mangling
  for you, OpenVPN (in ports) is a pretty good alternative.
 
  You'll almost definitely want to configure a NAT gateway on
  the European server.
  
 Either of these solutions will run automatically on system startup, if
 so configured.  Option (a) will send your web traffic across the net
 in clear-text unless you can chain two proxies together and get creative
 about using HTTPS.  Or you can combine both approaches: use a local HTTP
 proxy with a VPN tunnel to your European server.

Thank you very much for your detailed explanation, I believe me and many
other people on the list is going to benefit from it.

Currently the only website we want very much but being blocked is
wikipedia. Other websites being blocked are mostly about politics and
news, which we are not interested (I think most people in China are not
interested what foreign news says, and getting used to ignore 3rd party
politic information). Wikipedia is an exception because it has a lot of
useful information, not just politics. So basically if wikipedia is
accessible, we are happy. Your general solution looks really complicated
to me that I would like to do it as weekend fun, but probably not going
to be able to maintain it.

Information is like this: you don't need to block all information in
order to prevent people knowing them, you only need to put barrier
higher. There are many ways to workaround (walk-through) the Great
Firewall, but every time when I look into different complicated
solutions, I say to myself is it worthy to spend so much time on it? And
ends up saying to myself, save the time, let's just don't read these
news.

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


Re: Unable to build jackit-0.102.20

2006-12-08 Thread Gerard Seibert
On Thursday December 07, 2006 at 04:57:31 (PM) Kay Abendroth wrote:


 Gerard Seibert wrote:
  On Thursday December 07, 2006 at 03:39:59 (PM) Robert Huff wrote:
  
  
  Gerard Seibert writes:
 
   I have tried for two days now to update 'jacket' but without
   success.
 Built for me six hours ago under -Current.
  
  It doesn't seem to be working here.
  
  FreeBSD scorpio.seibercom.net 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #0:
 
 I build jackit some hours ago without problems on a recent RELENG_6_2.
 Does every build attempt stop at the same position?

Yes, the build log is identical.

I did the following:

1) Deleted everything from /usr/ports/distfiles
2) portsclean -C -L
3) Pkgdb -Fu(no problems detected)
4) portsnap
5) Cleared out the /tmp and /var/tmp directories
6) Rebooted

The exact same problem happens when I attempt to build the port.

-- 
Gerard

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


Dell PowerEdge 1950 with PERC 5/i SAS

2006-12-08 Thread Daniel Foster

Hi,

I've seen at least one report of 6.1 being run successfully on a Dell 
PowerEdge 1950 with a PERC 5/i controller using SAS RAID.


I can install 6.1 without any problems but when it comes to boot from 
the RAID array, kernel cannot be found by the loader.


What am I missing?

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


Re: Which version to use ( Xeon 64 bits )

2006-12-08 Thread Frank Bonnet

Frank Bonnet wrote:

Vince wrote:

Vince wrote:





Sorry lacking coffeee this morning I mean of course

/pub/FreeBSD/releases/amd64/ISO-IMAGES/6.2

/me goes back to sleep now.
Vince

Vince,

OK i'm going to have a try with it
I'll let you know how it worked.




Well :-( it does not work it seems the Adaptec patch for serverRAID 8k
is not present in 6.2-RC1 as sysinstall does not find any disk

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


Re: access wikipedia (walk through the great firewall of China)

2006-12-08 Thread Fabian Keil
张韡武 [EMAIL PROTECTED] wrote:

 Hello. My office use this method to access wikipedia behind the great
 firewall of China:
 
 1) we have a server in europ, let's call it server;
 2) I run this command on my desktop:
 $ ssh -L 80:en.wikipedia.org:80 server;
 3) everybody in the office edit /etc/hosts, add this line:
 [my_ip_addr] en.wikipedia.org
 
 So my computer become a 'proxy'.
 
 The trouble is I have to keep the ssh running there. The 'proxy' will
 not automatically set up next time I reboot my computer.

I think it would be a lot easier if you'd just install Tor
(http://tor.eff.org/).

If you use the security/tor-devel port, you can run it on your company's
gateway and build an intercepting proxy with PF (or natd but I haven't
tried that). This way you wouldn't have to touch the client systems at
all.

Currently the great firewall of Wikipedia prevents Tor users
from contributing, but if you're only interested in reading,
this shouldn't be a problem.

Note that Tor doesn't hide the fact that you are using it.
My understanding is that Tor usage is currently still
legal in China (or at least not prosecuted) and quite popular
there, but of course you should confirm that before you start using
it on an IP address that can be traced back to you.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: access wikipedia (walk through the great firewall of China)

2006-12-08 Thread Vince Hoffman



On Fri, 8 Dec 2006, ~_ wrote:


Hello. My office use this method to access wikipedia behind the great
firewall of China:

1) we have a server in europ, let's call it server;
2) I run this command on my desktop:
$ ssh -L 80:en.wikipedia.org:80 server;
3) everybody in the office edit /etc/hosts, add this line:
[my_ip_addr] en.wikipedia.org

So my computer become a 'proxy'.

The trouble is I have to keep the ssh running there. The 'proxy' will
not automatically set up next time I reboot my computer.

Is it possible to install some software to run as a daemon and do this
proxy?

I think of stunnel, but I have too few knowledge to know if stunnel can
do this.


maybe autossh ?
http://www.harding.motd.ca/autossh/
Its in ports
Port:   autossh-1.4a
Path:   /usr/ports/security/autossh
Info:   Automatically restart SSH sessions and tunnels

Otherwise as many other people have said there are may better ways to do 
this.


Vince


___
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: Which version to use ( Xeon 64 bits ) egg and chicken problem ...

2006-12-08 Thread Frank Bonnet

Frank Bonnet wrote:

Frank Bonnet wrote:

Vince wrote:

Vince wrote:





Sorry lacking coffeee this morning I mean of course

/pub/FreeBSD/releases/amd64/ISO-IMAGES/6.2

/me goes back to sleep now.
Vince

Vince,

OK i'm going to have a try with it
I'll let you know how it worked.




Well :-( it does not work it seems the Adaptec patch for serverRAID 8k
is not present in 6.2-RC1 as sysinstall does not find any disk



this is an egg and chicken problem !

How to rebuild a new patched amd64 ISO as I only have *this* 64 bits machine
and cannot acces to hard disks ?

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


ACPI-1304 SMP porblem

2006-12-08 Thread Ispas Dorin
Timecounter i8254 frequency 1193182 Hz quality 0
 CPU: Intel(R) Pentium(R) D CPU 3.00GHz (3000.01-MHz 686-class CPU)
   Origin = GenuineIntel  Id = 0xf62  Stepping = 2
 
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
   Features2=0xe43dSSE3,RSVD2,MON,DS_CPL,VMX,CNTX-ID,CX16,b14,b15
   AMD Features=0x2010NX,LM
   AMD Features2=0x1LAHF
   Cores per package: 2
 real memory  = 1073545216 (1023 MB)
 avail memory = 1037230080 (989 MB)
 ACPI APIC Table: A M I  OEMAPIC 
 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1
 ioapic0: Changing APIC ID to 2
 ioapic0 Version 2.0 irqs 0-23 on motherboard
 kbd1 at kbdmux0
 acpi0: A M I OEMRSDT on motherboard
 acpi_bus_number: can't get _ADR
 acpi_bus_number: can't get _ADR
 acpi_bus_number: can't get _ADR
 acpi_bus_number: can't get _ADR
 acpi0: Power Button (fixed)
 acpi_bus_number: can't get _ADR
 acpi_bus_number: can't get _ADR
 Timecounter ACPI-fast frequency 3579545 Hz quality 1000
 acpi_timer0: 24-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
 cpu0: ACPI CPU on acpi0
 ACPI-1304: *** Error: Method execution failed [\\_PR_.CPU1._PDC] (Node 
0xc4eeb240), AE_BAD_HEADER
 acpi_throttle0: ACPI CPU Throttling on cpu0
 cpu1: ACPI CPU on acpi0
 ACPI-1304: *** Error: Method execution failed [\\_PR_.CPU2._PDC] (Node 
0xc4eeb140), AE_BAD_HEADER
 acpi_throttle1: ACPI CPU Throttling on cpu1
 acpi_throttle1: failed to attach P_CNT
 
 this i took from /var/run/dmesg.boot
 SMP don`t works due to acpi problem .
 what can i do to fix it and make SMP work? 

 
-
Want to start your own business? Learn how on Yahoo! Small Business.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Unable to build jackit-0.102.20

2006-12-08 Thread Kay Abendroth
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Gerard Seibert wrote:
 On Thursday December 07, 2006 at 04:57:31 (PM) Kay Abendroth wrote:
 
 
 Gerard Seibert wrote:
 On Thursday December 07, 2006 at 03:39:59 (PM) Robert Huff wrote:


 Gerard Seibert writes:

  I have tried for two days now to update 'jacket' but without
  success.
Built for me six hours ago under -Current.
 It doesn't seem to be working here.

 FreeBSD scorpio.seibercom.net 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #0:
 I build jackit some hours ago without problems on a recent RELENG_6_2.
 Does every build attempt stop at the same position?
 
 Yes, the build log is identical.
 
 I did the following:
 
 1) Deleted everything from /usr/ports/distfiles
 2) portsclean -C -L
 3) Pkgdb -Fu  (no problems detected)
 4) portsnap
 5) Cleared out the /tmp and /var/tmp directories
 6) Rebooted
 
 The exact same problem happens when I attempt to build the port.

Could you comment all compiler flags you set in /etc/make.conf and rerun
the build? Please post your build-log again after that if sth. changes.

Kay
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (FreeBSD)

iQEVAwUBRXltrP6xkxz4DngiAQgNOAgAgMdCAzdE2+1G6txoOr4C6lTVFdZ6ELDr
jH+0WplJ7vNN7/0/QZKpwPT+m0ntEsLczOJ9NpwfTYxnF8nWeiC7ncPyXLcHR5j3
BgOFkWYwVRnRbe9bvony5xIZyV8rYszP7Tjy8Ci8mJkxPU1j9Stq71avzOp8tYpT
0WA8yfmoO0ldOlLZ2AQUMRikMRD9U2JASyTUptjmc/2KNfVQiR5P6XbzO5UmPnud
hHyF7V/hCHm3WngRezGszziyvaYm3k3hl7An5EdbeOlQpxbvVfDLg3AwClijMVIG
L2kRmeDbYV6LophVKY/9ebJjOwTAgf1HwypXikeAma0lT0+oyIZ7QA==
=uF1T
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


tools for bdb

2006-12-08 Thread Martin Schweizer
Hello

I need to manipulate my sasldb because I copy this db from one server 
to an other server. After the successfull copy I have to change some stuff in 
that db file with the tools db_dump and db_load but I have no idea where I get 
this tools from. Any hints are welcome.

-- 

Regards

Martin 
[EMAIL PROTECTED]

PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon
Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch;
public key : http://www.pc-service.ch/pgp/public_key.asc; 
fingerprint: EC21 CA4D 5C78 BC2D 73B7  10F9 C1AE 1691 D30F D239;



pgp1Lpv56oQos.pgp
Description: PGP signature


Portupgrade hung. What do I do?

2006-12-08 Thread Henry Lenzi

Hi --

I was following the path of enlightenment to gnome upgrade, and the
portupgrade process hung.
It is a fact, there's nothing I can do about it.
My question is: how do I gracefully make this thing stop (i.e., not
smash the computer)? Ctrl-C doesn't work, for instance.
And what do I do afterwards, hygiene-wise?

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


Re: Portupgrade hung. What do I do?

2006-12-08 Thread Henry Lenzi

Hi * --

Funny thing, ps ax does to tell me the PID of portupgrade.
The process stopped while fetch a postgresql tarball. ps should list
portupgrade or at least fetch, right?

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


Re: access wikipedia (walk through the great firewall of China)

2006-12-08 Thread John Nielsen
On Friday 08 December 2006 07:12, Vince Hoffman wrote:
 On Fri, 8 Dec 2006, å¼ é~_¡æ­¦ wrote:
  Hello. My office use this method to access wikipedia behind the great
  firewall of China:
 
  1) we have a server in europ, let's call it server;
  2) I run this command on my desktop:
  $ ssh -L 80:en.wikipedia.org:80 server;
  3) everybody in the office edit /etc/hosts, add this line:
  [my_ip_addr] en.wikipedia.org
 
  So my computer become a 'proxy'.
 
  The trouble is I have to keep the ssh running there. The 'proxy' will
  not automatically set up next time I reboot my computer.
 
  Is it possible to install some software to run as a daemon and do this
  proxy?
 
  I think of stunnel, but I have too few knowledge to know if stunnel can
  do this.

 maybe autossh ?
 http://www.harding.motd.ca/autossh/
 Its in ports
 Port:   autossh-1.4a
 Path:   /usr/ports/security/autossh
 Info:   Automatically restart SSH sessions and tunnels

Autossh might do this better/more elegantly, but a quick and dirty solution 
would be something like this:

1) Set up certificates so that ssh server from your machine will 
automatically log in to the server without prompting for a password.

2) Write a script to see if ssh is running and run it if it's not, e.g.

#!/bin/sh
netstat -na | grep LISTEN | grep 80 || \
/usr/bin/ssh -fnN -L 80:en.wikipedia.org:80 server

3) Add an entry to your crontab to run the script every X minutes.

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


Re: NTPD not keeping time

2006-12-08 Thread Kris Anderson
Just a follow up,

Turned off NTPD and the clock is still drifting.

I set the clock around 1200 on Dec 7th, and the time
is reported as Dec 7th 22:20 PST 2006.




 

Have a burning question?  
Go to www.Answers.yahoo.com and get answers from real people who know.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Building system libs with debugging symbols

2006-12-08 Thread Micah


The gnome maintainers need me to rebuild libpthread and libc with 
debugging symbols in order to get a more complete stack trace of a 
firefox crash. How exactly do I go about doing that, since those libs 
are part of world? Do I have to rebuild world or can I just rebuild 
those libs? What mods to make.conf or environmental variables do I need 
to set?



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


RE: NTPD not keeping time

2006-12-08 Thread Kris Anderson
After poking about vmware's web site I've done the
following.

Installed VMWare tools for FreeBSD and activated it.
Also, from the toolbox I checked of sync clock.

Not yet implemented: /boot/loader.conf and disabling
APIC. I'll try this later.


 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Building system libs with debugging symbols

2006-12-08 Thread Dan Nelson
In the last episode (Dec 08), Micah said:
 The gnome maintainers need me to rebuild libpthread and libc with
 debugging symbols in order to get a more complete stack trace of a
 firefox crash. How exactly do I go about doing that, since those libs
 are part of world? Do I have to rebuild world or can I just rebuild
 those libs? What mods to make.conf or environmental variables do I
 need to set?

I usually do this by setting DEBUG_FLAGS=-g in src/lib/blah/Makefile
and just doing the make depend  make  make install routine in that
one directory.  It's perfectly safe to do this if your source tree
matches your installed system.  Doing it with newer sources is trickier
since you may have to manually update includes or other dependant
libraries, and building the whole world is usually easier.

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


How to get best results from FreeBSD-questions

2006-12-08 Thread Greg Lehey

How to get the best results from FreeBSD questions.
===

Last update $Date: 2005/08/10 02:21:44 $

This is a regular posting to the FreeBSD questions mailing list.  If
you got it in answer to a message you sent, it means that the sender
thinks that at least one of the following things was wrong with your
message:

- You left out a subject line, or the subject line was not appropriate.
- You formatted it in such a way that it was difficult to read.
- You asked more than one unrelated question in one message.
- You sent out a message with an incorrect date, time or time zone.
- You sent out the same message more than once.
- You sent an 'unsubscribe' message to FreeBSD-questions.

If you have done any of these things, there is a good chance that you
will get more than one copy of this message from different people.
Read on, and your next message will be more successful.

This document is also available on the web at
http://www.lemis.com/questions.html.

=

Contents:

I:Introduction
II:   How to unsubscribe from FreeBSD-questions
III:  Should I ask -questions or -hackers?
IV:   How to submit a question to FreeBSD-questions
V:How to answer a question to FreeBSD-questions

I: Introduction
===

This is a regular posting aimed to help both those seeking advice from
FreeBSD-questions (the newcomers), and also those who answer the
questions (the hackers).

   Note that the term hacker has nothing to do with breaking
   into other people's computers.  The correct term for the latter
   activity is cracker, but the popular press hasn't found out
   yet.  The FreeBSD hackers disapprove strongly of cracking
   security, and have nothing to do with it.

In the past, there has been some friction which stems from the
different viewpoints of the two groups.  The newcomers accused the
hackers of being arrogant, stuck-up, and unhelpful, while the hackers
accused the newcomers of being stupid, unable to read plain English,
and expecting everything to be handed to them on a silver platter.  Of
course, there's an element of truth in both these claims, but for the
most part these viewpoints come from a sense of frustration.

In this document, I'd like to do something to relieve this frustration
and help everybody get better results from FreeBSD-questions.  In the
following section, I recommend how to submit a question; after that,
we'll look at how to answer one.

II:  How to unsubscribe from FreeBSD-questions
==

When you subscribed to FreeBSD-questions, you got a welcome message
from [EMAIL PROTECTED]  In this message, amongst
other things, it told you how to unsubscribe.  Here's a typical
message:

  Welcome to the freebsd-questions@freebsd.org mailing list!

If you ever want to unsubscribe or change your options (eg, switch to
or from digest mode, change your password, etc.), visit your
subscription page at:

  http://lists.freebsd.org/mailman/options/freebsd-questions/[EMAIL PROTECTED]
  
(obviously, substitute your mail address for [EMAIL PROTECTED]).  You can
also make such adjustments via email by sending a message to:

  [EMAIL PROTECTED]
  
with the word 'help' in the subject or body (don't include the
quotes), and you will get back a message with instructions.

You must know your password to change your options (including
changing the password, itself) or to unsubscribe.
  
Normally, Mailman will remind you of your freebsd.org mailing list
passwords once every month, although you can disable this if you
prefer.  This reminder will also include instructions on how to
unsubscribe or change your account options.  There is also a button on
your options page that will email your current password to you.

  Here's the general information for the list you've
  subscribed to, in case you don't already have it:

  FREEBSD-QUESTIONS   User questions
  This is the mailing list for questions about FreeBSD.  You should not
  send how to questions to the technical lists unless you consider the
  question to be pretty technical.

Normally, unsubscribing is even simpler than the message suggests: you
don't need to specify your mail ID unless it is different from the one
which you specified when you subscribed.

If Majordomo replies and tells you (incorrectly) that you're not on
the list, this may mean one of two things:

  1.  You have changed your mail ID since you subscribed.  That's where
  keeping the original message from majordomo comes in handy.  For
  example, the sample message above shows my mail ID as
  [EMAIL PROTECTED]  Since then, I have changed it to
  [EMAIL PROTECTED]  If I were to try to remove [EMAIL PROTECTED] from
  the list, it would fail: I would have to specify the name with
  which I joined.

  2.  You're subscribed to a mailing list which is subscribed to
  

The Complete FreeBSD: errata and addenda

2006-12-08 Thread Greg Lehey
The trouble with books is that you can't update them the way you can a web page
or any other online documentation.  The result is that most leading edge
computer books are out of date almost before they are printed.  Unfortunately,
The Complete FreeBSD, published by O'Reilly, is no exception.  Inevitably, a
number of bugs and changes have surfaced.

The Complete FreeBSD has been through a total of five editions, including its
predecessor Installing and Running FreeBSD.  Two of these have been reprinted
with corrections.  I maintain a series of errata pages.  Start at
http://www.lemis.com/errata-4.html to find out how to get the errata
information.

Note also that the book has now been released for free download in PDF
form.  Instead of downloading the changed pages, you may prefer to
download the entire book.  See http://www.lemis.com/grog/Documentation/CFBSD/ 
for more information.

Have you found a problem with the book, or maybe something confusing?
Please let me know: I'm no longer constantly updating it, but I may be
able to help

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


Re: how do I see security logs without turning on sendmail?

2006-12-08 Thread Tuareg

On 12/5/06, Lane [EMAIL PROTECTED] wrote:


On Tuesday 05 December 2006 21:49, Wasp King wrote:
 is there a way that one can specify a log place to see
 daily logs like you receive from [EMAIL PROTECTED], when
 sendmail is turned on?

 there must be a way to enable only local mail
 delivery...but I am not sure how..

 would like to shut down sendmail but want to see
 security logs.

 thanks.

 Zach
 using FreeBSD 4.2 and sendmail 8.x (maybe).




___
IIRC, sendmail has three controlling values in /etc/rc.conf:

sendmail_enable=YES
sendmail_enable=NO
and
sendmail_enable=NONE

The third value, NONE, causes the boot process to ignore any attempt to
start sendmail.

The second value, NO, causes the boot process to start sendmail for
local
delivery, only (i.e. do NOT accept inbound connections from external
hosts).

The first value, YES, causes the boot process to start sendmail for
outgoing
and incoming SMTP connections.

There are many tweaks that you can use in /etc/rc.conf - (refer
to /etc/defaults/rc.conf) - that will allow various flavors of sendmail
usage.  See also, /etc/rc.sendmail.

In your case sendmail_enable=NO should allow the local system to
send periodic information to [EMAIL PROTECTED], or whatever alias you use
in /etc/mail/aliases, while disallowing external hosts from sending email
by
way of the local host.  Note that this requires that you pay heed
to /etc/mail/Makefile and associated README documentation
in /usr/src/contrib/sendmail and below.

Best of luck!


lane




Hi...  Where I'm working, have many servers with FreeBSD 4.x and 5.x, this
servers are enable to send mail but the daemon of sendmail is not launched.

Now, we have installed FreeBSD 6.1 STABLE, but can't reply this schema.

Which file needs to be modified in /etc/mail to allow the server to send
emails to our real mailserver so we can receive the results of some scripts
without launching the daemon of sendmail?

We have tried using sendmail=NO, in rc.conf, but we only get this
messages:

[EMAIL PROTECTED] Connecting to [127.0.0.1] via relay...
[EMAIL PROTECTED] Deferred: Permission denied

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


compilation problems with some code from Linux

2006-12-08 Thread Andrew Falanga

Hi,

I'm trying to port some code from Linux to FreeBSD and I've got an issue
that revolves around something I've never dealt with before.  The code
includes the following header:

#include sys/ucred.h

Apparently, program is attempting to make use of the xucred structure
defined in there, because the rest of the stuff in the file seems to be for
the kernel.  However, when I try to compile, gcc continually bails with the
following error (among others), NGROUPS was not declared in this scope.
The NGROUPS appears to be a macro, but it's not defined earlier on.  Would
anyone here know where it's defined so I can include that file too?

Secondly, I'm also getting errors because gcc can't find sys/vfs.h
either.  True enough, there isn't any vfs.h file in /usr/include/sys.  Since
this file is in Linux, what should I include for FreeBSD?

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


Re: how do I do this special proxy?

2006-12-08 Thread Chuck Swiger

On Dec 7, 2006, at 9:53 PM, 张韡武 wrote:

We got a Windows file server in the next office, I have a FreeBSD host
in my office. I wish to let it listen on 135/139 port (I am not sure
which one is used for Windows file sharing), and forward any  
request to

the Windows file server as if this FreeBSD is accessing the windows
share itself. Also it forward the packet from Windows share server to
client. To the client, the FreeBSD host IS the windows share server.
However the Windows share server always think the FreeBSD host is the
client. So this is a proxy I guess.

Is it possible?


The Samba software might have a filesharing proxy, but normally one  
would use a VPN solution like OpenVPN in the ports to access a remote  
fileserver.


--
-Chuck

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


Re: how do I see security logs without turning on sendmail?

2006-12-08 Thread Lane
On Friday 08 December 2006 11:16, Tuareg wrote:
 On 12/5/06, Lane [EMAIL PROTECTED] wrote:
  On Tuesday 05 December 2006 21:49, Wasp King wrote:
   is there a way that one can specify a log place to see
   daily logs like you receive from [EMAIL PROTECTED], when
   sendmail is turned on?
  
   there must be a way to enable only local mail
   delivery...but I am not sure how..
  
   would like to shut down sendmail but want to see
   security logs.
  
   thanks.
  
   Zach
   using FreeBSD 4.2 and sendmail 8.x (maybe).
 
  _
 __ IIRC, sendmail has three controlling values in /etc/rc.conf:
 
  sendmail_enable=YES
  sendmail_enable=NO
  and
  sendmail_enable=NONE
 
  The third value, NONE, causes the boot process to ignore any attempt to
  start sendmail.
 
  The second value, NO, causes the boot process to start sendmail for
  local
  delivery, only (i.e. do NOT accept inbound connections from external
  hosts).
 
  The first value, YES, causes the boot process to start sendmail for
  outgoing
  and incoming SMTP connections.
 
  There are many tweaks that you can use in /etc/rc.conf - (refer
  to /etc/defaults/rc.conf) - that will allow various flavors of sendmail
  usage.  See also, /etc/rc.sendmail.
 
  In your case sendmail_enable=NO should allow the local system to
  send periodic information to [EMAIL PROTECTED], or whatever alias you use
  in /etc/mail/aliases, while disallowing external hosts from sending email
  by
  way of the local host.  Note that this requires that you pay heed
  to /etc/mail/Makefile and associated README documentation
  in /usr/src/contrib/sendmail and below.
 
  Best of luck!
 
 
  lane

 Hi...  Where I'm working, have many servers with FreeBSD 4.x and 5.x, this
 servers are enable to send mail but the daemon of sendmail is not launched.

 Now, we have installed FreeBSD 6.1 STABLE, but can't reply this schema.

 Which file needs to be modified in /etc/mail to allow the server to send
 emails to our real mailserver so we can receive the results of some scripts
 without launching the daemon of sendmail?

 We have tried using sendmail=NO, in rc.conf, but we only get this
 messages:

 [EMAIL PROTECTED] Connecting to [127.0.0.1] via relay...
 [EMAIL PROTECTED] Deferred: Permission denied

 Thank you for your help in advance.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
Tuareg,

Your problem is likely related to ipfw, or firewall_type, firewall_enable 
in /etc/rc.conf.

The permission denied error implies that your firewall ruleset is preventing 
the outgoing connection.  Try:

ipfw show

to see your current firewall rules.

Also read through /etc/rc.firewall and /etc/defaults/rc.conf to get some more 
information on the firewall issues.

When you've gotten that resolved you should have enough information to get 
sendmail working the way you want.

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


Re: compilation problems with some code from Linux

2006-12-08 Thread Lane
On Friday 08 December 2006 11:21, Andrew Falanga wrote:
 Hi,

 I'm trying to port some code from Linux to FreeBSD and I've got an issue
 that revolves around something I've never dealt with before.  The code
 includes the following header:

 #include sys/ucred.h

 Apparently, program is attempting to make use of the xucred structure
 defined in there, because the rest of the stuff in the file seems to be for
 the kernel.  However, when I try to compile, gcc continually bails with the
 following error (among others), NGROUPS was not declared in this scope.
 The NGROUPS appears to be a macro, but it's not defined earlier on.  Would
 anyone here know where it's defined so I can include that file too?

 Secondly, I'm also getting errors because gcc can't find sys/vfs.h
 either.  True enough, there isn't any vfs.h file in /usr/include/sys. 
 Since this file is in Linux, what should I include for FreeBSD?

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

I won't pretend to know exactly which header files correspond for your port, 
but in the past I've found some things that work for me:

use 

locate vfs.h

to find similar file names.  On 6.x and 5.x I see that these are possible 
candidates:

/usr/X11R6/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs.h
/usr/include/fs/devfs/devfs.h
/usr/include/sys/statvfs.h
/usr/local/include/af_vfs.h
/usr/src/sys/compat/svr4/svr4_statvfs.h
/usr/src/sys/fs/devfs/devfs.h
/usr/src/sys/nfs4client/nfs4_vfs.h
/usr/src/sys/sys/statvfs.h


But you'd have to compare the functions and structures defined in sys/vfs.h on 
linux to determine which is your best match up.

There is /usr/ports/devel/mipsel-linux-kernel-headers/ which, according to 
pkg-plist will install mipsel-linux/include/linux/vfs.h.  That may be exactly 
what you need (although it may be overkill).  Or it may be the LAST thing you 
need :)

Sometimes a porter will simply create a patch file 
in /usr/ports/portname/files that will create a skeleton version of the 
file which includes only the items you need.  I've done this for development 
on my own system.

As far as the NGROUP or other macros ... yikes!  You may have to recreate that 
functionality entirely.

I ran this:

#!/bin/sh
for each in `locate  .h | grep '\.h$'`
do
if [ -f $each ]; then
MYF=`cat $each | grep -i ngroups`
if [ x$MYF != x ]; then
echo $each : $MYF
fi
MYF=
fi
done


It could probably be done more easily with sed and some elbow grease, but it 
does show NGROUPS defined here:

/usr/X11R6/include/X11/Xos.h : #define NGROUPS 16

and 

/usr/include/sys/param.h 

among other places.

Good luck!

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


Re: compilation problems with some code from Linux

2006-12-08 Thread Giorgos Keramidas
On 2006-12-08 10:21, Andrew Falanga [EMAIL PROTECTED] wrote:
 Hi,

 I'm trying to port some code from Linux to FreeBSD and I've got
 an issue that revolves around something I've never dealt with
 before.  The code includes the following header:

 #include sys/ucred.h

 Apparently, program is attempting to make use of the xucred
 structure defined in there, because the rest of the stuff in
 the file seems to be for the kernel.  However, when I try to
 compile, gcc continually bails with the following error (among
 others), NGROUPS was not declared in this scope. The NGROUPS
 appears to be a macro, but it's not defined earlier on.  Would
 anyone here know where it's defined so I can include that file
 too?

 Secondly, I'm also getting errors because gcc can't find
 sys/vfs.h either.  True enough, there isn't any vfs.h file in
 /usr/include/sys.  Since this file is in Linux, what should I
 include for FreeBSD?

Since these interfaces are not available in FreeBSD, and they are
Linux-specific, you have to find out *why* they are used and look
for equivalent functionality in FreeBSD -- provided there *is*
something equivalent, of course.

- Giorgos

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


Configuration of Grub?

2006-12-08 Thread Karl Sinn
Hi,

I am completely new here, and I did not find the answer to my problem. Not in 
the FreeBSD Handbook and not in the Installations instruction.

I have SuSE 10.1 installed with Grub.

I wanted to try FreeBSD, and I installed it on hdd (Linux-name) I think it is 
ad3 for FreeBSD.

During the installation I chose A for automatic configuration and I 
said none for the boot-manager.

Now I wonder what I have write in the grub configuration file menu.lst to 
finally start FreeBSD?

I tried:

title FreeBSD
    kernel (hd0,1)/boot/loader root=/dev/hdd1

AND

title FreeBSD
    root (hd3,0)
    chainloader +1  


First wasmade by YaST and the second is what I found on the Internet.
None of them worked.

Where is my mistake?

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


Attempting to write a mouse driver for the GunCon2...help?

2006-12-08 Thread Tony Shadwick
---BeginMessage---

I'm trying to figure this out, and I'm not sure what to do.

The GunCon2 is a usb device intended for the PS/2.  I have it's 
communications protocol worked out, FreeBSD picks the gun up and gives 
it two devices, /dev/ugen0 and /dev/ugen0.1.  ugen0.1 is a character 
device that I can easily read everything I need from the gun.  I even 
have a perl reference driver written that uses perl and the 
X11::GuiTest module to move the pointer and click, but it's too laggy to 
be of real use.


The gun has 10 (!!!) buttons.  The trigger, A, B, C, Select, Start, and 
the control pad (4 independent buttons).


I'm not sure whether or not the OS can support a 10 button HID mouse or 
not.  I've tried just getting the gun detected and so it creates 
/dev/guncon instead of ugen (even if it really is still using the 
general purpose driver) with no luck.  I have the product ID and vendor 
ID...I'm just not getting it.  Ideally I'd like to be able to use the 
gun for MAME.  It should function just like any other mouse though. 
Aside from lag issues, I have it doing that already.


Here's a link to what I have so far:

http://forum.arcadecontrols.com/index.php?topic=60813.0

As per that link, someone wrote a driver for Linux, and also for the 
TopGun (a third party GunCon2 clone), but I'm not sure whether or not 
that code is portable.


Could anyone give me a hand with this?

Tony

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

Fwd: Attempting to write a mouse driver for the GunCon2...help?

2006-12-08 Thread Tony Shadwick
---BeginMessage---

I'm trying to figure this out, and I'm not sure what to do.

The GunCon2 is a usb device intended for the PS/2.  I have it's 
communications protocol worked out, FreeBSD picks the gun up and gives 
it two devices, /dev/ugen0 and /dev/ugen0.1.  ugen0.1 is a character 
device that I can easily read everything I need from the gun.  I even 
have a perl reference driver written that uses perl and the 
X11::GuiTest module to move the pointer and click, but it's too laggy to 
be of real use.


The gun has 10 (!!!) buttons.  The trigger, A, B, C, Select, Start, and 
the control pad (4 independent buttons).


I'm not sure whether or not the OS can support a 10 button HID mouse or 
not.  I've tried just getting the gun detected and so it creates 
/dev/guncon instead of ugen (even if it really is still using the 
general purpose driver) with no luck.  I have the product ID and vendor 
ID...I'm just not getting it.  Ideally I'd like to be able to use the 
gun for MAME.  It should function just like any other mouse though. 
Aside from lag issues, I have it doing that already.


Here's a link to what I have so far:

http://forum.arcadecontrols.com/index.php?topic=60813.0

As per that link, someone wrote a driver for Linux, and also for the 
TopGun (a third party GunCon2 clone), but I'm not sure whether or not 
that code is portable.


Could anyone give me a hand with this?

Tony

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

Attempting to write a mouse driver for the GunCon2...help?

2006-12-08 Thread Tony Shadwick
---BeginMessage---

I'm trying to figure this out, and I'm not sure what to do.

The GunCon2 is a usb device intended for the PS/2.  I have it's 
communications protocol worked out, FreeBSD picks the gun up and gives 
it two devices, /dev/ugen0 and /dev/ugen0.1.  ugen0.1 is a character 
device that I can easily read everything I need from the gun.  I even 
have a perl reference driver written that uses perl and the 
X11::GuiTest module to move the pointer and click, but it's too laggy to 
be of real use.


The gun has 10 (!!!) buttons.  The trigger, A, B, C, Select, Start, and 
the control pad (4 independent buttons).


I'm not sure whether or not the OS can support a 10 button HID mouse or 
not.  I've tried just getting the gun detected and so it creates 
/dev/guncon instead of ugen (even if it really is still using the 
general purpose driver) with no luck.  I have the product ID and vendor 
ID...I'm just not getting it.  Ideally I'd like to be able to use the 
gun for MAME.  It should function just like any other mouse though. 
Aside from lag issues, I have it doing that already.


Here's a link to what I have so far:

http://forum.arcadecontrols.com/index.php?topic=60813.0

As per that link, someone wrote a driver for Linux, and also for the 
TopGun (a third party GunCon2 clone), but I'm not sure whether or not 
that code is portable.


Could anyone give me a hand with this?

Tony

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

Re: processes not getting fair share of available disk I/O (was: Re: TCP parameters and interpreting tcpdump output )

2006-12-08 Thread Kris Kennaway
On Thu, Dec 07, 2006 at 05:41:51PM +, Dieter wrote:

  However, I don't know what you mean by data is lost.  Data should
  never be lost from the filesystem regardless of how slow the I/O is
  happening, unless there's something else going wrong (e.g. driver
  bug).
  
  Also, rtprio should not be used in general - see the manpage.  Were
  you using rtprio in your original scenario?  It can easily cause
  resource starvation.
 
 I have data arriving on Ethernet.  The data rate is 2.5 MB/s max,
 but the other end only has a small buffer.  If the BSD box doesn't read
 the port fast enough, the data is lost.  I have a C program (port2file)
 reading from the port into a *large* circular buffer, currently 431,226,880
 bytes.  This should be enough to buffer over 2 minutes of data.  It does
 non-blocking 64KB writes to stdout.  Shell script calls this program and
 redirects stdout to a disk file.  Very little if any other i/o to this
 disk.  Even with disk cache in write-through mode, I can write at about
 6-7 MB/s.  The process needs very little CPU.  Sounds like this should
 be no problem.
 
 And it seems to work okay if the system is otherwise idle.
 
 The problem is that if some other process is writing to some other disk,
 it somehow slows down writes to ALL disks.  Enough that, dispite the 
 non-blocking
 writes (?), the TCP receive window shrinks and shrinks and finally is smaller
 than a packet.  The src machine obediantly stops sending packets, its small
 buffer fills up, and data is lost.
 
 Things I have done so far:
 
BIG buffer (over 2 minutes worth).
 
The port2file process cranks up the TCP receive window from 65700 to 
 197100.
 
It also cranks up rtprio from 20 to 5.
 
sysctl net.inet.tcp.delayed_ack=0
 
 The only process running rtprio is port2file.  All other processes are
 either default priority or niced down with the classic nice(1).

Thanks for explaining the problem in more detail.  Did this problem
start before you made port2file run with rtprio?  Can you please
include a copy of your kernel configuration file and dmesg?

Kris


pgpbpfD9fod7H.pgp
Description: PGP signature


Re: Fwd: Attempting to write a mouse driver for the GunCon2...help?

2006-12-08 Thread Tony Shadwick

Sorry for the list spamming.  My mail server burped. :(

Also, PS2 as in Playstation 2, not the serial port PS/2.



I'm trying to figure this out, and I'm not sure what to do.

The GunCon2 is a usb device intended for the PS/2.  I have it's 
communications protocol worked out, FreeBSD picks the gun up and gives 
it two devices, /dev/ugen0 and /dev/ugen0.1.  ugen0.1 is a character 
device that I can easily read everything I need from the gun.  I even 
have a perl reference driver written that uses perl and the 
X11::GuiTest module to move the pointer and click, but it's too laggy to 
be of real use.


The gun has 10 (!!!) buttons.  The trigger, A, B, C, Select, Start, and 
the control pad (4 independent buttons).


I'm not sure whether or not the OS can support a 10 button HID mouse or 
not.  I've tried just getting the gun detected and so it creates 
/dev/guncon instead of ugen (even if it really is still using the 
general purpose driver) with no luck.  I have the product ID and vendor 
ID...I'm just not getting it.  Ideally I'd like to be able to use the 
gun for MAME.  It should function just like any other mouse though. 
Aside from lag issues, I have it doing that already.


Here's a link to what I have so far:

http://forum.arcadecontrols.com/index.php?topic=60813.0

As per that link, someone wrote a driver for Linux, and also for the 
TopGun (a third party GunCon2 clone), but I'm not sure whether or not 
that code is portable.


Could anyone give me a hand with this?

Tony




___
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]


How to install the same port twice but at different locations?

2006-12-08 Thread Alexis Dorais-Joncas

Hi all,

Subject says it all. I would like to install the package phpMyAdmin on 
two different locations on my server. Is this doable? If so, how?


I'm using  FreeBSD g-noc.net 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu 
Nov  3 09:36:13 UTC 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386 with ports 
updated daily with cvsup.


Right now, after I do :
cd  /usr/ports/databases/phpmyadmin
sudo make PREFIX=/xxx/yyy install

I get :
pkg_info|grep Admin
phpMyAdmin-2.9.1.1  A set of PHP-scripts to manage MySQL over the web

And when I try to install it again but using a different PREFIX, I get 
this :

===  Checking if databases/phpmyadmin already installed
===   phpMyAdmin-2.9.1.1 is already installed
 You may wish to ``make deinstall'' and install this port again

Using FORCE_PKG_REGISTER unregisters the first installation, so its no 
good for this I guess.


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


Re: How to install the same port twice but at different locations?

2006-12-08 Thread Lane
On Friday 08 December 2006 13:58, Alexis Dorais-Joncas wrote:
 Hi all,

 Subject says it all. I would like to install the package phpMyAdmin on
 two different locations on my server. Is this doable? If so, how?

 I'm using  FreeBSD g-noc.net 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu
 Nov  3 09:36:13 UTC 2005
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386 with ports
 updated daily with cvsup.

 Right now, after I do :
 cd  /usr/ports/databases/phpmyadmin
 sudo make PREFIX=/xxx/yyy install

 I get :
 pkg_info|grep Admin
 phpMyAdmin-2.9.1.1  A set of PHP-scripts to manage MySQL over the web

 And when I try to install it again but using a different PREFIX, I get
 this :
 ===  Checking if databases/phpmyadmin already installed
 ===   phpMyAdmin-2.9.1.1 is already installed
   You may wish to ``make deinstall'' and install this port again

 Using FORCE_PKG_REGISTER unregisters the first installation, so its no
 good for this I guess.

 Thanks in advance,
 Alexis
 ___
Alexis,

Read through the porters' handbook, 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/.

You are interested primarily in PREFIX and DESTDIR, but all of the text up to 
that point is enlightening.

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


Re: How to install the same port twice but at different locations?

2006-12-08 Thread Alexis Dorais-Joncas

Lane a écrit :

On Friday 08 December 2006 13:58, Alexis Dorais-Joncas wrote:
  

Hi all,

Subject says it all. I would like to install the package phpMyAdmin on
two different locations on my server. Is this doable? If so, how?

I'm using  FreeBSD g-noc.net 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu
Nov  3 09:36:13 UTC 2005
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386 with ports
updated daily with cvsup.

Right now, after I do :
cd  /usr/ports/databases/phpmyadmin
sudo make PREFIX=/xxx/yyy install

I get :
pkg_info|grep Admin
phpMyAdmin-2.9.1.1  A set of PHP-scripts to manage MySQL over the web

And when I try to install it again but using a different PREFIX, I get
this :
===  Checking if databases/phpmyadmin already installed
===   phpMyAdmin-2.9.1.1 is already installed
  You may wish to ``make deinstall'' and install this port again

Using FORCE_PKG_REGISTER unregisters the first installation, so its no
good for this I guess.

Thanks in advance,
Alexis
___


Alexis,

Read through the porters' handbook, 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/.


You are interested primarily in PREFIX and DESTDIR, but all of the text up to 
that point is enlightening.


lane
  

Hi Lane,
I think you misunderstood my problem. I know how to install a port to a 
specific location using PREFIX. What I want to achieve is to have one 
port installed twice. For example, I want one whole instance of 
phpMyAdmin to be in /var/www/ and a whole other one in /home/someuser/. 
And I want both instances to be manageable with the package tools (such 
as portupgrade) in order to keep both updated easily.


Or have I totally missed the point with PREFIX/DESTDIR ?

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


Re: periodic passwd change?

2006-12-08 Thread Erik Norgaard

Anton Shterenlikht wrote:

I can't see how to prescribe periodic passwd change,
only how to set expiry time. At the moment I put the following
line in the root's crontab:

2 2 2 * * pw usermod shterenl -p `date '+\%d-\%m-\%Y'`

This makes a user's passwd expire once a month.

Is there a better way to force users change their passwds periodically?


You can set it in login.conf, when the password is updated the next 
expire is automatically set.


Cheers, Erik

--
Ph: +34.666334818  web: http://www.locolomo.org


smime.p7s
Description: S/MIME Cryptographic Signature


Re: How to install the same port twice but at different locations?

2006-12-08 Thread Lane
On Friday 08 December 2006 14:57, Alexis Dorais-Joncas wrote:
 Lane a écrit :
  On Friday 08 December 2006 13:58, Alexis Dorais-Joncas wrote:
  Hi all,
 
  Subject says it all. I would like to install the package phpMyAdmin on
  two different locations on my server. Is this doable? If so, how?
 
  I'm using  FreeBSD g-noc.net 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu
  Nov  3 09:36:13 UTC 2005
  [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386 with ports
  updated daily with cvsup.
 
  Right now, after I do :
  cd  /usr/ports/databases/phpmyadmin
  sudo make PREFIX=/xxx/yyy install
 
  I get :
  pkg_info|grep Admin
  phpMyAdmin-2.9.1.1  A set of PHP-scripts to manage MySQL over the web
 
  And when I try to install it again but using a different PREFIX, I get
  this :
  ===  Checking if databases/phpmyadmin already installed
  ===   phpMyAdmin-2.9.1.1 is already installed
You may wish to ``make deinstall'' and install this port again
 
  Using FORCE_PKG_REGISTER unregisters the first installation, so its no
  good for this I guess.
 
  Thanks in advance,
  Alexis
  ___
 
  Alexis,
 
  Read through the porters' handbook,
  http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/.
 
  You are interested primarily in PREFIX and DESTDIR, but all of the text
  up to that point is enlightening.
 
  lane

 Hi Lane,
 I think you misunderstood my problem. I know how to install a port to a
 specific location using PREFIX. What I want to achieve is to have one
 port installed twice. For example, I want one whole instance of
 phpMyAdmin to be in /var/www/ and a whole other one in /home/someuser/.
 And I want both instances to be manageable with the package tools (such
 as portupgrade) in order to keep both updated easily.

 Or have I totally missed the point with PREFIX/DESTDIR ?

 Thanx!
 Alexis
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
Yeah, that's a little out of my league.

I believe that there are changes recorded in /var/db/pkg for installations 
made using PREFIX=, but I've never gone so far as to determine if portupgrade 
will upgrade them independently.  I expect one installation would overwrite 
the next ...

You might try the --beforebuild and --afterinstall knobs of portupgrade to 
alter the PORTNAME switch on the port Makefile.  This would ensure that 
entries in /var/db/pkg/ are not overwritten, but I don't know if you could 
automate that on a per-port basis.

Let us know what you find out, and Good Luck!

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


Re: How to install the same port twice but at different locations?

2006-12-08 Thread Micah

Alexis Dorais-Joncas wrote:

Lane a écrit :

On Friday 08 December 2006 13:58, Alexis Dorais-Joncas wrote:
 

Hi all,

Subject says it all. I would like to install the package phpMyAdmin on
two different locations on my server. Is this doable? If so, how?

I'm using  FreeBSD g-noc.net 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu
Nov  3 09:36:13 UTC 2005
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386 with ports
updated daily with cvsup.

Right now, after I do :
cd  /usr/ports/databases/phpmyadmin
sudo make PREFIX=/xxx/yyy install

I get :
pkg_info|grep Admin
phpMyAdmin-2.9.1.1  A set of PHP-scripts to manage MySQL over the web

And when I try to install it again but using a different PREFIX, I get
this :
===  Checking if databases/phpmyadmin already installed
===   phpMyAdmin-2.9.1.1 is already installed
  You may wish to ``make deinstall'' and install this port again

Using FORCE_PKG_REGISTER unregisters the first installation, so its no
good for this I guess.

Thanks in advance,
Alexis
___


Alexis,

Read through the porters' handbook, 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/.


You are interested primarily in PREFIX and DESTDIR, but all of the 
text up to that point is enlightening.


lane
  

Hi Lane,
I think you misunderstood my problem. I know how to install a port to a 
specific location using PREFIX. What I want to achieve is to have one 
port installed twice. For example, I want one whole instance of 
phpMyAdmin to be in /var/www/ and a whole other one in /home/someuser/. 
And I want both instances to be manageable with the package tools (such 
as portupgrade) in order to keep both updated easily.


Or have I totally missed the point with PREFIX/DESTDIR ?

Thanx!
Alexis


Well, a kludge, and maybe Lane was alluding to this, is to duplicate the 
phpMyAdmin port so you have two copies in your ports. You could then 
change the copy's Makefile so it has a different PORTNAME and a new 
install prefix. Of course you'd have to update your copy every time the 
original gets updated, but a script could probably handle that. Also 
portsnap will overwrite your copy, so maybe the script could recopy each 
time.


I hope there's an easier way though.

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


Re: How to install the same port twice but at different locations?

2006-12-08 Thread John Nielsen
On Friday 08 December 2006 15:57, Alexis Dorais-Joncas wrote:
 Lane a écrit :
  On Friday 08 December 2006 13:58, Alexis Dorais-Joncas wrote:
  Hi all,
 
  Subject says it all. I would like to install the package phpMyAdmin on
  two different locations on my server. Is this doable? If so, how?
 
  I'm using  FreeBSD g-noc.net 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu
  Nov  3 09:36:13 UTC 2005
  [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386 with ports
  updated daily with cvsup.
 
  Right now, after I do :
  cd  /usr/ports/databases/phpmyadmin
  sudo make PREFIX=/xxx/yyy install
 
  I get :
  pkg_info|grep Admin
  phpMyAdmin-2.9.1.1  A set of PHP-scripts to manage MySQL over the web
 
  And when I try to install it again but using a different PREFIX, I get
  this :
  ===  Checking if databases/phpmyadmin already installed
  ===   phpMyAdmin-2.9.1.1 is already installed
You may wish to ``make deinstall'' and install this port again
 
  Using FORCE_PKG_REGISTER unregisters the first installation, so its no
  good for this I guess.
 
 
  Read through the porters' handbook,
  http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/.
 
  You are interested primarily in PREFIX and DESTDIR, but all of the text
  up to that point is enlightening.

 I think you misunderstood my problem. I know how to install a port to a
 specific location using PREFIX. What I want to achieve is to have one
 port installed twice. For example, I want one whole instance of
 phpMyAdmin to be in /var/www/ and a whole other one in /home/someuser/.
 And I want both instances to be manageable with the package tools (such
 as portupgrade) in order to keep both updated easily.

 Or have I totally missed the point with PREFIX/DESTDIR ?

What I have done in the past is create slave ports. Say the port you want to 
install twice is in ports/category/foo. Make a new directory 
ports/category/bar. Inside that directory, create a Makefile similar to this:

PORTNAME=   foo
PKGNAMESUFFIX=  _bar-duplicate
COMMENT=This is the foo port but it installs as 
foo_bar-duplicate
PREFIX= /path/to/alternate/prefix
# ...you may want other options here ...

MASTERDIR=  ${.CURDIR}/../foo

.include ${MASTERDIR}/Makefile


Install once from category/foo and once from your new port's directory and 
away you go. Again, the porter's handbook has lots of useful information 
about everything above.

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


acpi woes and dead filesystem

2006-12-08 Thread Steve Franks

So, I got my desktop system (read: personal cpu, not a server) all set
up, been using it for a couple weeks, all is happy.

Now, I'm a bit of a tree-hugger, see, so I tend to like to suspend my
computers insted of leaving them on perpetually.

As such, tried acpiconf -s3 initially (others say unsupported).
Seemed to go down ok, but coming back up it reboots every time. Ho
hum.  So I follow the handbook and go apm -Z, but that barely saves
any power (can still hear disk, fan, etc, although screen blanks (apm
-z also casues a reboot)

Reanabled acpi -s3, lo, it appears to work, except, first time, only X
comes back (not vtty's).  Second time X doesn't come back either.  Try
ctl-alt-del, try suspend button, etc, no choice but to power down.

I should mention at this point, that being paranoid, I habitually set
all my fstab's to rw,sync, not just rw, which makes my next finding
somewhat suprising to me:

Upon power up, I am informed my filesystem is toast, and all I get is a shell.

My question: besides searching for sympathy, does anyone know how to
truly protect a system against unplanned powerdown and/or crash during
disk acess?  Not to compare apples and oranges, but I've been shutting
down my windows systems by the 'pull the plug' method for years now,
and I've never had a corrupted filesystem.  I supose this could be
because windows is just sloppy and doesn't care if ntfs is trashed, as
long as the ntldr, etc, is not in the trashed location.

Short of never suspending my system, I'd like a nicer way of
preventing this.  Course it appears I can't trully suspend my system
more than once anyway, so perhaps it's moot.

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


Re: How to install the same port twice but at different locations?

2006-12-08 Thread Chuck Swiger

On Dec 8, 2006, at 12:57 PM, Alexis Dorais-Joncas wrote:
I think you misunderstood my problem. I know how to install a port  
to a specific location using PREFIX. What I want to achieve is to  
have one port installed twice. For example, I want one whole  
instance of phpMyAdmin to be in /var/www/ and a whole other one in / 
home/someuser/. And I want both instances to be manageable with the  
package tools (such as portupgrade) in order to keep both updated  
easily.


You might want to consider using jails to have separate port tree  
installations.


--
-Chuck

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


Re: access wikipedia (walk through the great firewall of China)

2006-12-08 Thread Jona Joachim
On Fri, 08 Dec 2006 14:25:59 +0800
张韡武 [EMAIL PROTECTED] wrote:

 Hello. My office use this method to access wikipedia behind the great
 firewall of China:
 
 1) we have a server in europ, let's call it server;
 2) I run this command on my desktop:
 $ ssh -L 80:en.wikipedia.org:80 server;
 3) everybody in the office edit /etc/hosts, add this line:
 [my_ip_addr] en.wikipedia.org
 
 So my computer become a 'proxy'.
 
 The trouble is I have to keep the ssh running there. The 'proxy' will
 not automatically set up next time I reboot my computer.

You can put the command into /etc/rc.local for it to be executed at
boot time.

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


Re: acpi woes and dead filesystem

2006-12-08 Thread Chuck Swiger

On Dec 8, 2006, at 1:21 PM, Steve Franks wrote:

Now, I'm a bit of a tree-hugger, see, so I tend to like to suspend my
computers insted of leaving them on perpetually.


You might try turning them off entirely...?


As such, tried acpiconf -s3 initially (others say unsupported).
Seemed to go down ok, but coming back up it reboots every time. Ho
hum.  So I follow the handbook and go apm -Z, but that barely saves
any power (can still hear disk, fan, etc, although screen blanks (apm
-z also casues a reboot)


Try updating your BIOS.  Try to verify that all of the hardware you  
have installed actually supports going into power-saving mode-- I was  
surprised to discover that, for instance, some USB devices will  
prevent the system from entering S3 power-save mode.


You might also try tweaking the BIOS settings, and see whether you  
can get S1 mode working first, before trying to get the deeper S3  
mode going.



Reanabled acpi -s3, lo, it appears to work, except, first time, only X
comes back (not vtty's).  Second time X doesn't come back either.  Try
ctl-alt-del, try suspend button, etc, no choice but to power down.

I should mention at this point, that being paranoid, I habitually set
all my fstab's to rw,sync, not just rw, which makes my next finding
somewhat suprising to me:

Upon power up, I am informed my filesystem is toast, and all I get  
is a shell.


Did running fsck by hand fix it?

Note that you really ought to mention some basic details, such as  
which version of FreeBSD you are running, and what your hardware is...



My question: besides searching for sympathy, does anyone know how to
truly protect a system against unplanned powerdown and/or crash during
disk acess?


By using an external UPS, or a high quality RAID system which  
includes an internal battery to ensure the disk cache gets flushed


--
-Chuck


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


Re: How to install the same port twice but at different locations?

2006-12-08 Thread Matthew Seaman
Alexis Dorais-Joncas wrote:
 Hi all,
 
 Subject says it all. I would like to install the package phpMyAdmin on
 two different locations on my server. Is this doable? If so, how?
 
 I'm using  FreeBSD g-noc.net 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu
 Nov  3 09:36:13 UTC 2005
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386 with ports
 updated daily with cvsup.
 
 Right now, after I do :
 cd  /usr/ports/databases/phpmyadmin
 sudo make PREFIX=/xxx/yyy install
 
 I get :
 pkg_info|grep Admin
 phpMyAdmin-2.9.1.1  A set of PHP-scripts to manage MySQL over the web
 
 And when I try to install it again but using a different PREFIX, I get
 this :
 ===  Checking if databases/phpmyadmin already installed
 ===   phpMyAdmin-2.9.1.1 is already installed
  You may wish to ``make deinstall'' and install this port again
 
 Using FORCE_PKG_REGISTER unregisters the first installation, so its no
 good for this I guess.

The problem is not so much installing the PHP code in two different
locations, which you can do quite simply by playing with the PREFIX
settings, but trying to register the same thing two times in the package
DB.

Hmmm... The only way I can see to deal with this is to use a separate
package database for the second installation.  Something like:

setenv PREFIX /some/where/else
setenv PKG_DBDIR /var/db/pkg-some-where-else
mkdir -p /var/db/pkg-some-where-else
cd /usr/ports/databases/phpMyAdmin
make install

Note: this install will find and use all of the dependencies installed
to support the first instance of phpMyAdmin.  If you're doing multiple 
installs to support using phpMyAdmin in a jail then there are better
methods.  Probably the most conceptually simple method is to null-mount
/usr/ports under your jail directory, then log into the jail and work
inside it.  However that does require having a 'fat' jail with a complete
system environment inside it.

This is the functionality that DESTDIR was invented to support
(ie. installing in a location that is different to the way the location
will appear in use) -- unfortunately DESTDIR support is being reworked
and isn't fully available yet.

Cheers,

Matthew

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



signature.asc
Description: OpenPGP digital signature


Re: How to install the same port twice but at different locations?

2006-12-08 Thread Alexis Dorais-Joncas


John Nielsen wrote:
What I have done in the past is create slave ports. Say the port you want to 
install twice is in ports/category/foo. Make a new directory 
ports/category/bar. Inside that directory, create a Makefile similar to this:


PORTNAME=   foo
PKGNAMESUFFIX=  _bar-duplicate
COMMENT=This is the foo port but it installs as 
foo_bar-duplicate
PREFIX= /path/to/alternate/prefix
# ...you may want other options here ...

MASTERDIR=  ${.CURDIR}/../foo

.include ${MASTERDIR}/Makefile


Install once from category/foo and once from your new port's directory and 
away you go. Again, the porter's handbook has lots of useful information 
about everything above.


JN

  
This seems to do the trick perfectly. Thanks all for your fast input, I 
appreciate it very much !


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


Re: Unable to build jackit-0.102.20

2006-12-08 Thread Gerard Seibert
On Friday December 08, 2006 at 08:50:36 (AM) Kay Abendroth wrote:


 Could you comment all compiler flags you set in /etc/make.conf and rerun
 the build? Please post your build-log again after that if sth. changes.

The only global setting in the /etc/make.conf file is:

NO_PROFILE=true
CFLAGS=-pipe

I do have a couple of other settings, but they are nested

.if
mumble
.endif

I fail to see how that might effect it. Besides, they were present when
I first installed my system.

Anyway, I will give it a try tomorrow. I don't have time this evening.

-- 
Gerard

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


ask to borrow 6.1-RELEASE /etc/ttys

2006-12-08 Thread 张韡武
As every careless stupid user would do, today I have destroyed
my /etc/ttys. Luckily I didn't reboot after I destroyed this file. (Yes
I know I should backup before editing /etc/ttys, the fact is I didn't
try to edit it at all, it's a typo that made me pipe the output of some
app to this file)

Can someone send his /etc/ttys ? I don't have another FreeBSD to recover
this file.

Thank you!

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


Re: ask to borrow 6.1-RELEASE /etc/ttys

2006-12-08 Thread Beech Rintoul
On Friday 08 December 2006 14:14, 张韡武 wrote:
 As every careless stupid user would do, today I have destroyed
 my /etc/ttys. Luckily I didn't reboot after I destroyed this file. (Yes
 I know I should backup before editing /etc/ttys, the fact is I didn't
 try to edit it at all, it's a typo that made me pipe the output of some
 app to this file)

 Can someone send his /etc/ttys ? I don't have another FreeBSD to recover
 this file.

No prob.
Beech

-- 
---
Beech Rintoul - Sys. Administrator - [EMAIL PROTECTED]
/\   ASCII Ribbon Campaign  | Alaska Paradise Travel
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - Please visit Alaska Paradise - http://www.alaskaparadise.com
---











#
# $FreeBSD: src/etc/etc.i386/ttys,v 1.10 2003/10/24 15:44:08 simokawa Exp $
#   @(#)ttys5.1 (Berkeley) 4/17/89
#
# This file specifies various information about terminals on the system.
# It is used by several different programs.  Common entries for the
# various columns include:
#
# name  The name of the terminal device.
#
# getty The program to start running on the terminal.  Typically a
#   getty program, as the name implies.  Other common entries
#   include none, when no getty is needed, and xdm, to start the
#   X Window System.
#
# type The initial terminal type for this port.  For hardwired
#  terminal lines, this will contain the type of terminal used.
#  For virtual consoles, the correct type is typically cons25, but
#  vt220 will work better if you need interoperability with other
#  systems like Solaris or GNU/Linux.
#  Other common values include network for network connections on
#  pseudo-terminals, dialup for incoming modem ports, and unknown
#  when the terminal type cannot be predetermined.
#
# status Must be on or off.  If on, init will run the getty program on
#the specified port.  If the word secure appears, this tty
#allows root login.
#
# name  getty   typestatus  comments
#
# If console is marked insecure, then init will ask for the root password
# when going to single-user mode.
console noneunknown off secure
#
ttyv0   /usr/libexec/getty Pc cons25  on  secure
# Virtual terminals
ttyv1   /usr/libexec/getty Pc cons25  on  secure
ttyv2   /usr/libexec/getty Pc cons25  on  secure
ttyv3   /usr/libexec/getty Pc cons25  on  secure
ttyv4   /usr/libexec/getty Pc cons25  on  secure
ttyv5   /usr/libexec/getty Pc cons25  on  secure
ttyv6   /usr/libexec/getty Pc cons25  on  secure
ttyv7   /usr/libexec/getty Pc cons25  on  secure
ttyv8   /usr/X11R6/bin/xdm -nodaemon  xterm   off secure
# Serial terminals
# The 'dialup' keyword identifies dialin lines to login, fingerd etc.
ttyd0   /usr/libexec/getty std.9600   dialup  off secure
ttyd1   /usr/libexec/getty std.9600   dialup  off secure
ttyd2   /usr/libexec/getty std.9600   dialup  off secure
ttyd3   /usr/libexec/getty std.9600   dialup  off secure
# Dumb console
dcons   /usr/libexec/getty std.9600   vt100   off secure
# Pseudo terminals
ttyp0   nonenetwork
ttyp1   nonenetwork
ttyp2   nonenetwork
ttyp3   nonenetwork
ttyp4   nonenetwork
ttyp5   nonenetwork
ttyp6   nonenetwork
ttyp7   nonenetwork
ttyp8   nonenetwork
ttyp9   nonenetwork
ttypa   nonenetwork
ttypb   nonenetwork
ttypc   nonenetwork
ttypd   nonenetwork
ttype   nonenetwork
ttypf   nonenetwork
ttypg   nonenetwork
ttyph   nonenetwork
ttypi   nonenetwork
ttypj   nonenetwork
ttypk   nonenetwork
ttypl   nonenetwork
ttypm   nonenetwork
ttypn   nonenetwork
ttypo   nonenetwork
ttypp   nonenetwork
ttypq   nonenetwork
ttypr   nonenetwork
ttyps   nonenetwork
ttypt   nonenetwork
ttypu   nonenetwork
ttypv   nonenetwork
ttyq0   nonenetwork
ttyq1   nonenetwork
ttyq2   nonenetwork
ttyq3   nonenetwork
ttyq4   nonenetwork
ttyq5   nonenetwork
ttyq6   nonenetwork
ttyq7   nonenetwork
ttyq8   nonenetwork

Re: Configuration of Grub?

2006-12-08 Thread Pieter de Goeje
On Friday 08 December 2006 20:18, Karl Sinn wrote:
 Hi,

 I am completely new here, and I did not find the answer to my problem. Not
 in the FreeBSD Handbook and not in the Installations instruction.

 I have SuSE 10.1 installed with Grub.

 I wanted to try FreeBSD, and I installed it on hdd (Linux-name) I think it
 is ad3 for FreeBSD.

 During the installation I chose A for automatic configuration and I
 said none for the boot-manager.

 Now I wonder what I have write in the grub configuration file menu.lst to
 finally start FreeBSD?

 I tried:

 title FreeBSD
     kernel (hd0,1)/boot/loader root=/dev/hdd1
Hi,

I'm using this:

title FreeBSD 6.2-STABLE
root (hd1,0,a)
kernel /boot/loader

title FreeBSD 7.0-CURRENT
root (hd0,2,a)
kernel /boot/loader

to switch between -CURRENT and -STABLE. You need to specify the FreeBSD root 
partition, normally 'a'.

For more information about FreeBSD partitions and slices, see 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disk-organization.html

Regards,
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: ask to borrow 6.1-RELEASE /etc/ttys

2006-12-08 Thread Josh Paetzel
On Friday 08 December 2006 17:56, Beech Rintoul wrote:
 On Friday 08 December 2006 14:14, 张韡武 wrote:
  As every careless stupid user would do, today I have destroyed
  my /etc/ttys. Luckily I didn't reboot after I destroyed this
  file. (Yes I know I should backup before editing /etc/ttys, the
  fact is I didn't try to edit it at all, it's a typo that made me
  pipe the output of some app to this file)
 
  Can someone send his /etc/ttys ? I don't have another FreeBSD to
  recover this file.

 No prob.
 Beech

For what it's worth, if you have the system sources installed there's 
a copy of ttys in /usr/src/etc/etc.i386

-- 
Thanks,

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


ACPI Support Question for FreeBSD 6.2-RC1

2006-12-08 Thread Jeff Royle

Greetings List!

I believe my ACPI issue is simply a support issue but I need this 
confirmed with some direction on a possible solution if available.


The short version of the problem: In dmesg I get this: acpi_bus_number: 
can't get _ADR


The motherboard being used is a Asus P5MT-S.

Is this simply a issue with no support on my chipset?  Or just an ACPI 
values not being detected correctly?


Possibly need to recompile the kernel with additional support?


The long version :-)

Here is a section from my dmesg:

FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
Security auditing service present
BSM auditing present
ioapic0: Changing APIC ID to 2
ioapic1: Changing APIC ID to 3
ioapic0 Version 2.0 irqs 0-23 on motherboard
ioapic1 Version 2.0 irqs 24-47 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: A M I OEMRSDT on motherboard
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi0: Power Button (fixed)
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
cpu0: ACPI CPU on acpi0
acpi_throttle0: ACPI CPU Throttling on cpu0
cpu1: ACPI CPU on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
pcib1: ACPI PCI-PCI bridge irq 16 at device 28.0 on pci0
pci1: ACPI PCI bus on pcib1
pcib2: ACPI PCI-PCI bridge at device 0.0 on pci1
pci2: ACPI PCI bus on pcib2
aacu0: Adaptec SCSI RAID 2130S mem 
0xfc60-0xfc7f,0xfc5ff000-0xfc5f irq 24 at device 1.0 on pci2

aacu0: New comm. interface enabled
aacu0: Adaptec Raid Controller 2.0.7-1
aacpu0: SCSI Passthrough Bus on aacu0
ahd0: Adaptec AIC7901 Ultra320 SCSI adapter port 
0xa800-0xa8ff,0xa400-0xa4ff mem 0xfc5fc000-0xfc5fdfff irq 26 at device 
3.0 on p

ci2
ahd0: [GIANT-LOCKED]
aic7901: Ultra320 Wide Channel A, SCSI Id=7, PCI-X 67-100Mhz, 512 SCBs
pcib3: ACPI PCI-PCI bridge irq 16 at device 28.4 on pci0
pci3: ACPI PCI bus on pcib3

Here is some output from pciconf -lv:

[EMAIL PROTECTED]:28:0:class=0x060400 card=0x0040 chip=0x27d08086 
rev=0x01 hdr=0x01

vendor   = 'Intel Corporation'
device   = '82801G (ICH7 Family) PCI Express Root Port'
class= bridge
subclass = PCI-PCI
[EMAIL PROTECTED]:28:4:class=0x060400 card=0x0040 chip=0x27e08086 
rev=0x01 hdr=0x01

vendor   = 'Intel Corporation'
device   = '82801GR/GH/GHM (ICH7 Family) PCI Express Root Port'
class= bridge
subclass = PCI-PCI
[EMAIL PROTECTED]:28:5:class=0x060400 card=0x0040 chip=0x27e28086 
rev=0x01 hdr=0x01

vendor   = 'Intel Corporation'
device   = '82801GR/GH/GHM (ICH7 Family) PCI Express Root Port'
class= bridge


Thanks for the time,

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


Problem with KYOCERA KPC650

2006-12-08 Thread Sung Park

Hi, folks

I'm working on KYOCERA KPC650 to get internet access in 6.1 freebsd box.  I
couldn't get ucom0 dialer interface.  I keep getting ugen0.  Does anyone
know about how to swap ugen0 to ucom0?  Should I need to patch kernel or
else?  Anything will be helped to me.

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