how to checkout the CURRENT code using tortoiseCVS under Windows

2006-06-06 Thread william wallace

hello,everyone !
how to checkout  the CURRENT code using tortoiseCVS under Windows? I
found it hard to find the place to enter command such as co
-rRELENG_6 :(
crying :(

--
we who r about to die,salute u!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Running out of swap space????

2006-06-06 Thread Björn König

[EMAIL PROTECTED] schrieb:

I've got a server that is running out of swap space:

+pid 37308 (mysqld), uid 88, was killed: out of swap space
+swap_pager: out of swap space
+swap_pager_getswapspace(1): failed

The strange this is, this server has a 6GB swap partition!

swapinfo -h
Device  1K-blocks UsedAvail Capacity
/dev/da0s1b   6291456 2.6G 6.0G43%

This isn't exactly a resource-starved machine either:

CPU: AMD Opteron(tm) Processor 244 (1793.88-MHz K8-class CPU)
 Origin = AuthenticAMD  Id = 0xf5a  Stepping = 10

Features=0x78bfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,S 


SE,SSE2
 AMD Features=0xe0500800SYSCALL,NX,MMX+,LM,3DNow+,3DNow
real memory  = 2146893824 (2047 MB)
avail memory = 2065797120 (1970 MB)
ACPI APIC Table: PTLTD  APIC  
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID:  0
cpu1 (AP): APIC ID:  1

FreeBSD hostname.utdallas.edu 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu 
Mar 30 19:25:18 CST 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMPKERNEL  amd64


last pid: 52327;  load averages:  0.45,  0.46,  0.45 up 11+03:42:04  
03:32:15

63 processes:  1 running, 62 sleeping
CPU states:  5.3% user,  0.0% nice,  0.8% system,  3.9% interrupt, 90.1% 
idle

Mem: 1410M Active, 126M Inact, 190M Wired, 82M Cache, 214M Buf, 78M Free
Swap: 6144M Total, 2687M Used, 3457M Free, 43% Inuse

Any suggestions are welcome - what could cause this?


ps aux | sort -n +5

The latter processes need most memory.

How to 
troubleshoot?


This may be normal behaviour. It depends on the processes.


Possible solutions/workarounds?


It depends also. Possible solutions are: Add more RAM, add swap (see 
[1]) or run less processes.


[1] http://www.freebsd.org/handbook/adding-swap-space.html

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


Re: Running out of swap space????

2006-06-06 Thread Dan Nelson
In the last episode (Jun 05), [EMAIL PROTECTED] said:
 I've got a server that is running out of swap space:
 
 +pid 37308 (mysqld), uid 88, was killed: out of swap space
 +swap_pager: out of swap space
 +swap_pager_getswapspace(1): failed
 
 The strange this is, this server has a 6GB swap partition!
 
 swapinfo -h
 Device  1K-blocks UsedAvail Capacity
 /dev/da0s1b   6291456 2.6G 6.0G43%
 
 This isn't exactly a resource-starved machine either:
 
 real memory  = 2146893824 (2047 MB)
 avail memory = 2065797120 (1970 MB)
 
 last pid: 52327;  load averages:  0.45,  0.46,  0.45 
 up 11+03:42:04  03:32:15
 63 processes:  1 running, 62 sleeping
 CPU states:  5.3% user,  0.0% nice,  0.8% system,  3.9% interrupt, 90.1% idle
 Mem: 1410M Active, 126M Inact, 190M Wired, 82M Cache, 214M Buf, 78M Free
 Swap: 6144M Total, 2687M Used, 3457M Free, 43% Inuse

Seems sort of starved to me; 2GB of RAM yet you have enough processes
active to have allocated all of that plus 2.6GB of swap!  I wouldn't be
surprised if occasionally you allocated another 3GB, which would max
out your swap space.  With only 120 processes total, you can probably
just run top sorted by size (top -o size, or enter osize when it's
running) and look for large ones.

-- 
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 checkout the CURRENT code using tortoiseCVS under Windows

2006-06-06 Thread william wallace

Or could anyone kindhearted tell me which module does 6.0 current in? thank u

--
we who r about to die,salute u!
___
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.0, ThinkPad 600, dc0: watchdog timeout - ACPI?

2006-06-06 Thread Björn König

Hello,

I had a Thinkpad 600 and a lot of problems too, especially with 
networking and the cardbus. It received the impression that the chipset 
of the 600 is totally broken. The revisited successor 600E doesn't make 
so much trouble at all.


Add the following lines to /boot/loader.conf, restart and see what 
happens. These lines solved some of my problems regarding unreliable 
networking.


   hw.cbb.start_memory=0xd8000
   hw.pci.link.LNKA.irq=11
   hw.pci.link.LNKB.irq=11
   hw.pci.link.LNKC.irq=11
   hw.pci.link.LNKD.irq=11


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


NFS mounting problem (RPCPROG_MNT: RPC: Timed out)

2006-06-06 Thread Platoali
Hi,

I've two Freebsd boxes, One is NFS server which have a valid ip address and 
the second one is NFS client behind NAT with an invalid IP .

On the server side, I've the following configurations:

# vi /etc/exports 
/usr/local/www/data-dist/ripe/graphs  213.217.100.111 # The IP of NAT 
server
/usr/local/www/data-dist/ripe/graphs 127.0.0.1 # this was for the test
/usr/local/www/data-dist/ripe/graphs 213.217.100.115  # The IP  of the 
NFS

server

I can mount localy without any problem:
# mount -t nfs 213.217.100.115:/usr/local/www/data-dist/ripe/graphs /mnt
or  
# mount -t nfs 127.0.0.1:/usr/local/www/data-dist/ripe/graphs /mnt

But On NFS cleint I got the following error:

# mount 213.217.100.115:/usr/local/www/data-dist/ripe/graph /mnt
[udp] 213.217.100.115:/usr/local/www/data-dist/ripe/graph: RPCPROG_MNT: 
RPC: 
Timed out
[udp] 213.217.100.115:/tmp/test: RPCPROG_MNT: RPC: Timed out
...

I'm sure there is no network problem. Here is the dump on the client : 
# tcpdump -n host 213.217.100.115
tcpdump: verbose output suppressed, use -v or -vv for full protocol 
decode
listening on fxp0, link-type EN10MB (Ethernet), capture size 96 bytes
10:40:22.785099 IP 192.168.32.254.612  213.217.100.115.111: UDP, 
length 56
10:40:22.786797 IP 213.217.100.115.111  192.168.32.254.612: UDP, 
length 28
10:40:22.786923 IP 192.168.32.254.1149886527  213.217.100.115.2049: 40 
null
10:40:22.787897 IP 213.217.100.115.2049  192.168.32.254.1149886527: 
reply ok 
24 null
10:40:22.787971 IP 192.168.32.254.779  213.217.100.115.111: UDP, 
length 56
10:40:22.789326 IP 213.217.100.115.111  192.168.32.254.779: UDP, 
length 28
10:40:22.789420 IP 192.168.32.254.680  213.217.100.115.729: UDP, 
length 140

As you can see there is no NAT problem. Client recieves the packets from 
server. But I just don't understand why mount cammand get the Time out error.


Best Regards
Ali














___
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.0, ThinkPad 600, dc0: watchdog timeout - ACPI?

2006-06-06 Thread Fred Koschara
Thanks, Björn.  Your information solved this problem, the networking works 
correctly now.


Ah, well, I upgraded my other ThinkPad from 600 to 600E to get the 16M 
colors.  I guess I will have to do the same to this new machine for more 
reasons...


Ad astra,
Fred Koschara

At 02:23 AM 6/6/2006, Björn König wrote:

Hello,

I had a Thinkpad 600 and a lot of problems too, especially with networking 
and the cardbus. It received the impression that the chipset of the 600 is 
totally broken. The revisited successor 600E doesn't make so much trouble 
at all.


Add the following lines to /boot/loader.conf, restart and see what 
happens. These lines solved some of my problems regarding unreliable 
networking.


   hw.cbb.start_memory=0xd8000
   hw.pci.link.LNKA.irq=11
   hw.pci.link.LNKB.irq=11
   hw.pci.link.LNKC.irq=11
   hw.pci.link.LNKD.irq=11


Regards
Björn



Ignorance can easily be cured by knowledge, stupidity is generally only 
cured by death...


Truth and Falsehood were bathing. Falsehood came out of the water first and 
dressed herself in Truth's clothes. Truth, unwilling to put on the garments 
of Falsehood, went naked.

(Author Unknown)

The war on terror is a sham:  There is no real protection against 
suicidal maniacs spurred on by creative madmen.  In the end, the only 
outcomes will be the destruction of the American economy due to pouring a 
bankrupting stream of wealth into a bottomless pit, and the final 
destruction of personal liberty in the name of security.  (When was the 
last time you were asked for Your papers, please? - er, that is, License 
and registration?)


FKE Internet, Web hosting for space related businessesbr
Domain registration - $15.95/year, $29.95 for 2 years
http://FKEinternet.com

For private sector (commercial) space development, visit
http://www.L5Development.com
For your daily dose of art, try http://PhotoByFred.com
L5 Software Development - out of this world sites and software
http://www.L5Software.com
How much did your last traffic ticket cost you?
http://www.StopHighwayRobbery.com
FredLines(tm), T-Shirts For the Thinking Mind(tm)
http://www.FredLines-TShirts.com

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


ipf blocking packets from proxy servers

2006-06-06 Thread Nicholas von Waltsleben
Hi list,

I have been running FreeBSD servers as firewalls for several years now
and recently installed a new 6.1 server (6.1-RELEASE FreeBSD 6.1-RELEASE
#1) in the place of a 5.4 box that I had installed last year.  Since
replacing the box my users have had connection problems with their SOAP
applications hosted behind the firewall.  The symptoms were applications
hanging intermittently and massive delays in transactions (up to 2
minutes or more).  I eventually realised that this only happened when
the users were using our Squid proxy server so I had our Windows admin
bloke change the group policy to allow them to bypass the proxy when
connecting to the servers.  Problem solved I thought...

Wrong, now some of our clients are having the same problems and, guess
what, they too are using Squid proxies.  I have been doing some digging
this morning and noticed the following while running ipmon.

06/06/2006 09:19:41.056085 STATE:NEW 165.165.192.80,65431 -
196.7.156.157,80 PR tcp
06/06/2006 09:19:41.557534 STATE:NEW 165.165.192.80,52159 -
196.7.156.157,80 PR tcp
06/06/2006 09:19:42.010889 em0 @1:19 b 165.165.192.80,53088 -
196.7.156.157,80 PR tcp len 20 48 -S IN OOW
06/06/2006 09:19:42.063731 STATE:NEW 165.165.192.80,63975 -
196.7.156.157,80 PR tcp
06/06/2006 09:19:42.564807 STATE:NEW 165.165.192.80,54989 -
196.7.156.157,80 PR tcp

The 165.x.x.x IP address is from an ADSL line I was using to see what
was happening to my packets (I was the only person using the line so it
made tcpdumps etc etc easier to interpret).

Now here is an extract from my ipfstat -ni

@2 block in quick on em0 all head 1
...
@10 pass in quick on em0 proto tcp from any to 196.7.156.157/32 port =
http keep state keep frags group 1
...
@19 block in log quick on em0 all group 1

And finally my question:

If rule 10 specifically allows all traffic to 196.7.156.157 on port 80
why are packets being blocked?  Sorry if this is an extremely noob
question and I have overlooked something obvious.  I will of course be
researching this in the meantime but if anyone could shed some light on
this matter I would greatly appreaciate it.

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


[misc] demos/bio/Makefile

2006-06-06 Thread Stefan Kuttler

Hi all,


Well, for me the Makefile in demos/bio was broken, because it wants
to link against static libraries of openssl. For *users* that do
not want to built a static version, or have strange PATH settings,
this little patch makes it working so one can start hacking :) 
  


--- /tmp/openssl-0.9.8b/demos/bio/Makefile.broken.fbsd  Tue Jun  6 04:26:07 2006
+++ /tmp/openssl-0.9.8b/demos/bio/Makefile  Tue Jun  6 11:55:52 2006
@@ -1,16 +1,15 @@
 CC=cc
 CFLAGS= -g -I../../include
-LIBS= -L../.. ../../libssl.a ../../libcrypto.a
+LIBS= -L../.. -lssl -lcrypto
 EXAMPLES=saccept sconnect
 
 all: $(EXAMPLES) 
 
 saccept: saccept.o
-   $(CC) -o saccept saccept.o $(LIBS)
+   $(CC) $(CFLAGS) -o saccept saccept.o $(LIBS)
 
 sconnect: sconnect.o
-   $(CC) -o sconnect sconnect.o $(LIBS)
+   $(CC) $(CLFAGS) -o sconnect sconnect.o $(LIBS)
 
 clean: 
-   rm -f $(EXAMPLES) *.o
-
+   rm -f $(EXAMPLES) *.o *.core



using FreeBSD 6.1-RELEASE



-- 
Gruss

Stefan Kuttler (B.O.F.H.).ooO=Ooo.https://www.netbeisser.de
 
GPG Fingerprint:  E7AC 1E9B 87D8 5BD2 E2F2 6F4A 3177 ED68 8185 480C
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


vsftpd uploading rate problem

2006-06-06 Thread Yuan, Jue
Hi all.

I got a wired problem here. The ftp server I use on my laptop is vsftpd. Till 
now it works quite well, except the low uploading rate.

The situation is: a computer could download stuffs from my laptop via vsftpd 
at a rate of 10M/s. while uploading stuffs to my laptop at a rate of only 
300K~400K :( 

The account used to log in is one of my local accounts, and I have set 
local_max_rate=0 in /usr/local/etc/vsftpd.conf. I am wondering how this 
imbalance happens.

Does anybody have this problem before? Any ideas would be appreciated.

Thanks in advance :-)

-- 
Best Regards
Yuan, Jue @ www.yuanjue.net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: portupgrade across NFS

2006-06-06 Thread Sergey Matveychuk
Michael Collette wrote:
 This problem only occurs when using portupgrade.  Both pkg_delete and
 pkg_deinstall work without error.  Also, everything else in the process
 that portupgrade goes through appears to work properly.  Just that
 /var/db/pkg directory won't delete when NFS mounted.

Have you tried the last (2.1.1) version?
I've fixed a few problems and one of them looks like yours. But it's not
relate to NFS however.

-- 
Dixi.
Sem.

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


get file

2006-06-06 Thread Efren Bravo
Hi,

Is there a way from the console to get a file by
http | ftp protocol?

Which command should I run to do it?

Thanks,


Efren Bravo.
-
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=ZWZyZW5iYQ%3D%3D

__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.es 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: get file

2006-06-06 Thread Igor Robul
On Tue, Jun 06, 2006 at 02:36:02PM +0200, Efren Bravo wrote:
 Hi,
 
 Is there a way from the console to get a file by
 http | ftp protocol?
fetch (in base system)
wget (in ports)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: get file

2006-06-06 Thread michael johnson

On 6/6/06, Efren Bravo [EMAIL PROTECTED] wrote:


Hi,

Is there a way from the console to get a file by
http | ftp protocol?

Which command should I run to do it?



fetch


Thanks,



Efren Bravo.
-
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=ZWZyZW5iYQ%3D%3D

__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.yahoo.es
___
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: get file

2006-06-06 Thread bob . middaugh

 -- Original message --
From: Efren Bravo [EMAIL PROTECTED]
 Hi,
 
 Is there a way from the console to get a file by
 http | ftp protocol?
 
 Which command should I run to do it?
 
 Thanks,
 
 
 Efren Bravo.
 -

install wget from ports, gets you something like this: wget 
http://urltofileyouwanttodownload

or man wget for options

ftp, connect to ftp service on remote box and cd to the directory where the 
file resides and do: get filename.   File will end up in the directory from 
which you initiated ftp on your box.

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


Re: Running out of swap space????

2006-06-06 Thread bob . middaugh
 -- Original message --
From: [EMAIL PROTECTED]

+pid 37308 (mysqld), uid 88, was killed: out of swap space
+swap_pager: out of swap space
+swap_pager_getswapspace(1): failed


If you kill mysql server, does the swap space free up?  Are there any known 
issues between the version of MySQL that you're running and FreeBSD 6.0?

Just some thoughts,

Bob



---BeginMessage---

I've got a server that is running out of swap space:

+pid 37308 (mysqld), uid 88, was killed: out of swap space
+swap_pager: out of swap space
+swap_pager_getswapspace(1): failed

The strange this is, this server has a 6GB swap partition!

swapinfo -h
Device  1K-blocks UsedAvail Capacity
/dev/da0s1b   6291456 2.6G 6.0G43%

This isn't exactly a resource-starved machine either:

CPU: AMD Opteron(tm) Processor 244 (1793.88-MHz K8-class CPU)
 Origin = AuthenticAMD  Id = 0xf5a  Stepping = 10

Features=0x78bfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,S
SE,SSE2
 AMD Features=0xe0500800SYSCALL,NX,MMX+,LM,3DNow+,3DNow
real memory  = 2146893824 (2047 MB)
avail memory = 2065797120 (1970 MB)
ACPI APIC Table: PTLTD  APIC  
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID:  0
cpu1 (AP): APIC ID:  1

FreeBSD hostname.utdallas.edu 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Mar 
30 19:25:18 CST 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMPKERNEL  amd64


last pid: 52327;  load averages:  0.45,  0.46,  0.45 
up 11+03:42:04  03:32:15

63 processes:  1 running, 62 sleeping
CPU states:  5.3% user,  0.0% nice,  0.8% system,  3.9% interrupt, 90.1% 
idle

Mem: 1410M Active, 126M Inact, 190M Wired, 82M Cache, 214M Buf, 78M Free
Swap: 6144M Total, 2687M Used, 3457M Free, 43% Inuse

Any suggestions are welcome - what could cause this?  How to troubleshoot? 
Possible solutions/workarounds?


Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/
---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: Running out of swap space????

2006-06-06 Thread cknipe
Quoting [EMAIL PROTECTED]:

  -- Original message --
 From: [EMAIL PROTECTED]
 
 +pid 37308 (mysqld), uid 88, was killed: out of swap space
 +swap_pager: out of swap space
 +swap_pager_getswapspace(1): failed
 
 
 If you kill mysql server, does the swap space free up?  Are there any known
 issues between the version of MySQL that you're running and FreeBSD 6.0?

MySQL not having a properly tuned config file for the system it runs on?  It is
known to consume vast amounts of resources if not properly configured... 

Just a thought

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


Re: vsftpd uploading rate problem

2006-06-06 Thread N.J. Thomas
* Yuan, Jue [EMAIL PROTECTED] [2006-06-06 18:31:43 +0800]:
 The situation is: a computer could download stuffs from my laptop via
 vsftpd at a rate of 10M/s. while uploading stuffs to my laptop at a
 rate of only 300K~400K :( 

Can you test with some other (non-ftp) protocol, and see if you get the
same results? Try scp'ing a large file to and from your laptop.

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Converting DocBook into PDF

2006-06-06 Thread N.J. Thomas
* Rico [EMAIL PROTECTED] [2006-06-06 03:41:50 +0200]:
 I am working on a documentation project and needs to convert some
 DocBook files into several formats.
 
 I have installed xmlto amongst others and I can convert the DocBook 
 into XHTML, TXT but not into PDF or PS.

This doesn't really help you with your xmlto problem, but I use the
following toolchain to produce PDF from DocBook

- write the XML file against the DocBook DTD

- validate the file with xmllint --valid --noout foo.xml
  xmllint is part of libxml2

  (Theoretically, this step is not necessary if you write proper
  XML, but xsltproc does not checks for valid XML (only well
  formed), and if you pass it non-valid DocBook XML, it spits out
  all sort of cryptic errors.)

- use xsltproc to convert to HTML:

  xsltproc --output foo.xhtml 
/usr/local/share/xsl/docbook/xhtml/docbook.xsl foo.xml

  (xsltproc is part of libxslt)

- use xsltproc to convert to FO:

  xsltproc --stringparam  fop.extensions  1 --output foo.fo 
/usr/local/share/xsl/docbook/fo/docbook.xsl foo.xml

- use fop to convert FO to DPF:

  fop foo.fo foo.pdf 

You can find libxml2, libxslt, fop, docbook-xml, and docbook-xsl in
ports.

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Running out of swap space????

2006-06-06 Thread Paul Schmehl

[EMAIL PROTECTED] wrote:

Quoting [EMAIL PROTECTED]:


-- Original message --
From: [EMAIL PROTECTED]
+pid 37308 (mysqld), uid 88, was killed: out of swap space
+swap_pager: out of swap space
+swap_pager_getswapspace(1): failed


If you kill mysql server, does the swap space free up?  Are there any known
issues between the version of MySQL that you're running and FreeBSD 6.0?


MySQL not having a properly tuned config file for the system it runs on?  It is
known to consume vast amounts of resources if not properly configured... 

I wrote a one line shell script that runs swapinfo -h and cron'd it to 
run once an hour.  Each hour the amount of swap space being used has 
increased by 100 to 200 MB.  Eventually swap is exhausted and the system 
kills a binary.  (It's not just mysql.  Other things are being killed as 
well.)


What would cause swap to increase steadily like that?  Something not 
releasing swap when it's no longer needed?


--
Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Running out of swap space????

2006-06-06 Thread Bill Moran
On Tue, 06 Jun 2006 09:13:22 -0500
Paul Schmehl [EMAIL PROTECTED] wrote:

 [EMAIL PROTECTED] wrote:
  Quoting [EMAIL PROTECTED]:
  
  -- Original message --
  From: [EMAIL PROTECTED]
  +pid 37308 (mysqld), uid 88, was killed: out of swap space
  +swap_pager: out of swap space
  +swap_pager_getswapspace(1): failed
 
  If you kill mysql server, does the swap space free up?  Are there any known
  issues between the version of MySQL that you're running and FreeBSD 6.0?
  
  MySQL not having a properly tuned config file for the system it runs on?  
  It is
  known to consume vast amounts of resources if not properly configured... 
  
 I wrote a one line shell script that runs swapinfo -h and cron'd it to 
 run once an hour.  Each hour the amount of swap space being used has 
 increased by 100 to 200 MB.  Eventually swap is exhausted and the system 
 kills a binary.  (It's not just mysql.  Other things are being killed as 
 well.)

This is typical.  I believe that the process killed is the one swapped out
the longest, or maybe it's random?  Either way, the one killed usually
isn't the one using all the memory.

 What would cause swap to increase steadily like that?  Something not 
 releasing swap when it's no longer needed?

One of two things:
1) You have misconfigured an application to think it has _way_ more memory
   available than it does, so it just keeps using more and more memory,
   because you told it that it was OK to do so.
2) You are running an application with a memory leak.  Meaning: it allocates
   memory, then loses track of said allocation and re-allocates it later.
   Since it lost track, it's no longer using the memory, but can't tell
   the kernel to release the memory for other applications to use either.
   This is a bug in the application, not FreeBSD.

If you provide the full output of top to the list, I'm sure some problem
will jump out for someone on the list.  Wait till the system is close to
having no swap, then do top  somefile and paste the file into your
mailer.

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


PTY's in a FreeBSD Jail

2006-06-06 Thread Kevin Wortman

All,

Sometime ago there was a question posed about the error Server refused to
allocate pty when trying to ssh into a freebsd jail.  It seemed to be
answered by someone saying that the command mount_devfs devfs
/your/jail/dir/dev needed to enter, which in fact does make the jail start
working.  However, it was stated in the same posting that this was not
considered to be secure.

Hence my question, if this is in fact not secure, how can I get my jail
properly configured in FreeBSD 6.0 without compromising the security of the
box?  I ask because I have several boxes currently running in my environment
with jails (FreeBSD 4.x) and do not see this command anywhere in the startup
scripts yet the jailed environment appears to be working like a champ.

I am fairly new to the FreeBSD world so please pardon my ignorance, if I
have displayed any.

Thanks in advance for any help/advise

V/r

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


Re: PTY's in a FreeBSD Jail

2006-06-06 Thread Kris Kennaway
On Tue, Jun 06, 2006 at 12:31:19PM -0400, Kevin Wortman wrote:
 All,
 
 Sometime ago there was a question posed about the error Server refused to
 allocate pty when trying to ssh into a freebsd jail.  It seemed to be
 answered by someone saying that the command mount_devfs devfs
 /your/jail/dir/dev needed to enter, which in fact does make the jail start
 working.  However, it was stated in the same posting that this was not
 considered to be secure.
 
 Hence my question, if this is in fact not secure, how can I get my jail
 properly configured in FreeBSD 6.0 without compromising the security of the
 box?  I ask because I have several boxes currently running in my environment
 with jails (FreeBSD 4.x) and do not see this command anywhere in the startup
 scripts yet the jailed environment appears to be working like a champ.
 
 I am fairly new to the FreeBSD world so please pardon my ignorance, if I
 have displayed any.

See the jail manpage for how to set up devfs.

Kris


pgpIFotbZwwNJ.pgp
Description: PGP signature


Dial Up To ASDL Router

2006-06-06 Thread Richard Collyer

Hello,

I've been given a company laptop which is ok but they dont supply data 
cards. Instead I have been given a 0845 number to dial when at a place 
with no Internet.


Instead I would like to use my mobile to dial my home phone number which 
is not 0845 therefore included in the thousands of free minutes that I 
get each month.


The only thing that is on in my house is the Freebsd server so how can I 
set this up to use the dial up modem to answer the phone and connect it 
to the Internet through the ADSL it is plugged into.


I've googled but as I dont know what this type of software is called I 
didn't find much. Anyone know of any software that will do this?


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


installkernel

2006-06-06 Thread Jonathan Herriott

Ok, so I obtained the latest release of the kernel source, and I followed
what it said to do in the /usr/src/Makefile.  Here's what it says in the
Makefile:

# For individuals wanting to upgrade their sources (even if only a
# delta of a few days):
#
#  1.  `cd /usr/src'   (or to the directory containing your source
tree).
#  2.  `make buildworld'
#  3.  `make buildkernel KERNCONF=YOUR_KERNEL_HERE' (default is
GENERIC).
#  4.  `make installkernel KERNCONF=YOUR_KERNEL_HERE'   (default is
GENERIC).
#  5.  `reboot'(in single user mode: boot -s from the loader
prompt).
#  6.  `mergemaster -p'
#  7.  `make installworld'
#  8.  `make delete-old'
#  9.  `mergemaster'
# 10.  `reboot'
# 11.  `make delete-old-libs' (in case no 3rd party program uses them
anymore)
#

Because this is my first time trying to install the kernel, I'm just using
the GENERIC configuration (will fix it once I figure out the correct
process).  Here's the errors I get when doing installkernel:

make installkernel
ERROR: Required audit group is missing, see /usr/src/UPDATING.
*** Error code 1

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

Stop in /usr/src.


The big problem is that nothing in /usr/src/UPDATING really explains why it
is doing this or what I need to change.  Here's what it says:

20060204:
   The 'audit' group was added to support the new auditing
functionality
   in the base system.  Be sure to follow the directions for updating,
   including the requirement to run mergemaster -p.

As far as the Makefile goes, I am building and installing the makefile
correctly.  Is there anything else I need to add?

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


PCTV 310e support

2006-06-06 Thread Gregory Nou

Hi,

I bought recently a PCTV 310e, which uses USB-2. After reading carefully 
bktr manpage, I saw that The bktr driver provides support for PCI video 
capture, which is bad news.
Does somebody know if it is possible to add some (even dirty) hack to 
make bktr work with USB cards ?


Thx !

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


Re: installkernel

2006-06-06 Thread Charles Howse


On Jun 6, 2006, at 12:08 PM, Jonathan Herriott wrote:

Ok, so I obtained the latest release of the kernel source, and I  
followed
what it said to do in the /usr/src/Makefile.  Here's what it says  
in the

Makefile:

# For individuals wanting to upgrade their sources (even if only a
# delta of a few days):
#
#  1.  `cd /usr/src'   (or to the directory containing your source
tree).
#  2.  `make buildworld'
#  3.  `make buildkernel KERNCONF=YOUR_KERNEL_HERE' (default is
GENERIC).
#  4.  `make installkernel KERNCONF=YOUR_KERNEL_HERE'   (default is
GENERIC).
#  5.  `reboot'(in single user mode: boot -s from the loader
prompt).
#  6.  `mergemaster -p'
#  7.  `make installworld'
#  8.  `make delete-old'
#  9.  `mergemaster'
# 10.  `reboot'
# 11.  `make delete-old-libs' (in case no 3rd party program uses them
anymore)
#

Because this is my first time trying to install the kernel, I'm  
just using

the GENERIC configuration (will fix it once I figure out the correct
process).  Here's the errors I get when doing installkernel:

make installkernel
ERROR: Required audit group is missing, see /usr/src/UPDATING.
*** Error code 1

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

Stop in /usr/src.


The big problem is that nothing in /usr/src/UPDATING really  
explains why it

is doing this or what I need to change.  Here's what it says:

20060204:
   The 'audit' group was added to support the new auditing
functionality
   in the base system.  Be sure to follow the directions for  
updating,

   including the requirement to run mergemaster -p.

As far as the Makefile goes, I am building and installing the makefile
correctly.  Is there anything else I need to add?


You need to merge your /etc/groups and the new /etc/groups that  
contains the audit group.

# mergemaster -p
then start over.

BTW, /usr/src/UPDATING is the definitive source for how to update  
your system/kernel.

Also reference the Handbook:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html

--
Bubba's Funny Stuff -
http://bubbabbq.homeunix.net/humor.html


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


Question about pstat (8)

2006-06-06 Thread Paul Schmehl

The man page for pstat has this:

 pstat [-Tfhknst] [-M core [-N system]]

What exactly is system?  What's the argument that pstat is looking 
for?  I'm trying to see what processes are using swap and how much each 
process is using.  Is that possible with pstat?  If so, what's the magic 
formula?


--
Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


smime.p7s
Description: S/MIME Cryptographic Signature


Re: portupgrade across NFS

2006-06-06 Thread Michael Collette

Sergey Matveychuk wrote:

Michael Collette wrote:

This problem only occurs when using portupgrade.  Both pkg_delete and
pkg_deinstall work without error.  Also, everything else in the process
that portupgrade goes through appears to work properly.  Just that
/var/db/pkg directory won't delete when NFS mounted.


Have you tried the last (2.1.1) version?
I've fixed a few problems and one of them looks like yours. But it's not
relate to NFS however.


No luck.  I was back on 2.0.1 which I upgraded with pkg_delete and 
pkg_add.  Still the exact same error with deleting the /var/db/pkg 
directory.


Like I mentioned earlier, we've been going through the source code on 
this, libraries and all.  If you'd like to toss some tweaks for me to 
test out off list I'd be one very motivated tester here.  This glitch 
may really complicate my network setup here, so doing whatever it takes 
to fix this is high on my priority list.


Just a thought for an ugly hack, but might it be possible to force a 
check for that directory after it has supposedly been deleted, and if it 
exists manually delete it?


Thanks for getting back with me on this.  Going to continue to muck 
around with things a bit here to see if we can stumble across something 
that helps.


Later on,
--
Michael Collette
IT Manager
TestEquity LLC
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


nsswitch.conf and Samba's windbind

2006-06-06 Thread Mikhail Teterin
Hello!

I'm trying to setup my machine (FreeBSD-6.1) to be able to authenticate some 
users against the corporate Active Directory (using Samba's windbind).

Having the following line in the /etc/nsswitch.conf works to that end:

passwd: files nis winbind

Unfortunately, this prevents the local +/- substitutions from working...

Using:

passwd_compat: nis winbind

restores the +/- functionality, but disables the Active Directory 
functionality :-(

How do I get both? Thanks!

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


Re: Question about pstat (8)

2006-06-06 Thread Dan Nelson
In the last episode (Jun 06), Paul Schmehl said:
 The man page for pstat has this:
 
  pstat [-Tfhknst] [-M core [-N system]]
 
 What exactly is system?  What's the argument that pstat is looking 
 for?  I'm trying to see what processes are using swap and how much each 
 process is using.  Is that possible with pstat?  If so, what's the magic 
 formula?

pstat -M -N is for a post-mortem analysis of a crashed system.  You
pass it the kernel and vmcore files with those flags.

If you want process stats, use ps.  Try ps axlw for starters.

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


Re: Dial Up To ASDL Router

2006-06-06 Thread Greg Barniskis

Richard Collyer wrote:

Hello,

I've been given a company laptop which is ok but they dont supply data 
cards. Instead I have been given a 0845 number to dial when at a place 
with no Internet.


Instead I would like to use my mobile to dial my home phone number which 
is not 0845 therefore included in the thousands of free minutes that I 
get each month.


The only thing that is on in my house is the Freebsd server so how can I 
set this up to use the dial up modem to answer the phone and connect it 
to the Internet through the ADSL it is plugged into.


I've googled but as I dont know what this type of software is called I 
didn't find much. Anyone know of any software that will do this?


The software you want is called FreeBSD, and as luck would have it 
it's already installed on your server. You just need to configure it 
to do what you want.


Plug a standard home phone jack into a standard external modem and 
plug that into a serial port on the home server, or use an internal 
modem card that is NOT a software modem (a.k.a. a Winmodem). 
Configure the server to offer a PPP or SLIP connection when the 
modem is dialed into, and walla! You just became your own dialup 
ISP. The server is probably already configured as a network gateway 
with NAT capabilities; if not you'll need that configured too.


There is more to it than that, of course, but further detail may be 
specific to your hardware and circumstances. Anyway, you can 
probably find just about everything you need to know about it in the 
FreeBSD Handbook and/or the Web site's articles on home networking.


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ppp-and-slip.html

--
Greg Barniskis, Computer Systems Integrator
South Central Library System (SCLS)
Library Interchange Network (LINK)
gregb at scls.lib.wi.us, (608) 266-6348
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: get file

2006-06-06 Thread Ricardo Carvalho

on orts you can also use curl

On 6/6/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:



-- Original message --
From: Efren Bravo [EMAIL PROTECTED]
 Hi,

 Is there a way from the console to get a file by
 http | ftp protocol?

 Which command should I run to do it?

 Thanks,


 Efren Bravo.
 -

install wget from ports, gets you something like this: wget
http://urltofileyouwanttodownload

or man wget for options

ftp, connect to ftp service on remote box and cd to the directory where
the file resides and do: get filename.   File will end up in the directory
from which you initiated ftp on your box.

Bob
___
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: Converting DocBook into PDF

2006-06-06 Thread Rico

N.J. Thomas wrote:

* Rico [EMAIL PROTECTED] [2006-06-06 03:41:50 +0200]:

I am working on a documentation project and needs to convert some
DocBook files into several formats.

I have installed xmlto amongst others and I can convert the DocBook 
into XHTML, TXT but not into PDF or PS.


This doesn't really help you with your xmlto problem, but I use the
following toolchain to produce PDF from DocBook

- write the XML file against the DocBook DTD

- validate the file with xmllint --valid --noout foo.xml
  xmllint is part of libxml2

  (Theoretically, this step is not necessary if you write proper
  XML, but xsltproc does not checks for valid XML (only well
  formed), and if you pass it non-valid DocBook XML, it spits out
  all sort of cryptic errors.)

- use xsltproc to convert to HTML:

  xsltproc --output foo.xhtml 
/usr/local/share/xsl/docbook/xhtml/docbook.xsl foo.xml

  (xsltproc is part of libxslt)

- use xsltproc to convert to FO:

  xsltproc --stringparam  fop.extensions  1 --output foo.fo 
/usr/local/share/xsl/docbook/fo/docbook.xsl foo.xml

- use fop to convert FO to DPF:

  fop foo.fo foo.pdf 


You can find libxml2, libxslt, fop, docbook-xml, and docbook-xsl in
ports.

Thomas


Thank you very much! I will use that solution then!

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


Virtual hosts and PHP downloads: php5 and apache22 on FreeBSD 6.1-STABLE

2006-06-06 Thread John DeStefano

I upgraded my system from 5.4-RELEASE to 6.1-STABLE last week, and my
web server immediately stopped serving PHP pages, where I had no
problem doing so before.  Instead of processing the PHP code on the
server and displaying the result in a browser, browsing to any page
containing PHP code resulted in a prompt to download the PHP page as a
file.

/usr/ports/UPGRADING mentions that PHP has been streamlined and must
be recompiled to work with Apache and other packages. After
deinstalling, configuring (where applicable), and reinstalling PHP5,
php5-extensions, and apache2 to the latest versions, not only were PHP
files not being served, but my web server was toast:
Forbidden You don't have permission to access / on this server.

I edited the new apache config file (now located in
/usr/local/etc/apache22/httpd.conf) with my system information,
including a DocumentRoot path. But when I started apache, I got some
very peculiar errors:
Warning: DocumentRoot [/www/docs/dummy-host.example.com] does not exist
Warning: DocumentRoot [/www/docs/dummy-host2.example.com] does not exist

Not only did I confirm beforehand that I had set the DocumentRoot
path, and that apache was using the correct config file... but these
dummy paths didn't exist in the config file!  I learned eventually
that a new apache directive splits out virtual host directives to a
new include file (/usr/local/etc/apache22/extra/httpd-vhosts.conf).
Then I learned after getting a server warning (NameVirtualHost *:80
has no VirtualHosts) that the syntax has been slightly modified, so
that the IP/port value of each VirtualHost specification must match
that of the NameVirtualHost directive (i.e., NameVirtualHost *:80
and VirtualHost *:80).

Still having trouble though: my main site loads properly, but the
other virtual hosts aren't. Browsing to any virtual host address other
than the default results in either the wrong content or an error.
Here's what my httpd-vhosts.conf looks like:

NameVirtualHost *:80

VirtualHost *:80
ServerName www.SiteA.com
ServerAlias SiteA.com *.SiteA.com
DocumentRoot /usr/www
ErrorLog /var/log/httpd-SiteA-error.log
CustomLog /var/log/httpd-SiteA-access.log combined
/VirtualHost

VirtualHost *:80
ServerName www.SiteB.com
ServerAlias SiteB.com *.SiteB.com
DocumentRoot /usr/www2
ErrorLog /var/log/httpd-SiteB-error.log
CustomLog /var/log/httpd-SiteB-access.log combined
/VirtualHost

So, what's happening is that SiteA works as expected, but browsing to
SiteB brings you to SiteA, or doesn't load at all (403 error).

In addition, I'm back to my original problem, where PHP files are not
loading, and browsing to a PHP page prompts the user to download the
page as a file.

Any help on either the virtual hosts or the PHP download issue would
be greatly appreciated.

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


RE: Does FreeBSD 4.11-STABLE support the 8237R?

2006-06-06 Thread Ted Mittelstaedt


-Original Message-
From: Jerry McAllister [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 04, 2006 7:58 PM
To: [EMAIL PROTECTED]
Cc: Ted Mittelstaedt; Scott Hiemstra; 'FreeBSD-Questions Questions'
Subject: Re: Does FreeBSD 4.11-STABLE support the 8237R?


I think by now, people have lost track of who has posted what.

Probably since your too used to top-posting.

I don't really care what the responses were.

Sure, sure.

 It is just
that Teddy got all flamey about the original poster telling
someone that their response was not helpful.

The OP didn't simply politely tell someone their response wasn't
helpful.  If he had I never would have posted.  The OP basically told
one of the respondents to shove their fucking response
up their ass.

 Seems like he
likes to dish it out but isn't as big on lunching on his
own menu.   


Take your meds, Jerry, your delusional again.

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


ECS K7-Terminator and 6.1-STABLE

2006-06-06 Thread Andrey Slusar
Hi!

 I have motherboard SocketA ECS K7-terminator - it's a PCCHIPS M848A
V5.0(SIS746FX+SIS963). I need run on this mother 6.1-STABLE
system. When is running system, not work PCI devices. When i run
system, print message:
,
| acpi0: AMIINT SIS740XX on motherboard
| panic:AcpiOsDerivePciId unable to initialise pci bus
`
and reboot. When i'm boot with acpi disable, pciconf -lv and
PCI/AGP devices not works(COM-ports too). Many versions bios's i'm
probed - official/not official(cheepo), from compatible motherboards -
not works.
Help me! Maybe upgrade to -CURRENT is fix this problem or not?

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


write failurer on transfer

2006-06-06 Thread justin schlingmann

Hello,

I`m trying to install freebsd 6.1 on my system.
I`ve tried to install through passive ftp and when this failed i tried to
fetch and burn an iso imkage.

In both ways i get a write failure on transfer when i try to install the
distributions.
What is wrong and how can i let freebsd install the distributions
properly??

Thanks in advance,
Justin.

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


Re: Virtual hosts and PHP downloads: php5 and apache22 on FreeBSD 6.1-STABLE

2006-06-06 Thread Kevin Kinsey

John DeStefano wrote:

I upgraded my system from 5.4-RELEASE to 6.1-STABLE last week, and my
web server immediately stopped serving PHP pages, where I had no
problem doing so before.  Instead of processing the PHP code on the
server and displaying the result in a browser, browsing to any page
containing PHP code resulted in a prompt to download the PHP page as a
file.


As you are probably already painfully aware, this is *usually*
due to the absence of the necessary lines in the httpd.conf file;
specifically, AddModule and LoadModule (pointing to the PHP shared
object) and AddType (referring to the MIME type for PHP files).


/usr/ports/UPGRADING mentions that PHP has been streamlined and must
be recompiled to work with Apache and other packages. After
deinstalling, configuring (where applicable), and reinstalling PHP5,
php5-extensions, and apache2 to the latest versions, not only were PHP
files not being served, but my web server was toast:
Forbidden You don't have permission to access / on this server.


Not toast, exactly.  Another configuration error, most likely.
httpd.conf tells the server which file(s) is/are acceptable as
INDEX files.  If all your index files were index.php, for
example, and the httpd.conf file (which is new, apparently?) says
that only index.html files are allowed as INDEX files, you'll
get this error every time.


I edited the new apache config file (now located in
/usr/local/etc/apache22/httpd.conf) with my system information,
including a DocumentRoot path. But when I started apache, I got some
very peculiar errors:
Warning: DocumentRoot [/www/docs/dummy-host.example.com] does not exist
Warning: DocumentRoot [/www/docs/dummy-host2.example.com] does not exist

Not only did I confirm beforehand that I had set the DocumentRoot
path, and that apache was using the correct config file... but these
dummy paths didn't exist in the config file!  I learned eventually
that a new apache directive splits out virtual host directives to a
new include file (/usr/local/etc/apache22/extra/httpd-vhosts.conf).
Then I learned after getting a server warning (NameVirtualHost *:80
has no VirtualHosts) that the syntax has been slightly modified, so
that the IP/port value of each VirtualHost specification must match
that of the NameVirtualHost directive (i.e., NameVirtualHost *:80
and VirtualHost *:80).

Still having trouble though: my main site loads properly, but the
other virtual hosts aren't. Browsing to any virtual host address other
than the default results in either the wrong content or an error.
Here's what my httpd-vhosts.conf looks like:

NameVirtualHost *:80

VirtualHost *:80
ServerName www.SiteA.com
ServerAlias SiteA.com *.SiteA.com
DocumentRoot /usr/www
ErrorLog /var/log/httpd-SiteA-error.log
CustomLog /var/log/httpd-SiteA-access.log combined
/VirtualHost

VirtualHost *:80
ServerName www.SiteB.com
ServerAlias SiteB.com *.SiteB.com
DocumentRoot /usr/www2
ErrorLog /var/log/httpd-SiteB-error.log
CustomLog /var/log/httpd-SiteB-access.log combined
/VirtualHost



IANAE here, but that's not like my httpd.conf, in which
the ports aren't specified.  I also don't use ServerAlias
directives.  Like I said, no expert.


So, what's happening is that SiteA works as expected, but browsing to
SiteB brings you to SiteA, or doesn't load at all (403 error).

In addition, I'm back to my original problem, where PHP files are not
loading, and browsing to a PHP page prompts the user to download the
page as a file.

Any help on either the virtual hosts or the PHP download issue would
be greatly appreciated.



You said you did this already, but I'd again make **sure**
I was editing the correct httpd.conf.  Get the right syntax,
and it'll be there.  Watch out for IF syntax, also.

Can you post the relevant lines (AddModule, LoadModule, AddType)
and whether or not they are contained in an IF ??

Kevin Kinsey


--
How do you explain school to a higher intelligence?
-- Elliot, E.T.

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


Re: write failurer on transfer

2006-06-06 Thread Kevin Kinsey

justin schlingmann wrote:

Hello,

I`m trying to install freebsd 6.1 on my system.
I`ve tried to install through passive ftp and when this failed i tried to
fetch and burn an iso imkage.

In both ways i get a write failure on transfer when i try to install the
distributions.
What is wrong and how can i let freebsd install the distributions
properly??


Can you show us a transcript of what's going on?  What command
is issued, or what action is taken, that yields the response write
failure on transfer?

Kevin Kinsey

--
So... did you ever wonder, do garbagemen take showers before they
go to work?

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


Re: sendmail client side smtp authentication problem

2006-06-06 Thread Toni Schmidbauer
At Mon,  5 Jun 2006 17:02:29 +0300 (EEST),
�� ��� wrote:
 sendmail client side smtp authentication problem
 
 My ISP wants my MTA authenticate itself from now on.
 So, I read cf/README, added FEATURE(authinfo) in my localhost.mc,
 created the file authinfo with one line

i added the following lines to /etc/mail/your.hostname.here.mc:

define(`SMART_HOST',`your.isp.smart.host')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl
FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl

then i created the dir /etc/mail/auth with mode 700 and the
file client-info with mode 600.

client-info has the following content:

AuthInfo:your.isp.smart.host U:username I:username P:password M:PLAIN

this worked for me.

hth,
toni
-- 
If you understand what you're doing, you're | toni at stderror dot at
not learning anything.  | Toni Schmidbauer
-- Anonymous|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Compile courier-imap 4.1.1 fails (/usr/bin/ld: cannot find -lpcre)

2006-06-06 Thread boink

On 06/06/06, Juha Saarinen [EMAIL PROTECTED] wrote:

Why not use courier-imap from the ports collection?



Juha,

Thank you for your prompt response.

As I mentioned, the port also *apparently* fails to find pcre:
quote
conftest.c:33:23: pcre/pcre.h: No such file or directory
/quote

In addition, by default, the port includes options I don't want, and
omits some that I do want (although I could change this).

Risk averse, I don't want to proceed without either fixing the problem
building from source, or continuing with the port, assured not to have
problems later.

Still stuck!

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


Re: Session Menu xdm/gdm problem

2006-06-06 Thread Mike Hunter
On Jun 05 at 21:39, Eric Schuele wrote:

 Mike Hunter wrote:
 Hey everybody,
 
 I'm having a frustrating X problem.  I installed X via portupgrade and
 hacked /etc/ttys to enable xdm.  I can log in successfully both as root
 and as a non-priv user, but either way I get to a screen that says:
 
 Session Menu
 
 Load Session # Delete Session # Break Lock # Default/Fail Safe # Cancel
 
 But if I disable xdm and simply use startx, it launches X and my window
 manager fine.  I tried deleting my .xinitrc but that didn't help.
 
 I have a feeling some X component isn't in place.  I tried compiling gdm
 as a replacement but that didn't help (same symptoms).  I was able to run
 gdmsetup (or was it gdmconfig?) by logging into gdm in fail-safe mode, and
 I could change some of the GDM settings, but I didn't see anything that I
 could twist to fix the problem.
 
 FreeBSD 6.1-RELEASE May 12
 xorg-6.9.0
 
 For xdm:
 copy your .xinitrc to .xsession and see if that helps.
 
 gdm:
 is a bit more complicated.

Thanks!  It did fix the xdm side and it did not (as you predicted) fix
gdm.

What am I missing?  What's supposed to be the difference between .xinitrc
and .xsession?

How would I fix it for gdm?

Thanks again!

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


RE: Dial Up To ASDL Router

2006-06-06 Thread fbsd
Your post is missing a lot of description. I will try to fill in the
missing info.

Your general wish is to use your personal mobile phone and connect
it to your work provided laptop which is running win/xp and be able
to dial a landline phone number to your FreeBSD server which is
currently connected to the public internet over a 24/7 ADSL line.

You need hardware to do this. The laptop needs a winmodem with a
telecom phone line that connects to your mobile phone. If your
mobile phone does not have i/o jack which most do not, you are dead
in the water. You could still plug the laptop winmodem telecom phone
line into any hotel or airport public access port and dial the
landline phone number to your FreeBSD server.

Your home FreeBSD server would need a separate FreeBSD modem (IE not
winmodem) and you would use user ppp to answer the incoming call.
In this mode your home FreeBSD server would be acting as an gateway
LAN box so your dial in connection could have access to your
internet connection to public internet.

Speed of this laptop/modem to server/modem is limited to 33k under
best conditions as 56k is only possible when connecting to ISP which
supports 56k. Speed over mobile would be considerable slower.

Configuring user ppp for dial in support is covered in the install
guide at www.a1poweruser.com
give it a read for the details.




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Richard
Collyer
Sent: Tuesday, June 06, 2006 12:59 PM
To: freebsd-questions@freebsd.org
Subject: Dial Up To ASDL Router


Hello,

I've been given a company laptop which is ok but they dont supply
data
cards. Instead I have been given a 0845 number to dial when at a
place
with no Internet.

Instead I would like to use my mobile to dial my home phone number
which
is not 0845 therefore included in the thousands of free minutes that
I
get each month.

The only thing that is on in my house is the Freebsd server so how
can I
set this up to use the dial up modem to answer the phone and connect
it
to the Internet through the ADSL it is plugged into.

I've googled but as I dont know what this type of software is called
I
didn't find much. Anyone know of any software that will do this?

Cheers
Richard
___
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: write failurer on transfer

2006-06-06 Thread Chuck Swiger

justin schlingmann wrote:

Hello,

I`m trying to install freebsd 6.1 on my system.
I`ve tried to install through passive ftp and when this failed i tried to
fetch and burn an iso imkage.

In both ways i get a write failure on transfer when i try to install the
distributions.
What is wrong and how can i let freebsd install the distributions
properly??


That can indicate a problem with your IDE drives, such as not jumpering a 
master or slave device properly, or a failing or otherwise bad IDE cable.


Some things that might help would be to recheck your cabling, replace the IDE 
cable with a new one, check for and install the latest BIOS update for your 
computer, tweak BIOS settings like UltraDMA  LBA modes.


You might also try booting and installing in Safe mode via the boot menu, 
which will disable DMA for the IDE devices entirely and might work around the 
problem long enough for the install to finish.


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


RE: Virtual hosts and PHP downloads: php5 and apache22 on FreeBSD6.1-STABLE

2006-06-06 Thread fbsd
The php5 port is broken in 6.1.
It no longer defaults to activating the php/apache module.

This has been covered in great detail on this list in the past 6
weeks which you would have found out if you reviewed the list
archives before posting this question.

After downloading the 6.1 version php5 port config files you have to
do make config and select the apache module. The make install
will automatically make the correct changes to your httpd-config
file for serving up php pages correctly. php5-extensions is not
normally needed.

Your other httpd-config problems are due to you using apache22
instead of apache13 which is the rock hard production version of
Apache web server. Apache22 is generally considered as the
developmental version.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of John
DeStefano
Sent: Tuesday, June 06, 2006 3:46 PM
To: freebsd-questions@freebsd.org
Subject: Virtual hosts and PHP downloads: php5 and apache22 on
FreeBSD6.1-STABLE


I upgraded my system from 5.4-RELEASE to 6.1-STABLE last week, and
my
web server immediately stopped serving PHP pages, where I had no
problem doing so before.  Instead of processing the PHP code on the
server and displaying the result in a browser, browsing to any page
containing PHP code resulted in a prompt to download the PHP page as
a
file.

/usr/ports/UPGRADING mentions that PHP has been streamlined and must
be recompiled to work with Apache and other packages. After
deinstalling, configuring (where applicable), and reinstalling PHP5,
php5-extensions, and apache2 to the latest versions, not only were
PHP
files not being served, but my web server was toast:
Forbidden You don't have permission to access / on this server.

I edited the new apache config file (now located in
/usr/local/etc/apache22/httpd.conf) with my system information,
including a DocumentRoot path. But when I started apache, I got some
very peculiar errors:
Warning: DocumentRoot [/www/docs/dummy-host.example.com] does not
exist
Warning: DocumentRoot [/www/docs/dummy-host2.example.com] does not
exist

Not only did I confirm beforehand that I had set the DocumentRoot
path, and that apache was using the correct config file... but these
dummy paths didn't exist in the config file!  I learned eventually
that a new apache directive splits out virtual host directives to a
new include file (/usr/local/etc/apache22/extra/httpd-vhosts.conf).
Then I learned after getting a server warning (NameVirtualHost *:80
has no VirtualHosts) that the syntax has been slightly modified, so
that the IP/port value of each VirtualHost specification must match
that of the NameVirtualHost directive (i.e., NameVirtualHost *:80
and VirtualHost *:80).

Still having trouble though: my main site loads properly, but the
other virtual hosts aren't. Browsing to any virtual host address
other
than the default results in either the wrong content or an error.
Here's what my httpd-vhosts.conf looks like:

NameVirtualHost *:80

VirtualHost *:80
ServerName www.SiteA.com
ServerAlias SiteA.com *.SiteA.com
DocumentRoot /usr/www
ErrorLog /var/log/httpd-SiteA-error.log
CustomLog /var/log/httpd-SiteA-access.log combined
/VirtualHost

VirtualHost *:80
ServerName www.SiteB.com
ServerAlias SiteB.com *.SiteB.com
DocumentRoot /usr/www2
ErrorLog /var/log/httpd-SiteB-error.log
CustomLog /var/log/httpd-SiteB-access.log combined
/VirtualHost

So, what's happening is that SiteA works as expected, but browsing
to
SiteB brings you to SiteA, or doesn't load at all (403 error).

In addition, I'm back to my original problem, where PHP files are
not
loading, and browsing to a PHP page prompts the user to download the
page as a file.

Any help on either the virtual hosts or the PHP download issue would
be greatly appreciated.

Thanks,
~John
___
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: i wish to buy your site

2006-06-06 Thread Hunter Fuller

No, you don't get it.
FreeBSD is a free operating system.
It is not run by one person, and therefore its site can't be sold.
No one would give it up because millions of people use the FreeBSD  
operating system.
I got pissed off at you because, had you glanced over the site, you  
would know everything I just told you.


On  04 Jun 2006, at 10:46 PM, bill hunt wrote:


I don't get it.
I just want to buy your website.
Your could just answer with yes or no but why so rude?
I guess it's a no.
sorry to hear about this.
If you'll ever wish to sell it please contact me.
Best regards,
Bill.

On 6/4/06, Hunter Fuller [EMAIL PROTECTED] wrote:

On  04 Jun 2006, at 9:10 PM, Alex de Kruijff wrote:

 On Sun, Jun 04, 2006 at 08:52:18AM +, Hunter Fuller wrote:
 Whose again? Mine? You sent this mail to quite a few people!

 So did you.
Intentionally. :)





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


lm/temp monitoring

2006-06-06 Thread Jim Stapleton

What package contains the lm utility (driver?) use for temperature
monitoring? What is a good package to get a reading of my
CPU/Motherboard temperature reading in a semi-usr friendly format?

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


Re: Virtual hosts and PHP downloads: php5 and apache22 on FreeBSD6.1-STABLE

2006-06-06 Thread John DeStefano

First and foremost, thanks for the reply.

On 6/6/06, fbsd [EMAIL PROTECTED] wrote:

The php5 port is broken in 6.1.
It no longer defaults to activating the php/apache module.


Thanks for that. I do appreciate it.



This has been covered in great detail on this list in the past 6
weeks which you would have found out if you reviewed the list
archives before posting this question.


I may have missed a week or two, but the only responses I've seen
personally have been see /usr/ports/UPDATING, which I did.  I'm not
thrilled with the stock RTFM post, but I guess that's par for the
course.



After downloading the 6.1 version php5 port config files you have to
do make config and select the apache module. The make install
will automatically make the correct changes to your httpd-config
file for serving up php pages correctly. php5-extensions is not
normally needed.


I did that.  That's pointed out in /usr/ports/UPDATING.
Unfortunately, it didn't automatically fix the issue for me.



Your other httpd-config problems are due to you using apache22
instead of apache13 which is the rock hard production version of
Apache web server. Apache22 is generally considered as the
developmental version.


I was running 1.3 before my BSD upgrade to 6.1-STABLE.  There were
security issues with 1.3 that were not resolved at the time of my
upgrade.  And I assumed with the package changes to PHP5 in 6.1 that
going with an updated version of apache as well would be the best
method.  If you're saying I should revert back to 1.3, should I also
revert to an earlier version of PHP5, or is the latest and greatest
still best compatible with apache13?

Thank you,
~John

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of John
DeStefano
Sent: Tuesday, June 06, 2006 3:46 PM
To: freebsd-questions@freebsd.org
Subject: Virtual hosts and PHP downloads: php5 and apache22 on
FreeBSD6.1-STABLE


I upgraded my system from 5.4-RELEASE to 6.1-STABLE last week, and
my
web server immediately stopped serving PHP pages, where I had no
problem doing so before.  Instead of processing the PHP code on the
server and displaying the result in a browser, browsing to any page
containing PHP code resulted in a prompt to download the PHP page as
a
file.

/usr/ports/UPGRADING mentions that PHP has been streamlined and must
be recompiled to work with Apache and other packages. After
deinstalling, configuring (where applicable), and reinstalling PHP5,
php5-extensions, and apache2 to the latest versions, not only were
PHP
files not being served, but my web server was toast:
Forbidden You don't have permission to access / on this server.

I edited the new apache config file (now located in
/usr/local/etc/apache22/httpd.conf) with my system information,
including a DocumentRoot path. But when I started apache, I got some
very peculiar errors:
Warning: DocumentRoot [/www/docs/dummy-host.example.com] does not
exist
Warning: DocumentRoot [/www/docs/dummy-host2.example.com] does not
exist

Not only did I confirm beforehand that I had set the DocumentRoot
path, and that apache was using the correct config file... but these
dummy paths didn't exist in the config file!  I learned eventually
that a new apache directive splits out virtual host directives to a
new include file (/usr/local/etc/apache22/extra/httpd-vhosts.conf).
Then I learned after getting a server warning (NameVirtualHost *:80
has no VirtualHosts) that the syntax has been slightly modified, so
that the IP/port value of each VirtualHost specification must match
that of the NameVirtualHost directive (i.e., NameVirtualHost *:80
and VirtualHost *:80).

Still having trouble though: my main site loads properly, but the
other virtual hosts aren't. Browsing to any virtual host address
other
than the default results in either the wrong content or an error.
Here's what my httpd-vhosts.conf looks like:

NameVirtualHost *:80

VirtualHost *:80
ServerName www.SiteA.com
ServerAlias SiteA.com *.SiteA.com
DocumentRoot /usr/www
ErrorLog /var/log/httpd-SiteA-error.log
CustomLog /var/log/httpd-SiteA-access.log combined
/VirtualHost

VirtualHost *:80
ServerName www.SiteB.com
ServerAlias SiteB.com *.SiteB.com
DocumentRoot /usr/www2
ErrorLog /var/log/httpd-SiteB-error.log
CustomLog /var/log/httpd-SiteB-access.log combined
/VirtualHost

So, what's happening is that SiteA works as expected, but browsing
to
SiteB brings you to SiteA, or doesn't load at all (403 error).

In addition, I'm back to my original problem, where PHP files are
not
loading, and browsing to a PHP page prompts the user to download the
page as a file.

Any help on either the virtual hosts or the PHP download issue would
be greatly appreciated.

Thanks,
~John

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


Re: Virtual hosts and PHP downloads: php5 and apache22 on FreeBSD 6.1-STABLE

2006-06-06 Thread John DeStefano

On 6/6/06, Kevin Kinsey [EMAIL PROTECTED] wrote:

John DeStefano wrote:
 I upgraded my system from 5.4-RELEASE to 6.1-STABLE last week, and my
 web server immediately stopped serving PHP pages, where I had no
 problem doing so before.  Instead of processing the PHP code on the
 server and displaying the result in a browser, browsing to any page
 containing PHP code resulted in a prompt to download the PHP page as a
 file.

As you are probably already painfully aware, this is *usually*
due to the absence of the necessary lines in the httpd.conf file;
specifically, AddModule and LoadModule (pointing to the PHP shared
object) and AddType (referring to the MIME type for PHP files).


Hi Kevin.  Yes: painfully aware at this point.



 /usr/ports/UPGRADING mentions that PHP has been streamlined and must
 be recompiled to work with Apache and other packages. After
 deinstalling, configuring (where applicable), and reinstalling PHP5,
 php5-extensions, and apache2 to the latest versions, not only were PHP
 files not being served, but my web server was toast:
 Forbidden You don't have permission to access / on this server.

Not toast, exactly.  Another configuration error, most likely.
httpd.conf tells the server which file(s) is/are acceptable as
INDEX files.  If all your index files were index.php, for
example, and the httpd.conf file (which is new, apparently?) says
that only index.html files are allowed as INDEX files, you'll
get this error every time.


Yup... and with apache22, one of the benefits is that the PHP file
handler lines are automatically filled in when compiling PHP (although
I assume that would be the case with any version of apache as well).



 I edited the new apache config file (now located in
 /usr/local/etc/apache22/httpd.conf) with my system information,
 including a DocumentRoot path. But when I started apache, I got some
 very peculiar errors:
 Warning: DocumentRoot [/www/docs/dummy-host.example.com] does not exist
 Warning: DocumentRoot [/www/docs/dummy-host2.example.com] does not exist

 Not only did I confirm beforehand that I had set the DocumentRoot
 path, and that apache was using the correct config file... but these
 dummy paths didn't exist in the config file!  I learned eventually
 that a new apache directive splits out virtual host directives to a
 new include file (/usr/local/etc/apache22/extra/httpd-vhosts.conf).
 Then I learned after getting a server warning (NameVirtualHost *:80
 has no VirtualHosts) that the syntax has been slightly modified, so
 that the IP/port value of each VirtualHost specification must match
 that of the NameVirtualHost directive (i.e., NameVirtualHost *:80
 and VirtualHost *:80).

 Still having trouble though: my main site loads properly, but the
 other virtual hosts aren't. Browsing to any virtual host address other
 than the default results in either the wrong content or an error.
 Here's what my httpd-vhosts.conf looks like:

 NameVirtualHost *:80

 VirtualHost *:80
 ServerName www.SiteA.com
 ServerAlias SiteA.com *.SiteA.com
 DocumentRoot /usr/www
 ErrorLog /var/log/httpd-SiteA-error.log
 CustomLog /var/log/httpd-SiteA-access.log combined
 /VirtualHost

 VirtualHost *:80
 ServerName www.SiteB.com
 ServerAlias SiteB.com *.SiteB.com
 DocumentRoot /usr/www2
 ErrorLog /var/log/httpd-SiteB-error.log
 CustomLog /var/log/httpd-SiteB-access.log combined
 /VirtualHost


IANAE here, but that's not like my httpd.conf, in which
the ports aren't specified.  I also don't use ServerAlias
directives.  Like I said, no expert.


Right: that's not from the httpd.conf file itself any longer; it's the
httpd-vhosts.conf file, which is called on as an include in the 2.2
version of httpd.conf.  In earlier versions, the VirtualHost
directives have been moved from the main config file to that include
file.  And the IP/port specification for each VirtualHost entry must
now match that of the NameVirtualHost entry (as shown above).



 So, what's happening is that SiteA works as expected, but browsing to
 SiteB brings you to SiteA, or doesn't load at all (403 error).

 In addition, I'm back to my original problem, where PHP files are not
 loading, and browsing to a PHP page prompts the user to download the
 page as a file.

 Any help on either the virtual hosts or the PHP download issue would
 be greatly appreciated.


You said you did this already, but I'd again make **sure**
I was editing the correct httpd.conf.  Get the right syntax,
and it'll be there.  Watch out for IF syntax, also.


I triple-checked the config to make sure apache is loading the correct
config file.  In fact, I've finally gotten the config to the point
where none of the apache self-tests report any syntax or configuration
errors at all.  Unfortunately, that doesn't mean it works as I'd
expected; just means there are no syntax errors.



Can you post the relevant lines (AddModule, LoadModule, AddType)
and whether or not they are contained in an IF ??


Please find my httpd.conf and httpd-vhosts.conf 

Re: Session Menu xdm/gdm problem

2006-06-06 Thread Eric Schuele

Mike Hunter wrote:

On Jun 05 at 21:39, Eric Schuele wrote:


Mike Hunter wrote:

Hey everybody,

I'm having a frustrating X problem.  I installed X via portupgrade and
hacked /etc/ttys to enable xdm.  I can log in successfully both as root
and as a non-priv user, but either way I get to a screen that says:

Session Menu

Load Session # Delete Session # Break Lock # Default/Fail Safe # Cancel

But if I disable xdm and simply use startx, it launches X and my window
manager fine.  I tried deleting my .xinitrc but that didn't help.

I have a feeling some X component isn't in place.  I tried compiling gdm
as a replacement but that didn't help (same symptoms).  I was able to run
gdmsetup (or was it gdmconfig?) by logging into gdm in fail-safe mode, and
I could change some of the GDM settings, but I didn't see anything that I
could twist to fix the problem.

FreeBSD 6.1-RELEASE May 12
xorg-6.9.0


For xdm:
copy your .xinitrc to .xsession and see if that helps.

gdm:
is a bit more complicated.


Thanks!  It did fix the xdm side and it did not (as you predicted) fix
gdm.


NP.  Glad it fixed it.



What am I missing?  What's supposed to be the difference between .xinitrc
and .xsession?


The difference...  well...  for your intents and purposes, .xinitrc is 
run via 'startx', while .xsession is used by xdm.  But that's not really 
a good answer to the question.  Google will be your friend here.




How would I fix it for gdm?


Try this:
http://lists.freebsd.org/pipermail/freebsd-questions/2006-April/119887.html



Thanks again!

Mike




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


Re: portupgrade across NFS

2006-06-06 Thread Michael Collette

Sergey Matveychuk wrote:

Michael Collette wrote:

No luck.  I was back on 2.0.1 which I upgraded with pkg_delete and
pkg_add.  Still the exact same error with deleting the /var/db/pkg
directory.


Let's make it clean. You have /var/db/pkg as nfs mounted? You can't
remove /var/db/pkg/portname directory?


Got one bad bit of information from my previous post.  The problem DOES 
exist when just performing a pkg_deinstall.  Apparently the one test I 
based my earlier post on wasn't repeatable.  The problem is not with the 
portupgrade script itself.


Dug in quite a bit further with this today.  When pkg_deinstall calls to 
pkg_delete a .nfs file is created which is showing as being actively 
accessed by the ruby process.  This file vanishes once pkg_deinstall 
quits.  Due to that file, even attempting a rm -rf on that directory 
will fail within pkg_deinstall.


For testing this out, we added a cheap hack to the portupgrade script 
immediately after the call to pkg_deinstall that just removes the 
directory once pkg_deinstall has ended.  This works, but has no logic or 
error checking at this point.


The pkg_deinstall script does not report that it didn't complete, so the 
main portupgrade script just keeps on going as though there were no errors.


With that being said, what I believe needs to happen in the short term 
is to have a check within the portupgrade script where if the 
pkg_deinstall returns successful and the /var/db/pkg directory still 
exists, delete it.  This would be right around line 1721.


Obviously the more correct thing to do here would be to correct 
pkg_deinstall's behavior.  That looks like it may be quite a bit more 
clever to do, thus my recommendation for fixing portupgrade now, and 
revisit pkg_deinstall later.  I'm just concerned that the real problem 
may have more to do with the ruby engine and NFS than this script, which 
may take many months to correct.


Later on,
--
Michael Collette
IT Manager
TestEquity LLC

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


Re: i wish to buy your site

2006-06-06 Thread Daniel A. Akulenok
On Sun, June 4, 2006 11:54, Richard Collyer wrote:
 bill hunt wrote:
 dear webmaster.
 My name is Bill Hunt and I'm interested in purchsing your site.
 the price is nagotiable and I'm willing to pay as much as we can agree
 on.
 please let me know if it's ok by you and we'll start nagotiating.
 yours,
 Bill

 Wow. Microsoft in a if you can't beat 'em buy 'em. From Bill
 himselfbe scared...very scared!

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

No, guys. All of *you* who responded to this mail failed to realize that
this is a spam message, and that it is most probably just an alternative
scam to the nigerian stuff.

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


How to set up private gateway server with specific features

2006-06-06 Thread [EMAIL PROTECTED]

I have a new freebsd6.1-stable install

I've almost got it configured the way I want it.

Except Ive got a couple of problems and dont see what to do about it.

requirements I cant figure out how to do are:

specific setup issues are I have two nics and one is named red, and the 
other green, as you can imagine the red one is out to the internet, and 
the green one is the internal net.


green ip = 192.168.1.1

red ip = DHCP

1.  I need a dhcp server on the green net that can update the dns 
server automatically when a dhcp lease is accepted.


2.  The freebsd server needs to be able to be a dns server for the 
green net and forward other requests to the nameserver obtained from 
the DHCP setup.


3.  the dns server needs to be setup to look to itself for name 
resolution first so that it can resolve names of internal clients as 
well as external ones.


4.  Id like to be able to assign the same ip address from the dhcp pool 
to the same host for testing purposes when building new servers.


I find that configuring the dhcp server to assign the same lease via 
hostname works better than configuring temporary hostnames.




WHAT I've done so far...

I already know how to configure dnsmasq to do both the dns and dhcp 
part of my requirements and that is currently setup and running. except 
that the server is not looking to itself for name resolution first.


Ive used dnsmasq before and in this setup it requires that the dhcp 
client that runs on the red interface NOT create a new /etc/resolv.conf 
but instead create that file in some other defined location like 
/etc/dhcp/resolv.conf


dnsmasq can then be configured to look to the other resolv.conf for 
domains which are not local, and the server looks to dnsmasq for its 
own name resolution because I've hardcoded its own static internal ip 
in /etc/resolv.conf


using the default dhclient, I can not configure it to NOT replace the 
/etc/resolv,conf and instead replace some other file. (actually I could 
get by with just NOT replacing /etc/resolv.conf and I can hardcode the 
other one, but dhclient just doesnt seem to have this feature.)  yes I 
read the man page!


I cant not seem to get any dhcp server Ive used (isc-dhcp-server, and 
dnsmasq build-in) to properly read the hostname and send the same ip 
address each time.


seems that one of my freebsd clients does not report its hostname to 
the dhcp server in the way I expect.


assume a fqdn of myhost.myinternaldomain.net

windows boxes and some unix boxes report to the dhcp server a hostname 
of myhost, but my dhcp server couldnt match to a client hostname of 
myhost and serve out the IP I requested.  I altered the dhcp server 
to expect a hostname of the full fqdn, but it didnt match on that 
either.


so what hostname does dhclient report when its trying to get an ip address.

For security reasons I dont want to use bind.  so I looked at using 
tinydns and dnscache, that sort of worked, but again I couldn't make 
the dhcp server update the DNS database.


dnsmasq works because it is its own dhcp server. so the name server 
portion automatically reads the dhcp leases database when answering 
queries.


Has anyone else been able to set this up with these requirements?

Im stuck taking this server to the next level all my internet sharing 
and such works now, so it isnt a major issue, but I'd to fix it just 
the same ( if for no other reason than a learning process)


Thanks for suggestions

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


Re: lm/temp monitoring

2006-06-06 Thread Toni Schmidbauer
At Tue, 6 Jun 2006 19:33:33 -0400,
Jim Stapleton wrote:
 What package contains the lm utility (driver?) use for temperature
 monitoring? What is a good package to get a reading of my
 CPU/Motherboard temperature reading in a semi-usr friendly format?

i'm using sysutils/mbmon on my athlon machines to monitor system temperature.

hth,
toni
-- 
If you understand what you're doing, you're | toni at stderror dot at
not learning anything.  | Toni Schmidbauer
-- Anonymous|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Virtual hosts and PHP downloads: php5 and apache22 on FreeBSD6.1-STABLE

2006-06-06 Thread fbsd

First and foremost, thanks for the reply.

On 6/6/06, fbsd [EMAIL PROTECTED] wrote:
 The php5 port is broken in 6.1.
 It no longer defaults to activating the php/apache module.

Thanks for that. I do appreciate it.


 This has been covered in great detail on this list in the past 6
 weeks which you would have found out if you reviewed the list
 archives before posting this question.

I may have missed a week or two, but the only responses I've seen
personally have been see /usr/ports/UPDATING, which I did.  I'm
not
thrilled with the stock RTFM post, but I guess that's par for the
course.


 After downloading the 6.1 version php5 port config files you have
to
 do make config and select the apache module. The make install
 will automatically make the correct changes to your httpd-config
 file for serving up php pages correctly. php5-extensions is not
 normally needed.

I did that.  That's pointed out in /usr/ports/UPDATING.
Unfortunately, it didn't automatically fix the issue for me.

**  thats because you are using the devel version of apache.
php4  php5 are designed to auto update apache13  not apache22
you are on your own when you use devel apache22

Blow away apache22 and you can use the apache13 package for quick
install
then php5 port like said before. if you have previous working
apache13 httpd-config restore it to correct path after apache13
package install, then php5 port make will update it correctlly.
**




 Your other httpd-config problems are due to you using apache22
 instead of apache13 which is the rock hard production version of
 Apache web server. Apache22 is generally considered as the
 developmental version.

I was running 1.3 before my BSD upgrade to 6.1-STABLE.  There were
security issues with 1.3 that were not resolved at the time of my
upgrade.  And I assumed with the package changes to PHP5 in 6.1 that
going with an updated version of apache as well would be the best
method.  If you're saying I should revert back to 1.3, should I also
revert to an earlier version of PHP5, or is the latest and greatest
still best compatible with apache13?

*** I know of no security issues in apache13 in 6.1 release. your
6.1 install will give you the correct port version of php5. The
package php5 is broken because it does not contain the apache module
by default as in previous freebsd releases. you do have to cvs the
php5 config files plus the base make control files. go with it.
*


* warning side note: be sure to comment out proxy module
statements in both places in httpd-conf. this will stop your web
server from being used to attack other systems without your
knowledge. 

Thank you,
~John
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of John
 DeStefano
 Sent: Tuesday, June 06, 2006 3:46 PM
 To: freebsd-questions@freebsd.org
 Subject: Virtual hosts and PHP downloads: php5 and apache22 on
 FreeBSD6.1-STABLE


 I upgraded my system from 5.4-RELEASE to 6.1-STABLE last week, and
 my
 web server immediately stopped serving PHP pages, where I had no
 problem doing so before.  Instead of processing the PHP code on
the
 server and displaying the result in a browser, browsing to any
page
 containing PHP code resulted in a prompt to download the PHP page
as
 a
 file.

 /usr/ports/UPGRADING mentions that PHP has been streamlined and
must
 be recompiled to work with Apache and other packages. After
 deinstalling, configuring (where applicable), and reinstalling
PHP5,
 php5-extensions, and apache2 to the latest versions, not only were
 PHP
 files not being served, but my web server was toast:
 Forbidden You don't have permission to access / on this server.

 I edited the new apache config file (now located in
 /usr/local/etc/apache22/httpd.conf) with my system information,
 including a DocumentRoot path. But when I started apache, I got
some
 very peculiar errors:
 Warning: DocumentRoot [/www/docs/dummy-host.example.com] does not
 exist
 Warning: DocumentRoot [/www/docs/dummy-host2.example.com] does not
 exist

 Not only did I confirm beforehand that I had set the DocumentRoot
 path, and that apache was using the correct config file... but
these
 dummy paths didn't exist in the config file!  I learned
eventually
 that a new apache directive splits out virtual host directives to
a
 new include file
(/usr/local/etc/apache22/extra/httpd-vhosts.conf).
 Then I learned after getting a server warning (NameVirtualHost
*:80
 has no VirtualHosts) that the syntax has been slightly modified,
so
 that the IP/port value of each VirtualHost specification must
match
 that of the NameVirtualHost directive (i.e., NameVirtualHost
*:80
 and VirtualHost *:80).

 Still having trouble though: my main site loads properly, but
the
 other virtual hosts aren't. Browsing to any virtual host address
 other
 than the default results in either the wrong content or an error.
 Here's what my httpd-vhosts.conf looks like:

 NameVirtualHost *:80

 VirtualHost *:80
 

Re: Virtual hosts and PHP downloads: php5 and apache22 on FreeBSD 6.1-STABLE

2006-06-06 Thread Mikhail Goriachev
John DeStefano wrote:
 This body part will be downloaded on demand.
 


Remove unnecessary spaces from your httpd.conf:

AddType application/x- httpd-php .php
  ^
AddType application/x- httpd-php-source .phps
  ^

Make sure you clear cache on your browser before you test.

Cheers,
Mikhail.


-- 
Mikhail Goriachev
Webanoide

Telephone: +61 (0)3 62252501
Mobile Phone: +61 (0)4 38255158
E-Mail: [EMAIL PROTECTED]
Web: http://www.webanoide.org

PGP Key ID: 0x4E148A3B
PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Virtual hosts and PHP downloads: php5 and apache22 on FreeBSD6.1-STABLE

2006-06-06 Thread Mikhail Goriachev
John DeStefano wrote:
 First and foremost, thanks for the reply.
 
 On 6/6/06, fbsd [EMAIL PROTECTED] wrote:
 The php5 port is broken in 6.1.
 It no longer defaults to activating the php/apache module.
 
 Thanks for that. I do appreciate it.
 

 This has been covered in great detail on this list in the past 6
 weeks which you would have found out if you reviewed the list
 archives before posting this question.
 
 I may have missed a week or two, but the only responses I've seen
 personally have been see /usr/ports/UPDATING, which I did.  I'm not
 thrilled with the stock RTFM post, but I guess that's par for the
 course.
 

 After downloading the 6.1 version php5 port config files you have to
 do make config and select the apache module. The make install
 will automatically make the correct changes to your httpd-config
 file for serving up php pages correctly. php5-extensions is not
 normally needed.
 
 I did that.  That's pointed out in /usr/ports/UPDATING.
 Unfortunately, it didn't automatically fix the issue for me.
 

 Your other httpd-config problems are due to you using apache22
 instead of apache13 which is the rock hard production version of
 Apache web server. Apache22 is generally considered as the
 developmental version.
 
 I was running 1.3 before my BSD upgrade to 6.1-STABLE.  There were
 security issues with 1.3 that were not resolved at the time of my
 upgrade.  And I assumed with the package changes to PHP5 in 6.1 that
 going with an updated version of apache as well would be the best
 method.  If you're saying I should revert back to 1.3, should I also
 revert to an earlier version of PHP5, or is the latest and greatest
 still best compatible with apache13?
 
 Thank you,
 ~John
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of John
 DeStefano
 Sent: Tuesday, June 06, 2006 3:46 PM
 To: freebsd-questions@freebsd.org
 Subject: Virtual hosts and PHP downloads: php5 and apache22 on
 FreeBSD6.1-STABLE


 I upgraded my system from 5.4-RELEASE to 6.1-STABLE last week, and
 my
 web server immediately stopped serving PHP pages, where I had no
 problem doing so before.  Instead of processing the PHP code on the
 server and displaying the result in a browser, browsing to any page
 containing PHP code resulted in a prompt to download the PHP page as
 a
 file.

 /usr/ports/UPGRADING mentions that PHP has been streamlined and must
 be recompiled to work with Apache and other packages. After
 deinstalling, configuring (where applicable), and reinstalling PHP5,
 php5-extensions, and apache2 to the latest versions, not only were
 PHP
 files not being served, but my web server was toast:
 Forbidden You don't have permission to access / on this server.

 I edited the new apache config file (now located in
 /usr/local/etc/apache22/httpd.conf) with my system information,
 including a DocumentRoot path. But when I started apache, I got some
 very peculiar errors:
 Warning: DocumentRoot [/www/docs/dummy-host.example.com] does not
 exist
 Warning: DocumentRoot [/www/docs/dummy-host2.example.com] does not
 exist

 Not only did I confirm beforehand that I had set the DocumentRoot
 path, and that apache was using the correct config file... but these
 dummy paths didn't exist in the config file!  I learned eventually
 that a new apache directive splits out virtual host directives to a
 new include file (/usr/local/etc/apache22/extra/httpd-vhosts.conf).
 Then I learned after getting a server warning (NameVirtualHost *:80
 has no VirtualHosts) that the syntax has been slightly modified, so
 that the IP/port value of each VirtualHost specification must match
 that of the NameVirtualHost directive (i.e., NameVirtualHost *:80
 and VirtualHost *:80).

 Still having trouble though: my main site loads properly, but the
 other virtual hosts aren't. Browsing to any virtual host address
 other
 than the default results in either the wrong content or an error.
 Here's what my httpd-vhosts.conf looks like:

 NameVirtualHost *:80

 VirtualHost *:80
 ServerName www.SiteA.com
 ServerAlias SiteA.com *.SiteA.com
 DocumentRoot /usr/www
 ErrorLog /var/log/httpd-SiteA-error.log
 CustomLog /var/log/httpd-SiteA-access.log combined
 /VirtualHost

 VirtualHost *:80
 ServerName www.SiteB.com
 ServerAlias SiteB.com *.SiteB.com
 DocumentRoot /usr/www2
 ErrorLog /var/log/httpd-SiteB-error.log
 CustomLog /var/log/httpd-SiteB-access.log combined
 /VirtualHost

 So, what's happening is that SiteA works as expected, but browsing
 to
 SiteB brings you to SiteA, or doesn't load at all (403 error).

 In addition, I'm back to my original problem, where PHP files are
 not
 loading, and browsing to a PHP page prompts the user to download the
 page as a file.

 Any help on either the virtual hosts or the PHP download issue would
 be greatly appreciated.



I'm using Apache22 and PHP4. Haven't encountered any problems yet. You
could try PHP4 and see how it goes. As stated above, make config and
select apache module. 

Heavy creation and deletion of symlinks

2006-06-06 Thread Dag Rune Sneeggen
I am currently planning an FTP-based service which requires a custom 
application to run which will create hundreds (if not thousands) of 
symlinks in various directories per hour. There will probably also be a 
cronjob running to delete symlinks periodically.


The main purpose of the server will be medium to heavy traffic FTP serving.

So my question is; how does such activity affect the general health and 
operation of FreeBSD? Also, the health of the harddrive(s) which will most 
likely be SATA disks.
It is my understanding that symlinks only affects the file allocation 
table, and not the physical data blocks? This would mean that the impact 
isn't so terrible, as the changes will be contained to a relatively small 
part of the beginning of the disk, correct?


--

Dag Rune Sneeggen
Romolslia 23B
7029 Trondheim
NORWAY
--
[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: QEMU - encrypted images

2006-06-06 Thread Eric Schuele

Norberto Meijome wrote:

Hello there,
this is a bit off topic (well, i'm running qemu under 6.1 and installing 6.1 in
the img... :) .not sure if I should email the port maintainer about this.

I created an image as follows:
qemu-img create -e -f qcow a.img 2GB

then i start qemu :
qemu -boot d -m 400  -cdrom /dev/cdrom -hda a.img

It goes straight into qemu's console, i enter a HD password as requested (*
chars replace everything i type). I press enter and the vm boots up as normal,
i can go to Ctrl-1 and Ctrl-2 with no problem.

BUT  the qemu console (ctrl-2) is completely useless. everything I type still
comes out as * , and there doesnt seem to be any actual response to what I type
(if I type help, and press enter. I would have expected at least a whole
screenfull of  coming up...not even that.. it seems like it's stuck in
password reading mode?


This is just a Me Too.

I don't use encrypted disks... just thought I'd try it out.  Followed 
your instructions above, and I get the exact same results.  I have no 
idea if it is the correct behavior or not.


I have however, once or twice, appealed to the port maintainer and found 
him to be responsive and helpful.




am I missing something ?

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




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


slow system startup; recovering vi sessions

2006-06-06 Thread dharam paul
Hello,
My freebsd 5.4 is taking about 5-7 minutes to
start/restart because it tries to recover the crashed
vi sessions. 
Is there a way to bring it out of this cycle of
recovery so that the system boots faster.

Thanks  Regars

Send instant messages to your online friends http://in.messenger.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


natd not starting on boot-up

2006-06-06 Thread Roger Merritt
I'm thoroughly puzzled. Over the weekend I transferred my FreeBSD system to 
a new hard drive. Through laziness I didn't follow the instructions and had 
to make a completely new install. Everything now seems to be working the 
way it should, Apache, MySQL, PHP, syslog, Samba -- except natd. Everything 
starts on boot-up as it should -- except natd. I can start it manually from 
the command line after booting up and logging in and it works fine, but I 
can't tell what's going on that it's failing to start.


My /etc/rc.conf contains the following:

# This file now contains just the overrides from /etc/defaults/rc.conf.
defaultrouter=203.151.134.1
gateway_enable=YES
hostname=poppy.international.stjohn.ac.th
ifconfig_ed0=inet 10.3.16.125 netmask 255.255.255.0
ifconfig_ed1=inet 203.151.134.104  netmask 255.255.255.0
router_enable=YES
firewall_enable=YES
firewall_type=OPEN
firewall_quiet=YES
natd_enable=YES
natd_interface=ed1
ipv6_enable=YES
linux_enable=YES
moused_enable=YES
moused_port=/dev/sysmouse
moused_type=auto
screen=daemon
nfs_client_enable=YES
sshd_enable=YES

What can I do to get some indication of where the problem is?

--
Roger


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


Firefox crashes and hangs my 6.1R system

2006-06-06 Thread freebsd-questions
Hi,

Lately, and seemingly inexplicably, firefox will lock up my X server with
it if I click a button where filesystem access is required eg. if I'm in
an 'upload file' form and a 'Browse...' button is available to go to a
filesystem browser. If I ssh into the machine remotely I can see that Xorg
is using 90+% CPU and the only way to recover is to reboot (which doesn't
even execute cleanly). Interestingly, I can reproduce this situation when
running firefox on a remote host but displaying locally so it seems more
likely X/system related than specifically firefox.  When the machine hangs,
even the keyboard is non functional eg scroll lock won't light. I have USB
keyboard/mouse.

I'd appreciate any tips for diagnosis/recovery. I've appended the most
relevant configuration information. I've already rebuilt and installed
kernel/world to ensure I'm up to date, and portupgraded as much as
practicable. I should note that I haven't changed my build options for
firefox since pre-crash, either.

regards,
-- Joel Hatton --
Infrastructure Manager  | Hotline: +61 7 3365 4417
AusCERT - Australia's national CERT | Fax: +61 7 3365 7031
The University of Queensland| WWW: www.auscert.org.au
Qld 4072 Australia  | Email:   [EMAIL PROTECTED]

Firefox options:

# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for firefox-1.5.0.4,1
_OPTIONS_READ=firefox-1.5.0.4,1
WITH_NEWTAB=true
WITHOUT_SMB=true
WITHOUT_DEBUG=true
WITH_LOGGING=true
WITH_OPTIMIZED_CFLAGS=true

6.1-RELEASE-p1

Information for xorg-server-6.9.0_4:

Depends on:
Dependency: expat-2.0.0_1
Dependency: pkgconfig-0.20_2
Dependency: pkg-config-0.20_2
Dependency: libdrm-2.0.1_1
Dependency: freetype2-2.1.10_3
Dependency: fontconfig-2.3.2_5,1
Dependency: xorg-libraries-6.9.0

Information for firefox-1.5.0.4,1:

Depends on:
Dependency: libiconv-1.9.2_2
Dependency: expat-2.0.0_1
Dependency: gettext-0.14.5_2
Dependency: jpeg-6b_4
Dependency: pkgconfig-0.20_2
Dependency: pkg-config-0.20_2
Dependency: png-1.2.8_3
Dependency: freetype2-2.1.10_3
Dependency: popt-1.7_1
Dependency: perl-5.8.8
Dependency: glib-2.10.2
Dependency: nspr-4.6.1
Dependency: nss-3.11_1
Dependency: fontconfig-2.3.2_5,1
Dependency: libxml2-2.6.24
Dependency: libdrm-2.0.1_1
Dependency: xorg-libraries-6.9.0
Dependency: libXft-2.1.7_1
Dependency: tiff-3.8.2
Dependency: xorg-fonts-encodings-6.9.0_1
Dependency: shared-mime-info-0.17_1
Dependency: bitstream-vera-1.10_2
Dependency: libIDL-0.8.6_2
Dependency: atk-1.11.4
Dependency: xorg-fonts-truetype-6.9.0
Dependency: hicolor-icon-theme-0.5
Dependency: glitz-0.4.4_1
Dependency: desktop-file-utils-0.11
Dependency: cairo-1.0.4
Dependency: pango-1.12.2
Dependency: gtk-2.8.17

My current kernel config file:

machine i386
cpu I686_CPU
ident   GX260
options SCHED_ULE   # ULE scheduler
options PREEMPTION  # Enable kernel thread preemption
options INET# InterNETworking
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options NFSCLIENT   # Network Filesystem Client
options MSDOSFS # MSDOS Filesystem
options CD9660  # ISO 9660 Filesystem
options PROCFS  # Process filesystem (requires PSEUDOFS)
options PSEUDOFS# Pseudo-filesystem framework
options GEOM_GPT# GUID Partition Tables.
options COMPAT_43   # Compatible with BSD 4.3 [KEEP THIS!]
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options COMPAT_FREEBSD5 # Compatible with FreeBSD5
options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
options KTRACE  # ktrace(1) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time 
extensions
options KBD_INSTALL_CDEV# install a CDEV entry in /dev
options ADAPTIVE_GIANT  # Giant mutex is adaptive.
options IPFIREWALL  #firewall
options IPFIREWALL_VERBOSE  #enable logging to syslogd(8)
options INCLUDE_CONFIG_FILE # Include this file in kernel
options TCP_DROP_SYNFIN #drop TCP packets with SYN+FIN
device  apic# I/O APIC
device  pci
device  fdc
device  ata
device  atadisk # ATA disk drives
device  atapicd # ATAPI CDROM drives
options