Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

freebsd-questions Digest, Vol 306, Issue 1

1 view
Skip to first unread message

freebsd-ques...@freebsd.org

unread,
Apr 12, 2010, 7:46:55 AM4/12/10
to freebsd-...@freebsd.org
Send freebsd-questions mailing list submissions to
freebsd-...@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
or, via email, send a message with subject or body 'help' to
freebsd-ques...@freebsd.org

You can reach the person managing the list at
freebsd-que...@freebsd.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-questions digest..."


Today's Topics:

1. Re: host & dig (Walter)
2. Re: Auto update (RW)
3. IPFW and separate data files. (Jerry)
4. FreeBSD PXE installation howto (Egoitz Aurrekoetxea Aurre)
5. Re: Nethogs or similar for FreeBSD? (krad)
6. Re: Auto update (krad)
7. Re: Auto update (krad)
8. Re: Auto update (Randal L. Schwartz)
9. linux-pango update fails (Chad Perrin)
10. Re: FreeBSD PXE installation howto (Diego F. Arias R.)
11. Re: FreeBSD PXE installation howto (Chris Whitehouse)
12. Re: are the are C [or C++] src sites .... (Gary Kline)
13. Re: reliable rs-232 (Grzegorz Daniluk)
14. VirtualBox is still broken (Yuri)
15. Re: are the are C [or C++] src sites .... (C. P. Ghost)
16. Re: reliable rs-232 (Maxim Khitrov)
17. Re: are the are C [or C++] src sites .... (Charlie Kester)
18. Re: ACPI? problem with release 8.0 (Malcolm Kay)
19. Re: ACPI? problem with release 8.0 (Adam Vande More)
20. Re: setting sendmail.mc options? (Giorgos Keramidas)
21. Re: are the are C [or C++] src sites .... (Andreas Maechler)
22. Re: Auto update (krad)
23. Re: How to make "man" pages (Fbsd1)
24. Re: How to make "man" pages (Giorgos Keramidas)
25. fetchmail - problems with ssl since upgrade to 6.3.16
(Ewald Jenisch)
26. Re: Online school for FreeBSD (herbert langhans)
27. Re: fetchmail - problems with ssl since upgrade to 6.3.16 (Jerry)
28. cups 1.3.9 (from ports) && Cyrillic fonts (Matthias Apitz)
29. pgp5-filter-5.3.2, php5-imap-5.3.2, php-extensions-1.4 (n dhert)
30. detachable x session (X11 application that acts like
sysutils/screen) (Jim)


----------------------------------------------------------------------

Message: 1
Date: Sun, 11 Apr 2010 07:10:50 -0500
From: Walter <walt...@earthlink.net>
Subject: Re: host & dig
To: Adam Vande More <amvan...@gmail.com>
Cc: Questions <freebsd-...@freebsd.org>
Message-ID: <4BC1BC4...@earthlink.net>
Content-Type: text/plain; charset="us-ascii"


Adam Vande More wrote:

I used telnet to connect to 68.204.xxx.xxx
it tells me I've connected to [1]xxx.xxx.204.68.cfl.res.rr.com.
(backwards, right?), then I log in.

No, you have to a connection before you login. You want to *strongly*
consider using ssh instead of telnet. You may also be referring the
format of the DNS query result which known as
[2]http://en.wikipedia.org/wiki/Reverse_DNS_lookup

I DID have a connection. ??? Maybe I gave too much detail,
but the point is that the IP yielded by host/dig did not match
what "whatismyip.com" gave here. I'd like to know why.

After user/pass entry, it says connected from "user-yyyyyyy.cab"

(replaced seemingly random name with "yyyyyyy" in case
it's not transient)
My external IP here is 24.110.nnn.nnn
The issue:
When I use either "host" or "dig" to give me the IP address
from "user-yyyyyyy.cab", they tell me: 208.68.zzz.zzz
(Ping gives the same.)
So, I'm still at a loss, I think, to know the originating IP.
Should a firewall rule blocking 208.68.zzz.zzz actually
operate against 24.110.nnn.nnn?

I don't understand the question, what is the rule?

I'd STILL like to know the true source IP to be able to connect
back to it.

man sockstat
man netstat

Thanks. Did that:
"netstat -n" gives the correct IP.
"sockstat" does also.
I couldn't find anything in the host or dig man pages that
indicated to me that they could be made to yield the proper
24.110.*.* IP address.
About the "rule"::: I was just mentioning one of the reasons
I want the IP address is so I can monitor multiple bad login
attempts to block the troublesome IP with a firewall rule. I
ALSO would like the correct IP for another purpose (project),
that involves connecting back to the source IP.
I will give a try to find out which IP address the ipfw firewall
operates on - the 208.68.*.* one or the 24.110.*.* one. It's not
obvious which at this point to me.
Thanks.
Walter

References

1. http://xxx.xxx.204.68.cfl.res.rr.com/
2. http://en.wikipedia.org/wiki/Reverse_DNS_lookup


------------------------------

Message: 2
Date: Sun, 11 Apr 2010 13:11:57 +0100
From: RW <rwmai...@googlemail.com>
Subject: Re: Auto update
To: freebsd-...@freebsd.org
Message-ID: <20100411131...@gumby.homeunix.com>
Content-Type: text/plain; charset=US-ASCII

On Sun, 11 Apr 2010 11:32:27 +0200
Jos Chrispijn <ker...@webrz.net> wrote:

>
> On 11-4-2010 9:41, Doug Hardie wrote:
> > A cheesy way to do that is to use a popen ("tail -f
> > /var/log/auth.log", "r") and then read that. It will give you every
> > login regardless of ssh, telnet etc. You could then generate the
> > emails from that. I have no idea just how resource intensive this
> > might be. You would also have to ensure it got started by rc during
> > boot._______________________________________________
>
> In order to find out if someone logged in, I should then first copy
> auth.log to auth2.log, and do a compare and then do the tail trick.
> Have to cron that every half a minute.
> I would like to know if there is something that is alterted on the
> moment that someone logs on thus forcing evt. your tail suggestion

tail -f *is* event driven. When a new line is appended to auth.log,
tail will output it.

You should probably use

$ tail -F -n 0 /var/log/auth.log


------------------------------

Message: 3
Date: Sun, 11 Apr 2010 11:57:40 -0400
From: Jerry <freebs...@seibercom.net>
Subject: IPFW and separate data files.
To: freebsd-...@freebsd.org
Message-ID: <20100411115...@scorpio.seibercom.net>
Content-Type: text/plain; charset=UTF-8

I am using IPFW on a FreeBSD-7.3 machine. Presently, I am loading
several tables for IPFW. So far, I have just keep the data for the
tables in the actual "ipfw-rules" referenced in the 'rc.conf' file
itself. What I would like to do is keep the data for these tables in
separate files and just have them imported when the firewall is loaded.
I have constructed a simple script that is called from the 'ipfw-rules'
file.

My question is if there is a better way of accomplishing this? Is there
a downside to doing this way? The data for these tables tends to be
dynamic and I would rather work with the separate files than edit the
master one and risk messing it up.

--
Jerry
FreeBS...@seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__________________________________________________________________

Birth, n.: The first and direst of all disasters.

Ambrose Bierce, "The Devil's Dictionary"


------------------------------

Message: 4
Date: Sun, 11 Apr 2010 18:21:42 +0200
From: Egoitz Aurrekoetxea Aurre <ego...@ramattack.net>
Subject: FreeBSD PXE installation howto
To: freebsd-...@freebsd.org
Message-ID: <F79B7C55-2A17-4455...@ramattack.net>
Content-Type: text/plain; charset=us-ascii

Hi,

I'm working on a project for setting up a freebsd installation server with pxe. When I started I see the doc was a bit old-fashioned... so I started looking at some blogs... freebsd doc that could help me understanding the whole process and so on... finally I have ended looking at source code of some involved parts like sysintall, boot stages and so on.... for understanding all properly for setting up this service. I have written a documentation that if you see it to be ok... (it seems to be working fine) perhaps, would be nice to appear in handbook or in some official documentation site... So if you see something that should be done in another way... or some point wich you consider it's wrong... please make me know and I'll correct it. The url in wich you could fetch the pdf file is : http://postfixquotareject.ramattack.net/freebsdpxehowto.pdf

Thank you very much.

Bye!!

------------------------------

Message: 5
Date: Sun, 11 Apr 2010 17:56:06 +0100
From: krad <kra...@googlemail.com>
Subject: Re: Nethogs or similar for FreeBSD?
To: Adam Vande More <amvan...@gmail.com>
Cc: Dan Naumov <dan.n...@gmail.com>, mikel king
<mikel...@olivent.com>, freebsd-...@freebsd.org
Message-ID:
<h2ud36406631004110956n8...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On 10 April 2010 22:41, Adam Vande More <amvan...@gmail.com> wrote:

> On Sat, Apr 10, 2010 at 3:14 PM, Dan Naumov <dan.n...@gmail.com> wrote:
>
> >
> > I am on 8.0/amd64. From the website of Nethogs: "Since NetHogs heavily
> > relies on /proc, it currently runs on Linux only."
> >
>
> perhaps something like ntop?
>
>
>
> --
> Adam Vande More
> _______________________________________________
> freebsd-...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questi...@freebsd.org"
>
or man linprocfs


------------------------------

Message: 6
Date: Sun, 11 Apr 2010 18:13:29 +0100
From: krad <kra...@googlemail.com>
Subject: Re: Auto update
To: Doug Hardie <bc...@lafn.org>
Cc: Jos Chrispijn <ker...@webrz.net>, freebsd-...@freebsd.org
Message-ID:
<k2xd36406631004111013zd...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On 11 April 2010 08:41, Doug Hardie <bc...@lafn.org> wrote:

>
> On 10 April 2010, at 23:14, Jos Chrispijn wrote:
>
> > Can someone tell me if there is a way of generating an email on the
> moment that someone logs in to my FreeBSD server? The mail part (phpmail)
> will be easy; I don't know yet how to trigger and pass parameter to this
> script or redirect info to a file (that I then send by email). Thanks.
>
> A cheesy way to do that is to use a popen ("tail -f /var/log/auth.log",
> "r") and then read that. It will give you every login regardless of ssh,
> telnet etc. You could then generate the emails from that. I have no idea
> just how resource intensive this might be. You would also have to ensure it
> got started by rc during boot._________________________


It shouldn't be to bad as I use that method to generate stats from log files
for snmp. The log files I tail have about 200 odd lines per second and the
boxes handle it fine. But they are decentish spec but not extravagant (dell
2850 with 4gig ram)


------------------------------

Message: 7
Date: Sun, 11 Apr 2010 18:16:01 +0100
From: krad <kra...@googlemail.com>
Subject: Re: Auto update
To: RW <rwmai...@googlemail.com>
Cc: freebsd-...@freebsd.org
Message-ID:
<p2hd36406631004111016n7...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

> $ tail -F -n 0 /var/log/auth.log
>
>
Definitely use the -F rather than -f option as it will handle log rotation


------------------------------

Message: 8
Date: Sun, 11 Apr 2010 10:32:06 -0700
From: mer...@stonehenge.com (Randal L. Schwartz)
Subject: Re: Auto update
To: Jos Chrispijn <ker...@webrz.net>
Cc: freebsd-...@freebsd.org
Message-ID: <86aat9u...@red.stonehenge.com>
Content-Type: text/plain; charset=us-ascii

>>>>> "Jos" == Jos Chrispijn <ker...@webrz.net> writes:

Jos> In order to find out if someone logged in, I should then first copy auth.log
Jos> to auth2.log, and do a compare and then do the tail trick. Have to cron that
Jos> every half a minute.

No, just track it with tail -f as was already suggested.

tail -f /var/log/authlog | while read aline; do; ... ; done

The code in the middle will get executed as each line appears in the
file. This even survives authlog renaming when you logroll.

--
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.vox.com/ for Smalltalk and Seaside discussion


------------------------------

Message: 9
Date: Sun, 11 Apr 2010 11:35:33 -0600
From: Chad Perrin <per...@apotheon.com>
Subject: linux-pango update fails
To: FreeBSD Questions <freebsd-...@freebsd.org>
Message-ID: <20100411173...@guilt.hydra>
Content-Type: text/plain; charset="us-ascii"

I'm having an issue with a linux-pango update on a FreeBSD 7.2 system:

---> Upgrading 'linux-pango-1.10.2_3' to 'linux-pango-1.10.2_4'
(x11-toolkits/linux-pango)
---> Building '/usr/ports/x11-toolkits/linux-pango'
===> Cleaning for linux-pango-1.10.2_4
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portupgrade20100411-69066-1498jpj-0 env UPGRADE_TOOL=portupgrade
UPGRADE_PORT=linux-pango-1.10.2_3 UPGRADE_PORT_VER=1.10.2_3 make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! x11-toolkits/linux-pango (linux-pango-1.10.2_3)
(unknown build error)

A Google search for information from the above hasn't proven fruitful.
Any ideas how I could narrow down the exact problem and work out a
solution would be appreciated.

--
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100411/4d2fc6a6/attachment-0001.pgp

------------------------------

Message: 10
Date: Sun, 11 Apr 2010 13:56:48 -0500
From: "Diego F. Arias R." <dak...@gmail.com>
Subject: Re: FreeBSD PXE installation howto
To: Egoitz Aurrekoetxea Aurre <ego...@ramattack.net>
Cc: freebsd-...@freebsd.org
Message-ID:
<q2m3b93bd111004111156je...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

Hello There:

I will read it, just found a mountpoint named puntodemontaje, that maybe you
forgot to translate.

Will check it out latter.

Diego Arias

On Sun, Apr 11, 2010 at 11:21 AM, Egoitz Aurrekoetxea Aurre <
ego...@ramattack.net> wrote:

> Hi,
>
> I'm working on a project for setting up a freebsd installation server with
> pxe. When I started I see the doc was a bit old-fashioned... so I started
> looking at some blogs... freebsd doc that could help me understanding the
> whole process and so on... finally I have ended looking at source code of
> some involved parts like sysintall, boot stages and so on.... for
> understanding all properly for setting up this service. I have written a
> documentation that if you see it to be ok... (it seems to be working fine)
> perhaps, would be nice to appear in handbook or in some official
> documentation site... So if you see something that should be done in another
> way... or some point wich you consider it's wrong... please make me know and
> I'll correct it. The url in wich you could fetch the pdf file is :
> http://postfixquotareject.ramattack.net/freebsdpxehowto.pdf
>
> Thank you very much.
>
> Bye!!_______________________________________________
> freebsd-...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questi...@freebsd.org"
>

--
mmm, interesante.....


------------------------------

Message: 11
Date: Sun, 11 Apr 2010 21:37:26 +0100
From: Chris Whitehouse <cwh...@onetel.com>
Subject: Re: FreeBSD PXE installation howto
To: Egoitz Aurrekoetxea Aurre <ego...@ramattack.net>
Cc: freebsd-...@freebsd.org
Message-ID: <4BC23306...@onetel.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Egoitz Aurrekoetxea Aurre wrote:
> Hi,
>
> I'm working on a project for setting up a freebsd installation server with pxe. When I started I see the doc was a bit old-fashioned... so I started looking at some blogs... freebsd doc that could help me understanding the whole process and so on... finally I have ended looking at source code of some involved parts like sysintall, boot stages and so on.... for understanding all properly for setting up this service. I have written a documentation that if you see it to be ok... (it seems to be working fine) perhaps, would be nice to appear in handbook or in some official documentation site... So if you see something that should be done in another way... or some point wich you consider it's wrong... please make me know and I'll correct it. The url in wich you could fetch the pdf file is : http://postfixquotareject.ramattack.net/freebsdpxehowto.pdf
>
> Thank you very much.
>
> Bye!!_______________________________________________
> freebsd-...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"
>
Hi egoitz

s/wich/which/g

What is this line?
mkdir -p /usr/local/freebsd7/boot/defaults

Should it be
mkdir -p /expert/netboot/freebsd8/boot/defaults/
?

I think the line "Let's copy device.hints for booting the kernel loaded
by loader in this pxe boot. Let's copy too
some routine files for loader (and for forth shell) and a loader
defaults config file." should be above the block of mkdir and cp
commands above.

The phrase "but really it's optional you may not specify -u" probably
should say "but really it's optional, you don't have to specify -u". As
written it means you are not allowed to :)

Could you have used ftpd in the base system instead of tftp in inedt.conf?

Chris


------------------------------

Message: 12
Date: Sun, 11 Apr 2010 15:39:16 -0700
From: Gary Kline <kl...@thought.org>
Subject: Re: are the are C [or C++] src sites ....
To: freebsd-...@freebsd.org
Message-ID: <20100411223...@thought.org>
Content-Type: text/plain; charset=us-ascii

On Sat, Apr 10, 2010 at 12:45:15PM -0700, Charlie Kester wrote:
> On Sat 10 Apr 2010 at 08:19:38 PDT Gary Kline wrote:
> >
> > Sites of parts of websites that have example C functions?
> > [continuing from the ^Subject.
> >
> > I have googled around and found practically nothing; yet, wen
> > I was looking for a math function I found at least two
> > places.
> >
> > Rather than re-inventing the wheel over and again, wouldn't
> > it be nice to have a library of all kinds of functions?
> > --For kernel use, yes, they would need to be BSD specific...
> >
> > ideas?
> >
> > gary
> >
> > PS: As if it weren't obvious, no i haven't had my morning jolt of
> > java yet....
>
>
> Did you try googling for "sample code"? I just did, and the results
> contained several such websites.
>
> Narrowing the search to "sample code c" or "sample code unix" yielded
> even better results.
>
> There are even some sites that you can use to search the vast body of
> existing open-source code, to see how others have used (or implemented)
> a given API.
>
> No, I'm not going to name any specific sites. You now have enough of a
> hint to find them on your own. ;-)
> _______________________________________________
> freebsd-...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"


i used more strict search terms and found around 30 sites.
none seemed that promising.

what i am thinking of is functions that work in any of
several venues:

math,
[every] science,
strings,
filenames,
queues,
stacks,
arrays,
<whatever>.

thanks for your insights. i used something like
"c-language functions" :-)

gary

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

------------------------------

Message: 13
Date: Mon, 12 Apr 2010 01:22:34 +0200
From: Grzegorz Daniluk <li...@o2.pl>
Subject: Re: reliable rs-232
To: freebsd-...@freebsd.org
Message-ID: <4BC259BA...@o2.pl>
Content-Type: text/plain; charset=ISO-8859-2; format=flowed

Thank you very much for all your advices.
The device I'm going to 'talk to' is cesium clock with rs-232 interface.
So it is not possible to simply change the interface to differential
one. Connection cable can be short and the transmission speed can be
slow. The most important thing for me is to ensure the long term
communication. Not to lose any data is very important when periodically
monitoring cesium parameters. We are speaking here about months and
years of continous operation. That is why I'm afraid of something
'strange' happens to my rs-232 interface and communication. Maybe I'm
too afraid of strange magic, but still, is it possible that my rs-232
could change its transmission parameters as a result of e.g. nearby
elecrical interference ? Or, in general, what bad thing could happen to
me in such scenario.

Thanks a lot,
Greg


------------------------------

Message: 14
Date: Sun, 11 Apr 2010 16:30:08 -0700
From: Yuri <yu...@rawbw.com>
Subject: VirtualBox is still broken
To: vb...@freebsd.org, freebsd-...@freebsd.org
Message-ID: <4BC25B80...@rawbw.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

I still see VBox hanging the host system.
This time I was able to install Ubuntu-9.10, then I ran it and FreeBSD
hanged during Ubuntu system updates.

VBox worked fine before the late January. After this some kernel change
was checked in that caused immediate hangs. Later something changed and
now host OS hangs only after a while.

kernel module was rebuilt after the system update. nothing gets logged
in /var/log/messages.

Yuri

virtualbox-ose-3.1.6_2
virtualbox-ose-kmod-3.1.6
8.0-STABLE


------------------------------

Message: 15
Date: Mon, 12 Apr 2010 01:41:53 +0200
From: "C. P. Ghost" <cpg...@cordula.ws>
Subject: Re: are the are C [or C++] src sites ....
To: Gary Kline <kl...@thought.org>
Cc: freebsd-...@freebsd.org
Message-ID:
<q2xd74eb87c1004111641q7...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Mon, Apr 12, 2010 at 12:39 AM, Gary Kline <kl...@thought.org> wrote:
>
> � � �� what i am thinking of is functions that work in any of
> � � � �several venues:
>
> � � � � � � � �math,

For maths, I'm particularly fond of GiNaC (+CLN)
FreeBSD ports: math/GiNaC, math/cln
WWW: http://www.ginac.de/ and http://www.ginac.de/CLN/

Of course, there's also the more traditional stuff like math/atlas[-devel]
which takes forever to compile. ;-)

> � � � � � � � �[every] science,

Very application specific.

> � � � � � � � �strings,
> � � � � � � � �filenames,
> � � � � � � � �queues,
> � � � � � � � �stacks,
> � � � � � � � �arrays,

If you're interested in C++ classes for all this, you could check
out the STL (Standard Templates Library), and additional libraries
like Boost.

> � � � � � � � �thanks for your insights. �i used something like
> � � � � � � � �"c-language functions" �:-)

That's way too broad to yield useful results! :-)

I'd suggest that you browse the ports collection for stuff you like
(domain oriented), and in most cases, the ports will point to some
library or program written in C or C++ that you can learn from. Just
looking for C/C++ code per se is kind of pointless (IMHO), if you're
not motivated by a particular application.

-cpghost.

--
Cordula's Web. http://www.cordula.ws/


------------------------------

Message: 16
Date: Sun, 11 Apr 2010 20:58:52 -0400
From: Maxim Khitrov <mkhi...@gmail.com>
Subject: Re: reliable rs-232
To: Grzegorz Daniluk <li...@o2.pl>
Cc: freebsd-...@freebsd.org
Message-ID:
<t2p26ddd1751004111758j2...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

2010/4/11 Grzegorz Daniluk <li...@o2.pl>:
> Thank you very much for all your advices.
> The device I'm going to 'talk to' is cesium clock with rs-232 interface. So
> it is not possible to simply change the interface to differential one.
> Connection cable can be short and the transmission speed can be slow. The
> most important thing for me is to ensure the long term communication. Not to
> lose any data is very important when periodically monitoring cesium
> parameters. We are speaking here about months and years of continous
> operation. That is why I'm afraid of something 'strange' happens to my
> rs-232 interface and communication. Maybe I'm too afraid of strange magic,
> but still, is it possible that my rs-232 could change its transmission
> parameters as a result of e.g. nearby elecrical interference ? Or, in
> general, what bad thing could happen to me in such scenario.

I've had to connect medical vital-sign monitors to ruggedized mobile
computers over RS-232 and write the software for data collection. In
my case, communication was packet-based and each packet had a 2-byte
CRC16 field appended to the end, which made it rather easy to detect
corrupt data. The goal was to have reliable communication for a period
of a few weeks; the time between equipment inspections.

The only real problem I ran into was that certain power events, such
as attaching an external power supply to the computer or turning off
the display, would cause the serial port buffer to overflow and
corrupt one or two packets. This seems to be a peculiarity with the
computers that we're using, since there was no actual data overflow,
just corruption. I've tested everything using regular desktop machines
and never had this problem before. For our purposes, the loss of a
single packet is no big deal.

The point is that the reliability of the connection depends on the
equipment you are using. Use a shielded cable that's as short as
possible. A ferrite bead on the cable might help eliminate
high-frequency noise. Keep the cable away from power cables or
supplies. The lowest usable baud rate should be less prone to
corruption. Beyond that, there really isn't much you can do to prevent
errors at a physical level.

Obviously, be sure to configure your UART correctly (i.e. baud rate,
bits per byte, parity bits, stop bits, and so on). I've never seen a
UART reconfigure itself due to electrical interference, but it is
possible for you to start getting framing errors if the clock
synchronization is off. Here I don't really have any advice for you,
except to test everything as much as you can in its final
configuration.

Avoiding buffer overruns is the responsibility of the software that
you're using, but it can be affected by the OS. Consider the setup of
your system. If you expect a high load on the CPU, be sure to give
higher priority to the program that's reading data from the serial
port. If the program is kept in the run queue for too long, you may
start losing bytes (depending on how fast they are arriving and the
size of the receive buffer). If you're doing some processing of the
data as it arrives, consider running that code in a separate thread
from the one that's reading the serial port. How to design reliable
software depends on the protocol you're using.

Test everything... If it runs fine for a week, it'll probably be ok
for a month. However, I think that expecting the link to work for
several years without a single corrupt bit is asking too much (if that
is your goal). In general, when dealing with RS-232 the best you can
do is detect an error using parity bits or checksum/crc values at the
protocol level. Correcting errors after they happen could be
difficult.

When it comes to changing the interface type, you might consider using
a serial-to-usb adapter. I've used those successfully with an early
prototype of our system, but we later removed them to have a more
secure physical connection. This may or may not be good advice for
you. I'm just throwing it out there in case you start seeing corrupt
data with a regular RS-232 connection. Adding a high-quality USB
adapter (I used Tripp Lite Keyspan) means an additional buffer for
sending and receiving data. It also means more hardware that can fail,
which is why I say that it may not be a good option for you. Also, I
was doing this on Windows and have no idea whether FreeBSD supports
such setup.

- Max


------------------------------

Message: 17
Date: Sun, 11 Apr 2010 19:18:53 -0700
From: Charlie Kester <cork...@comcast.net>
Subject: Re: are the are C [or C++] src sites ....
To: freebsd-...@freebsd.org
Message-ID: <20100412021...@comcast.net>
Content-Type: text/plain; charset=us-ascii; format=flowed

On Sun 11 Apr 2010 at 15:39:16 PDT Gary Kline wrote:
>On Sat, Apr 10, 2010 at 12:45:15PM -0700, Charlie Kester wrote:
>
> i used more strict search terms and found around 30 sites.
> none seemed that promising.
>
> what i am thinking of is functions that work in any of
> several venues:
>
> math,
> [every] science,
> strings,
> filenames,
> queues,
> stacks,
> arrays,
> <whatever>.
>
> thanks for your insights. i used something like
> "c-language functions" :-)
>
> gary

Try searching for 'algorithms'.

One of my favorite sites for that is the Stony Brook Algorithms
Repositor: http://www.cs.sunysb.edu/~algorith/

The Algorithm Design book associated with that site is also quite good.

But most good algorithms sites and books will have something on the
topics you list.


------------------------------

Message: 18
Date: Mon, 12 Apr 2010 15:31:33 +0930
From: Malcolm Kay <malco...@internode.on.net>
Subject: Re: ACPI? problem with release 8.0
To: freebsd-...@freebsd.org
Message-ID: <201004121531.33...@internode.on.net>
Content-Type: text/plain; charset="iso-8859-1"

I desperately need to make some progress on this issue.

Is it likely that the issue is real rather than hardware
or disk corruption? Earlier releases are operating OK on the same
machine.

I have now confirmed that:
debug.acpi.disabled=acad button cpu lid thermal timer video
still leaves the system crashing and powering down when idle for
a while. And the more extensive:
debug.acpi.disabled=acad bus children button cmbat cpu ec isa
lid pci pci_link sysresource thermal timer video
does the same.

I don't really need power management but with acpi disabled the
disks are not visible to the system.

Are there sysctl variables that can influence this behaviour?
Currently I believe we have:

hw.acpi.supported_sleep_state: S1 S4 S5
hw.acpi.power_button_state: S5
hw.acpi.sleep_button_state: S1
hw.acpi.lid_switch_state: NONE
hw.acpi.standby_state: S1
hw.acpi.suspend_state: NONE
hw.acpi.sleep_delay: 1
hw.acpi.s4bios: 0
hw.acpi.verbose: 0
hw.acpi.disable_on_reboot: 0
hw.acpi.handle_reboot: 0
hw.acpi.reset_video: 0
hw.acpi.cpu.cx_lowest: C1
machdep.idle: amdc1e
machdep.idle_available: spin, amdc1e, hlt, acpi,

However on the earlier RELEASEs that work I note we do not have
machdep.idle or machdep.idle_available. Instead I find:
machdep.cpu_idle_hlt: 1
machdep.hlt_cpus: 0

Although I've not been able to relate this directly to my problem
from Googling it seems that there some issues with amdc1e under
BSD, Linux and perhaps Windows. But all the references seem to
amd c1e are related to systems in 64 bit mode while I am running
(or trying to run) i386 so I wonder why I have:
machdep.idle: amdc1e

Maybe my problem is not acpi as such but this idle mode.

My thought is to change this to
machdep.idle: hlt
or even
machdep.idle: acpi

Any comments or ideas please!

Thank you for your attention.

Malcolm Kay


On Sat, 10 Apr 2010 05:22 pm, Malcolm Kay wrote:
> My machine had two SATA 300GB drives
> (WDC WD3200KS-00PFB0 21.00M21) one carrying FreeBSD
> RELEASE-6.3 and the other RELEASE-7.0 all of which worked OK.
>
> Recently added SATA 1TB (WDC WD10EADS-00P8B0 01.00A01) and
> installed RELEASE 8.0 thereon. When I boot to RELEASE 8.0
> I find after some time, few minutes to rather more minutes
> the system just powers down without warning or any obvious
> cause. It seems to mostly happen when the system is relatively
> quiet.
>
> Suspecting the ACPI I added:
> hint.acpi.0.disabled=1
> to loader.conf.
> I then found RELEASE 8.0 would not boot -- or at least
> it was unable to mount root. I get a "mountroot>" prompt
> but this seemed not to accept anything I could think of,
> and "?" to list available targets yielded nothing. Rebooting
> and overriding this with option 2 (enable ACPI) in the boot
> menu took me back to a bootable but fragile system.
>
> Changing the loader.conf entry to:
> debug.acpi.disabled=all
> had the same effect as the hint.acpi.0.disabled=1.
>
> I then thought to be somewhat selective with
> debug.acpi.disabled and intended to try:
> debug.acpi.disabled=acad button cpu lid thermal timer video
> only now as I write this I discover I actually entered:
> debug.acpi.disabled=acadbutton cpu lid thermal timer video
>
> Now the RELEASE-8.0 booted but remained fragile.
>
> I've repaired this last entry and will proceed to try it.
> Meanwhile I feel I am fumbling about in the dark without
> sufficient (or any real) knowledge of the range of tasks
> performed by ACPI.
>
> Is my guess that I have an interaction problem between ACPI
> and RELEASE-8.0 a reasonable one? Where can I go from here?
>
> The system uses a Gigabyte GA-M55SLI-S4 mother board and the
> prcessor is AMD Athlon(tm) 64 X2 Dual Core Processor 5600+
>
> Please offer suggestions or comments.
>
> Malcolm Kay
>
>
> _______________________________________________
> freebsd-...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questi...@freebsd.org"


------------------------------

Message: 19
Date: Mon, 12 Apr 2010 02:10:01 -0500
From: Adam Vande More <amvan...@gmail.com>
Subject: Re: ACPI? problem with release 8.0
To: Malcolm Kay <malco...@internode.on.net>
Cc: freebsd-...@freebsd.org
Message-ID:
<g2r6201873e1004120010ge...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Mon, Apr 12, 2010 at 1:01 AM, Malcolm Kay
<malco...@internode.on.net>wrote:

> I desperately need to make some progress on this issue.
>
> Is it likely that the issue is real rather than hardware
> or disk corruption? Earlier releases are operating OK on the same
> machine.
>
> I have now confirmed that:
> debug.acpi.disabled=acad button cpu lid thermal timer video
> still leaves the system crashing and powering down when idle for
> a while. And the more extensive:
> debug.acpi.disabled=acad bus children button cmbat cpu ec isa
> lid pci pci_link sysresource thermal timer video
> does the same.
>
> I don't really need power management but with acpi disabled the
> disks are not visible to the system.
>
> Are there sysctl variables that can influence this behaviour?
> Currently I believe we have:
>
> hw.acpi.supported_sleep_state: S1 S4 S5
> hw.acpi.power_button_state: S5
> hw.acpi.sleep_button_state: S1
> hw.acpi.lid_switch_state: NONE
> hw.acpi.standby_state: S1
> hw.acpi.suspend_state: NONE
> hw.acpi.sleep_delay: 1
> hw.acpi.s4bios: 0
> hw.acpi.verbose: 0
> hw.acpi.disable_on_reboot: 0
> hw.acpi.handle_reboot: 0
> hw.acpi.reset_video: 0
> hw.acpi.cpu.cx_lowest: C1
> machdep.idle: amdc1e
> machdep.idle_available: spin, amdc1e, hlt, acpi,
>
> However on the earlier RELEASEs that work I note we do not have
> machdep.idle or machdep.idle_available. Instead I find:
> machdep.cpu_idle_hlt: 1
> machdep.hlt_cpus: 0
>
> Although I've not been able to relate this directly to my problem
> from Googling it seems that there some issues with amdc1e under
> BSD, Linux and perhaps Windows. But all the references seem to
> amd c1e are related to systems in 64 bit mode while I am running
> (or trying to run) i386 so I wonder why I have:
> machdep.idle: amdc1e
>
> Maybe my problem is not acpi as such but this idle mode.
>
> My thought is to change this to
> machdep.idle: hlt
> or even
> machdep.idle: acpi
>
> Any comments or ideas please!
>
> Thank you for your attention.
>

Is there anything in /var/log/messages which indicates the cause? Can you
monitor cpu temp?


--
Adam Vande More


------------------------------

Message: 20
Date: Mon, 12 Apr 2010 10:14:34 +0300
From: Giorgos Keramidas <kera...@ceid.upatras.gr>
Subject: Re: setting sendmail.mc options?
To: Jeff Hamann <jeff....@forestinformatics.com>
Cc: freebsd-...@freebsd.org
Message-ID: <87aat9k...@kobe.laptop>
Content-Type: text/plain; charset=us-ascii

On Mon, 5 Apr 2010 03:53:18 -0700, Jeff Hamann <jeff....@forestinformatics.com> wrote:
> I'm sure this isn't the correct place for this question, but I'm not
> sure where to go as I only use my FreeBSD Unleashed to admin my
> sendmail.
>
> I'm a newbie at this and could use a little help.
>
> I'm trying to configure sendmail, using the freebsd port, to only
> relay mail once a day (I hate emails every few minutes), and if
> possible to hold outbound mail in the que (I think there's some que)
> until some fixed time (like 7am) so that all my mail is transferred
> then.
>
> I've tried adding:
>
> #sendmail_flags="-bp -q480m" and
> #sendmail_flags="-q120m"
>
> after my
>
> sendmail_enable="YES"
>
> and that didn't seem to work.

There are different options for each instance of Sendmail:

$ grep 'sendmail.*flags' /etc/defaults/rc.conf
sendmail_flags="-L sm-mta -bd -q30m" # Flags to sendmail (as a server)
sendmail_submit_flags="-L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost"
sendmail_outbound_flags="-L sm-queue -q30m" # Flags to sendmail (outbound only)
sendmail_msp_queue_flags="-L sm-msp-queue -Ac -q30m"
$

So you have to set the sendmail_xxx_flags of the daemon you are using,
instead of the global sendmail_flags.

------------------------------

Message: 21
Date: Mon, 12 Apr 2010 09:03:27 +0200
From: Andreas Maechler <amae...@gmx.ch>
Subject: Re: are the are C [or C++] src sites ....
To: freebsd-...@freebsd.org
Message-ID:
<j2x5ff53d351004120003n6...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Also consider http://www.google.com/codesearch which lets you search
through public code in many different ways.

Andy

On Mon, Apr 12, 2010 at 4:18 AM, Charlie Kester <cork...@comcast.net> wrote:
>
> On Sun 11 Apr 2010 at 15:39:16 PDT Gary Kline wrote:
>>
>> On Sat, Apr 10, 2010 at 12:45:15PM -0700, Charlie Kester wrote:
>>
>> � � � �i used more strict search terms and found around 30 sites.
>> � � � �none seemed that promising.
>>
>> � � � �what i am thinking of is functions that work in any of
>> � � � �several venues:
>>
>> � � � � � � � �math,
>> � � � � � � � �[every] science,
>> � � � � � � � �strings,
>> � � � � � � � �filenames,
>> � � � � � � � �queues,
>> � � � � � � � �stacks,
>> � � � � � � � �arrays,
>> � � � � � � � �<whatever>.
>>
>> � � � � � � � �thanks for your insights. �i used something like
>> � � � � � � � �"c-language functions" �:-)
>>
>> � � � � � � � �gary
>
> Try searching for 'algorithms'.
> One of my favorite sites for that is the Stony Brook Algorithms
> Repositor: http://www.cs.sunysb.edu/~algorith/
>
> The Algorithm Design book associated with that site is also quite good.
>
> But most good algorithms sites and books will have something on the
> topics you list.
> _______________________________________________
> freebsd-...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"
>


------------------------------

Message: 22
Date: Mon, 12 Apr 2010 09:44:57 +0100
From: krad <kra...@googlemail.com>
Subject: Re: Auto update
To: "Randal L. Schwartz" <mer...@stonehenge.com>
Cc: Jos Chrispijn <ker...@webrz.net>, freebsd-...@freebsd.org
Message-ID:
<j2xd36406631004120144k1...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On 11 April 2010 18:32, Randal L. Schwartz <mer...@stonehenge.com> wrote:

> >>>>> "Jos" == Jos Chrispijn <ker...@webrz.net> writes:
>
> Jos> In order to find out if someone logged in, I should then first copy
> auth.log
> Jos> to auth2.log, and do a compare and then do the tail trick. Have to
> cron that
> Jos> every half a minute.
>
> No, just track it with tail -f as was already suggested.
>
> tail -f /var/log/authlog | while read aline; do; ... ; done
>
> The code in the middle will get executed as each line appears in the
> file. This even survives authlog renaming when you logroll.
>
> --
> 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.vox.com/ for Smalltalk and Seaside
> discussion
> _______________________________________________
> freebsd-...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questi...@freebsd.org"
>

no use -F not -f as log rotation will break it otherwise


------------------------------

Message: 23
Date: Mon, 12 Apr 2010 16:49:04 +0800
From: Fbsd1 <fb...@a1poweruser.com>
Subject: Re: How to make "man" pages
To: FreeBSD Questions <freebsd-...@freebsd.org>
Message-ID: <4BC2DE80...@a1poweruser.com>
Content-Type: text/plain; charset=UTF-8; format=flowed

For the questions list archives:
I wrote an How To Creating a manpage from scratch.

You can read it here.

http://www.daemonforums.org/showthread.php?t=4602

Thanks to all the people who replied to my post.

Joe

------------------------------

Message: 24
Date: Mon, 12 Apr 2010 12:34:48 +0300
From: Giorgos Keramidas <kera...@ceid.upatras.gr>
Subject: Re: How to make "man" pages
To: Fbsd1 <fb...@a1poweruser.com>
Cc: FreeBSD Questions <freebsd-...@freebsd.org>
Message-ID: <871velk...@kobe.laptop>
Content-Type: text/plain; charset=us-ascii

On Mon, 12 Apr 2010 16:49:04 +0800, Fbsd1 <fb...@a1poweruser.com> wrote:
> For the questions list archives:
> I wrote an How To Creating a manpage from scratch.
>
> You can read it here.
>
> http://www.daemonforums.org/showthread.php?t=4602
>
> Thanks to all the people who replied to my post.

Nice post. This is exactly the sort of post that raises the signal to
noise ratio in web-based forums. Good job writing it :-)

You should probably try to grok some of the semantic markup requests
like .Op too though. For example this part:

: SYNOPSIS
: jail [-dhi] [-J jid_file] [-l -u username | -U username] [-c | -m]
: jail [-hi] [-n jailname] [-J jid_file] [-s securelevel]
: [-l -u username | -U username] [path hostname [ip[,..]]

Is commonly written in several lines. If you try to read each line
separately they do make sense, e.g.:

.Nm
.Op Fl dhi

Will render as:

jail [-dhl]

with the flag letters displayed in bold text.

The .Op macro wraps everything in [...] brackets.

The .Fl macro marks up 'command flags'.

It takes a bit of practice to write manpages using this sort of markup,
but the displayed output looks great in ascii, PostScript or HTML output
modes. So it's worth trying to learn more about it.

------------------------------

Message: 25
Date: Mon, 12 Apr 2010 11:56:19 +0200
From: Ewald Jenisch <a...@jenisch.at>
Subject: fetchmail - problems with ssl since upgrade to 6.3.16
To: freebsd-...@freebsd.org
Message-ID: <20100412095...@aurora.oekb.co.at>
Content-Type: text/plain; charset="us-ascii"

Hi,

Recently during portupgrades fetchmail also got upgraded to
6.3.16. Since then I'm experiencing problems when trying to fetch
mails from a pop server via ssl.

Here's the error message I'm getting:

fetchmail: Issuer Organization: <anonymized>
fetchmail: Issuer CommonName: <anomymized>
fetchmail: Server CommonName: <anomymized>
fetchmail: <anonymized> key fingerprint: <anonymized>
fetchmail: <anonymized> fingerprints match.
fetchmail: Server certificate verification error: self signed certificate
34381474120:error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed:s3_clnt.c:1056:
fetchmail: SSL connection failed.

The above message normally indicates that the cert on the server might
have changed. This however is definitely not the case (I'm managing
the server myself).

Asking google I found a similar report relating to fetchmail 6.3.16
(as in my case) under Linux:

http://bugs.archlinux.org/task/19043

So my questions are:

o) Has anybody else, using fetchmail with ssl, experienced the same
problems after a recent upgrade of fetchmail under FreeBSD?

o) Any known cure against it?

Last but not least, here's my config:

FreeBSD 7.3 recent as per April 09,2010. Fetchmail 6.3.16, openssl 1.0.0

Thanks much in advance for any clue,
-ewald


------------------------------

Message: 26
Date: Mon, 12 Apr 2010 12:45:50 +0200
From: herbert langhans <herbert...@gmx.net>
Subject: Re: Online school for FreeBSD
To: jt <jt...@gci.net>
Cc: freebsd-...@freebsd.org
Message-ID: <20100412104550.GA75407@sandcat>
Content-Type: text/plain; charset=us-ascii

I sign here too - Lucas' Absolute FreeBSD covers practically all the aspects when you new to Unix. Its a good choice. A seperate computer for trying out and break'n'reinstall is also a good idea for a start.

Its like learning a foreign language. At the beginning you may wonder how anybody can ever understand this mumbo jumbo. Then you will get an idea of it and go into an experimental stage where many things go wrong. And after some years you wonder that there was a time before where you could not understand such an obvious, logical concept.

Good luck!
herb langhans


On Fri, Apr 09, 2010 at 09:34:59PM -0800, jt wrote:
> I've been doing searches for online schools that teach FreeBSD. I've been trying to learn on an off for years but when it starts getting complicated, I get stuck. The handbook don't do allot of good.
>
> My goal is simply this. I want to open a small business, A server, To lease out web space, domains, etc etc. I want to start small and possibly expand to a rack of servers and so on.
>
> I've been searching all say and cannot find ANY online schools that teach FreeBSD. From what I understand, FreeBSD is the best for security and control. I'll be leasing out shell space too so I need security like sh3lls.net. A company like that is eventually what Id like to accomplish. But I need to know the ground up. I don't want to trust an employee with root access to my server.
>
> I remember seeing a book out there specific to what I'm trying to do.
>
> Anyway, I hope you can hook me up with a school. Or the proper books anyway. FreeBSD for dummies or something.
>
> You guys do excellent work. I hope not only to learn but someday contribute back to the freebsd community.
>
> Thanks for you're time.
> _______________________________________________
> freebsd-...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

--
sprachtraining langhans
herbert langhans, warschau
http://www.langhans.com.pl
herbert dot raimund at gmx dot net
+0048 603 341 441

------------------------------

Message: 27
Date: Mon, 12 Apr 2010 07:10:32 -0400
From: Jerry <freebs...@seibercom.net>
Subject: Re: fetchmail - problems with ssl since upgrade to 6.3.16
To: freebsd-...@freebsd.org
Message-ID: <20100412071...@scorpio.seibercom.net>
Content-Type: text/plain; charset=UTF-8

On Mon, 12 Apr 2010 11:56:19 +0200, Ewald Jenisch <a...@jenisch.at>
articulated:

> Hi,
>
> Recently during portupgrades fetchmail also got upgraded to
> 6.3.16. Since then I'm experiencing problems when trying to fetch
> mails from a pop server via ssl.
>
> Here's the error message I'm getting:
>
> fetchmail: Issuer Organization: <anonymized>
> fetchmail: Issuer CommonName: <anomymized>
> fetchmail: Server CommonName: <anomymized>
> fetchmail: <anonymized> key fingerprint: <anonymized>
> fetchmail: <anonymized> fingerprints match.
> fetchmail: Server certificate verification error: self signed
> certificate 34381474120:error:14090086:SSL
> routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify
> failed:s3_clnt.c:1056: fetchmail: SSL connection failed.
>
> The above message normally indicates that the cert on the server might
> have changed. This however is definitely not the case (I'm managing
> the server myself).
>
> Asking google I found a similar report relating to fetchmail 6.3.16
> (as in my case) under Linux:
>
> http://bugs.archlinux.org/task/19043
>
> So my questions are:
>
> o) Has anybody else, using fetchmail with ssl, experienced the same
> problems after a recent upgrade of fetchmail under FreeBSD?
>
> o) Any known cure against it?
>
> Last but not least, here's my config:
>
> FreeBSD 7.3 recent as per April 09,2010. Fetchmail 6.3.16, openssl
> 1.0.0

You have obfuscated all of the data so there is no way for anyone to
verify your conclusions. The message indicates that you are using a
self-signed certificate. That warning message is normal. Are you
attempting to verify the certificate with fetchmail? If so, remove the
check an retry the process.

You might be better served on the fetchmail forum.

--
Jerry
FreeBS...@seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__________________________________________________________________

Anger kills as surely as the other vices.


------------------------------

Message: 28
Date: Mon, 12 Apr 2010 13:16:14 +0200
From: Matthias Apitz <gu...@unixarea.de>
Subject: cups 1.3.9 (from ports) && Cyrillic fonts
To: freebsd-...@freebsd.org
Message-ID: <2010041211...@current.Sisis.de>
Content-Type: text/plain; charset="iso-8859-1"


Hello,

I want to print via CUPS (from the ports 1.3.9) in FreeBSD 8-CURRENT
UTF-8 text files with Cyrillic (and other) chars; see the very small
attached file; the conversion of the UTF-8 textfile is done by CUPS's
texttops and someone can simulate this without wasting paper with this
command:

$ CHARSET=utf-8 /usr/local/libexec/cups/filter/texttops 1 rleigh myfile 1 "" < testfile.utf8 > ps

and check the resulting PostScript file with a viewer, for example
Ghostview.

The mapping between the Unicode codepoints and fonts for CUPS is done in
/usr/local/share/cups/charsets/utf-8 which has for Cyrillic chars U-0400...U+04FF:

0400 04FF ltor single Courier Courier-Bold Courier-Italic Courier-Bold-Italic

Using the attached test file all is printed fine, all but the Cyrillic
line. If you run this through Ghostview it says (it seems for the
Cyrillic chars):

$ gs ps
GPL Ghostscript 8.63 (2008-08-01)
Copyright (C) 2008 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Substituting .notdef for afii10035 in the font Courier
Substituting .notdef for afii10077 in the font Courier
Substituting .notdef for afii10085 in the font Courier
...

On a real printer all is printed fine, all but the the Cyrillic line.
Any idea what is missing? Is this a problem with CUPS or with the
viewer?

Thanks in advance

matthias
--
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <gu...@unixarea.de> - w http://www.unixarea.de/
�Ya basta! �Tropas de OTAN, fuera de Afghanistan!
There's an end of it! NATO troups out of Afghanistan!
Schluss jetzt endlich! NATO raus aus Afghanistan!
-------------- next part --------------


Deutsche Umlaute: äöü AÖÜ ß
Spanische tilde Zeichen: áéíñóúü ÁÉÍÑÓÚÜ ¿? ¡!
Russische Zeichen: Случайно заметил, какая штука появляется на мгновение при компилляции
Grieschiche Zeichen: Το μεγαλόσταυρο του Αποστόλου

------------------------------

Message: 29
Date: Mon, 12 Apr 2010 13:45:50 +0200
From: n dhert <ndhe...@gmail.com>
Subject: pgp5-filter-5.3.2, php5-imap-5.3.2, php-extensions-1.4
To: freebsd-...@freebsd.org
Message-ID:
<j2med7803cf1004120445id...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

There have been several updates to php, php-extensions and php5-*
My php is now 5.3.2, most of my php5-* also 5.3.2, but
a portupgrade didn't want to upgrade php5-filter and php-imap (errors)
of php-extensions. They stayed version 5.2.12, 5.2.12 and 1.3 respectively.
I did
# pkg_delete -f php5-filter-5.2.12
# pkg_delete -f php5-imap-5.2.12
# pkg_delete -f php_extensions-1.3
and several pkgdb -F until it reported everything OK

Yet still, I can't compile php5-filter-5.3.2, nor php5-imap-5.3.2 or
php-extensions-1.4 (which
depends on these)

How to fix it?

This is what I get
-----
cc -I. -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter
-DPHP_ATOM_IN
C -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/include
-I/usr/por
ts/security/php5-filter/work/php-5.3.2/ext/filter/main
-I/usr/ports/security/php
5-filter/work/php-5.3.2/ext/filter -I/usr/local/include/php
-I/usr/local/include
/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend
-I/usr/loc
al/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -O2
-pi
pe -fno-strict-aliasing -c
/usr/ports/security/php5-filter/work/php-5.3.2/ext/fi
lter/logical_filters.c -fPIC -DPIC -o .libs/logical_filters.o
In file included from
/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/
logical_filters.c:25:
/usr/local/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such
file or
directory
In file included from
/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/
logical_filters.c:25:
/usr/local/include/php/ext/pcre/php_pcre.h:37: error: expected '=', ',',
';', 'a
sm' or '__attribute__' before '*' token
/usr/local/include/php/ext/pcre/php_pcre.h:38: error: expected '=', ',',
';', 'a
sm' or '__attribute__' before '*' token
/usr/local/include/php/ext/pcre/php_pcre.h:44: error: expected
specifier-qualifi
er-list before 'pcre'
/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c:
In
function 'php_filter_validate_regexp':
/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c:412:
error: 'pcre' undeclared (first use in this function)
/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c:412:
error: (Each undeclared identifier is reported only once
/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c:412:
error: for each function it appears in.)
/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c:412:
error: 're' undeclared (first use in this function)
/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c:413:
error: 'pcre_extra' undeclared (first use in this function)
/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c:
In
function 'php_filter_validate_email':
/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c:500:
error: 'pcre' undeclared (first use in this function)
/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c:500:
error: 're' undeclared (first use in this function)
/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c:501:
error: 'pcre_extra' undeclared (first use in this function)
*** Error code 1
1 error
*** Error code 1
Stop in /usr/ports/security/php5-filter.


------------------------------

Message: 30
Date: Mon, 12 Apr 2010 06:46:43 -0500
From: Jim <staple...@gmail.com>
Subject: detachable x session (X11 application that acts like
sysutils/screen)
To: freebsd-...@freebsd.org
Message-ID:
<k2k80f4f2b21004120446q6...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Has anyone done anything with a program that acts like sysutils/screen
but with an X11 screen instead of a terminal? x2x and xnest both look
like they have some promise. Basically I work on projects located on
one of two systems, but I may bounce between another set of
workstations where I am physically located. If I am handling something
that I can work on console-only without trouble, I use
sysutils/screen, however some times I either need X, or X would be a
bit more effective for me. I'd like to be able to leave a xsession
running somewhere and be able to detach it and reattach to it between
login sessions.

Has anyone had experience doing this? What programs do you use?

Thanks,
-Jim Stapleton


------------------------------


End of freebsd-questions Digest, Vol 306, Issue 1
*************************************************

0 new messages