Re: Optimising NFS for system files

2008-12-31 Thread Peter Boosten



On 31 dec 2008, at 08:53, Bernard Dugas   
wrote:



Wojciech Puchar wrote:


nfsserver# time tar -cf - clientusr-amd64 > /dev/null
5.001u 12.147s 1:23.92 20.4%69+1369k 163345+0io 0pf+0w

client9# time tar -cf - /usr > /dev/null
tar: Removing leading '/' from member names
3.985u 19.779s 4:32.47 8.7% 74+1457k 0+0io 0pf+0w

Note : clientusr-amd64 is around 1.3GB and is the same directory  
exported to client9 /usr with nfs.



it's FAST. what's wrong?


First thing that may be wrong is the understanding of the time  
figures. The documentation is not clear about them and the -h option  
is not working :


client6# time -h tar -cf - /usr > /dev/null
-h: Command not found.
0.000u 0.000s 0:00.00 0.0%  0+0k 0+0io 0pf+0w

The main thing is that the 3rd figures 1:23.92 and 4:32.47 seems to  
be the time i wait in front of the computer while it works (ok, i  
know, i should enjoy a beer, or hot coffee with this nice snow ;-) :


client9# date ; time tar -cf - /usr > /dev/null ; date ;
Wed Dec 31 08:23:59 CET 2008
tar: Removing leading '/' from member names
4.103u 19.651s 4:25.80 8.9% 74+1453k 0+0io 2pf+0w
Wed Dec 31 08:28:25 CET 2008

and 08:28:25 - 08:23:59 = 00:04:26 is very close to 4:25.80.

On server, it means : 1440MB / 84s = 17MB/s
On client, that becomes : 1440MB / 266s = 5.4MB/s

I know the disk is not very fast, but i would like the NFS layer not  
to add too much...


I don't want my users to wait between 3 or 4 times more because  
computer is using NFS.


In my opinion there are more considerations than only nfs: the data is  
pulled twice over the network, and the tar process might initiate  
paging which is done over the network as well. The tar comparison is  
not a good one.


Peter
--
http://www.boosten.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Subscribe request result (debian-users ML)

2008-12-31 Thread debian-users-admin
Hi, I am the fml ML manager for the ML .


--debian-us...@debian.or.jp, Be Seeing You!


If you have any questions or problems,
   please contact debian-users-ad...@debian.or.jp




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Optimising NFS for system files

2008-12-31 Thread Manolis Kiagias
Bernard Dugas wrote:
> Wojciech Puchar wrote:
>
>>> nfsserver# time tar -cf - clientusr-amd64 > /dev/null
>>> 5.001u 12.147s 1:23.92 20.4%69+1369k 163345+0io 0pf+0w
>>>
>>> client9# time tar -cf - /usr > /dev/null
>>> tar: Removing leading '/' from member names
>>> 3.985u 19.779s 4:32.47 8.7% 74+1457k 0+0io 0pf+0w
>>>
>>> Note : clientusr-amd64 is around 1.3GB and is the same directory
>>> exported to client9 /usr with nfs.
>>>
>> it's FAST. what's wrong?
>
> First thing that may be wrong is the understanding of the time
> figures. The documentation is not clear about them and the -h option
> is not working :
>
> client6# time -h tar -cf - /usr > /dev/null
> -h: Command not found.
> 0.000u 0.000s 0:00.00 0.0%  0+0k 0+0io 0pf+0w

Just a sidenote, you are probably getting a version of time integrated
to your shell. The -h option works fine in /usr/bin/time, so run like this:

client6# /usr/bin/time -h tar -cf - /usr > /dev/null
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Optimising NFS for system files

2008-12-31 Thread Bernard Dugas
I am trying a memory disk on server to see the effect of hard drive 
performances, and also discovering the function :-)


The conclusion is that memory disk is faster that this drive ;-)
 45MB/s vs 10Mb/s

But the NFS access to the memory drive is still 5MB/s :-(

As there is no more hard drive involved, we know that there is a 
bottleneck at 5MB in NFS layer on this system... Where ?


Thanks a lot for any help on the method to find/diagnose this !

Details are below :

nfsserver# uname -a
FreeBSD nfsserver 7.1-RC1 FreeBSD 7.1-RC1 #0: Sun Dec  7 00:38:13 UTC 
2008 r...@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

nfsserver# mdconfig -a -t swap -s 600m -o reserve -u 7
nfsserver# ls /dev/md*
/dev/md7/dev/mdctl
nfsserver# newfs -i 2048 /dev/md7
Reduced frags per cylinder group from 60864 to 59928 to enlarge last cyl 
group

/dev/md7: 600.0MB (1228800 sectors) block size 16384, fragment size 2048
using 6 cylinder groups of 117.05MB, 7491 blks, 59968 inodes.
super-block backups (for fsck -b #) at:
 160, 239872, 479584, 719296, 959008, 1198720
nfsserver# mkdir /tstnfs
nfsserver# mount /dev/md7 /tstnfs

nfsserver# date ; time tar -cf - 
/nfsro/commun/clientusr-amd64-7.2-RC2-20081230/ports > /dev/null ; date ;

Wed Dec 31 09:11:08 CET 2008
tar: Removing leading '/' from member names
3.794u 8.766s 0:46.40 27.0% 71+1406k 123375+0io 0pf+0w
Wed Dec 31 09:11:54 CET 2008

That makes 498MB / 46s = 10.8MB/s for disk drive.

nfsserver# date ; cp -r -p 
/nfsro/commun/clientusr-amd64-7.2-RC2-20081230/ports /tstnfs/ports ; date

Wed Dec 31 09:33:09 CET 2008
Wed Dec 31 09:34:46 CET 2008

df -h
/dev/md7   512M498M-27M   106%/tstnfs

nfsserver# date ; time tar -cf - /tstnfs/ports > /dev/null ; date ;
Wed Dec 31 09:36:59 CET 2008
tar: Removing leading '/' from member names
2.947u 6.218s 0:10.61 86.2% 74+1463k 104885+0io 0pf+0w
Wed Dec 31 09:37:10 CET 2008
nfsserver# date ; time tar -cf - /tstnfs/ports > /dev/null ; date ;
Wed Dec 31 09:37:12 CET 2008
tar: Removing leading '/' from member names
2.895u 6.487s 0:11.01 85.1% 74+1466k 112838+0io 0pf+0w
Wed Dec 31 09:37:23 CET 2008
nfsserver# date ; time tar -cf - /tstnfs/ports > /dev/null ; date ;
Wed Dec 31 09:40:22 CET 2008
tar: Removing leading '/' from member names
2.902u 6.610s 0:11.10 85.6% 75+1483k 113393+0io 0pf+0w
Wed Dec 31 09:40:33 CET 2008

That makes 498MB / 11s = 45MB/s : better that 10MB/s for disk, but not 
exceptional.


Now on the client :

client9# uname -a
FreeBSD client9 7.1-RC2 FreeBSD 7.1-RC2 #0: Tue Dec 23 11:42:13 UTC 2008 
r...@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64


client9# mount -o ro nfsserver:/tstnfs /tstnfs
client9# df -h
nfsserver:/tstnfs 512M498M 
0B   100%/tstnfs


client9# date ; time tar -cf - /tstnfs/ports > /dev/null ; date ;
Wed Dec 31 09:50:39 CET 2008
tar: Removing leading '/' from member names
2.896u 13.020s 1:35.22 16.7%75+1483k 0+0io 2pf+0w
Wed Dec 31 09:52:14 CET 2008
client9# date ; time tar -cf - /tstnfs/ports > /dev/null ; date ;
Wed Dec 31 09:52:22 CET 2008
tar: Removing leading '/' from member names
2.700u 12.755s 1:27.78 17.6%76+1498k 0+0io 0pf+0w
Wed Dec 31 09:53:50 CET 2008
client9# date ; time tar -cf - /tstnfs/ports > /dev/null ; date ;
Wed Dec 31 09:55:02 CET 2008
tar: Removing leading '/' from member names
2.681u 12.688s 1:28.15 17.4%74+1464k 0+0io 0pf+0w
Wed Dec 31 09:56:30 CET 2008

That makes between 95s and 87s, then 498MB / 95s = 5,2MB/s and 5.7MB/s, 
like previous test from hard drive NFS export.



Top is showing around 100MB of free memory while taring on client9, so i 
don't think tar is paging on network :
last pid:  3318;  load averages:  0.17,  0.11,  0.04up 0+11:14:27 
10:08:10

30 processes:  1 running, 29 sleeping
CPU:  0.8% user,  0.0% nice,  9.0% system,  0.0% interrupt, 90.2% idle
Mem: 19M Active, 720M Inact, 136M Wired, 240K Cache, 110M Buf, 98M Free



Best regards,
--
Bernard DUGAS Mobile +33 615 333 770
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Optimising NFS for system files

2008-12-31 Thread Bernard Dugas

Peter Boosten wrote:

On server, it means : 1440MB / 84s = 17MB/s
On client, that becomes : 1440MB / 266s = 5.4MB/s

I know the disk is not very fast, but i would like the NFS layer not  
to add too much...


I don't want my users to wait between 3 or 4 times more because  
computer is using NFS.


In my opinion there are more considerations than only nfs: the data is  
pulled twice over the network, and the tar process might initiate  
paging which is done over the network as well. The tar comparison is  
not a good one.


I would welcome any way to check that idea on the system.

But :
- tar is directed to /dev/null so that should avoid any physical writing ;
- there is still memory FREE on both server and client while taring ;
- the effect of tar is the same on server and client, so the "induced 
error" should be the same time on both.


Thanks a lot,
Best regards,
--
Bernard DUGAS Mobile +33 615 333 770
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Optimising NFS for system files

2008-12-31 Thread Bernard Dugas

Manolis Kiagias wrote:

First thing that may be wrong is the understanding of the time
figures. The documentation is not clear about them and the -h option
is not working :

client6# time -h tar -cf - /usr > /dev/null
-h: Command not found.
0.000u 0.000s 0:00.00 0.0%  0+0k 0+0io 0pf+0w


Just a sidenote, you are probably getting a version of time integrated
to your shell. The -h option works fine in /usr/bin/time, so run like this:

client6# /usr/bin/time -h tar -cf - /usr > /dev/null


Very true, this is it :-) Thanks a lot for your help !

Best regards,
--
Bernard DUGAS Mobile +33 615 333 770
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


accessing a networked printer to a FreeBSD box

2008-12-31 Thread dhaneshk k

people,




I am trying to access a printer from our LAN to my FreeBSD Desktop PC

which package I needed to do  that ?   system-config-printer  right  ?

NOTE :I am not trying to attach a new printer to FreeBSD just want to access an 
already working printer in our LAN


I
installed   system-config-printer from ports , but whenever I tried
to do   $system-config-printer, one blank dialog window blinks
away , the in the tty I am getting this error ..


[bha...@storm /usr/home/bhagat]$ system-config-printer
Traceback (most recent call last):
  File "/usr/local/share/system-config-printer/system-config-printer.py", line 
5272, in 
main(configure_printer, change_ppd)
  File "/usr/local/share/system-config-printer/system-config-printer.py", line 
5242, in main
mainwindow = GUI(configure_printer, change_ppd)
  File "/usr/local/share/system-config-printer/system-config-printer.py", line 
333, in __init__
self.AboutDialog.set_program_name(domain)
AttributeError: 'gtk.AboutDialog' object has no attribute 'set_program_name'
[bha...@storm /usr/home/bhagat]$ 


what
the exact issue ? what I made wrong ,   (I dont think I need CUPS to be
installed as I was not trying to attach a printer to this FreeBSD box) .



Here
I am attaching the system-config-printer.py file please help me fix the
issue   ( OR I have to install any other package than
system-config-printer ?) 


I thank you all in advance for any hints to fix it out .  struggling to fix 
this issue for the last couple of days ..

Any hints most Welcome

Dhanesh



I tried to install gnome-cups-manager too(from ports )   , but installation 
failed as follows



 
gnome-cups-manager.c: In function `event_cb':
gnome-cups-manager.c:79: error: syntax error before "do"
gnome-cups-manager.c:79: error: syntax error before ')' token
gnome-cups-manager.c:79: error: `_g_boolean_var_' undeclared (first use in this 
function)
gnome-cups-manager.c:79: error: (Each undeclared identifier is reported only 
once
gnome-cups-manager.c:79: error: for each function it appears in.)
gnome-cups-manager.c:79: error: syntax error before ')' token
gnome-cups-manager.c:74: warning: unused variable `printer'
gnome-cups-manager.c: At top level:
gnome-cups-manager.c:53: warning: 'check_cups' defined but not used
gnome-cups-manager.c:72: warning: 'event_cb' defined but not used
gmake[3]: *** [gnome-cups-manager.o] Error 1
gmake[3]: Leaving directory 
`/usr/ports/print/gnome-cups-manager/work/gnome-cups-manager-0.31/gnome-cups-manager'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory 
`/usr/ports/print/gnome-cups-manager/work/gnome-cups-manager-0.31/gnome-cups-manager'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
`/usr/ports/print/gnome-cups-manager/work/gnome-cups-manager-0.31'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/print/gnome-cups-manager.
[r...@storm /usr/ports/print/gnome-cups-manager]# 








_
Much more than email – don't miss out on the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Optimising NFS for system files

2008-12-31 Thread Bernard Dugas

usleep wrote:
> - Second installation
>  - FreeNAS, RAID0
>  - Tested throughput ( to local RAID0 ):
>  - ftp: 82MB/s
>  - nfs: 75MB/s
>  - cifs/samba: 42MB/s

Thanks a lot for these clear references !

> Test issues ( things that get you confused )
>   - if you expect to be able to copy a file at Gigabit speeds, you
> need to be able to write as fast to  your local disk as well. So to
>  reliable test SAN/NAS performance at Gigabit speeds you need RAID at
>  the server and at the client. Or write to /dev/null

This is what i did with the tar. What function do you use for testing ?

>   - if you repeatedly test with the same file, it will get cached into
> memory of the NAS. so you won't be testing troughput
> disk->network->disk anymore: you are testing
> NAS-memory->network->disk. I was testing with
> ubuntu-iso's, but with 1GB of memory, ISO's get cached as well.

i was fearing that, but it seems that does not happen in my testing, as 
repeating same test give same result. I don't know why it does not 
happens...


>  - if you repeatedly test with the same file, and you have enough
> local memory, and you test with nfs or cifs/samba, the file will get
>  cached locally as well. this results into transfer-speeds to
> /dev/null exceeding 100MB/s ( Gigabit speeds ). i have observed
> transfer speeds to /dev/null of 400MB/s!

I would love to see that behaviour. But it didn't happen neither in my 
testing :-(


> We now have a NAS that performs faster than local disk.
 
Is it the FreeNAS you describe in your testing or a new one ?

>  We plan to use it run development-virtual-machines on.

This is also my target :-) I will have some high density servers (6 
independent servers in 1U) and trying to master the freebsd diskless 
process before...


Best regards,
--
Bernard DUGAS Mobile +33 615 333 770
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: accessing a networked printer to a FreeBSD box

2008-12-31 Thread Mario Lobo

   Do you have CUPS installed?
   Mario
   -Mensagem original-
   De: dhaneshk k
   Enviada em: 31/12/2008 07:46:49
   Para:
   Assunto: accessing a networked printer to a FreeBSD box
   people,
   I am trying to access a printer from our LAN to my FreeBSD Desktop PC
   which package I needed to do that ? system-config-printer right ?
   NOTE :I am not trying to attach a new printer to FreeBSD just want to
   access an already working printer in our LAN
   I
   installed system-config-printer from ports , but whenever I tried
   to do $system-config-printer , one blank dialog window blinks
   away , the in the tty I am getting this error ..
   [bha...@storm /usr/home/bhagat]$ system-config-printer
   Traceback (most recent call last):
   File
   "/usr/local/share/system-config-printer/system-config-printer.py",
   line 5272, in
   main(configure_printer, change_ppd)
   File
   "/usr/local/share/system-config-printer/system-config-printer.py",
   line 5242, in main
   mainwindow = GUI(configure_printer, change_ppd)
   File
   "/usr/local/share/system-config-printer/system-config-printer.py",
   line 333, in __init__
   self.AboutDialog.set_program_name(domain)
   AttributeError: 'gtk.AboutDialog' object has no attribute
   'set_program_name'
   [bha...@storm /usr/home/bhagat]$
   what
   the exact issue ? what I made wrong , (I dont think I need CUPS to be
   installed as I was not trying to attach a printer to this FreeBSD box)
   .
   Here
   I am attaching the system-config-printer.py file please help me fix
   the
   issue ( OR I have to install any other package than
   system-config-printer ?)
   I thank you all in advance for any hints to fix it out . struggling to
   fix this issue for the last couple of days ..
   Any hints most Welcome
   Dhanesh
   I tried to install gnome-cups-manager too(from ports ) , but
   installation failed as follows
   gnome-cups-manager.c: In function `event_cb':
   gnome-cups-manager.c:79: error: syntax error before "do"
   gnome-cups-manager.c:79: error: syntax error before ')' token
   gnome-cups-manager.c:79: error: `_g_boolean_var_' undeclared (first
   use in this function)
   gnome-cups-manager.c:79: error: (Each undeclared identifier is
   reported only once
   gnome-cups-manager.c:79: error: for each function it appears in.)
   gnome-cups-manager.c:79: error: syntax error before ')' token
   gnome-cups-manager.c:74: warning: unused variable `printer'
   gnome-cups-manager.c: At top level:
   gnome-cups-manager.c:53: warning: 'check_cups' defined but not used
   gnome-cups-manager.c:72: warning: 'event_cb' defined but not used
   gmake[3]: *** [gnome-cups-manager.o] Error 1
   gmake[3]: Leaving directory
   `/usr/ports/print/gnome-cups-manager/work/gnome-cups-manager-0.31/gnom
   e-cups-manager'
   gmake[2]: *** [all] Error 2
   gmake[2]: Leaving directory
   `/usr/ports/print/gnome-cups-manager/work/gnome-cups-manager-0.31/gnom
   e-cups-manager'
   gmake[1]: *** [all-recursive] Error 1
   gmake[1]: Leaving directory
   `/usr/ports/print/gnome-cups-manager/work/gnome-cups-manager-0.31'
   gmake: *** [all] Error 2
   *** Error code 2
   Stop in /usr/ports/print/gnome-cups-manager.
   [r...@storm /usr/ports/print/gnome-cups-manager]#
   _
   Much more than email ? don't miss out on the rest of the Windows
   Live?.
   http://www.microsoft.com/windows/windowslive/_
   __
   freebsd-questions@freebsd.org mailing list
   http://lists.freebsd.org/mailman/listinfo/freebsd-questions
   To unsubscribe, send any mail to
   "freebsd-questions-unsubscr...@freebsd.org"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

RE: accessing a networked printer to a FreeBSD box

2008-12-31 Thread dhaneshk k

yes I installed cups from ports

[r...@storm /usr/local/etc/nagios]# ls /var/db/pkg/ |grep cups
cups-base-1.3.7_4
cups-pstoraster-8.15.4_2
libgnomecups-0.2.3_1,1
py25-cups-1.9.41




Date: Wed, 31 Dec 2008 08:48:19 -0300
From: ml...@digiart.art.br
To: dhanes...@hotmail.com; freebsd-questions@freebsd.org
Subject: Re: accessing a networked printer to a FreeBSD box

Do you have CUPS installed?



Mario

-Mensagem original-

De:   dhaneshk k 

Enviada em: 31/12/2008 07:46:49

Para: 

Assunto: accessing a networked printer to a FreeBSD box





people,









I am trying to access a printer from our LAN to my FreeBSD Desktop PC



which package I needed to do  that ?   system-config-printer  right  ?



NOTE :I am not trying to attach a new printer to FreeBSD just want to access an 
already working printer in our LAN





I

installed   system-config-printer from ports , but whenever I tried

to do   $system-config-printer, one blank dialog window blinks

away , the in the tty I am getting this error ..





[bha...@storm /usr/home/bhagat]$ system-config-printer

Traceback (most recent call last):

  File "/usr/local/share/system-config-printer/system-config-printer.py", line 
5272, in 

main(configure_printer, change_ppd)

  File "/usr/local/share/system-config-printer/system-config-printer.py", line 
5242, in main

mainwindow = GUI(configure_printer, change_ppd)

  File "/usr/local/share/system-config-printer/system-config-printer.py", line 
333, in __init__

self.AboutDialog.set_program_name(domain)

AttributeError: 'gtk.AboutDialog' object has no attribute 'set_program_name'

[bha...@storm /usr/home/bhagat]$ 





what

the exact issue ? what I made wrong ,   (I dont think I need CUPS to be

installed as I was not trying to attach a printer to this FreeBSD box) .







Here

I am attaching the system-config-printer.py file please help me fix the

issue   ( OR I have to install any other package than

system-config-printer ?) 





I thank you all in advance for any hints to fix it out .  struggling to fix 
this issue for the last couple of days ..



Any hints most Welcome



Dhanesh







I tried to install gnome-cups-manager too(from ports )   , but installation 
failed as follows







 

gnome-cups-manager.c: In function `event_cb':

gnome-cups-manager.c:79: error: syntax error before "do"

gnome-cups-manager.c:79: error: syntax error before ')' token

gnome-cups-manager.c:79: error: `_g_boolean_var_' undeclared (first use in this 
function)

gnome-cups-manager.c:79: error: (Each undeclared identifier is reported only 
once

gnome-cups-manager.c:79: error: for each function it appears in.)

gnome-cups-manager.c:79: error: syntax error before ')' token

gnome-cups-manager.c:74: warning: unused variable `printer'

gnome-cups-manager.c: At top level:

gnome-cups-manager.c:53: warning: 'check_cups' defined but not used

gnome-cups-manager.c:72: warning: 'event_cb' defined but not used

gmake[3]: *** [gnome-cups-manager.o] Error 1

gmake[3]: Leaving directory 
`/usr/ports/print/gnome-cups-manager/work/gnome-cups-manager-0.31/gnome-cups-manager'

gmake[2]: *** [all] Error 2

gmake[2]: Leaving directory 
`/usr/ports/print/gnome-cups-manager/work/gnome-cups-manager-0.31/gnome-cups-manager'

gmake[1]: *** [all-recursive] Error 1

gmake[1]: Leaving directory 
`/usr/ports/print/gnome-cups-manager/work/gnome-cups-manager-0.31'

gmake: *** [all] Error 2

*** Error code 2



Stop in /usr/ports/print/gnome-cups-manager.

[r...@storm /usr/ports/print/gnome-cups-manager]# 

















_

Much more than email ? don't miss out on the rest of the Windows Live?.

http://www.microsoft.com/windows/windowslive/___

freebsd-questions@freebsd.org mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-questions

To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


_
Much more than email – don't miss out on the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/events.aspx___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: RE: accessing a networked printer to a FreeBSD box

2008-12-31 Thread Mario Lobo

   Have you tried accessing http://localhost:631 and adding the printer
   from there?
   Mario
   -Mensagem original-
   De: dhaneshk k
   Enviada em: 31/12/2008 10:45:17
   Para: ,
   Assunto: RE: accessing a networked printer to a FreeBSD box
   yes I installed cups from ports
   [r...@storm /usr/local/etc/nagios]# ls /var/db/pkg/ |grep cups
   cups-base-1.3.7_4
   cups-pstoraster-8.15.4_2
   libgnomecups-0.2.3_1,1
   py25-cups-1.9.41
   Date: Wed, 31 Dec 2008 08:48:19 -0300
   From: ml...@digiart.art.br
   To: dhanes...@hotmail.com; freebsd-questions@freebsd.org
   Subject: Re: accessing a networked printer to a FreeBSD box
   Do you have CUPS installed?
   Mario
   -Mensagem original-
   De: dhaneshk k
   Enviada em: 31/12/2008 07:46:49
   Para:
   Assunto: accessing a networked printer to a FreeBSD box
   people,
   I am trying to access a printer from our LAN to my FreeBSD Desktop PC
   which package I needed to do that ? system-config-printer right ?
   NOTE :I am not trying to attach a new printer to FreeBSD just want to
   access an already working printer in our LAN
   I
   installed system-config-printer from ports , but whenever I tried
   to do $system-config-printer , one blank dialog window blinks
   away , the in the tty I am getting this error ..
   [bha...@storm /usr/home/bhagat]$ system-config-printer
   Traceback (most recent call last):
   File
   "/usr/local/share/system-config-printer/system-config-printer.py",
   line 5272, in
   main(configure_printer, change_ppd)
   File
   "/usr/local/share/system-config-printer/system-config-printer.py",
   line 5242, in main
   mainwindow = GUI(configure_printer, change_ppd)
   File
   "/usr/local/share/system-config-printer/system-config-printer.py",
   line 333, in __init__
   self.AboutDialog.set_program_name(domain)
   AttributeError: 'gtk.AboutDialog' object has no attribute
   'set_program_name'
   [bha...@storm /usr/home/bhagat]$
   what
   the exact issue ? what I made wrong , (I dont think I need CUPS to be
   installed as I was not trying to attach a printer to this FreeBSD box)
   .
   Here
   I am attaching the system-config-printer.py file please help me fix
   the
   issue ( OR I have to install any other package than
   system-config-printer ?)
   I thank you all in advance for any hints to fix it out . struggling to
   fix this issue for the last couple of days ..
   Any hints most Welcome
   Dhanesh
   I tried to install gnome-cups-manager too(from ports ) , but
   installation failed as follows
   gnome-cups-manager.c: In function `event_cb':
   gnome-cups-manager.c:79: error: syntax error before "do"
   gnome-cups-manager.c:79: error: syntax error before ')' token
   gnome-cups-manager.c:79: error: `_g_boolean_var_' undeclared (first
   use in this function)
   gnome-cups-manager.c:79: error: (Each undeclared identifier is
   reported only once
   gnome-cups-manager.c:79: error: for each function it appears in.)
   gnome-cups-manager.c:79: error: syntax error before ')' token
   gnome-cups-manager.c:74: warning: unused variable `printer'
   gnome-cups-manager.c: At top level:
   gnome-cups-manager.c:53: warning: 'check_cups' defined but not used
   gnome-cups-manager.c:72: warning: 'event_cb' defined but not used
   gmake[3]: *** [gnome-cups-manager.o] Error 1
   gmake[3]: Leaving directory
   `/usr/ports/print/gnome-cups-manager/work/gnome-cups-manager-0.31/gnom
   e-cups-manager'
   gmake[2]: *** [all] Error 2
   gmake[2]: Leaving directory
   `/usr/ports/print/gnome-cups-manager/work/gnome-cups-manager-0.31/gnom
   e-cups-manager'
   gmake[1]: *** [all-recursive] Error 1
   gmake[1]: Leaving directory
   `/usr/ports/print/gnome-cups-manager/work/gnome-cups-manager-0.31'
   gmake: *** [all] Error 2
   *** Error code 2
   Stop in /usr/ports/print/gnome-cups-manager.
   [r...@storm /usr/ports/print/gnome-cups-manager]#
   _
   Much more than email ? don't miss out on the rest of the Windows
   Live?.
   http://www.microsoft.com/windows/windowslive/_
   __
   freebsd-questions@freebsd.org mailing list
   http://lists.freebsd.org/mailman/listinfo/freebsd-questions
   To unsubscribe, send any mail to
   "freebsd-questions-unsubscr...@freebsd.org"
   _
   Much more than email ? don't miss out on the rest of the Windows
   Live?.
   http://www.microsoft.com/windows/windowslive/events.aspx__
   _
   freebsd-questions@freebsd.org mailing list
   http://lists.freebsd.org/mailman/listinfo/freebsd-questions
   To unsubscribe, send any mail to
   "freebsd-questions-unsubscr...@freebsd.org"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebs

obsolete /usr/share/doc/handbook ?

2008-12-31 Thread Anton Shterenlikht
I update my local FBSD documentation with cvsup doc-all.
I note that the latest FBSD documentation is under /usr/doc.
However I still have /usr/share/doc which is about 2 years out of date.

On the other hand /usr/doc does not appear in hier(7),
whereas /usr/share/doc does.

Can I safely delete the obsolete docs under /usr/share/doc?
Why are there two doc folders?

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


RE: EOIP Tunnels

2008-12-31 Thread Marcel Grandemange
> Does FreeBSD support EOIP tunnels?

>>The kernel used to, and the code seems to still be around, but it may
>>not be used much any more.  There are netgraph nodes that you should be
>>able to build it out of as well.

> If so where can I find more info?

>>I'd look at the manuals for netgraph's Ethernet nodes, and perhaps the
>>GIF source code.

>>But I'd *really* recommend you tunnel IP rather than ethernet if you
>>can.  

Unfortunately this is for compatibility with Mikrotik Routers.


Thank You For Info!

>>-- 
>>Lowell Gilbert, embedded/networking software engineer, Boston area
>>  http://be-well.ilk.org/~lowell/



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


SOLVED: Re: obsolete /usr/share/doc/handbook ?

2008-12-31 Thread Anton Shterenlikht
On Wed, Dec 31, 2008 at 01:30:48PM +, Anton Shterenlikht wrote:
> I update my local FBSD documentation with cvsup doc-all.
> I note that the latest FBSD documentation is under /usr/doc.
> However I still have /usr/share/doc which is about 2 years out of date.
> 
> On the other hand /usr/doc does not appear in hier(7),
> whereas /usr/share/doc does.
> 
> Can I safely delete the obsolete docs under /usr/share/doc?
> Why are there two doc folders?

sorry, rushed to ask before trying. I get it now.
/usr/doc - sources for all docs. Doing make install puts the
html docs under /usr/share/doc.

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: obsolete /usr/share/doc/handbook ?

2008-12-31 Thread Lowell Gilbert
Anton Shterenlikht  writes:

> I update my local FBSD documentation with cvsup doc-all.
> I note that the latest FBSD documentation is under /usr/doc.
> However I still have /usr/share/doc which is about 2 years out of date.
>
> On the other hand /usr/doc does not appear in hier(7),
> whereas /usr/share/doc does.
>
> Can I safely delete the obsolete docs under /usr/share/doc?
> Why are there two doc folders?

What you have downloaded is the source from which the docs are built.  
If you want to build them yourself, the directions are in the FreeBSD
Documentation Project primer (which is in the "books" section of the
documentation; I'd recommend you read it on the web -- for example,
http://www.freebsd.org/doc/en_US.ISO8859-1/books/fdp-primer/ --
until you have a more recent local copy).

If you aren't planning on building the documents yourself, just download
them from the ftp sites.  Every document includes a suggestion to do so
from 
ftp://ftp.freebsd.org/pub/FreeBSD/doc/
-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Scaner setup question

2008-12-31 Thread stan
I am trying to set up my HP C2520A scanner on 7.1 san-find-scanner finds it
at /dev/pass0, byt that device is only acessible to root:

crw---  1 root  operator0, 104 Dec 30 18:10 /dev/pass0

Now obviously I could change this, but i am wondering what the "correct"
way to allow ordinary users to access tis device is?

-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


PostgreSQL setup

2008-12-31 Thread stan
I have installed PostgreSQL via the ports on a new 7.1 machine. I am trying
to set it up.

I found:

http://www.freebsddiary.org/postgresql.php

Whic says to run:

 su -l pgsql -c initdb

But that gives me the following error message:

initdb: no data directory specified
You must identify the directory where the data for this database system
will reside.  Do this with either the invocation option -D or the
environment variable PGDATA.

But when I try:

#  su -l pgsql -c initdb -D /usr/local/postgres

I get:

Illegal option -D

What am I doing wrong?

-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


named won't bind to external interface and ignores other options.

2008-12-31 Thread lenny


bind 9.4.2/FreeBSD 7.0 seems to be ignoring many settings I enter in
/etc/namedb/named.conf.  zones are being properly served internally, but
can't query or transfer from the outside.



listen-on {216.154.117.227; 192.168.1.1;};
listen-on-v6 { none; };


tcp6   0  0  ::1.953*.*LISTEN
tcp4   0  0  127.0.0.1.953  *.*LISTEN
tcp4   0  0  192.168.1.1.53 *.*LISTEN


any ideas ?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: PostgreSQL setup

2008-12-31 Thread Andrew Gould
On Wed, Dec 31, 2008 at 9:06 AM, stan  wrote:

> I have installed PostgreSQL via the ports on a new 7.1 machine. I am trying
> to set it up.
>
> I found:
>
> http://www.freebsddiary.org/postgresql.php
>
> Whic says to run:
>
>  su -l pgsql -c initdb
>
> But that gives me the following error message:
>
> initdb: no data directory specified
> You must identify the directory where the data for this database system
> will reside.  Do this with either the invocation option -D or the
> environment variable PGDATA.
>
> But when I try:
>
> #  su -l pgsql -c initdb -D /usr/local/postgres
>
> I get:
>
> Illegal option -D
>
> What am I doing wrong?
>
>
I think the command has to be enclosed in quotation marks since it consists
of multiple words.  su thinks the '-D' is an argument for su rather than
initdb.

su -l pgsql -c 'initdb -D /usr/local/postgres'

Best of luck,

Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: PostgreSQL setup

2008-12-31 Thread Boris Samorodov
stan  writes:

> I have installed PostgreSQL via the ports on a new 7.1 machine. I am trying
> to set it up.
>
> I found:
>
> http://www.freebsddiary.org/postgresql.php
>
> Whic says to run:
>
>  su -l pgsql -c initdb
>
> But that gives me the following error message:
>
> initdb: no data directory specified
> You must identify the directory where the data for this database system
> will reside.  Do this with either the invocation option -D or the
> environment variable PGDATA.
>
> But when I try:
>
> #  su -l pgsql -c initdb -D /usr/local/postgres
>
> I get:
>
> Illegal option -D
>
> What am I doing wrong?

You haven't read a post-install message. ;-)
You may read it now:
-
$ less /usr/ports/databases/postgresql83-server/files/pkg-message-server.in
-


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: PostgreSQL setup

2008-12-31 Thread PstreeM China
>
just look /usr/ports/database/postgresql*-server/pkg-desc*
init your db,run the command /usr/local/etc/rc.d/postgresql initdb
first ,add the line into /etc/rc.conf:postgresql_enable="yes"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: PostgreSQL setup

2008-12-31 Thread Odhiambo Washington
On Wed, Dec 31, 2008 at 6:15 PM, Andrew Gould wrote:

> On Wed, Dec 31, 2008 at 9:06 AM, stan  wrote:
>
> > I have installed PostgreSQL via the ports on a new 7.1 machine. I am
> trying
> > to set it up.
> >
> > I found:
> >
> > http://www.freebsddiary.org/postgresql.php
> >
> > Whic says to run:
> >
> >  su -l pgsql -c initdb
> >
> > But that gives me the following error message:
> >
> > initdb: no data directory specified
> > You must identify the directory where the data for this database system
> > will reside.  Do this with either the invocation option -D or the
> > environment variable PGDATA.
> >


Go into the port directory for postgresql71 and so "make deinstall". After
that, do

script -a ~/PGSQL-INSTALL.txt make install clean

Once that is done, go ito the ~/PGSQL-INSTALL.txt and read the lines towards
the bottom. Those are sometimes calles Post-install message. They tell you
exactly what to do on FreeBSD.

-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"The way my luck is running, if I was a politician I would be honest."
Rodney Dangerfield
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


kgdb - problem obtaining a backtrace

2008-12-31 Thread Mike Clarke

Every time I plug my camera into the USB port on my 7.1-RC2 system I get 
a kernel panic. The camera causes no problem with 6.4-RELEASE on the 
same PC.

I have submitted a PR for this problem 
(http://www.freebsd.org/cgi/query-pr.cgi?pr=130076) and attached kgdb 
output with a backtrace. Unfortunately the backtrace was of no use as 
the fault occurs in a loaded module and I was asked to use asf(8) 
output to load the modules into kgdb and create a more useful 
backtrace.

Unfortunately when I did this I still got the same backtrace shown 
below.

This is the first time I've needed to submit a PR and do things with 
crash dumps so I'm very much out of my depth in uncharted waters but 
willing to learn. Have I done something wrong with kgdb or is there 
some other problem with the dump file?

---
curlew# kgdb /boot/kernel/kernel /var/crash/vmcore.0
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you 
are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for 
details.
This GDB was configured as "i386-marcel-freebsd"...

Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x0
fault code  = supervisor read, page not present
instruction pointer = 0x20:0x0
stack pointer   = 0x28:0xe55ed698
frame pointer   = 0x28:0xe55ed6d8
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 14 (swi4: clock sio)
trap number = 12
panic: page fault
cpuid = 0
Uptime: 2m50s
Physical memory: 1971 MB
Dumping 70 MB: 55 39 23 7

Reading symbols from /boot/kernel/acpi.ko...Reading symbols 
from /boot/kernel/acpi.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/acpi.ko
Reading symbols from /boot/kernel/linux.ko...Reading symbols 
from /boot/kernel/linux.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/linux.ko
#0  doadump () at pcpu.h:196
196 pcpu.h: No such file or directory.
in pcpu.h
(kgdb) source /root/.asf
add symbol table from file "/boot/kernel/acpi.ko.symbols" at
.text_addr = 0xc0db4350
.data_addr = 0xc0df5000
.bss_addr = 0xc0df73a0
add symbol table from file "/boot/kernel/linux.ko.symbols" at
.text_addr = 0xc55a9080
.data_addr = 0xc55bf080
.bss_addr = 0xc55c16e0
(kgdb) backtrace
#0  doadump () at pcpu.h:196
#1  0xc0795627 in boot (howto=260) 
at /usr/src/sys/kern/kern_shutdown.c:418
#2  0xc07958f9 in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:574
#3  0xc0aa7b0c in trap_fatal (frame=0xe55ed658, eva=0)
at /usr/src/sys/i386/i386/trap.c:939
#4  0xc0aa7d90 in trap_pfault (frame=0xe55ed658, usermode=0, eva=0)
at /usr/src/sys/i386/i386/trap.c:852
#5  0xc0aa874c in trap (frame=0xe55ed658) 
at /usr/src/sys/i386/i386/trap.c:530
#6  0xc0a8e5bb in calltrap () at /usr/src/sys/i386/i386/exception.s:159
#7  0x in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb) q
---

I don't know if I did things the right way but here's the procedure I 
followed to get the backtrace:

The output of kldstat was:

Id Refs AddressSize Name
 17 0xc040 9a1f68   kernel
 21 0xc0da2000 6a2c4acpi.ko
 31 0xc5599000 22000linux.ko

... and I ran the following command:

asf -N /boot/kernel/kernel -M /var/crash/vmcore.0 -s /boot/kernel

... which produced the following .asf file:

add-symbol-file /boot/kernel/acpi.ko.symbols 0xc0db4350 -s .data 
0xc0df5000 -s .bss 0xc0df73a0
add-symbol-file /boot/kernel/linux.ko.symbols 0xc55a9080 -s .data 
0xc55bf080 -s .bss 0xc55c16e0

... which I specified in a source command in kgdb

-- 
Mike Clarke
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Scaner setup question

2008-12-31 Thread Glen Barber
On Wed, 2008-12-31 at 09:43 -0500, stan wrote:
> I am trying to set up my HP C2520A scanner on 7.1 san-find-scanner finds it
> at /dev/pass0, byt that device is only acessible to root:
> 
> crw---  1 root  operator0, 104 Dec 30 18:10 /dev/pass0
> 
> Now obviously I could change this, but i am wondering what the "correct"
> way to allow ordinary users to access tis device is?
> 

Have a look at the man pages for devd, devfs.conf and devfs.rules.

-- 
Glen Barber
"Tell me and I forget.  Teach me and I remember.  Involve me and I
learn." - Benjamin Franklin

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


ssh and X11 problem

2008-12-31 Thread stan

I just built a new 7.1 machine, and when I ssh from a Linux box to it I get
the following errors:

usr/local/bin/xauth: (stdin):1:  bad display name "unix:10.0" in "remove"
command
/usr/local/bin/xauth: (stdin):2:  bad display name "unix:10.0" in "add"
command

And I cannit get ssh to foward the X protocol. Yes I have added 

ForwardX11 yes to /etc/ssh/ssh_config

What am I doing wrong?

-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ssh and X11 problem

2008-12-31 Thread Glen Barber
On Wed, 2008-12-31 at 12:35 -0500, stan wrote:
> I just built a new 7.1 machine, and when I ssh from a Linux box to it I get
> the following errors:
> 
> usr/local/bin/xauth: (stdin):1:  bad display name "unix:10.0" in "remove"
> command
> /usr/local/bin/xauth: (stdin):2:  bad display name "unix:10.0" in "add"
> command
> 
> And I cannit get ssh to foward the X protocol. Yes I have added 
> 
> ForwardX11 yes to /etc/ssh/ssh_config
> 
> What am I doing wrong?
> 

I assume you have xserver on the FreeBSD box?  Check your display name.
I'm pretty sure it's supposed to be 'hostname:0:0'.


-- 
Glen Barber
"Tell me and I forget.  Teach me and I remember.  Involve me and I
learn." - Benjamin Franklin

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


scanner setup question

2008-12-31 Thread stan
I am trying to set up a new machine that has an HP scanner atached to it. I
am a bit confused at the moment.

I am trying to set up to allow users to acess this scanner. I have added
this to /etc/devfs.conf

perm pass0 0660

And that seesm to work:

# ls -l /dev/pas*
crw-rw  1 root  operator0, 104 Dec 31 12:07 /dev/pass0

I have added my suer to the operator group

# grep stan /etc/gro*
wheel:*:0:root,stan
operator:*:5:root,stan
network:*:69:stan
stan:*:210:

Running san-find-scanner as me finds the sacnner:


found SCSI processor "HP C2520A 3503" at /dev/pass0

But, 

$  scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

What am I doing wrong?


BTW as root:

# scanimage -L
device `hp:/dev/pass0' is a Hewlett-Packard C2520A flatbed scanner



-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ssh and X11 problem

2008-12-31 Thread stan
On Wed, Dec 31, 2008 at 12:41:48PM -0500, Glen Barber wrote:
> On Wed, 2008-12-31 at 12:35 -0500, stan wrote:
> > I just built a new 7.1 machine, and when I ssh from a Linux box to it I get
> > the following errors:
> > 
> > usr/local/bin/xauth: (stdin):1:  bad display name "unix:10.0" in "remove"
> > command
> > /usr/local/bin/xauth: (stdin):2:  bad display name "unix:10.0" in "add"
> > command
> > 
> > And I cannit get ssh to foward the X protocol. Yes I have added 
> > 
> > ForwardX11 yes to /etc/ssh/ssh_config
> > 
> > What am I doing wrong?
> > 
> 
> I assume you have xserver on the FreeBSD box?  Check your display name.
> I'm pretty sure it's supposed to be 'hostname:0:0'.
> 
Perhaps I was not clear. Yes I do have the X server running on the FreeBSD
machine, but that should not matter, as I am ssh'ing _from_ the Linux box
which does have a working X server on it also, and can ssh to other
machines  and get X fowarded corectly.

-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ssh and X11 problem

2008-12-31 Thread Glen Barber
On Wed, 2008-12-31 at 12:54 -0500, stan wrote:
> On Wed, Dec 31, 2008 at 12:41:48PM -0500, Glen Barber wrote:
> > On Wed, 2008-12-31 at 12:35 -0500, stan wrote:
> > > I just built a new 7.1 machine, and when I ssh from a Linux box to it I 
> > > get
> > > the following errors:
> > > 
> > > usr/local/bin/xauth: (stdin):1:  bad display name "unix:10.0" in "remove"
> > > command
> > > /usr/local/bin/xauth: (stdin):2:  bad display name "unix:10.0" in "add"
> > > command
> > > 
> > > And I cannit get ssh to foward the X protocol. Yes I have added 
> > > 
> > > ForwardX11 yes to /etc/ssh/ssh_config
> > > 
> > > What am I doing wrong?
> > > 
> > 
> > I assume you have xserver on the FreeBSD box?  Check your display name.
> > I'm pretty sure it's supposed to be 'hostname:0:0'.
> > 
> Perhaps I was not clear. Yes I do have the X server running on the FreeBSD
> machine, but that should not matter, as I am ssh'ing _from_ the Linux box
> which does have a working X server on it also, and can ssh to other
> machines  and get X fowarded corectly.
> 

You need an xserver to connect *to*, which is why I asked.

-- 
Glen Barber
"Tell me and I forget.  Teach me and I remember.  Involve me and I
learn." - Benjamin Franklin

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ssh and X11 problem

2008-12-31 Thread Peter Boosten


Glen Barber wrote:
> On Wed, 2008-12-31 at 12:54 -0500, stan wrote:
>> On Wed, Dec 31, 2008 at 12:41:48PM -0500, Glen Barber wrote:
>>> On Wed, 2008-12-31 at 12:35 -0500, stan wrote:
 I just built a new 7.1 machine, and when I ssh from a Linux box to it I get
 the following errors:

 usr/local/bin/xauth: (stdin):1:  bad display name "unix:10.0" in "remove"
 command
 /usr/local/bin/xauth: (stdin):2:  bad display name "unix:10.0" in "add"
 command

 And I cannit get ssh to foward the X protocol. Yes I have added 

 ForwardX11 yes to /etc/ssh/ssh_config

 What am I doing wrong?

>>> I assume you have xserver on the FreeBSD box?  Check your display name.
>>> I'm pretty sure it's supposed to be 'hostname:0:0'.
>>>
>> Perhaps I was not clear. Yes I do have the X server running on the FreeBSD
>> machine, but that should not matter, as I am ssh'ing _from_ the Linux box
>> which does have a working X server on it also, and can ssh to other
>> machines  and get X fowarded corectly.
>>
> 
> You need an xserver to connect *to*, which is why I asked.

Nope, not true: you can ssh to  client without x server (from an X
server) and start x clients to display on your local machine.

Through the ssh session, your display will be localhost:10:0

Peter

-- 
http://www.boosten.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ssh and X11 problem

2008-12-31 Thread Lowell Gilbert
Glen Barber  writes:

> On Wed, 2008-12-31 at 12:54 -0500, stan wrote:
>> On Wed, Dec 31, 2008 at 12:41:48PM -0500, Glen Barber wrote:
>> > On Wed, 2008-12-31 at 12:35 -0500, stan wrote:
>> > > I just built a new 7.1 machine, and when I ssh from a Linux box to it I 
>> > > get
>> > > the following errors:
>> > > 
>> > > usr/local/bin/xauth: (stdin):1:  bad display name "unix:10.0" in "remove"
>> > > command
>> > > /usr/local/bin/xauth: (stdin):2:  bad display name "unix:10.0" in "add"
>> > > command
>> > > 
>> > > And I cannit get ssh to foward the X protocol. Yes I have added 
>> > > 
>> > > ForwardX11 yes to /etc/ssh/ssh_config
>> > > 
>> > > What am I doing wrong?
>> > > 
>> > 
>> > I assume you have xserver on the FreeBSD box?  Check your display name.
>> > I'm pretty sure it's supposed to be 'hostname:0:0'.
>> > 
>> Perhaps I was not clear. Yes I do have the X server running on the FreeBSD
>> machine, but that should not matter, as I am ssh'ing _from_ the Linux box
>> which does have a working X server on it also, and can ssh to other
>> machines  and get X fowarded corectly.
>> 
>
> You need an xserver to connect *to*, which is why I asked.

No, Stan is right; an X server is only needed on the machine that
actually hosts the display.

The xauth error message are indicating the problem, but I don't
know what they're telling us.  The hostname should probably be
"localhost", and sshd_config is set up to do that by default.

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


Re: ssh and X11 problem

2008-12-31 Thread stan
On Wed, Dec 31, 2008 at 12:58:18PM -0500, Glen Barber wrote:
> On Wed, 2008-12-31 at 12:54 -0500, stan wrote:
> > On Wed, Dec 31, 2008 at 12:41:48PM -0500, Glen Barber wrote:
> > > On Wed, 2008-12-31 at 12:35 -0500, stan wrote:
> > > > I just built a new 7.1 machine, and when I ssh from a Linux box to it I 
> > > > get
> > > > the following errors:
> > > > 
> > > > usr/local/bin/xauth: (stdin):1:  bad display name "unix:10.0" in 
> > > > "remove"
> > > > command
> > > > /usr/local/bin/xauth: (stdin):2:  bad display name "unix:10.0" in "add"
> > > > command
> > > > 
> > > > And I cannit get ssh to foward the X protocol. Yes I have added 
> > > > 
> > > > ForwardX11 yes to /etc/ssh/ssh_config
> > > > 
> > > > What am I doing wrong?
> > > > 
> > > 
> > > I assume you have xserver on the FreeBSD box?  Check your display name.
> > > I'm pretty sure it's supposed to be 'hostname:0:0'.
> > > 
> > Perhaps I was not clear. Yes I do have the X server running on the FreeBSD
> > machine, but that should not matter, as I am ssh'ing _from_ the Linux box
> > which does have a working X server on it also, and can ssh to other
> > machines  and get X fowarded corectly.
> > 
> 
> You need an xserver to connect *to*, which is why I asked.
> 
On the FreeBSD machine? I may be confused, but I think that on the FreeBSD
machine the "client" tassk (eg xclock) is run, and it is pointed to the
server on the machine that I am connecting _from_. Am I confused?

-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ssh and X11 problem

2008-12-31 Thread Peter Boosten



On 31 dec 2008, at 19:01, Peter Boosten  wrote:




Glen Barber wrote:

On Wed, 2008-12-31 at 12:54 -0500, stan wrote:

On Wed, Dec 31, 2008 at 12:41:48PM -0500, Glen Barber wrote:

On Wed, 2008-12-31 at 12:35 -0500, stan wrote:
I just built a new 7.1 machine, and when I ssh from a Linux box  
to it I get

the following errors:

usr/local/bin/xauth: (stdin):1:  bad display name "unix:10.0" in  
"remove"

command
/usr/local/bin/xauth: (stdin):2:  bad display name "unix:10.0"  
in "add"

command

And I cannit get ssh to foward the X protocol. Yes I have added

ForwardX11 yes to /etc/ssh/ssh_config

What am I doing wrong?

I assume you have xserver on the FreeBSD box?  Check your display  
name.

I'm pretty sure it's supposed to be 'hostname:0:0'.

Perhaps I was not clear. Yes I do have the X server running on the  
FreeBSD
machine, but that should not matter, as I am ssh'ing _from_ the  
Linux box

which does have a working X server on it also, and can ssh to other
machines  and get X fowarded corectly.



You need an xserver to connect *to*, which is why I asked.


Nope, not true: you can ssh to  client without x server (from an X
server) and start x clients to display on your local machine.

Through the ssh session, your display will be localhost:10:0

Peter




After re-reading Glens remark he's actually right: the client connects *
to* the server, however the confusion starts when connecting to the  
client with ssh.


Peter
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ssh and X11 problem

2008-12-31 Thread Glen Barber
On Wed, 2008-12-31 at 13:02 -0500, Lowell Gilbert wrote:
> No, Stan is right; an X server is only needed on the machine that
> actually hosts the display.
> 
> The xauth error message are indicating the problem, but I don't
> know what they're telling us.  The hostname should probably be
> "localhost", and sshd_config is set up to do that by default.
> 

Right.  The host is hosting the display -- his Linux machine is the
client *to* the Xserver. 

-- 
Glen Barber
"Tell me and I forget.  Teach me and I remember.  Involve me and I
learn." - Benjamin Franklin

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ssh and X11 problem

2008-12-31 Thread Glen Barber
On Wed, 2008-12-31 at 13:02 -0500, stan wrote:
> On the FreeBSD machine? I may be confused, but I think that on the FreeBSD
> machine the "client" tassk (eg xclock) is run, and it is pointed to the
> server on the machine that I am connecting _from_. Am I confused?
> 

The task runs on the host machine (using the Xserver) and is forwarded
over SSH to the client machine.  The "client task" you refer to is on
the "host" machine.  

-- 
Glen Barber
"Tell me and I forget.  Teach me and I remember.  Involve me and I
learn." - Benjamin Franklin

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Using PHP PDO on FreeBSD

2008-12-31 Thread af300wsm

Hello,

So, I've installed from ports the following:

sniper# pkg_info | grep php
php5-5.2.6_2 PHP Scripting Language
php5-pdo-5.2.6_2 The pdo shared extension for php
php5-pdo_pgsql-5.2.6_1 The pdo_pgsql shared extension for php
php5-pgsql-5.2.6_1 The pgsql shared extension for php


I noticed in /usr/local/etc/php there is a file named, extensions.ini with  
the following contents:

sniper# cat php/extensions.ini
extension=pgsql.so
extension=pdo.so
extension=pdo_pgsql.so

However, when I try to use the PDO in my php script I get this error from  
the interpreter:

could not find driver

Now, I don't know what I'm missing. I've tried renaming  
/usr/local/etc/php.ini-recommended to php.ini. However, after reloading  
apache, I'm still getting the, "could not find driver," error. So, what's  
the secret to using this extension on FreeBSD?


Andy
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ssh and X11 problem

2008-12-31 Thread stan
On Wed, Dec 31, 2008 at 01:32:23PM -0500, Glen Barber wrote:
> On Wed, 2008-12-31 at 13:02 -0500, stan wrote:
> > On the FreeBSD machine? I may be confused, but I think that on the FreeBSD
> > machine the "client" tassk (eg xclock) is run, and it is pointed to the
> > server on the machine that I am connecting _from_. Am I confused?
> > 
> 
> The task runs on the host machine (using the Xserver) and is forwarded
> over SSH to the client machine.  The "client task" you refer to is on
> the "host" machine.  
> 
The terms sever, and client are backwards from the intuitve expectaion in
the X world. The "server" is the process (X) taht actually updates the
screen with graphics (eg draw box). The "client" is the process that wisfes
to access the serrver to put somehting on the screen (eg xclcok). So, in
this case the "server" is on the Linux machine, and the client(s0 are on
the FreeBSD machine.

For the record, I solved the problem. Thier was no "hostname" entry in
/etc/rc.conf. hostname returned nothig. Fixing this, and rebooting cured
this problem.

Thaks to veryone for making me think this through.

Now, if somebady cna just give me a clue on the scanner issue (see seperate
thread).



-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: scanner setup question

2008-12-31 Thread Mel
On Wednesday 31 December 2008 08:52:40 stan wrote:
> I am trying to set up a new machine that has an HP scanner atached to it. I
> am a bit confused at the moment.
>
> I am trying to set up to allow users to acess this scanner. I have added
> this to /etc/devfs.conf
>
> perm pass0 0660
>
> And that seesm to work:
>
> # ls -l /dev/pas*
> crw-rw  1 root  operator0, 104 Dec 31 12:07 /dev/pass0
>
> I have added my suer to the operator group
>
> # grep stan /etc/gro*
> wheel:*:0:root,stan
> operator:*:5:root,stan
> network:*:69:stan
> stan:*:210:
>
> Running san-find-scanner as me finds the sacnner:
>
>
> found SCSI processor "HP C2520A 3503" at /dev/pass0
>
> But,
>
> $  scanimage -L
>
> No scanners were identified. If you were expecting something different,
> check that the scanner is plugged in, turned on and detected by the
> sane-find-scanner tool (if appropriate). Please read the documentation
> which came with this software (README, FAQ, manpages).
>
> What am I doing wrong?

No experience with a scanner, but for a CD writer you also need access to the 
xpt device. It's worth a shot.


-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: named won't bind to external interface and ignores other options.

2008-12-31 Thread Mel
On Wednesday 31 December 2008 06:03:45 le...@edpausa.com wrote:
> bind 9.4.2/FreeBSD 7.0 seems to be ignoring many settings I enter in
> /etc/namedb/named.conf.  zones are being properly served internally, but
> can't query or transfer from the outside.
>
>
>
> listen-on {216.154.117.227; 192.168.1.1;};
> listen-on-v6 { none; };
>
>
> tcp6   0  0  ::1.953*.*LISTEN
> tcp4   0  0  127.0.0.1.953  *.*LISTEN
> tcp4   0  0  192.168.1.1.53 *.*LISTEN
>
>
> any ideas ?

Any clues in /var/log/messages?
216.154.117.227 is on a local interface?
-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: PostgreSQL setup

2008-12-31 Thread Mel
On Wednesday 31 December 2008 06:32:58 Odhiambo Washington wrote:
> On Wed, Dec 31, 2008 at 6:15 PM, Andrew Gould 
wrote:
> > On Wed, Dec 31, 2008 at 9:06 AM, stan  wrote:
> > > I have installed PostgreSQL via the ports on a new 7.1 machine. I am
> >
> > trying
> >
> > > to set it up.
> > >
> > > I found:
> > >
> > > http://www.freebsddiary.org/postgresql.php
> > >
> > > Whic says to run:
> > >
> > >  su -l pgsql -c initdb
> > >
> > > But that gives me the following error message:
> > >
> > > initdb: no data directory specified
> > > You must identify the directory where the data for this database system
> > > will reside.  Do this with either the invocation option -D or the
> > > environment variable PGDATA.
>
> Go into the port directory for postgresql71 and so "make deinstall". After
> that, do
>
> script -a ~/PGSQL-INSTALL.txt make install clean
>
> Once that is done, go ito the ~/PGSQL-INSTALL.txt and read the lines
> towards the bottom. Those are sometimes calles Post-install message. They
> tell you exactly what to do on FreeBSD.

Erm, that's kind of a round-about way to accomplish:
cat /usr/local/share/doc/postgresql/README-server
or:
cat /var/db/pkg/postgresql-server*/+DISPLAY

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: PostgreSQL setup

2008-12-31 Thread Matthew Seaman

Mel wrote:

On Wednesday 31 December 2008 06:32:58 Odhiambo Washington wrote:



script -a ~/PGSQL-INSTALL.txt make install clean

Once that is done, go ito the ~/PGSQL-INSTALL.txt and read the lines
towards the bottom. Those are sometimes calles Post-install message. They
tell you exactly what to do on FreeBSD.


Erm, that's kind of a round-about way to accomplish:
cat /usr/local/share/doc/postgresql/README-server
or:
cat /var/db/pkg/postgresql-server*/+DISPLAY



pkg_info -Dx postgresql

Matthew

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



signature.asc
Description: OpenPGP digital signature


Re: scanner setup question

2008-12-31 Thread stan
On Wed, Dec 31, 2008 at 12:52:40PM -0500, stan wrote:
> I am trying to set up a new machine that has an HP scanner atached to it. I
> am a bit confused at the moment.
> 
> I am trying to set up to allow users to acess this scanner. I have added
> this to /etc/devfs.conf
> 
> perm pass0 0660
> 
> And that seesm to work:
> 
> # ls -l /dev/pas*
> crw-rw  1 root  operator0, 104 Dec 31 12:07 /dev/pass0
> 
> I have added my suer to the operator group
> 
> # grep stan /etc/gro*
> wheel:*:0:root,stan
> operator:*:5:root,stan
> network:*:69:stan
> stan:*:210:
> 
> Running san-find-scanner as me finds the sacnner:
> 
> 
> found SCSI processor "HP C2520A 3503" at /dev/pass0
> 
> But, 
> 
> $  scanimage -L
> 
> No scanners were identified. If you were expecting something different,
> check that the scanner is plugged in, turned on and detected by the
> sane-find-scanner tool (if appropriate). Please read the documentation
> which came with this software (README, FAQ, manpages).
> 
> What am I doing wrong?
> 
> 
> BTW as root:
> 
> # scanimage -L
> device `hp:/dev/pass0' is a Hewlett-Packard C2520A flatbed scanner
> 
I did finally resolve this, although I am not certain whu this works. I
woulnd up putting the following 3 lines in /etc/devfs.conf

own pass0   root:operator
permpass0 0660
linkpass0   scanner

The one I did not have in here, when it was not working was the link.
Strange that tunning as root sane checks the pass0 device, but noot when
running as an ordianry user.

-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Dell 1950 RAID 1 Drives.

2008-12-31 Thread Keith

Have the above server, drive 0 failed. No onsite spares left. Ordered
replacement drives a week ago but they are still on route and wont be here
till Jan 5 or 6.

All I have is a test server of the same make/model in my test rack
configured and running a slightly different version of FBSD.

If I pull a drive from this test server that is already configured to a
RAID contoller and put it into the server with the bad drive, how will
the machine deal with it as it already has a valid config on it? Will I
just be able to go to the RAID Bios and rebuild?

Or wipe the config on the test server so the drive has no config on it
before installing it into the server with the failed drive?

Are the SAS drives in a Dell 1950 hot swap by chance?

Have not had a drive go like this with no spares around before.

Thanks.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: well, blew it... sed or perl q again.

2008-12-31 Thread Karl Vogel
>> On Tue, 30 Dec 2008 11:31:14 -0800, 
>> Gary Kline  said:

G> The problem is that there are many, _many_ embedded " HREF="http://whatever> Site in my hundreds, or thousands, or
G> files.  I only want to delete the "http://" lines, _not_
G> the other Href links.

   Use perl.  You'll want the "i" option to do case-insensitive matching,
   plus "m" for matching that could span multiple lines; the first
   quoted line above shows one of several places where a URL can cross
   a line-break.

   You might want to leave the originals completely alone.  I never trust
   programs to modify files in place:

 you% mkdir /tmp/work
 you% find . -type f -print | xargs grep -li http://junkfoo.com > FILES
 you% pax -rwdv -pe /tmp/work < FILES

   Your perl script can just read FILES and overwrite the stuff in the new
   directory.  You'll want to slurp the entire file into memory so you catch
   any URL that spans multiple lines.  Try the script below, it works for
   input like this:

  This
  http://junkfoo.com";>
 Site should go away too.

  And so should
  http://junkfoo.com/";
  > Site this

  And finally http://junkfoo.com/";>Site this

-- 
Karl Vogel  I don't speak for the USAF or my company

The average person falls asleep in seven minutes.
--item for a lull in conversation

---
#!/usr/bin/perl -w

use strict;

my $URL = 'href=(.*?)"http://junkfoo.com/*";';
my $contents;
my $fh;
my $infile;
my $outfile;

while (<>) {
chomp;
$infile = $_;

s{^./}{/tmp/};
$outfile = $_;

open ($fh, "< $infile") or die "$infile";
$contents = do { local $/; <$fh> };
close ($fh);

$contents =~ s{  # substitute ...
 # ... until we end
  }
  { }gixms;  # ... with a single space

open ($fh, "> $outfile") or die "$outfile";
print $fh $contents;
close ($fh);
}

exit(0);
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


inetd.conf entry for saned?

2008-12-31 Thread stan
I seem to be having an inrdinate amount of trouble getting a working
inetd.conf entry for saned on 7.1 

If I run saned from the command line, I can connect and scan. But I cannot
seem to amke it work from inetd Here is what I have:

sane-port  stream  tcp  nowait  saned/usr/local/sbin/saned saned

Yes, I created a user for saned. although I am suprsied that the port did
not do that. When I start inetd with the -d flag, I get:

black# inetd -d
ADD : sane-port proto=tcp accept=1 max=0 user=saned
group=(null)class=daemon builtin=0x0 server=/usr/local/sbin/saned policy=""
inetd: sane-port/tcp: ipsec initialization failed; in entrust
inetd: sane-port/tcp: ipsec initialization failed; out entrust
inetd: enabling sane-port, fd 4
inetd: registered /usr/local/sbin/saned on 4

What file do I add this line to?

-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


mplayer won't build

2008-12-31 Thread Chad Perrin
For some reason, on . . .

My machine:

  FreeBSD 6.2-RELEASE-p11

MPlayer refuses to build:

  N - O - T - E

  There are some knobs which *can* *not* be selected via the
  OPTIONS framework. You might want to check the Makefile in
  order to learn more about them.
  If you want to use the GUI, you can either install
  /usr/ports/multimedia/mplayer-skins
  or download official skin collections from
  http://www.mplayerhq.hu/homepage/dload.html
  ===>  mplayer-0.99.11_8 has known vulnerabilities:
  => mplayer -- twinvq processing buffer overflow vulnerability.
 Reference:
 

  => Please update your ports tree and try again.
  *** Error code 1

  Stop in /usr/ports/multimedia/mplayer.
  *** Error code 1

  Stop in /usr/ports/multimedia/mplayer.

Is the problem that there isn't a newer, fixed version of MPlayer in
ports?  If so -- why can't I override it using `portinstall -f`?  Am I
going to feel dumb when I realize what's stopping MPlayer from building?
How long would it take to vacuum the entire state of Florida if it was
carpeted?  What is the average airspeed velocity of an unladen swallow in
flight?

Okay . . . feel free to ignore the last two or three questions.

-- 
Chad Perrin [ content licensed OWL: http://owl.apotheon.org ]
Quoth Henry Spencer: "Those who don't understand Unix are doomed to
reinvent it, poorly."


pgpIk3ARCYz5c.pgp
Description: PGP signature


Re: Dell 1950 RAID 1 Drives.

2008-12-31 Thread Tim Judd

Keith wrote:

Have the above server, drive 0 failed. No onsite spares left. Ordered
replacement drives a week ago but they are still on route and wont be here
till Jan 5 or 6.

All I have is a test server of the same make/model in my test rack
configured and running a slightly different version of FBSD.

If I pull a drive from this test server that is already configured to a
RAID contoller and put it into the server with the bad drive, how will
the machine deal with it as it already has a valid config on it? Will I
just be able to go to the RAID Bios and rebuild?

Or wipe the config on the test server so the drive has no config on it
before installing it into the server with the failed drive?

Are the SAS drives in a Dell 1950 hot swap by chance?

Have not had a drive go like this with no spares around before.

Thanks.



Better to ask Dell weather they're hot swap or not as an absolute 
answer.  When I asked, the tech at the time said "the newer PERC 
controllers are all hotswap, as long as the RAID controller isn't 
talking to the drive anymore".  Given the 2nd system is actively using 
it, I don't think it's hotswap.


As for the config, you'd have to force an integrity/rebuild on the 
first.  Clearing the config on the 2nd shouldn't be necessary.  In fact, 
the second may see a missing drive and panic as is.  The PERC6 
controllers I deal with at work have a "feature" that I would call a 
bug.  A missing physical disk causes the RAID controller to 
waste/dump/ignore/forget it's onboard config.  You may be dead in the 
water on the 2nd system until you get a drive to put in.


Backup server 1 and 2.  And wait for the drive to come.  No other good 
way to solve this problem.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


postgresql network access problem

2008-12-31 Thread stan

I am having a bit of a problem enabling remote access to postgress on my
7.1 system.

I have added to postgresql.conf

listen_addresses = '*'

and to pg_hba.conf 

hostall all XXX.159.77.0/24 trust

XX is a real number, and is the first octect of the network that this
mahcine lives on

Now, it appears that I alos need to add the -i, or -h flag to the
invocation of postgress itslef, but I can't seem to get the rc.conf sysntax
corrcet for that. What should this entry look like?

-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Last q of '08...

2008-12-31 Thread Gary Kline

is there a C-beauitful//reformatter in ports?  need one Badly!!

gary



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 2.17a release of Jottings: http://jottings.thought.org/index.php

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: mplayer won't build

2008-12-31 Thread matt donovan
On Wed, Dec 31, 2008 at 6:52 PM, Chad Perrin  wrote:

> For some reason, on . . .
>
> My machine:
>
>  FreeBSD 6.2-RELEASE-p11
>
> MPlayer refuses to build:
>
>  N - O - T - E
>
>  There are some knobs which *can* *not* be selected via the
>  OPTIONS framework. You might want to check the Makefile in
>  order to learn more about them.
>  If you want to use the GUI, you can either install
>  /usr/ports/multimedia/mplayer-skins
>  or download official skin collections from
>  http://www.mplayerhq.hu/homepage/dload.html
>  ===>  mplayer-0.99.11_8 has known vulnerabilities:
>  => mplayer -- twinvq processing buffer overflow vulnerability.
> Reference:
> <
> http://www.FreeBSD.org/ports/portaudit/7c5bd5b8-d652-11dd-a765-0030843d3802.html
> >
>  => Please update your ports tree and try again.
>  *** Error code 1
>
>  Stop in /usr/ports/multimedia/mplayer.
>  *** Error code 1
>
>
>
  you want soemthing like this make -DDISABLE_VULNERABILITIES install if you
want to override portaudit. guess the port for mplayer needs to be updated.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: well, blew it... sed or perl q again.

2008-12-31 Thread Gary Kline
On Wed, Dec 31, 2008 at 03:20:14PM -0500, Karl Vogel wrote:
> >> On Tue, 30 Dec 2008 11:31:14 -0800, 
> >> Gary Kline  said:
> 
> G> The problem is that there are many, _many_ embedded " G> HREF="http://whatever> Site in my hundreds, or thousands, or
> G> files.  I only want to delete the "http://" lines, _not_
> G> the other Href links.
> 
>Use perl.  You'll want the "i" option to do case-insensitive matching,
>plus "m" for matching that could span multiple lines; the first
>quoted line above shows one of several places where a URL can cross
>a line-break.
> 
>You might want to leave the originals completely alone.  I never trust
>programs to modify files in place:
> 
>  you% mkdir /tmp/work
>  you% find . -type f -print | xargs grep -li http://junkfoo.com > FILES
>  you% pax -rwdv -pe /tmp/work < FILES
^^^

pax is like cpio, isn't it?

anyway, yes, i'll ponder this.  i [mis]-spent hours
undoing something bizarre that my scrub.c binary did
to directories, turning foo and bar, (and scores
more)
into foo and foo.bar, bar and bar.bak.  the bak were 
the saved directories.  the foo, bar were bizarre. i
couldn't write/cp/mv over them.  had to carefully 
rm -f foo; mv foo.bar foo [et cetera]..

then i scp'd my files to two other computers.
(*mumcle)

> 
>Your perl script can just read FILES and overwrite the stuff in the new
>directory.  You'll want to slurp the entire file into memory so you catch
>any URL that spans multiple lines.  Try the script below, it works for
>input like this:
> 
>   This
>   http://junkfoo.com";>
>  Site should go away too.
> 
>   And so should
>"http://junkfoo.com/";
>   > Site this
> 
>   And finally http://junkfoo.com/";>Site this
> 
> -- 
> Karl Vogel  I don't speak for the USAF or my company
> 
> The average person falls asleep in seven minutes.
> --item for a lull in conversation
> 
> ---
> #!/usr/bin/perl -w
> 
> use strict;
> 
> my $URL = 'href=(.*?)"http://junkfoo.com/*";';
> my $contents;
> my $fh;
> my $infile;
> my $outfile;
> 
> while (<>) {
> chomp;
> $infile = $_;
> 
> s{^./}{/tmp/};
> $outfile = $_;
> 
> open ($fh, "< $infile") or die "$infile";
> $contents = do { local $/; <$fh> };
> close ($fh);
> 
> $contents =~ s{  # substitute ...
>  $URL # ... actual link
> (.*?)# ... min # of chars including newline
>  # ... until we end
>   }
>   { }gixms;  # ... with a single space
> 
> open ($fh, "> $outfile") or die "$outfile";
> print $fh $contents;
> close ($fh);
> }
> 
> exit(0);
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 2.17a release of Jottings: http://jottings.thought.org/index.php

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Last q of '08...

2008-12-31 Thread Polytropon
On Wed, 31 Dec 2008 16:43:53 -0800, Gary Kline  wrote:
> 
> is there a C-beauitful//reformatter in ports?

lint?

Sorry, never used one, can code tidy myself. :-)



-- 
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Last q of '08...

2008-12-31 Thread Bruce Cran
On Wed, 31 Dec 2008 16:43:53 -0800
Gary Kline  wrote:

> is there a C-beauitful//reformatter in ports?  need one Badly!!

It's not in ports, but /usr/bin/indent reformats C code.

-- 
Bruce Cran
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Last q of '08...

2008-12-31 Thread Gary Kline
On Thu, Jan 01, 2009 at 02:01:04AM +0100, Polytropon wrote:
> On Wed, 31 Dec 2008 16:43:53 -0800, Gary Kline  wrote:
> > 
> > is there a C-beauitful//reformatter in ports?
> 
> lint?
> 
> Sorry, never used one, can code tidy myself. :-)
> 
> 

well, yeah, but what ELSE are computers good for!!



> 
> -- 
> Polytropon
> >From Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 2.17a release of Jottings: http://jottings.thought.org/index.php

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Last q of '08...

2008-12-31 Thread Gary Kline
On Thu, Jan 01, 2009 at 01:03:12AM +, Bruce Cran wrote:
> On Wed, 31 Dec 2008 16:43:53 -0800
> Gary Kline  wrote:
> 
> > is there a C-beauitful//reformatter in ports?  need one Badly!!
> 
> It's not in ports, but /usr/bin/indent reformats C code.
> 


_that's_ what it was.  i thought it was in ports, once.  have
my own canned cmdline [somewhere].  or used to.


> -- 
> Bruce Cran

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 2.17a release of Jottings: http://jottings.thought.org/index.php

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: mplayer won't build

2008-12-31 Thread Chad Perrin
On Wed, Dec 31, 2008 at 07:48:28PM -0500, matt donovan wrote:
>   you want soemthing like this make -DDISABLE_VULNERABILITIES install if you
> want to override portaudit. guess the port for mplayer needs to be updated.

Thanks -- that's not just something like what I wanted: it's exactly what
I wanted.  It seems odd to me that there isn't an option for that in
portinstall (ignoring -m for the moment).

-- 
Chad Perrin [ content licensed OWL: http://owl.apotheon.org ]
Quoth Anne McClintock, University of Wisconsin: "The decisions that
really matter are made outside the democratic process."


pgpRPZcXMvarY.pgp
Description: PGP signature


Re: named won't bind to external interface and ignores other options.

2008-12-31 Thread Ian Smith
On Wed, 31 Dec 2008 10:03:45 -0500 (EST) le...@edpausa.com wrote:
 > 
 > bind 9.4.2/FreeBSD 7.0 seems to be ignoring many settings I enter in
 > /etc/namedb/named.conf.  zones are being properly served internally, but
 > can't query or transfer from the outside.

 > listen-on {216.154.117.227; 192.168.1.1;};
 > listen-on-v6 { none; };

I wonder if the spaces around curly braces that named examples always 
use are mandatory?  As in listen-on { 216.154.117.227; 192.168.1.1; };

 > tcp6   0  0  ::1.953*.*LISTEN
 > tcp4   0  0  127.0.0.1.953  *.*LISTEN
 > tcp4   0  0  192.168.1.1.53 *.*LISTEN

Looks like it's not seeing named.conf, assuming that 216.154.117.227 
exists as the address of a local interface at the time when named is 
started, as Mel mentioned.  This can be a problem with ppp or mpd ..

What does 'realpath /etc/named' say?  Are you using the FreeBSD default:
 
% realpath /etc/namedb
/var/named/etc/namedb
% ls -l /etc/namedb 
lrwxr-xr-x 1 root wheel 21 Dec 12 02:37 /etc/namedb -> /var/named/etc/namedb

If you run '/etc/rc.d/named stop' and then '/etc/rc.d/named start', what 
shows up in /var/log/messages ?

What's in /etc/rc.conf concerning named ?  Any clues from 'rndc status'?

cheers, Ian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Happy new Year!

2008-12-31 Thread Ott Köstner

List!

Happy new Year!

Just installed a new FreeBSD to an old (junk) Pentium 2 computer here. 
Still buildng the world...

But anyway, Happy New Year!

Yeah, I have some minor problems with BSD and distributed web crawler @ 
http://www.majestic12.co.uk/  , but let's forget about these problems 
right now...


Happy New Year!

O.K.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


cannot compile linphone due to compile error message in gio-fam-backend

2008-12-31 Thread Zhang Weiwu
Hello.

I failed to compile linphone on my FreeBSD 6-1 (yes I know it's old but
as it has been working well for the last several years I got no motivate
to upgrade it unless have to). The last error message says:

[from gio-fam-backend ]:

cannot find -lgio-2.0

It seems I miss a package that provides gio-2.0. But what is that
package? I tried to google this error message without luck.

Thanks for help getting me having linphone installed. The whole compile
error message is below:

Script started on Thu Jan  1 11:18:29 2009
===>  Installing for linphone-base-2.1.1_1,1
===>   linphone-base-2.1.1_1,1 depends on executable: pkg-config - found
===>   linphone-base-2.1.1_1,1 depends on file: 
/usr/local/lib/gio/modules/libgiofam.so - not found
===>Verifying install for /usr/local/lib/gio/modules/libgiofam.so in 
/usr/ports/devel/gio-fam-backend
===>  Building for gio-fam-backend-2.16.5
/bin/sh ../../libtool --tag=CC   --mode=link cc -DG_LOG_DOMAIN=\"GLib-GIO\" 
-I../.. -I../../glib -I../../gmodule -I../../gio -DG_DISABLE_CAST_CHECKS 
-DGIO_MODULE_DIR=\"/usr/local/lib/gio/modules\" -DGIO_COMPILATION 
-DG_DISABLE_DEPRECATED -O2 -pipe -march=pentium-mmx -fno-strict-aliasing -Wall 
-export_dynamic -avoid-version -module -no-undefined -export-symbols-regex 
'^g_io_module_(load|unload)' -L/usr/local/lib -lintl -o libgiofam.la -rpath 
/usr/local/lib/gio/modules libgiofam_la-fam-helper.lo 
libgiofam_la-fam-module.lo libgiofam_la-gfamdirectorymonitor.lo 
libgiofam_la-gfamfilemonitor.lo  -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lfam  
rm -fr  .libs/libgiofam.exp
generating symbol list for `libgiofam.la'
/usr/bin/nm -B  .libs/libgiofam_la-fam-helper.o .libs/libgiofam_la-fam-module.o 
.libs/libgiofam_la-gfamdirectorymonitor.o .libs/libgiofam_la-gfamfilemonitor.o  
| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][  
]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | /usr/bin/sed 's/.* //' | sort | 
uniq > .libs/libgiofam.exp
/usr/bin/grep -E -e "^g_io_module_(load|unload)" ".libs/libgiofam.exp" > 
".libs/libgiofam.expT"
mv -f ".libs/libgiofam.expT" ".libs/libgiofam.exp"
cc -shared  .libs/libgiofam_la-fam-helper.o .libs/libgiofam_la-fam-module.o 
.libs/libgiofam_la-gfamdirectorymonitor.o .libs/libgiofam_la-gfamfilemonitor.o  
-Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -L/usr/local/lib 
/usr/local/lib/libintl.so -lgio-2.0 /usr/local/lib/libgobject-2.0.so 
/usr/local/lib/libglib-2.0.so /usr/local/lib/libfam.so  -march=pentium-mmx 
-Wl,-soname -Wl,libgiofam.so -Wl,-retain-symbols-file -Wl,.libs/libgiofam.exp 
-o .libs/libgiofam.so
/usr/bin/ld: cannot find -lgio-2.0
gmake: *** [libgiofam.la] Error 1
*** Error code 2

Stop in /usr/ports/devel/gio-fam-backend.
*** Error code 1

Stop in /usr/ports/net/linphone-base.

Script done on Thu Jan  1 11:18:38 2009


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: local copy of handbook

2008-12-31 Thread Masoom Shaikh
On Tue, Dec 30, 2008 at 7:03 PM, Frank Shute  wrote:

> On Mon, Dec 29, 2008 at 11:52:57PM +0200, Giorgos Keramidas wrote:
> >
> > On Mon, 29 Dec 2008 20:27:17 +, Frank Shute 
> wrote:
> > > You can keep a local copy of the docs & update the sources for the
> > > docs with csup but you have to regenerate them with a make command
> > > after you have csup'd.
> > >
> > > The process is described within this page I just put up:
> > >
> > > http://www.shute.org.uk/misc/freebsd_uptodate.html
> >
> > Hi Masoom,
> >
> > We have been working on a patch for the Handbook that adds a short
> > description of the same process.
> >
> > The patch has been recently posted to freebsd-doc, by Gabor Pali:
> >
> >
> http://lists.freebsd.org/pipermail/freebsd-doc/2008-December/015315.html
> >
> > Since you already have written something similar, do you think we can
> > convince you to review the patch?  It would be nice if you could help
> > us improve it or make it easier to read, and use.
>

>
> Hi Giorgos,
>
> I think your post was meant to be addressed to me as I wrote the above
> guide.


even I was confused :). Damn, i have never contributed a line to FreeBSD :(
am a professional C/C++ programmer on windoz with minimal expertise in
using patch, binutils etc, FreeBSD is just my hobby @ home. I will
contribute
some day, amen

thanks to guys like Frank, appreciate their work

>
>
> I'd be happy to review the patch that Gabor has written & if necessary
> add or subtract from it.
>
> It will take me a bit of time to get up to speed with the mark-up &
> review/grok the updating docs in the round. ATM, they certainly fall
> short of including anything about updating a local copy of the docs.
>
> I'll sign up for docs@ & then my impertinent/stupid questions about
> the docs can be answered therehopefully ;)
>
>
> Regards,
>
> --
>
>  Frank
>
>
>  Contact info: http://www.shute.org.uk/misc/contact.html
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscr...@freebsd.org"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: local copy of handbook

2008-12-31 Thread Masoom Shaikh
On Tue, Dec 30, 2008 at 9:19 PM, Giorgos Keramidas  wrote:

> On Tue, 30 Dec 2008 13:33:45 +, Frank Shute 
> wrote:
> >On Mon, Dec 29, 2008 at 11:52:57PM +0200, Giorgos Keramidas wrote:
> >>On Mon, 29 Dec 2008 20:27:17 +, Frank Shute 
> wrote:
> >>> You can keep a local copy of the docs & update the sources for the
> >>> docs with csup but you have to regenerate them with a make command
> >>> after you have csup'd.
> >>>
> >>> The process is described within this page I just put up:
> >>>
> >>> http://www.shute.org.uk/misc/freebsd_uptodate.html
> >>
> >> Hi Masoom,
> >> We have been working on a patch for the Handbook that adds a short
> >> description of the same process.
> >>
> >> The patch has been recently posted to freebsd-doc, by Gabor Pali:
> >>
> >>
> http://lists.freebsd.org/pipermail/freebsd-doc/2008-December/015315.html
> >>
> >> Since you already have written something similar, do you think we can
> >> convince you to review the patch?  It would be nice if you could help
> >> us improve it or make it easier to read, and use.
> >
> > Hi Giorgos,
> > I think your post was meant to be addressed to me as I wrote the above
> > guide.
>
> Yes.  Sorry about that Frank :)
>
> > I'd be happy to review the patch that Gabor has written & if necessary
> > add or subtract from it.
> >
> > It will take me a bit of time to get up to speed with the mark-up &
> > review/grok the updating docs in the round. ATM, they certainly fall
> > short of including anything about updating a local copy of the docs.
>
> I can build a patched Handbook and upload it online, if that helps.
> Then you don't have to learn SGML to read it.  Just let me know if you
> need it, and it's done.


wow, am waiting eagerlyHTML is complex, what is SGML :)

>
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscr...@freebsd.org"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: cannot compile linphone due to compile error message in gio-fam-backend

2008-12-31 Thread Michael Powell
Zhang Weiwu wrote:

> Hello.
> 
> I failed to compile linphone on my FreeBSD 6-1 (yes I know it's old but
> as it has been working well for the last several years I got no motivate
> to upgrade it unless have to). The last error message says:
> 
> [from gio-fam-backend ]:
> 
> cannot find -lgio-2.0
> 
> It seems I miss a package that provides gio-2.0. But what is that
> package? I tried to google this error message without luck.
> 
> Thanks for help getting me having linphone installed. The whole compile
> error message is below:
> 
> Script started on Thu Jan  1 11:18:29 2009
> ===>  Installing for linphone-base-2.1.1_1,1
> ===>   linphone-base-2.1.1_1,1 depends on executable: pkg-config - found
> ===>   linphone-base-2.1.1_1,1 depends on file:
> /usr/local/lib/gio/modules/libgiofam.so - not found
> ===>Verifying install for /usr/local/lib/gio/modules/libgiofam.so in
> /usr/ports/devel/gio-fam-backend
> ===>  Building for gio-fam-backend-2.16.5
> /bin/sh ../../libtool --tag=CC   --mode=link cc
> -DG_LOG_DOMAIN=\"GLib-GIO\" -I../.. -I../../glib -I../../gmodule
> -I../../gio -DG_DISABLE_CAST_CHECKS
> -DGIO_MODULE_DIR=\"/usr/local/lib/gio/modules\" -DGIO_COMPILATION
> -DG_DISABLE_DEPRECATED -O2 -pipe -march=pentium-mmx -fno-strict-aliasing
> -Wall -export_dynamic -avoid-version -module -no-undefined
> -export-symbols-regex '^g_io_module_(load|unload)' -L/usr/local/lib -lintl
> -o libgiofam.la -rpath /usr/local/lib/gio/modules
> libgiofam_la-fam-helper.lo libgiofam_la-fam-module.lo
> libgiofam_la-gfamdirectorymonitor.lo libgiofam_la-gfamfilemonitor.lo 
> -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lfam
> rm -fr  .libs/libgiofam.exp
> generating symbol list for `libgiofam.la'
> /usr/bin/nm -B  .libs/libgiofam_la-fam-helper.o
> .libs/libgiofam_la-fam-module.o .libs/libgiofam_la-gfamdirectorymonitor.o
> .libs/libgiofam_la-gfamfilemonitor.o  | sed -n -e 's/^.*[ 
> ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[   ][  
> ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2
> \2/p' | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libgiofam.exp
> /usr/bin/grep -E -e "^g_io_module_(load|unload)" ".libs/libgiofam.exp" >
> ".libs/libgiofam.expT" mv -f ".libs/libgiofam.expT" ".libs/libgiofam.exp"
> cc -shared  .libs/libgiofam_la-fam-helper.o
> .libs/libgiofam_la-fam-module.o .libs/libgiofam_la-gfamdirectorymonitor.o
> .libs/libgiofam_la-gfamfilemonitor.o  -Wl,--rpath -Wl,/usr/local/lib
> -Wl,--rpath -Wl,/usr/local/lib -L/usr/local/lib /usr/local/lib/libintl.so
> -lgio-2.0 /usr/local/lib/libgobject-2.0.so /usr/local/lib/libglib-2.0.so
> /usr/local/lib/libfam.so  -march=pentium-mmx -Wl,-soname -Wl,libgiofam.so
> -Wl,-retain-symbols-file -Wl,.libs/libgiofam.exp -o .libs/libgiofam.so
> /usr/bin/ld: cannot find -lgio-2.0 gmake: *** [libgiofam.la] Error 1 ***
> Error code 2
> 
> Stop in /usr/ports/devel/gio-fam-backend.
> *** Error code 1
> 
> Stop in /usr/ports/net/linphone-base.
> 
> Script done on Thu Jan  1 11:18:38 2009
> 

My first wild guess would be to check your version of glib20 and see if it
is 2.16.5_1. Possibly you may need to update it first (and what it might
depend on as well). Look at /usr/ports/devel/glib20.

-Mike



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: postgresql network access problem

2008-12-31 Thread Andrew Falanga
On Wed, Dec 31, 2008 at 5:42 PM, stan  wrote:
>
> I am having a bit of a problem enabling remote access to postgress on my
> 7.1 system.
>
> I have added to postgresql.conf
>
> listen_addresses = '*'
>
> and to pg_hba.conf
>
> hostall all XXX.159.77.0/24 trust
>
> XX is a real number, and is the first octect of the network that this
> mahcine lives on
>
> Now, it appears that I alos need to add the -i, or -h flag to the
> invocation of postgress itslef, but I can't seem to get the rc.conf sysntax
> corrcet for that. What should this entry look like?
>

Stan,

I'm not aware of anything needed in /etc/rc.conf other than

postgresql_enable="YES"

I know the argument of which you speak.  Lately, I've been using just
UNIX domain sockets for access to my databases but I do remember
having to use this argument, if memory serves it's the "-i" option, to
enable access on TCP (basically, it tells the daemon to open TCP
sockets when starting).  I would, instead of looking for an rc.conf
entry, edit the script that starts the postgresql server in
/usr/local/etc/rc.d.  From the following link,
http://www.freebsddiary.org/postgresql.php, if you're using a recent
server, perhaps 8.x, the file will be named "postgresql."  If you're
using an older server, it will something like, "010.pgsql.sh."  Find
the appropriate line that starts the server and modify the arguments
there.

Hope this is of help to you.

Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: cannot compile linphone due to compile error message in gio-fam-backend

2008-12-31 Thread Yuri Pankov
On Thu, Jan 01, 2009 at 11:24:46AM +0800, Zhang Weiwu wrote:
> Hello.
> 
> I failed to compile linphone on my FreeBSD 6-1 (yes I know it's old but
> as it has been working well for the last several years I got no motivate
> to upgrade it unless have to). The last error message says:
> 
> [from gio-fam-backend ]:
> 
> cannot find -lgio-2.0


Check 20080323 entry in /usr/ports/UPDATING.


HTH,
Yuri
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Last q of '08...

2008-12-31 Thread andrew clarke
On Thu 2009-01-01 01:03:12 UTC+, Bruce Cran (br...@cran.org.uk) wrote:

> > is there a C-beauitful//reformatter in ports?  need one Badly!!
> 
> It's not in ports, but /usr/bin/indent reformats C code.

I prefer the GNU version.  devel/gindent in ports.

$ cat ~/.indent.pro
-kr
-bl
-bli0
-bls
-i4
-ts1
-nce
-ncs
-fca
-nfc1
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"