anybody close to Bristol, UK, wants to give a talk on FreeBSD and numerical analysis to UG students?

2012-01-08 Thread Anton Shterenlikht
Introduction:

I'll be teaching computer based modelling to
year 1 mechanical engineering students. The
unit is based around Matlab, which is not
ideal, in my opinion, but is beyond my control.
The unit is pretty low level - I have to start
from loops and conditional statements, but
ultimately I want them to be able to tackle
numerical solution of algebraic and diff. equations
and a bit of graphics.

I want to complement Matlab by several lectures
giving students a broader view of numerical
computing and related subjects. For example,
I'll probably talk about vector
vs raster graphics and related software,
precision of floating point calculations,
intro to latex, importance of standards in
software, etc.

What I'm looking for:

I'd like to have one lecture on FreeBSD and
what it can do for numerical analysis. I'm
looking for somebody who can come to Bristol
on a Tuesday between 31-FEB-2012 and 20-MAR-2012
and give a 50 min lecture from 1400 to 1450
to about 120-150 students. The exact
details of the talk are not that important. Some
of them would've heard of linux, probably not
of FreeBSD. Some of them would've used macs, but
unlikely any software beyound MS office.
The talk can just raise the students' awareness that
numerical analysis tools available via FreeBSD
ports are an alternative to Matlab.

I'll pay the travel expences (have to double check
with the finance office) but cannot pay for the
talk itself.

If you are interested, or have another idea,
please get in touch directly.

Thanks
Anton 

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


Re: wall write talk Over subnet

2008-10-27 Thread Polytropon
On Mon, 27 Oct 2008 12:20:34 -0400, Charles Darwin <[EMAIL PROTECTED]> wrote:
> Is it possible? If not, then what are the subnet counterparts of  
> `wall' `write' and `talk'?

I'm not sure I understood your question correctly, but maybe at 
least in regards of talk there's the ntalk utility. It requires
enabling the corresponding line in /etc/inetd.conf.

ntalk   dgram   udp waittty:tty /usr/libexec/ntalkd ntalkd

The ntalk program itself is available via ports (net/ntalk).



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


wall write talk Over subnet

2008-10-27 Thread Charles Darwin
Is it possible? If not, then what are the subnet counterparts of  
`wall' `write' and `talk'?


Thanks,
Charles

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


You Talk ... We Listen

2008-09-17 Thread PC Tools Newsletter

   
   If you are unable to see the imag= es, add the domain
   @email.pctools.com to your Safe Sender list. 
   [1] 3D=  3D""  3D"" 
   [2] ="" 

   Have your= say and be rewarded...
   Are we meeting YOUR needs?= We would love to know. Take part in our
   short survey by the end of Septe= mber & your feedback will help us to
   make this newsletter more valuable= to YOU.

   We will thank you for your efforts by giving= you a FREE copy of our
   Award Winning Privacy Guardian.<= /p>

   [4]= Click here to participate in our short survey.
   Tips & Tricks
   1.
   Be wary of files that you execute as they may contain a malici= ous
   application. This method of infection is commonly used by
   hackers.<= /span>
   2.
   Disable file/printer sharing whilst not in use as this may pro= vide
   an opening for hackers to gain entry to your PC.
   3.
   If in use, secure your File/Printer sharing with permission a= ccounts
   and passwords to make unlawful entry more difficult.
   4.
   Do not run unnecessary applications that require an internet/= network
   connection. Leaving them running in the background is like leavin= g
   your front door open.
   5. [5]Get a Firewall. Firewalls are = a useful tool for blocking
   attacks and preventing illegal entry into your P= C as they monitor
   and inform what comes and goes from your computer.
   
   3D"= ="" 3D""
   3D"" Top Threats 3D""
   Below are some of the latest threats identified b= y PC Tools
   3D""
   [6]Worm.AutoRun.GEN
   3D"   [7]RogueAntiSpyware.
   PCHealthCenter<= /a>
   3D"   [8]HackTool.Winlocker.C
   3D"   [9]Trojan-Downloader.VBS.BL
   3D"   The above infections can be detected and cleaned = using PC Tools
   Internet Security and [10]Spyware Doctor with AntiVirus<= /a>!
   3D"" 3D"" 3D""
   
   3D"=   3D"" 3D""
   3D"" News 3D""

   [11]PC Tools' Security Software Adds ThreatFir= e

   [12]Doctor Remedy To Nasty Internet Viruses

   [13]Review: PC Tools Desktop Maestro 3
   3D"" 3D"" 3D""

   3D""
   
   
   3D""
   ="" ="" ="" = ="" ="" =""
   ="" <= /td> = ="" =""
   SECURE & PROTECT<= /span> REPAIR & OPTIMIZE
   3D"" [14]Spyware Doctor with AntiVirus 3D"" [15]Reg= istry
   Mechanic
   3D"" [16]PC = Tools Internet Security 3D"" [17]Desktop Maestro
   =3D""
   

   This message was inte= nded for '[EMAIL PROTECTED]'
   You have received this message b= ecause you are subscribed to 'PC
   Tools newsletter and special promotions'= .

   [18]Update your subscriptions | [19]Unsubscribe | To contact us
   please email [EMAIL PROTECTED]
   
   PC T= ools Limited
   Units A & B, Block 4, Shannon Business Park= , Shannon, Co. Clare,
   Ireland.
   Copyright © 2008 PC Tools. A= ll rights reserved.



   [sns.rsys=]

References

   Visible links
   1. 3D"https://email.pctoo=/
   2. 3D"https://email.pct=/
   3. 3D"https://email.pctools.com/servlet/   4. 
3D"https://email.pctools.com/servlet/   5. 
3D"https://email.pctools.com/servlet/cc6?iJl   6. 
3D"https://email.pctools.com/servlet/cc6?iJltkQT   7. 
3D"https://email.pctools.com/servlet/cc6?iJltkQT   8. 
3D"https://email.pctools.com/servlet/cc6?iJltkQT   9. 
3D"https://email.pctools.com/servlet/cc6?iJltkQT  10. 
3D"https://email.pctools.com/servlet/c  11. 
3D"https://email.pctools.com/servlet/cc6?iJltkQTYRQ  12. 
3D"https://email.pctools.com/servlet/cc6?iJltkQTYRQ  13. 
3D"https://email.pctools.com/servlet/cc6?iJltkQTYRQ  14. 
3D"https://email.pctools.com/servlet/cc6?iJltkQ  15. 3D"https://email=/
  16. 3D"https://email=/
  17. 3D"https://email.pctools.com/s  18. 3D"https://email.pctools.com=/
  19. 3D"https://email.=/
  20. 3D"mailto:[EMAIL PROTECTED]
   Hidden links:
  21. 
="https://email.pctools.com/servlet/cc6?iJltkQTYRQTVzbmLklphgkxMjLL___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Unable to talk to tap(4)

2008-05-16 Thread Wojciech Puchar




On Fri, 16 May 2008, Bob McConnell wrote:


From: Wojciech Puchar


 if (buffer = NULL) {


  if (buffer == NULL) {




anyway not using malloc is good habit :) but it should work anyway.
try


The test after the malloc was the problem. I have been working in a


:)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Unable to talk to tap(4)

2008-05-16 Thread Bob McConnell
From: Wojciech Puchar

>>  if (buffer = NULL) {
>>
>>   if (buffer == NULL) {
>>

> anyway not using malloc is good habit :) but it should work anyway.
> try

The test after the malloc was the problem. I have been working in a
poorly designed scripting language for several months where the single
'=' is used for comparisons and didn't "see" the difference when I got
back into C. Setting a pointer to NULL should always cause an EFAULT.
Unfortunately, even 'gcc -Wall' didn't generate an appropriate warning
for it.

I only use malloc when I won't know how many buffers I need until run
time. In this case the application will count records in a configuration
file and malloc (1514 * count * 2) bytes, where count can range from 1
to 2000. That becomes an array of buffers, so I can pass just an index
or pointer between threads, usually through a mailbox or message queue.
It's a simple trick for message passing that I picked up years ago while
using the CTASK and XINU kernels.

Thanks for all the help,

Bob McConnell
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Unable to talk to tap(4)

2008-05-16 Thread Lowell Gilbert
"Bob McConnell" <[EMAIL PROTECTED]> writes:

> From: Bob McConnell 
>>From: Wojciech Puchar

 The basic setup sequence is:

  ifconfig tap0 create
  ifconfig tap0 inet 10.3.4.254/24
  route -v add 10.3.4.0/24 10.3.4.254
>>>
>>> ifconfig tap0 up
>>>
>>> ?
>>>
>>
>> 'ifconfig' already showed the interface flag UP. Adding this command
>> to the sequence has no effect on it. I also tried 'ifconfig tap0
> promisc'.
>>
>> Is EFAULT really a memory access exception?
>>

 At this point, I can ping that address and my application can open
 either /dev/net/tap0 or /dev/tap0. But when I try to read() from
> those
 devices, I have problems.

 /dev/net/tap0 always returns with errno = 19 (ENODEV - Operation not
 supported?).

 /dev/tap0 returns errno = 14 (EFAULT - bad address). At this point,
 'ifconfig' shows that the inet address is no longer attached and
 'netstat -rn' shows the route I added above has been dropped.

 I have been searching for several days to find more information
> about
 this device, but have not found anything specific to FreeBSD. All of
> the
 examples and instructions are for Linux or tun(4), both of which are
 significantly different devices.

 My code so far:

 - tear along dotted line -
  tapFD = open ("/dev/tap0", O_RDWR);
  if (tapFD < 0) {
fprintf (stderr, "Failed to open /dev/tap0: %d.\n", tapFD);
exit (2);
  }

  fprintf (stderr, "Successfully opened /dev/tap0.\n");

  unsigned char * buffer = (unsigned char*)malloc(1514);
  if (buffer = NULL) {
fprintf (stderr, "No memory available.\n");
close (tapFD);
exit(3);
  }
>
> When I replace the malloc with an automatic array, the
> error goes away and I get the data I am looking for. i.e.:
>
>unsigned char buffer[1514];
>
> So why can't I use malloc to create that buffer?

Maybe you forgot to include stdlib.h?  That could end up with the
compiler adjusting the parameters incorrectly.

Incidentally, this problem is why casting the return value of malloc
is discouraged; the compiler would warn about such a problem if the
(completely unnecessary) cast were not present.

  int lenth = 0;

 again:
  lenth = read(tapFD, buffer, 1514);
  if (lenth < 0) {
int error = errno;
if (error == EINTR)
  goto again;
fprintf (stderr, "tap read error: %d\n", error);
  }
  else {
int index;

fprintf (stdout, "%d bytes received.\n", lenth);
for (index = 0; index < lenth; ++index) {
  fprintf (stdout, " %02x", buffer[index]);
  if (index % 16 == 15)
fprintf (stdout, "\n");
}
fprintf (stdout, "\n");
  }

  close (tapFD);
 - tear along dotted line -

 Just in the interest of full disclosure, I am running a stock
 installation of FreeBSD 7.0 in a VMWare 5.5.4 session on WinXP.
> There
 are also two virtual Ethernet cards, one connected to a host only
 subnet, the other bridged onto a real Ethernet segment. I am using
> IPFW
 with DummyNet to inject some measure of reality into this system.

 This is the beginnings of a test bench for several commercial
 applications. My goal, once I get this device working, is to write
> an
 application for tap(4) that will emulate a few hundred embedded
> devices,
 each opening a socket directly to a server, which currently resides
> in
 another VM session on the host only network. This setup, coupled
> with
 real devices on the external network should give us a much more
 realistic environment for stress testing our systems.

 Thank you,

 Bob McConnell
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>

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


Re: Unable to talk to tap(4)

2008-05-16 Thread Wojciech Puchar

 unsigned char * buffer = (unsigned char*)malloc(1514);


is stdlib.h included (i'm asking for sure)?


 if (buffer = NULL) {


  if (buffer == NULL) {



   fprintf (stderr, "No memory available.\n");
   close (tapFD);
   exit(3);
 }


When I replace the malloc with an automatic array, the
error goes away and I get the data I am looking for. i.e.:

   unsigned char buffer[1514];

So why can't I use malloc to create that buffer?


anyway not using malloc is good habit :) but it should work anyway.
try


buffer[0]=buffer[1513]=0;

to make sure page is actually allocated.

if this help - maybe tap driver is buggy.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Unable to talk to tap(4)

2008-05-16 Thread Steve Randall
On Thu, 15 May 2008 14:49:26 -0400
"Bob McConnell" <[EMAIL PROTECTED]> wrote:

> >>> My code so far:
> >>>
> >>> - tear along dotted line -
> >>>  tapFD = open ("/dev/tap0", O_RDWR);
> >>>  if (tapFD < 0) {
> >>>fprintf (stderr, "Failed to open /dev/tap0: %d.\n", tapFD);
> >>>exit (2);
> >>>  }
> >>>
> >>>  fprintf (stderr, "Successfully opened /dev/tap0.\n");
> >>>
> >>>  unsigned char * buffer = (unsigned char*)malloc(1514);
> >>>  if (buffer = NULL) {

   if (buffer == NULL) {


> >>>fprintf (stderr, "No memory available.\n");
> >>>close (tapFD);
> >>>exit(3);
> >>>  }
> 
> When I replace the malloc with an automatic array, the
> error goes away and I get the data I am looking for. i.e.:
> 
>unsigned char buffer[1514];
> 
> So why can't I use malloc to create that buffer?

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


RE: Unable to talk to tap(4)

2008-05-15 Thread Bob McConnell
From: Bob McConnell 
>From: Wojciech Puchar
>>>
>>> The basic setup sequence is:
>>>
>>>  ifconfig tap0 create
>>>  ifconfig tap0 inet 10.3.4.254/24
>>>  route -v add 10.3.4.0/24 10.3.4.254
>>
>> ifconfig tap0 up
>>
>> ?
>>
>
> 'ifconfig' already showed the interface flag UP. Adding this command
> to the sequence has no effect on it. I also tried 'ifconfig tap0
promisc'.
>
> Is EFAULT really a memory access exception?
>
>>>
>>> At this point, I can ping that address and my application can open
>>> either /dev/net/tap0 or /dev/tap0. But when I try to read() from
those
>>> devices, I have problems.
>>>
>>> /dev/net/tap0 always returns with errno = 19 (ENODEV - Operation not
>>> supported?).
>>>
>>> /dev/tap0 returns errno = 14 (EFAULT - bad address). At this point,
>>> 'ifconfig' shows that the inet address is no longer attached and
>>> 'netstat -rn' shows the route I added above has been dropped.
>>>
>>> I have been searching for several days to find more information
about
>>> this device, but have not found anything specific to FreeBSD. All of
the
>>> examples and instructions are for Linux or tun(4), both of which are
>>> significantly different devices.
>>>
>>> My code so far:
>>>
>>> - tear along dotted line -
>>>  tapFD = open ("/dev/tap0", O_RDWR);
>>>  if (tapFD < 0) {
>>>fprintf (stderr, "Failed to open /dev/tap0: %d.\n", tapFD);
>>>exit (2);
>>>  }
>>>
>>>  fprintf (stderr, "Successfully opened /dev/tap0.\n");
>>>
>>>  unsigned char * buffer = (unsigned char*)malloc(1514);
>>>  if (buffer = NULL) {
>>>fprintf (stderr, "No memory available.\n");
>>>close (tapFD);
>>>exit(3);
>>>  }

When I replace the malloc with an automatic array, the
error goes away and I get the data I am looking for. i.e.:

   unsigned char buffer[1514];

So why can't I use malloc to create that buffer?

>>>  int lenth = 0;
>>>
>>> again:
>>>  lenth = read(tapFD, buffer, 1514);
>>>  if (lenth < 0) {
>>>int error = errno;
>>>if (error == EINTR)
>>>  goto again;
>>>fprintf (stderr, "tap read error: %d\n", error);
>>>  }
>>>  else {
>>>int index;
>>>
>>>fprintf (stdout, "%d bytes received.\n", lenth);
>>>for (index = 0; index < lenth; ++index) {
>>>  fprintf (stdout, " %02x", buffer[index]);
>>>  if (index % 16 == 15)
>>>fprintf (stdout, "\n");
>>>}
>>>fprintf (stdout, "\n");
>>>  }
>>>
>>>  close (tapFD);
>>> - tear along dotted line -
>>>
>>> Just in the interest of full disclosure, I am running a stock
>>> installation of FreeBSD 7.0 in a VMWare 5.5.4 session on WinXP.
There
>>> are also two virtual Ethernet cards, one connected to a host only
>>> subnet, the other bridged onto a real Ethernet segment. I am using
IPFW
>>> with DummyNet to inject some measure of reality into this system.
>>>
>>> This is the beginnings of a test bench for several commercial
>>> applications. My goal, once I get this device working, is to write
an
>>> application for tap(4) that will emulate a few hundred embedded
devices,
>>> each opening a socket directly to a server, which currently resides
in
>>> another VM session on the host only network. This setup, coupled
with
>>> real devices on the external network should give us a much more
>>> realistic environment for stress testing our systems.
>>>
>>> Thank you,
>>>
>>> Bob McConnell
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Unable to talk to tap(4)

2008-05-15 Thread Bob McConnell
From: Wojciech Puchar
>>
>> The basic setup sequence is:
>>
>>  ifconfig tap0 create
>>  ifconfig tap0 inet 10.3.4.254/24
>>  route -v add 10.3.4.0/24 10.3.4.254
>
> ifconfig tap0 up
>
> ?
>

'ifconfig' already showed the interface flag UP. Adding this command
to the sequence has no effect on it. I also tried 'ifconfig tap0
promisc'.

Is EFAULT really a memory access exception?

>>
>> At this point, I can ping that address and my application can open
>> either /dev/net/tap0 or /dev/tap0. But when I try to read() from
those
>> devices, I have problems.
>>
>> /dev/net/tap0 always returns with errno = 19 (ENODEV - Operation not
>> supported?).
>>
>> /dev/tap0 returns errno = 14 (EFAULT - bad address). At this point,
>> 'ifconfig' shows that the inet address is no longer attached and
>> 'netstat -rn' shows the route I added above has been dropped.
>>
>> I have been searching for several days to find more information about
>> this device, but have not found anything specific to FreeBSD. All of
the
>> examples and instructions are for Linux or tun(4), both of which are
>> significantly different devices.
>>
>> My code so far:
>>
>> - tear along dotted line -
>>  tapFD = open ("/dev/tap0", O_RDWR);
>>  if (tapFD < 0) {
>>fprintf (stderr, "Failed to open /dev/tap0: %d.\n", tapFD);
>>exit (2);
>>  }
>>
>>  fprintf (stderr, "Successfully opened /dev/tap0.\n");
>>
>>  unsigned char * buffer = (unsigned char*)malloc(1514);
>>  if (buffer = NULL) {
>>fprintf (stderr, "No memory available.\n");
>>close (tapFD);
>>exit(3);
>>  }
>>  int lenth = 0;
>>
>> again:
>>  lenth = read(tapFD, buffer, 1514);
>>  if (lenth < 0) {
>>int error = errno;
>>if (error == EINTR)
>>  goto again;
>>fprintf (stderr, "tap read error: %d\n", error);
>>  }
>>  else {
>>int index;
>>
>>fprintf (stdout, "%d bytes received.\n", lenth);
>>for (index = 0; index < lenth; ++index) {
>>  fprintf (stdout, " %02x", buffer[index]);
>>  if (index % 16 == 15)
>>fprintf (stdout, "\n");
>>}
>>fprintf (stdout, "\n");
>>  }
>>
>>  close (tapFD);
>> - tear along dotted line -
>>
>> Just in the interest of full disclosure, I am running a stock
>> installation of FreeBSD 7.0 in a VMWare 5.5.4 session on WinXP. There
>> are also two virtual Ethernet cards, one connected to a host only
>> subnet, the other bridged onto a real Ethernet segment. I am using
IPFW
>> with DummyNet to inject some measure of reality into this system.
>>
>> This is the beginnings of a test bench for several commercial
>> applications. My goal, once I get this device working, is to write an
>> application for tap(4) that will emulate a few hundred embedded
devices,
>> each opening a socket directly to a server, which currently resides
in
>> another VM session on the host only network. This setup, coupled with
>> real devices on the external network should give us a much more
>> realistic environment for stress testing our systems.
>>
>> Thank you,
>>
>> Bob McConnell
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Unable to talk to tap(4)

2008-05-14 Thread Wojciech Puchar


The basic setup sequence is:

 ifconfig tap0 create
 ifconfig tap0 inet 10.3.4.254/24
 route -v add 10.3.4.0/24 10.3.4.254


ifconfig tap0 up

?



At this point, I can ping that address and my application can open
either /dev/net/tap0 or /dev/tap0. But when I try to read() from those
devices, I have problems.

/dev/net/tap0 always returns with errno = 19 (ENODEV - Operation not
supported?).

/dev/tap0 returns errno = 14 (EFAULT - bad address). At this point,
'ifconfig' shows that the inet address is no longer attached and
'netstat -rn' shows the route I added above has been dropped.

I have been searching for several days to find more information about
this device, but have not found anything specific to FreeBSD. All of the
examples and instructions are for Linux or tun(4), both of which are
significantly different devices.

My code so far:

- tear along dotted line -
 tapFD = open ("/dev/tap0", O_RDWR);
 if (tapFD < 0) {
   fprintf (stderr, "Failed to open /dev/tap0: %d.\n", tapFD);
   exit (2);
 }

 fprintf (stderr, "Successfully opened /dev/tap0.\n");

 unsigned char * buffer = (unsigned char*)malloc(1514);
 if (buffer = NULL) {
   fprintf (stderr, "No memory available.\n");
   close (tapFD);
   exit(3);
 }
 int lenth = 0;

again:
 lenth = read(tapFD, buffer, 1514);
 if (lenth < 0) {
   int error = errno;
   if (error == EINTR)
 goto again;
   fprintf (stderr, "tap read error: %d\n", error);
 }
 else {
   int index;

   fprintf (stdout, "%d bytes received.\n", lenth);
   for (index = 0; index < lenth; ++index) {
 fprintf (stdout, " %02x", buffer[index]);
 if (index % 16 == 15)
   fprintf (stdout, "\n");
   }
   fprintf (stdout, "\n");
 }

 close (tapFD);
- tear along dotted line -

Just in the interest of full disclosure, I am running a stock
installation of FreeBSD 7.0 in a VMWare 5.5.4 session on WinXP. There
are also two virtual Ethernet cards, one connected to a host only
subnet, the other bridged onto a real Ethernet segment. I am using IPFW
with DummyNet to inject some measure of reality into this system.

This is the beginnings of a test bench for several commercial
applications. My goal, once I get this device working, is to write an
application for tap(4) that will emulate a few hundred embedded devices,
each opening a socket directly to a server, which currently resides in
another VM session on the host only network. This setup, coupled with
real devices on the external network should give us a much more
realistic environment for stress testing our systems.

Thank you,

Bob McConnell
Principal Communications Programmer
The CBORD Group, Inc.
61 Brown Road
Ithaca NY, 14850
Phone 607 257-2410
FAX 607 257-1902
Email [EMAIL PROTECTED]
Web www.cbord.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"



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


Unable to talk to tap(4)

2008-05-14 Thread Bob McConnell
Good morning,

Does anyone here have experience using tap(4)? I am trying to do some
basic I/O with it, but am not having any success. I have gotten to the
point where I can create and configure the device, and my application
can open it, but read() always returns errors.

The basic setup sequence is:

  ifconfig tap0 create
  ifconfig tap0 inet 10.3.4.254/24
  route -v add 10.3.4.0/24 10.3.4.254

At this point, I can ping that address and my application can open
either /dev/net/tap0 or /dev/tap0. But when I try to read() from those
devices, I have problems.

/dev/net/tap0 always returns with errno = 19 (ENODEV - Operation not
supported?).

/dev/tap0 returns errno = 14 (EFAULT - bad address). At this point,
'ifconfig' shows that the inet address is no longer attached and
'netstat -rn' shows the route I added above has been dropped.

I have been searching for several days to find more information about
this device, but have not found anything specific to FreeBSD. All of the
examples and instructions are for Linux or tun(4), both of which are
significantly different devices.

My code so far:

- tear along dotted line -
  tapFD = open ("/dev/tap0", O_RDWR);
  if (tapFD < 0) {
fprintf (stderr, "Failed to open /dev/tap0: %d.\n", tapFD);
exit (2);
  }

  fprintf (stderr, "Successfully opened /dev/tap0.\n");

  unsigned char * buffer = (unsigned char*)malloc(1514);
  if (buffer = NULL) {
fprintf (stderr, "No memory available.\n");
close (tapFD);
exit(3);
  }
  int lenth = 0;

again:
  lenth = read(tapFD, buffer, 1514);
  if (lenth < 0) {
int error = errno;
if (error == EINTR)
  goto again;
fprintf (stderr, "tap read error: %d\n", error);
  }
  else {
int index;

fprintf (stdout, "%d bytes received.\n", lenth);
for (index = 0; index < lenth; ++index) {
  fprintf (stdout, " %02x", buffer[index]);
  if (index % 16 == 15)
fprintf (stdout, "\n");
}
fprintf (stdout, "\n");
  }  

  close (tapFD);
- tear along dotted line -

Just in the interest of full disclosure, I am running a stock
installation of FreeBSD 7.0 in a VMWare 5.5.4 session on WinXP. There
are also two virtual Ethernet cards, one connected to a host only
subnet, the other bridged onto a real Ethernet segment. I am using IPFW
with DummyNet to inject some measure of reality into this system.

This is the beginnings of a test bench for several commercial
applications. My goal, once I get this device working, is to write an
application for tap(4) that will emulate a few hundred embedded devices,
each opening a socket directly to a server, which currently resides in
another VM session on the host only network. This setup, coupled with
real devices on the external network should give us a much more
realistic environment for stress testing our systems.

Thank you,

Bob McConnell
Principal Communications Programmer
The CBORD Group, Inc.
61 Brown Road
Ithaca NY, 14850
Phone 607 257-2410
FAX 607 257-1902
Email [EMAIL PROTECTED]
Web www.cbord.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


IPv6 capable talk/talkd

2007-05-07 Thread Wojciech Puchar

is there such a thing? or patch? standard talk/talkd use IPv4 only

thank you very much

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


Re: Google talk with voice?

2007-01-22 Thread Micah

Garrett Cooper wrote:

On Jan 21, 2007, at 9:18 PM, Micah wrote:



Anyone know of a way to do voice chat with Google chat users? KDE's 
Kopete is supposed to support gtalk's voice chat, but I can't get it 
to work.


Thanks,
Micah


Should be jabber. See: <http://www.google.com/talk/otherclients.html> 
for more info and how to setup kopete properly.

-Garrett


Sorry, I should have mentioned that text chat works fine in kopete, 
voice chat does not. When either I or the other party initiates a voice 
connection, it tries, and what I say gets played back on my end rather 
broken up but never makes it to the other end. Then the voice session 
terminates on its own. File transfers don't work either and, from what 
I've read on jingle, voice chats and file transfers use the same technology.


Thanks,
Micah
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Google talk with voice?

2007-01-21 Thread Garrett Cooper

On Jan 21, 2007, at 9:18 PM, Micah wrote:



Anyone know of a way to do voice chat with Google chat users? KDE's  
Kopete is supposed to support gtalk's voice chat, but I can't get  
it to work.


Thanks,
Micah


Should be jabber. See: <http://www.google.com/talk/otherclients.html>  
for more info and how to setup kopete properly.

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Google talk with voice?

2007-01-21 Thread Micah


Anyone know of a way to do voice chat with Google chat users? KDE's 
Kopete is supposed to support gtalk's voice chat, but I can't get it to 
work.


Thanks,
Micah
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Invitation to deliver LinuxTop20 talk

2006-12-03 Thread Saifi
Hi Abrar:

On behalf of TWINCLING Society I would like to invite you to deliver Linux 
Top20 talk.

Please confirm your availability.

thanks
Saifi
+91 - 99897 13507.

TWINCLING Society
freedom of innovation

http://www.twincling.org/

TWINCLING Society a registered society under Andhra Pradesh Registration of 
Societies Act, 2001.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Google Talk and NAT issue ?

2006-03-22 Thread Yuan Jue
On Wednesday 22 March 2006 20:41, Norberto Meijome wrote:
> On Mon, 13 Mar 2006 20:54:14 +0800
>
> Yuan Jue <[EMAIL PROTECTED]> wrote:
> > What kind of new technology Google use to
> > overcome a NAT issue?
>
> Hi there, no idea if you figured this out yet.
> I dont use (any version of ) google talk (skype works just great :) ),
> so these are only suggestions.
>
> Windows version may be using uPNP to open up your firewall.
>
> If i were you, i'd compare a tcpdump of both the google-talk (windows)
> vs google-talk (kopete) and see the difference.
>
> Or maybe google has locked down their servers so kopete cannot talk to
> them anymore .

still not working now :(

thanks for your suggestions. I will have a look later

-- 
Best Regards
Yuan Jue @ www.yuanjue.net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Google Talk and NAT issue ?

2006-03-22 Thread Andrew Pantyukhin
On 3/22/06, fbsd_user <[EMAIL PROTECTED]> wrote:
> Thanks for the links to the details.
>
> From my reading of the details at the google link my firewall
> is secure as long as the skype client software is not installed
> on any of the LAN pcs behind my firewall.
>
> I added deny rules for the ip address where the skype client can
> be downloaded from so employees can not install it.
>
> Does anyone know if there are any other client software products
> that use this same technique.
> I will add their download ip address to my firewall rules also.

LOL :-))) Are you kidding man? :D
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Google Talk and NAT issue ?

2006-03-22 Thread fbsd_user
Thanks for the links to the details.

>From my reading of the details at the google link my firewall
is secure as long as the skype client software is not installed
on any of the LAN pcs behind my firewall.

I added deny rules for the ip address where the skype client can
be downloaded from so employees can not install it.

Does anyone know if there are any other client software products
that use this same technique.
I will add their download ip address to my firewall rules also.

Thanks

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Andrew
Pantyukhin
Sent: Wednesday, March 22, 2006 10:42 AM
To: [EMAIL PROTECTED]
Cc: Yuan Jue; Norberto Meijome; freebsd-questions@freebsd.org
Subject: Re: Google Talk and NAT issue ?


On 3/22/06, fbsd_user <[EMAIL PROTECTED]> wrote:
>
> Just what do you mean by punching a hole in the
> firewall without the firewalls knowledge?
>
> The firewall is designed to stop just such a thing.
>
> Please explain your Statement.

http://www.google.com/search?q=skype+nat+traversal
http://www.mocaedu.com/mt/archives/000140.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"[EMAIL PROTECTED]"

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


Re: Google Talk and NAT issue ?

2006-03-22 Thread Andrew Pantyukhin
On 3/22/06, fbsd_user <[EMAIL PROTECTED]> wrote:
>
> Just what do you mean by punching a hole in the
> firewall without the firewalls knowledge?
>
> The firewall is designed to stop just such a thing.
>
> Please explain your Statement.

http://www.google.com/search?q=skype+nat+traversal
http://www.mocaedu.com/mt/archives/000140.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Google Talk and NAT issue ?

2006-03-22 Thread Chuck Swiger
fbsd_user wrote:
> Just what do you mean by punching a hole in the
> firewall without the firewalls knowledge?
> 
> The firewall is designed to stop just such a thing.

If the firewall opens a path for the external server inbound as a result of
supporting active-mode FTP or the data channel for IRC, which most firewalls do
by default if they permit FTP through in the first place, that can be used to
send arbitrary data back to the client.

Having the firewall block FTP, HTTP, and IRC/6667 traffic from inside machines,
except for a trusted and monitored proxy server like Squid, will significantly
improve the security of the network...

-- 
-Chuck
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Google Talk and NAT issue ?

2006-03-22 Thread fbsd_user

Just what do you mean by punching a hole in the
firewall without the firewalls knowledge?

The firewall is designed to stop just such a thing.

Please explain your Statement.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Andrew
Pantyukhin
Sent: Wednesday, March 22, 2006 8:35 AM
To: Norberto Meijome
Cc: Yuan Jue; freebsd-questions@freebsd.org
Subject: Re: Google Talk and NAT issue ?


On 3/22/06, Norberto Meijome <[EMAIL PROTECTED]> wrote:
> On Mon, 13 Mar 2006 20:54:14 +0800
> Yuan Jue <[EMAIL PROTECTED]> wrote:
>
> > What kind of new technology Google use to
> > overcome a NAT issue?
>
> Hi there, no idea if you figured this out yet.
> I dont use (any version of ) google talk (skype works just great
:) ),
> so these are only suggestions.
>
> Windows version may be using uPNP to open up your firewall.

...or punching holes in stateful firewalls. I think that's what
skype does.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"[EMAIL PROTECTED]"

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


Re: Google Talk and NAT issue ?

2006-03-22 Thread Andrew Pantyukhin
On 3/22/06, Norberto Meijome <[EMAIL PROTECTED]> wrote:
> On Mon, 13 Mar 2006 20:54:14 +0800
> Yuan Jue <[EMAIL PROTECTED]> wrote:
>
> > What kind of new technology Google use to
> > overcome a NAT issue?
>
> Hi there, no idea if you figured this out yet.
> I dont use (any version of ) google talk (skype works just great :) ),
> so these are only suggestions.
>
> Windows version may be using uPNP to open up your firewall.

...or punching holes in stateful firewalls. I think that's what
skype does.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Google Talk and NAT issue ?

2006-03-22 Thread Norberto Meijome
On Mon, 13 Mar 2006 20:54:14 +0800
Yuan Jue <[EMAIL PROTECTED]> wrote:

> What kind of new technology Google use to
> overcome a NAT issue?

Hi there, no idea if you figured this out yet.
I dont use (any version of ) google talk (skype works just great :) ),
so these are only suggestions.

Windows version may be using uPNP to open up your firewall.

If i were you, i'd compare a tcpdump of both the google-talk (windows)
vs google-talk (kopete) and see the difference.

Or maybe google has locked down their servers so kopete cannot talk to
them anymore . 

Good luck,
Beto
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Google Talk and NAT issue ?

2006-03-13 Thread Yuan Jue
Hi, all.

These days I am bothered by a problem. 

Since I am now surfing the Internet through NAT, I cannot use kopete
(an IM client for KDE) to connect google talk server any more.
 While at the same time I still can use Google Talk client under Windows 
to connect to the server, without any additional configuration.

Could anyone please explain this to me? Why can I use Google Talk client
straightly but not kopete? What kind of new technology Google use to
overcome a NAT issue?

Any ideas would be appreciated. Thanks in advance.

-- 
Best Regards
Yuan Jue @ www.yuanjue.net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: [nycbug-talk] Can I install FreeBSD 5.3 from a USB CD drive?

2005-08-13 Thread Nikolas Britton
On 8/12/05, Kliment Andreev <[EMAIL PROTECTED]> wrote:
> Maude User wrote:
> > Thanks for this info.
> >
> > The handbook chapter on BIOS (see below) doesn't mention "USB" but it
> > says the machine
> > can boot from "Removable Devices" so it sounds like your first
> > suggestion about booting from
> > removable drives would work.
> 
> Even if you boot from the USB CD, there is a chance that FreeBSD load
> won't recognize the USB chipset, so you won't be able to choose the
> source for the installation media.

His board has an Intel ICH5R. I just got done setting up a server with
this chip and USB works just fine:

> dmesg |grep -i usb
uhci0:  port 0xe800-0xe81f irq 16 at
device 29.0 on pci0
usb0:  on uhci0
usb0: USB revision 1.0
uhci1:  port 0xec00-0xec1f irq 19 at
device 29.1 on pci0
usb1:  on uhci1
usb1: USB revision 1.0
ehci0:  mem 0xfe7ffc00-0xfe7f
irq 23 at device 29.7 on pci0
usb2: EHCI version 1.0
usb2: companion controllers, 2 ports each: usb0 usb1
usb2:  on ehci0
usb2: USB revision 2.0
umass0: Genesys Logic USB Storage Device, rev 1.10/1.13, addr 2
umass0: Acer Labs USB 2.0 Storage Device, rev 2.00/1.03, addr 2
da1:  Fixed Direct Access SCSI-0 device
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: [nycbug-talk] Can I install FreeBSD 5.3 from a USB CD drive?

2005-08-12 Thread Mikel King


On Aug 12, 2005, at 6:06 PM, Kliment Andreev wrote:


Maude User wrote:


Thanks for this info.
 The handbook chapter on BIOS (see below) doesn't mention "USB"  
but it says the machine
can boot from "Removable Devices" so it sounds like your first  
suggestion about booting from

removable drives would work.



Even if you boot from the USB CD, there is a chance that FreeBSD  
load won't recognize the USB chipset, so you won't be able to  
choose the source for the installation media.



At that point though couldn't you point it to an ftp or some other  
network source...

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


Re: [nycbug-talk] Can I install FreeBSD 5.3 from a USB CD drive?

2005-08-12 Thread Aaron Peterson
> Even if you boot from the USB CD, there is a chance that FreeBSD load
> won't recognize the USB chipset, so you won't be able to choose the
> source for the installation media.

Unless of course, once you get the installer booted you choose a
network install source :-)

Aaron
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: [nycbug-talk] Can I install FreeBSD 5.3 from a USB CD drive?

2005-08-12 Thread Kliment Andreev

Maude User wrote:

Thanks for this info.
 
The handbook chapter on BIOS (see below) doesn't mention "USB" but it 
says the machine
can boot from "Removable Devices" so it sounds like your first 
suggestion about booting from

removable drives would work.


Even if you boot from the USB CD, there is a chance that FreeBSD load 
won't recognize the USB chipset, so you won't be able to choose the 
source for the installation media.

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


Re: [nycbug-talk] Can I install FreeBSD 5.3 from a USB CD drive?

2005-08-11 Thread Maude User
Thanks for this info. 
 
The handbook chapter on BIOS (see below) doesn't mention "USB" but it says the 
machine 
can boot from "Removable Devices" so it sounds like your first suggestion about 
booting from 
removable drives would work. 
 
It also says something about PXE so it looks like your second suggestion would 
also work.
 
Thanks,
-- Steve
 
PS - More detail below about this server's specs (link below) -- it's a Tyan 
GS12 motherboard:
 
--> Integrated LAN controller (Intel 82547GI CSA & 82541GI PCI 10/100/1000 GbE 
LAN controllers) with two RJ-45 LAN connectors
--> Supports Intel P4 processor 800/533 MHz FSB
--> Supports up to 2 IDE HDD devices (Serial ATA and Ultra ATA/100 connectors)
--> Supports RAID 0, 1
--> One 32-bit/33 MHz PCI v2.3 slot
--> Four USB 2.0 ports
--> Phoenix BIOS on 4Mb Flash ROM; UCR and PXE (LAN remote boot); SM BIOS
2.3.1 (backward compatible w/ DMI 2.0)

http://www.tyan.com/products/html/gs12b5103_spec.html

In the handbook (link to PDF below), the BIOS chapter says:
 
> The Boot Menu allows you to set the priority of the booting devices:
>  - Removable Devices
>  - Hard Drive
>  - CD-ROM
>  - IBA GE Slot 0208 v1216 (LAN Intel 82547GI)
 
ftp://ftp.tyan.com/manuals/m_gs12b5103_100.pdf

Jim Brown <[EMAIL PROTECTED]> wrote:
* Maude User [2005-08-11 20:15]:
> Hello -
> 
> I want to install FreeBSD 5.3 onto a rackmount server that came with two SATA 
> hard drives 
> (it came with no CD or floppy). I will borrow a keyboard and monitor because 
> I was informed
> today on this list that a "headless install" from my laptop over a null-modem 
> cable would slow.
> 
> I was going to buy a cheap USB floppy drive today (I saw prices from $30 to 
> $50) but at jandr.com in NYC today I saw a USB CD-RW/DVD+/-RW on sale for $99 
> (Panasonic DVRS706) so I got that instead, figuring it was "more bang for the 
> buck". 
> 
> Can I install FreeBSD 5.3 from this USB CD drive? 
> 
> If not, what sort of CD drive can I install from?


While I don't know the specfic equipment in your question, the general response
is that it is the BIOS that determines 'bootability' i.e. whether a device
can be used as a boot device. Check the BIOS setting first, there may
be a setting for booting from USB. If not, try 'removable drives' if it is 
shown.

If that fails, you might be able to boot from a network device using PXE 
booting.
Check the handbook (and your BIOS documentation) regarding PXE boot support.

If all that fails, try removing the hard disk and placing it in another 
compatible
system which has a bootable CD ROM.

And if *that* fails, post again. I'll be really interested to hear your curs^w 
comments.

Best Regards,
Jim B.



-
 Start your day with Yahoo! - make it your home page 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: [nycbug-talk] Can I install FreeBSD 5.3 from a USB CD drive?

2005-08-11 Thread Jim Brown
* Maude User <[EMAIL PROTECTED]> [2005-08-11 20:15]:
> Hello -
>  
> I want to install FreeBSD 5.3 onto a rackmount server that came with two SATA 
> hard drives 
> (it came with no CD or floppy). I will borrow a keyboard and monitor because 
> I was informed
> today on this list that a "headless install" from my laptop over a null-modem 
> cable would slow.
>  
> I was going to buy a cheap USB floppy drive today (I saw prices from $30 to 
> $50) but at jandr.com in NYC today I saw a USB CD-RW/DVD+/-RW on sale for $99 
> (Panasonic DVRS706) so I got that instead, figuring it was "more bang for the 
> buck". 
>  
> Can I install FreeBSD 5.3 from this USB CD drive? 
> 
> If not, what sort of CD drive can I install from?


While I don't know the specfic equipment in your question, the general response
is that it is the BIOS that determines 'bootability' i.e. whether a device
can be used as a boot device.  Check the BIOS setting first, there may
be a setting for booting from USB.  If not, try 'removable drives' if it is 
shown.

If that fails, you might be able to boot from a network device using PXE 
booting.
Check the handbook (and your BIOS documentation) regarding PXE boot support.

If all that fails, try removing the hard disk and placing it in another 
compatible
system which has a bootable CD ROM.

And if *that* fails, post again.  I'll be really interested to hear your curs^w 
comments.

Best Regards,
Jim B.

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


Re: [nycbug-talk] Minimum Install w/ X11 on Virtual PC

2005-07-07 Thread Hakim Singhji
Actually Garrett,

Your first answer was quite helpful as well. I am trying to figure out
the best way to use X windows, a wm and xterm in a manner that will
not slow down performance to a crawl, something that will resemble my
development environment on my main machine without a full install or
dual boot on this laptop.

Will I be able to find everthing I need in the ports collection.

On 7/7/05, Garrett Cooper <[EMAIL PROTECTED]> wrote:
> Ah, yes... sorry for the poor answering earlier. eterm, aterm and
> xterm all handle terminal coloring very nicely, with eterm being the most
> resource hungry of the three terminals listed previously.
> My apologies for the confusing prior answer.
> -Garrett
> 
> On Thu, 7 Jul 2005, Scott Robbins wrote:
> 
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > On Thu, Jul 07, 2005 at 02:40:09PM -0400, Hakim Singhji wrote:
> >> Hi All,
> >>
> >> I am going to install FreeBSD 5.4 on MS Virtual PC. My PC (IBM
> >> Thinkpad R51) only has 256MB of RAM available. I do not want to
> >> install Gnome or KDE however I would like the benefits of colors in
> >> text editors, backgrounds, etc. as this is going to be a testing
> >> environment for application development.
> >>
> >> What is the best way to go about doing this? In VPC I allot
> >> approximately 96MB of RAM for the Virtual Machine and I was thinking
> >> 256MB for virtual SWAP (would that even help... the default is like
> >> 166MB for 96MB of RAM... or something like that.
> >
> > If I understand your question, you'd like a window manager that is
> > pretty light but has the ability to do backgrounds and the like.
> > Both rxvt and aterm are lightweight xterms that can show backgrounds as
> > they run--there is also eterm, but it's more resource intensive.
> >
> > As for the window manager itself, I like fluxbox, and it's considered
> > relatively light.  There is weewm, which can have a background
> > image--actually, I think most of them can now, using xsetbg.  Fluxbox
> > has fbsetbg which will set a background, but does require some other
> > program to do that--some people use feh, xv and xli are two other
> > programs that can work with fbsetbg to set your background.
> >
> > I hope I've understood that aspect of your question.  If not, apologies
> > for wasting your time.
> >
> > - --
> > Scott Robbins
> > GPG KeyID EB3467D6
> > ( 1B848 077D 66F6 9DB0 FDC2  A409 FA54 D575 EB34 67D6 )
> > gpg --keyserver pgp.mit.edu --recv-keys EB3467D6
> > -BEGIN PGP SIGNATURE-
> > Version: GnuPG v1.4.1 (FreeBSD)
> >
> > iD8DBQFCzYqd+lTVdes0Z9YRApO9AJ43TJNzDlkyrOj3A+7TiVevl9W+FACdFVhQ
> > BdnWUecCa8GxxOzbuwFjRlQ=
> > =j3gM
> > -END PGP SIGNATURE-
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> >
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 


-- 
Hakim Singhji
[EMAIL PROTECTED]
"Where danger is, grows the saving power also" (qtd. in Heidegger 28).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: [nycbug-talk] Minimum Install w/ X11 on Virtual PC

2005-07-07 Thread Garrett Cooper
	Ah, yes... sorry for the poor answering earlier. eterm, aterm and 
xterm all handle terminal coloring very nicely, with eterm being the most 
resource hungry of the three terminals listed previously.

My apologies for the confusing prior answer.
-Garrett

On Thu, 7 Jul 2005, Scott Robbins wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, Jul 07, 2005 at 02:40:09PM -0400, Hakim Singhji wrote:

Hi All,

I am going to install FreeBSD 5.4 on MS Virtual PC. My PC (IBM
Thinkpad R51) only has 256MB of RAM available. I do not want to
install Gnome or KDE however I would like the benefits of colors in
text editors, backgrounds, etc. as this is going to be a testing
environment for application development.

What is the best way to go about doing this? In VPC I allot
approximately 96MB of RAM for the Virtual Machine and I was thinking
256MB for virtual SWAP (would that even help... the default is like
166MB for 96MB of RAM... or something like that.


If I understand your question, you'd like a window manager that is
pretty light but has the ability to do backgrounds and the like.
Both rxvt and aterm are lightweight xterms that can show backgrounds as
they run--there is also eterm, but it's more resource intensive.

As for the window manager itself, I like fluxbox, and it's considered
relatively light.  There is weewm, which can have a background
image--actually, I think most of them can now, using xsetbg.  Fluxbox
has fbsetbg which will set a background, but does require some other
program to do that--some people use feh, xv and xli are two other
programs that can work with fbsetbg to set your background.

I hope I've understood that aspect of your question.  If not, apologies
for wasting your time.

- --
Scott Robbins
GPG KeyID EB3467D6
( 1B848 077D 66F6 9DB0 FDC2  A409 FA54 D575 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQFCzYqd+lTVdes0Z9YRApO9AJ43TJNzDlkyrOj3A+7TiVevl9W+FACdFVhQ
BdnWUecCa8GxxOzbuwFjRlQ=
=j3gM
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


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


Re: [nycbug-talk] Minimum Install w/ X11 on Virtual PC

2005-07-07 Thread Scott Robbins
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, Jul 07, 2005 at 02:40:09PM -0400, Hakim Singhji wrote:
> Hi All,
> 
> I am going to install FreeBSD 5.4 on MS Virtual PC. My PC (IBM
> Thinkpad R51) only has 256MB of RAM available. I do not want to
> install Gnome or KDE however I would like the benefits of colors in
> text editors, backgrounds, etc. as this is going to be a testing
> environment for application development.
> 
> What is the best way to go about doing this? In VPC I allot
> approximately 96MB of RAM for the Virtual Machine and I was thinking
> 256MB for virtual SWAP (would that even help... the default is like
> 166MB for 96MB of RAM... or something like that.

If I understand your question, you'd like a window manager that is
pretty light but has the ability to do backgrounds and the like.  
Both rxvt and aterm are lightweight xterms that can show backgrounds as
they run--there is also eterm, but it's more resource intensive.  

As for the window manager itself, I like fluxbox, and it's considered
relatively light.  There is weewm, which can have a background
image--actually, I think most of them can now, using xsetbg.  Fluxbox
has fbsetbg which will set a background, but does require some other
program to do that--some people use feh, xv and xli are two other
programs that can work with fbsetbg to set your background.

I hope I've understood that aspect of your question.  If not, apologies
for wasting your time.

- -- 
Scott Robbins
GPG KeyID EB3467D6
( 1B848 077D 66F6 9DB0 FDC2  A409 FA54 D575 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQFCzYqd+lTVdes0Z9YRApO9AJ43TJNzDlkyrOj3A+7TiVevl9W+FACdFVhQ
BdnWUecCa8GxxOzbuwFjRlQ=
=j3gM
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Apache won't talk to the world

2005-02-25 Thread Jeffrey Colter
Hi,

I installed Apache 2 but it won't talk to the world. 
KDE works fine on the internet through my WRT54G
router, but Apache gives this config error:

[alert] (EAI 8)hostname nor servname provided, or not
known: mod_unique_id: unable to find IPv4 address of
".comcast.net"
Configuration Failed
=
I'm using ddclient to sync www.zonedit.com for dynamic
DNS using my Comcast cable internet connection.

I want to use virtual hosts to host several websites,
but can't even get the basic config to work.

Here is my rc.conf:
=
hostname="www.torva.com"
ifconfig_bge0="inet 192.168.1.40  netmask
255.255.255.0"
defaultrouter="192.168.1.1"
==

Here are the relevant lines in httpd.conf the Apache
config file:

===
Listen 192.168.1.40:80
User www
Group www
ServerName www.torva.com:80
UseCanonicalName Off
DocumentRoot "/usr/local/www/data"



What's wrong?

Thanx, Jeff


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: talk command help

2005-02-17 Thread Roberto Nunnari
Ruben de Groot wrote:
On Wed, Feb 16, 2005 at 10:07:43PM -0800, monchis typed:
I Am new to unix so I am learning how to use it, but i want to know how to talk to someone. I already used the man pages but i just don't get it. can you show me an example of how to talk to someone hat is logged in. thanks

You'll have to enable the talk daemon in /etc/inetd.conf like so:
$ grep ntalk /etc/inetd.conf
# ntalk is required for the 'talk' utility to work correctly
ntalk dgram udp wait tty:tty /usr/libexec/ntalkd ntalkd
$
Then, # /etc/rc.d/inetd restart
and you're ready to use the talk utility.
enable inetd in /etc/rc.conf with the line:
inetd_enable="YES"
so that upon every reboot inetd will be run.
Best regards.

Ruben
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

--
  Roberto Nunnari -software engineer-
   mailto:[EMAIL PROTECTED]
 Scuola Universitaria Professionale della Svizzera Italiana
 Dipartimento Tecnologie Innovative
  http://www.dti.supsi.ch
 SUPSI-DTI
 Via Cantonaletel: +41-91-6108561
 6928 Manno """   fax: +41-91-6108570
 Switzerland   (o o)
===oOO==(_)==OOo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: talk command help

2005-02-17 Thread Ruben de Groot
On Wed, Feb 16, 2005 at 10:07:43PM -0800, monchis typed:
> I Am new to unix so I am learning how to use it, but i want to know how to 
> talk to someone. I already used the man pages but i just don't get it. can 
> you show me an example of how to talk to someone hat is logged in. thanks

You'll have to enable the talk daemon in /etc/inetd.conf like so:

$ grep ntalk /etc/inetd.conf
# ntalk is required for the 'talk' utility to work correctly
ntalk dgram udp wait tty:tty /usr/libexec/ntalkd ntalkd
$

Ruben

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


talk command help

2005-02-17 Thread monchis
I Am new to unix so I am learning how to use it, but i want to know how to talk 
to someone. I already used the man pages but i just don't get it. can you show 
me an example of how to talk to someone hat is logged in. thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: voice talk between 2 FBSD boxs

2004-06-06 Thread Thomas Farrell
I have used teamspeak running server on FreeBSD 5.0 and the clients on
windows. You can get everything  at

http://www.teamspeak.org/

I think I run my version in linux compat . Haven't used it in a while but it
did work quite well.

- Original Message -
From: "JJB" <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED] ORG" <[EMAIL PROTECTED]>
Sent: Sunday, June 06, 2004 1:13 PM
Subject: voice talk between 2 FBSD boxs


> The talk command is not really voice talk but what is normally
> considered as console text chat these days.
>
> Is there an 2 way voice talk command or port application between 2
> unix type systems with an ms/windows version?
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
>
>


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: voice talk between 2 FBSD boxs

2004-06-06 Thread Michal Pasternak
JJB [Sun, Jun 06, 2004 at 01:13:31PM -0400]:
> Is there an 2 way voice talk command or port application between 2
> unix type systems with an ms/windows version?

Try:

http://shtoom.sf.net/

It's in very early stage of development, but as every Python project, it is
highly portable - Windows, MacOS X, Unices supported - and it can talk to
VoIP phones too.

HTH,
-- 
m


pgpSw9vjlb2fC.pgp
Description: PGP signature


Re: voice talk between 2 FBSD boxs

2004-06-06 Thread Randy Pratt
On Sun, 6 Jun 2004 13:13:31 -0400
"JJB" <[EMAIL PROTECTED]> wrote:

> The talk command is not really voice talk but what is normally
> considered as console text chat these days.
>
> Is there an 2 way voice talk command or port application between 2
> unix type systems with an ms/windows version?

cd /usr/ports
make search key="phone"

Try other keys such as "voice", "conferencing" and the like.

If you don't have a ports tree or prefer a gui search:

http://www.freebsd.org/ports/

I've no idea what works with windows.  Google is your friend there.

Randy

-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


voice talk between 2 FBSD boxs

2004-06-06 Thread JJB
The talk command is not really voice talk but what is normally
considered as console text chat these days.

Is there an 2 way voice talk command or port application between 2
unix type systems with an ms/windows version?

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to find and start talkd for use it with talk command ?

2004-05-27 Thread [EMAIL PROTECTED]
--- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> hi!
> 
> on free bsd 5.2
> 
> how can i find and start talkd for use it with talk
> command ?
> can i?
> 
> or if i cant - can i use some similar instead ...?
> 
> 10x in advance.
> 
> regards!

hi again!

i solved my problem with google and some other unixes
docs..aix at most

talkd is started via inetd and executable is in
/usr/libexec/in.ntalkd
thus , #which talkd not give me the answer.
other my mistake is that i read man talkd and there is
an entry to mand with no one word for inetd or
in.ntalkd or inetd.conf

i suggest some small additions in man page:

on bottom add related link to inetd
and on top add "talkd (or ntalkd) can be started via
/etc/inetd.conf and is located in
/usr/libexec/in.ntalkd"

or something like thisand man page will be more
actual and usefull.

sorry for inconvenience , regards!




__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to find and start talkd for use it with talk command ?

2004-05-25 Thread Jonathan Chen
On Tue, May 25, 2004 at 01:52:55PM -0700, [EMAIL PROTECTED] wrote:
> hi!
> 
> on free bsd 5.2
> 
> how can i find and start talkd for use it with talk
> command ?
> can i?

Uncomment the "ntalk" line in /etc/inetd.conf, and:

kill -HUP 

-- 
Jonathan Chen <[EMAIL PROTECTED]>
--
  Opportunities are seldom labeled
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


how to find and start talkd for use it with talk command ?

2004-05-25 Thread [EMAIL PROTECTED]
hi!

on free bsd 5.2

how can i find and start talkd for use it with talk
command ?
can i?

or if i cant - can i use some similar instead ...?

10x in advance.

regards!




__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: apple talk

2004-03-16 Thread jan . muenther
> is there software in the ports tree to read text files and speak the audio
> similar to apple talk?

Port:   festival-1.4.1_2
Path:   /usr/ports/audio/festival
Info:   Multi-lingual speech synthesis system

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


apple talk

2004-03-16 Thread Brian Henning
is there software in the ports tree to read text files and speak the audio
similar to apple talk?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: (revised) 4.*9*-stable & Linksys WRT54G won't talk w/each other

2004-01-09 Thread Kenneth W Cochran
>Date: Fri, 9 Jan 2004 12:56:20 -0500 (EST)
>From: Anthony Volodkin <[EMAIL PROTECTED]>
>To: Kenneth W Cochran <[EMAIL PROTECTED]>
>cc: [EMAIL PROTECTED], <[EMAIL PROTECTED]>
>Subject: Re: (revised) 4.0-stable & Linksys WRT54G won't talk w/each other
>
>Hey,
>
>Apparently the WRT54G is having some arp issues.  I'd check the following:
>
>- install latest firmware

Have avoided that so far b/c I wanted to be able to do that from
FreeBSD, e.g. with tftp...
But I might just go ahead & do that via Windows.  {shrug}

>- install Ethereal on the windows machine and watch the traffic exchange
>when you would ping/access the WRT54G.  It is important that this is done
>right after boot so that the Windows machine does not have the MAC of
>WRT54G cached.  It'd be interesting to compare the arp requests from the
>FreeBSD machine to ones from the Win2k one, if that seems at all
>different.

Have thought about that too, especially since trying to
tcpdump dc2 with the Windows box connected to the Linksys
resulted in nothing (the "inside" part of the Linksys is
a switch).

>- Finally, I assumed that the cable that you are using to connect the
>freebsd box to WRT54G is just as good as the one you use with the Windows
>machine.

Yup, cables & interfaces are all good; 1st thing I checked.

>-Anthony

-kc

>On Fri, 9 Jan 2004, Kenneth W Cochran wrote:
>
>> Hello:
>>
>> I'm having problems getting a FreeBSD machine and a Linksys
>> WRT54G talking with each other.
>>
>> Interfaces:
>> dc0 - "public" to outside Internet
>> dc1 - internal 192.168.0.1/24, connects to a hub
>> dc2 - internal 192.168.1.100/24, connects to a switched LAN port on the router
>> dc3 - currently unused
>>
>> OS: FreeBSD 4.9-STABLE as of 10 December 2003
>> firewall: ipfw2
>> Running natd between dc0 & dc1 (& that works fine)
>>
>> dc0 gets its IP address, etc., via DHCP/dhclient.
>> dc1 is configured statically & machines connected on that subnet work fine.
>> dc2 should get its ip address, etc. from a Linksys WRT54G,
>> but won't; syslog says "address in use," so I configured it "manually"
>> with ifconfig, to 192.168.1.100/24.
>>
>> Problems/questions:
>>
>> dc2 has a Linksys WRT54G on it, & thus far, that box refuses
>> to talk (not even icmp) with the fbsd machine, even if I set
>> its ip-address & that of dc2 manually.  (The Linksys
>> defaults to running a dhcp server & its factory-supplied
>> ip-address is 192.168.1.1 & it "tries" to setup the first
>> interface talking to it to be 192.168.1.100).  The router
>> works fine when connecting another machine (running Windows
>> 2000) to it.
>>
>> As examples:
>> $ ping -c3 192.168.0.2  ## this is a Windows2000 box on the dc1 network
>> PING 192.168.0.2 (192.168.0.2): 56 data bytes
>> 64 bytes from 192.168.0.2: icmp_seq=0 ttl=128 time=0.391 ms
>> 64 bytes from 192.168.0.2: icmp_seq=1 ttl=128 time=0.177 ms
>> 64 bytes from 192.168.0.2: icmp_seq=2 ttl=128 time=0.232 ms
>>
>> --- 192.168.0.2 ping statistics ---
>> 3 packets transmitted, 3 packets received, 0% packet loss
>> round-trip min/avg/max/stddev = 0.177/0.267/0.391/0.091 ms
>>
>> localhost# tcpdump -lni dc1  ## tcpdump while running the above ping
>> tcpdump: listening on dc1
>> 10:15:39.882162 arp who-has 192.168.0.2 tell 192.168.0.1
>> 10:15:39.882305 arp reply 192.168.0.2 is-at 0:90:27:84:42:f
>> 10:15:39.882318 192.168.0.1 > 192.168.0.2: icmp: echo request
>> 10:15:39.882492 192.168.0.2 > 192.168.0.1: icmp: echo reply
>> 10:15:40.883394 192.168.0.1 > 192.168.0.2: icmp: echo request
>> 10:15:40.883511 192.168.0.2 > 192.168.0.1: icmp: echo reply
>> 10:15:41.893417 192.168.0.1 > 192.168.0.2: icmp: echo request
>> 10:15:41.893584 192.168.0.2 > 192.168.0.1: icmp: echo reply
>>
>> $ ping -c3 192.168.1.1  ## ip address of the router on dc2
>> PING 192.168.1.1 (192.168.1.1): 56 data bytes
>>
>> --- 192.168.1.1 ping statistics ---
>> 3 packets transmitted, 0 packets received, 100% packet loss
>>
>> localhost# tcpdump -lni dc2  ## tcpdump while running the above ping
>> tcpdump: listening on dc2
>> 10:17:18.123385 arp who-has 192.168.1.1 tell 192.168.1.100
>> 10:17:19.124588 arp who-has 192.168.1.1 tell 192.168.1.100
>> 10:17:20.134583 arp who-has 192.168.1.1 tell 192.168.1.100
>>
>> Any ideas on getting this thing to work?  It seems to work
>> fine when connected to a Windows2000 machine.
>> Yes, I've tried other interfaces & cables, etc, so I'm
>> confident the hardware is fine. :)
>>
>> Idea(s) on further troubleshooting/fixing this?
>>
>> FAQs/documentation pointers are quite welcome. :)
>>
>> Thanks,
>>
>> -kc
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: (revised) 4.0-stable & Linksys WRT54G won't talk w/each other

2004-01-09 Thread Anthony Volodkin
Hey,

Apparently the WRT54G is having some arp issues.  I'd check the following:

- install latest firmware

- install Ethereal on the windows machine and watch the traffic exchange
when you would ping/access the WRT54G.  It is important that this is done
right after boot so that the Windows machine does not have the MAC of
WRT54G cached.  It'd be interesting to compare the arp requests from the
FreeBSD machine to ones from the Win2k one, if that seems at all
different.

- Finally, I assumed that the cable that you are using to connect the
freebsd box to WRT54G is just as good as the one you use with the Windows
machine.

-Anthony

On Fri, 9 Jan 2004, Kenneth W Cochran wrote:

> Hello:
>
> I'm having problems getting a FreeBSD machine and a Linksys
> WRT54G talking with each other.
>
> Interfaces:
> dc0 - "public" to outside Internet
> dc1 - internal 192.168.0.1/24, connects to a hub
> dc2 - internal 192.168.1.100/24, connects to a switched LAN port on the router
> dc3 - currently unused
>
> OS: FreeBSD 4.9-STABLE as of 10 December 2003
> firewall: ipfw2
> Running natd between dc0 & dc1 (& that works fine)
>
> dc0 gets its IP address, etc., via DHCP/dhclient.
> dc1 is configured statically & machines connected on that subnet work fine.
> dc2 should get its ip address, etc. from a Linksys WRT54G,
> but won't; syslog says "address in use," so I configured it "manually"
> with ifconfig, to 192.168.1.100/24.
>
> Problems/questions:
>
> dc2 has a Linksys WRT54G on it, & thus far, that box refuses
> to talk (not even icmp) with the fbsd machine, even if I set
> its ip-address & that of dc2 manually.  (The Linksys
> defaults to running a dhcp server & its factory-supplied
> ip-address is 192.168.1.1 & it "tries" to setup the first
> interface talking to it to be 192.168.1.100).  The router
> works fine when connecting another machine (running Windows
> 2000) to it.
>
> As examples:
> $ ping -c3 192.168.0.2  ## this is a Windows2000 box on the dc1 network
> PING 192.168.0.2 (192.168.0.2): 56 data bytes
> 64 bytes from 192.168.0.2: icmp_seq=0 ttl=128 time=0.391 ms
> 64 bytes from 192.168.0.2: icmp_seq=1 ttl=128 time=0.177 ms
> 64 bytes from 192.168.0.2: icmp_seq=2 ttl=128 time=0.232 ms
>
> --- 192.168.0.2 ping statistics ---
> 3 packets transmitted, 3 packets received, 0% packet loss
> round-trip min/avg/max/stddev = 0.177/0.267/0.391/0.091 ms
>
> localhost# tcpdump -lni dc1  ## tcpdump while running the above ping
> tcpdump: listening on dc1
> 10:15:39.882162 arp who-has 192.168.0.2 tell 192.168.0.1
> 10:15:39.882305 arp reply 192.168.0.2 is-at 0:90:27:84:42:f
> 10:15:39.882318 192.168.0.1 > 192.168.0.2: icmp: echo request
> 10:15:39.882492 192.168.0.2 > 192.168.0.1: icmp: echo reply
> 10:15:40.883394 192.168.0.1 > 192.168.0.2: icmp: echo request
> 10:15:40.883511 192.168.0.2 > 192.168.0.1: icmp: echo reply
> 10:15:41.893417 192.168.0.1 > 192.168.0.2: icmp: echo request
> 10:15:41.893584 192.168.0.2 > 192.168.0.1: icmp: echo reply
>
> $ ping -c3 192.168.1.1  ## ip address of the router on dc2
> PING 192.168.1.1 (192.168.1.1): 56 data bytes
>
> --- 192.168.1.1 ping statistics ---
> 3 packets transmitted, 0 packets received, 100% packet loss
>
> localhost# tcpdump -lni dc2  ## tcpdump while running the above ping
> tcpdump: listening on dc2
> 10:17:18.123385 arp who-has 192.168.1.1 tell 192.168.1.100
> 10:17:19.124588 arp who-has 192.168.1.1 tell 192.168.1.100
> 10:17:20.134583 arp who-has 192.168.1.1 tell 192.168.1.100
>
> Any ideas on getting this thing to work?  It seems to work
> fine when connected to a Windows2000 machine.
> Yes, I've tried other interfaces & cables, etc, so I'm
> confident the hardware is fine. :)
>
> Idea(s) on further troubleshooting/fixing this?
>
> FAQs/documentation pointers are quite welcome. :)
>
> Thanks,
>
> -kc
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


(revised) 4.*9*-stable & Linksys WRT54G won't talk w/each other

2004-01-09 Thread Kenneth W Cochran
oops, mistype, that should've been 4.9-stable instead of 4.0...
stupidfingers...

Hello:

I'm having problems getting a FreeBSD machine and a Linksys
WRT54G talking with each other.

Interfaces:
dc0 - "public" to outside Internet
dc1 - internal 192.168.0.1/24, connects to a hub
dc2 - internal 192.168.1.100/24, connects to a switched LAN port on the router
dc3 - currently unused

OS: FreeBSD 4.9-STABLE as of 10 December 2003
firewall: ipfw2
Running natd between dc0 & dc1 (& that works fine)

dc0 gets its IP address, etc., via DHCP/dhclient.
dc1 is configured statically & machines connected on that subnet work fine.
dc2 should get its ip address, etc. from a Linksys WRT54G,
but won't; syslog says "address in use," so I configured it "manually"
with ifconfig, to 192.168.1.100/24.

Problems/questions:

dc2 has a Linksys WRT54G on it, & thus far, that box refuses
to talk (not even icmp) with the fbsd machine, even if I set
its ip-address & that of dc2 manually.  (The Linksys
defaults to running a dhcp server & its factory-supplied
ip-address is 192.168.1.1 & it "tries" to setup the first
interface talking to it to be 192.168.1.100).  The router
works fine when connecting another machine (running Windows
2000) to it.

As examples:
$ ping -c3 192.168.0.2  ## this is a Windows2000 box on the dc1 network
PING 192.168.0.2 (192.168.0.2): 56 data bytes
64 bytes from 192.168.0.2: icmp_seq=0 ttl=128 time=0.391 ms
64 bytes from 192.168.0.2: icmp_seq=1 ttl=128 time=0.177 ms
64 bytes from 192.168.0.2: icmp_seq=2 ttl=128 time=0.232 ms

--- 192.168.0.2 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.177/0.267/0.391/0.091 ms

localhost# tcpdump -lni dc1  ## tcpdump while running the above ping
tcpdump: listening on dc1
10:15:39.882162 arp who-has 192.168.0.2 tell 192.168.0.1
10:15:39.882305 arp reply 192.168.0.2 is-at 0:90:27:84:42:f
10:15:39.882318 192.168.0.1 > 192.168.0.2: icmp: echo request
10:15:39.882492 192.168.0.2 > 192.168.0.1: icmp: echo reply
10:15:40.883394 192.168.0.1 > 192.168.0.2: icmp: echo request
10:15:40.883511 192.168.0.2 > 192.168.0.1: icmp: echo reply
10:15:41.893417 192.168.0.1 > 192.168.0.2: icmp: echo request
10:15:41.893584 192.168.0.2 > 192.168.0.1: icmp: echo reply

$ ping -c3 192.168.1.1  ## ip address of the router on dc2
PING 192.168.1.1 (192.168.1.1): 56 data bytes

--- 192.168.1.1 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss

localhost# tcpdump -lni dc2  ## tcpdump while running the above ping
tcpdump: listening on dc2
10:17:18.123385 arp who-has 192.168.1.1 tell 192.168.1.100
10:17:19.124588 arp who-has 192.168.1.1 tell 192.168.1.100
10:17:20.134583 arp who-has 192.168.1.1 tell 192.168.1.100

Any ideas on getting this thing to work?  It seems to work
fine when connected to a Windows2000 machine.
Yes, I've tried other interfaces & cables, etc, so I'm
confident the hardware is fine. :)

Idea(s) on further troubleshooting/fixing this?

FAQs/documentation pointers are quite welcome. :)

Thanks,

-kc
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


(revised) 4.0-stable & Linksys WRT54G won't talk w/each other

2004-01-09 Thread Kenneth W Cochran
Hello:

I'm having problems getting a FreeBSD machine and a Linksys
WRT54G talking with each other.

Interfaces:
dc0 - "public" to outside Internet
dc1 - internal 192.168.0.1/24, connects to a hub
dc2 - internal 192.168.1.100/24, connects to a switched LAN port on the router
dc3 - currently unused

OS: FreeBSD 4.9-STABLE as of 10 December 2003
firewall: ipfw2
Running natd between dc0 & dc1 (& that works fine)

dc0 gets its IP address, etc., via DHCP/dhclient.
dc1 is configured statically & machines connected on that subnet work fine.
dc2 should get its ip address, etc. from a Linksys WRT54G,
but won't; syslog says "address in use," so I configured it "manually"
with ifconfig, to 192.168.1.100/24.

Problems/questions:

dc2 has a Linksys WRT54G on it, & thus far, that box refuses
to talk (not even icmp) with the fbsd machine, even if I set
its ip-address & that of dc2 manually.  (The Linksys
defaults to running a dhcp server & its factory-supplied
ip-address is 192.168.1.1 & it "tries" to setup the first
interface talking to it to be 192.168.1.100).  The router
works fine when connecting another machine (running Windows
2000) to it.

As examples:
$ ping -c3 192.168.0.2  ## this is a Windows2000 box on the dc1 network
PING 192.168.0.2 (192.168.0.2): 56 data bytes
64 bytes from 192.168.0.2: icmp_seq=0 ttl=128 time=0.391 ms
64 bytes from 192.168.0.2: icmp_seq=1 ttl=128 time=0.177 ms
64 bytes from 192.168.0.2: icmp_seq=2 ttl=128 time=0.232 ms

--- 192.168.0.2 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.177/0.267/0.391/0.091 ms

localhost# tcpdump -lni dc1  ## tcpdump while running the above ping
tcpdump: listening on dc1
10:15:39.882162 arp who-has 192.168.0.2 tell 192.168.0.1
10:15:39.882305 arp reply 192.168.0.2 is-at 0:90:27:84:42:f
10:15:39.882318 192.168.0.1 > 192.168.0.2: icmp: echo request
10:15:39.882492 192.168.0.2 > 192.168.0.1: icmp: echo reply
10:15:40.883394 192.168.0.1 > 192.168.0.2: icmp: echo request
10:15:40.883511 192.168.0.2 > 192.168.0.1: icmp: echo reply
10:15:41.893417 192.168.0.1 > 192.168.0.2: icmp: echo request
10:15:41.893584 192.168.0.2 > 192.168.0.1: icmp: echo reply

$ ping -c3 192.168.1.1  ## ip address of the router on dc2
PING 192.168.1.1 (192.168.1.1): 56 data bytes

--- 192.168.1.1 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss

localhost# tcpdump -lni dc2  ## tcpdump while running the above ping
tcpdump: listening on dc2
10:17:18.123385 arp who-has 192.168.1.1 tell 192.168.1.100
10:17:19.124588 arp who-has 192.168.1.1 tell 192.168.1.100
10:17:20.134583 arp who-has 192.168.1.1 tell 192.168.1.100

Any ideas on getting this thing to work?  It seems to work
fine when connected to a Windows2000 machine.
Yes, I've tried other interfaces & cables, etc, so I'm
confident the hardware is fine. :)

Idea(s) on further troubleshooting/fixing this?

FAQs/documentation pointers are quite welcome. :)

Thanks,

-kc
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


4.9-stable & Linksys router won't talk with each other

2004-01-06 Thread Kenneth W Cochran
Hello:

I'm having problems getting a FreeBSD machine and a Linksys
WRT54G talking with each other.

Interfaces:
dc0 - "public" to outside network(s)
dc1 - internal 192.168.0.0/24
dc2 - internal 192.168.1.100/24, currently unused, gets the router (testing)
dc3 - currently unused

OS: FreeBSD 4.9-STABLE as of 10 December 2003
firewall: ipfw2
Running natd between dc0 & dc1 (& that works fine)

dc0 gets its IP address, etc., via DHCP/dhclient.
dc1 is configures statically & machines connected on that subnet work fine.
dc2 should get its ip address, etc. from a Linksys WRT54G,
but won't; syslog says "address in use."

Problems/questions:

dc2 has a Linksys WRT54G on it, & thus far, that box refuses
to talk (not even ping/traceroute) with the fbsd machine,
even if I set its ip-address & that of dc2 manually.  (The
Linksys defaults to running a dhcp server & its
factory-supplied ip-address is 192.168.1.00 & it "tries" to
setup the first interface talking to it to be 192.168.1.1).
I've even configured that router/wap to "all-static" using a
Windows2000 machine & it & the FreeBSD machine still won't
talk with each other.

Any ideas on getting this thing to work?  It seems to work
fine when connected to a Windows2000 machine.
Yes, I've tried other interfaces & cables, etc, so I'm
confident the hardware is fine. :)

FAQs/documentation pointers are quite welcome. :)

Thanks,

-kc
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Talk Filters and Gaim...

2003-12-09 Thread epilogue
hello all,

just wondering if any of you has had luck getting the talkfilters port
integrated with gaim?  i tried applying the patches included with the
talkfilters port, but no dice.  i suspect that this failure has much to do
with the difference between the version of gaim for which the patches were
written and the version of gaim i am running (0.74).

excerpt of talkfilters gaim-patch README:

  This patch is provided for interested hackers only, not for end
users. Familiarity with UNIX and C development is assumed. Please DO
NOT email me if you need help appying this patch.

This directory structure contains a skeleton of the gaim-0.59.8 source
tree.  

well, i'm not familiar with UNIX or C development (and i'm definitely not
e-mailing the author of talkfilters...  heheh), so i turn to you, the other
users.  i would really appreciate it if one of you could point me in the
right direction.  thanks.


cheers,
epi
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to talk to the serial and parallel ports through a C

2003-06-11 Thread Dan Nelson
In the last episode (Jun 11), Bernard Dugas said:
> Not sure, but i'm using the serial port only to read and write
> electrical values, to command power relays. On mickey systems, serial
> drivers are far to complicated for that.
> 
> Did anybody write a simple kernel module doing just that ?
> 
> #include 
> #include 
> 
> void getComValues(int adr,unsigned char *p_TxdS3,
> unsigned char *p_DtrS4,unsigned char *p_RtsS7,
> unsigned char *p_CtsE8,unsigned char *p_DsrE6,
> unsigned char *p_RiE9,unsigned char *p_DcdE1)
> {
>   unsigned char val3,val4,val6;
> 
>   val3=inb(adr+3);
>   *p_TxdS3=(val3&64)>>6 ; //récupère le bit 6
> 
>   val4=inb(adr+4);
>   *p_DtrS4=val4&1 ;   //récupère le bit 0
>   *p_RtsS7=(val4&2)>>1 ;  //récupère le bit 1
> 
>   val6=inb(adr+6);
>   *p_CtsE8=(val6&16)>>4 ;  //récupère le bit 4
>   *p_DsrE6=(val6&32)>>5 ;  //récupère le bit 5
>   *p_RiE9=(val6&64)>>6 ;   //récupère le bit 6
>   *p_DcdE1=(val6&128)>>7 ; //récupère le bit 7

Take a look at the tty(4) manpage; you should be able to open
/dev/cuaa0 (aka COM1), then use the TIOCMGET and TIOCMSET ioctls to get
and set the appropriate status bits, all from userland.  The
comms/sredird port uses this to provide remote virtual serial ports
with perfect control.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to talk to the serial and parallel ports through a C

2003-06-11 Thread Olivier Nicole
I'll reply on the parallel port:

fd_relay=open("/dev/ppi0", O_WRONLY);
ioctl(fd_relay, PPISDATA, value)

Value being an 8 bits value.

That works wonders with the relay card from Quality Kits
http://www.qkits.com/serv/qkits/diy/pages/QK74.asp

As for the entry, as I only needed 2 contacts, I used mouse button
(plus it provides a nice testing interface, just click on your mouse
buttons :)

Olivier
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to talk to the serial and parallel ports through a C

2003-06-11 Thread Bernard Dugas
Hello,

Malcolm Kay a écrit :
> The i/o space in FreeBSD is normally reserved for management
> by the kernel. In my opinion this makes it a real hosted OS rather
> than some mickey mouse thing.

This is why i'm using FreeBSD :-)

> However if a process run by root opens /dev/io then while it is
> held open the process can make direct access to i/o ports. Nice
> for experimenting with software, but for production it is better to
> write a kernel module for special driver requirements.
> 
> Are you sure the standard serial driver interfaces are not suitable
> for your needs -- they are very flexible.

Not sure, but i'm using the serial port only to read and write
electrical values, to command power relays. On mickey systems, serial
drivers are far to complicated for that.

Did anybody write a simple kernel module doing just that ?

#include 
#include 

void getComValues(int adr,unsigned char *p_TxdS3,
unsigned char *p_DtrS4,unsigned char *p_RtsS7,
unsigned char *p_CtsE8,unsigned char *p_DsrE6,
unsigned char *p_RiE9,unsigned char *p_DcdE1)
{
  unsigned char val3,val4,val6;

  val3=inb(adr+3);
  *p_TxdS3=(val3&64)>>6 ; //récupère le bit 6

  val4=inb(adr+4);
  *p_DtrS4=val4&1 ;   //récupère le bit 0
  *p_RtsS7=(val4&2)>>1 ;  //récupère le bit 1

  val6=inb(adr+6);
  *p_CtsE8=(val6&16)>>4 ;  //récupère le bit 4
  *p_DsrE6=(val6&32)>>5 ;  //récupère le bit 5
  *p_RiE9=(val6&64)>>6 ;   //récupère le bit 6
  *p_DcdE1=(val6&128)>>7 ; //récupère le bit 7

}

void setComValues(int adr,unsigned char c_TxdS3,unsigned char TxdS3,
unsigned char c_DtrS4, unsigned char DtrS4,
unsigned char c_RtsS7, unsigned char RtsS7)
{
unsigned char pmask3,pmask4,nmask3,nmask4,nnTxdS3,nnDtrS4,nnRtsS7;
// Quand c_x est faux, la variable x n'est pas modifiée.
//Le OU du pmask est utile quand x est à 1
//Le ET du nmask est utile quand x est à 0
//On fait les 2 opérations à la fois pour éviter une combinatoire
//conditionnelle.
//Il faut formatter x au cas où il serait strictment supérieur
//à 1
//Attention ! ~1=254 alors que !1=0
if(c_TxdS3)
{
nnTxdS3=!TxdS3;
TxdS3=!nnTxdS3;

//décalage de TxdS3 en bit 6
pmask3=TxdS3<<6;
nmask3=~(nnTxdS3<<6);

//on modifie seulement le(s) bit(s) modifié(s) de la valeur
//lue immédiatement avant, pour limiter les risques de modification
//intermédiaire.
outb(((inb(adr+3)|pmask3)&nmask3),adr+3);
}
//on ne touche pas au registre +3 si c_TxdS3 est faux
if(c_DtrS4 || c_RtsS7)
{
if(c_DtrS4)
{
nnDtrS4=!DtrS4;
DtrS4=!nnDtrS4;
}
else
{
//les 2 variables à 0 ne modifient aucun masque
nnDtrS4=0;
DtrS4=0;
}

if(c_RtsS7)
{
nnRtsS7=!RtsS7;
RtsS7=!nnRtsS7;
}
else
{
//les 2 variables à 0 ne modifient aucun masque
RtsS7=0;
nnRtsS7=0;
}

//décalage de RtsS7 en bit 1
pmask4=DtrS4|(RtsS7<<1);
nmask4=~(nnDtrS4|(nnRtsS7<<1));

//on modifie seulement le(s) bit(s) modifié(s) de la valeur
//lue immédiatement avant, pour limiter les risques de modification
//intermédiaire.
outb(((inb(adr+4)|pmask4)&nmask4),adr+4);
}
}


Best regards,
-- 

 __ Bernard DUGAS 
| |
|  Technoparc Pays de Gex  mailto:[EMAIL PROTECTED] |
|  30 Rue Auguste Piccard   Tel.: +33 450 205 105 |
| FR 01630 St Genis Pouilly Fax : +33 450 205 106 |
|_|


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to talk to the serial and parallel ports through a C

2003-06-11 Thread Guillaume
On 10 June 2003 18:45, Bernard Dugas wrote:
> Hi,
>
> I also did some programming on serial port to control pins with a c
> program under linux, but I didn't found any simple way to port it
> under freebsd. Any hint ?
>
> For instance, I need the equivalent of :
> inb(adr)
> outb(val,adr)
> iopl(n)
> ioperm(adr)
>
> from  and  in linux.


Try that:

---
#include 
#include 
#include 
#include 
#include 

#define porta 0x378
#define portb 0x379

const char *filename;

int main(void) {

  int fd, data;

  filename = "/dev/io";
  fd = open(filename, O_RDWR);

   if (fd < 0)
   {
 printf("Erreur d'accès à %s\n", filename);
 exit(1);
   }


outb(porta, 0xFF);
sleep(1);
outb(porta, 0x00);

sleep(1);

data = (inb(portb));

printf("data = %x\n", data);

  close(fd);

  exit(0);

}
-


Works with FreeBSD 5.x, I don't know with 4.x



Guillaume

>
> Best regard,
> Bernard Dugas
>
> > --
> >
> > Message: 32
> > Date: Mon, 09 Jun 2003 09:44:28 -0700
> > From: Dan Malaby <[EMAIL PROTECTED]>
> > Subject: how to talk to the serial and parallel ports through a C
> > program
> > To: [EMAIL PROTECTED]
> > Message-ID: <[EMAIL PROTECTED]>
> > Content-Type: text/plain; charset="us-ascii"; format=flowed
> >
> > I was wondering if there was a good place to go to get programing
> > examples on how to
> > talk to the serial and parallel ports. I have looked in the
> > developers handbook but have not
> > any luck finding what I want.
> >
> > Any pointers would be appreciated
> >
> > Thanks
> >
> > Daniel Malaby   voice:(510) 531-6500
> > Peritek Corp.   fax:   (510) 530-8563
> > 5550 Redwood Road   email: [EMAIL PROTECTED]
> > Oakland, CA 94619
> >
> > --

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to talk to the serial and parallel ports through a C

2003-06-11 Thread Malcolm Kay
On Wed, 11 Jun 2003 08:15, Bernard Dugas wrote:
> Hi,
>
> I also did some programming on serial port to control pins with a c
> program under linux, but I didn't found any simple way to port it under
> freebsd. Any hint ?
>
> For instance, I need the equivalent of :
> inb(adr)
> outb(val,adr)
> iopl(n)
> ioperm(adr)
>
> from  and  in linux.
>

The i/o space in FreeBSD is normally reserved for management 
by the kernel. In my opinion this makes it a real hosted OS rather
than some mickey mouse thing.

However if a process run by root opens /dev/io then while it is
held open the process can make direct access to i/o ports. Nice
for experimenting with software, but for production it is better to
write a kernel module for special driver requirements.

Are you sure the standard serial driver interfaces are not suitable 
for your needs -- they are very flexible.

Malcolm

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to talk to the serial and parallel ports through a C

2003-06-11 Thread Bernard Dugas
Hi,

I also did some programming on serial port to control pins with a c
program under linux, but I didn't found any simple way to port it under
freebsd. Any hint ?

For instance, I need the equivalent of :
inb(adr)
outb(val,adr)
iopl(n)
ioperm(adr)

from  and  in linux.

Best regard,
Bernard Dugas

> --
> 
> Message: 32
> Date: Mon, 09 Jun 2003 09:44:28 -0700
> From: Dan Malaby <[EMAIL PROTECTED]>
> Subject: how to talk to the serial and parallel ports through a C
> program
> To: [EMAIL PROTECTED]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="us-ascii"; format=flowed
> 
> I was wondering if there was a good place to go to get programing examples
> on how to
> talk to the serial and parallel ports. I have looked in the developers
> handbook but have not
> any luck finding what I want.
> 
> Any pointers would be appreciated
> 
> Thanks
> 
> Daniel Malaby   voice:(510) 531-6500
> Peritek Corp.   fax:   (510) 530-8563
> 5550 Redwood Road   email: [EMAIL PROTECTED]
> Oakland, CA 94619
> 
> --


-- 

 __ Bernard DUGAS 
| |
|  Technoparc Pays de Gex  mailto:[EMAIL PROTECTED] |
|  30 Rue Auguste Piccard   Tel.: +33 450 205 105 |
| FR 01630 St Genis Pouilly Fax : +33 450 205 106 |
|_|


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to talk to the serial and parallel ports through a Cprogram

2003-06-09 Thread Andreas Kohn
Am Mon, 2003-06-09 um 18.44 schrieb Dan Malaby:
> I was wondering if there was a good place to go to get programing examples 
> on how to
> talk to the serial and parallel ports. I have looked in the developers 
> handbook but have not
> any luck finding what I want.
> 
> Any pointers would be appreciated
>
> Thanks

Hello, 

at least for parallel ports, ppi might help you. There is a short
example in the ppi(4) man page:

 To present the value 0x5a to the data port, drive STROBE low and
then
 high again, the following code fragment can be used:
 
 int fd;
 u_int8_tval;
 
 val = 0x5a;
 ioctl(fd, PPISDATA, &val);
 ioctl(fd, PPIGCTRL, &val);
 val |= STROBE;
 ioctl(fd, PPISCTRL, &val);
 val &= ~STROBE;
 ioctl(fd, PPISCTRL, &val);

HTH, 
-- 
Andreas Kohn <[EMAIL PROTECTED]>


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


how to talk to the serial and parallel ports through a C program

2003-06-09 Thread Dan Malaby
I was wondering if there was a good place to go to get programing examples 
on how to
talk to the serial and parallel ports. I have looked in the developers 
handbook but have not
any luck finding what I want.

Any pointers would be appreciated

Thanks

Daniel Malaby   voice:(510) 531-6500
Peritek Corp.   fax:   (510) 530-8563
5550 Redwood Road   email: [EMAIL PROTECTED]
Oakland, CA 94619
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: talk can't find connection

2003-01-14 Thread Giorgos Keramidas
On 2003-01-15 08:04, [EMAIL PROTECTED] (P. U. Kruppa) wrote:
> I try to conect two users via talk. Both typed
>   # mesg y
> But when user_1 types
>   # talk user_2
> the talk screen appears and continues saying
>
> [No connection yet]
> [Checking for invitation on caller's machine]
> [Checking for invitation on caller's machine]
> [Checking for invitation on caller's machine]
> ...
>
> Strange is
>   # write user_2
> or
>   # write user_1
> works in both directions.
>
> So what can be done?

You need to enable the `ntalk' service in inetd.conf if it isn't
already.  Quoting from /etc/inetd.conf:

# ntalk is required for the 'talk' utility to work correctly
#ntalk  dgram   udp waittty:tty /usr/libexec/ntalkd ntalkd

- Giorgos


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



talk can't find connection

2003-01-14 Thread P. U. Kruppa

Hi!

I try to conect two users via talk. Both typed
# mesg y
But when user_1 types
# talk user_2
the talk screen appears and continues saying

[No connection yet]
[Checking for invitation on caller's machine]
[Checking for invitation on caller's machine]
[Checking for invitation on caller's machine]
...

Strange is
# write user_2
or
# write user_1
works in both directions.

So what can be done?

Regards,

Uli.


*---*
*Peter Ulrich Kruppa*
*  -  Wuppertal -   *
*  Germany  *
*---*



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: talk

2002-11-12 Thread Jonathan Chen
On Tue, Nov 12, 2002 at 06:51:51PM -0800, Noah Garrett Wallach wrote:
> 
> 
> talk does not appear to be working on my machine
> 
> mesg = y
> 
> but still I am not even able to talk to myself.
> 
> what can I do here?

Uncomment the ntalk line in /etc/inetd.conf and "kill -HUP" your inetd
process.
-- 
Jonathan Chen <[EMAIL PROTECTED]>
--
"I don't want to achive immortality through my works..
 I want to achieve it through not dying" - Woody Allen

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



talk

2002-11-12 Thread Noah Garrett Wallach


talk does not appear to be working on my machine

mesg = y

but still I am not even able to talk to myself.

what can I do here?



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: Making MACs and Windows talk

2002-07-23 Thread Mark Weisman

User,
   There are many different application that can be used to do this, 
however the first question I would have would be "what are you wanting 
to do?" Although this may sound a little redundant at this point, the 
reason I ask is that if you're talking about networking Mac's to a 
WindowsNT/2K Server, then you're done. By using Mac file sharing on the 
server, mission accomplished.
   Now if you're talking about having the Mac act like a PC, maybe run 
Windows as an OS, I recommend Connectix Virtual PC, which allows you to 
install all of the Windows OS, Linux, to name a few on the Mac running 
in a Virtual Machine. Natively, the newer Mac all speak TCP/IP, so 
networking is already there. File Sharing may be a little trickier if 
you're using a "Peer-to-Peer" style of network, however, it can be done.

Let me know,
His Humble Servant,
Mark

On Monday, July 22, 2002, at 03:20 AM, User & wrote:

> I was tasked at work to network some Windows boxes with some Macs 
> running OS
> 9.x.
>
> Anyone doing this and what programs do you recommend?
>
> Would like to use all open source if possible.
>
> Thanks,
>
> Tim
>
> --
> FreeBSD 4.6-RELEASE
>  6:17AM  up 6 days, 19:05, 1 user, load averages: 3.02, 3.31, 3.64
>
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: Making MACs and Windows talk

2002-07-22 Thread Jim Arnold

>I was tasked at work to network some Windows boxes with some Macs running OS
>9.x.
>
>Anyone doing this and what programs do you recommend?
>
>Would like to use all open source if possible.


Can you install netatalk so the macs can talk to a the FreeBSD
machine and install samba so the windows people
can talk to the same FreeBSD box?

Then you are using the FreeBSD as a kind of way station.
Maybe I'm missing the point?

--jim

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: Making MACs and Windows talk

2002-07-22 Thread

On Monday 22 July 2002 05:30 pm, Gary Dunn wrote:
> On Mon, 2002-07-22 at 01:20, User & wrote:
> > I was tasked at work to network some Windows boxes with some Macs running
> > OS 9.x.
> >
> > Anyone doing this and what programs do you recommend?
> >
> > Would like to use all open source if possible.
>
> Begin by reading AppleCare Knowledgebase article # 19652, "Macintosh:
> Networking With a Windows-Compatible PC" You will have the best results
> with OS X, as it ships with SAMBA (http://www.samba.org/).

Yes, I wish we could use OS X, but appearently it will not run on their 
machines? So I've been told, I know nothing about Macs. :(

Thanks,

Tim

-- 
FreeBSD 4.6-RELEASE
 5:56PM  up 13 mins, 1 user, load averages: 0.03, 0.11, 0.07

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: Making MACs and Windows talk

2002-07-22 Thread Gary Dunn

On Mon, 2002-07-22 at 01:20, User & wrote:
> I was tasked at work to network some Windows boxes with some Macs running OS 
> 9.x.
> 
> Anyone doing this and what programs do you recommend? 
> 
> Would like to use all open source if possible.
> 
Begin by reading AppleCare Knowledgebase article # 19652, "Macintosh:
Networking With a Windows-Compatible PC" You will have the best results
with OS X, as it ships with SAMBA (http://www.samba.org/).
 
-- 

  Gary Dunn
  Open Slate Project
  http://www.aloha.com/~knowtree/
  Honolulu
  registered Linux user #273809

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Making MACs and Windows talk

2002-07-22 Thread

I was tasked at work to network some Windows boxes with some Macs running OS 
9.x.

Anyone doing this and what programs do you recommend? 

Would like to use all open source if possible.

Thanks,

Tim

-- 
FreeBSD 4.6-RELEASE
 6:17AM  up 6 days, 19:05, 1 user, load averages: 3.02, 3.31, 3.64

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message