Re: MFC 7840W under CUPS

2012-02-06 Thread Jerry
On Sun, 05 Feb 2012 21:21:59 +0100
Ouyang Xueyu articulated:

 Hello,
 
 I have Freebsd 8.2 and CUPS installed and try to print on my Brother 
 MFC 7840W printer. The printer is accessible by a static IP address,
 is configured in CUPS but everytime I only get blank pages when I'm
 trying to print.
 
 Does anybody know a solution for this behaviour?

I have the same problem with a different Brother printer. I have used
every PPD file I could fine including the one from new Win7 machine.

You did not state what program(s) you are attempting to print from. If
given the option, choose the LPR option in the menu. It works for me.

I have supplied every piece of information I could find on this problem
to the CUPS people without getting any useful results. It seems, and
this is just a guess -- but a good one in my opinion -- that it is a
FreeBSD phenomenon. Brother does supply driver setups for Linux but
that is about it.

Good luck, I just plan gave up. The time and trouble involved in
getting it to work was simply not worth the effort involved. By the
way, what CUPS version?

-- 
Jerry ♔

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__
A bird in the bush usually has a friend in there with him.
___
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


Add to vendors list

2012-02-06 Thread Matthijs Openneer

Dear Sir/Madam,

We are a dutch hosting company that specializes in FreeBSD (almost 
only). Formally know as Parc Productions, we now changed our name to 
Vellance.


With this we would like to be added to your vendor list overview: 
http://www.freebsd.org/commercial/isp.html


Could you please tell us what to do to make this happen.

With kind regards,

Matthijs
Sales manager at Vellance

--
Matthijs Openneer
matthijs.openn...@vellance.com

Vellance
Valkenburgerstraat 216
1011 ND Amsterdam

T:  +31 (0)20 489 24 55
F:  +31 (0)20 489 24 58
W:  http://www.vellance.com



De informatie m.b.t. deze email kan vertrouwelijk van aard zijn. Het is 
alleen bedoeld voor de geadresseerde van deze email. Wanneer u dit niet 
bent brengt u ons dan aub op de hoogte en verwijder dit document. Aan 
deze email kunnen geen rechten worden ontleend. Fouten en/of wijzigingen 
voorbehouden.

© Vellance B.V.

The information in this document is confidential. It is intended only 
for the use of the intended recipient of this mail. If you are not the 
intended recipient, please notify us and delete this document. No rights 
can be derived from this email. All rights reserved.

© Vellance B.V.
___
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: Add to vendors list

2012-02-06 Thread legolas
 With this we would like to be added to your vendor list overview:
 http://www.freebsd.org/commercial/isp.html

 Could you please tell us what to do to make this happen.

Submission information can be found on the top of that page:

For your convenience, we have divided our growing commercial listing into
several sections. If your company supports a FreeBSD-compatible product or
service that should be added to this page, please fill out a problem
report [http://www.freebsd.org/send-pr.html] for category www. Submissions
should be in HTML and a medium-sized paragraph in length.



___
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: MFC 7840W under CUPS

2012-02-06 Thread Da Rock

On 02/06/12 22:21, Jerry wrote:

On Sun, 05 Feb 2012 21:21:59 +0100
Ouyang Xueyu articulated:


Hello,

I have Freebsd 8.2 and CUPS installed and try to print on my Brother
MFC 7840W printer. The printer is accessible by a static IP address,
is configured in CUPS but everytime I only get blank pages when I'm
trying to print.

Does anybody know a solution for this behaviour?

I have the same problem with a different Brother printer. I have used
every PPD file I could fine including the one from new Win7 machine.

You did not state what program(s) you are attempting to print from. If
given the option, choose the LPR option in the menu. It works for me.

I have supplied every piece of information I could find on this problem
to the CUPS people without getting any useful results. It seems, and
this is just a guess -- but a good one in my opinion -- that it is a
FreeBSD phenomenon. Brother does supply driver setups for Linux but
that is about it.

Good luck, I just plan gave up. The time and trouble involved in
getting it to work was simply not worth the effort involved. By the
way, what CUPS version?

If you can supply the debug info then we can have a crack at what 
exactly is happening.


Personally I come from the print industry and have significant 
experience with printers and drivers (and other factors), I'm sure there 
are others in the same position. The more information there is 
available, the more eyes on it, and the sooner a fix could come along.

___
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: Add to vendors list

2012-02-06 Thread Steve Bertrand

On 2012.02.06 04:02, Matthijs Openneer wrote:


With this we would like to be added to your vendor list overview:
http://www.freebsd.org/commercial/isp.html

Could you please tell us what to do to make this happen.


As it states within the 2nd paragraph on that page, fill out a PR (the 
'problem report' link is within the paragraph) and select 'www' as the 
category.


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


pxeboot.bs and vlan tagging

2012-02-06 Thread Rick Miller
Hi All,

We are PXE booting into FreeBSD 8.2-RELEASE to perform system builds.
The pxeboot.bs file was recompiled with TFTP support.  8.2-RELEASE
builds were working fine until we attempted a build on bare metal in
an environment that utilizes vlan tagging.  When the system loaded the
pxeboot.bs file it prompted that a disk containing the mfsroot.gz be
inserted.

I have a couple of questions that I am hoping I can use to glean a
proper solution:

1) Does the 8.2-RELEASE pxeboot.bs source code support use of vlan tagging?
2) Can I get vlan tagging support with newer 8.2 code?
3) Will the 9.0-RELEASE code have better support for vlan tagging and
can I use it to build an 8.2-RELEASE system?

-- 
Take care
Rick Miller
___
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: pxeboot.bs and vlan tagging

2012-02-06 Thread Erik Nørgaard

On 06/02/2012 16:35, Rick Miller wrote:


We are PXE booting into FreeBSD 8.2-RELEASE to perform system builds.
The pxeboot.bs file was recompiled with TFTP support.  8.2-RELEASE
builds were working fine until we attempted a build on bare metal in
an environment that utilizes vlan tagging.  When the system loaded the
pxeboot.bs file it prompted that a disk containing the mfsroot.gz be
inserted.


Hi, a few questions:

1) do you use tftp or nfs? if you built pxeboot with tftp, did you also 
build the kernel with tftp?


I assume that you want to use tftp since you fetch a memory file system 
as root device.


2) do you fetch the kernel successfully?

When using tftp, The kernel and kernel modules are fetched before the 
memory file system, so do pxeboot fetch the kernel but not the mfsroot?


The reason for these questions is that your problem may be with the 
kernel and kernel modules and not pxeboot. Just to be sure.



I have a couple of questions that I am hoping I can use to glean a
proper solution:

1) Does the 8.2-RELEASE pxeboot.bs source code support use of vlan tagging?
2) Can I get vlan tagging support with newer 8.2 code?
3) Will the 9.0-RELEASE code have better support for vlan tagging and
can I use it to build an 8.2-RELEASE system?


I did a grep in the source and it seems there is a kernel module for 
vlan tagging, if you load the kernel succesfully it may be a question of 
getting that module loaded as well, or rebuild the kernel. But I can't 
give a better answer.


My best guess is not to rely on vlan tagging unless you can configure 
that on the hardware. Or, normally there is a default vlan that 
corresponds to no tag. If you can configure that for pxe and use tagging 
for the other networks.


BR, Erik

--
M: +34 666 334 818
T: +34 915 211 157
___
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: USB 3 / eSATA support

2012-02-06 Thread RW
On Fri, 03 Feb 2012 22:49:11 -0500
Dean E. Weimer wrote:

 On 03.02.2012 21:36, RW wrote:

  Just in case you aren't aware, you don't necessarily need an eSATA
  card. You can get eSATA back-plates that plug into spare SATA
  connections on your motherboard.
  ___
  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
 
 That the board has plenty of, how does that work with removing the 
 drives?
 Does it require a reboot?


AFAIK  there's no difference between SATA and eSATA above the physical
layer. It's just cabling and some minor voltage range changes (which
are designed to work SATA to eSATA, or eSATA to eSATA).

Hot-swapping is a SATA feature supported under  AHCI. You probably
need to switch this on in the BIOS. Some legacy OSs don't support it,
so IDE is usually the default.
___
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: pxeboot.bs and vlan tagging

2012-02-06 Thread Rick Miller
See my responses inline...

On Mon, Feb 6, 2012 at 10:54 AM, Erik Nørgaard norga...@locolomo.org wrote:
 On 06/02/2012 16:35, Rick Miller wrote:

 We are PXE booting into FreeBSD 8.2-RELEASE to perform system builds.
 The pxeboot.bs file was recompiled with TFTP support.  8.2-RELEASE
 builds were working fine until we attempted a build on bare metal in
 an environment that utilizes vlan tagging.  When the system loaded the
 pxeboot.bs file it prompted that a disk containing the mfsroot.gz be
 inserted.


 Hi, a few questions:

 1) do you use tftp or nfs? if you built pxeboot with tftp, did you also
 build the kernel with tftp?

pxeboot.bs was compiled with TFTP enabled.  We made 3 modifications to
the kernel not related to tftp.  One change was to the NIC source code
to improve small packet performance, we compiled a custom kernel that
disabled FLOWTABLE and enabled ROUTETABLES.

TFTP is the intent for PXE, we did not want to rely on NFS.  For the
remainder of the install, we've written code into sysinstall to
support pure HTTP installs.

 2) do you fetch the kernel successfully?

 When using tftp, The kernel and kernel modules are fetched before the memory
 file system, so do pxeboot fetch the kernel but not the mfsroot?

 The reason for these questions is that your problem may be with the kernel
 and kernel modules and not pxeboot. Just to be sure.

I see what you are saying.  We will have to look at the packet
captures to make that determination.

 I have a couple of questions that I am hoping I can use to glean a
 proper solution:

 1) Does the 8.2-RELEASE pxeboot.bs source code support use of vlan
 tagging?
 2) Can I get vlan tagging support with newer 8.2 code?
 3) Will the 9.0-RELEASE code have better support for vlan tagging and
 can I use it to build an 8.2-RELEASE system?


 I did a grep in the source and it seems there is a kernel module for vlan
 tagging, if you load the kernel succesfully it may be a question of getting
 that module loaded as well, or rebuild the kernel. But I can't give a better
 answer.

 My best guess is not to rely on vlan tagging unless you can configure that
 on the hardware. Or, normally there is a default vlan that corresponds to no
 tag. If you can configure that for pxe and use tagging for the other
 networks.

Thanks for this information, it has given me some other things to
think about and could potentially lead to a proper solution.

-- 
Take care
Rick Miller
___
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: pxeboot.bs and vlan tagging

2012-02-06 Thread Erik Nørgaard

On 06/02/2012 17:11, Rick Miller wrote:

See my responses inline...

On Mon, Feb 6, 2012 at 10:54 AM, Erik Nørgaardnorga...@locolomo.org  wrote:

On 06/02/2012 16:35, Rick Miller wrote:


We are PXE booting into FreeBSD 8.2-RELEASE to perform system builds.
The pxeboot.bs file was recompiled with TFTP support.  8.2-RELEASE
builds were working fine until we attempted a build on bare metal in
an environment that utilizes vlan tagging.  When the system loaded the
pxeboot.bs file it prompted that a disk containing the mfsroot.gz be
inserted.



Hi, a few questions:

1) do you use tftp or nfs? if you built pxeboot with tftp, did you also
build the kernel with tftp?


pxeboot.bs was compiled with TFTP enabled.  We made 3 modifications to
the kernel not related to tftp.  One change was to the NIC source code
to improve small packet performance, we compiled a custom kernel that
disabled FLOWTABLE and enabled ROUTETABLES.

TFTP is the intent for PXE, we did not want to rely on NFS.  For the
remainder of the install, we've written code into sysinstall to
support pure HTTP installs.


2) do you fetch the kernel successfully?

When using tftp, The kernel and kernel modules are fetched before the memory
file system, so do pxeboot fetch the kernel but not the mfsroot?

The reason for these questions is that your problem may be with the kernel
and kernel modules and not pxeboot. Just to be sure.


I see what you are saying.  We will have to look at the packet
captures to make that determination.



There used to be some kernel options in older versions but I think the 
necessity for these were removed with 7.0. Can't find them right now.


Also, there is a trick when you want to use tftp, by default the kernel 
will try nfs if it has been built with nfs code, so check for references 
to nfs. The generic kernel is built with with the option


options NFSCL
options NFSD
options NFSLOCKD
options NFS_ROOT

these should be disabled.


Thanks for this information, it has given me some other things to
think about and could potentially lead to a proper solution.


My approach to this is to create a closed network with one server 
providing all the necessary services (dhcp, tftp and ftp/http) as well 
as a local mirror with all the required files for installation.


If you have a lot of servers, it makes no sense that each sould fetch 
packages from the public mirrors, hence for installation there should be 
no need for access to external networks.


If you do this you can configure your switches accordingly without any 
need for vlan tagging.


BR, Erik
--
M: +34 666 334 818
T: +34 915 211 157
___
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: pxeboot.bs and vlan tagging

2012-02-06 Thread Rick Miller
 2) do you fetch the kernel successfully?

 When using tftp, The kernel and kernel modules are fetched before the memory
 file system, so do pxeboot fetch the kernel but not the mfsroot?

 The reason for these questions is that your problem may be with the kernel
 and kernel modules and not pxeboot. Just to be sure.

 I see what you are saying.  We will have to look at the packet
 captures to make that determination.

The target system loads pxeboot.bs and consequently requests the
following files:

/boot/boot.4th (which it does not find)
/boot/loader.rc
/boot/loader.4th
/boot/support.4th
/boot/defaults/loader.conf
/boot/device.hints
/boot/loader.conf

It is at this point where the failure occurs.  The contents of loader.conf are:

mfsroot_load=YES
mfsroot_type=mfs_root
mfsroot_name=/boot/mfsroot

Does this seem consistent with what you were theorizing that it's the
kernel that has the problem with vlan tagging and not pxeboot.bs?


-- 
Take care
Rick Miller
___
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


Multiple errors on server -- Where do I start looking?

2012-02-06 Thread Ryan Merrell
I've run into some error messages on my server that are beyond my skill level 
of interpreting, so I'm hoping some of you can help me out. I've already posted 
this on the forums at 
http://forums.freebsd.org/showthread.php?p=165258#post165258 but since this is 
affecting our business, I'm trying to reach out to a broader audience and 
hopefully get this thing resolved.

We have an Intel modular blade server. The chassis has 2x 3-disk RAID(5) 
arrays. Volume 1 is what the OS (FreeBSD 7.2) is installed on and Volume 2 is 
mounted at /usr. These two volumes are da0 and da1.

I got email notifications saying the web host I run in a jail hosted on this 
server was down. I try to SSH into it, but it fails. I ping it and I get a 50% 
return rate. So I log in to the management blade and start a virtual KVM 
sessions to get into the blade. Once I'm into the basehost blade, I cat 
dmesg.today and get a slew of errors. Here we go..
(da3:mpt0:0:6:1): Logical unit not accessible, target port in standby state
(da3:mpt0:0:6:1): Retrying Command (per Sense Data)
(da3:mpt0:0:6:1): READ(10). CDB: 28 0 0 0 0 0 0 0 1 0
(da3:mpt0:0:6:1): CAM Status: SCSI Status Error
(da3:mpt0:0:6:1): SCSI Status: Check Condition
(da3:mpt0:0:6:1): ILLEGAL REQUEST asc:4,b
(da3:mpt0:0:6:1): Logical unit not accessible, target port in standby state
(da3:mpt0:0:6:1): Retrying Command (per Sense Data)
(da3:mpt0:0:6:1): READ(10). CDB: 28 0 0 0 0 0 0 0 1 0
(da3:mpt0:0:6:1): CAM Status: SCSI Status Error
(da3:mpt0:0:6:1): SCSI Status: Check Condition
(da3:mpt0:0:6:1): ILLEGAL REQUEST asc:4,b
(da3:mpt0:0:6:1): Logical unit not accessible, target port in standby state
(da3:mpt0:0:6:1): Retries Exhausted

As mentioned before, our two volumes are da0 and da1. /dev lists da2 and da3 as 
well, but I have no idea what they are.  How do I figure out what da3 is and 
what do the above error messages say about it? Someone on the forum asked me if 
the two volumes are on the same controller and the answer is yes, they are.


GEOM_LABEL: Label for provider da0s1a is ufsid/4aeb03874c64d9f1.
GEOM_LABEL: Label for provider da0s1d is ufsid/4aeb038ae8ae24cf.
GEOM_LABEL: Label for provider da0s1e is ufsid/4aeb0387d41a.
GEOM_LABEL: Label for provider da0s1f is ufsid/4aeb038766c4c807.
Trying to mount root from ufs:/dev/da0s1a
GEOM_LABEL: Label ufsid/4aeb03874c64d9f1 removed.
GEOM_LABEL: Label for provider da0s1a is ufsid/4aeb03874c64d9f1.
GEOM_LABEL: Label ufsid/4aeb0387d41a removed.
GEOM_LABEL: Label ufsid/4bd2077f23a6cc93 removed.
GEOM_LABEL: Label for provider da0s1e is ufsid/4aeb0387d41a.
GEOM_LABEL: Label for provider da1s1 is ufsid/4bd2077f23a6cc93.
GEOM_LABEL: Label ufsid/4aeb038766c4c807 removed.
GEOM_LABEL: Label for provider da0s1f is ufsid/4aeb038766c4c807.
GEOM_LABEL: Label ufsid/4aeb038ae8ae24cf removed.
GEOM_LABEL: Label for provider da0s1d is ufsid/4aeb038ae8ae24cf.
GEOM_LABEL: Label ufsid/4aeb03874c64d9f1 removed.
GEOM_LABEL: Label ufsid/4aeb0387d41a removed.
GEOM_LABEL: Label ufsid/4aeb038766c4c807 removed.
GEOM_LABEL: Label ufsid/4aeb038ae8ae24cf removed.
GEOM_LABEL: Label ufsid/4bd2077f23a6cc93 removed.

Was root unmounted? Whats going on here? Obviously there's some issue with da0, 
which is mounted at /. The server has been up and running fine, so why am I 
seeing Trying to mount root from ufs:/dev/da0s1a?

pid 93248 (httpd), uid 80: exited on signal 10
pid 95624 (httpd), uid 80: exited on signal 10
pid 97956 (httpd), uid 80: exited on signal 10
pid 97935 (httpd), uid 80: exited on signal 10
pid 96603 (httpd), uid 80: exited on signal 10
pid 93210 (httpd), uid 80: exited on signal 10
pid 98246 (httpd), uid 80: exited on signal 10

This is apparently whats killing our webserver. Apache receives a signal 10 and 
quits.. Everything I've read says it's an issue with Apache trying to access 
RAM that it shouldn't or that doesn't exist.. Is there something else with the 
above da0 or da3 errors that would cause a SIGBUS on httpd?

Then after that it goes back and repeats that first block of da3 errors a bunch 
more times. The server was down for about 10 minutes and then it just fixed 
itself. It's weird because it seems the apache child processes all get killed 
off by the sigbus but the parent process doesn't.. so once the problem works 
itself out, it continues operations as normal without me having to restart the 
daemon or anything.

The management blade in the server chassis is reporting that all the hardware 
is fine. We have a second blade that boots off of a second partition in Volume 
1 and it doesn't have any problems at all.

I'm at a loss here!


Ryan Merrell


This e-mail message is for the sole use of the intended recipient(s) and may 
contain privileged or confidential information. Unauthorized use, distribution, 
review or disclosure is prohibited. If you are not the intended recipient, 
please notify the sender immediately by reply email and destroy all copies of 
the original message.

Re: pxeboot.bs and vlan tagging

2012-02-06 Thread Erik Nørgaard

On 06/02/2012 17:33, Rick Miller wrote:

2) do you fetch the kernel successfully?

When using tftp, The kernel and kernel modules are fetched before the memory
file system, so do pxeboot fetch the kernel but not the mfsroot?

The reason for these questions is that your problem may be with the kernel
and kernel modules and not pxeboot. Just to be sure.


I see what you are saying.  We will have to look at the packet
captures to make that determination.


The target system loads pxeboot.bs and consequently requests the
following files:

/boot/boot.4th (which it does not find)
/boot/loader.rc
/boot/loader.4th
/boot/support.4th
/boot/defaults/loader.conf
/boot/device.hints
/boot/loader.conf

It is at this point where the failure occurs.  The contents of loader.conf are:

mfsroot_load=YES
mfsroot_type=mfs_root
mfsroot_name=/boot/mfsroot

Does this seem consistent with what you were theorizing that it's the
kernel that has the problem with vlan tagging and not pxeboot.bs?


See the other mail, the way pxeboot works IIRC, is that first the 
pxeboot is fetched using tftp, the pxeboot is given the next server and 
will fetch the kernel, modules and other files from /boot/ on that 
server, (path respective to the root of the tftp dir).


The kernel loads and will then fetch the mfsroot file. As mentioned, by 
default this is done using nfs, and nfs is assumed if the kernel 
supports nfs, even if it only fetches one file. This I understand has to 
be this way since the network configuration set with dhcp does not 
specify the protocol.


So, if your kernel supports nfs it will not use tftp and hence fail.

The details are somewhat distant to me, it's been some time since I 
messsed arround with this.


hope this helps.
BR, Erik
--
M: +34 666 334 818
T: +34 915 211 157
___
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


fbsd safety of the ports

2012-02-06 Thread dick
I'm a bit confused. I always believed FreeBSD is a very safe system. 
That may be true for the core files, but what about ports.


On the net I read _never_ to let the webserver be the owner of its files 
and yet, ports like Drupal or WordPress make the files rwx for the owner 
(www) as well as the group (www). How does this fit into fbsd's safety 
policy?


I guess you might say it's the task of the port maintainer, but isn't 
there some kind of port acceptance policy?

Imho this situation is a bit confusing at least ;-)
I'd like to get some info on this if possible.
___
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: fbsd safety of the ports

2012-02-06 Thread Mark Felder

On Mon, 06 Feb 2012 11:37:17 -0600, d...@nagual.nl wrote:

I'm a bit confused. I always believed FreeBSD is a very safe system.  
That may be true for the core files, but what about ports.
 On the net I read _never_ to let the webserver be the owner of its  
files and yet, ports like Drupal or WordPress make the files rwx for the  
owner (www) as well as the group (www). How does this fit into fbsd's  
safety policy?
 I guess you might say it's the task of the port maintainer, but isn't  
there some kind of port acceptance policy?
Imho this situation is a bit confusing at least I'd like to get some  
info on this if possible.


In my opinion it's up to the admin to make sure the sites their hosted are  
setup with proper permissions. If you haven't run into it yet I'd be  
surprised -- Wordpress/Joomla/etc seem to throw a fit when you don't give  
them full write access to certain directories (for caching and whatnot)  
and if you don't have them update via the FTP method they require write  
access everywhere. This is excluding weird add-ons and plugins that want  
write access everywhere as well, which I've seen many times.


Securing a CMS properly is harder than it should be. Sometimes I feel the  
safest way would be to run two copies of the site: one that's read-only  
(including database read only perms) and another that you use for  
managing, updating, etc.


However, now you've alienated anyone from ever being able to comment on  
your blog...


Security, Low Difficulty, Functionality -- pick two.
___
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: pxeboot.bs and vlan tagging

2012-02-06 Thread Rick Miller
Thanks for your feedback, Erik!  I do have a question below...

On Mon, Feb 6, 2012 at 11:45 AM, Erik Nørgaard norga...@locolomo.org wrote:

 See the other mail, the way pxeboot works IIRC, is that first the pxeboot is
 fetched using tftp, the pxeboot is given the next server and will fetch the
 kernel, modules and other files from /boot/ on that server, (path respective
 to the root of the tftp dir).

 The kernel loads and will then fetch the mfsroot file. As mentioned, by
 default this is done using nfs, and nfs is assumed if the kernel supports
 nfs, even if it only fetches one file. This I understand has to be this way
 since the network configuration set with dhcp does not specify the protocol.

 So, if your kernel supports nfs it will not use tftp and hence fail.

The kernel I am using is the kernel from the DVD ISO as it is
downloaded from freebsd.org.  How do I determine what modules have
been enabled and disabled in that kernel?  I am under the assumption
that NFS is compiled into that kernel.  We can install 8.2-RELEASE
with this kernel in VMs, but not bare metal.  Is there an explanation
as to why an NFS enabled kernel would work inside a VM, but fail on
bare metal?

-- 
Take care
Rick Miller
___
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: ntpd crashes during start - a lot of interfaces

2012-02-06 Thread Chuck Swiger
On Feb 5, 2012, at 10:39 PM, Radek Krejča wrote:
 I have problem with using ntpd on 8.2 amd64 (not tested elsewhere). If I have 
 a lot of interfaces (vlans) ntpd crashes with segmentation fault (core dump). 
 I have tested on my test machine and it really depends on number of 
 interfaces. It try to bind on every of it.
 
 I want to reduce it with using some options (like -I em0) but it seems that 
 ntpd ignore it. If I use truss the system calls look same.
 
 Is there any way to bind directly on specified interface?

-I is supposed to do that, but if it doesn't work right, consider gaining a bit 
more debugging info (a backtrace from running under gdb or against the 
corefile) and filing a PR.  You could also discuss this with upstream, 
meaning the NTP mailing list at questi...@lists.ntp.org

Regards,
-- 
-Chuck

___
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: Multiple errors on server -- Where do I start looking?

2012-02-06 Thread Chuck Swiger
On Feb 6, 2012, at 8:15 AM, Ryan Merrell wrote:
 We have an Intel modular blade server. The chassis has 2x 3-disk RAID(5) 
 arrays. Volume 1 is what the OS (FreeBSD 7.2) is installed on and Volume 2 is 
 mounted at /usr. These two volumes are da0 and da1.

This doesn't matter directly to your issue, but a 3-disk RAID-5 setup is not a 
great choice.  With six disks available, you'd almost certainly do better 
either as a 6-disk-wide RAID-5 or a RAID-10.

 I got email notifications saying the web host I run in a jail hosted on this 
 server was down. I try to SSH into it, but it fails. I ping it and I get a 
 50% return rate. So I log in to the management blade and start a virtual KVM 
 sessions to get into the blade. Once I'm into the basehost blade, I cat 
 dmesg.today and get a slew of errors. Here we go..
 (da3:mpt0:0:6:1): Logical unit not accessible, target port in standby state
 (da3:mpt0:0:6:1): Retrying Command (per Sense Data)
 (da3:mpt0:0:6:1): READ(10). CDB: 28 0 0 0 0 0 0 0 1 0
 (da3:mpt0:0:6:1): CAM Status: SCSI Status Error
 (da3:mpt0:0:6:1): SCSI Status: Check Condition
 (da3:mpt0:0:6:1): ILLEGAL REQUEST asc:4,b
 (da3:mpt0:0:6:1): Logical unit not accessible, target port in standby state
 (da3:mpt0:0:6:1): Retrying Command (per Sense Data)
 (da3:mpt0:0:6:1): READ(10). CDB: 28 0 0 0 0 0 0 0 1 0
 (da3:mpt0:0:6:1): CAM Status: SCSI Status Error
 (da3:mpt0:0:6:1): SCSI Status: Check Condition
 (da3:mpt0:0:6:1): ILLEGAL REQUEST asc:4,b
 (da3:mpt0:0:6:1): Logical unit not accessible, target port in standby state
 (da3:mpt0:0:6:1): Retries Exhausted
 
 As mentioned before, our two volumes are da0 and da1. /dev lists da2 and da3 
 as well, but I have no idea what they are.  How do I figure out what da3 is 
 and what do the above error messages say about it? Someone on the forum asked 
 me if the two volumes are on the same controller and the answer is yes, they 
 are.

Check a dmesg after a reboot, or take a look at camcontrol devlist or 
atacontrol list and that ought to provide more information.  Since you're 
also using GEOM labels, glabel status is likely to be informative as well.

 GEOM_LABEL: Label for provider da0s1a is ufsid/4aeb03874c64d9f1.
 GEOM_LABEL: Label for provider da0s1d is ufsid/4aeb038ae8ae24cf.
 GEOM_LABEL: Label for provider da0s1e is ufsid/4aeb0387d41a.
 GEOM_LABEL: Label for provider da0s1f is ufsid/4aeb038766c4c807.
 Trying to mount root from ufs:/dev/da0s1a
 GEOM_LABEL: Label ufsid/4aeb03874c64d9f1 removed.
 GEOM_LABEL: Label for provider da0s1a is ufsid/4aeb03874c64d9f1.
 GEOM_LABEL: Label ufsid/4aeb0387d41a removed.
 GEOM_LABEL: Label ufsid/4bd2077f23a6cc93 removed.
 GEOM_LABEL: Label for provider da0s1e is ufsid/4aeb0387d41a.
 GEOM_LABEL: Label for provider da1s1 is ufsid/4bd2077f23a6cc93.
 GEOM_LABEL: Label ufsid/4aeb038766c4c807 removed.
 GEOM_LABEL: Label for provider da0s1f is ufsid/4aeb038766c4c807.
 GEOM_LABEL: Label ufsid/4aeb038ae8ae24cf removed.
 GEOM_LABEL: Label for provider da0s1d is ufsid/4aeb038ae8ae24cf.
 GEOM_LABEL: Label ufsid/4aeb03874c64d9f1 removed.
 GEOM_LABEL: Label ufsid/4aeb0387d41a removed.
 GEOM_LABEL: Label ufsid/4aeb038766c4c807 removed.
 GEOM_LABEL: Label ufsid/4aeb038ae8ae24cf removed.
 GEOM_LABEL: Label ufsid/4bd2077f23a6cc93 removed.
 
 Was root unmounted? Whats going on here? Obviously there's some issue with 
 da0, which is mounted at /. The server has been up and running fine, so why 
 am I seeing Trying to mount root from ufs:/dev/da0s1a?

These are standard messages from GEOM-- it's trying to look at the disk labels 
and figure out where to mount the various filesystems.

 pid 93248 (httpd), uid 80: exited on signal 10
 pid 95624 (httpd), uid 80: exited on signal 10
 pid 97956 (httpd), uid 80: exited on signal 10
 pid 97935 (httpd), uid 80: exited on signal 10
 pid 96603 (httpd), uid 80: exited on signal 10
 pid 93210 (httpd), uid 80: exited on signal 10
 pid 98246 (httpd), uid 80: exited on signal 10
 
 This is apparently whats killing our webserver. Apache receives a signal 10 
 and quits.. Everything I've read says it's an issue with Apache trying to 
 access RAM that it shouldn't or that doesn't exist.. Is there something else 
 with the above da0 or da3 errors that would cause a SIGBUS on httpd?

That's unclear, but normally a failing disk will cause I/O to block and the 
httpds will simply hang, not crash.

Most likely, you've got a bug lurking in one of the Apache modules you use 
(mod_php is a likely candidate), but run a test instance of httpd under gdb 
using -X flag, and see whether you can gain better information.  Or unlimit 
coredumpsize, and run gdb against the corefile to see what's causing the crash.

Regards,
-- 
-Chuck

___
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: pxeboot.bs and vlan tagging

2012-02-06 Thread Rick Miller
We have determined that it has failed after loading pxeboot.bs and
before loading the kernel.  Therefore, the kernel is not the problem.
I have also determined that vlan tagging is not the problem as it has
failed with vlan tagging disabled.  I don't believe it is the content
because it works in 3 out of 4 different environments.  In fact, in
the 4th environment in recent tests, it worked a handful of times
before failing again.

Suspecting network configurations at this point, but thanks for the
input provided thus far.  It has been immensely helpful.

On Mon, Feb 6, 2012 at 11:45 AM, Erik Nørgaard norga...@locolomo.org wrote:
 On 06/02/2012 17:33, Rick Miller wrote:

 2) do you fetch the kernel successfully?

 When using tftp, The kernel and kernel modules are fetched before the
 memory
 file system, so do pxeboot fetch the kernel but not the mfsroot?

 The reason for these questions is that your problem may be with the
 kernel
 and kernel modules and not pxeboot. Just to be sure.


 I see what you are saying.  We will have to look at the packet
 captures to make that determination.


 The target system loads pxeboot.bs and consequently requests the
 following files:

 /boot/boot.4th (which it does not find)
 /boot/loader.rc
 /boot/loader.4th
 /boot/support.4th
 /boot/defaults/loader.conf
 /boot/device.hints
 /boot/loader.conf

 It is at this point where the failure occurs.  The contents of loader.conf
 are:

 mfsroot_load=YES
 mfsroot_type=mfs_root
 mfsroot_name=/boot/mfsroot

 Does this seem consistent with what you were theorizing that it's the
 kernel that has the problem with vlan tagging and not pxeboot.bs?


 See the other mail, the way pxeboot works IIRC, is that first the pxeboot is
 fetched using tftp, the pxeboot is given the next server and will fetch the
 kernel, modules and other files from /boot/ on that server, (path respective
 to the root of the tftp dir).

 The kernel loads and will then fetch the mfsroot file. As mentioned, by
 default this is done using nfs, and nfs is assumed if the kernel supports
 nfs, even if it only fetches one file. This I understand has to be this way
 since the network configuration set with dhcp does not specify the protocol.

 So, if your kernel supports nfs it will not use tftp and hence fail.

 The details are somewhat distant to me, it's been some time since I messsed
 arround with this.

 hope this helps.

 BR, Erik
 --
 M: +34 666 334 818
 T: +34 915 211 157



-- 
Take care
Rick Miller
___
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: Querying a cvsup server

2012-02-06 Thread Lowell Gilbert
Warren Block wbl...@wonkity.com writes:

 Is there a way to query one of the FreeBSD cvsup mirrors, something
 like 'svn list -v svn:...' (only with cvs or csup)?  I'm looking to
 find the revision or date of a file.

Anonymous CVS is probably the best approach for you. 
It's covered in the Handbook.
___
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: pxeboot.bs and vlan tagging

2012-02-06 Thread Erik Nørgaard

On 06/02/2012 19:34, Rick Miller wrote:

Thanks for your feedback, Erik!  I do have a question below...



The kernel I am using is the kernel from the DVD ISO as it is
downloaded from freebsd.org.  How do I determine what modules have
been enabled and disabled in that kernel?  I am under the assumption
that NFS is compiled into that kernel.  We can install 8.2-RELEASE
with this kernel in VMs, but not bare metal.  Is there an explanation
as to why an NFS enabled kernel would work inside a VM, but fail on
bare metal?


The kernel distributed with the ISOs is the generic kernel, so if you 
have the source (it's also on the DVD) you'll find the GENERIC kernel 
configuration file in /usr/src/sys/YOUR_ARCH/conf/GENERIC and you can 
see what are the compile options.


You'll see these options:

options MD_ROOT  # MD is a potential root device
options NFSCL# New Network Filesystem Client
options NFSD # New Network Filesystem Server
options NFSLOCKD # Network Lock Manager
options NFS_ROOT # NFS usable as /, requires NFSCL

The first one is required, this allows your kernel to mount a memory 
disk device (your mfsroot), the others enable NFS. You need to rebuild 
the kernel with NFS disabled.


BR, Erik

--
M: +34 666 334 818
T: +34 915 211 157
___
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: ath and how to control wireless light

2012-02-06 Thread Waitman Gobble
On Feb 5, 2012 3:38 PM, Chris Whitehouse cwhi...@onetel.com wrote:

 On 04/02/2012 16:49, Waitman Gobble wrote:

 On Sat, Feb 4, 2012 at 3:52 AM, Chris Whitehousecwhi...@onetel.com
 wrote:

 On 04/02/2012 08:37, Waitman Gobble wrote:

 On Thu, Feb 2, 2012 at 6:52 AM, Chris Whitehousecwhi...@onetel.com
  wrote:

  Hello


 I have FreeBSD 9R amd64 installed on a HP G60 laptop. This machine
has a
 combined wireless switch and led. The switch turns the wifi on and off
 but
 the light stays red.

 The light is supposed to show red for wireless off and blue for
wireless
 on. I found some sysctls that control it:
 dev.ath.0.softled: 0
 dev.ath.0.ledpin: 3
 dev.ath.0.ledon: 1
 dev.ath.0.ledidle: 2700

 softled, ledpin and ledon are all set to 0 on boot.
 I set ledpin to 3, then to change the colour of the light I turn on
 softled 0-1, toggle ledon and turn off softled again.

 Can I make that sequence occur, or do something else, to make the led
 change when the button is pressed _and_ keep in sync with whether the
 wireless is on or off?

 With softled=1 the light is blue with a short red flash or red with a
 short blue flash depending on the value of ledon. Also when softled=1
the
 light flashes in it's opposite colour when there is network
traffic. So
 it would probably be ok just to leave softled=1 and toggle ledon.

 The wireless device is
 dev.ath.0.%desc: Atheros 5424/2424.

 I think there is a slight glitch with the on/off button, that under
some
 circumstances it doesn't turn the wifi on again, which would be much
 easier
 to test if the light worked.

 Also what is ledidle and what do different settings do?

 Thanks

 Chris
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
http://lists.freebsd.org/**mailman/listinfo/freebsd-**questions
 http://lists.**freebsd.org/mailman/listinfo/**freebsd-questions
http://lists.freebsd.org/mailman/listinfo/freebsd-questions


 To unsubscribe, send any mail to freebsd-questions-**
 unsubscr...@freebsd.orgfreebs**d-questions-unsubscribe@**freebsd.org
freebsd-questions-unsubscr...@freebsd.org

 



 Hi Chris,

 I have an Acer Aspire D150 and the LED hasn't been lit with FreeBSD,
 9-rc3,
 9-release or 10-current  (with BroadCom and 2 Atheros cards). it did
work
 with Fedora GNU/Linux 11. I did try setting in loader.conf as
recommended
 to me to no avail. On one hand it was easy to get the attitude who
cares
 about the LED anyway but on the other I'm thinking it's a simple
little
 thing that's important,I guess like maybe buying a new car and it's
 missing
 a knob on the stereo. (?) :) I suppose it probably should work.

 Waitman Gobble
 San Jose California USA

  I have another HP laptop with a Broadcomm card which has a

 button_with_light and it just works. None of the sysctl oids above occur
 though. Maybe I'll swap wireless cards between the two and see what
happens.

 What is the output of sysctl -a |grep led ?
 You'll get lots of enabled's but there might be something that relates
 to led's.

 I had to change ledpin from default of 0 to 3 before any of the other
ones
 had any effect.

 Thanks for the reply anyway.

 Chris


 Oh thats a good idea :) Thanks

 here's what someone recommended :

 dev.ath.0.ledpin=3
 dev.ath.0.softled=1

 but here are some extras i found from sysctl -a that i will check out:

 dev.ath.0.ledon: 0
 dev.ath.0.ledidle: 2700
 dev.ath.0.hardled: 0
 dev.ath.0.led_net_pin: -1
 dev.ath.0.led_pwr_pin: -1

 Waitman Gobble
 San Jose California USA

 I would give them a try. Set dev.ath.0.ledpin=3 then experiment. If you
can't get any response try different values for ledpin or one of the other
led*pin.

 I can't read source code :( but maybe you can get more info out of the
code you posted.

 Chris

cool. when i have some more time ill see about modifying the the code to
make a little flicker light diagnostic tool, use to try to figure out
correct settings i guess. just an idea, i checked for a couple minutes and
didnt find one but maybe its already done :)

Waitman
___
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: Querying a cvsup server

2012-02-06 Thread Warren Block

On Mon, 6 Feb 2012, Lowell Gilbert wrote:


Warren Block wbl...@wonkity.com writes:


Is there a way to query one of the FreeBSD cvsup mirrors, something
like 'svn list -v svn:...' (only with cvs or csup)?  I'm looking to
find the revision or date of a file.


Anonymous CVS is probably the best approach for you.
It's covered in the Handbook.


The goal is to check arbitrary files on FreeBSD cvsup servers to see if 
they are up to date.  AFAIK, there are only a couple of anoncvs servers 
and the normal cvsupN.freebsd.org servers don't do that.

___
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


where is plig.net

2012-02-06 Thread Chris Whitehouse
About the first thing I ever learned about FreeBSD was the uk mirror 
ftp.plig.net and cvsup.plig.net which I think used to be 
ftp2.uk.freebsd.org. Since then I have always used them as a file source 
for broadband speed tests. They seem to have disappeared very recently. 
Does anyone know what happened to them, have they stopped being a mirror?


thanks

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


Software Development using Freebsd.

2012-02-06 Thread Jorge Biquez

Hello all.

This is kind of off topic. My apologies in advance.

I am helping a non profit organization and giving some classes to 
prepare students so they can be prepared and try to get a job (they 
are students also and have the basics concepts already)


Anyway, I am interested in teach them to develop some simple 
applications. From simple ones to destktop ones that access a 
database, desktop ones that use internet to connect to a remote 
database and web based ones with a database behind. We have 6 months 
and the idea is to work a lot remotely. Thin is that I do not want to 
use any kind of Microsoft products. Some of them do not have modern 
machines but until now, in previous classs, we could install Freebsd, 
text mode, and work from there.


Now we will try to have a graphical mode in Freebsd. With that we 
would like to be able to develop graphical applications for Windows 
(we all know that's the market and here some companies is what they 
are looking), so maybe sound crazy but I am looking to develop 
applications for Windows without using WIndows or Microsofot products at least.


I have been looking for this for months. First case using Windows but 
not Microsoft products. I found some options BUT they all were 
expensive on the deployment. The runtimes were not free and the 
amount of money to pay was not a good option. Others provide  real 
free excutables for runtimes but the products were expensive. I am 
now trying to, If possible, have FreeBSD running graphically and then 
use open source software to develop graphical windows applications.


Maybe I am wrong but until now I think my only option is to use 
Phyton. Is that correct? For what I have searched Python will let me 
create executables and will let me create Graphical solutions even 
for other platforms (Mac or LInux or whatever runs Python).


Talking with friend, he believes that my best bet is to teach them C 
or C++ and use some of the options for developing graphically ( I am 
not a C or C++ expert but I can learn alone).


I was wondering if you could give some advie and comments on this.

Are you developing commercial applications (including Windows ones) 
using FreeBsd as your platform? Or Maybe any Linux Distribution?


Would you do that with Python or something else?

Any extra advice is more than welcomed.

Thanks in advanced.

Jorge Biquez

___
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: where is plig.net

2012-02-06 Thread Mark Blackman

On 6 Feb 2012, at 21:51, Chris Whitehouse wrote:

 About the first thing I ever learned about FreeBSD was the uk mirror 
 ftp.plig.net and cvsup.plig.net which I think used to be ftp2.uk.freebsd.org. 
 Since then I have always used them as a file source for broadband speed 
 tests. They seem to have disappeared very recently. Does anyone know what 
 happened to them, have they stopped being a mirror?

http://lists.freebsd.org/pipermail/freebsd-hubs/2012-January/002442.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: Software Development using Freebsd.

2012-02-06 Thread David Hughes
Not an expert by any means, but what about Mono, the open source and 
cross platform version of the .NET framework?


If you take a look at http://www.mono-project.com/Compatibility , you'll 
see that it's mostly compatible with .NET 4.0, and claims to be 100% 
compatible with .NET 3.5.


Java is also cross platform and will run on FreeBSD; or, like you say, 
you could use Python with TkInter; there's doubtless many other 
cross-platform solutions that I'm not aware of.


All best,

David


Hello all.

This is kind of off topic. My apologies in advance.

I am helping a non profit organization and giving some classes to
prepare students so they can be prepared and try to get a job (they are
students also and have the basics concepts already)

Anyway, I am interested in teach them to develop some simple
applications. From simple ones to destktop ones that access a database,
desktop ones that use internet to connect to a remote database and web
based ones with a database behind. We have 6 months and the idea is to
work a lot remotely. Thin is that I do not want to use any kind of
Microsoft products. Some of them do not have modern machines but until
now, in previous classs, we could install Freebsd, text mode, and work
from there.

Now we will try to have a graphical mode in Freebsd. With that we would
like to be able to develop graphical applications for Windows (we all
know that's the market and here some companies is what they are
looking), so maybe sound crazy but I am looking to develop applications
for Windows without using WIndows or Microsofot products at least.

I have been looking for this for months. First case using Windows but
not Microsoft products. I found some options BUT they all were expensive
on the deployment. The runtimes were not free and the amount of money
to pay was not a good option. Others provide  real free excutables for
runtimes but the products were expensive. I am now trying to, If
possible, have FreeBSD running graphically and then use open source
software to develop graphical windows applications.

Maybe I am wrong but until now I think my only option is to use Phyton.
Is that correct? For what I have searched Python will let me create
executables and will let me create Graphical solutions even for other
platforms (Mac or LInux or whatever runs Python).

Talking with friend, he believes that my best bet is to teach them C or
C++ and use some of the options for developing graphically ( I am not a
C or C++ expert but I can learn alone).

I was wondering if you could give some advie and comments on this.

Are you developing commercial applications (including Windows ones)
using FreeBsd as your platform? Or Maybe any Linux Distribution?

Would you do that with Python or something else?

Any extra advice is more than welcomed.

Thanks in advanced.

Jorge Biquez

___
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: Software Development using Freebsd.

2012-02-06 Thread William Brown
 
 Maybe I am wrong but until now I think my only option is to use Phyton. Is 
 that correct? For what I have searched Python will let me create executables 
 and will let me create Graphical solutions even for other platforms (Mac or 
 LInux or whatever runs Python).
 

I think that python is a great learning language. I would certainly be teaching 
it to people as the first language to help build concepts.

However, FreeBSD, contains mono. Mono is avaliable on Linux and OSX, but it is 
on windows natively as .NET. You can easily create some great C# applications 
that would be cross platform using this tool. 

Finally, the best cross platform tool is a web service. So perhaps you should 
explore the Django or Ruby on Rails path?


Sincerely,

William Brown

Research  Teaching, Technology Services
The University of Adelaide, AUSTRALIA 5005

CRICOS Provider Number 00123M
-
IMPORTANT: This message may contain confidential or legally privileged
information. If you think it was sent to you by mistake, please delete all
copies and advise the sender. For the purposes of the SPAM Act 2003, this
email is authorised by The University of Adelaide.

pgp.mit.edu
http://pgp.mit.edu:11371/pks/lookup?op=vindexsearch=0x3C0AC6DAB2F928A2






signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Software Development using Freebsd.

2012-02-06 Thread Chad Perrin
On Mon, Feb 06, 2012 at 04:37:37PM -0600, Jorge Biquez wrote:
 
 I am helping a non profit organization and giving some classes to
 prepare students so they can be prepared and try to get a job (they
 are students also and have the basics concepts already)

That's admirable.  I hope that works out.


 
 Anyway, I am interested in teach them to develop some simple
 applications. From simple ones to destktop ones that access a
 database, desktop ones that use internet to connect to a remote
 database and web based ones with a database behind. We have 6 months
 and the idea is to work a lot remotely. Thin is that I do not want
 to use any kind of Microsoft products. Some of them do not have
 modern machines but until now, in previous classs, we could install
 Freebsd, text mode, and work from there.
 
 Now we will try to have a graphical mode in Freebsd. With that we
 would like to be able to develop graphical applications for Windows
 (we all know that's the market and here some companies is what they
 are looking), so maybe sound crazy but I am looking to develop
 applications for Windows without using WIndows or Microsofot
 products at least.

What kind of experience do you want these students to have when they
leave?  Do you just want them practiced in doing some general programming
with cross-platform tools, including database access and simple GUI work?
Do you want them to specifically work with commodity tools that will fit
in with mainstream job posting requirements on a resume?  Do you want
them to work with tools that will enable them to most easily expand their
experience on their own once they get done with the course of instruction
so they can more rapidly approach general competence and create useful
projects of their own very quickly, figuring they can then move on to
other tools and technologies as they decide which direction they want to
take their professional pursuits?  Do you just want it to be as easy as
possible?

Your top priority should probably help you make this decision.


 
 I have been looking for this for months. First case using Windows
 but not Microsoft products. I found some options BUT they all were
 expensive on the deployment. The runtimes were not free and the
 amount of money to pay was not a good option. Others provide  real
 free excutables for runtimes but the products were expensive. I am
 now trying to, If possible, have FreeBSD running graphically and
 then use open source software to develop graphical windows
 applications.
 
 Maybe I am wrong but until now I think my only option is to use
 Phyton. Is that correct? For what I have searched Python will let me
 create executables and will let me create Graphical solutions even
 for other platforms (Mac or LInux or whatever runs Python).
 
 Talking with friend, he believes that my best bet is to teach them C
 or C++ and use some of the options for developing graphically ( I am
 not a C or C++ expert but I can learn alone).

Depending on your goals, anything from Ruby to C could be an excellent
choice.  LLVM/Clang is a great compiler suite for C; the mainstream Ruby
implementation will get you far; both can use platform-independent
graphical toolkits and database access libraries.  PostgreSQL is a great
DBMS distributed under a copyfree license, and it is well supported for
both these languages.  They're sorta on opposite ends of a spectrum,
though, so some kind of narrowing down of goals should be done before
arriving at any conclusions.


 
 I was wondering if you could give some advie and comments on this.
 
 Are you developing commercial applications (including Windows ones)
 using FreeBsd as your platform? Or Maybe any Linux Distribution?

I've written C, C++, Ruby, Perl, and PHP on FreeBSD, for deployment in a
wide range of platform circumstances.  Some of my development has been
commercial, some of it just for fun, some to solve my own personal
problems. . . .

There's nothing wrong with FreeBSD as a development platform for most
purposes, especially if you want to work on portable software
development.  In fact, I think that for purposes of writing portable
code, it's difficult to do worse than FreeBSD, because it's probably
easier to move code from FreeBSD to Linux distributions, Apple MacOS, and
MS Windows due to social factors involved than the other way around.


 
 Would you do that with Python or something else?

I personally am not the world's biggest Python fan, but my choice would
depend on the specific goals involved.  If you're leaning toward the
Python end of the spectrum, though, I (personally; your mileage may
differ) would probably choose Ruby instead.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.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: Software Development using Freebsd.

2012-02-06 Thread Adam Vande More
On Mon, Feb 6, 2012 at 4:37 PM, Jorge Biquez jbiq...@intranet.com.mxwrote:

 Would you do that with Python or something else?


http://qt.nokia.com/

-- 
Adam Vande More
___
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: where is plig.net

2012-02-06 Thread Chris Whitehouse

On 06/02/2012 22:33, Mark Blackman wrote:


On 6 Feb 2012, at 21:51, Chris Whitehouse wrote:


About the first thing I ever learned about FreeBSD was the uk
mirror ftp.plig.net and cvsup.plig.net which I think used to be
ftp2.uk.freebsd.org. Since then I have always used them as a file
source for broadband speed tests. They seem to have disappeared
very recently. Does anyone know what happened to them, have they
stopped being a mirror?


http://lists.freebsd.org/pipermail/freebsd-hubs/2012-January/002442.html


Ah thanks for the info. That makes me sad, they've been like a constant
companion all those years. They used to call themselves Internet Sunshine :)

Chris
___
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: Mergemaster

2012-02-06 Thread Conrad J. Sabatier
On Sun, 5 Feb 2012 17:40:14 -0700 (MST)
Warren Block wbl...@wonkity.com wrote:

 On Sun, 5 Feb 2012, Net Warrior wrote:
 
  Hi there.
 
  I found very tedious when , after a makeworld the mergemaster
  process to say (i) to install/upgrade/replace/  with the new file,
  specially when there are a lot of files  I was reading the
  documentation but it's not clear to me which option to use to
  automate the process, which is the right one, or combination?
 
  -U -F -iF?
 
 -Ui takes a long time the first time, then is much better the next
 time. ___

One shortcut that works very well if you haven't made any
customizations there that you're afraid will be overwritten, is to 'rm
-rf /etc/rc.d' before running mergemaster, so it can just automatically
add all the new files without prompting.

HTH

-- 
Conrad J. Sabatier
conr...@cox.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: Software Development using Freebsd.

2012-02-06 Thread Rod Person
On Mon, 06 Feb 2012 16:37:37 -0600
Jorge Biquez jbiq...@intranet.com.mx wrote:

 Now we will try to have a graphical mode in Freebsd. With that we
 would like to be able to develop graphical applications for Windows
 (we all know that's the market and here some companies is what they
 are looking), so maybe sound crazy but I am looking to develop
 applications for Windows without using WIndows or Microsofot products
 at least.
 

You could try mono and monodevelop
http://www.freebsd.org/cgi/url.cgi?ports/devel/monodevelop/pkg-descr

Mono is the open source version of .NET/C#. This would teach the basics
of .NET and C#.

 Maybe I am wrong but until now I think my only option is to use
 Phyton. Is that correct? For what I have searched Python will let me
 create executables and will let me create Graphical solutions even
 for other platforms (Mac or LInux or whatever runs Python).

You can use Python and py2exe to create the executable that would run
on Windows, but you have to run py2exe on a Windows machine.

If you know Pascal you can look at the FreePascal and Lazarus. I
haven't used it in years, but I was able to create several applications
that ran on both FreeBSD and Windows.
http://www.freebsd.org/cgi/url.cgi?ports/editors/lazarus/pkg-descr


-- 
Rod Person http://www.rodperson.com rodper...@rodperson.com
  
Let us in the name of the Holy Trinity, go on sending all the slaves 
 that can be sold. 
- Letter from Christopher Columbus.
  J.A. Rawley, The Trans-Atlantic Slave Trade: A History. Pg.3
___
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: Querying a cvsup server

2012-02-06 Thread Conrad J. Sabatier
On Mon, 6 Feb 2012 14:53:58 -0700 (MST)
Warren Block wbl...@wonkity.com wrote:

 On Mon, 6 Feb 2012, Lowell Gilbert wrote:
 
  Warren Block wbl...@wonkity.com writes:
 
  Is there a way to query one of the FreeBSD cvsup mirrors, something
  like 'svn list -v svn:...' (only with cvs or csup)?  I'm looking to
  find the revision or date of a file.
 
  Anonymous CVS is probably the best approach for you.
  It's covered in the Handbook.
 
 The goal is to check arbitrary files on FreeBSD cvsup servers to see
 if they are up to date.  AFAIK, there are only a couple of anoncvs
 servers and the normal cvsupN.freebsd.org servers don't do that.

This is one of the reasons I maintain a local copy of the CVS repo
which I keep up-to-date via csup.  Comes in quite handy at times.

In fact, the CVS repo is the *only* thing I update directly via csup.
I then do all my /usr/{doc,ports,src} updates from the local repo.
Great for creating patches for submission, too.

HTH

-- 
Conrad J. Sabatier
conr...@cox.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: Software Development using Freebsd.

2012-02-06 Thread Mehmet Erol Sanliturk
On Mon, Feb 6, 2012 at 6:40 PM, Rod Person rodper...@rodperson.com wrote:

 On Mon, 06 Feb 2012 16:37:37 -0600
 Jorge Biquez jbiq...@intranet.com.mx wrote:

  Now we will try to have a graphical mode in Freebsd. With that we
  would like to be able to develop graphical applications for Windows
  (we all know that's the market and here some companies is what they
  are looking), so maybe sound crazy but I am looking to develop
  applications for Windows without using WIndows or Microsofot products
  at least.
 

 You could try mono and monodevelop
 http://www.freebsd.org/cgi/url.cgi?ports/devel/monodevelop/pkg-descr

 Mono is the open source version of .NET/C#. This would teach the basics
 of .NET and C#.

  Maybe I am wrong but until now I think my only option is to use
  Phyton. Is that correct? For what I have searched Python will let me
  create executables and will let me create Graphical solutions even
  for other platforms (Mac or LInux or whatever runs Python).

 You can use Python and py2exe to create the executable that would run
 on Windows, but you have to run py2exe on a Windows machine.

 If you know Pascal you can look at the FreePascal and Lazarus. I
 haven't used it in years, but I was able to create several applications
 that ran on both FreeBSD and Windows.
 http://www.freebsd.org/cgi/url.cgi?ports/editors/lazarus/pkg-descr


 --
 Rod Person http://www.rodperson.com rodper...@rodperson.com

 Let us in the name of the Holy Trinity, go on sending all the slaves
  that can be sold.
 - Letter from Christopher Columbus.
  J.A. Rawley, The Trans-Atlantic Slave Trade: A History. Pg.3





Lazarus is an IDE ( Integrated Development Environment ) and its compiler
is Free Pascal :


http://www.freepascal.org/
http://www.lazarus.freepascal.org/


When a program is developed in Lazarus , it can directly be compiled in
Windows .
There are a multitude of units for any kind of programming ( Web , Data
base , etc. ) .

Lazarus and FreePascal is available for FreeBSD , Linux , Windows , and
many other operating systems .


A study of the above sites will reveal their capabilities .

http://wiki.freepascal.org/Cross_compiling_for_Win32_under_Linux
http://wiki.lazarus.freepascal.org/Cross_compiling


I did not use , but cross compiling should be possible by using Wine in
FreeBSD to obtain Windows programs ( Windows versions of Lazarus and Free
Pascal may be used in FreeBSD to generate Windows programs and they may be
executed under Wine in FreeBSD for testing before transferred to Windows :
This means a minimum number of Windows computer(s) may be used for final
testing . ) .




Thank you very much .


Mehmet Erol Sanliturk
___
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: Software Development using Freebsd.

2012-02-06 Thread Frank Shute
On Mon, Feb 06, 2012 at 04:37:37PM -0600, Jorge Biquez wrote:

 Hello all.
 
 This is kind of off topic. My apologies in advance.
 
 I am helping a non profit organization and giving some classes to 
 prepare students so they can be prepared and try to get a job (they 
 are students also and have the basics concepts already)
 
 Anyway, I am interested in teach them to develop some simple 
 applications. From simple ones to destktop ones that access a 
 database, desktop ones that use internet to connect to a remote 
 database and web based ones with a database behind. We have 6 months 
 and the idea is to work a lot remotely. Thin is that I do not want to 
 use any kind of Microsoft products. Some of them do not have modern 
 machines but until now, in previous classs, we could install Freebsd, 
 text mode, and work from there.
 
 Now we will try to have a graphical mode in Freebsd. With that we 
 would like to be able to develop graphical applications for Windows 
 (we all know that's the market and here some companies is what they 
 are looking), so maybe sound crazy but I am looking to develop 
 applications for Windows without using WIndows or Microsofot products at 
 least.
 
 I have been looking for this for months. First case using Windows but 
 not Microsoft products. I found some options BUT they all were 
 expensive on the deployment. The runtimes were not free and the 
 amount of money to pay was not a good option. Others provide  real 
 free excutables for runtimes but the products were expensive. I am 
 now trying to, If possible, have FreeBSD running graphically and then 
 use open source software to develop graphical windows applications.
 
 Maybe I am wrong but until now I think my only option is to use 
 Phyton. Is that correct? For what I have searched Python will let me 
 create executables and will let me create Graphical solutions even 
 for other platforms (Mac or LInux or whatever runs Python).
 
 Talking with friend, he believes that my best bet is to teach them C 
 or C++ and use some of the options for developing graphically ( I am 
 not a C or C++ expert but I can learn alone).
 
 I was wondering if you could give some advie and comments on this.
 
 Are you developing commercial applications (including Windows ones) 
 using FreeBsd as your platform? Or Maybe any Linux Distribution?
 
 Would you do that with Python or something else?
 
 Any extra advice is more than welcomed.
 
 Thanks in advanced.
 

Any reason you don't want to use Java?

OO, plenty of IDEs to choose from, ranging from vim to Eclipse which
run on both Windows and Unix.

If I wanted to develop for Windows (I don't), that's what I'd use so I
could develop my code using FreeBSD.

The best part is that Java skills are in demand. (I don't know if
that's the case in Mexico though).


Regards,

-- 

 Frank

 Contact info: http://www.shute.org.uk/misc/contact.html




pgpgtIfdq5w75.pgp
Description: PGP signature


Re: Software Development using Freebsd.

2012-02-06 Thread Leonardo M . Ramé

 From: Mehmet Erol Sanliturk m.e.sanlit...@gmail.com
To: Rod Person rodper...@rodperson.com 
Cc: Jorge Biquez jbiq...@intranet.com.mx; FreeBSD Questions 
questi...@freebsd.org 
Sent: Monday, February 6, 2012 9:22 PM
Subject: Re: Software Development using Freebsd.
 
On Mon, Feb 6, 2012 at 6:40 PM, Rod Person rodper...@rodperson.com wrote:

 On Mon, 06 Feb 2012 16:37:37 -0600
 Jorge Biquez jbiq...@intranet.com.mx wrote:

  Now we will try to have a graphical mode in Freebsd. With that we
  would like to be able to develop graphical applications for Windows
  (we all know that's the market and here some companies is what they
  are looking), so maybe sound crazy but I am looking to develop
  applications for Windows without using WIndows or Microsofot products
  at least.
 

 You could try mono and monodevelop
 http://www.freebsd.org/cgi/url.cgi?ports/devel/monodevelop/pkg-descr

 Mono is the open source version of .NET/C#. This would teach the basics
 of .NET and C#.

  Maybe I am wrong but until now I think my only option is to use
  Phyton. Is that correct? For what I have searched Python will let me
  create executables and will let me create Graphical solutions even
  for other platforms (Mac or LInux or whatever runs Python).

 You can use Python and py2exe to create the executable that would run
 on Windows, but you have to run py2exe on a Windows machine.

 If you know Pascal you can look at the FreePascal and Lazarus. I
 haven't used it in years, but I was able to create several applications
 that ran on both FreeBSD and Windows.
 http://www.freebsd.org/cgi/url.cgi?ports/editors/lazarus/pkg-descr


 --
 Rod Person        http://www.rodperson.com    rodper...@rodperson.com

 Let us in the name of the Holy Trinity, go on sending all the slaves
  that can be sold.
 - Letter from Christopher Columbus.
  J.A. Rawley, The Trans-Atlantic Slave Trade: A History. Pg.3





Lazarus is an IDE ( Integrated Development Environment ) and its compiler
is Free Pascal :


http://www.freepascal.org/
http://www.lazarus.freepascal.org/


When a program is developed in Lazarus , it can directly be compiled in
Windows .
There are a multitude of units for any kind of programming ( Web , Data
base , etc. ) .

Lazarus and FreePascal is available for FreeBSD , Linux , Windows , and
many other operating systems .


A study of the above sites will reveal their capabilities .

http://wiki.freepascal.org/Cross_compiling_for_Win32_under_Linux
http://wiki.lazarus.freepascal.org/Cross_compiling


I did not use , but cross compiling should be possible by using Wine in
FreeBSD to obtain Windows programs ( Windows versions of Lazarus and Free
Pascal may be used in FreeBSD to generate Windows programs and they may be
executed under Wine in FreeBSD for testing before transferred to Windows :
This means a minimum number of Windows computer(s) may be used for final
testing . ) .




Thank you very much .


Mehmet Erol Sanliturk


I do use Lazarus and FreePascal to develop professional applications, mainly I 
work on Linux and cross-compile to Win32/Win64. For FreeBsd I installed 
FreePascal on a Virtual Machine and compiled from it, I never tried 
cross-compiling from FreeBSD to other OSes, but I'm pretty sure it can be done.

An example of what I do is this: http://www.youtube.com/watch?v=hc1RT-s-dw0


Leonardo M. Ramé
http://leonardorame.blogspot.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: Debug Brother MFC-9560CDW failure to print

2012-02-06 Thread Da Rock

On 02/07/12 07:32, Jerry wrote:

OK Rock, if you think you can debug what is happening here, be my
guest. As shown in the subject line, this is a Brother MFC-9560CDW
printer. It works perfectly from Windows. Under FreeBSD, no so much.
When configured via CUPS 1.5.0, it will print a perfect test page. Now,
when I invoke the printer from an applications, only a blank page is
ejected. Most applications, offer both an LPR option as well as the
print to printer option. If I choose the LPR option, the document is
printed correctly. This is also true from the command line.

I either print to LPR or I use Windows to print the document. I have
attached the PPD file along with a lot of other information. It is the
latest one from Brother that is used on Windows. There is no native PPD
file available for FreeBSD. However, in the past I have tried Linux PPDs
that worked fine on Linux but failed on FreeBSD. What I fail to
understand is why it is printing via LPR correctly but not via CUPS
although the CUPS test page does print correctly.
When you say the test page prints correctly, is that the cups test page 
or the test page out of the printer? Put it this way: does it say cups 
on the page printed?


Have you tried using foomatic? From what I read you could use pxlcolor 
filter.


As I also understand it, using a windows ppd on anything other than 
windows (unless the manufacturer possibly made the programs with the 
same name- which is virtually never) will never work. You may _possibly_ 
have some success with Linux, but not likely. And your best bet is to 
forget the manufacturers stupid proprietary printer languages and stick 
with standards; ie. PCL, Postscript (which specifically is cups native 
language).


If you need better quality (for, say, photos), then use gutenprint.

Bottom line: I think you're chasing the wrong dog. I don't think it 
knows what you're talking about using BR-script3 and barfs. Switch to 
PCL6 and it will work I'm pretty sure. And ppd's won't mix and match- 
ppd's tell cups what to do, and cups then follows the scripts and spits 
the output; if it doesn't know what the scripts are it will not know 
what to do, and so far (I'm still going through it all) it looks like it 
is just sending something the printer has no idea at all what to do with 
and just spits paper out anyway.

___
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: Software Development using Freebsd.

2012-02-06 Thread Da Rock

On 02/07/12 08:37, Jorge Biquez wrote:

Hello all.

This is kind of off topic. My apologies in advance.

I am helping a non profit organization and giving some classes to 
prepare students so they can be prepared and try to get a job (they 
are students also and have the basics concepts already)


Anyway, I am interested in teach them to develop some simple 
applications. From simple ones to destktop ones that access a 
database, desktop ones that use internet to connect to a remote 
database and web based ones with a database behind. We have 6 months 
and the idea is to work a lot remotely. Thin is that I do not want to 
use any kind of Microsoft products. Some of them do not have modern 
machines but until now, in previous classs, we could install Freebsd, 
text mode, and work from there.


Now we will try to have a graphical mode in Freebsd. With that we 
would like to be able to develop graphical applications for Windows 
(we all know that's the market and here some companies is what they 
are looking), so maybe sound crazy but I am looking to develop 
applications for Windows without using WIndows or Microsofot products 
at least.


I have been looking for this for months. First case using Windows but 
not Microsoft products. I found some options BUT they all were 
expensive on the deployment. The runtimes were not free and the 
amount of money to pay was not a good option. Others provide  real 
free excutables for runtimes but the products were expensive. I am 
now trying to, If possible, have FreeBSD running graphically and then 
use open source software to develop graphical windows applications.


Maybe I am wrong but until now I think my only option is to use 
Phyton. Is that correct? For what I have searched Python will let me 
create executables and will let me create Graphical solutions even for 
other platforms (Mac or LInux or whatever runs Python).


Talking with friend, he believes that my best bet is to teach them C 
or C++ and use some of the options for developing graphically ( I am 
not a C or C++ expert but I can learn alone).


I was wondering if you could give some advie and comments on this.

Are you developing commercial applications (including Windows ones) 
using FreeBsd as your platform? Or Maybe any Linux Distribution?


Would you do that with Python or something else?
Depending on what you really need to solve decides your language. Others 
have offered advice here, but may I suggest Perl? For most data and its 
proven ability to handle/match string data it is very useful. And using 
tk it will run on windows as well.


My 2c... :)
___
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: Debug Brother MFC-9560CDW failure to print

2012-02-06 Thread Da Rock

On 02/07/12 11:44, Da Rock wrote:

On 02/07/12 07:32, Jerry wrote:

OK Rock, if you think you can debug what is happening here, be my
guest. As shown in the subject line, this is a Brother MFC-9560CDW
printer. It works perfectly from Windows. Under FreeBSD, no so much.
When configured via CUPS 1.5.0, it will print a perfect test page. Now,
when I invoke the printer from an applications, only a blank page is
ejected. Most applications, offer both an LPR option as well as the
print to printer option. If I choose the LPR option, the document is
printed correctly. This is also true from the command line.

I either print to LPR or I use Windows to print the document. I have
attached the PPD file along with a lot of other information. It is the
latest one from Brother that is used on Windows. There is no native PPD
file available for FreeBSD. However, in the past I have tried Linux PPDs
that worked fine on Linux but failed on FreeBSD. What I fail to
understand is why it is printing via LPR correctly but not via CUPS
although the CUPS test page does print correctly.
When you say the test page prints correctly, is that the cups test 
page or the test page out of the printer? Put it this way: does it say 
cups on the page printed?


Have you tried using foomatic? From what I read you could use pxlcolor 
filter.


As I also understand it, using a windows ppd on anything other than 
windows (unless the manufacturer possibly made the programs with the 
same name- which is virtually never) will never work. You may 
_possibly_ have some success with Linux, but not likely. And your best 
bet is to forget the manufacturers stupid proprietary printer 
languages and stick with standards; ie. PCL, Postscript (which 
specifically is cups native language).


If you need better quality (for, say, photos), then use gutenprint.

Bottom line: I think you're chasing the wrong dog. I don't think it 
knows what you're talking about using BR-script3 and barfs. Switch to 
PCL6 and it will work I'm pretty sure. And ppd's won't mix and match- 
ppd's tell cups what to do, and cups then follows the scripts and 
spits the output; if it doesn't know what the scripts are it will not 
know what to do, and so far (I'm still going through it all) it looks 
like it is just sending something the printer has no idea at all what 
to do with and just spits paper out anyway.
Just noticed something: have you specifically got a postscript module in 
your printer? Because that is what it is sending your printer...


I only just found that in the logs :)
___
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: Software Development using Freebsd.

2012-02-06 Thread C. P. Ghost
On Mon, Feb 6, 2012 at 11:37 PM, Jorge Biquez jbiq...@intranet.com.mx wrote:
 Now we will try to have a graphical mode in Freebsd. With that we would like
 to be able to develop graphical applications for Windows (we all know that's
 the market and here some companies is what they are looking), so maybe sound
 crazy but I am looking to develop applications for Windows without using
 WIndows or Microsofot products at least.

Go for Qt. It is a great cross-platform C++ GUI framework, with plugins to SQL
databases, networking and everything you would typically need. There's even
PyQt, if you want Python bindings.

Check out the examples in the Qt distribution too to get an idea:

http://developer.qt.nokia.com/doc/qt-4.8/all-examples.html

-- 
Cordula's Web. http://www.cordula.ws/
___
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: Software Development using Freebsd.

2012-02-06 Thread Randal L. Schwartz
 DDa == Da Rock freebsd-questi...@herveybayaustralia.com.au writes:

 Would you do that with Python or something else?

DDa Depending on what you really need to solve decides your
DDa language. Others have offered advice here, but may I suggest Perl?
DDa For most data and its proven ability to handle/match string data it
DDa is very useful. And using tk it will run on windows as well.

At this point, there's absolutely nothing that Python can do that Perl
can't, and very likely vice versa.

However, from personal experience, I know that Larry Wall understands
Object Oriented Programming, and Guido definitely doesn't get it.
Obviously, other people have worked on both languages, but keep that in
mind.  I can present my evidence of how Guido doesn't get it in a longer
post, if prompted.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion
___
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: Software Development using Freebsd.

2012-02-06 Thread Chad Perrin
On Mon, Feb 06, 2012 at 07:36:46PM -0800, Randal L. Schwartz wrote:
  DDa == Da Rock writes:
 
  Would you do that with Python or something else?
 
 DDa Depending on what you really need to solve decides your
 DDa language. Others have offered advice here, but may I suggest Perl?
 DDa For most data and its proven ability to handle/match string data it
 DDa is very useful. And using tk it will run on windows as well.
 
 At this point, there's absolutely nothing that Python can do that Perl
 can't, and very likely vice versa.
 
 However, from personal experience, I know that Larry Wall understands
 Object Oriented Programming, and Guido definitely doesn't get it.
 Obviously, other people have worked on both languages, but keep that in
 mind.  I can present my evidence of how Guido doesn't get it in a longer
 post, if prompted.

I'm definitely curious.  If you don't think this is the place for it, I'd
love to see your explanation in private email or by other means.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.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: Software Development using Freebsd.

2012-02-06 Thread Da Rock

On 02/07/12 14:06, Chad Perrin wrote:

On Mon, Feb 06, 2012 at 07:36:46PM -0800, Randal L. Schwartz wrote:

DDa == Da Rock writes:

Would you do that with Python or something else?

DDa  Depending on what you really need to solve decides your
DDa  language. Others have offered advice here, but may I suggest Perl?
DDa  For most data and its proven ability to handle/match string data it
DDa  is very useful. And using tk it will run on windows as well.

At this point, there's absolutely nothing that Python can do that Perl
can't, and very likely vice versa.

However, from personal experience, I know that Larry Wall understands
Object Oriented Programming, and Guido definitely doesn't get it.
Obviously, other people have worked on both languages, but keep that in
mind.  I can present my evidence of how Guido doesn't get it in a longer
post, if prompted.

I'm definitely curious.  If you don't think this is the place for it, I'd
love to see your explanation in private email or by other means.


+1
___
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


Kernel stalling at pci0: ACPI bus on pcib0

2012-02-06 Thread Will McCutcheon
Hello all,

I recently got a HP t5700 thin client that I wanted to turn into a
firewall using pfSense. For reference, this system uses a Transmeta Crusoe
TM5800 CPU with a VIA chipset that I'm having difficulty identifying. My
issue is that about half of the time the kernel will stall during startup
after the following:

Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:15:25 UTC 2012
r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/CENERIC i386
CPU: Transmeta(tm) Crusoe(tm) Processor TM5800 (997.69-MHz 586-class CPU)
  Origin = CenuineTMx86  Id = 0x543  Family = 5  Model = 4  Stepping = 3
  Features= 0x84893fFPU,VME,DE,PSE,TSC,MSR,CX8,SEP,CMOV,PN,MMX
real memory  = 270532608 (258 MB)
avail memory = 226930688 (216 MB)
kbd1 at kbdmux0
acpi0: I-BASE AWRDACPI on motherboard
acpi0: Power Button (fixed)
acpi0: Sleep Button (fixed)
acpi0: reservation of 0, a (3) failed
acpi0: reservation of 10, eef (3) failed
acpi_timer0: couldn't allocate resource (port 0x4008)
cpu0: ACPI CPU on acpi0
acpi_button0: Power Button on acpi0
pcib0: ACPI Host-PCI bridge port
Oxcf8-0xcff,0x4000-0x407f,0x4080-0x40ff,0x500
0-0x500f on acpi0
pcib0: Length mismatch for 4 range: f00 vs eff
pcib0: Length mismatch for 4 range: aff0 vs afef
pciO: ACPI PCI bus on pcib0

If I power the system off and on again there's about a 50/50 chance it
will start up properly, whereupon it will run for days without issue. It's
just during startup that I see any problems. I've tried two separate
systems of the same model but they both exhibit the same issue, thus
suggesting it's not a one-off hardware defect. I tried both pfSense 2.0.1
(which is FreeBSD 8.1-based) and FreeBSD 9.0-RELEASE from a USB stick, but
they exhibited the same issue.

I do see some acpi0 and pcib0 messages in there that seem possibly
problematic, but I'm a bit out of my depth here. Could anyone spare a
moment to suggest any further troubleshooting steps I might try? Thanks so
much for your time!

Will
___
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: Kernel stalling at pci0: ACPI bus on pcib0

2012-02-06 Thread Erich Dollansky
Hi,

On Tuesday 07 February 2012 12:40:09 Will McCutcheon wrote:
 Hello all,
 
 I recently got a HP t5700 thin client that I wanted to turn into a
 firewall using pfSense. For reference, this system uses a Transmeta Crusoe
 TM5800 CPU with a VIA chipset that I'm having difficulty identifying. My
 issue is that about half of the time the kernel will stall during startup
 after the following:
 
this reminds me of my notebook with the same Crusoe CPU. I have had to leave it 
with 7.x as newer version gave problems. The problems have been different but 
it looked like some driver could not handle the peripherals properly. It booted 
but was unusable.

I never tried 9 on it.

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


impossible? postfix filter partial virtual domain mailboxes

2012-02-06 Thread Da Rock
I have a postfix mta (beauty mate!) and I've managed to twist its 
panties into a real tight knot by using a filter (smtpd), and through 
using it to put my isp mail into a local box thanks to fetchmail.


The problem I'm facing is that it now won't send mail to any other users 
on my isp's domain. I did manage to get it working _before_ I put the 
filter on, I used vtransport tables to tell it to deliver via smtp 
except _my_ address.


Other than that it works fine, and the problem doesn't come up often- 
usually just about the time I need to complain to my isp (says a lot 
about their service, doesn't it?), maybe once a year?


One thing that did raise my eyebrow when I put the filter in was the 
receive_override_options, which is set to no_address_mappings. Could 
this be the issue?


What would make me happier is to deliver directly via maildrop, but that 
raises a lot of other issues... I'd have to figure out how to access the 
mail via courier, shared folders, etc. I'm not sure that would be 
worthwhile.


Thoughts?

TIA
___
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: Kernel stalling at pci0: ACPI bus on pcib0

2012-02-06 Thread Da Rock

On 02/07/12 15:48, Erich Dollansky wrote:

Hi,

On Tuesday 07 February 2012 12:40:09 Will McCutcheon wrote:

Hello all,

I recently got a HP t5700 thin client that I wanted to turn into a
firewall using pfSense. For reference, this system uses a Transmeta Crusoe
TM5800 CPU with a VIA chipset that I'm having difficulty identifying. My
issue is that about half of the time the kernel will stall during startup
after the following:


this reminds me of my notebook with the same Crusoe CPU. I have had to leave it 
with 7.x as newer version gave problems. The problems have been different but 
it looked like some driver could not handle the peripherals properly. It booted 
but was unusable.

I never tried 9 on it.

Maybe try hackers@?
___
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