Re: php problems

2013-08-06 Thread Lars Eighner

On Mon, 5 Aug 2013, Mark Moellering wrote:


I tried a simple hello world type program
the actual code is :
?php
echo test
?
and the output was;

testsegmentation fault


First, try it with clean code: put the ; after the command and stop closing
the ?php tag at the end of the file.




The system is FreeBSD 8.2 and php 5.3

If anyone has any idea of what changes might have been made that could cause 
this, please let me know.  My other thought was to try reinstalling / 
upgrading php.


Thanks in advance

Mark Moellering
___
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




--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

___
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


Doc

2013-08-06 Thread Barbaraann Coleman
Doc
___
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: php problems

2013-08-06 Thread Frank Leonhardt

On 06/08/2013 15:21, Lars Eighner wrote:

On Mon, 5 Aug 2013, Mark Moellering wrote:


I tried a simple hello world type program
the actual code is :
?php
echo test
?
and the output was;

testsegmentation fault


First, try it with clean code: put the ; after the command and stop 
closing

the ?php tag at the end of the file.



Actually that should work and does work. I'm in the happy position of 
being able to recreate (but without the fault):


%php test.php
test
%php --version
PHP 5.3.6 with Suhosin-Patch (cli) (built: Jul 27 2011 20:41:21)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
%uname -v
FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 
r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC

%cat test.php
?php
echo test
?

%php test.php
test
%

So what you're should doing should work. I should try recompiling and 
reinstalling PHP as a first step, unless you have reasons you don't want 
to do that. Email me directly if you want to cross-check config files 
and so on on what may be a very similar environment.


Regards, Frank.


___
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: php problems

2013-08-06 Thread Frank Leonhardt

On 06/08/2013 15:21, Lars Eighner wrote:

On Mon, 5 Aug 2013, Mark Moellering wrote:


I tried a simple hello world type program
the actual code is :
?php
echo test
?
and the output was;

testsegmentation fault


First, try it with clean code: put the ; after the command and stop 
closing

the ?php tag at the end of the file.



Actually that should work and does work. I'm in the happy position of 
being able to recreate (but without the fault):


%php test.php
test
%php --version
PHP 5.3.6 with Suhosin-Patch (cli) (built: Jul 27 2011 20:41:21)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
%uname -v
FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 
r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC

%cat test.php
?php
echo test
?

%php test.php
test
%

So what you're should doing should work. I should try recompiling and 
reinstalling PHP as a first step, unless you have reasons you don't want 
to do that. Email me directly if you want to cross-check config files 
and so on on what may be a very similar environment.


Regards, Frank.


___
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: php problems

2013-08-06 Thread Patrick Lamaiziere
Le Mon, 05 Aug 2013 23:33:08 -0400,
Mark Moellering m...@msen.com a écrit :

 I discovered that all php scripts now generate a seg fault.
 
 I tried a simple hello world type program
 the actual code is :
 ?php
 echo test
 ?
 and the output was;
 
 testsegmentation fault
 
 The system is FreeBSD 8.2 and php 5.3
 
 If anyone has any idea of what changes might have been made that
 could cause this, please let me know.  My other thought was to try 
 reinstalling / upgrading php.

That could be a problem with the extensions order in php.ini 
(search google php + crash + freebsd)

There is a script to fix the order, I have not tried it. 
http://people.freebsd.org/~ohauer/scripts/fixphpextorder.sh

Regards.
___
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: php problems

2013-08-06 Thread mikel king

On Aug 5, 2013, at 11:33 PM, Mark Moellering m...@msen.com wrote:

 A few years ago (2011) I set up an email system for a small internet based 
 company.  I used postfix with a mysql backend for virtual accounts.  I also 
 set up apache to test a php based webmail front-end.
 I set up several php scripts that would run from cron that would query a 
 database and look for new email account requests and then do a variety of 
 tasks to get everything set up properly.
 After I left, someone else made modifications to the system and things 
 stopped working properly.  A few months ago I was asked to try and get things 
 working again.
 
 I discovered that all php scripts now generate a seg fault.
 
 I tried a simple hello world type program
 the actual code is :
 ?php
 echo test
 ?
 and the output was;
 
 testsegmentation fault
 
 The system is FreeBSD 8.2 and php 5.3
 
 If anyone has any idea of what changes might have been made that could cause 
 this, please let me know.  My other thought was to try reinstalling / 
 upgrading php.
 
 Thanks in advance
 
 Mark Moellering
 ___
 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


Hey Mark,

Do you have a backup/alternative system you can test the code on? In lieu of 
that I would seriously consider rebuilding php. After you get it working it 
would be worth also considering upgrading to 55.

Also make a complete revision backup of the code and config files once you get 
it working, this will save a lot of hair if the company in question hires 
someone else to tweak things in the future… 

Cheers,
Mikel
___
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: .sh script code to determine IPv4 or IPv6

2013-08-06 Thread markham breitbach
On 13-08-03 8:04 AM, Teske, Devin wrote:
 Actually, there's /usr/share/bsdconfig/media/tcpip.subr


I don't seem to have that (FreeBSD 8.3-RELEASE).  Where would I get that from? 


___
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


How to Fix Port Audit showing ports not installed on a system

2013-08-06 Thread dweimer
I have a system that I just recently setup port audit, after realizing I 
forgot to install it on the machine.  The problem is that it is finding 
vulnerabilities in several ports that are not installed on the  system.  
These may have been installed at   one  point and removed.  Firefox is 
one of the ones listed, I know that it was on the system previously, but 
was removed a few months back.  portmaster -l and pkg info don't list it 
as installed,  but port audit shows: firefox-20.0,1.  Where would 
portaudit be picking up these ports from?  Is there anyway to reset its  
database?


--
Thanks,
   Dean E. Weimer
   http://www.dweimer.net/
___
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: .sh script code to determine IPv4 or IPv6

2013-08-06 Thread Polytropon
On Tue, 06 Aug 2013 10:20:05 -0600, markham breitbach wrote:
 On 13-08-03 8:04 AM, Teske, Devin wrote:
  Actually, there's /usr/share/bsdconfig/media/tcpip.subr
 
 
 I don't seem to have that (FreeBSD 8.3-RELEASE). 
 Where would I get that from? 

Maybe from sysutils/bsdconfig in the ports collection?
I have not checked if this specific subroutine file is
part of the port...


-- 
Polytropon
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: .sh script code to determine IPv4 or IPv6

2013-08-06 Thread Teske, Devin

On Aug 6, 2013, at 9:20 AM, markham breitbach wrote:

 On 13-08-03 8:04 AM, Teske, Devin wrote:
 Actually, there's /usr/share/bsdconfig/media/tcpip.subr
 
 
 I don't seem to have that (FreeBSD 8.3-RELEASE).  Where would I get that 
 from? 
 
 


It's in up-coming 9.2-R (and present 9.2-* snapshots leading up to 9.2-R).

You can snatch a copy of the code by installing sysutils/bsdconfig from the 
ports tree.

However, the port is marked (correctly-so) as requiring FreeBSD 9.0 or higher.

But don't let that stop you... the only reason it's marked as requiring 9.0 is 
because 9.0 brings in a new dialog(1) implementation.

However, if you're interested in the TCP validation code... that will work on 
any release. It's only the dialog(1) stuff that won't work on 8.x or older.

Luckily, it'll be pretty easy to avoid the land-mines. All functions starting 
with f_dialog_* should be avoided on 8.x or older.

So here's the latest package to download (in case you're unsuccessful in 
getting the port to behave -- afterall, it may just balk at you for not running 
9.x):

fetch 
http://druidbsd.sourceforge.net/download/bsdconfig/bsdconfig-0.9.0.tbz

That's a FreeBSD package. You can download it and say (as root):

pkg_add bsdconfig-0.9.0.tbz

Just be forewarned (again), on 8.x or older, executing bsdconfig will have 
widely unexpected results (it won't eat your homework, but it may or may not 
actually *run*).

However, doing the above 2-step (fetch  pkg_add) will bring in the files 
you're looking for and give you the functionality you're wanting on 8.x.
-- 
Devin

P.S. I really *can't* make the dialog(1) stuff backward compatible with 8.x's 
(or any older's) version of dialog(1). The new `cdialog' variant that was 
brought into 9.x to replace the aging dialog(1)/libdialog pair is has a *lot* 
of functionality that I depend on. It could potentially take months to make 
bsdconfig *fully* backward compatible with 8.x. For now, it's safe if you just 
use the libraries and avoid any/all functions beginning with f_dialog_.

_
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
___
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: .sh script code to determine IPv4 or IPv6

2013-08-06 Thread Teske, Devin

On Aug 6, 2013, at 9:43 AM, Polytropon wrote:

 On Tue, 06 Aug 2013 10:20:05 -0600, markham breitbach wrote:
 On 13-08-03 8:04 AM, Teske, Devin wrote:
 Actually, there's /usr/share/bsdconfig/media/tcpip.subr
 
 
 I don't seem to have that (FreeBSD 8.3-RELEASE). 
 Where would I get that from? 
 
 Maybe from sysutils/bsdconfig in the ports collection?
 I have not checked if this specific subroutine file is
 part of the port...
 

Ah, Polytropon beat me ;D

And yes... to clarify... the port is a mirror of what's in 9.x base. (however, 
see my recent notes in a separate reply; TL;DR: port is 9.x only; proceed only 
if you know you don't care about the dialog(1) aspects of the library code).
-- 
Devin


 
 -- 
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...

_
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
___
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: How to Fix Port Audit showing ports not installed on a system

2013-08-06 Thread Paul Macdonald

On 06/08/2013 17:25, dweimer wrote:
I have a system that I just recently setup port audit, after realizing 
I forgot to install it on the machine.  The problem is that it is 
finding vulnerabilities in several ports that are not installed on 
the  system.  These may have been installed at   one  point and 
removed.  Firefox is one of the ones listed, I know that it was on the 
system previously, but was removed a few months back.  portmaster -l 
and pkg info don't list it as installed,  but port audit shows: 
firefox-20.0,1.  Where would portaudit be picking up these ports 
from?  Is there anyway to reset its  database?



rm -R /var/db/portaudit/

then run portaudit -Fda


--
-
Paul Macdonald
IFDNRG Ltd
Web and video hosting
-
t: 0131 5548070
m: 07970339546
e: p...@ifdnrg.com
w: http://www.ifdnrg.com
-
IFDNRG
40 Maritime Street
Edinburgh
EH6 6SA

High Specification Dedicated Servers from £100.00pm


___
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


Alert! Broken Link on blazej.org

2013-08-06 Thread Nicole Stoff

Hello,

My name is Nicole and I'm in the middle of a project to construct a 
medium-high investment portfolio. My research has taken me to a number 
of different sites, yours being one of them. I know that a lot of work 
goes into maintaining a website, so I want you to know that I appreciate 
all your time and effort!


I also wanted to let you know that while I was on your site (more 
specifically, on this page: (www.blazej.org/news/1999/press.html), I 
found a broken resource link. When I tried to access the 
http://cbs.marketwatch.com resource, I was taken to a page that couldn't 
be found. I thought you might want to update since MarketWatch is such 
an influential investing tool. So, I did a quick search and discovered 
that the page is now located here: http://www.marketwatch.com


I also have a resource of my own to share for your website. 
Investing.Answers.com http://investing.answers.com/ is an informative, 
comprehensive guide containing articles on a variety of investment 
related topics that I think your visitors will find useful. Check it out 
and let me know what you think! Investing.Answers.com 
http://investing.answers.com/ is yours to add if you agree that it's a 
good addition!


Thanks again for providing great resources!

Best,
Nicole
?Research Assistant
?LinkedIn http://www.linkedin.com/pub/nicole-stoff/17/142/8b5

Answers.com http://www.answers.com?
989 Avenue of the Americas, 17th Floor?
New York, NY 10018

(Your e-mail address was found on blazej.org. If you received this 
e-mail in error or you would no longer like to receive e-mails from us 
about broken links on your site please let us know and we will remove 
you from our e-mail address list. We do not mean to bother you and are 
sorry for any inconveniences we may have caused.)

___
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: .sh script code to determine IPv4 or IPv6

2013-08-06 Thread Polytropon
On Tue, 6 Aug 2013 16:50:37 +, Teske, Devin wrote:
 And yes... to clarify... the port is a mirror of what's in 9.x base.
 (however, see my recent notes in a separate reply; TL;DR: port is
 9.x only; proceed only if you know you don't care about the dialog(1)
 aspects of the library code).

I think it should be relatively unproblematic to fetch the
port and only use the subroutines as is, even if it's just
for educational purposes. :-)



-- 
Polytropon
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: .sh script code to determine IPv4 or IPv6

2013-08-06 Thread Teske, Devin

On Aug 6, 2013, at 10:39 AM, Polytropon wrote:

 On Tue, 6 Aug 2013 16:50:37 +, Teske, Devin wrote:
 And yes... to clarify... the port is a mirror of what's in 9.x base.
 (however, see my recent notes in a separate reply; TL;DR: port is
 9.x only; proceed only if you know you don't care about the dialog(1)
 aspects of the library code).
 
 I think it should be relatively unproblematic to fetch the
 port and only use the subroutines as is, even if it's just
 for educational purposes. :-)
 

Right.

Just a warning though, what is fetched in ports is actually in the format of 
what's in HEAD (read: not in the format of what gets installed).

For example, there are things that end up in /usr/share/bsdconfig that aren't 
in the bsdconfig/share/ source directory (e.g., all the stuff under 
/usr/share/bsdconfig/networking is under the source directory 
bsdconfig/networking/share). This may be counter-intuitive from an 
exploratory view if looking at the source directory (what's fetched by ports).

And since the port Makefile will prevent you from turning that fetch'ed source 
directory into an installed software (putting things where they end up), it 
might be easier to grab this pre-built package that I stashed...

http://druidbsd.sf.net/download/bsdconfig/bsdconfig-0.9.0.tbz

Because then you can say pkg_add and everything will be in the right place 
(/usr/share/bsdconfig/ will be flush with everything and you won't have to 
hunt-and-peck through the source with a maintainers view).
-- 
Devin

_
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
___
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: .sh script code to determine IPv4 or IPv6

2013-08-06 Thread markham breitbach
I have some scripts that do fairly crude IPv4/6 validation testing. It is 
generally
assumed that the input is coming from someone who knows what they are doing, 
but even the
best of us have fat fingers sometimes :) Having standardized routines for 
something like
this is great!

Thanks,
-Markham

On 13-08-06 11:45 AM, Teske, Devin wrote:
 On Aug 6, 2013, at 10:39 AM, Polytropon wrote:

 On Tue, 6 Aug 2013 16:50:37 +, Teske, Devin wrote:
 And yes... to clarify... the port is a mirror of what's in 9.x base.
 (however, see my recent notes in a separate reply; TL;DR: port is
 9.x only; proceed only if you know you don't care about the dialog(1)
 aspects of the library code).
 I think it should be relatively unproblematic to fetch the
 port and only use the subroutines as is, even if it's just
 for educational purposes. :-)

 Right.

 Just a warning though, what is fetched in ports is actually in the format 
 of what's in HEAD (read: not in the format of what gets installed).

 For example, there are things that end up in /usr/share/bsdconfig that aren't 
 in the bsdconfig/share/ source directory (e.g., all the stuff under 
 /usr/share/bsdconfig/networking is under the source directory 
 bsdconfig/networking/share). This may be counter-intuitive from an 
 exploratory view if looking at the source directory (what's fetched by 
 ports).

 And since the port Makefile will prevent you from turning that fetch'ed 
 source directory into an installed software (putting things where they end 
 up), it might be easier to grab this pre-built package that I stashed...

 http://druidbsd.sf.net/download/bsdconfig/bsdconfig-0.9.0.tbz

 Because then you can say pkg_add and everything will be in the right place 
 (/usr/share/bsdconfig/ will be flush with everything and you won't have to 
 hunt-and-peck through the source with a maintainers view).

___
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: How to Fix Port Audit showing ports not installed on a system

2013-08-06 Thread dweimer

On 08/06/2013 11:58 am, Paul Macdonald wrote:

On 06/08/2013 17:25, dweimer wrote:
I have a system that I just recently setup port audit, after realizing 
I forgot to install it on the machine.  The problem is that it is 
finding vulnerabilities in several ports that are not installed on the 
 system.  These may have been installed at   one  point and removed.  
Firefox is one of the ones listed, I know that it was on the system 
previously, but was removed a few months back.  portmaster -l and pkg 
info don't list it as installed,  but port audit shows: 
firefox-20.0,1.  Where would portaudit be picking up these ports from? 
 Is there anyway to reset its  database?



rm -R /var/db/portaudit/

then run portaudit -Fda


--


Already tried that, but that data only contains the list of known 
vulnerabilities, not the installed ports/packages.  Perhaps, its not 
using pkgng I discovered if I do a pkg info command I get the correct 
list of installed ports and packages.  If I do a pkg_info I get a much 
larger list showing everything as corrupted.


...
pkg_info: the package info for package 'fftw3-3.3.3_1' is corrupt
pkg_info: the package info for package 'filelight-4.10.1' is corrupt
pkg_info: the package info for package 'firefox-20.0,1' is corrupt
pkg_info: the package info for package 'fixesproto-5.0' is corrupt
pkg_info: the package info for package 'flac-1.2.1_3' is corrupt
pkg_info: the package info for package 'flex-2.5.37_1' is corrupt
...

Of course I have WITH_PKGNG=YES in the make.conf, and I believe that 
has been there ever since the server was built.  Is my best option to 
get the correct list from pkg info use rm -r /var/db/pkg/* to clear 
everything out and then reinstall all of the ports?


--
Thanks,
   Dean E. Weimer
   http://www.dweimer.net/
___
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


Update your profile

2013-08-06 Thread ImporterDeals.com


   Update Contact Details


   Hello!
   You can update your profile by clicking the below link.


   [1]Update your profile.

   If the above link is not working, copy and paste the below link in your
   browser.

   [2]http://traders.maillist-manage.com/up.zc?od=11287eca43f037c=171fe0c
   086186b5cId=171fe0c0847e434key=1186b84d4414b5a

   Thank you,
   ImporterDeals.com


This email was sent to [3]freebsd-questions@freebsd.org by
 [4]ImporterDeals.com using Zoho Campaigns.

  This is an auto generated mail. Please do not reply to this mail.

If you are receiving this email continuously and if you think this is
 SPAM, please report to [5]ab...@zohocampaigns.com.

References

   1. 
http://traders.maillist-manage.com/up.zc?od=11287eca43f037c=171fe0c086186b5cId=171fe0c0847e434key=1186b84d4414b5a
   2. 
http://traders.maillist-manage.com/up.zc?od=11287eca43f037c=171fe0c086186b5cId=171fe0c0847e434key=1186b84d4414b5a
   3. mailto:freebsd-questions@freebsd.org
   4. file://localhost/tmp/ImporterDeals.com
   5. mailto:ab...@zohocampaigns.com
___
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: How to Fix Port Audit showing ports not installed on a system

2013-08-06 Thread Matthew Seaman
On 06/08/2013 19:23, dweimer wrote:
 Of course I have WITH_PKGNG=YES in the make.conf, and I believe that
 has been there ever since the server was built.  Is my best option to
 get the correct list from pkg info use rm -r /var/db/pkg/* to clear
 everything out and then reinstall all of the ports?

If you've had WITH_PKGNG=YES ever since the server was built then you
shouldn't have any of the old-style pkg_tools entries in /var/db/pkg.

Unless, that is, you've been using pkg_add(1) directly.  Don't do that.
 You just end up with a complete mess.  Remember folks -- pkgng is like
getting married.  Once you go with pkgng, you're not meant to dally with
other package tools, but to stay faithful to pkgng from henceforth.

I hope you've got the old-style pkg_tools per-package subdirectories in
/var/db/pkg because either (i) you used to use pkg_tools and you ran
pkg2ng to convert or (ii) you've been using portmaster, in which case
those sub-directories only /look/ like the result of what pkg_tools
generates, but are really just a place for portmaster to stash a few things.

If those sub-directories contain files called thing like +CONTENTS or
+COMMENT or other names beginning with '+' then you do have a messed up
mixture of old pkg_tools and pkgng.

First: remove all the subdirectories but *not* local.sqlite or
repo.sqlite -- those are rather important bits of pkgng.
Then you can force a reinstall of all packages by

   pkg upgrade -f

Obviusly, you'll need pkg(8) configured to use a repo with all the
appropriate packages available.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




signature.asc
Description: OpenPGP digital signature


Setup HP Laserjet 1120m over network with LPD

2013-08-06 Thread Juris Kaminskis
after several trials and errors and reading through FreeBSD handbook I am
at dead end on how to proceed further, hope someone can guide me.

my /etc/printcap entry:
---
HP:\
:rm=192.168.1.105:sd=/var/spool/hp:lf=/var/log/lpd-errs:\
:if=/usr/local/libexec/hp-network:
---

my /usr/local/libexec/hp-network entry:
---
#!/bin/sh
#
# hp-network - Text filter for HP printer `NPI2B483C' listening
# on port 9100. Installed in /usr/local/libexec/hp-network
#
exec /usr/libexec/lpr/lpf $@ | /usr/local/libexec/netprint 192.168.1.105
9100
---

my /usr/local/libexec/netprint entry:
---
!/usr/bin/perl -w
#
# netprint - Text filter for printer attached to network
# Installed in /usr/local/libexec/netprint
#

$#ARGV eq 1 || die Usage: $0 printer-hostname port-number;

$printer_host = $ARGV[0];
$printer_port = $ARGV[1];
use Socket;

$protocol = getprotobyname('tcp');
$address = inet_aton(192.168.1.105);
$sockaddr = sockaddr_in($printer_port, $address);

socket(PRINTER, PF_INET, SOCK_STREAM, $protocol)
  || die Can't create TCP/IP stream socket: $!;
connect(PRINTER, $sockaddr) || die Can't contact $printer_host: $!;

while (STDIN) { print PRINTER; } exit 0;
---

Now my /var/log/lpd-errs is empty and in spool directory I have following
after running command lptest 20 5 | lpr -P HP :

content of /var/spool/hp
total 16
-rw-r--r-- 1 root juris 4 Aug 6 21:55 .seq
-rw-rw 1 daemon juris 70 Aug 6 21:55 cfA014laptops
-rw-rw 1 root juris 605 Aug 6 21:55 dfA014laptops
-rw-rw-r-- 1 root juris 0 Aug 6 21:55 errs.ukc0YLC
-rw-rw-r-- 1 root juris 5 Aug 6 21:55 lock

My printer is not responding in any way, it keeps on flashing Ready. it is
on the internal network having ip 192.168.1.105

thanks
Juris
___
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: How to Fix Port Audit showing ports not installed on a system

2013-08-06 Thread dweimer

On 08/06/2013 2:55 pm, Matthew Seaman wrote:

On 06/08/2013 19:23, dweimer wrote:

Of course I have WITH_PKGNG=YES in the make.conf, and I believe that
has been there ever since the server was built.  Is my best option to
get the correct list from pkg info use rm -r /var/db/pkg/* to clear
everything out and then reinstall all of the ports?


If you've had WITH_PKGNG=YES ever since the server was built then you
shouldn't have any of the old-style pkg_tools entries in /var/db/pkg.

Unless, that is, you've been using pkg_add(1) directly.  Don't do that.
 You just end up with a complete mess.  Remember folks -- pkgng is like
getting married.  Once you go with pkgng, you're not meant to dally 
with

other package tools, but to stay faithful to pkgng from henceforth.

I hope you've got the old-style pkg_tools per-package subdirectories in
/var/db/pkg because either (i) you used to use pkg_tools and you ran
pkg2ng to convert or (ii) you've been using portmaster, in which case
those sub-directories only /look/ like the result of what pkg_tools
generates, but are really just a place for portmaster to stash a few 
things.


If those sub-directories contain files called thing like +CONTENTS or
+COMMENT or other names beginning with '+' then you do have a messed up
mixture of old pkg_tools and pkgng.

First: remove all the subdirectories but *not* local.sqlite or
repo.sqlite -- those are rather important bits of pkgng.
Then you can force a reinstall of all packages by

   pkg upgrade -f

Obviusly, you'll need pkg(8) configured to use a repo with all the
appropriate packages available.

Cheers,

Matthew


Thanks for the info, I have never used pkg_add, everything has been 
installed via ports and portmaster, but it is possible that some ports 
were installed prior to having the with pkgng added in make.conf, and 
that something happened in the pk2ng conversion.  I thought I had built 
this machine after I had been running with pkgng, but perhaps this one 
was built right as I was switching over to it.  I had originally built 
this machine with Xorg and KDE to use virtual box GUI, and once I became 
comfortable with the commands, switched to vboxheadless and removed all 
the GUI components.  Which is where all the extra ports that were 
removed came from.


I have removed the sub directories, now portaudit doesn't show any 
vulnerabilities in non existent ports, pkg info displays the correct 
installed packages, and portmaster -l matches the installed ports that 
pkg info displays.


--
Thanks,
   Dean E. Weimer
   http://www.dweimer.net/
___
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: Setup HP Laserjet 1120m over network with LPD

2013-08-06 Thread Warren Block

On Tue, 6 Aug 2013, Juris Kaminskis wrote:


after several trials and errors and reading through FreeBSD handbook I am
at dead end on how to proceed further, hope someone can guide me.


Are you sure about that model number?  I can't find specs for a Laserjet 
1120M.  There is a Laserjet M1120.  It's a Winprinter.


The file entries are confusing and use some non-base programs.  You may 
be mixing the base system's lpr/lpd with the CUPS versions of the same 
names from ports.


For plain lpr/lpd, I have this article:
http://www.wonkity.com/~wblock/docs/html/lpdprinting.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


Terrible disk performance with LSI / FreeBSD 9.2-RC1

2013-08-06 Thread J David
We have a machine running 9.2-RC1 that's getting terrible disk I/O
performance.  Its performance has always been pretty bad, but it
didn't really become clear how bad until we did a zpool replace on one
of the drives and realized it was going to take 3 weeks to rebuild a
1TB drive.

The hardware specs are:
- 2 x Xeon L5420
- 32 GiB RAM
- LSI Logic SAS 1068E
- 2 x 32GB SSD's
- 6 x 1TB Western Digital RE3 7200RPM SATA

The LSI controller has the most recent firmware I'm aware of
(6.36.00.00 / 1.33.00.00 dated 2011.08.24), is in IT mode, and appears
to be working fine:

mpt0 Adapter:
   Board Name: USASLP-L8i
   Board Assembly: USASLP-L8i
Chip Name: C1068E
Chip Revision: B3
  RAID Levels: none

mpt0 Configuration: 0 volumes, 8 drives
drive da0 (30G) ONLINE FTM32GL25H 10 SATA
drive da1 (29G) ONLINE SSDSA2SH032G1GN 8860 SATA
drive da2 (931G) ONLINE WDC WD1002FBYS-0 0C05 SATA
drive da3 (931G) ONLINE WDC WD1002FBYS-0 0C05 SATA
drive da4 (931G) ONLINE WDC WD1002FBYS-0 0C05 SATA
drive da5 (931G) ONLINE WDC WD1002FBYS-0 0C05 SATA
drive da6 (931G) ONLINE WDC WD1002FBYS-0 0C05 SATA
drive da7 (931G) ONLINE WDC WD1002FBYS-0 0C05 SATA

The eight drives are configured as ZIL, L2ARC on SSD and a six drive
raidz2 on the spinning disks.

We did a ZFS replace on the last drive in the line, and the resilver
is proceeding at less than 800k/sec.

extended device statistics
device r/s   w/skr/skw/s qlen svc_t  %b
da00.0   0.0 0.0 0.10   0.9   0
da10.0   8.2 0.019.90   0.1   0
da2  125.6  23.0   768.240.54  33.0  88
da3  126.6  23.1   769.041.34  32.3  89
da4  126.0  24.0   768.542.74  32.1  88
da5  125.9  22.0   768.240.14  31.6  87
da6  124.0  22.0   766.639.95  31.4  84
da70.0 136.9 0.0   801.30   0.6   4

The system has plenty of free RAM, is 99.7% idle, has nothing else
going on, and runs like a one-legged dog.

There are no error messages or any sign of a problem anywhere, other
than the really terrible performance.  (When not rebuilding, it does
light NFS duty.  That performance is similarly bad, but has never
really mattered.)

Similar systems running Solaris put out 10x these numbers claiming 30%
busy instead of 90% busy.

Does anyone have any suggestions for how I could troubleshoot this
further?  At this point, I'm kind of at a loss as to where to go from
here.  My goal is to try to phase out the Solaris machines, but this
is kind of a roadblock.

Thanks for any advice!
___
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: Setup HP Laserjet 1120m over network with LPD

2013-08-06 Thread Juris Kaminskis
Model number: HP LaserJet M1120n MFP

I try your how-to in few days as it seems I need to redo whole config. I
will post my results, thanks
2013. gada 6. aug. 23:17 Warren Block wbl...@wonkity.com rakstīja:

 On Tue, 6 Aug 2013, Juris Kaminskis wrote:

  after several trials and errors and reading through FreeBSD handbook I am
 at dead end on how to proceed further, hope someone can guide me.


 Are you sure about that model number?  I can't find specs for a Laserjet
 1120M.  There is a Laserjet M1120.  It's a Winprinter.

 The file entries are confusing and use some non-base programs.  You may be
 mixing the base system's lpr/lpd with the CUPS versions of the same names
 from ports.

 For plain lpr/lpd, I have this article:
 http://www.wonkity.com/~**wblock/docs/html/lpdprinting.**htmlhttp://www.wonkity.com/~wblock/docs/html/lpdprinting.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


Re: Setup HP Laserjet 1120m over network with LPD

2013-08-06 Thread Warren Block

On Wed, 7 Aug 2013, Juris Kaminskis wrote:


2013. gada 6. aug. 23:17 Warren Block wbl...@wonkity.com rakst?ja:
  On Tue, 6 Aug 2013, Juris Kaminskis wrote:

after several trials and errors and reading through FreeBSD 
handbook I am
at dead end on how to proceed further, hope someone can guide me.


  Are you sure about that model number?  I can't find specs for a Laserjet 
1120M.  There is a Laserjet M1120.  It's a Winprinter.

  The file entries are confusing and use some non-base programs.  You may 
be mixing the base system's lpr/lpd with the CUPS versions of the same names 
from ports.

  For plain lpr/lpd, I have this article:
  http://www.wonkity.com/~wblock/docs/html/lpdprinting.html



Model number: HP LaserJet M1120n MFP

I try your how-to in few days as it seems I need to redo whole config. I will 
post my results, thanks


The Laserjet M1120 is a winprinter, which means it does not understand 
plain text or common PDLs like PCL or PostScript.  There is 
print/foo2zjs in ports, but it's meant to be used with CUPS.  I have not 
tested it.___
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: Setup HP Laserjet 1120m over network with LPD

2013-08-06 Thread Polytropon
On Tue, 6 Aug 2013 22:57:27 -0600 (MDT), Warren Block wrote:
 On Wed, 7 Aug 2013, Juris Kaminskis wrote:
 
  2013. gada 6. aug. 23:17 Warren Block wbl...@wonkity.com rakst?ja:
On Tue, 6 Aug 2013, Juris Kaminskis wrote:
 
  after several trials and errors and reading through FreeBSD 
  handbook I am
  at dead end on how to proceed further, hope someone can guide 
  me.
  
 
Are you sure about that model number?  I can't find specs for a 
  Laserjet 1120M.  There is a Laserjet M1120.  It's a Winprinter.
 
The file entries are confusing and use some non-base programs.  You 
  may be mixing the base system's lpr/lpd with the CUPS versions of the same 
  names from ports.
 
For plain lpr/lpd, I have this article:
http://www.wonkity.com/~wblock/docs/html/lpdprinting.html
 
  Model number: HP LaserJet M1120n MFP
  
  I try your how-to in few days as it seems I need to redo whole config. I 
  will post my results, thanks
 
 The Laserjet M1120 is a winprinter, which means it does not understand 
 plain text or common PDLs like PCL or PostScript.  There is 
 print/foo2zjs in ports, but it's meant to be used with CUPS.  I have not 
 tested it.

It seems that a HPLIP interface is available for this printer,
so it should probably work with CUPS and _maybe_ with the
normal means of printing (FreeBSD printer spooler plus a
printer filter that turns PS, the _default_ output language
for printing, into the specific non-standard language that
printer wants to be spoken to in).

http://hplipopensource.com/hplip-web/models/laserjet/hp_laserjet_m1120_mfp.html

http://foo2xqx.rkkda.com/

I'm using a similar approach for a terrible Samsung color
laserprinter (foo2qpdl-wrapper in my specific case) which
I could easily integrate with the already mentioned CUPS,
as well as the normal system's printer subsystem.

However, I also have not tested if it works for the M1120,
because I prefer to use printers that work, that's why I
don't own such a thing. :-)


-- 
Polytropon
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