Re: The question of moving vi to /bin

2009-06-29 Thread Glyn Millington
Polytropon free...@edvax.de writes:
 When Bill G. arrives at the pearly gate, ol' Pete won't ask
 him what he did do, instead send him to MICROS~1 C:\HELL.EXE
 with the advice to click on the devil to start the everlasting
 pain. :-)


Brilliant!!


atb








Glyn
___
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: serial modem

2009-06-29 Thread Wojciech Puchar


ttyd0 /usr/libexec/getty std.115200 dialup on
ttyd1 /usr/libexec/getty std.115200 dialup on

then i do:
# kill -HUP 1

ps shows:
62496 0.0 0.2 3184 952 ?? I 10:53PM 0:00.00 /usr/libexec/getty std.115200 
ttyd0
62667 0.0 0.2 3184 1004 ?? I 11:37PM 0:00.00 /usr/libexec/getty std.115200 
ttyd1


of course you need only ttyd0.

___
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: The question of moving vi to /bin

2009-06-29 Thread Manish Jain

Daniel Underwood wrote:

How did The question of moving vi to /bin end up as two different
conversations for me in gmail?




Hello Daniel,

When I did a 'Reply to All', the moderator blocked the posting claiming 
too high a number of recipients. I cancelled the posting, and resent it 
using 'Reply to Sender'. I don't know whether the original posting 
itself got through as well.


--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.
___
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: what character is a physical newline

2009-06-29 Thread Bertram Scharpf
Hi,

Am Sonntag, 28. Jun 2009, 22:27:49 -0400 schrieb Aryeh M. Friedman:
 Glen Barber wrote:
 On Sun, Jun 28, 2009 at 10:21 PM, Aryeh M.
 Friedmanaryeh.fried...@gmail.com wrote:
   
 I am writting a parser (tokenizes all characters among other things) and
 need to know what control char is equivelent to a newline (I do not need
 windows cross compatibility)

 What do you mean exactly?  What language(s)?  If I understand your
 question correctly, the C / C++ / Java / PHP (and I think Perl)
 'newline' character is '\n'
   
 I meant what ascii character does \n actual correspond to (I assume CR 
 but just making sure)

  $ perl -e 'print ord(\n), \n'
  10
  $ python -c 'print ord(\n)'
  10
  $ ruby -e 'puts \n[0]'
  10
  $ cat nl.c 
  #include stdio.h
  int main(int argc, char **argv)
  {
  printf( %d\n, '\n');
  return 0;
  }
  $ cc -o nl nl.c
  $ ./nl
  10
  $ echo | od -d
  00010
  001


Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de
___
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: gmirror gm0 destroyed on shutdown; GPT corrupt

2009-06-29 Thread Anton Shterenlikht
On Thu, Jun 25, 2009 at 09:41:13AM -0700, Marcel Moolenaar wrote:
 
 On Jun 25, 2009, at 4:02 AM, Anton Shterenlikht wrote:
  dev_taste(DEV,mirror/gm0)
  g_part_taste(PART,mirror/gm0)
 
  GEOM: mirror/gm0: the secondary GPT table is corrupt or invalid.
  GEOM: mirror/gm0: using the primary only -- recovery suggested.
  ^^^
 
 You created the mirror after the GPT, which means you destroyed
 the GPT backup header. gmirror uses the last sector on the disk
 for metadata and that by itself is a cause for various problems.

So, gmirror cannot be used on ia64 to mirror the boot disk?

Because on ia64 the last sector always contains secondary GPT.
I take it the RAID1 section, 19.4, in FBSD user manual,
was written with i386 or alpha architecture in mind.

 It's better to use gmirror per partition.

how? Is it in the manual? any link?


  #echo 'geom_mirror_load=YES'  /boot/loader.conf
 
 Is /boot a symlink for /efi/boot?

yes,

lrwxr-xr-x   1 root  wheel 8 Jun 25 10:44 boot - efi/boot


  And when the system is rebooted, there is no /dev/mirror anymore.
 
 You could run into a race condition between GPT and gmirror and
 GPT winning (again the result of gmirror using the last sector
 on a disk for metadata).
 
 Alternatively, make sure gmirror got loaded at boot.

# kldstat
Id Refs AddressSize Name
 13 0xe400 ff9c08   kernel
 21 0xe4ffa000 3c830geom_mirror.ko
#

It's not that I desperately need to mirror a boot disk, it just that
gmirror looked so easy in the manual, I wanted to give it a go.

Perhaps I can just do a block copy to the second disk, say once a day,
and have it as a backup.

Could you also possibly comment on gvinum on ia64?

many 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 928 8233 
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: FreeBSD 7.2 - iwi error

2009-06-29 Thread Siyan Sabinov Hadzhiev
Thank you for your reply Jose ,

I have configure bmiss parameter in rc.conf as you said and enable
debug.iwi in sysctl , Bellow you can see the log entries.

Jun 29 13:40:13 bsdt43 kernel: enter FW state 4
Jun 29 13:40:13 bsdt43 kernel: Scan request: index 393 dwell 150/30/30
Jun 29 13:40:13 bsdt43 kernel: Scan 1 2.4GHz channels: 1/BCAST
Jun 29 13:40:13 bsdt43 kernel: sending command idx=13 type=26 len=96
Jun 29 13:40:13 bsdt43 kernel: sending command idx=14 type=23 len=0
Jun 29 13:40:13 bsdt43 kernel: Scan completed (1, 2)
Jun 29 13:40:13 bsdt43 kernel: exit FW state 4
Jun 29 13:40:43 bsdt43 kernel: enter FW state 4
Jun 29 13:40:43 bsdt43 kernel: Scan request: index 394 dwell 150/30/30
Jun 29 13:40:43 bsdt43 kernel: Scan 1 2.4GHz channels: 6/BCAST
Jun 29 13:40:43 bsdt43 kernel: sending command idx=15 type=26 len=96
Jun 29 13:40:44 bsdt43 kernel: Scan completed (1, 1)
Jun 29 13:40:44 bsdt43 kernel: exit FW state 4
Jun 29 13:40:44 bsdt43 kernel: enter FW state 4
Jun 29 13:40:44 bsdt43 kernel: Scan request: index 395 dwell 108/30/30
Jun 29 13:40:44 bsdt43 kernel: Scan 1 2.4GHz channels: 11/BCAST
Jun 29 13:40:44 bsdt43 kernel: sending command idx=0 type=26 len=96
Jun 29 13:40:44 bsdt43 kernel: Scan completed (1, 1)
Jun 29 13:40:44 bsdt43 kernel: exit FW state 4
Jun 29 13:40:44 bsdt43 kernel: enter FW state 4
Jun 29 13:40:44 bsdt43 kernel: Scan request: index 396 dwell 50/30/30
Jun 29 13:40:44 bsdt43 kernel: Scan 1 2.4GHz channels: 7/BCAST
Jun 29 13:40:44 bsdt43 kernel: sending command idx=1 type=26 len=96
Jun 29 13:40:44 bsdt43 kernel: Scan completed (1, 1)
Jun 29 13:40:44 bsdt43 kernel: exit FW state 4
Jun 29 13:40:59 bsdt43 kernel: enter FW state 4
Jun 29 13:40:59 bsdt43 kernel: Scan request: index 397 dwell 149/30/30
Jun 29 13:40:59 bsdt43 kernel: Scan 1 2.4GHz channels: 13/BCAST
Jun 29 13:40:59 bsdt43 kernel: sending command idx=2 type=26 len=96
Jun 29 13:40:59 bsdt43 kernel: Scan completed (1, 1)
Jun 29 13:40:59 bsdt43 kernel: exit FW state 4
Jun 29 13:40:59 bsdt43 kernel: enter FW state 4
Jun 29 13:40:59 bsdt43 kernel: Scan request: index 398 dwell 91/30/30
Jun 29 13:40:59 bsdt43 kernel: Scan 1 2.4GHz channels: 2/BCAST
Jun 29 13:40:59 bsdt43 kernel: sending command idx=3 type=26 len=96
Jun 29 13:40:59 bsdt43 kernel: sending command idx=4 type=23 len=0
Jun 29 13:40:59 bsdt43 kernel: Scan completed (1, 2)
Jun 29 13:40:59 bsdt43 kernel: exit FW state 4
Jun 29 13:41:09 bsdt43 kernel: enter FW state 4
Jun 29 13:41:09 bsdt43 kernel: Scan request: index 399 dwell 150/30/30
Jun 29 13:41:09 bsdt43 kernel: Scan 1 2.4GHz channels: 3/BCAST
Jun 29 13:41:09 bsdt43 kernel: sending command idx=5 type=26 len=96
Jun 29 13:41:09 bsdt43 kernel: Scan completed (1, 1)
Jun 29 13:41:09 bsdt43 kernel: exit FW state 4
Jun 29 13:41:09 bsdt43 kernel: enter FW state 4
Jun 29 13:41:09 bsdt43 kernel: Scan request: index 400 dwell 91/30/30
Jun 29 13:41:09 bsdt43 kernel: Scan 1 2.4GHz channels: 4/BCAST
Jun 29 13:41:09 bsdt43 kernel: sending command idx=6 type=26 len=96
Jun 29 13:41:09 bsdt43 kernel: Scan completed (1, 1)
Jun 29 13:41:09 bsdt43 kernel: exit FW state 4
Jun 29 13:41:09 bsdt43 kernel: enter FW state 4
Jun 29 13:41:09 bsdt43 kernel: Scan request: index 401 dwell 33/30/30
Jun 29 13:41:09 bsdt43 kernel: Scan 1 2.4GHz channels: 5/BCAST
Jun 29 13:41:09 bsdt43 kernel: sending command idx=7 type=26 len=96
Jun 29 13:41:09 bsdt43 kernel: sending command idx=8 type=23 len=0
Jun 29 13:41:09 bsdt43 kernel: Scan completed (1, 2)
Jun 29 13:41:09 bsdt43 kernel: exit FW state 4
Jun 29 13:41:19 bsdt43 kernel: enter FW state 4
Jun 29 13:41:19 bsdt43 kernel: Scan request: index 402 dwell 150/30/30
Jun 29 13:41:19 bsdt43 kernel: Scan 1 2.4GHz channels: 8/BCAST
Jun 29 13:41:19 bsdt43 kernel: sending command idx=9 type=26 len=96
Jun 29 13:41:19 bsdt43 kernel: Scan completed (1, 1)
Jun 29 13:41:19 bsdt43 kernel: exit FW state 4
Jun 29 13:41:19 bsdt43 kernel: enter FW state 4
Jun 29 13:41:19 bsdt43 kernel: Scan request: index 403 dwell 106/30/30
Jun 29 13:41:19 bsdt43 kernel: Scan 1 2.4GHz channels: 9/BCAST
Jun 29 13:41:19 bsdt43 kernel: sending command idx=10 type=26 len=96
Jun 29 13:41:19 bsdt43 kernel: sending command idx=11 type=23 len=0
Jun 29 13:41:19 bsdt43 kernel: Scan completed (1, 2)
Jun 29 13:41:19 bsdt43 kernel: exit FW state 4
Jun 29 13:41:40 bsdt43 kernel: enter FW state 4
Jun 29 13:41:40 bsdt43 kernel: Scan request: index 404 dwell 150/30/30
Jun 29 13:41:40 bsdt43 kernel: Scan 1 2.4GHz channels: 10/BCAST
Jun 29 13:41:40 bsdt43 kernel: sending command idx=12 type=26 len=96
Jun 29 13:41:40 bsdt43 kernel: Scan completed (1, 1)
Jun 29 13:41:40 bsdt43 kernel: exit FW state 4
Jun 29 13:41:40 bsdt43 kernel: enter FW state 4
Jun 29 13:41:40 bsdt43 kernel: Scan request: index 405 dwell 111/30/30
Jun 29 13:41:40 bsdt43 kernel: Scan 1 2.4GHz channels: 12/BCAST
Jun 29 13:41:40 bsdt43 kernel: sending command idx=13 type=26 len=96
Jun 29 13:41:40 bsdt43 kernel: Scan completed (1, 1)
Jun 29 13:41:40 bsdt43 kernel: exit FW state 4
Jun 29 

how do I append a PR I submitted?

2009-06-29 Thread Aryeh M. Friedman

See subject
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: how do I append a PR I submitted?

2009-06-29 Thread Sylvio Cesar
You could to use:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/porting-submitting.html

or

http://www.freebsd.org/send-pr.html

Regards,

Sylvio Cesar


2009/6/29 Aryeh M. Friedman aryeh.fried...@gmail.com:
 See subject
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


FreeBSD FireWire

2009-06-29 Thread Samuel Martín Moro
Hi all !

I'm trying to read from two firewire DV cameras.

calling fwcontrol without arguments shows me three elements.
except EUI64 field, every datas (node, ...) change when I plug in or out a
device.

when I'm trying to read from my cameras' streams (using fwcontrol), I always
get the same stream, which is the one of the last camera I pluged in.

Reading the sources, I noticed you can specify your source in fwcontrol,
using option 'u'.
this option makes an strtol on the following argument, and uses it back to
open /dev/fw%d.0

so I looked my /dev, and all I got is fw0, fw0.0, fwmem0, fwmem-0.0
fw0 and wfmem0 are respectives links to fw0.0 and fwmem0.0

so, whatever i could ask, i'll always get the same source camera.

When there already is a plugged firewire device, I can plug in or out others
FW devices, without affecting my /dev.


How can I do to get all my FW devices associed to a file in /dev?


Thanks for your help.
Sorry for my english.


Samuel Martín Moro
CamTrace
{EPITECH.} tek3
___
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: Re: Re: Which latex should I install

2009-06-29 Thread af300wsm

On Jun 26, 2009 7:32am, Daniel Underwood djuatde...@gmail.com wrote:

Hopefully Polytropon will chime in on this, but I had to install



TeXLive for everything to work.





Suggestion: try teTeX. If you encounter problems, then install TeXLive.



Daniel,

I wanted to ask, but neglected to until now, did you install from the DVD  
or the network? Also, did you install for FreeBSD (pre-compiled binaries),  
or did you install Linux binaries?


Andy
___
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: libtool shared

2009-06-29 Thread Charlie Kester

On Sun 28 Jun 2009 at 21:08:49 PDT alexus wrote:

I didn't had any issues while doing exact same thing on another box,
so, it's this particular box that wont compile it properly is there any
suggestions towards solution for this particular problem (other then
changing managment) =)


That's new and important information!  What's different about this box
that makes the difference?

You're using the exact same sourcecode, correct?  And the exact same
toolchain?

What environment variables are set on the failing machine?  



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: how do I append a PR I submitted?

2009-06-29 Thread Giorgos Keramidas
On Mon, 29 Jun 2009 07:39:24 -0400, Aryeh M. Friedman 
aryeh.fried...@gmail.com wrote:
 See subject

Please don't do that.  Subject is for a short summary, and in this case
the summary is so short that the question may be misunderstood.

  * Do you want to append more information to an _existing_ PR?
  * Do you want to _add_ a new PR to the database?

In the first case, you can just email `bug-follo...@freebsd.org' using a
subject of the form:

  Re: docs/100200: summary of the PR here

In the second case, see the `Writing FreeBSD Problem Reports' article at
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/problem-reports/

___
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: what character is a physical newline

2009-06-29 Thread Jerry McAllister
On Sun, Jun 28, 2009 at 10:38:20PM -0400, Vince Sabio wrote:

 ** At 22:30 -0400 on 06/28/2009, Glen Barber wrote:
 On Sun, Jun 28, 2009 at 10:27 PM, Aryeh M. Friedman wrote:
  
  What do you mean exactly?  What language(s)?  If I understand your
  question correctly, the C / C++ / Java / PHP (and I think Perl)
   'newline' character is '\n'
  
  I meant what ascii character does \n actual correspond to (I assume CR 
  but
   just making sure)
 
 No, CR is a carriage return, which is a \r in C, and is an ASCII 13 (hex 
 0D).
 
 Newline is a line feed (LF), which is a \n in C, and is an ASCII 10 (hex 
 0A)
 
 Oh.  IIRC, CR is the DOS way, and LR is the POSIX way.
 
 Not exactly; CRLF is the DOS way, CR is the Macintosh way, and LF is 
 Unix/Posix.


A quick Google search for ASCII came up with this page:

   http://www.asciitable.com/

Which correctly lists Line Feed  (LF) as:  Decimal 10, Hex 0A, Octal 012

Carriage Return (CR) is:  Decimal 13, Hex 0D, Octal 015

jerry



 
 HTH.
 
 __
 Vince Sabio  vi...@vjs.org
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
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: what character is a physical newline

2009-06-29 Thread Jerry McAllister
On Mon, Jun 29, 2009 at 06:56:48AM +0100, Matthew Seaman wrote:

 Aryeh M. Friedman wrote:
 Glen Barber wrote:
 On Sun, Jun 28, 2009 at 10:21 PM, Aryeh M.
 Friedmanaryeh.fried...@gmail.com wrote:
  
 I am writting a parser (tokenizes all characters among other things) and
 need to know what control char is equivelent to a newline (I do not need
 windows cross compatibility)
 
 
 What do you mean exactly?  What language(s)?  If I understand your
 question correctly, the C / C++ / Java / PHP (and I think Perl)
 'newline' character is '\n'
 
   
 I meant what ascii character does \n actual correspond to (I assume CR 
 but just making sure)
 
 On Unix, the end of line character is NL (012 octal, 10 decimal, 0x0a hex) 
 --
 see ascii(7).  Some people know it as Ctrl-J

Gee, wouldn't you know it, in FreeBSD, there is even a man page for it.

jerry


 
   Cheers,
 
   Matthew
 
 -- 
 Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
 


___
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: The question of moving vi to /bin

2009-06-29 Thread Gary Gatten
Good to know, but I was just being a smart-a$$.  I will have to try out
WINE though, been reading about it lately..

-Original Message-
From: owner-freebsd-questi...@freebsd.org
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of RW
Sent: Sunday, June 28, 2009 10:21 PM
To: freebsd-questions@freebsd.org
Subject: Re: The question of moving vi to /bin

On Thu, 25 Jun 2009 16:15:12 -0500
Gary Gatten ggat...@waddell.com wrote:

 I like M$ Notepad - is there a version of that for FBSD? 

Actually, there is. Wine implements it's own version of notepad.

___
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





font size=1
div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 
1.0pt 0in'
/div
This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system.
/font

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: how do I append a PR I submitted?

2009-06-29 Thread Jerry McAllister
On Mon, Jun 29, 2009 at 07:39:24AM -0400, Aryeh M. Friedman wrote:

 See subject

It is impolite to expect someone responding to a message to
have to go back to the subject line like this.

 See subject

is a very inadequate and somewhat tersely offensive.   
It certainly does not help those with a text based Email reader 
that does not show the subject in the included text for a response.

jerry


 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: serial modem

2009-06-29 Thread Brent Bloxam

kalin m wrote:


hi all...

my first time using serial ports and modems. the modem is hooked up 
using RS-232 cable...


modem specs:

• Baud Rate: 115.2kbps
• Bits: 8
• Stop Bits: 1
• Parity: none
• Hardware Handshaking: Yes


my /etc/ttys:

ttyd0 /usr/libexec/getty std.115200 dialup on
ttyd1 /usr/libexec/getty std.115200 dialup on

then i do:
# kill -HUP 1

ps shows:
62496 0.0 0.2 3184 952 ?? I 10:53PM 0:00.00 /usr/libexec/getty 
std.115200 ttyd0
62667 0.0 0.2 3184 1004 ?? I 11:37PM 0:00.00 /usr/libexec/getty 
std.115200 ttyd1


according to the handbook i would see the above. i'm not sure if i need 
both ttyd0 and 1 since i have hooked only one modem but there is no 
explanation about that in the handbook.


messages says:
Jun 28 23:37:17 moo getty[62667]: open /dev/ttyd1: No such file or 
directory


and no other entries... so i guess that settles the need of ttyd1!?!

ok. so now i put in /etc/remote:
sio0|com1:dv=/dev/cuad0:br#115200:pa=none:

and, following the instructions in the handbook, try reaching the modem 
doing:

# tip -v cuad0

i get:
tip: unknown host tip0



I've no experience with serial modems, but having read the man pages I 
believe your remote(5) line is incorrect.


sio0|com1:dv=/dev/cuad0:br#115200:pa=none:

sets system names sio0 and com1, then you try to execute tip to connect 
to cuad0. Is there an entry for cuad0 in your /etc/remote? I'm confused 
as to why tip is returning 'unknown host tip0' however.


Give `tip -v sio0` a shot, or change the system names in your 
/etc/remote line

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: how do I append a PR I submitted?

2009-06-29 Thread Anton Shterenlikht

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: how do I append a PR I submitted?

2009-06-29 Thread Anton Shterenlikht
On Mon, Jun 29, 2009 at 11:31:49AM -0400, Jerry McAllister wrote:
 On Mon, Jun 29, 2009 at 07:39:24AM -0400, Aryeh M. Friedman wrote:
 
  See subject
 
 is a very inadequate and somewhat tersely offensive.   
 It certainly does not help those with a text based Email reader 
 that does not show the subject in the included text for a response.

which mail reader do you have in mind?
I use mail and mutt, and I'm happy with simple questions in subject.

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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: The question of moving vi to /bin

2009-06-29 Thread Charlie Kester

On Mon 29 Jun 2009 at 08:19:58 PDT Gary Gatten wrote:

Good to know, but I was just being a smart-a$$.  I will have to try out
WINE though, been reading about it lately..

-Original Message-
From: owner-freebsd-questi...@freebsd.org
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of RW
Sent: Sunday, June 28, 2009 10:21 PM
To: freebsd-questions@freebsd.org
Subject: Re: The question of moving vi to /bin

On Thu, 25 Jun 2009 16:15:12 -0500
Gary Gatten ggat...@waddell.com wrote:


I like M$ Notepad - is there a version of that for FBSD?


Actually, there is. Wine implements it's own version of notepad.


Because it implements its own version of the multiline edit control,
Notepad is just a thin wrapper around that, providing a main window to
house the control and a menu to drive it.

Wordpad is to the rich text control as Notepad is to the edit control.
Probably (meaning I don't know it for a fact) they were both originally
written as testbeds/demos for the controls, which are used throughout
Windows.

Kinda like the relationship between vi and curses, really -- except that
vi was written first and then curses was abstracted from it.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Firefox: Video but no audio

2009-06-29 Thread Carmel NY
FreeBSD-7.2

Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.0.11) Gecko/2009062122 
Firefox/3.0.11

I am having a problem getting Firefox to play audio. For instance, on
Youtube, it will display the video portion fine; however, there is no
audio present. Also, when I visit sites that have background music, it
does not work with Firefox either. In fact, that is how it responds to
every site I have tried it on.

Is there a plug-in that I have not installed?

-- 
Carmel
car...@hotmail.com

A mouse is a device used to point at the xterm you want to type in.
___
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


DHCP using ral

2009-06-29 Thread Robert Hall
I'm trying to set up a connection between an FBSD box and a wireless
access point. The background is that there's no security on this
network; as the person who set it up says, You just start your
computer and it works!

I have an XP box with a wireless NIC working, but I don't want to use
the XP box as the gateway for my personal lan to an insecure network.
On the XP box, if I point a browser to 192.168.1.1, I'm told that the
router is WRT54GX2, which I take to be a popular Linksys router. I
don't have physical access to the router and I don't have the password
for the router.

I've got a wireless Linksys NIC that uses the ral driver facing the
wireless router. The NIC facing my lan uses the em driver and is
working fine. uname -a says FreeBSD 7.2-RELEASE #0. In rc.conf I
have
ifconfig_ral0=DHCP
After booting, if I ping 192.168.1.1, I get no route to host and I
have no lease file in /var/db. ifconfig ral0 tells me that I have no
inet address associated with ral0, status is no carrier, and the
ssid is an empty string. dhclient ral0 sends a series of
DHCPDISCOVER messages, but I get no DHCPOFFER messages, and I get an
empty lease file. If I run ifconfig ral0 again, inet is 0.0.0.0,
status is associated, and ssid is the proper ssid for the wireless
router. ifconfig ral0 list scan gives the proper information for the
router.

At some point I did get a proper lease. I don't know when or how. I've
never had a usable connection to the router from the FBSD box, and
I've never had access to the nameservers listed in the lease. If I
rename the old lease file to dhcp.leases.ral0, and then run dhclient
ral0, I send 3 DHCPREQUEST messages, 2 DHCPDISCOVER messages, 2
DHCPREQUEST messages, and 6 DHCPDISCOVER messages. dhclient tells me
that no DHCPOFFERs were received, and it binds to the address in lease
file, 192.168.1.104. However, ifconfig ral0 shows no inet address. I
still can't ping the router.

ifconfig ral0 inet 192.168.1.104 netmask 255.255.255.0 assigns the
specified values. Ping no longer tells me that there's no route to the
host, but I'm getting about 95% packet loss. netstat -r now shows
that link1 (ral0) is the gateway to 192.168.1.0. I still don't have a
usable connection.

resolv.conf says nameserver 192.168.0.1, which is the nameserver for
my personal lan. I can't nslookup URLs outside of my lan. If I
manually add the nameservers in the dhcp lease, I can nslookup
www.google.com. But ping has 100% packet loss.

/etc/hosts associates 127.0.0.1 with localhost.krig.net, and
192.168.0.6 with stamfordbru.krig.net, which is correct for my lan.

I'm stumped. :)

I don't know if this is related; the XP box is telling me that the
router has no connection to the internet, but it obviously does have a
connection because the XP box can load web pages and I can use my
gmail account.

Thanks for any help.
___
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: Re: Re: Which latex should I install

2009-06-29 Thread Daniel Underwood
 I wanted to ask, but neglected to until now, did you install from the DVD or
 the network? Also, did you install for FreeBSD (pre-compiled binaries), or

I initially tried the network installation, but there are so many
packages/files to retrieve that I quit and went for the DVD install.
I recommend just downloading the DVD image; I believe it's compressed
with lzma2, which means the total data transfer should be much
smaller.

I installed the linux (or platform-independent) version. Works perfectly for me.
___
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: DHCP using ral

2009-06-29 Thread Brent Bloxam

Robert Hall wrote:

ifconfig ral0 inet 192.168.1.104 netmask 255.255.255.0 assigns the
specified values. Ping no longer tells me that there's no route to the
host, but I'm getting about 95% packet loss. netstat -r now shows
that link1 (ral0) is the gateway to 192.168.1.0. I still don't have a
usable connection.



Not especially helpful but I thought I'd throw this out there, Linksys 
routers by default define their DHCP range as 192.168.1.100 - 
192.168.1.149, so pick an address outside that space if you're trying to 
assign statically. You can often get away with setting the IP of the 
router (default of 192.168.1.1 for Linksys) as your DNS, as many Linksys 
routers have a built in DNS proxy.


Are you sure you're getting a strong enough signal from the AP? Have you 
had success with this WiFi card accessing other APs? Do you have access 
to a different WiFi card you could try?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


update from 7.0 to 7.2?

2009-06-29 Thread Brad Mettee
If a system is stable and ports are up to date, serving mail  web pages as 
needed, is there any reason to update from this:
FreeBSD ns1.pchotshots.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 
10:35:36 UTC 
2008 r...@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64


To something newer? (like 7.2 stable)

Would there be any noticeable benefit from an update?

Thanks

Brad Mettee
PC HotShots, Inc.
Baltimore, MD
(410) 426-7617

 - Let us bring out the *Power* of your PCs. -
- Custom Business Software Solutions since 1991 -

visit http://www.pchotshots.com for information about our company.

___
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: Firefox: Video but no audio

2009-06-29 Thread dan
On Monday 29 June 2009 18:19:21 Carmel NY wrote:
 FreeBSD-7.2

 Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.0.11) Gecko/2009062122
 Firefox/3.0.11

 I am having a problem getting Firefox to play audio. For instance, on
 Youtube, it will display the video portion fine; however, there is no
 audio present. Also, when I visit sites that have background music, it
 does not work with Firefox either. In fact, that is how it responds to
 every site I have tried it on.

 Is there a plug-in that I have not installed?

Do you mean that the Flash plugin outputs no sound ? Which plugin are you 
currently using ? Gnash or linux-flash ?

d

___
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: update from 7.0 to 7.2?

2009-06-29 Thread Andreas Rudisch
On Mon, 29 Jun 2009 14:05:29 -0400
Brad Mettee bmet...@pchotshots.com wrote:

 If a system is stable and ports are up to date, serving mail  web pages as 
 needed, is there any reason to update from this:
 FreeBSD ns1.pchotshots.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 
 10:35:36 UTC 
 2008 r...@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
 
 To something newer? (like 7.2 stable)
 
 Would there be any noticeable benefit from an update?

You mean other than using a supported system with bug and security fixes?

Andreas
--
GnuPG key  : 0x2A573565|http://www.gnupg.org/howtos/de/
Fingerprint: 925D 2089 0BF9 8DE5 9166  33BB F0FD CD37 2A57 3565


pgp594kTq58ty.pgp
Description: PGP signature


Re: update from 7.0 to 7.2?

2009-06-29 Thread Earl Gay
On Mon, Jun 29, 2009 at 2:05 PM, Brad Mettee bmet...@pchotshots.com wrote:

 If a system is stable and ports are up to date, serving mail  web pages as
 needed, is there any reason to update from this:
 FreeBSD ns1.pchotshots.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24
 10:35:36 UTC 2008 
 r...@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
  amd64

 To something newer? (like 7.2 stable)

 Would there be any noticeable benefit from an update?

 Thanks

Brad Mettee
PC HotShots, Inc.
Baltimore, MD
(410) 426-7617



There's always the if it ain't broke, don't fix it belief. If you're using
ZFS, 7.2-STABLE has the latest ZFS update; comparitavely, 7.1-RELEASE has a
longer time until end-of-life. You could also check out the release notes to
see if any of the updates are something worth upgrading for, respective to
your needs/setup.

Regards,
Earl
___
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


Croatia

2009-06-29 Thread Arrigo Group
Direct flights to Croatia with Special Prices

Packages starting from Eu399pp which includes direct flights to Split, airport 
taxes, 7-nights in a self-catering apartment
or
Tour packages starting from Eu465pp which includes direct flights to Split, 
airport taxes, 7-nights in a central hotel in Trogir on bed and breakfast, 
transfers and tour leader


Flight only also available.
Special prices applies for groups of over 5 passengers!!  
For further details visit: www.letsgoholiday.com or call on 2345 2345


___
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: update from 7.0 to 7.2?

2009-06-29 Thread Roland Smith
On Mon, Jun 29, 2009 at 02:05:29PM -0400, Brad Mettee wrote:
 If a system is stable and ports are up to date, serving mail  web pages as 
 needed, is there any reason to update from this:
 FreeBSD ns1.pchotshots.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 
 10:35:36 UTC 
 2008 r...@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
 
 To something newer? (like 7.2 stable)
 
 Would there be any noticeable benefit from an update?
 
It depends. There are vulnerabilities in kernel and userland fixed
between 7.0-RELEASE and 7.2-RELEASE-p2. See
http://security.freebsd.org/advisories.html If any of these
vulneratbilities affect your system you should see if there are
workarounds mentioned. If not it would be best to upgrade. 

If you subscribe tot the freebsd-announce mailing-list, you'll be warned
when a vulnerability is found. You can then judge if it is wise to apply
the fix.

In general, I would follow the minor version branch (RELENG_7_X,
7.2-RELEASE-pX) to pick up fixes for vulnerabilities.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgps3uDKJMg8w.pgp
Description: PGP signature


Re: update from 7.0 to 7.2?

2009-06-29 Thread Lowell Gilbert
Brad Mettee bmet...@pchotshots.com writes:

 If a system is stable and ports are up to date, serving mail  web
 pages as needed, is there any reason to update from this:
 FreeBSD ns1.pchotshots.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb
 24 10:35:36 UTC 2008
 r...@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

 To something newer? (like 7.2 stable)

 Would there be any noticeable benefit from an update?

At *least* make sure you get the security updates...

-- 
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 freebsd-questions-unsubscr...@freebsd.org


Re: update from 7.0 to 7.2?

2009-06-29 Thread Brad Mettee

At 03:20 PM 6/29/2009, you wrote:

Brad Mettee bmet...@pchotshots.com writes:

 If a system is stable and ports are up to date, serving mail  web
 pages as needed, is there any reason to update from this:
 FreeBSD ns1.pchotshots.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb
 24 10:35:36 UTC 2008
 r...@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

 To something newer? (like 7.2 stable)

 Would there be any noticeable benefit from an update?

At *least* make sure you get the security updates...

--
Lowell Gilbert, embedded/networking software engineer, Boston area


Ok, looks like I have some reading to do.

Thanks everyone.


Brad Mettee
PC HotShots, Inc.
Baltimore, MD
(410) 426-7617

 - Let us bring out the *Power* of your PCs. -
- Custom Business Software Solutions since 1991 -

visit http://www.pchotshots.com for information about our company.

___
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: DHCP using ral

2009-06-29 Thread Robert Hall
On Mon, Jun 29, 2009 at 1:35 PM, Brent Bloxambre...@beanfield.com wrote:
 Robert Hall wrote:

 ifconfig ral0 inet 192.168.1.104 netmask 255.255.255.0 assigns the
 specified values. Ping no longer tells me that there's no route to the
 host, but I'm getting about 95% packet loss. netstat -r now shows
 that link1 (ral0) is the gateway to 192.168.1.0. I still don't have a
 usable connection.


 Not especially helpful but I thought I'd throw this out there, Linksys
 routers by default define their DHCP range as 192.168.1.100 - 192.168.1.149,
 so pick an address outside that space if you're trying to assign statically.

Good point. I tried that, but 192.168.1.104 and 192.168.1.150 work the
same. No difference that I can tell

 You can often get away with setting the IP of the router (default of
 192.168.1.1 for Linksys) as your DNS, as many Linksys routers have a built
 in DNS proxy.

Ah. That doesn't solve the problem, but it works and it's useful.

 Are you sure you're getting a strong enough signal from the AP?

I think I am. The XP box is reporting a strong signal, and it's on the
self below the FBSD box. Of course, the XP box is also reporting no
Internet connection, and I'm using it to reply to you, so who knows.

The XP box with a Belkin NIC works pretty well. The boxes are very
close, so I'm guessing that signal strength is not an issue.

 Have you had
 success with this WiFi card accessing other APs?

I have no other APs I can try it with. The only other AP within range
is none of my business.

 Do you have access to a
 different WiFi card you could try?

No. This Linksys card was the only PCI card at the local MicroCenter
that was supported by FBSD 7.2. :)

Thanks for your interest in my problem. :)
___
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


AMD64 VM with OpenGL?

2009-06-29 Thread xorquewasp
Hello.

What's the preferred virtual machine on FreeBSD 7.2-RELEASE on amd64 if
OpenGL support is required?

Please CC me as I'm not subscribed.

xw
___
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: DHCP using ral

2009-06-29 Thread Manolis Kiagias
Robert Hall wrote:
 I'm trying to set up a connection between an FBSD box and a wireless
 access point. The background is that there's no security on this
 network; as the person who set it up says, You just start your
 computer and it works!

 I have an XP box with a wireless NIC working, but I don't want to use
 the XP box as the gateway for my personal lan to an insecure network.
 On the XP box, if I point a browser to 192.168.1.1, I'm told that the
 router is WRT54GX2, which I take to be a popular Linksys router. I
 don't have physical access to the router and I don't have the password
 for the router.

 I've got a wireless Linksys NIC that uses the ral driver facing the
 wireless router. The NIC facing my lan uses the em driver and is
 working fine. uname -a says FreeBSD 7.2-RELEASE #0. In rc.conf I
 have
 ifconfig_ral0=DHCP
 After booting, if I ping 192.168.1.1, I get no route to host and I
 have no lease file in /var/db. ifconfig ral0 tells me that I have no
 inet address associated with ral0, status is no carrier, and the
 ssid is an empty string. dhclient ral0 sends a series of
 DHCPDISCOVER messages, but I get no DHCPOFFER messages, and I get an
 empty lease file. If I run ifconfig ral0 again, inet is 0.0.0.0,
 status is associated, and ssid is the proper ssid for the wireless
 router. ifconfig ral0 list scan gives the proper information for the
 router.

 At some point I did get a proper lease. I don't know when or how. I've
 never had a usable connection to the router from the FBSD box, and
 I've never had access to the nameservers listed in the lease. If I
 rename the old lease file to dhcp.leases.ral0, and then run dhclient
 ral0, I send 3 DHCPREQUEST messages, 2 DHCPDISCOVER messages, 2
 DHCPREQUEST messages, and 6 DHCPDISCOVER messages. dhclient tells me
 that no DHCPOFFERs were received, and it binds to the address in lease
 file, 192.168.1.104. However, ifconfig ral0 shows no inet address. I
 still can't ping the router.

 ifconfig ral0 inet 192.168.1.104 netmask 255.255.255.0 assigns the
 specified values. Ping no longer tells me that there's no route to the
 host, but I'm getting about 95% packet loss. netstat -r now shows
 that link1 (ral0) is the gateway to 192.168.1.0. I still don't have a
 usable connection.

 resolv.conf says nameserver 192.168.0.1, which is the nameserver for
 my personal lan. I can't nslookup URLs outside of my lan. If I
 manually add the nameservers in the dhcp lease, I can nslookup
 www.google.com. But ping has 100% packet loss.

 /etc/hosts associates 127.0.0.1 with localhost.krig.net, and
 192.168.0.6 with stamfordbru.krig.net, which is correct for my lan.

 I'm stumped. :)

 I don't know if this is related; the XP box is telling me that the
 router has no connection to the internet, but it obviously does have a
 connection because the XP box can load web pages and I can use my
 gmail account.

 Thanks for any help.
   
I happen to have a Linksys router (not the same model though) and a
Linksys pci card that uses the ral driver. Never had any problems,
though I am not using DHCP.
Here are a few manual steps to try:

First off, try setting the ssid on the command line:

ifconfig ral ssid Myssid

Execute ifconfig by itself, and see if you get an associated message.
(you may have to wait a minute before you do) If you don't, chances are
the following will do nothing

dhclient ral0

if this does not succeed, set an IP address manually:

ifconfig ral0 inet 192.168.1.50 netmask 255.255.255.0

Before attempting to test the internet connection, add the router as
nameserver in /etc/resolv.conf and don't forget to add the router's
address as the default gateway:

route add default 192.168.1.X

From my experience, the important part is to get the associated
message after the initial ifconfig. Not much hope otherwise.

As an afterthought, is the XP machine on while you are trying to
connect? If they are too close they maybe interfering.
___
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: Firefox: Video but no audio

2009-06-29 Thread Carmel NY
On Mon, 29 Jun 2009 20:57:01 +0200
dan mesli...@yahoo.fr wrote:

 On Monday 29 June 2009 18:19:21 Carmel NY wrote:
  FreeBSD-7.2
 
  Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.0.11)
  Gecko/2009062122 Firefox/3.0.11
 
  I am having a problem getting Firefox to play audio. For instance,
  on Youtube, it will display the video portion fine; however, there
  is no audio present. Also, when I visit sites that have background
  music, it does not work with Firefox either. In fact, that is how
  it responds to every site I have tried it on.
 
  Is there a plug-in that I have not installed?
 
 Do you mean that the Flash plugin outputs no sound ? Which plugin are
 you currently using ? Gnash or linux-flash ?

linux-flashplugin-9.0r159 used in conjunction with firefox-3.0.11,1

The video is great; however, there is no audio.

-- 
Carmel
car...@hotmail.com

A prohibitionist is the sort of man one wouldn't care to drink with --
even if he drank.

Mencken
___
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: Chomium on FreeBSD?

2009-06-29 Thread Chad Perrin
On Sun, Jun 28, 2009 at 06:47:53PM -0400, Daniel Underwood wrote:
 Is there an effort to build a port of chromium for FreeBSD? I recently
 began using chromium on my Linux machine, and the HTML rendering speed
 is quite impressive.
 
 When it has the ability to synchronize bookmarks, I'll use it exclusively.

I second this sentiment.  I quite like Chrome/Chromium thus far, and
would love to have it available on FreeBSD -- combining my browser of
choice with my OS of choice.  As things currently stand, I get to use a
browser I like slightly less most of the time, and my browser of choice
on an OS I quite dislike on the rare occasion I need to do cross-platform
Web development testing.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
Quoth Alan Perlis: LISP programmers know the value of everything and
the cost of nothing.


pgprTdIIlDWFh.pgp
Description: PGP signature


Re: Firefox: Video but no audio

2009-06-29 Thread dan
On Monday 29 June 2009 22:09:23 Carmel NY wrote:
 On Mon, 29 Jun 2009 20:57:01 +0200

 dan mesli...@yahoo.fr wrote:
  On Monday 29 June 2009 18:19:21 Carmel NY wrote:
   FreeBSD-7.2
  
   Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.0.11)
   Gecko/2009062122 Firefox/3.0.11
  
   I am having a problem getting Firefox to play audio. For instance,
   on Youtube, it will display the video portion fine; however, there
   is no audio present. Also, when I visit sites that have background
   music, it does not work with Firefox either. In fact, that is how
   it responds to every site I have tried it on.
  
   Is there a plug-in that I have not installed?
 
  Do you mean that the Flash plugin outputs no sound ? Which plugin are
  you currently using ? Gnash or linux-flash ?

 linux-flashplugin-9.0r159 used in conjunction with firefox-3.0.11,1

 The video is great; however, there is no audio.

Hmmm... I am afraid I can't really help. Does the plugin tells any warning 
message ? If not I doubt there is any missing plugin...
 Anyways try first to check the audio levels, making sure the relevant are 
__not__ zero (i.e. PCM and so on). Then try to understand if any error 
message is thrown on the console somewhere

d
___
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: upgrading installed ports: time to do it ?

2009-06-29 Thread dan
On Wednesday 24 June 2009 17:19:09 you wrote:
 On Monday, 22 June 2009 16:48:02 RW wrote:
  On Mon, 22 Jun 2009 20:58:41 +0100
 
  Chris Whitehouse cwhi...@onetel.com wrote:
   I'll probably get flamed for this but since I've been using
   ports-mgmt/portmanager I've almost forgotten
   about /usr/ports/UPDATING and all that pkgdb -Fu stuff or whatever it
   was. I've upgraded ports just by doing 'portmanager -u' over one or
   two quite major changes and not had any problems that haven't been
   down to an individual ports.
 
  You still need to read UPDATING, portmanager handles some of the
  issues automatically, but not all.
  ___
  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

 Hello,

 Here is a perl hack I use to automatically read and parse UPDATING as part
 of my daily upgrade routine.  It is part of a larger set of five scripts
 which use:
  1. csup to update ports
  2. make index to update the /usr/ports/INDEX
  3. pkg_version to identify the ports that need upgrading
  4. portfetch to download the tarballs
  5. a script to display the relevant contents, if any, of UPDATING using
 the hack shown below and the contents identified in step 3 above.

 These five scripts are combined in a master script (csup-all) which I
 invoke the first thing in the morning.  After doing some other morning
 chores I then run portconfig -a -v to set up any configuration settings
 prior to running portmaster -a -u.  Everything is automatic except for
 the configuration.

 Here is the perl hack.  It can be improved by comparing the ports that need
 to be updated (step 3) with the ports specified within UPDATING (step 5). 
 The embedded ansi codes will work with the default FreeBSD console
 settings, otherwise they can be removed.

 #!/usr/bin/perl
 #
 # file:csup-update.pl
 #
 # created: 2006-07-16
 #
 # purpose: To review update notes in /usr/ports/UPDATING
 #  This program will only display those notes issued
 #  since last csup
 #
 # algorithm: Each line of the file /usr/ports/UPDATING is scanned and if
 #  it finds a date in the form ^mmdd$ the date is assigned
 #  to the variable $date.  Otherwise all non-date lines are printed
 #  to STDOUT.  As soon as this program finds a date older than the
 #  last update this program quits and prints an appropriate closing
 #  message.
 #
 unless ( open ( MYFILE, /usr/ports/UPDATING ) ) {
 die (Cannot open input file /usr/ports/UPDATING.\n) ;
 }

 unless ( open ( LASTUPDATE, /root/bin/csup-lastupdate.txt ) ) {
 die (Cannot open file csup-lastupdate.txt.\n) ;
 }

 $eof = '' ;
 $date = $lastupdate = LASTUPDATE ;
 $line = MYFILE ;
 $count = 0 ;

 while ( $line ne $eof ) {
 if ( $line =~ /^2\d{7}/ ) {
 $date = $line ;
 $date =~ tr/://d ;
 $count++ ;
 }

 if ( ( $date - $lastupdate ) = 0 ) {
 if ( $line =~ /^2\d{7}/ ) {
 print (^[[32m$line^[[0m) ;
 } else {
 print (^[[0m$line) ;
 }
 $line = MYFILE ;
 $date = $lastupdate ;
 } else {
 $count-- ;
 if ( $count == 0 ) {
 print ( ^[[36mThere are no updates to review. ) ;
 } elsif ( $count == 1 ) {
 print ( ^[[36mThere is only one update to review. ) ;
 } else {
 print ( ^[[36mThere are $count updates to review. ) ;
 }
 chop  ( $lastupdate ) ;
 print ( The last run of csup was on $lastupdate.^[[0m\n\n  ) ;

 exit ;
 }
 }
 # EoF

 ___
 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

Hello mfv !

Thanks for sharing your perl hack and your experience :-)

I do not know anything about PERL, but I am starting taking a look at this !

THanks

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


Novell Groupwise on FreeBSD

2009-06-29 Thread Daniel Underwood
Has anyone been able to use the Novell Groupwise email/calendaring
system on FreeBSD?  If so, please explain how you accomplished this.
___
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: libtool shared

2009-06-29 Thread Mel Flynn
On Sunday 28 June 2009 14:18:54 alexus wrote:

 ltconfig:432: gcc -E conftest.c
 ltconfig:547: checking if gcc PIC flag -fPIC works
 ltconfig:548: gcc -c  -fPIC -DPIC  conftest.c 15
 ltconfig:591: checking if gcc static flag -static works
 ltconfig:592: gcc -o conftest-static conftest.c  15
 ltconfig:624: checking for ld used by GCC
 GNU ld version 2.15 [FreeBSD] 2004-05-23
 ltconfig:971: checking if global_symbol_pipe works
 ltconfig:972: gcc -c   conftest.c 15
 ltconfig:975: eval /usr/bin/nm -B conftest.o | sed -n -e 's/^.*
 [ABCDGISTUW] \([_A-Za-z][_A-Za-z0-9]*\)$/\1 \1/p'  conftest.nm
 ltconfig:1033: gcc -o conftest  -fno-builtin   conftest.c conftestm.o 15

It stops here? It should give a reason and configure should continue 
eventually. Or did you CTRL-C the process and output didn't end up in the file 
yet? Let the entire configure run through, then inspect config.log where 
configure eventually says it's unable to build shared libraries.
-- 
Mel
___
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: AMD64 VM with OpenGL?

2009-06-29 Thread Roland Smith
On Mon, Jun 29, 2009 at 08:14:17PM +0100, xorquew...@googlemail.com wrote:
 Hello.
 
 What's the preferred virtual machine on FreeBSD 7.2-RELEASE on amd64 if
 OpenGL support is required?

Depends on what your definitions of a virtual machine and OpenGl support
are. :-)

All CPU level virtual machines (like bochs, qemu, virtualbox) can run
emulated OpenGL in their guest operating systems.

If you are asking if there is a virtual machine that passes OpenGL calls
directly to the hosts' OpenGL system, the only things that come to mind
are:
- FreeBSD jails
- the Wine MS Windows emulator.


Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpZTBFlaepDn.pgp
Description: PGP signature


Re: AMD64 VM with OpenGL?

2009-06-29 Thread xorquewasp
On 2009-06-29 23:34:08, Roland Smith wrote:
 On Mon, Jun 29, 2009 at 08:14:17PM +0100, xorquew...@googlemail.com wrote:
  Hello.
  
  What's the preferred virtual machine on FreeBSD 7.2-RELEASE on amd64 if
  OpenGL support is required?
 
 Depends on what your definitions of a virtual machine and OpenGl support
 are. :-)

Yeah, probably should have mentioned that!

I actually meant the definition you gave: a VM with native OpenGL
acceleration.

I wonder if the virtualbox port to FreeBSD is likely to be able to
use this at all:

  http://www.cs.toronto.edu/~andreslc/xen-gl/

Virtualbox + VMGL seems the most likely candidate at the moment -
I'm just not sure if it's currently stable at all.

xw
___
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: my kernel is not build/install

2009-06-29 Thread Chris Rees
2009/6/26 Kent Stewart kstew...@owt.com:

 make buildkernel KERNCONF=FREEBSD1 21 |
 tee /var/log/build/bkernel-`date +%Y%m%d-%H%M`.log

 It leaves a complete log everytime I build a kernel. Your options would be
 different and I also use csh.



[ch...@amnesiac]~% make buildkernel KERNCONF=FREEBSD1 21 |tee
/var/log/build/bkernel-`date +%Y%m%d-%H%M`.log
Ambiguous output redirect.
[ch...@amnesiac]~%

I think you've written that into a script for /bin/sh.

I've no idea how to pipe stderr in csh, but 21 is NOT the way to do it!

Chris

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in a mailing list?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: update from 7.0 to 7.2?

2009-06-29 Thread Erich Dollansky
Hi,

my general concept is not to stick with the releases but to keep 
the kernel on the current development like using RELENG_7 for 
CVS.

You will notice that HAL and DBUS changed. I noticed because of 
this real speed improvements on a slower machine.

Anyway, if this server runs mail and web pages, it is public 
available and so prone to attacks. So, make sure that you have 
the security updates installed.

Erich

On 30 June 2009 am 02:05:29 Brad Mettee wrote:
 If a system is stable and ports are up to date, serving mail 
 web pages as needed, is there any reason to update from this:
 FreeBSD ns1.pchotshots.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0:
 Sun Feb 24 10:35:36 UTC
 2008
 r...@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC 
 amd64

 To something newer? (like 7.2 stable)

 Would there be any noticeable benefit from an update?

 Thanks

  Brad Mettee
  PC HotShots, Inc.
  Baltimore, MD
  (410) 426-7617

   - Let us bring out the *Power* of your PCs. -
 - Custom Business Software Solutions since 1991 -

 visit http://www.pchotshots.com for information about our
 company.

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: AMD64 VM with OpenGL?

2009-06-29 Thread Roland Smith
On Mon, Jun 29, 2009 at 10:59:04PM +0100, xorquew...@googlemail.com wrote:
 On 2009-06-29 23:34:08, Roland Smith wrote:
  On Mon, Jun 29, 2009 at 08:14:17PM +0100, xorquew...@googlemail.com wrote:
   Hello.
   
   What's the preferred virtual machine on FreeBSD 7.2-RELEASE on amd64 if
   OpenGL support is required?
  
  Depends on what your definitions of a virtual machine and OpenGl support
  are. :-)
 
 Yeah, probably should have mentioned that!
 
 I actually meant the definition you gave: a VM with native OpenGL
 acceleration.
 
 I wonder if the virtualbox port to FreeBSD is likely to be able to
 use this at all:
 
   http://www.cs.toronto.edu/~andreslc/xen-gl/

The page says it does.

 Virtualbox + VMGL seems the most likely candidate at the moment -

From the abovementioned page: VMGL is available for X11-based guest OS's.

 I'm just not sure if it's currently stable at all.

At version 0.1.1, I wouldn't expect too much.

OpenGL is just a display mechanism. If the calculations feeding the
display have to be run in an emulator, this will slow your program down
considerably. 

If your program on the guest OS is already written for X11, can't you
port it to FreeBSD?  Or run it natively and transport the output to your
FreeBSD box via X11?

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgppF6ZurAyjQ.pgp
Description: PGP signature


Re: Firefox: Video but no audio

2009-06-29 Thread Manish Jain


Hi Carmel,

Do you have problems with sound only on Firefox ? If your problem is 
that you can't get sound with any application, then please see the 
output of 'cat /dev/sndstat'. If you get nothing, then you probably 
don't have an appropriate sound driver loaded.


If you have an Intel-based board, try putting snd_ich_load=YES and 
snd_hda_load=YES into your /boot/loader.conf


If your problem is Firefox-specific, then try editing 
Tools-Options. On the Applications tab, see whether you have an 
entry for MP3 Format Sounds and that it set to something reasonable.


--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.
___
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


OT: C syntax question

2009-06-29 Thread Robert Huff

Let us suppose I have a structure:

struct CONTINENT {
...
}

I use this to create an array of pointers to said struct:

struct CONTINENT *Asia[10][10];

Now I pass this array to a function:

plate_shift(Asia, (int) foo, (float) bar);

In the definition of the function, I say:

int plate_shift(Cont,f,b)
struct CONTINENT *Cont[10][10];
int f;
float b;
{
...
}

and the compiler does not complain.  If, however, I try to
prototype the function as:

  extern int plate_shift(struct CONTINENT *[][],int,float);

with:

CFLAGS = -Wall -std=c99

I get:

error: array type has incomplete element type

Changing to:

  extern int plate_shift(struct CONTINENT *foo[][],int,float);

returns the same error.
KR 2ed is not helpful, nor is a quick poke around the web.
What am I forgetting?

Respectfully,


Robert Huff

___
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: DHCP using ral

2009-06-29 Thread Vilem Kebrt

Manolis Kiagias napsal(a):

Robert Hall wrote:
  

I'm trying to set up a connection between an FBSD box and a wireless
access point. The background is that there's no security on this
network; as the person who set it up says, You just start your
computer and it works!

I have an XP box with a wireless NIC working, but I don't want to use
the XP box as the gateway for my personal lan to an insecure network.
On the XP box, if I point a browser to 192.168.1.1, I'm told that the
router is WRT54GX2, which I take to be a popular Linksys router. I
don't have physical access to the router and I don't have the password
for the router.

I've got a wireless Linksys NIC that uses the ral driver facing the
wireless router. The NIC facing my lan uses the em driver and is
working fine. uname -a says FreeBSD 7.2-RELEASE #0. In rc.conf I
have
ifconfig_ral0=DHCP
After booting, if I ping 192.168.1.1, I get no route to host and I
have no lease file in /var/db. ifconfig ral0 tells me that I have no
inet address associated with ral0, status is no carrier, and the
ssid is an empty string. dhclient ral0 sends a series of
DHCPDISCOVER messages, but I get no DHCPOFFER messages, and I get an
empty lease file. If I run ifconfig ral0 again, inet is 0.0.0.0,
status is associated, and ssid is the proper ssid for the wireless
router. ifconfig ral0 list scan gives the proper information for the
router.

At some point I did get a proper lease. I don't know when or how. I've
never had a usable connection to the router from the FBSD box, and
I've never had access to the nameservers listed in the lease. If I
rename the old lease file to dhcp.leases.ral0, and then run dhclient
ral0, I send 3 DHCPREQUEST messages, 2 DHCPDISCOVER messages, 2
DHCPREQUEST messages, and 6 DHCPDISCOVER messages. dhclient tells me
that no DHCPOFFERs were received, and it binds to the address in lease
file, 192.168.1.104. However, ifconfig ral0 shows no inet address. I
still can't ping the router.

ifconfig ral0 inet 192.168.1.104 netmask 255.255.255.0 assigns the
specified values. Ping no longer tells me that there's no route to the
host, but I'm getting about 95% packet loss. netstat -r now shows
that link1 (ral0) is the gateway to 192.168.1.0. I still don't have a
usable connection.

resolv.conf says nameserver 192.168.0.1, which is the nameserver for
my personal lan. I can't nslookup URLs outside of my lan. If I
manually add the nameservers in the dhcp lease, I can nslookup
www.google.com. But ping has 100% packet loss.

/etc/hosts associates 127.0.0.1 with localhost.krig.net, and
192.168.0.6 with stamfordbru.krig.net, which is correct for my lan.

I'm stumped. :)

I don't know if this is related; the XP box is telling me that the
router has no connection to the internet, but it obviously does have a
connection because the XP box can load web pages and I can use my
gmail account.

Thanks for any help.
  


I happen to have a Linksys router (not the same model though) and a
Linksys pci card that uses the ral driver. Never had any problems,
though I am not using DHCP.
Here are a few manual steps to try:

First off, try setting the ssid on the command line:

ifconfig ral ssid Myssid

  
Some wireless interfaces need to be gone UP by hand so set ssid by 
previous command and then execute

ifconfig ral0 up
william

Execute ifconfig by itself, and see if you get an associated message.
(you may have to wait a minute before you do) If you don't, chances are
the following will do nothing

dhclient ral0

if this does not succeed, set an IP address manually:

ifconfig ral0 inet 192.168.1.50 netmask 255.255.255.0

Before attempting to test the internet connection, add the router as
nameserver in /etc/resolv.conf and don't forget to add the router's
address as the default gateway:

route add default 192.168.1.X

From my experience, the important part is to get the associated
message after the initial ifconfig. Not much hope otherwise.

As an afterthought, is the XP machine on while you are trying to
connect? If they are too close they maybe interfering.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
  


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


configuring and ssh tunneling xorg from a headless FreeBSD machine

2009-06-29 Thread Dan Naumov
Hello list.

I have the following setup: a Windows Vista x64 SP1 machine (my
primary desktop) and a FreeBSD 7.2/amd64 running on a home NAS system
that's relatively powerful (Intel Atom 330 dualcore, 2gb ram). I would
like to be able to run xorg and a simple desktop on the headless
FreeBSD NAS and be able to interact with it from my Vista machine.
What are the steps I need to take for this? Obviously I need to build
xorg and some sort of a wm (probably gnome2-lite) on the FreeBSD
machine and install an xserver on the Vista machine, but then what?
Any pointers to guides and such are welcome.

Please keep me CCed as I am not subscribed.

- Sincerely,
Dan Naumov
___
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: OT: C syntax question

2009-06-29 Thread Brad Mettee

At 08:41 PM 6/29/2009, Robert Huff wrote:


Let us suppose I have a structure:

struct CONTINENT {
...
}

I use this to create an array of pointers to said struct:

struct CONTINENT *Asia[10][10];

Now I pass this array to a function:

plate_shift(Asia, (int) foo, (float) bar);

In the definition of the function, I say:

int plate_shift(Cont,f,b)
struct CONTINENT *Cont[10][10];
int f;
float b;
{
...
}

and the compiler does not complain.  If, however, I try to
prototype the function as:

  extern int plate_shift(struct CONTINENT *[][],int,float);

with:

CFLAGS = -Wall -std=c99

I get:

error: array type has incomplete element type

Changing to:

  extern int plate_shift(struct CONTINENT *foo[][],int,float);

returns the same error.
KR 2ed is not helpful, nor is a quick poke around the web.
What am I forgetting?

Respectfully,


Robert Huff


I believe since you are declaring the array as having a fixed number of 
elements, you must declare the function to take it the same way, like this:


  extern int plate_shift(struct CONTINENT *[10][10],int,float);

Without the 10,10 size definition, the plate_shift function would have no 
idea how big the array of pointers actually is.



Brad Mettee
PC HotShots, Inc.
Baltimore, MD
(410) 426-7617

 - Let us bring out the *Power* of your PCs. -
- Custom Business Software Solutions since 1991 -

visit http://www.pchotshots.com for information about our company.

___
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: OT: C syntax question

2009-06-29 Thread Chuck Swiger

Hi--

On Jun 29, 2009, at 5:41 PM, Robert Huff wrote:

and the compiler does not complain.  If, however, I try to
prototype the function as:

 extern int plate_shift(struct CONTINENT *[][],int,float);

with:

CFLAGS = -Wall -std=c99

I get:

error: array type has incomplete element type


You need to provide the size for all but the first element; see KRv2  
section 5.9 (p 113), or something like:


  http://home.netcom.com/~tjensen/ptr/ch7x.htm

Regards,
--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: OT: C syntax question

2009-06-29 Thread Charlie Kester

On Mon 29 Jun 2009 at 17:51:37 PDT Brad Mettee wrote:


I believe since you are declaring the array as having a fixed number 
of elements, you must declare the function to take it the same way, 
like this:


 extern int plate_shift(struct CONTINENT *[10][10],int,float);

Without the 10,10 size definition, the plate_shift function would have
no idea how big the array of pointers actually is.



Close.

If you pass a two-dimensional array as an argument, you must specify at
least the number of elements in the minor dimension, so the compiler
will know how to compute, for example, the offset of array[3][0] versus
array[6][0].

So this works:

   extern int plate_shift(struct CONTINENT *[][10], int, float);

But the following doesn't work, because it doesn't tell the compiler how
to compute the offsets:

   extern int plate_shift(struct CONTINENT *[10][], int, float); 


Of course, it doesn't hurt to specify the number of elements in
both dimensions.  But it would be a less general solution,  With
only the minor dimension specified, plate_shift can take pointers
to arrays of 20, 30, 40, 100 or 200 CONTINENT structures.  Any
multiple of 10 will do.  (But then you need to tell plate_shift when
it's reached the last set of pointers, or it might run off the end of
the array.  The usual way to handle this is to use all NULLs in the last
row, as a kind of sentinel.)
___
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: OT: C syntax question

2009-06-29 Thread Charlie Kester

On Mon 29 Jun 2009 at 19:12:10 PDT Charlie Kester wrote:


Of course, it doesn't hurt to specify the number of elements in
both dimensions.  But it would be a less general solution,  With
only the minor dimension specified, plate_shift can take pointers
to arrays of 20, 30, 40, 100 or 200 CONTINENT structures.  Any


Oops.  That's not worded correctly.  It should be:

... plate_shift can take a pointer to a multidimensional array of
20,30,40, 100 or 200 CONTINENT structures.

(Don't you hate it when your mistakes come back to haunt you in your
inbox?)
___
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: OT: C syntax question

2009-06-29 Thread Charlie Kester

On Mon 29 Jun 2009 at 19:20:04 PDT Charlie Kester wrote:

On Mon 29 Jun 2009 at 19:12:10 PDT Charlie Kester wrote:


Of course, it doesn't hurt to specify the number of elements in
both dimensions.  But it would be a less general solution,  With
only the minor dimension specified, plate_shift can take pointers
to arrays of 20, 30, 40, 100 or 200 CONTINENT structures.  Any


Oops.  That's not worded correctly.  It should be:

... plate_shift can take a pointer to a multidimensional array of
20,30,40, 100 or 200 CONTINENT structures.

(Don't you hate it when your mistakes come back to haunt you in your
inbox?)


I should have quit while I was ahead.  If this was a programming
interview, I just flunked it.  :(

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: OT: C syntax question

2009-06-29 Thread Erich Dollansky
Hi,

On 30 June 2009 am 10:40:01 Charlie Kester wrote:
 On Mon 29 Jun 2009 at 19:20:04 PDT Charlie Kester wrote:
 
 (Don't you hate it when your mistakes come back to haunt you
  in your inbox?)

at least there is nobody seeing your red face on a mailing list.

 I should have quit while I was ahead.  If this was a
 programming interview, I just flunked it.  :(

I would never get the idea asking a programmer questions like this 
at all.

Erich
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: configuring and ssh tunneling xorg from a headless FreeBSD machine

2009-06-29 Thread Peter Boosten
Dan Naumov wrote:
 Hello list.
 
 I have the following setup: a Windows Vista x64 SP1 machine (my
 primary desktop) and a FreeBSD 7.2/amd64 running on a home NAS system
 that's relatively powerful (Intel Atom 330 dualcore, 2gb ram). I would
 like to be able to run xorg and a simple desktop on the headless
 FreeBSD NAS and be able to interact with it from my Vista machine.
 What are the steps I need to take for this? Obviously I need to build
 xorg and some sort of a wm (probably gnome2-lite) on the FreeBSD
 machine and install an xserver on the Vista machine, but then what?
 Any pointers to guides and such are welcome.
 

You do not need a wm on the FreeBSD machine, since your Vista machine
already is (with the right software of course, like Xming). If you want
to tunnel your X traffic through ssh, then you'll need a ssh client on
Vista as well. Putty will suffice.

I think that's it: start Xming, ssh into your FreeBSD, your DISPLAY
environment will be set to localhost:10.0 (that's the default offset).
and fire some X client (say xterm) and it will show on your Vista.

Peter

-- 
http://www.boosten.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: configuring and ssh tunneling xorg from a headless FreeBSD machine

2009-06-29 Thread Erich Dollansky
Hi,

On 30 June 2009 am 08:57:23 Dan Naumov wrote:
 Hello list.

 I have the following setup: a Windows Vista x64 SP1 machine (my
 primary desktop) and a FreeBSD 7.2/amd64 running on a home NAS
 system that's relatively powerful (Intel Atom 330 dualcore, 2gb
 ram). I would like to be able to run xorg and a simple desktop
 on the headless FreeBSD NAS and be able to interact with it
 from my Vista machine. What are the steps I need to take for
 this? Obviously I need to build xorg and some sort of a wm

install cygwin on the Windows machine and then use its telnet or 
ssh to connect to your FreeBSD machine.

 (probably gnome2-lite) on the FreeBSD machine and install an
 xserver on the Vista machine, but then what? Any pointers to
 guides and such are welcome.

All you need on the FreeBSD machine is an installed X and telnet 
or better ssh enabled.

It is your choice where you run the WM. It can run on the Windows 
machine - which gives a better response - or the FreeBSD machine.

Start small with telnet and plain X on FreeBSD enabled and cygwin 
with X. X can display then your windows directly as Windows 
windows.

Erich
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: serial modem

2009-06-29 Thread kalin m


I've no experience with serial modems, but having read the man pages I 
believe your remote(5) line is incorrect.


sio0|com1:dv=/dev/cuad0:br#115200:pa=none:

sets system names sio0 and com1, then you try to execute tip to 
connect to cuad0. Is there an entry for cuad0 in your /etc/remote? I'm 
confused as to why tip is returning 'unknown host tip0' however.


Give `tip -v sio0` a shot, or change the system names in your 
/etc/remote line


yes the entry was wrong...   changed it. when i try to use tip i get 
device busy. when i use cu it says connected but nothing else happens 
and i don't see any prompts. it's like frozen. i can't type any AT 
commands... nothing. i changed the baud rate around. all the way down to 
9600. so now the same thing happens with tip. if used tip says connected 
but i can not issue any commands...


the modem has 2 leds. one yellow and one green. according to the manual 
the yellow should be blinking as follows:


Fast Blinking (0.5 sec on/0.5 sec off)  Net search/ Not 
registered/Turning Off

Slow Blinking (0.3 sec on/ 2.7 sec off)  Registered, Full Service

i think i'm only seeing 'Fast Blinking'.  i wonder what 'Net search' 
really means and where it's searching for it. it's connected through a 
RS-232 to the serial port...


?!?

thanks...

___
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


OT: C syntax question

2009-06-29 Thread Robert Huff

Robert Huff writes:

   Let us suppose I have a structure:

Thanks, everyone - you nailed it in one.


Robert What a _maroon_! Huff

___
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: OT: C syntax question

2009-06-29 Thread Charlie Kester

On Mon 29 Jun 2009 at 19:48:04 PDT Erich Dollansky wrote:


I would never get the idea asking a programmer questions like this at
all.


Yeah, nowadays nobody asks C programming questions in an interview.
It's all web programming now.  Back in the day, however, I was asked
(and asked) questions much like this one.   I used to have it down cold,
but since I retired my brain cells are forgetting a lot of it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: my kernel is not build/install

2009-06-29 Thread Matthew Seaman

Chris Rees wrote:

2009/6/26 Kent Stewart kstew...@owt.com:

make buildkernel KERNCONF=FREEBSD1 21 |
tee /var/log/build/bkernel-`date +%Y%m%d-%H%M`.log

It leaves a complete log everytime I build a kernel. Your options would be
different and I also use csh.




[ch...@amnesiac]~% make buildkernel KERNCONF=FREEBSD1 21 |tee
/var/log/build/bkernel-`date +%Y%m%d-%H%M`.log
Ambiguous output redirect.
[ch...@amnesiac]~%

I think you've written that into a script for /bin/sh.

I've no idea how to pipe stderr in csh, but 21 is NOT the way to do it!


% make buildkernel KERNCONF=FREEBSD1 | tee /var/log/build/bkernel-`date 
+%Y%m%d-%H%M`.log

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature