Auto update

2010-04-11 Thread Jos Chrispijn
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.


Jos Chrispijn


___
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: Auto update

2010-04-11 Thread andrew clarke
On Sun 2010-04-11 08:14:48 UTC+0200, Jos Chrispijn (ker...@webrz.net) 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?

By which method?  SSH?
___
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: Auto update

2010-04-11 Thread Doug Hardie

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.___
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: Auto update

2010-04-11 Thread Jos Chrispijn


On 11-4-2010 8:27, andrew clarke wrote:

By which method?  SSH?
   


Yes, sorry I didn't mention that. If possible on both SSH and otherwise.

Thanks,
Jos
___
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: Auto update

2010-04-11 Thread Jos Chrispijn


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


thanks,
Jos Chrispijnj
___
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: reliable rs-232

2010-04-11 Thread Pegasus Mc Cleaft
On Saturday 10 April 2010 13:41:33 Grzegorz Daniluk wrote:
 Hi everybody,
 I have a question regarding rs-232 under FreeBSD.
 I need to write an application for FreeBSD to operate an industrial
 controller via rs-232. The trick is that it should have very good long
 term stability (reliably operation over years). It should be able to
 detect and correct (e.g by reconfiguration of rs-232 port parameters)
 when rs-232 hangs or changes its transmission parameters as a result of
 electrical interference/disturbances etc. First thought is to simply
 close and reopen rs-232 port every given time interval, so even if
 something 'strange' happens the failure would be fixed after finite time
 period. But maybe there is smarter way of doing that. Maybe some special
 fault-tolerant rs-232 kernel drivers ?
 Any help appreciated, maybe someone has other helpful advieces regarding
 reliable rs-232 programming ini general ?

Hi Grzegorz, 

I dont think you are going to find anything that is classified as 
fault 
tolerant RS-232.  My experience with 232 in industrial environments has been 
met with various levels of success. In small controlled conditions it works 
OK, but you are limited to speed and distance. Further, the single ended 
nature of 232 and the high input impedance of the receivers make it not the 
best choice for electrical interference rejection. If you have control of the 
electrical specifications, you might be better off using RS-422 as it is 
designed differentially and with a low impedance, so it works well in 
electrically nasty environments. All the better if you can opto-isolate the 
line drivers/receivers on the transmission line side of the interface. 

In one application, I designed a RS-232 to fibre-optic interface using 
S/Pdif transceivers and a 555 as a PWM generator/detector. This worked 
wonderfully for electrical isolation between the PC and the CNC motion 
controller I was interfacing to. I have seen similar things sold as a ready 
made brick that you could just plug in and use. 

Making the machine and PC Fail to a safe condition is not something 
you 
should design into the rs-232 interface directly, in my opinion. You should 
have a upper layer protocol bouncing between the two points and if this 
protocol times-out, then you should assume the interface of the remote device 
has failed and take action in your software (on both sides). In the case of 
the fibre connection, I added in addition to the protocol checks, a carrier 
detect circuit where if the link failed between the two machines, it dropped 
out a relay that was wired to the E-Stop circuit. 

I hope some of this is helpfull... 

Peg
___
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: [RESOLVED, for now] Re: USB Powered Speakers

2010-04-11 Thread Chris Whitehouse

Programmer In Training wrote:

On 04/09/10 21:04, per...@pluto.rain.com wrote:

Programmer In Training p...@joseph-a-nagy-jr.us wrote:


I'm thinking I'm just going to wait until Tuesday and get a brand
new pair of wall-powered speakers. This hassle is NOT worth it ...

If speakers on USB 2.0 card, all else on 1.x builtins doesn't

snip

Despite the steadily degrading nature of the builtins, they are working
for the keyboard with speakers on the card and so far (aside from some
initial issues) they seem to be working just fine. For now. I'm still
getting a new pair of speakers. Now I'm not so keen on getting some of
those USB gadgets from ThinkGeek. ):
It's probably too late to suggest it now but it did occur to me a very 
cheap and easy way to get around the original problem might be to 
replace the keyboard with a PS/2 keyboard :P (if your computer has a 
PS/2 port).


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: Auto update

2010-04-11 Thread Ed Jobs
On Sunday 11 of April 2010 12:32, Jos Chrispijn wrote:
 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
 
 thanks,
 Jos Chrispijnj

you could try using syslog to do that. check the man page of syslog.conf, and 
search for auth. you could then populate a file with the successful logins 
as they happen

-- 
Real programmers don't document. If it was hard to write, it should be hard to 
understand.


signature.asc
Description: This is a digitally signed message part.


Re: [NOT RESOLVED][RESOLVED, for now] Re: USB Powered Speakers

2010-04-11 Thread Programmer In Training
On 04/11/10 05:06, Chris Whitehouse wrote:
snip
 It's probably too late to suggest it now but it did occur to me a very
 cheap and easy way to get around the original problem might be to
 replace the keyboard with a PS/2 keyboard :P (if your computer has a
 PS/2 port).

PS/2 ports do not work at all, otherwise I wouldn't bother with USB.

Also, problem resurfaced after about 2 hours of listening to music. I
wound up having to shut down PC all night because no matter what I did,
keyboard would go wonky on me.  

-- 
Yours In Christ,

PIT
Emails are not formal business letters, whatever businesses may want.
Original content copyright under the OWL http://owl.apotheon.org
Please do not CC me. If I'm posting to a list it is because I am subscribed.



signature.asc
Description: OpenPGP digital signature


Re: Mixer Settings For Audacity

2010-04-11 Thread Programmer In Training
On 04/11/10 01:36, Dima Panov wrote:
 G'day, Programmer In Training!
 On Sat, Apr 10, 2010 at 20:58:46 -0500, You wrote:
 
 OK, I've read the mixer man page, the mic is set as recording source,
 yet even with mic playback and (apparent) sensitivity to max, I barely
 get anything recorded using Audacity. Am I missing something? Do I need
 to use mixer -s =rec mic (I set it with mixer -S =rec, though it seems
 either one does the same thing).
snip
 Try to use monitor as record source. (mixer =rec monitor)
 At least for my laptops it's required to provide my microphone to skype.

Same thing, barely any pickup by the mic.
-- 
Yours In Christ,

PIT
Emails are not formal business letters, whatever businesses may want.
Original content copyright under the OWL http://owl.apotheon.org
Please do not CC me. If I'm posting to a list it is because I am subscribed.



signature.asc
Description: OpenPGP digital signature


Re: Mixer Settings For Audacity

2010-04-11 Thread Polytropon
On Sun, 11 Apr 2010 05:54:40 -0500, Programmer In Training 
p...@joseph-a-nagy-jr.us wrote:
 Same thing, barely any pickup by the mic.

Is the microphone working, and is it compatible with
the connector (condenser / dynamic)? Does it provide
a sufficient output level, maybe to be tested with
other equipment? Just an idea - because I recently
had a similar problem with a partially defective
microphone. :-)


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


Re: USB Powered Speakers

2010-04-11 Thread Nikolaj Thygesen

Programmer In Training wrote:

On 04/09/10 10:15, Brodey Dover wrote:
  

Apr  8 22:30:16 heaven kernel: usb_alloc_device:1624: getting device
descriptor at addr 3 failed, USB_ERR_IOERROR!

exactly! That is what is causing the issues. From what I can see, it
is like it was explained before. The OS has chosen to play nice and
request that the speakers are disabled.

The power requirements will not affect the system until the speakers
are producing sound. In other words, the system will only draw UP to
the power input rating while in operation. At idle, I'd wager they may
only use 1/10 of its power rating for the idle ICs and a power LED.


snip

Only it's not the speakers that have their operation interrupted, JUST
the keyboard (not even the mouse is affected).

  

Hi,

   I don't know if my issue is related to the one debated in this 
thread, but I just recently bought myself a pair of externally (regular 
power supply; no USB power) powered speakers, that plug into the sound 
card as usual, but when the speakers are powered up or down, my USB 
mouse disappears for a few seconds! It happens every time, and the mouse 
has its resoution reset. It's no big deal to me, but I'm a bit puzzled 
as to how the simple sound card connection could reset a USB connection.
   I'm not trying to hijack this thread, just thought the issues might 
be related.



   br - N :o)

___
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: Mixer Settings For Audacity

2010-04-11 Thread Programmer In Training
On 04/11/10 06:00, Polytropon wrote:
 On Sun, 11 Apr 2010 05:54:40 -0500, Programmer In Training 
 p...@joseph-a-nagy-jr.us wrote:
 Same thing, barely any pickup by the mic.
 
 Is the microphone working, and is it compatible with

Yes

 the connector (condenser / dynamic)? Does it provide

Yes

 a sufficient output level, maybe to be tested with

Yes

 other equipment? Just an idea - because I recently

Was on a Windoze box with an Audigy 2 sound card, worked like a dream.

 had a similar problem with a partially defective
 microphone. :-)

I'm using the builtin C-Media sound card (for some reason FreeBSD
doesn't want to detect my SB Audigy even with the km loaded for it)  The
mic is a Creative boom mic (I call them boom mics, just your standard
desktop fair).

Audacity (and Skype) both picked up the mic very, very well using mic as
rec source on my parents Windoze box (XP SP3). I'd like to keep
everything on here (though the latest version of Audacity (1.3.x)
supports flac output while what's in ports (1.2.4b4. I updated ports
like two days ago) doesn't so I just might use their computer if I can't
get my mic working here).

-- 
Yours In Christ,

PIT
Emails are not formal business letters, whatever businesses may want.
Original content copyright under the OWL http://owl.apotheon.org
Please do not CC me. If I'm posting to a list it is because I am subscribed.



signature.asc
Description: OpenPGP digital signature


Gambas on amd64 uses non-amd64 dependancy

2010-04-11 Thread Gene
Hi Again.

I was installing the lang/gambas port. It uses math/ldouble as a dependancy.
Problem is, ldouble refuses to install saying 

===  ldouble-0.1_2 is only for i386 sparc64, while you are running amd64.

Anyone know a way around this?

Thanks in adance.

IHN,
Gene

--
To everything there is a season,
And a time to every purpose under heaven.

___
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: host dig

2010-04-11 Thread Walter

   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-yyy.cab

 (replaced seemingly random name with yyy 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-yyy.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
___
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: Auto update

2010-04-11 Thread RW
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
___
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


IPFW and separate data files.

2010-04-11 Thread Jerry
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
freebsd.u...@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
___
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 PXE installation howto

2010-04-11 Thread Egoitz Aurrekoetxea Aurre
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-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: Nethogs or similar for FreeBSD?

2010-04-11 Thread krad
On 10 April 2010 22:41, Adam Vande More amvandem...@gmail.com wrote:

 On Sat, Apr 10, 2010 at 3:14 PM, Dan Naumov dan.nau...@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-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org

 or man linprocfs
___
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: Auto update

2010-04-11 Thread krad
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)
___
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: Auto update

2010-04-11 Thread krad
 $ tail -F -n 0 /var/log/auth.log


Definitely use the -F rather than -f option as it will handle  log rotation
___
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: Auto update

2010-04-11 Thread Randal L. Schwartz
 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-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


linux-pango update fails

2010-04-11 Thread Chad Perrin
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 ]


pgpQf5TW9bnNu.pgp
Description: PGP signature


Re: FreeBSD PXE installation howto

2010-04-11 Thread Diego F. Arias R.
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-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org




-- 
mmm, interesante.
___
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: FreeBSD PXE installation howto

2010-04-11 Thread Chris Whitehouse

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-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@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
___
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: are the are C [or C++] src sites ....

2010-04-11 Thread Gary Kline
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-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@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

___
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: reliable rs-232

2010-04-11 Thread Grzegorz Daniluk

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


VirtualBox is still broken

2010-04-11 Thread Yuri

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
___
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: are the are C [or C++] src sites ....

2010-04-11 Thread C. P. Ghost
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/
___
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: reliable rs-232

2010-04-11 Thread Maxim Khitrov
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
___
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: are the are C [or C++] src sites ....

2010-04-11 Thread Charlie Kester

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-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org