Re: boot question

2011-05-14 Thread Robert Simmons
On Saturday, May 14, 2011 10:38:37 AM you wrote:
  Date: Sat, 14 May 2011 09:44:42 -0400
  From: Robert Simmons rsimmo...@gmail.com
  To: freebsd-questions@freebsd.org
  Subject: boot question
 
  How do I boot from a kernel that is in a non-standard location on a disk
  that is partitioned with the GPT scheme?
 
 Things get a *LOT* messier if you want t relocate 'boot0' through 'boot4'
 as well as /boot/kernel.  Depending on _just_ what you want to do, you
 may have to build and install custom versions of those executables.

This is exactly what I want to do.  I want a minimum of three partitions on 
the drive.  One for swap, of course, but the other two I want to be:
/boot
/

I have gotten the kernel to boot by tricking boot2 into finding boot.config by 
locating it at /boot/boot.config rather than /boot.config and adding the 
following line to boot.config:
0:ad(0,1,a)/kernel/kernel

This gets me to the point where I have to enter the mount points manually at 
the mountroot prompt.  So, this is good progress.

This skips the loader stage of booting, however, which I would like to not 
have to do.  The problem is that if I put the following line in boot.config:
0:ad(0,1,a)/loader
then the loader cannot find its config file loader.conf

In boot(8) there doesn't seem to be a flag that you can pass to set where to 
find loader.conf. So, how can I tell it where to find loader.conf if it is in a 
non-standard location?
___
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


Installing FreeBSD on an encrypted volume

2011-05-12 Thread Robert Simmons
I have been trying to get FreeBSD installed on an encrypted volume and I've
run into an annoying problem.  Before I describe the problem, let me explain
what I have done so far.

first I used gpart to make GPT partitions: one freebsd-boot, two
freebsd-ufs.  The freebsd-boot is 64k and the following command installed
the boot code:
# gpart bootcode -b /mnt2/boot/pmbr -p /mnt2/boot/gptboot -i 1 ad0

The second freebsd-ufs is 200M for /boot and the third is for the GELI based
encrypted swap and /.  I used geli to encrypt ad0p3 and again used gpart to
carve it into two BSD slices, one 512m for swap and the other the rest of
the disk for /.

After everything is newfs'd and ad0p1 and ad0p3.elib are mounted as
/mnt/boot and /mnt/root respectively, I did export DESTDIR=/mnt/root and
ran the install.sh scripts in /dest/8.2-RELEASE/base and
/dest/8.2-RELEASE/kernels.

The next thing I did was to modify the /mnt/root/boot/loader.conf file so
that it loads the geom_eli module and edit the /mnt/root/boot/device.hints
file so that the password on boot works correctly for the encrypted volume.
 And I moved /mnt/root/boot/GENERIC to /mnt/root/boot/kernel.

Then I copied the contents of /mnt/root/boot to /mnt/boot.  I created a
directory /mnt/boot/etc and made a fstab and put one copy there and another
copy in /mnt/root/etc

This works great, however, I am left with /boot in two different places and
/etc/fstab in two places as well.  I would like to know if someone can come
up wth a more elegant solution to this.  At the moment I am mounting
/dev/ad0p2 as /bootdir and whenever I update the system, once the update is
done, I just do an archival copy of the contents of /boot into /bootdir/boot
and if there is a change to fstab I make the change in both places.

I understand that /boot cannot be encrypted (at the moment, until things
change).  But I would like to have /boot mounted directly from /dev/ad0p2 so
there is only one copy of it.

Any thoughts?
___
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


Encrypted Volume followup

2011-05-12 Thread Robert Simmons
As a followup to my earlier question, are there plans for a geli aware boot0
so /boot does not need to be unencrypted?  I know that this functionality
can be done with TrueCrypt with FreeBSD running inside a TrueCrypt system,
but having it part of FreeBSD would be great!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Kernel errors after upgrade from 8.1 to 8.2

2011-05-09 Thread Robert Fitzpatrick
After following the handbook Chapter 24 to upgrade from 8.1 to 8.2, I am 
getting kernel errors for various postfix commands...


May  9 08:54:13 mx3 kernel: pid 57056 (trivial-rewrite), uid 125: exited 
on signal 11

May  9 08:56:46 mx3 kernel: pid 57086 (smtpd), uid 125: exited on signal 11

I have searched the maillog and can't find any errors between restart 
and such entries as...


May  9 08:54:13 mx3 postfix/master[19357]: warning: process 
/usr/local/libexec/postfix/trivial-rewrite pid 57056 killed by signal 11
May  9 08:56:46 mx3 postfix/master[19357]: warning: process 
/usr/local/libexec/postfix/smtpd pid 57086 killed by signal 11


I updated the ports after the reboot and did a 'portupgrade -af' after 
the kernel update, restart, etc. I had no issues performing the upgrade 
according to the handbook and the System State Comparison seems OK...


mx3# cat outfile.ids | awk '{ print $1 }' | more
Looking
Fetching
Fetching
Inspecting
/boot/kernel/linker.hints
/etc/crontab
/etc/group
/etc/hosts
/etc/mail/aliases
/etc/mail/mailer.conf
/etc/manpath.config
/etc/master.passwd
/etc/motd
/etc/passwd
/etc/pwd.db
/etc/spwd.db
/etc/ssh/sshd_config
/usr/lib32

I also tried 'make deinstall' for postfix and re-installed. And the 
system reports 8.2-RELEASE. All the mail for a test domain seem to be 
flowing without issue, but these kernel messages and warnings tell me 
something is wrong. Can someone suggest what to do next in finding a 
solution? Or is it best to post this to the postfix list?


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


Re: Kernel errors after upgrade from 8.1 to 8.2

2011-05-09 Thread Robert Fitzpatrick

On 5/9/2011 12:33 PM, Reko Turja wrote:
I updated the ports after the reboot and did a 'portupgrade -af' 
after the kernel update, restart, etc. I had no issues performing the 
upgrade according to the handbook and the System State Comparison 
seems OK...


Did you do the whole

mergemaster -p
make buildworld
make buildkernel
make installkernel
reboot  test
make installworld
mergemaster

sequence?

As you tell about ending the process at reboot, I have a gut feeling 
that your userland is not up to date with kernel and the make 
installworld step is missing...


-Reko

Thanks, I think this may be my problem. I took it the wrong way when the 
handbook said this process is complete at the end of section 24.2 
meaning the upgrade process is complete. It did say during the process 
that the kernel changed and I rebooted with another 'freebsd-update 
install' afterward. Didn't realize more processes to follow. I am using 
a GENERIC kernel and do not have the source on the disk, of course then 
I get...


mx3# mergemaster -p

*** Creating the temporary root environment in /var/tmp/temproot
 *** /var/tmp/temproot ready for use
 *** Creating and populating directory structure in /var/tmp/temproot

cp: /usr/src/etc/master.passwd: No such file or directory

  *** FATAL ERROR: Cannot copy files to the temproot environment

So, I just need to get all the source and then rebuild as you mentioned?

--Robert

___
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: Newbie Needing Help

2011-05-09 Thread Robert Huff

John or Judy Hixson writes:

  Actually I'm using 7.4 because that's the latest version Lucas'
  book covers and I learn better with a book in my hand. When I'm
  ready to actually use FBSD, I'll get going with the latest
  production release.

At the level you're (probably) operating, the difference
between 7.4 and 8.2 is minimal.


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: Newbie Needing Help

2011-05-09 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Mon May  9 16:16:48 2011
 Date: Mon, 9 May 2011 14:15:49 -0700
 From: Chip Camden sterl...@camdensoftware.com
 To: freebsd-questions@freebsd.org
 Subject: Re: Newbie Needing Help


 --XRI2XbIfl/05pQwm
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable

 Quoth Chad Perrin on Monday, 09 May 2011:
  =20
   By the way, I remember a quote:
  =20
   =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
   Hello.  My $NAME is ~inigo-montoya.  You killed my process.  Prepare
   to vi.  --The Unix's Bride
   =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
   http://www.nancybuttons.com/catalog.cgi?o_custom=3Do_selected=3D1469:1=
 action=3Dbrowseaction_mod=3Dshowcat=3Dcro
 =20
  That joke is hilarious.  Pedantically speaking, though, it has a small
  problem: vi is pronounced like vee eye, not like the word vie.
 =20

 I've always pronounced it like vie -- but I was introduced to it long
 before the web, back in the dark ages when each shop figured out their
 own pronunciations and wrote their own compilers.

It was officially 'vee eye' -- so named because it was the _initials_
of the name 'visual iinterace to ed(1).  It was originally a 
separate program that did _just_ the curses-based display functions,
using 'ed' as a back-end process for the actual file manipulation.


That said  Prepare to 'vee eye'  is a close enough phonetic match to 
'prepare to die' for the joke to still work.


___
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: License for console fonts

2011-05-09 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Mon May  9 18:04:36 2011
 Date: Mon, 9 May 2011 18:04:30 -0500
 From: Dan Nelson dnel...@allantgroup.com
 To: Sean Hamilton seanhamil...@gmail.com
 Cc: freebsd-questions@freebsd.org
 Subject: Re: License for console fonts

 In the last episode (May 09), Sean Hamilton said:
  What is the license on the fonts in /usr/share/syscons/fonts, especially
  swiss-8x8?  Who/what is their origin?  Would it be acceptable to include
  these binaries with a GPL-licensed program?

 I submitted the swiss fonts back in 1997, and I have a file called
 swisst.com on an old DOS directory dated 1995, so they're probably even
 older than that.  I seem to remember the 8x16 font was inspired by a sample
 font that came with the ancient DOS font editor Font Mania, but for
 nostalgia's sake I goooled for it, started up DOSBox, and all of the sample
 fonts are fancy and not suitable for daily use.  I don't think I came up
 with the name swiss myself, so I probably used another VGA font as a
 template, but my guess is the original author isn't concerned about the
 copyright status...  You can consider them 2-clause BSD licensed like the
 rest of FreeBSD, until someone can find an older font that looks similar.

'Swiss' is a name _many_ people used for a free Helvetica look-alike font.

a substantial number were explicitly released into the public domain by being
prduced _without_ any copright notice -- This was *before* U.S. adpted the 
Berne Convention' copyright rules, and publication without copyright claim
did, in _those_days_ (although *not* true today) did put it in the public
domain.

GNU, and GhostScript, had a Swiss font.

Cassiday  Greene (a type foundry company) had a Swiss in their catalogue.
(copyrighted, but -very- inexpensive to license.)

I think the X11 distribution has a real, licensed, Helvetica,

Thus, an 'authoritative' answer abuut the 'swiss' font in the FreeBSDo
distribution is going to depend on _which_ font named swiss that it 
actually is.   I would _not_ want to hazard a guess on that point -- among
other things, I'm *nt* a good enough typographer to tell the difference
between 'very simmilar' fonts.  wry grin


___
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: Newbie Needing Help

2011-05-09 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Mon May  9 18:16:11 2011
 From: Ricardo Cuevas Camarena rcue...@nic.mx
 To: freebsd-questions@freebsd.org freebsd-questions@freebsd.org
 Date: Mon, 9 May 2011 17:59:04 -0500
 Subject: RE: Newbie Needing Help


  -Original Message-
  From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
  questi...@freebsd.org] On Behalf Of Gary Kline
  Sent: Monday, May 09, 2011 4:21 PM
  To: freebsd-questions@freebsd.org
  Subject: Re: Newbie Needing Help
  
  On Mon, May 09, 2011 at 02:55:22PM -0600, Chad Perrin wrote:
  
   That joke is hilarious.  Pedantically speaking, though, it has a small
   problem: vi is pronounced like vee eye, not like the word vie.
  
   --
   Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
  
  for(;;)
  puts(YES);
 Use the unix commands...
 $ yes

I already have an over-abundance, from my last harvest of nits, but I guess
I have to pick one more.

To be equivalent to the  putative 'c' fragment shown, the command-line 
equivalent is _not_ what was shown above.  Rather it is:


$ yes YES





___
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


remove all ports

2011-05-08 Thread Robert Huff

Dino Vliet writes:

  Over time a few ports  were installed, for which I have no use
  now. I figured out the alternatives I have are:

Which is easier depends on

a) how many total ports
b) how many you want to remove
c) whether you know exactly which ones need to go

If if youy don't know the answer to (c), then it's probably
easiest to scrub everything and start over.
If you do, and (b) is a large number, ditto.
Otherwise: make a list, go to /var/db/pkg, and run
pkg_deinstall on each port.

One man's opinion,


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: thunderbird-3.1.10 build error

2011-05-08 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Sun May  8 12:15:43 2011
 From: Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org
 To: Janos Dohanics w...@3dresearch.com
 Date: Sun, 08 May 2011 13:14:36 -0400
 Cc: FreeBSD Questions freebsd-questions@freebsd.org
 Subject: Re: thunderbird-3.1.10 build error

 Janos Dohanics w...@3dresearch.com writes:

  Trying to build thunderbird-3.1.10 on a FreeBSD 8.2-STABLE amd64 
  machine and getting this error:
 
  gmake[4]: Entering directory 
  `/usr/ports/mail/thunderbird/work/comm-1.9.2/mailnews/import' gmake[6]: 
  Entering directory 
  `/usr/ports/mail/thunderbird/work/comm-1.9.2/mailnews/extensions/smime/b
  uild' Makefile:84: *** missing separator.  Stop. gmake[6]: Leaving 
  directory 

The apparent culprit is indicated in the line above -- a syntax error in
the Makefile for building 'smime'.

If you underestand makefile syntax, check out that file, circa 'line 84'
THE most common makefile error is leading _spaces_ on an action line, instead
of a 'tab' ([HT], '\t', 0x08) character.

[[..  sneck traceback  ..]]

  `/usr/ports/mail/thunderbird/work/comm-1.9.2' gmake: *** [default] 
  Error 2
  *** Error code 1
 
  Stop in /usr/ports/mail/thunderbird.
  *** Error code 1
 
  Stop in /usr/ports/mail/thunderbird.
 
  I'd appreciate your expert advice...

 The actual error was earlier than you quoted.

It _was_ there, just not at the end of things.  :)

   Are you trying to run a 
 parallel build?

Reading the full trace _DID_ show a parallel build.


___
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: Sending a Fax

2011-05-06 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Thu May  5 21:50:34 2011
 From: Doug Hardie bc...@lafn.org
 Date: Thu, 5 May 2011 19:21:29 -0700
 To: FreeBSD Questions questi...@freebsd.org
 Cc: 
 Subject: Sending a Fax

 One of my clients needs to send a lot of faxes.  He has a Brother 8680DN 
 which will fax.  Any ideas how to send a file to it and get it to send a 
 fax?  I am not finding anything beyond printing for that unit via 
 Google.

Not to belabor the obvious, but do you have the owners manual?  what does
it say about faxing?

*MOST* computer-driven fax machines have the 'logical equivalent' of a
serial port, to which you send specialized AT (extended Hayes modem
commands) to go into fax mode, and originate a call. Then you shovel out
a bit-stream that is the  already rasterized fax data.

I've always used 'Hylafax' -- a _smart_ fax-management daemon that supports
a whole bunch of different kinds of fax modems, handles -multiple- fax-
modems, automatic retries, etc., etc.  It supports a very simple protocol
for queueing faxes from applicatioons, or the command line, and handles
either ASCII or PostScript input.


___
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: Comparing two lists

2011-05-06 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Fri May  6 19:27:54 2011
 Date: Sat, 07 May 2011 02:09:26 +0200
 From: Rolf Nielsen listrea...@lazlarlyricon.com
 To: FreeBSD freebsd-questions@freebsd.org
 Subject: Comparing two lists

 Hello all,

 I have two text files, quite extensive ones. They have some lines in 
 common and some lines are unique to one of the files. The lines that do 
 exist in both files are not necessarily in the same location. Now I need 
 to compare the files and output a list of lines that exist in both 
 files. Is there a simple way to do this? diff? awk? sed? cmp? Or a 
 combination of two or more of them?


If the files have only 'minor' differences -- i.e. no long runs of lines
that are in only one fie -- *and* the common lines are  in the same order
in each file, you can use diff(1), without any other shennigans.

If the above is -not- true, and If you need _only_ the common lines, AND 
order is not important, then sort(1) both files, and use diff(1) on the 
two sorted versions.


Beyond that it depends on what you mean by 'extensive' ones.  megabytes?
Gigabytes? or what??


___
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: Piping find into tar...

2011-05-04 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Wed May  4 02:26:32 2011
 Date: Wed, 4 May 2011 01:25:39 -0600
 From: Modulok modu...@gmail.com
 To: FreeBSD Questions freebsd-questions@freebsd.org
 Subject: Piping find into tar...

 List,

 I've been playing with the find command lately. Is there a way I can pipe 
 the putput list of files from find, into the tar command to create an 
 archive which contains the files which find lists? I tried the following, 
 but it didn't work
 (obviously).

 find -E . '.*\.txt$' -print | tar -cjf result.tgz

You're asking 'the wrong question'.  

tar _requires_ the filenames to  be listed as parameters to the command.

There are at least four ways to accomplish this, given the specific 
example you show.
 
1) The simplest: tar -cjf result.tbz .*.txt *.txt
2) in-line substitution: tar -cjf result.tbz `find -E . '.*\.txt$' -print` 
3) using the '-T' option:
 find -E . '.*\.txt$' -print0 | tar -c -j --null -T - -f result.tbz
3) using xargs:  
 find -E . '.*\.txt$' -print0 | xargs tar -rjf result.tar; bzip2 result.tar


Options 1) or 2) will fail 'immediately', if the pattern expands to an 
excessively long set of filenames.




___
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: For My Edification

2011-05-03 Thread Robert Huff

Daniel Staal writes:

   I would like to add the excellent manpages of the system.
   Unlike many Linusi, those manpages are kept current by the
   FreeBSD operating system developers and their documentation
   assistants. So whenever you're not fully sure about something,
   use man something. This applies to commands, configuration
   files, kernel interfaces, library calls and maintenance
   procedures. *Everything* is well documented. And you don't
   even need Internet access to get that information, as the
   manpage doesn't direct you to some arbitrary Wiki on the
   web. :-)
  
  And, vice-versa, you don't need a FreeBSD box to read them, if
  you have the web: They are all posted online at
  http://www.FreeBSD.org/cgi/man.cgi for you to read.

It is worth noting there are reference works - intended for
those who already know something about a topic/program - not
tutorials intended to teach concepts and terminology on how to do a
specific task.
At this point I usually recommend the most recent edition of
_/The Unix System Administration Handbook/_.  It is well-written; it
covers flavors other than FreeBSD; and it goes into enough of the
conceptual infrastructure to be very useful in diagnosing some kinds
of breakage.


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: Any way to have login output AND use rsync/scp ?

2011-05-01 Thread Robert Bonomi

 Date: Sun, 1 May 2011 15:58:45 -0700 (PDT)
 From: George Sanders gosand1...@yahoo.com
 Subject: Any way to have login output AND use rsync/scp ?

 I have my .cshrc file run some basic netstat and 'w' commands so that 
 when I log in, I can see at a glance what is going on on the system and 
 notice any unusual login activity, etc.

 However this completely breaks both scp and rsync - they cannot function 
 at all
 (apparently) with any kind of stdio output from the shell.

 Is there any way around this ?

 Is there some way to specify an alternate login shell when I use scp or 
 rsync ?

 Or conversely:

 Is there some way for my login shell (csh) to notice that it is scp or 
 rsync accessing the system, and skip the text output for them ?

 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

___
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: building a port with very long list of build options

2011-04-22 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Thu Apr 21 22:45:24 2011
 Date: Thu, 21 Apr 2011 20:17:31 -0700
 From: Carl k0802...@telus.net
 To: freebsd-questions@freebsd.org
 Subject: building a port with very long list of build options

 Let's say I want to build a port for which I need to specify a huge 
 number of build options (eg. ghostscript). In my case I am 
 cross-compiling on an amd64 host for what will be a NanoBSD i386 target, 
 but I don't think that's important here. The scenario precludes using 
 the familiar configuration menu. The problem is that the desired list of 
 options far exceeds what would be sane to specify on the 'make' command 
 line. In fact, it apparently even exceeds what typical text editors 
 tolerate when trying to enter the line in a shell script. What is the 
 recommended solution?

One *can* use a script with an 'insanely long' set of options, by the
sinple expedient of using  \  to continue the list on the next line.

In fact, when I make a script-file for building something with lots
of options, I usually, fore 'readability'  put each option on a separate 
line.  e.g.:

./Configure \
 --option_001 \
 --option_002 \
 --option_003 \
 --option_003 \
 ...
 ...
 --option_203 \

making _sure_ there is a blank line after the last option specification.
___
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: Stopping Less from creating Log Files

2011-04-12 Thread Robert Bonomi

 Date: Mon, 11 Apr 2011 11:36:37 -0500
 From: Martin McCormick mar...@dc.cis.okstate.edu
 Subject: Stopping Less from creating Log Files

 This is a minor problem but I use more to read Email messages
 from nmh. If one forgets what screen one is in, it is possible
 to start typing and create a log file of the message in which
 ever mailbox directory one is reading out of.

   The man page for more is actually linked to less even
 though FreeBSD has /usr/bin/more and less. 

There is only one executable -- it has two hard links, thus giving
the alternate names.

I even tried in the
 .mh_profile to call more with -Oo/dev/null but if you hit a key,
 the logfile prompt appears and any subsequent key strokes are
 part of the new file name.

   This really is only a minor nuisance because it creates
 junk files that then have to be removed from the directory. So,
 if there is a way to make more or less not write anything, it
 would be more or less appreciated.


It is said:
For every fool-proof system, there exists
 a sufficiently-determined fool capable of
 breaking it.

We have a winner!  For the named programs, more or less, anyway.


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


Re: Marble and routing

2011-04-08 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Fri Apr  8 18:19:15 2011
 From: Steven Friedrich free...@insightbb.com
 To: freebsd-questions@freebsd.org
 Date: Fri, 8 Apr 2011 19:18:25 -0400
 Subject: Marble and routing

 I'm in the U.S., so I believe that my only valid choice is OpenRoute service.

 Does it require any subscription payment, os is it available free?

Google is your friend.  search string marble routing (oddly enough )

What I got as the 4th link
   http://nienhueser.de/blog/?p=137http://nienhueser.de/blog/?p=137
seems very relevant to your question.

To quote Sgt. Schultz, I know nothing about KDE, marble, or the openroute 
service.


___
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: java support in FBSD Firefox 4

2011-03-31 Thread Robert Huff

Tim Kellers writes:

  Someplace between Firefox 3.5 and 4.0 I changed from diablo to openjdk.
  
  That:
  ln -s /usr/local/openjdk6/jre/lib/IcedTeaPlugin.so ~/.mozilla/plugins/
  
  was the missing step for me.

I tried this, and discovered that - at least for SeaMonkey - I
had to go to the plugins manager and explicitly enable it before it
would show up in about:plugins.


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: reverse dns in bind9

2011-03-27 Thread Robert Bonomi

 Date: Mon, 28 Mar 2011 00:19:26 -0400
 From: Tim Dunphy bluethu...@gmail.com
 Subject: reverse dns in bind9

 Hello,

  I am attempting to setup reverse dns in bind 9 under freebsd... this is 
  in an attempt to allow mysql to work a little easier with DNS 
  resolution.

  In my /etc/named/named.conf file I have the following:

 // RFC 1912
 zone localhost  { type master; file master/localhost-forward.db; };
 zone 127.in-addr.arpa { type master; ile master/localhost-reverse.db; };
 zone 255.in-addr.arpa { type master; file master/empty.db; };
 zone 192.in-addr.arpa { type master; file master/summitjnhome-reverse.db; 
 }; 
 zone summitnjhome.com { type master; file master/summitnjhome.db; };


 My master/summitnjhome.com looks like the following:

For starters, this should be in master/summitnjhome-reerse.db

 $TTL 3D
 @   IN  SOA ns1.summitnjhome.com. bluethundr.gmail.com. (
 201103271 ; Serial, todays date + todays serial
 8H  ; Refresh
 2H  ; Retry
 4W  ; Expire
 1D) ; Minimum TTL
 NS  ns1.summitnjhome.com.

 summitnjhome.com.
 42   PTR LCENT01.summitnjhome.com.
 43   PTR LCENT02.summitnjhome.com.
 44   PTR LBSD2.summitnjhome.com.
 45   PTR LCENT02.summitnjhome.com.
 46   PTR LCENT03.summitnjhome.com.
 47   PTR LCENT04.summitnjhome.com.
 23   PTR virtcent01.summitnjhome.com.
 24   PTR virtcent02.summitnjhome.com.
 21   PTR virtcent03.summitnjhome.com.
 26   PTR virtcent04.summitnjhome.com.
 27   PTR virtcent05.summitnjhome.com.
 28   PTR virtcent06.summitnjhome.com.
 29   PTR virtcent07.summitnjhome.com.
 30   PTR virtcent08.summitnjhome.com.
 31   PTR virtcent09.summitnjhome.com.
 32   PTR virtcent10.summitnjhome.com.
 33   PTR virtcent11.summitnjhome.com.
 34   PTR virtcent12.summitnjhome.com.
 35   PTR virtcent13.summitnjhome.com.
 36   PTR virtcent14.summitnjhome.com.
 37   PTR virtcent15.summitnjhome.com.
 38   PTR virtcent16.summitnjhome.com.
 39   PTR virtcent17.summitnjhome.com.
 40   PTR virtcent18.summitnjhome.com.
 41   PTR virtcent19.summitnjhome.com.


 and my /etc/resolv.conf looks like this:

 domain  summitnjhome.com 
 nameserver 192.168.1.44
 nameserver 4.2.2.2

 zone 1.168.192.in-addr.arpa { type master; file 
 /etc/named/master/summitnjhome-reverse.db
 };

the 'zone' line  you show should *NOT* be in resolv.conf at all.
this line should be in the  named.conf file *instead* of the one for
the '192.in-addr.arpa' zone.

 then I restart both named and the network service

 and yet if I were to try forward resolution:

 LBSD2# host sum1 
 sum1.summitnjhome.com is an alias for LCENT01.summitnjhome.com.
 LCENT01.summitnjhome.com has address 192.168.1.42


 and then reverse resolution:

 LBSD2# host 192.168.1.42
 Host 42.1.168.192.in-addr.arpa. not found: 3(NXDOMAIN)

 I have no luck. Any thoughts on this?

see above.



___
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


Recommendations for 3D modelling code for 3D printing?

2011-03-24 Thread Robert Huff

Arthur Chance writes:

  I need to make some parts using 3D printing, and was wondering
  what software I should use to do the modelling. Does anyone have
  any experience and/or recommendations about this? If it matters,
  I'll probably be using shapeways.com to do the actual printing.

I was under the impression the 3D printers used proprietary
software/formats.
Am I mistaken?


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


devd started with single-user mode?

2011-03-20 Thread Robert Huff

David Demelier writes:

  I just realized that I can't use my USB keyboard if I start
  FreeBSD in single user mode. The keyboard is still detected but I
  can't use it.

My memory says I had this problem several years ago.  Back in
5.*, or maybe 6.*?
It could fixed in the short term by a rebooting the machine.
The long term fix was changes in the code.  Since then, works
for me.
May we have more information avout your hardware and FreeBSD
version, please?


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: Updating OpenSSH

2011-03-17 Thread Robert Huff

Carmel writes:

  It is part of the base system. I don't know if it has a true
  maintainer. In any case, I would need commit privileges which I
  don't and never expect to have and have no desire to acquire..

I do not believe that is correct; a fair number of people
contribute productively to the base system with out being
committers.

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: HAL must die!

2011-03-15 Thread Robert Huff

Erich Dollansky writes:

   The nice thing about standards is that there are so many of them to
   choose from.
  
  when it comes to screwing, we use - at least outside the USA -
  metric screws. M3, M4 ... M10 ... 
  
  We do not care much who manufactured them.
  
  The software industry is still far away from this.

... in part, because the definition of a screw is not yet
fixed.


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


Unable to umount

2011-03-12 Thread Robert
Greetings

On two separate systems running 8.2 Stable updated yesterday, I am
unable to umount any USB thumb drives after mounting. I have tried both
Fat32 and UFS formatted drives. I have tried with and without HAL
enabled.

I am running with all ports up to date and the latest XFCE4. This
problem started with the upgrade of XFCE4 and Xorg. Here is how it looks

[robert@dell64] ~ mount_msdosfs /dev/da6s1 Flash
[robert@dell64] ~ ls -l Flash
total 128
drwxr-xr-x  1 robert  robert  32768 Jan 21 18:18 Android
drwxr-xr-x  1 robert  robert  32768 Jan  6  1980 LOST.DIR
drwxr-xr-x  1 robert  robert  32768 Jan 21 17:36 rosie_scroll
drwxr-xr-x  1 robert  robert  32768 Jan 21 16:53 rssreader
[robert@dell64] ~ umount Flash
umount: unmount of /home/robert/Flash failed: Device busy
[robert@dell64] ~ umount /dev/da6s1
umount: unmount of /home/robert/Flash failed: Device busy

If I log out of XFCE4 to the CLI, I can then umount normally. 

Is anyone else seeing this?

TIA

Robert
___
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: Unable to umount

2011-03-12 Thread Robert
On Sat, 12 Mar 2011 11:26:00 -0500
Chris Brennan xa...@xaerolimit.net wrote:

 On Sat, Mar 12, 2011 at 11:07 AM, Robert travelin...@cox.net wrote:
 
 Greetings
 
  On two separate systems running 8.2 Stable updated yesterday, I am
  unable to umount any USB thumb drives after mounting. I have tried
  both Fat32 and UFS formatted drives. I have tried with and without
  HAL enabled.
 
  I am running with all ports up to date and the latest XFCE4. This
  problem started with the upgrade of XFCE4 and Xorg. Here is how it
  looks
 
  [robert@dell64] ~ mount_msdosfs /dev/da6s1 Flash
  [robert@dell64] ~ ls -l Flash
  total 128
  drwxr-xr-x  1 robert  robert  32768 Jan 21 18:18 Android
  drwxr-xr-x  1 robert  robert  32768 Jan  6  1980 LOST.DIR
  drwxr-xr-x  1 robert  robert  32768 Jan 21 17:36 rosie_scroll
  drwxr-xr-x  1 robert  robert  32768 Jan 21 16:53 rssreader
  [robert@dell64] ~ umount Flash
  umount: unmount of /home/robert/Flash failed: Device busy
  [robert@dell64] ~ umount /dev/da6s1
  umount: unmount of /home/robert/Flash failed: Device busy
 
  If I log out of XFCE4 to the CLI, I can then umount normally.
 
  Is anyone else seeing this?
 
  TIA
 
 
 Are you on the drive or do you have files open from the flash drive?
 Try this:
 
 lsof /home/robert/Flash
 
 or
 
 lsof /dev/da6s1
 
 It will tell you what files are using the device, you should close
 all files before unmounting as well as making sure your not
 in /home/robert/Flash/ or some subdir of ~/Flash.
 
Chris

Thank you for the reply. As shown above, I mounted the drive and then
tried to umount the drive. I did not access it other than the ls
command.

[robert@dell64] ~ lsof Flash
[robert@dell64] ~ lsof /dev/da6s1
[robert@dell64] ~ 
[robert@dell64] ~ umount Flash
umount: unmount of /home/robert/Flash failed: Device busy
[robert@dell64] ~ umount /dev/da6s1
umount: unmount of /home/robert/Flash failed: Device busy
[robert@dell64] ~ 
___
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: Unable to umount

2011-03-12 Thread Robert
On Sat, 12 Mar 2011 11:35:25 -0500
Chris Brennan xa...@xaerolimit.net wrote:

 On Sat, Mar 12, 2011 at 11:33 AM, Robert travelin...@cox.net wrote:
 
 Thank you for the reply. As shown above, I mounted the drive and then
   tried to umount the drive. I did not access it other than the ls
  command.
 
  [robert@dell64] ~ lsof Flash
  [robert@dell64] ~ lsof /dev/da6s1
  [robert@dell64] ~
  [robert@dell64] ~ umount Flash
  umount: unmount of /home/robert/Flash failed: Device busy
  [robert@dell64] ~ umount /dev/da6s1
  umount: unmount of /home/robert/Flash failed: Device busy
  [robert@dell64] ~
 
 
 
 For shgiggles, try and umount it as root, does that actually work?
 
[robert@dell64] ~ umount Flash
umount: unmount of /home/robert/Flash failed: Device busy
[robert@dell64] ~ umount /dev/da6s1
umount: unmount of /home/robert/Flash failed: Device busy
[robert@dell64] ~ 

Should have mentioned...been there, done that ...tried and failed.
___
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: Unable to umount

2011-03-12 Thread Robert
On Sat, 12 Mar 2011 08:48:40 -0800
Robert travelin...@cox.net wrote:

 On Sat, 12 Mar 2011 11:35:25 -0500
 Chris Brennan xa...@xaerolimit.net wrote:
 
  On Sat, Mar 12, 2011 at 11:33 AM, Robert travelin...@cox.net
  wrote:
  
  Thank you for the reply. As shown above, I mounted the drive and
  then
tried to umount the drive. I did not access it other than the
   ls command.
  
   [robert@dell64] ~ lsof Flash
   [robert@dell64] ~ lsof /dev/da6s1
   [robert@dell64] ~
   [robert@dell64] ~ umount Flash
   umount: unmount of /home/robert/Flash failed: Device busy
   [robert@dell64] ~ umount /dev/da6s1
   umount: unmount of /home/robert/Flash failed: Device busy
   [robert@dell64] ~
  
  
  
  For shgiggles, try and umount it as root, does that actually work?
  
 [robert@dell64] ~ umount Flash
 umount: unmount of /home/robert/Flash failed: Device busy
 [robert@dell64] ~ umount /dev/da6s1
 umount: unmount of /home/robert/Flash failed: Device busy
 [robert@dell64] ~ 
 
 Should have mentioned...been there, done that ...tried and failed.

Sorry. Sent the wrong copy  paste entry last time
[root@dell64] ~# umount /dev/da6s1
umount: unmount of /home/robert/Flash failed: Device busy
[root@dell64] ~# umount /home/robert/Flash
umount: unmount of /home/robert/Flash failed: Device busy
[root@dell64] ~# 


___
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: Unable to umount

2011-03-12 Thread Robert
On 12 Mar 2011 17:29:59 -
John Levine jo...@iecc.com wrote:

  [robert@dell64] ~ umount Flash
  umount: unmount of /home/robert/Flash failed: Device busy
 
 Try umount -f
 
 The problem is likely that HAL or one of its friends helpfully has the
 device open just in case you might want to ask questions about it.
 
 Regards,
 John Levine, jo...@iecc.com, Primary Perpetrator of The Internet for
 Dummies, Please consider the environment before reading this e-mail.
 http://jl.ly

That works!
I did not have to do that before the recent updates to XFCE4 and Xorg
but as long as I can umount, I'm happy.

Thank you John
___
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: Apple FreeBSD relationship

2011-03-10 Thread Robert Bonomi

 To: freebsd-questions@freebsd.org
 From: Julian H. Stacey j...@berklix.com
 Date: Thu, 10 Mar 2011 16:36:29 +0100
 Subject: Re: Apple  FreeBSD relationship 

 Aside, On Disclaimers::
  Chuck Swiger wrote:
Hi--
   
#include std/disclaimer.h
   
It wouldn't be considered appropriate for Apple employees or 
contractors (well, outside of the folks working in investor 
 relations, 
perhaps) to try to persuade someone to invest in a particular company 
because of which open source projects Apple might be contributing 
towards.  In another context, someone from Apple who was familiar 
 with 
those contributions might be free to discuss them, but they would 
generally be expected to not identify their affiliation with Apple to 
avoid unduly influencing other people or creating a real or perceived 
conflict of interest.

  To not declare affiliation for fear it might tilt perception of 
  recipient, would be misguided.  A disclaimer such as
   I work for XYZ. I do not speak for XYZ.
   would suffice.  One declares affiliations to be fair to recipients  
   safeguard oneself. Recipients are informed, can draw their own 
   conclusions,  not roast one for undeclared interest :-).  Examples:

   http://www.ofcom.org.uk/about/how-ofcom-is-run/ofcom-board-2/policy-on-c
   onflicts-of-interest/

Section 6:
PROVIDED .. there is full
transparency about any such interests.

Sorry,  Julian, but Chuck had it _legally_ correctly, for the U.S.A..

As soon as someone so much as mentions 'investing' in a company, a whole
bunch of rather draconian laws kick in about the offering of investment 
advice by someone affiliated with the investment entity.  This has become
very much of a 'hot button' issue in recent years, with a lot of new,
*very*strict* laws being enacted, in part because of some of the recent
major investment scandals, like Enron, AIG, etc..

Secondly, there is a matter of the 'company policy' of his employer with
regard to employees giving 'investment advice' -- even if it is 'on their
own time' -- about the company.  Even if it isn't against the law, it 
could easily get him fired, instantly.

Almost all publicly held companies (at least in the USA) have an 'investor
relations' department, and those are the _only_ employees, other than the 
CEO, who are authorized give out investment-related information. Further,
everything they _do_ give out has been (a) approved by senior management,
and (b) 'vetted' by the legal department.


___
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: Apple FreeBSD relationship

2011-03-10 Thread Robert Huff

David Brodbeck writes:

   Apple produces the clusterfuck that is CUPS, I believe.
  
   Apple took over the CUPS project. They didn't write it. They're
   improving it a lot with every major OSX release, so I'm not
   sure why you're so upset. 
  
  I think a lot of the hate for CUPS here is NIH syndrome.

In my case, the hate is caused by the difficulty in
configuration and trouble-shooting (and of course the related
documentation mega-fail).
Beyond that, it seems to work as advertised.


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: Nonsensical Web Log Entries

2011-03-09 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Wed Mar  9 10:40:23 2011
 Date: Wed, 09 Mar 2011 09:57:03 -0500
 To: freebsd-questions@freebsd.org
 From: pe...@vfemail.net
 Subject: Nonsensical Web Log Entries


 I was looking at my Web log this morning, and a bunch of nonsensical 
 entries like these caught my attention:

 124.226.181.80 - - [09/Mar/2011:09:49:58 -0500] GET http://www.yahoo.com/ 
 HTTP/1.0 301 294 - Mozilla/4.0 (compatible;  MSIE 6.0; Windows NT 5.1; 
 SV1)
 123.10.97.102 - - [09/Mar/2011:09:50:01 -0500] GET 
 http://makeabank.com/faq.cgi HTTP/1.0 404 3485 - Mozilla/4.0 (compatible; 
 MSIE 6.0; Windows NT 5.1; SV1) 
 115.225.166.2 -  - [09/Mar/2011:09:50:04 -0500] GET 
 http://join1.winhundred.com/affiliate/link.php?ref=35840productid=7178 
 HTTP/1.0 404 3485 http://www.wingclips.com/; Mozilla/4.0 (compatible;  
 MSIE 6.0; Windows NT 5.1; SV1)
 114.97.197.184 - - [09/Mar/2011:09:50:15 -0500] GET 
 http://www.tosunmail.com/proxyheader.php HTTP/1.0 301 313 
 http://www.cashsoldier.com/VerifyerLevel.php; Mozilla/4.0 (compatible; MSIE 
 6.0; Windows NT 5.1; SV1)

 Is my FreeBSD box serving as some kind of Web proxy?

Your box is _not_ doing the proxying.  that's why it's signalling errors
for those requests.

The perpetrators are _hoping_ you are running a misconfigured proxying front-
end.


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

2011-03-06 Thread Robert Huff

Jerry writes:

Sadly, this is one of those times when portupgrade seems
to handle things better, but you'll probably have to wait another
day to see if things worked out better this time.
   
   For me, using portupgrade on 3 different systems (7.4 and 8.1) to
   upgrade Python 2.6 to 2.7 worked like a charm.  Just my two cents.
  
  +1

Here also.


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


Firefox printing

2011-03-06 Thread Robert Huff

(Followups redirected.)

ste...@mailer3.nospam.homeip.net writes:

  When printing postscript to file (or PDF, and actual printers
  too), the font and spacing of text is incorrect and does not look
  good.  When I do the same on Firefox 3.6.13 on Ubuntu 10.04, I
  get clear output.

I send the following to gecko@ a day or two ago:

I have a LaserJet 6mp, connected to:

FreeBSD 9.0-CURRENT #0: Sat Oct 23 08:15:53 EDT 2010 amd64 

running:

cups-base-1.4.6_2
cups-client-1.4.6
cups-image-1.4.6
cups-pstoraster-8.15.4_6

Using this, I am able to print correctly from:

the command line
LibreOffice
Acrobat Reader
Opera

I am not able to print correctly from:

Firefox 3.6.14
SeaMonkey 2.0.11

In both cases the output is squished both horozontally and
vertically so that it takes up ~40% on the desired space.
Checkng the mailing list archives back into November shows
nothing that matches this.


Does this match your symptoms?

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


Ethernet cards Intel PRO/1000 QP (82571EB) and Intel PRO/1000 QP (82575GB)

2011-03-03 Thread Robert Huff

Patrick Lamaiziere writes:

  I've got two ethernet cards Intel PRO/1000 QP (82571EB) and Intel
  PRO/1000 QP (82575GB) in one router/firewall. I use OpenBSD 4.8
  on this box. That works fine, but I see some input Ierr on the
  interfaces (using netstat), even when the load is not very high.

I have Pro/1000 GT Dual Port Gigabit Ethernet Controller (82546EB).

huff@ uptime
 9:46AM  up 50 days, 22:16, 5 users, load averages: 3.85, 3.56, 3.81

  $ netstat -I em2 -w2 (bandwith = 150 Mbits)

huff@ netstat -in
NameMtu Network   Address  Ipkts Ierrs IdropOpkts Oerrs 
 Coll
em01500 209.6.xx.yy/21 209.6.91.204  49357148 - - 54769770 
- -
em11500 10.0.0.0/810.0.0.1  13547336 - -   209590 - 
-


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


No Handbook in 8.2

2011-03-03 Thread Robert Huff

Heidi Wyss writes:

  There seems to be no FreeBSD handbook in the 8.2 installation,
  likewise 8.0 and 8.1 (see http://docs.freebsd.org/doc/). Is this
  a botch or something else?

Documentation is now included as a port, one per language. See
e.g. misc/freebsd-doc-en.


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: Question about nethack and setgid

2011-03-02 Thread Robert Bonomi

 Date: Wed, 02 Mar 2011 23:51:45 +0100
 From: David Demelier demelier.da...@gmail.com
 To: freebsd-questions@freebsd.org
 Subject: Question about nethack and setgid

 Hello,

 I don't understand how nethack can store the score in
 /usr/local/lib/nethack/logfile.

 the real binary is here /usr/local/lib/nethack/nethack

 And the mode is

 -rwxr-sr-x  1 games  games  1793635 25 Jan 2011
 /usr/local/lib/nethack/nethack

 So that means people in games group will run nethack as games user (owner 
 of file)

Actually, it means that the program will run with the _group_ id of the
file -- i.e. the 'games' group.  _That_ 's' is the 'sgid' or 'set groupID'
bit.

 but I'm not in games group ! and I can save the file located in

 /usr/local/lib/nethack/logfile which mode is -rw-rw-r--  games  games

Lo and behold!  The file _is_ writable by the games group.

 I'm writing a game that will store file too, because I can't make it 
 works like nethack I was planning using the setuid mode but I don't like 
 much this ..

 What am I misunderstanding?

the function of the 'setgid' bit.  grin.

 Cheers,

 --
 David Demelier
 ___
 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: / file system is full, but du does not show that it's full

2011-02-28 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Mon Feb 28 05:31:46 2011
 Date: Mon, 28 Feb 2011 14:24:30 +0300
 From: c0re nr1c...@gmail.com
 To: Matthew Seaman m.sea...@infracaninophile.co.uk
 Cc: FreeBSD freebsd-questions@freebsd.org
 Subject: Re: / file system is full, but du does not show that it's full

 2011/1/6 Matthew Seaman m.sea...@infracaninophile.co.uk:
  On 06/01/2011 11:26, c0re wrote:
  # df -h
  Filesystem SizeUsed   Avail Capacity  Mounted on
  /dev/ad0s1a496M466M   -9.8M   102%/
 
  So it's full.
 
  But by du it's not appeared to be full
 
 
  # du -hxd 1 /
  2.0K/.snap
  512B/dev
  2.0K/tmp
  2.0K/usr
  2.0K/var
  1.9M/etc
  2.0K/cdrom
  2.0K/dist
  1.0M/bin
  131M/boot
   10M/lib
  356K/libexec
  2.0K/media
   12K/mnt
  2.0K/proc
  7.2M/rescue
  296K/root
  4.7M/sbin
  4.0K/lost+found
  157M/
 
 
  Do you have partitions mounted at /tmp, /usr, /var etc?  Does the 
  output of your du command change if you unmount those partitions? (It 
  might be an idea to boot into a livefs CD or DVD given that du(1) lives 
  in /usr/bin, so a bit tricky to unmount /usr and then run du)
 
  My guess is that you've at one time created files beneath what is 
  usually a mount point.  Mounting the partition over them makes those 
  files inaccessible, but they still take up space on the drive.
 
 Cheers,
 
 Matthew
 
  --
  Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
   Flat 3
  PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: 
  matt...@infracaninophile.co.uk   Kent, CT11 9PW
 
 

 At last I found time to check it. Booted with frenzy life cd, mounted 
 only / partition and saw trash
 /var/spool. Deleted it and it solved problem.
 But later was and idea to mount device of / (/dev/da0s1a) as /mnt/root 
 and just delete those files without need of livecd. It works in Linux. 
 But in freebsd i got

 # mount /dev/da0s1a /mnt/root/
 mount: /dev/da0s1a : Operation not permitted

 So only single user mode or live cd could solve it.

*NOT* true.  Stopping any daemons that were using /var/spooll, and then
umount(1)-ing it would have done the trick from multi-user mode.


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

2011-02-27 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Sun Feb 27 14:54:09 2011
 From: David cyber...@gmail.com
 Date: Sun, 27 Feb 2011 15:46:03 -0500
 To: freebsd-questions@freebsd.org
 Subject: FreeBSD Performance

 Hello All:

 I am curious... does anyone know of a reasonably priced commodity server 
 capable of sourcing/sinking 10 Gbps of data from/to disk via 2 x 10 GE 
 network interfaces? Any ideas on how hard this would be to do with 
 FreeBSD?

 I know of a proprietary linux-based system, but looking for open-source 
 FreeBSD based system.

A lot depends on what you need to do with the data.

  Do you need just the 'contents' of the network packets -- i.e. are you
  trying to send/recieve a single stream of data -- or do you need 
  complete headers, augmented with timestamps, such that you can re-
  construct/replay what was 'seen on the wire'?

  Is the box 'dedicated' to receiving (or sending), and does -nothing-else-
  while that operation is in process? or do you need to sample the data in
  real-time as well?

  Another question is _how_long_ you need to handle the 2x10gbit/sec of 
  data. a few seconds? a few tens of seconds?  minutes? hours?

  If you need to 'go to disk' in real-time, you're looking at needing
  at least 3-4 gigabyte/sec of bandwith to disk.  No commodity drives 
  provide that kind of capacity, so you're looking at multiple drives 
  'in parallel' -- the logical equivalent of a 'striped' RAID array.  
  Probably 12-16 spindles paralleled.  Best handled with _hardware_ 
  raid, directly in the disk controller, but I don't know of a commodity 
  controller that supports enough spindles to give that bandwidth.
  This means one is best off doing it in the application softwre itself,
  rather than trusting the O/S to get it right.

  You're also looking at a _big_ disk array. Around 200 gigs for ONE 
  MINUTE of data.  Need 'only' an hour?  That's merely 12 terabytes.


The O/S is -relatively- unimportant. wry grin

You need _good_ network cards, with good drivers -- preferably ones where
most of the network stack can be off-loaded onto the card itself.

You also need good disk controllers, ideally semi-autonomous (like SCSI),
with fairly large data buffers.

___
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: HAL's demise

2011-02-25 Thread Robert Huff

Jerry writes:

  GNOME switched over a year ago, KDE and XFCE finished the
  transition a couple of months back. Other distros are apparently
  not even distributing it. What is preventing FBSD from joining
  the party?

Lack of someone willing, able, and available to do the work.
(Should your name be on that list?   :-)


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: HAL's demise

2011-02-25 Thread Robert Bonomi

 Date: Fri, 25 Feb 2011 07:38:14 -0500
 From: Jerry freebsd.u...@seibercom.net
 Subject: Re: HAL's demise

 GNOME switched over a year ago, KDE and XFCE finished the transition a 
 couple of months back. Other distros are apparently not even distributing 
 it. What is preventing FBSD from joining the party?


HAL's demise is indefinitely delayed.

Dave Bowman is otherwise occupied.  
And Frank Poole is out of ciruculation.


*GRIN*
___
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: variable line-display pager?

2011-02-20 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Sat Feb 19 18:28:20 2011
 Date: Sat, 19 Feb 2011 16:23:00 -0800
 From: Gary Kline kl...@thought.org
 To: FreeBSD Mailing List freebsd-questions@freebsd.org
 Cc: 
 Subject: Re: variable line-display pager?

 On Sat, Feb 19, 2011 at 03:52:40PM -0800, Chip Camden wrote:
  Quoth Gary Kline on Saturday, 19 February 2011:
   Need help findind a way of using existing unix utilities to diplay 
   chunks of N lines of a text files.  Here N = the number of lines in 
   the file.
  
   For instance, say that my xterm/console/Konsole is 80x53 lines. My 
   text file is around 200 lines long and I want to use more or less or 
   some GUI pager to display only 15 lines at one time.  Tapping the 
   space bar would display another 15 lines and so on until EOF.  Is 
   there a way of doing with with flags of the existing /usr/bin/less or 
   is there some other pager that I can build?
  
   thanks,
  
   gary
  
  
  
   --
Gary Kline  kl...@thought.org  http://www.thought.org  Public 
Service Unix
  Journey Toward the Dawn, E-Book: http://www.thought.org 
  The 7.98a release of Jottings: http://jottings.thought.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
 
  The -z option is supposed to do this:
 
  less -z15 file.txt
 
  But it appears to work only on the second and successive pages.



 Oh.  So _that's_ why.  I tried less -m 15 [because the man pages sais 
 z=N;  i just tried what you did with -z15.  Full page first time, 15 
 lines each spacebar thereafter.

 Zank you, Sir Chip.. Anybody else?   I'm loathe to use anything gui, but 
 here's  where I'll be happy w ith something GUI THat i can squeeze my 
 15 or small-n lines' worth into.  Can'y believe that there is nothing 
 for all theses years  I mean, geewhiz! Any idea where I Should look 
 in ports or how to google this?


how hard can it be?

  stty rows=15; less filename
___
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: ZFS-only booting on FreeBSD

2011-02-19 Thread Robert Bonomi

 Date: Sat, 19 Feb 2011 10:35:35 -0500
 From: Daniel Staal dst...@usa.net
 Subject: Re: ZFS-only booting on FreeBSD

  [[..  sneck  ..]]

 Basically, if a ZFS boot drive fails, you are likely to get the following 
 scenario:
 1) 'What do I need to do to replace a disk in the ZFS pool?'
 2) 'Oh, that's easy.'  Replaces disk.
 3) System fails to boot at some later point.
 4) 'Oh, right, you need to do this *as well* on the *boot* pool...'

 Where if a UFS boot drive fails on an otherwise ZFS system, you'll get:
 1) 'What's this drive?'
 2) 'Oh, so how do I set that up again?'
 3) Set up replacement boot drive.

 The first situation hides that it's a special case, where the second one 
 doesn't.

For any foolproof system, there exists a _sufficiently-determined_ fool
 capable of breaking it applies.

 To avoid the first scenario you need to make sure your sysadmins are 
 following *local* (and probably out-of-band) docs, and aware of potential 
 problems.  And awake.  ;)  The scenario in the second situation presents 
 it's problem as a unified package, and you can rely on normal levels of 
 alertness to be able to handle it correctly.  (The sysadmin will realize 
 it needs to be set up as a boot device because it's the boot device.  ;)  
 It may be complicated, but it's *obviously* complicated.)

 I'm still not clear on whether a ZFS-only system will boot with a failed 
 drive in the root ZFS pool.  Once booted, of course a decent ZFS setup 
 should be able to recover from the failed drive.  But the question is if 
 the FreeBSD boot process will handle the redundancy or not.  At this 
 point I'm actually guessing it will, which of course only exasperates the 
 above surprise problem: 'The easy ZFS disk replacement procedure *did* 
 work in the past, why did it cause a problem now?'  (And conceivably it 
 could cause *major* data problems at that point, as ZFS will *grow* a 
 pool quite easily, but *shrinking* one is a problem.)

A non-ZFS boot drive results in immediate, _guaranteed_, down-time for
replacement if/when it fails.

A ZFS boot drive lets you replace the drive and *schedule* the down-time
(for a 'test' re-boot, to make *sure* everything works) at a convenient
time.

Failure to schedule the required down time is a management failure, not
a methodology issue.  One has located the requisite sufficiently-
determined fool, and the results thereof are to be expected.



___
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: Best Laptop to buy for Freebsd Without OS?

2011-02-18 Thread Robert Huff

Chad Perrin writes:

  In my experience, ThinkPads are among the highest quality laptops
  on the market.

At one point, Thinkpads - particularly the T4x series - were
_the_ recommended used laptop.  While it's been a while since i
looked into this formally, my grapevine says the quality went
downhill quickly after Lenovo bought IBM's pc hardware division.


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: script help

2011-02-16 Thread Robert Bonomi

 Date: Wed, 16 Feb 2011 16:47:57 +0100
 From: Bernt Hansson be...@bah.homeip.net
 Subject: Re: script help

 2011-02-14 23:34, Jack L. Stone skrev:
  Hello folks:

 Hello!

  No doubt this will be easy for those with scritping abilities.

  # find all of the same filenames (copyright.htm) and then replace the 
  year 2010 with 2011 in each file. Once I have a working script, I 
  should be able to add it as a cron job to run on the first day of each 
  new year.

 cd /your/www/directory 
 rm -rf copyright.htm

(A) doesn't do what the OP asked.
(B) doesn't do what you -think- it does. (i.e., it will delete at most one file)


___
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


Stuck

2011-02-13 Thread Robert Huff

Rem Roberti writes:

  This is a new one for me.  I decided to do a manual update on my
  8.1 box, starting with csup.  Buildworld went fine, as did
  buildkernel.  However, when I tried to install the new kernel
  installkernel choked with an error message telling me that it
  could not proceed because the root partition was full.  What!  I
  did a df and sure enough the root partition was overloaded.  When
  I installed the system I used sysinstalls recommended sizes for
  the root partion, which is around 10G.  Anyway, when I rebooted,
  the system rebooted into single user mode, and that is presently
  where I stand.  I have no idea how to proceed at this point, and
  would appreciate any help in fixing this.  Of course, I smell a
  newbie type error in all of this, but haven't quite figured out
  where I went wrong.

Start with this:

du -x / | sort -nr | head -n 30

This will give you the largest directories; if any of them
don't look right - investigate further.
(For comparison: the root directory on this machine is 2
gbytes, of which I use 1.1.  10 gbytes is a lot of space.)

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


problem when including readline.h

2011-02-13 Thread Robert Huff

I'm writing a C program which, for various reasons, has the
warning level turned _way_ up.
I'm now getting this:

/usr/include/readline/readline.h:336: warning: redundant redeclaration of 
'rl_make_bare_keymap'
/usr/include/readline/keymaps.h:74: warning: previous declaration of 
'rl_make_bare_keymap' was here

and more like it.
Other than turning down the warning level, what's wrong and how
do I fix it?

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: problem when including readline.h

2011-02-13 Thread Robert Huff

Chip Camden writes:

  I'm writing a C program which, for various reasons, has the
   warning level turned _way_ up.
  I'm now getting this:
   
   /usr/include/readline/readline.h:336: warning: redundant redeclaration of 
 'rl_make_bare_keymap'
   /usr/include/readline/keymaps.h:74: warning: previous declaration of 
 'rl_make_bare_keymap' was here
   
  and more like it.
  Other than turning down the warning level, what's wrong and how
   do I fix it?
  
  Both keymaps.h and readline.h declare rl_make_bare_keymap as an external
  function.  Perhaps you shouldn't be including both files?

Except I don't.  The include list:

#include sys/types.h
#include ctype.h
#include limits.h
#include mysql/mysql.h
#include stdio.h
#include stdlib.h
#include string.h
#include strings.h
#include sys/param.h
#include unistd.h
#include readline/readline.h
#include readline/history.h

No second keymap.h visible.


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: problem when including readline.h

2011-02-13 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Sun Feb 13 17:00:08 2011
 From: Robert Huff roberth...@rcn.com
 Date: Sun, 13 Feb 2011 17:56:12 -0500
 To: Chip Camden sterl...@camdensoftware.com
 Cc: questi...@freebsd.org
 Subject: Re: problem when including readline.h


 Chip Camden writes:

 I'm writing a C program which, for various reasons, has the warning 
 level turned _way_ up. I'm now getting this:
   
/usr/include/readline/readline.h:336: warning: redundant 
redeclaration of 'rl_make_bare_keymap' 
/usr/include/readline/keymaps.h:74: warning: previous declaration of 
'rl_make_bare_keymap' was here
   
 and more like it. Other than turning down the warning level, what's 
 wrong and how do I fix it?
 
   Both keymaps.h and readline.h declare rl_make_bare_keymap as an 
   external function.  Perhaps you shouldn't be including both files?

  Except I don't.

You have to chase through all the includes to see what is included by
the files you directly include.  It's pretty sure to be sometthing in
the 'readline/' directory.

   The include list:

 #include sys/types.h
 #include ctype.h
 #include limits.h
 #include mysql/mysql.h
 #include stdio.h
 #include stdlib.h
 #include string.h
 #include strings.h
 #include sys/param.h
 #include unistd.h
 #include readline/readline.h
 #include readline/history.h

  No second keymap.h visible.

___
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: switching from gnu make to bsd make

2011-02-10 Thread Robert Bonomi

 From: Vikash Badal vikash.ba...@is.co.za
 Date: Thu, 10 Feb 2011 11:30:02 +0200
 Subject: RE: switching from gnu make to bsd make

  -Original Message-
  From: Polytropon [mailto:free...@edvax.de] Sent: 10 February 2011 10:11 
  AM To: Vikash Badal Cc: freebsd-questions@freebsd.org Subject: Re: 
  switching from gnu make to bsd make
 
  Of course, in my testing case OBJDIR and SRCDIR are empty, and I didn't 
  define any of CC, CFLAGS, INCDIR or LIBDIR, so the defaults have been 
  chosen.
 
  Do you encounter a specific problem?

 This is my problem:

 vix:$ make make: don't know how to make src/%.c. Stop

Just telling people what happened is *NOT* enough for intelligent
diagnosis of the  problem.  You also have to tell people  WHAT YOU DID
that provoked the error you encountered.

That said, dusting off my crystal ball -- which appears to be *working*
today -- you simply typed make at the shell prompt.

Try typing make all and see what happens then.




 this is my make file:

 --

 CC= cc 
* LIBS  = -lpthread -lmysqlclient_r 
 CFLAGS= -Wall -g 
 INCDIR= -Iinclude -I/usr/local/include -I/usr/local/include/mysql 
 LIBDIR= -L/usr/local/lib -L/usr/local/lib/mysql 
 OBJDIR= obj 
 SRCDIR= src 
 BINDIR= bin 
 PREFIX= /usr/local/nntpd 
 BINDIRFILES   = ${BINDIR}/nntpd
 OBJS  = ${OBJDIR}/log.o ${OBJDIR}/cleanup.o ${OBJDIR}/config.o \
 ${OBJDIR}/leecherpool.o ${OBJDIR}/mytime.o 
 ${OBJDIR}/upstream.o ${OBJDIR}/mysleep.o 
 ${OBJDIR}/sql.o ${OBJDIR}/signalhandler.o 
 ${OBJDIR}/list.o ${OBJDIR}/tcpserver.o 
 ${OBJDIR}/listenpool.o ${OBJDIR}/workers.o \
 ${OBJDIR}/nntpd.o

 $(OBJDIR)/%.o:${SRCDIR}/%.c
 ${CC} -c ${CFLAGS} ${INCDIR} ${LIBDIR} $ -o $@

 all:${OBJS}
 ${CC} -o ${BINDIR}/nntpd ${LIBS} ${CFLAGS} ${INCDIR} ${LIBDIR} \
   ${OBJDIR}/log.o ${OBJDIR}/cleanup.o ${OBJDIR}/config.o \
 ${OBJDIR}/leecherpool.o ${OBJDIR}/mytime.o ${OBJDIR}/nntp.o \
 ${OBJDIR}/upstream.o ${OBJDIR}/mysleep.o ${OBJDIR}/sqlpool.o \
 ${OBJDIR}/sql.o ${OBJDIR}/signalhandler.o ${OBJDIR}/daemon.o \
 ${OBJDIR}/list.o ${OBJDIR}/tcpserver.o ${OBJDIR}/tmpfiles.o \
 ${OBJDIR}/listenpool.o ${OBJDIR}/workers.o \
 ${OBJDIR}/nntpd.o

 --


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


Recording from sound card

2011-02-10 Thread Robert Ames

I'm having problems trying to record from a sound card under
8.1-RELEASE.  The last time I tried this was many releases ago,
possibly 4.x-RELEASE.  Back then I would do something like cat
/dev/dsp  file but now when I try it I just end up with a 0 byte
file.  I'm using a different sound card than before so maybe that
has something to do with it.  Or possibly I just don't know which
device to use.  Playing sounds using cat file.wav  /dev/dsp0.0
works fine, but I can't get recording to work.  Does anyone have
any suggestions?  Thanks.

$ cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386)
Installed devices:
pcm0: Creative CT5880-C (play/rec) default

$ sysctl -a | egrep '(snd|pcm|sound)'
hw.snd.vpc_reset: 0
hw.snd.vpc_0db: 45
hw.snd.vpc_autoreset: 1
hw.snd.latency_profile: 1
hw.snd.latency: 5
hw.snd.report_soft_matrix: 1
hw.snd.report_soft_formats: 1
hw.snd.compat_linux_mmap: 0
hw.snd.feeder_eq_exact_rate: 0
hw.snd.feeder_eq_presets: 
PEQ:16000,0.2500,62,0.2500:-9,9,1.0:44100,48000,88200,96000,176400,192000
hw.snd.feeder_rate_quality: 1
hw.snd.feeder_rate_round: 25
hw.snd.feeder_rate_max: 2016000
hw.snd.feeder_rate_min: 1
hw.snd.feeder_rate_polyphase_max: 183040
hw.snd.feeder_rate_presets: 100:8:0.85 100:36:0.92 100:164:0.97
hw.snd.vpc_mixer_bypass: 1
hw.snd.verbose: 0
hw.snd.maxautovchans: 16
hw.snd.default_unit: 0
hw.snd.version: 2009061500/i386
hw.snd.default_auto: 0
dev.pcm.0.%desc: Creative CT5880-C
dev.pcm.0.%driver: pcm
dev.pcm.0.%location: slot=9 function=0
dev.pcm.0.%pnpinfo: vendor=0x1274 device=0x5880 subvendor=0x1274 
subdevice=0x2003 class=0x040100
dev.pcm.0.%parent: pci0
dev.pcm.0.eapd: 1
dev.pcm.0.play.vchans: 1
dev.pcm.0.play.vchanmode: fixed
dev.pcm.0.play.vchanrate: 48000
dev.pcm.0.play.vchanformat: s16le:2.0
dev.pcm.0.rec.vchans: 1
dev.pcm.0.rec.vchanmode: fixed
dev.pcm.0.rec.vchanrate: 48000
dev.pcm.0.rec.vchanformat: s16le:2.0
dev.pcm.0.buffersize: 4096
dev.pcm.0.bitperfect: 0
dev.pcm.0.spdif_enabled: 0
dev.pcm.0.latency_timer: 32
dev.pcm.0.polling: 0

$ mixer
Mixer vol  is currently set to  75:75
Mixer pcm  is currently set to  75:75
Mixer speaker  is currently set to  75:75
Mixer line is currently set to  75:75
Mixer mic  is currently set to  73:73
Mixer cd   is currently set to  75:75
Mixer rec  is currently set to  75:75
Mixer igainis currently set to   0:0
Mixer ogainis currently set to  50:50
Mixer line1is currently set to  75:75
Mixer phin is currently set to   0:0
Mixer phoutis currently set to   0:0
Mixer videois currently set to  75:75
Recording source: mic

  
___
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: Debian GNU/kFreeBSD 6.0 Squeeze has been released

2011-02-09 Thread Robert Millan
[ Adding debian-...@lists.debian.org to CC. If you reply, please
follow-up there since this is off-topic in FreeBSD mailing lists ]

2011/2/9 Bahman Kahinpour bahman.li...@gmail.com:
 http://cdimage.debian.org/debian-cd/6.0.0/kfreebsd-amd64/iso-dvd/
 http://cdimage.debian.org/debian-cd/6.0.0/kfreebsd-i386/iso-dvd/

 And according to the CHECKSUMS available in that directory there
 should be 7 DVD-ROMs for each architecture (amd64, i386):
 debian-6.0.0-kfreebsd-arch-DVD-N.iso where arch=amd64/i386 and
 N=1...7 but only the first DVD-ROM is available for each architecture.
 Where are other DVD-ROMs?

These images currently install by downloading packages via internet.  The
CD/DVD is not actually used (except for booting) because of a bug in
the installer.

The fix for this bug will be included in 6.0r1, but for now it doesn't
matter which ISO you download, they all do a network install.

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


kern.crit messages

2011-02-06 Thread Robert Fitzpatrick
:2659
  2nd 0xff002b9d6400 dirhash (dirhash) @ 
 /usr/src/sys/ufs/ufs/ufs_dirhash.c:283
 KDB: stack backtrace:
 db_trace_self_wrapper() at db_trace_self_wrapper+0x2a
 _witness_debugger() at _witness_debugger+0x2e
 witness_checkorder() at witness_checkorder+0x807
 _sx_xlock() at _sx_xlock+0x55
 ufsdirhash_acquire() at ufsdirhash_acquire+0x33
 ufsdirhash_add() at ufsdirhash_add+0x19
 ufs_direnter() at ufs_direnter+0x662
 ufs_makeinode() at ufs_makeinode+0x291
 VOP_CREATE_APV() at VOP_CREATE_APV+0x8d
 vn_open_cred() at vn_open_cred+0x46a
 kern_openat() at kern_openat+0x181
 syscallenter() at syscallenter+0x1aa
 syscall() at syscall+0x4c
 Xfast_syscall() at Xfast_syscall+0xe2
 --- syscall (5, FreeBSD ELF64, open), rip = 0x80078118c, rsp = 
 0x7fffad48, rbp = 0x7fffb73f ---

Just looking for advice on what to do about all this, can someone help?

Thanks, Robert
--
Robert rob...@webtent.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: kern.crit messages

2011-02-06 Thread Robert Fitzpatrick
On 2/6/2011 12:20 PM, Vallo Kallaste wrote:
 By using the line:
 *default release=cvs tag=.
 for src-all collection you definitely grabbed -current sources. I'm
 not sure if downgrading by make world is supported but you could
 try. Backup first, try later..

Thanks. Can someone confirm these steps as the best way to attempt to
get back to a 8.1 kernel I originally installed...

1. update my tag line to 8_1
2. update my source tree
3. run 'make world'

I have backup already. I ask because in the handbook it says 'Do not use
make world'...

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html

I was going to just rebuild the kernel with the proper source tree.
--
Robert rob...@webtent.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: Scanner recommendation

2011-02-05 Thread Robert Huff
Sergio de Almeida Lenzi writes:


  As FreeBSD comes out with a new version about a year (or two..)
  7.x - 8.x - 9.x a version of the sofware needs to be done
  (compiled) seldom.

If the program is well-written, it may well be that
re-compiling is all that needs to be done.
(And I believe tha goal for new .0 versions is more like 18-24
months.)

  2) Found an org, and using tax reduction program to finance
  software: here is is possible...
  
  Any new ideas???

Yes: skip phase 2.  Have a person with s good reputation agree
to do the work - accept pledges, talk to the author, then collect
and transfer money.  In the U.S., there's no reason not to ... but
there's no strong reason to, either. 

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: Scanner recommendation

2011-02-04 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Fri Feb  4 11:26:25 2011
 To: freebsd-questions@freebsd.org
 From: Gour g...@atmarama.net
 Date: Fri, 4 Feb 2011 18:24:10 +0100
 Subject: Re: Scanner recommendation

 --Sig_/7ESsfH/1RtQF54bxqA=NpSI
 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 
 quoted-printable

 On Fri, 04 Feb 2011 08:53:05 -0800 Rem P Roberti remeg...@comcast.net 
 wrote:

  I use Vuescan with Windoze, and you are right, it is infinitely better 
  than any free source software. =20

 It's really puzzling how one-man shop can support write software which is 
 so much better than any free software with support for so many scanners.

Money *IS* a poweful incentive.  grin

Somebody saying I'll buy it, if it supports _this_ scanner is motivation.


___
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: editors/openoffice-org-3.3.0: serious issue with X11

2011-02-03 Thread Robert Huff
Alexandre writes:

  On Thu, Feb 3, 2011 at 10:14 AM, Pavlo Greenberg sir_...@onet.com.uawrote:
  
   [SNIP]
   But I'm agree with you, OOo's behavior after the last update is abnormal.
  
  Why not give a try to LibreOffice, that is in ports :
  http://www.freshports.org/editors/libreoffice/

I switched yesterday, having not known it was available.
It seems to work on all OOo-generated material (as one would
expect), and build cleanly and (subjectively) somewhat faster than
OO.  (This is on an 4x3ghz amd64 machine with 8 gb of memory.)


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: Any package for surveys?

2011-01-28 Thread Robert Bonomi

 Date: Thu, 27 Jan 2011 19:08:06 +
 From: elbbit elb...@gmail.com
 Cc: freebsd-questions@freebsd.org, debian-u...@lists.debian.org
 Subject: Re: Any package for surveys?

 On 27/01/11 17:04, Bill Moran ...

 Thank you for taking the time to reply Bill.  I am glad you challenge me. 
  Someone needs to!

  In response to elbbit elb...@gmail.com:
  On 27/01/11 14:41, Andrew McGlashan wrote:
  Hi Simon,
  Thanks for taking the time to reply Andrew.
 
  elbbit wrote:
  I held off writing back because I have just launched a new website 
  at: http://www.tibble.net/
 
  Wait!  Don't go!  This isn't spam!   Please!  Just listen!
  Yes, it looks very spammy to me
  I sent similar emails to other lists and was promptly scalded for 
  being so uncouth.  I thank those who encourage me to stop spamming for 
  teaching me humility.  However, I think the importance of global self 
  awareness is too important to worry about whether or not we like to 
  know about the problems.  This is the equivalent of a hit-and-run, in 
  my opinion.  I am here to stay, I am not going anywhere and the world 
  will become self-aware in my presence.  It is why I have been born.
 
  You are a delusion dipshit, and a bad liar.

  If you feel so righteous about your cause, why did you hijack another 
  thread without changing the subject?
 With all the respect that is due to you, and all others who frequent 
 these mailing lists, I feel the topic of global voting is too important 
 to worry about whether or not my particular message fits into a defined 
 category.  

And you think it's OK to *STEAL* other people's resources to get your
message out, apparently.  The people who run the mailing lists _pay_ for
that equipment and network connectivity, and provide it to others for a
specific use.  You _are_ a thief, and as already stated a bad liar, and
a delusional dipshit.

Doing what you did is *expressly* against The AUP of your hosting services 
provider, Webfusion, Ltd.  http://www.123-reg.co.uk/terms/aup.shtml


That said, you've _made_ your rules, and now *you8 get to live by them.
Since _you_ believe it is OK to inflict your 'important' message on 
those you do not know, and who have _not_ consented to hear it, you 
=cannot= object if the 'world' decides to do the same to _you_ and
your mailbox.

Russian brides, pharmaceutcals, watches, lottery winnings, money sharing, 
and whatever else people decide is 'too important' for _you_ not to be 
informed of.

Annoying people who *run* mail-servers is a _really_ stupid thing to do.

But, then, you're a spammer.  And have just re-proven the validity of
Rule #3, and Kruegers Corrolary thereunto, of the Rules of Spam.

see: http://www.pearlgates.net/nanae/rulesofspam.shtmld

So, I guess, it's not _all_ that surprising.




email: si...@tibble.net   mailto:si...@tibble.net
   
Domain name: TIBBLE.NET

   Registrant:
 Simon Tibble
 74 Park Street
 Penrhiwceiber
 Mountain Ash, Rhondda Cynon Taff CF45 3YL
   GB
 07767650385Fax: 07767650385

   Registration Service Provider:
  servi...@123-reg.co.uk
  08712309525



___
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: Any package for surveys?

2011-01-28 Thread Robert Bonomi
 From elb...@gmail.com  Fri Jan 28 08:33:17 2011
 Date: Fri, 28 Jan 2011 14:24:05 +
 From: elbbit elb...@gmail.com
 To: Robert Bonomi bon...@mail.r-bonomi.com
 CC: debian-u...@lists.debian.org, freebsd-questions@freebsd.org
 Subject: Re: Any package for surveys?

 On 28/01/11 12:28, Robert Bonomi wrote:

 Thank you for taking the time to reply Robert.  I value your opinion.

  elbbit wrote:
  I held off writing back because I have just launched a new website 
  at: http://www.tibble.net/
 
  Wait!  Don't go!  This isn't spam!   Please!  Just listen!
  Yes, it looks very spammy to me
  I sent similar emails to other lists and was promptly scalded for 
  being so uncouth.  I thank those who encourage me to stop spamming 
  for teaching me humility.  However, I think the importance of global 
  self awareness is too important to worry about whether or not we 
  like to know about the problems.  This is the equivalent of a 
  hit-and-run, in my opinion.  I am here to stay, I am not going 
  anywhere and the world will become self-aware in my presence.  It is 
  why I have been born.
 
  You are a delusion dipshit, and a bad liar.
 
  If you feel so righteous about your cause, why did you hijack another 
  thread without changing the subject?
  With all the respect that is due to you, and all others who frequent 
  these mailing lists, I feel the topic of global voting is too 
  important to worry about whether or not my particular message fits 
  into a defined category.
 
  And you think it's OK to *STEAL* other people's resources to get
  your message out, apparently.
 Hmm.  Stealing.  Taking without consent.  Consent from whom?  The network 
 operator?  According to the Debian website: There are many world-open 
 mailing lists, meaning anyone can read everything that is posted, and 
 participate in the discussions. Everyone is encouraged... - Under the 
 heading Introduction: http://www.debian.org/MailingLists/

Yes, *STEALING*.  When you 'hijack' the resources the mailing-list owner/
operator has provided _for_a_specific_purpose_, for somethin *unrelated*
to that purpose, you _are_ stealing.

 Hmm.  I assumed the service was being offered to me.  If I am wrong, I 
 would like more people to confirm if Robert is right.

  The people who run the mailing lists _pay_ for that equipment and
 Pay... with money... which is a made up idea...

  network connectivity, and provide it to others for a specific use.
 ...in this case, communication... which we are doing :-)

  You _are_ a thief, and as already stated a bad liar, and a delusional 
  dipshit.
 My opinion is that according to the instruction provided to it, your 
 computer did all it can to send me your information.  I did not steal it. 
  You gave it to me.  You offered, you know - where you make a motion 
 towards me?

  Doing what you did is *expressly* against The AUP of your hosting 
  services provider, Webfusion, Ltd.
  http://www.123-reg.co.uk/terms/aup.shtml
 Yes.  Words.  Somehow, it is commonly accepted that just because 
 something is written in words that it is right.  My emails challenge 
 that.

You _agreed_, _contractually_, to abide by those 'words' when you signed
up for services with that provider.  They 'took your word' that you were
telling the truth.  Do not be surprised if you find that they choose not
to do any further business with you when they find out you -lied- to them.

  That said, you've _made_ your rules, and now *you8 get to live by them.
 I do not understand this statement.  Please clarify.

  Since _you_ believe it is OK to inflict your 'important' message on 
  those you do not know, and who have _not_ consented to hear it, you 
  =cannot= object if the 'world' decides to do the same to _you_ and your 
  mailbox.
 I agree, with everything that is me.  But does this also not apply to 
 you, also?  I think you have made an error by joining a world-open 
 mailing list if you are unable to tolerate other people's words.

  Russian brides, pharmaceutcals, watches, lottery winnings, money 
  sharing, and whatever else people decide is 'too important' for
  _you_ not to be informed of.
 You see, the people who raise awareness of their product or service are 
 after one thing - to increase the number which is displayed on their ATM 
 machine.  I do not want money.  I do not promote a service or product. In 
 fact, I promote an IDEA - the notion that we can abandon money 
 altogether.

So What?  If you believe you can decide what is 'appropriate' for for _my_
mail box, others can do the same for *yours*.

  Annoying people who *run* mail-servers is a _really_ stupid thing to 
  do.
 Unfortunately, any one who is part of the growing movement realises that 
 ridicule, torture or even certain death are requirements of changing the 
 world.  John F. Kennedy, one of your own president's, paid dearly simply 
 for saying some words.  I say some words, and you too, want to kill me.
  I forgive you for being so misguided

Re: Emulators to test non-x86 FreeBSD ports?

2011-01-28 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Fri Jan 28 11:37:00 2011
 Date: Fri, 28 Jan 2011 18:27:35 +0100
 From: C. P. Ghost cpgh...@cordula.ws
 To: FreeBSD Mailing List freebsd-questions@freebsd.org
 Subject: Emulators to test non-x86 FreeBSD ports?

 Hello list,

 are there any emulators out there that can run the non-x86 versions of 
 FreeBSD on a FreeBSD/i386 or FreeBSD/amd64 host?

Such things, by definition, are a 'simulator', not an 'emulator'.  They
exist, they are *pricey* (think 5 figures, left of the decimal point)
and they are =SLOW= (very, VERY slow!) compared to the real hardware.

 I'm especially interested in trying FreeBSD/sparc64 port, but I'd also 
 like to test the FreeBSD/powerpc and the FreeBSD/arm ports on an 
 emulator, before seeking real hardware.

Pick up some low-end used hardware, it's _lots_ cheaper, and will give 
you a better feel for how it works.

___
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: Printing from inside the applications in FreeBSD 8.1 with CUPS

2011-01-27 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Thu Jan 27 12:01:23 2011
 Date: Thu, 27 Jan 2011 21:21:48 +0330
 From: Bahman Kahinpour bahman.li...@gmail.com
 To: freebsd-questions@freebsd.org
 Subject: Printing from inside the applications in FreeBSD 8.1 with CUPS

 Hello FreeBSD fans,

 After a lot of work, I managed to get my printer work with CUPS with 
 appropriate filters. Now, I can print the test page using 
 http://localhost:631 and also I can print any postscript file from 
 command-line.

 cat ~/MyPostscriptFile.ps | /usr/local/bin/lp

 Note that I can not print using simple lp command as there a lp in 
 /bin/lp. How can I print from inside the applications? Take Firefox or 
 gedit for instance. How can I print from those apps using FilePrint 
 menu? I need to add stuff to those dialogs which open from FileMenu.

 There are only two choices Printer to File and Print to LPR. Printing 
 to LPR does not work at all as I think it references /bin/lpr instead of 
 /usr/local/bin/lpr. (Snapshot attached) How can I add more options in 
 this dialog?

 Right now, in order to print I choose Print to File as PostScript and 
 use command line cat PostScriptFile | /usr/local/bin/lp to print.

 Thanks for Help Bahman Kahinpour
 ___
 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: lightbulb? prob'ly not, but....

2011-01-23 Thread Robert Bonomi
 From be...@bah.homeip.net  Sun Jan 23 01:07:14 2011
 Date: Sun, 23 Jan 2011 07:58:51 +0100
 From: Bernt Hansson be...@bah.homeip.net
 To: Robert Bonomi bon...@mail.r-bonomi.com
 CC: kl...@ns1.thought.org, freebsd-questions@freebsd.org
 Subject: Re: lightbulb?  prob'ly not, but

 2011-01-23 05:07, Robert Bonomi:
  Date: Sun, 23 Jan 2011 02:25:01 +0100 From: Bernt 
  Hanssonbe...@bah.homeip.net Subject: Re: lightbulb?  prob'ly not, 
  but
 
  thought.org does not resolve:
 
  'irrelevant, and immaterial'.grin
 
  %telnet thought.org
  thought.org: hostname nor servname provided, or not known
 
  'thought.org' does _not_ need to resolve.  it is a 'domain-name', not a 
  'host'.

 If you want access to that host it must resolve.

  'r-bonomi.com' doesn't resolve either.  but hosts _under_ that domain 
  do.

 Yes?

___
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: lightbulb? prob'ly not, but....

2011-01-22 Thread Robert Bonomi

 Date: Sun, 23 Jan 2011 02:25:01 +0100
 From: Bernt Hansson be...@bah.homeip.net
 Subject: Re: lightbulb?  prob'ly not, but

 thought.org does not resolve:

'irrelevant, and immaterial'.   grin

 %telnet thought.org
 thought.org: hostname nor servname provided, or not known

'thought.org' does _not_ need to resolve.  it is a 'domain-name', not a 'host'.

'r-bonomi.com' doesn't resolve either.  but hosts _under_ that domain do.

In the real world, this means =only= that one cannot use http://{domain.name}
to reach a home page.  one has to use http://{host.domain.name} instead



___
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: Colorized compiler/linker messages

2011-01-22 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Sat Jan 22 20:10:21 2011
 Date: Sat, 22 Jan 2011 20:00:52 -0600
 From: Michael D. Norwick mnorw...@centurytel.net
 To: freebsd-questions@freebsd.org
 Subject: Colorized compiler/linker messages

 Good Day,

 I have seen this for some time when building ports and was wondering how 
 it was done.  GCC when compiling and linking certain programs, ebook for 
 example, emits messages in various colors.  How is that done?

Whatever it is that is writing the messages is putting out 'terminal 
control' character strings that specify the color.

Where does 
 one find what the various colors are supposed to signify?

Read the _complete_ documentation for 'whatever it is' that is producing
the messages.  The colors signify 'whatever it is' that the author of that
software chose to represent with that color.  There are *NO* universal
standards for such things.

Or, is it just 
 because it's more appealing?

(A) appealing is in the eye of the beholder.
(B) *why* 'somebody' did something/anything is known *only* to the party
that actually _did_ it.  You can ether ask *them* or get uninformed
speculation from third parties.

In broad, diagsnotic messages can be divided into a minimum of 4 'classes'
(finer gradation is always possible):
diagnostic -- 'gory details' of what the program is doing internally, to 
   find out where what it is actually  doing is different from what one
   'expects' it to be doing.
informational -- things you might 'want to know about', but do not 
   indicate potentially incorrect operation.
warning -- things which *probably* indicate a problem, but might be
   'as intended'
error -- something which is, without question, incorrect, and prevents
   proper program operation.


A developer -might- use different colors for different 'classes' of messages,
so that an experienced user of that program (who 'knows' what color is used
for what) can tell 'at a glance' the  serverity of the thing being reported.
[ see (B), above, as regards applicability to -your- situationn ]



___
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: bind97 from /bar/log/messages....

2011-01-22 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Sat Jan 22 22:08:52 2011
 Date: Sat, 22 Jan 2011 20:00:47 -0800
 From: Gary Kline kl...@thought.org
 To: FreeBSD Mailing List freebsd-questions@freebsd.org
 Cc: 
 Subject: bind97 from /bar/log/messages


 Can anybody spot what's messed up here and help me get back up?

 From earlier errors I added and then removed an A address label
 before the IN NS ns1.thought.org ... That was the only thing I could 
 think of, and things still failed.

 Here is the apropos part of the log:


 Jan 22 19:44:54 ethic named[2069]: starting BIND 9.7.2-P3 -c
 /var/named/etc/namedb/named.conf
 Jan 22 19:44:54 ethic named[2069]: built with '--localstatedir=/var'
   '--disable-linux-caps' '--disable-symtable'
   '--with-randomdev=/dev/random' '--with-openssl=/usr'
   '--with-libxml2=/usr/local' '--without-idn' '--enable-threads'
   '--prefix=/usr/local' '--mandir=/usr/local/man'
   '--infodir=/usr/local/info/' '--build=i386-portbld-freebsd7.3'
   'build_alias=i386-portbld-freebsd7.3' 'CC=cc' 'CFLAGS=-O2
   -fno-strict-aliasing -pipe' 'LDFLAGS=
   -rpath=/usr/lib:/usr/local/lib' 'CPP=cpp' 'CXX=c++' 'CXXFLAGS=-O2
   -fno-strict-aliasing -pipe'
 Jan 22 19:44:54 ethic named[2069]: could not listen on UDP socket: address in 
 use 
 Jan 22 19:44:54 ethic named[2069]: creating IPv4 interface address in use 
 Jan 22 19:44:54 ethic named[2069]: creating IPv4 interface em0 failed; 
 interface ignored 

**PROBLEM**  _something_ is already using the port named is trying to listen
on, for an IPv4 address associated with interface em0

 Jan 22 19:44:54 ethic named[2069]: could not listen on UDP socket: address in 
 use 
 Jan 22 19:44:54 ethic named[2069]: creating IPv4 interface lo0 failed; 
 interface ignored 

**PROBLEM** _something_ is already listening on the specified port on the 
loopback (lo0) interface, as well.

 Jan 22 19:44:54 ethic named[2069]: not listening on any interfaces 

**PROBLEM** the 'something' beat this invocation of 'named' to the punch on
_all_ the interfaces it was trying to listen on for queries.  dead in the water.

 Jan 22 19:44:54 ethic named[2069]: couldn't add command channel 
 127.0.0.1#953: address in use
 Jan 22 19:44:54 ethic named[2069]: couldn't add command channel ::1#953: 
 address in use
 Jan 22 19:44:54 ethic named[2069]: could not listen on UDP socket: address in 
 use 
 Jan 22 19:44:54 ethic named[2069]: creating IPv4 interface em0 failed; 
 interface ignored 

**PROBLEM**  _something_ is already using the 'control' port named is trying to
use, for an IPv4 address associated with interface em0

 Jan 22 19:44:54 ethic named[2069]: could not listen on UDP socket: address in 
 use 
 Jan 22 19:44:54 ethic named[2069]: creating IPv4 interface lo0 failed; 
 interface ignored 

**PROBLEM**  _something_ is already using the 'control' port named is trying to
use, for an IPv4 address associated with the loopback interface.

 Jan 22 19:44:54 ethic named[2069]: zone thought.org/IN/internal: NS
 'ns1.thought.org' has no address records (A or )

**PROBLEM** in the config file being used.

   you have a line that declares  IN  NS  ns1.thought.org,
   but *NO* line  ns1.thought.org  IN  A  {IPv4 address} 
 or   ns1.thought.org  IN  A  {[IPv6 address]} 
 
 Jan 22 19:44:54 ethic named[2069]: zone thought.org/IN/internal: not loaded 
 due to errors. 

**PROBLEM**  entire zone file ignored due to errors ini it.
 Jan 22 19:44:54 ethic named[2069]: managed-keys-zone ./IN/internal: loading 
   from master file 
 3bed2cb3a3acf7b6a8ef408420cc682d5520e26976d354254f528c965612054f.mkeys 
   failed: file not found 
 Jan 22 19:44:54 ethic named[2069]: managed-keys-zone ./IN/external: loading 
   from master file 
 3c4623849a49a53911c4a3e48d8cead8a1858960bccdea7a1b978d73ec2f06d7.mkeys 
   failed: file not found 
 Jan 22 19:44:54 ethic named[2069]: running

Running, but doing  nothing.  sigh

 And regarding the managed-keys-zone I have no clue.  i do have a file 
 named rndc.key or suchlike, but that is as close as I can come to 
 anything to do with that string.  ...So hope some of you DNS wizards 
 know.

 tia,

 gary




 --
  Gary Kline  kl...@thought.org  http://www.thought.org  Public Service 
  Unix
Journey Toward the Dawn, E-Book: http://www.thought.org The 
7.97a release of Jottings: http://jottings.thought.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


{kl...@thought.org} Your email is screwed up, AGAIN! ( Re: bind97 from /bar/log/messages....)

2011-01-22 Thread Robert Bonomi

Date: Sat, 22 Jan 2011 22:42:16 -0600 (CST)
Subject: Returned mail: see transcript for details


   - The following addresses had permanent fatal errors -
   kl...@thought.org
(reason: 550 5.7.1 kl...@thought.org... Relaying denied. Proper 
authentication required.)

   - Transcript of session follows -
... while talking to ethic.thought.org.:
 DATA
 550 5.7.1 kl...@thought.org... Relaying denied. Proper 
authentication required.
550 5.1.1 kl...@thought.org... User unknown
 503 5.0.0 Need RCPT (recipient)

___
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


switching to perl-threaded

2011-01-21 Thread Robert Fitzpatrick
I guess I did a stupid thing to 'make deinstall' and then 'make
reinstall' to change my perl option for WITH_THREADS. Now it seems all
my modules are lost as my LWP::Simple does not work anymore. I then
tried to pkg_delete that, successful, and 'perl -MCPAN -e install
LWP::Simple' only to fail with a lot of these...

 Can't load 
 '/usr/local/lib/perl5/site_perl/5.10.1/mach/auto/HTML/Parser/Parser.so

What is the best way to handle getting my modules working under threaded
perl? That module in particular was done through CPAN because I couldn't
seem to find a port for it.

Thanks, Robert
--
Robert rob...@webtent.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: named/bind problems....

2011-01-19 Thread Robert Boyer
Sorry to see you are still having issues. I thought you were set when we fixed 
your resolv last night.

Okay - let's start from scratch here

Are you sure you need a named? Are you actually serving dns for your own IP 
addresses or are you using it as a caching server. Getting a new named 
working/installed is not an issue. Config files are usually and issue. If you 
can explain your network topology and what you are trying to make work I can 
probably point you in the right direction.


We did get your local resolution issue solved didn't we?

RB

On Jan 19, 2011, at 6:03 PM, Gary Kline wrote:

 Yesterday noon my time I rebooted my server.  Things seemed to be slow.
 Several streams were hanging or stopping, and because ethic.thought.org had
 been up for 61 days I figured it wouldn't hurt to reinitialize stuff.
 
 Well, nutshell, disaster.  For hours it wasn't clear whether the server would
 survive, but eventually i got a portupgrade -avOPk going and now I am close to
 having every port rebuilt.  
 
 Now host kuow.org gives the the IP address of the U/Washington.  Etc. last
 night for unknown reasons even this failed.  I remembered that late last fall
 I  was warned the bind9 was nearing its end/life.   I okayed the portupgrade
 to remove bind9 and install whatever its follow up would be.  
 
 Since then, my kill9named script[s] and my restartnamed script[s] have failed.
 Can anyone save me from hours of tracking down whatever I have to to put
 things right?   
 
 Everything I get in trouble with this bind stuff it occurs how significant an
 achievement it is to have a
 service that automagically maps quad/dotted-decimals to actual words.
 
 Sorry if this sounds disjoint; it is past time for a lollipop and a blanket
 and a *nap*
 
 gary
 
 
 
 -- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.97a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org
 ethic 
 ___
 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: named/bind problems....

2011-01-19 Thread Robert Boyer
okay,

lets start from the beginning here...

1) Do you have your own IP address and IP address block that you are hosting 
DMS for or is it local only?

2) from talking with you last night I want to make sure you are aware of two 
things...

A) resolv.conf is used for name resolution on EVERY system it tells ALL 
 of the software to get name services from. We fixed this last night for one of 
your systems by pointing it at a name server that works (the one you had did 
not work)
B) named provides name services (as well as forwarding to other dns 
services)  and can be pointed to by resolv.conf on you local systems -  if it 
is not working AND your local resolv.conf files are pointing there your name 
resolution will not work.
C) you can get internet name services working temporarily by using some 
of the servers I have you 8.8.8.8 and 8.8.4.4 in all of your resolv.conf files 
- you don't need named to work for this. You can also use /etc/hosts for your 
couple of local name/address translations as a work around until you get named 
working again.

3) dig is your friend for debugging named - you can use dig @local-dns-address 
lookup-name to debug your named while still using external name servers in your 
resolv.conf and local naming in /etc/hosts until you ACTUALLY are sure your 
local named is working.

4) The only thing you really really need a local named for is if you have a 
real IP block that you are responsible for providing name services on the 
internet for - rarely the case and even if you do you can temporarily jamb the 
names you care about in another 
DNS server somewhere out there like zoneedit or free dns temporarily.

Get your stuff working then debug your named.

RB
On Jan 19, 2011, at 6:55 PM, Gary Kline wrote:

 On Wed, Jan 19, 2011 at 06:11:23PM -0500, Robert Boyer wrote:
 Sorry to see you are still having issues. I thought you were set when we 
 fixed your resolv last night.
 
 Okay - let's start from scratch here
 
 Are you sure you need a named? Are you actually serving dns for your own IP 
 addresses or are you using it as a caching server. Getting a new named 
 working/installed is not an issue. Config files are usually and issue. If 
 you can explain your network topology and what you are trying to make work I 
 can probably point you in the right direction.
 
 
 
   Last night I was on the right track; then suddenly things broke and I
   have no idea w hy.  From the modem/router, the wire goes thru my 
   firewa that runs pfSense.  Then output from the firewall plugs
   into my switch.  
 
   My DNS/Mail/web server is a seperate box that plugs into the
   hub/switch as well.  [i think; it is hard for me to get down 
   and crawl around under the desk.]  The server has been running named
   since April, '01.  I read DNS AND BIND to get things going; then in
   late '07 serious network troubles and help from someone in the Dallas
   Ft-Worth area reconfigured my network.This fellow mostly edited
   the /etc/namedb/named.conf and related files.  I also host a friend's
   site, gratis.  He is a builder; we have been friends for nearly
   twenty years.   His site is a vvery small part of the picture; I 
   mention it only to emphasize that my setup is not entirely trivial.
 
   Would it help to shar or tarball up my namedb files?
 
   FWIW, I am logged into ethic ona console.  Usually I work in X11
   and have xset r off set to prevent key bounces.
 
 
 
 We did get your local resolution issue solved didn't we?
 
 
   Ithink in KVM'ing from tao to  ethic and back, the   configuration we 
   set up last night  broke.   At least, in watching portupgrade draw in
   more and more files [on ethic], when I KVM back to my desktop, the
   mutt settings get lost
 
   -gary
 
 
 RB
 
 On Jan 19, 2011, at 6:03 PM, Gary Kline wrote:
 
 Yesterday noon my time I rebooted my server.  Things seemed to be slow.
 Several streams were hanging or stopping, and because ethic.thought.org had
 been up for 61 days I figured it wouldn't hurt to reinitialize stuff.
 
 Well, nutshell, disaster.  For hours it wasn't clear whether the server 
 would
 survive, but eventually i got a portupgrade -avOPk going and now I am close 
 to
 having every port rebuilt.  
 
 Now host kuow.org gives the the IP address of the U/Washington.  Etc. last
 night for unknown reasons even this failed.  I remembered that late last 
 fall
 I  was warned the bind9 was nearing its end/life.   I okayed the 
 portupgrade
 to remove bind9 and install whatever its follow up would be.  
 
 Since then, my kill9named script[s] and my restartnamed script[s] have 
 failed.
 Can anyone save me from hours of tracking down whatever I have to to put
 things right?   
 
 Everything I get in trouble with this bind stuff it occurs how significant 
 an
 achievement it is to have a
 service that automagically maps

Re: FreeBSD cups printing server

2011-01-19 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Wed Jan 19 21:14:59 2011
 Date: Wed, 19 Jan 2011 20:39:01 -0600
 From: Sam Fourman Jr. sfour...@gmail.com
 To: FreeBSD Questions questi...@freebsd.org
 Cc: 
 Subject: FreeBSD cups printing server

 Hello list,

 I have a freshly installed FreeBSD 8.2 print server using the latest cups 
 from ports.

 I have a Brother 9440CN printer and a Virtual pdf printer installed with 
 cups-pdf

 both work great...

 my problem is I want to create a pdf for everything I send to the brother 
 printer (for archival purposes)

 can I add multiple printers to a single queue? or is there a script 
 somewhere, that I could copy the cups generated postscript to the 
 cups-pdf printer?

At least a couple of options:

(the *UGLY* one)
1) define a named pipe
2) tell CUPS that that pipe is the printer device
3) from the system start-up script, launch a script
   that does the following in a loop:
 uses tee(1) to read from the named pipe, and copy to a unique archive file
 pipes stdout from tee(1) to the actual printer device

___
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: problem with shell script

2011-01-13 Thread Robert Bonomi

 Date: Wed, 12 Jan 2011 15:01:45 +0100
 From: Frank Bonnet f.bon...@esiee.fr
 Subject: problem with shell script

 Hello

 I'm in trouble with a simple shell script that give erroneous value when 
 running ...

 If I run commands interactively everything runs well

   ps ax | grep slapd | grep -v grep | wc -l
1

 If I run in the following shell script :

 #!/bin/sh
 SD=0 SD=`ps -ax | grep slapd | grep -v grep | wc -l` echo $SD

 the result is 3 !!!

Advice: don't try to 'out-think' the machine -- make it _show_ you what it
 is doing.

Change the script to:
   SD=`ps -ax | grep slapd | grep -v grep | tee /dev/tty | wc -l` echo $SD


I suspect thet the -name- of the script file has 'slapd' in 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: Simple command to reset / clear all logs?

2011-01-13 Thread Robert Bonomi

 Date: Wed, 12 Jan 2011 20:58:04 +0100
 From: Polytropon free...@edvax.de
 Subject: Re: Simple command to reset / clear all logs?

 On Wed, 12 Jan 2011 20:50:04 +0100, Redd Vinylene 
 reddvinyl...@gmail.com wrote:
  Will the logs automatically create themselves?

 Usually not, but it depends on the logging mechanism. If a program 
 continuously re-opens the file (after closing it) in APPEND mode, it 
 should be created if non-existent. But if the program keeps the file open 
 and just writes to it, it can cause trouble. Good programs check the 
 return code of the writing operation and signal an error. Bad programs 
 don't do that, they just keep writing to nowhere. :-)

_syslogd_ *explicitly* does -not- _create_ any log files.  it is documented
in the manpages that it behaves that way.  Whether or not this is a good 
idea is debatable, but it does allow you to suppress some logging w/o having
to edit the syslog.conf file and/or re-start syslogd.

  I mean, I picture I have to manually touch a lotta them in order to 
  avoid cannot find error messages?

Syslog does -not- give any such messages, it just doesn't write the message
anywere.
___
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: awk question: replacing %d%s by %d %s

2011-01-13 Thread Robert Bonomi

 Date: Thu, 13 Jan 2011 06:28:19 +0100
 From: Polytropon free...@edvax.de
 Subject: awk question: replacing %d%s by %d %s

 I'm aware that this is not an awk question list, but I'm confident there 
 are many awk gurus here who can surely help me with such a stupid 
 problem. I also know that I get more and more stupid myself for NOT being 
 able to solve this, even after... some nearly infinite time. :-)

 I have strings of the form either number(s) or
 number(s)letter. I catch them with

  if(match(nr, [a-z]))
   ...

 where nr is the name of the string. What I need is a simple space 
 between number(s) and letter, so for example 12a would get 12 a, 
 6d would get 6 d, and 58 would stay unchanged. I've tried with 
 split(), with array manipulation and could produce 10 lines of code that 
 didn't work as intended
 (it produced 1122aa, 66dd and 5588 according
 to the examples above).

 Obviously, sub(nr, [a-z],  [a-z]); is nonsense.


True.  But 
 sub(nr,[a-z], );

does the trick.  (tested on Freebsd 7.2)

Explamation:  is a  'replacement side' magic incantation to the regex 
library that means 'that which was matched by the pattern regex'.


___
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: Simple command to reset / clear all logs?

2011-01-13 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Thu Jan 13 01:26:33 2011
 Date: Thu, 13 Jan 2011 01:20:14 -0600
 From: Adam Vande More amvandem...@gmail.com
 To: Redd Vinylene reddvinyl...@gmail.com
 Cc: questions questi...@freebsd.org, Bernt Hansson be...@bah.homeip.net
 Subject: Re: Simple command to reset / clear all logs?

 On Wed, Jan 12, 2011 at 1:50 PM, Redd Vinylene 
 reddvinyl...@gmail.comwrote:

  Will the logs automatically create themselves? I mean, I picture I have 
  to manually touch a lotta them in order to avoid cannot find error 
  messages?
 

 Please don't top post.

 do something like this:

 shutdown now rm /var/log/* exit

 upon reentering multiuser mode, each logging service will create it's new 
 file.

FALSE TO FACT, with regard to any/all files that syslogd(8) uses,
_unless_ syslogd is invoked with the '-C' option.  

Quoting from the manpage:
For security reasons, syslogd will not append to log files that do not
 exist (unless -C option is specified); therefore, they must be created
 manually before running syslogd.


Typically if a service is running and you delete the log from it, 
 the service will not like it.  You can HUP the service to have it restart 
 logging, but you'd have to do it manually for each log you deleted.

___
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: Simple command to reset / clear all logs?

2011-01-13 Thread Robert Bonomi

 Date: Thu, 13 Jan 2011 18:31:21 -0600
 Subject: Re: Simple command to reset / clear all logs?
 To: questi...@freebsd.org

 On Thu, Jan 13, 2011 at 6:28 PM, Robert Bonomi 
 bon...@mail.r-bonomi.comwrote:

   From: Adam Vande More amvandem...@gmail.com
  
   Please don't top post.
  
   do something like this:
  
   shutdown now rm /var/log/* exit
  
   upon reentering multiuser mode, each logging service will create it's 
   new file.
 
  FALSE TO FACT, with regard to any/all files that syslogd(8) uses,
  _unless_ syslogd is invoked with the '-C' option.
 
  Quoting from the manpage:
 For security reasons, syslogd will not append to log files that do 
  not exist (unless -C option is specified); therefore, they must be 
  created manually before running syslogd.
 

 Wrong, read what I said again.

I *did* read what you said.

To be blunt, you are full of sh*t as regards any file used by the standard
Berkeley syslog daemon, (syslogd).  The Berkeley syslogd is the standard
system log daemon on FreeBSD, although somme people do replace it with


 The appropriate service recreates the log 
 file. 

_IF_ a service, e.g, apache logs _directly_ to it's own logfiles, this _may_
be true  It is explicitly *NOT*TRUE* for log files used by the standard
(Berkeley-based) syslogd daemon.  The FreeBSD manpage for syslogd, quoted
above, confirms that you do -not- know what you're talking about.

Any basic system log would be covered by this.

Male Bovine Excretement applies.

Try it and see.

I've got over 25 years experience as a professional system/network admin,
all on BSD-derived systems. I can't tell you _how_many_ times I've been
called in to fix a 'failure to log' problem that was due to the logfile
simply -not- being present, even afer a reboot.

Now I'm not infallable, so I cheked the reference documentation _before_
posting,  The standard FreeBSD syslogd is -documented- as _NOT_CREATING_ 
the logfiles it uses, *UNLESS* the '-C' option is specified upon program 
invocation.

Since a logging service cannot tell whether the system is in single-user
or multi-user mode, you can verify this syslogd behaviour by simply deleting
one of the common log files -- say /var/log/messages -- then killing the
running syslogd, and re-starting it.  As you say Try it and see.


-- 
Those of you who think you know it all are very annoying to those of us 
who do.
___
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


Need some device help

2011-01-13 Thread Robert Boyer
 am in the process of moving all of my NAS from open solaris to FreeBSD (I 
hope?) and have run into a few speed bumps along the way. Maybe I am doing 
something way way wrong but I cannot seem to find any info at all on some of my 
issues. I hope this is the right list to ask - if not please steer me in the 
right direction. 

I am not new to BSD's but then again I am not intimately familiar with a lot of 
the inner workings and things have change a bunch since my kernel hacking days 
of NET2 on a vax so this is probably just a parameter somewhere but I cannot 
seem to find it. Here goes...

Question 1?

I am trying to get FreeBSD running ZFS to work as both a server and a consumer 
of iSCSI targets and can't seem to attach to more than 8 devices. In fact it 
seems to break after a TOTAL of 8 SCSI devices on the client (initiator end) 
after attaching 8 SCSI devices da0 through da7 target discovery even stops 
working with this message when running ANY iscontrol commend on the initiator.

ISCSISETSES: Device not configured 

I believe this is on the initiator end and has to do with the total number of 
attached scsi devices but am not completely sure - I am using the built in 
iscsi initiator and kernel module NOT open iscsi and istgt on the server. Any 
ideas? Is this on the server end somehow? Ps. There is absolutely no messages 
in any log server or client after the 8 device and iSCSI stops working the 
above message comes from the iscontrol command with the -v option.

Question 2?
In order to make device names persistent I am using glabel on raw 
non-partitioned devices to simulate solaris persistent device names. I also 
understand that I can use GPT disks and that glabel somehow integrates with the 
GUID? Is this the case or is using GPT a completely independent alternative to 
using glabel? In any case what is the best/most common practice to achieving 
the end result (reliably and dependably) in the FreeBSD world?

Thanks a lot

RB


___
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: Which php??

2011-01-13 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Thu Jan 13 21:16:20 2011
 Date: Fri, 14 Jan 2011 04:10:25 +0100
 From: Polytropon free...@edvax.de
 To: Gary Kline kl...@thought.org
 Cc: User Questions freebsd-questions@freebsd.org
 Subject: Re: Which php??

 On Thu, 13 Jan 2011 18:41:15 -0800, Gary Kline kl...@thought.org wrote:
   I cut/pasted part of the config page to a yello w notepad.  It 
   unfortunately has those unfortunate DOS EOL things with the ^M.

 There's a simple answer to that waste of disk space (two bytes per line 
 break!):

Correct accounting is 'one _excess_ byte per line break'.

  recode cp437..iso8859 filename

no need to install the port/package --

   tr -d '\r' dosfile unixfile

does the trick, with just a base install utility.

___
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: Simple command to reset / clear all logs?

2011-01-13 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Thu Jan 13 23:28:08 2011
 From: Carl Johnson ca...@peak.org
 To: freebsd-questions@freebsd.org
 Date: Thu, 13 Jan 2011 21:21:40 -0800
 Subject: Re: Simple command to reset / clear all logs?

 Polytropon free...@edvax.de writes:

  On Thu, 13 Jan 2011 20:11:03 -0600, Adam Vande More 
  amvandem...@gmail.com wrote:
  Amusing, but you're the one full of shit.  There's more things to 
  automatic log file creation than are thought of in your imagination.
 
  Adam,
 
  I think Robert is right at least in regards of SOME programs that use 
  syslogd for logging OR do the logging stuff on their own.

 I think that newsyslog will create the new log files if specified in the 
 /etc/newsyslog.conf file.  That might be the confusion about some log 
 files being created automatically but others not.  The newsyslog.conf(5) 
 manpage mentions a 'C' flag that can be specified.

BINGO!  

Furthermore 'newsyslog' is *NOT* part of the Unix 'standard'.  You _cannot_ 
count on it being present on every/all Unix system.

Newsyslog is also -not- a 'logging service'.  'syslogd' is the logging
service, and syslogd does -not- create any files mentioned in its .conf
file.

Newsyslog, itself,  doesn't even consult the syslog.conf file. It operates
entirely independantly o , and _tolally_ignorantly_ of, what syslogd does.

_IF_ 'newsyslog' exists, 
and is configured to run at system start-up,
=and= the logfile in question is also configured in the newsyslog.conf file,
*AND* that logfile entry has the 'C' {create if missing} flag set,
_THEN_AND_ONLY_THEN_ will the file get created  when the system transitions 
into multi-user mode.



___
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: Simple command to reset / clear all logs?

2011-01-12 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Wed Jan 12 10:09:51 2011
 Date: Wed, 12 Jan 2011 17:04:26 +0100
 From: Redd Vinylene reddvinyl...@gmail.com
 To: questions questi...@freebsd.org
 Cc: 
 Subject: Simple command to reset / clear all logs?

 Hi,

 Is there a simple command to reset / clear everything in my /var/log? I've
 done a lot of testing, configuring, trial and error and most of my logs are
 just full of bullshit and I'd like a fresh start :-)

something like:
foreach file in (/var/log/*log)
  echo   $file
end

maybe ?


___
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: File Listing

2011-01-11 Thread Robert Bonomi

 From owner-freebsd-questi...@freebsd.org  Mon Jan 10 15:19:23 2011
 Date: Mon, 10 Jan 2011 15:43:42 -0500
 To: freebsd-questions@freebsd.org
 From: pe...@vfemail.net
 Subject: File Listing


 Is there one single-line command I can execute that will list every 
 file in every directory on my FreeBSD box?  I've been fussing with the 
 ls and du commands, but the output is never quite complete.

'man ls' is your friend.ls -aR / (as superuser!) is the answer.


___
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


Sudo 1.7.4 and AD groups

2011-01-11 Thread Robert Archer
Hi FreeBSD Folks,

I'm using Samba 3.5.6 to authenticate logins and manage access on FreeBSD 8.1.

With Sudo 1.7.2, I was able to use Active Directory groups in sudoers(5), but
this doesn't seem to work in 1.7.4.

Versions:

  $ uname -a
  FreeBSD cis-mvl.ml.unisa.edu.au 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #0: Tue 
Jan 11 06:03:08 CST 2011 
r...@cis-freebsd.ml.unisa.edu.au:/export/build/obj/export/build/src/sys/VMWARE  
amd64
  $ sudo -V
  Sudo version 1.7.4p4
  $ winbindd -V
  Version 3.5.6

/etc/nsswitch.conf:

  group:  files winbind
  hosts:  files dns
  networks:   files
  passwd: files winbind
  protocols:  files
  rpc:files
  services:   files
  shells: files

/usr/local/etc/pam.d/sudo:

  authsufficient  /usr/local/lib/pam_winbind.so   try_first_pass
  authinclude system
  account include system
  session requiredpam_permit.so
  passwordinclude system

/usr/local/etc/sudoers:

  Defaultsenv_keep+= EDITOR FTP_PASSIVE_MODE HOME 
PAGER
  Defaultsinsults
  Defaultsshell_noargs
  Defaultssyslog  = auth
  Defaults!tty_tickets
  
  rootALL = (ALL) ALL
  %wheel  ALL = (ALL) ALL
  %cis-sambagroupname ALL = (ALL) ALL

Using version 1.7.2:

  $ /mnt/usr/local/bin/sudo -V
  Sudo version 1.7.2p6
  $ /mnt/usr/local/bin/sudo -l
  Password: 
  Matching Defaults entries for cis-username on this host:
  env_keep+=EDITOR FTP_PASSIVE_MODE HOME PAGER, insults, shell_noargs, 
syslog=auth, !tty_tickets

  User cis-username may run the following commands on this host:
  (ALL) ALL

Using version 1.7.4:

  $ sudo -V
  Sudo version 1.7.4p4
  $ sudo -l
  Password: 
  Sorry, user cis-username may not run sudo on cis-mvl.

The group looks correct:

  $ getent group cis-sambagroupname 
  
cis-sambagroupname:x:169013:cis-,iee-XX,cis-,cis-username,cis-XXX,cis-XX

And if I add my username to sudoers(5), it works fine.

Any suggestions?

Thanks
Rob.

___
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


USB and 8.1

2011-01-09 Thread Robert Boyer
I am running release 9.1 under VMware Fusion and it works great - except 

No USB connections on any USB bus work at all - the kernel sees the connect but 
then encounters an error and disables the device immediately.

Searched around a bit but didn't find anything definitive. Seems like this 
would be a fairly common thing? Any ideas on how to make freebsd USB work under 
VMware?

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


Help with nanobsd.sh??

2011-01-08 Thread Robert Boyer
I am trying nanobsd for the first time under 8.1 and have two fairly basic 
questions before I go about solving a few issues in my usual brute-force and 
wrong way.

1)Using a box stock system with a fresh install and the default nanobsd.sh with 
default configuration everything looks like it builds fine right up until 

02:11:50 ## build diskimage
02:11:50 ### log: /usr/obj/nanobsd.full//_.di

/usr/obj/nanobsd.full/_.mnt: write failed, filesystem is full


of course my working file systems are not full - far from it. I think it's 
talking about some disk images that the script is creating - what the heck? How 
can this be with the default config?


2)Is there an option to run nanobsd.sh without cleaning the obj directories? 
Really don't want to rebuild world and kernel from scratch for a couple of 
different packages in custom configs - let alone do it for solving build issues.


Thanks

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


Is there a 'Y' (i.e. branch) version of a command pipe?

2011-01-08 Thread Robert Huff

Modulok writes:

  Is there a command that lets me send standard input to two different
  places at the same time? (i.e. non-sequentially.) Think of it like a
  pipe character, but with a 'Y' branch instead. Basically, I want to
  record standard input to a log file, but also send it to another
  command for processing.

man tee?


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: Ascertaining NIC Driver Version

2011-01-07 Thread Robert Huff

Chuck Swiger writes:

   Is there a command line utility, a la ethtool or the like, that
can be used to query the NIC driver version? 
  
  uname -a is probably the most general answer, as most FreeBSD
  NIC drivers don't have individualized version #s, aside from the
  OS version itself.

That is not my understanding.
To the OP: FreeBSD NIC drivers can and do have version numbers:

huff@ grep \$FreeBSD /sys/dev/e1000/if_em.c
/*$FreeBSD: src/sys/dev/e1000/if_em.c,v 1.64 2010/12/04 06:38:21 jfv Exp $*/

The system in question:

FreeBSD 9.0-CURRENT #0: Sat Oct 23 08:15:53 EDT 2010 amd64 

Obviously, the driver and OS version have nothing to do with
each other.  And the FreeBSD driver version will probably have
nothing to do with any other driver version, especially one provided
by the manufacturer.


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


Upgrading from FreeBSD 4.10 to 8.1?

2011-01-06 Thread Robert Huff

patrick writes:

  I know this is a bit crazy, but is there any opinion as to
  whether a binary upgrade using an 8.1 CD would work to upgrade a
  system running 4.10? Normally I would want to do a fresh install,
  but it's at a remote client site where it's not going to be easy
  to do it that way, and I'm going to need to guide someone less
  experienced through the install/upgrade process.

While this may not be an option, my preference would be to
1) build a new machine, 2) install 8.1, 3) install the apps and
data, 4) test thoroughly, then 5) ship the result to the remote
location.  Anything else is likely to be too painful for words.


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


Bot?

2011-01-05 Thread Robert Fitzpatrick
Keep getting calls from our provider at one location that our FreeBSD 
8.0-RELEASE server is sending bursts of 1000 spam messages to 70K 
recipients. Since the first call a few weeks ago, I have MRTG and Mail 
Statistics graphs setup and see no spikes in traffic. Their last 
sighting was over the weekend and graphs show a reduction in traffic 
during that time as expected, again with no spikes in traffic or 
messages sent/received by our Postfix/Amavisd-maia MTA. All services on 
that server including SSH, SMTP and mail queue size all monitored by 
Nagios and have had no alerts from that server.


Nonetheless, they claim I must have a bot and the mail is not passing 
through my own SMTP. And I suspect little traffic is needed for the 
alleged bursts. They have no envelope info. Can someone advise on what 
port(s) are available for bot detection and/or prevention? In all my 
years of running FreeBSD as mail gateways, this is the first time I've 
had this issue.


--Robert
___
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: Swap Space

2011-01-05 Thread Robert Huff
Adam Vande More writes:

   I will be installing 8.1 on a Dell Poweredge 2850, with dual 3 GHz XEON
   processors and 6GB RAM.
  
   What is the recommended swap space?

   I'm finding conflicting data on this.  Some say 0, some say 1 times RAM,
   others say stay with 2 x RAM.
  
  
  Definitely not 0, but 2x would probably be way too much IMO. 4 -
  6 GB should be enough for most use cases.

One data point:

last pid: 58457;  load averages:  1.91,  2.20,  2.27  up 8+19:16:27 18:51:23
166 processes: 5 running, 158 sleeping, 2 stopped, 1 zombie

Mem: 1541M Active, 1267M Inact, 1223M Wired, 195M Cache, 802M Buf, 3440M Free
Swap: 18G Total, 11M Used, 18G Free

(That's 8g total memory.)  It's a fairly lightly loaded
workstation.
A philosophical consideration: modern disks are cheap, and
fairly fast.  Repartitioning if you don't have enough is a pain.


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


Tomcat 6 log level

2010-12-29 Thread Robert Gründler
Hi,

we've installed tomcat 6 via freebsd ports and would like to change the log 
level on our
production server from INFO to SEVERE.

However, the tomcat6 startup script in /usr/local/etc/rc.d did not load the 
logging.properties
file of tomcat, so we've added a flag to the java_opts in /etc/rc.conf

tomcat60_java_opts=-Djava.util.logging.config.file=/usr/local/apache-tomcat-6.0/conf/logging.properties

When setting this option, it loads the config file, but throws some exceptions:

Can't load log handler 4host-manager.org.apache.juli.FileHandler
java.lang.ClassNotFoundException: 4host-manager.org.apache.juli.FileHandler
java.lang.ClassNotFoundException: 4host-manager.org.apache.juli.FileHandler

...

Is there a recommended way to alter tomcat log level when installed through 
ports on freebsd?


thanks!

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


what process is sending this packet?

2010-12-27 Thread Robert Huff

S Mathias writes:

  I can see, that theres a program that keeps sending packets on
  port 25:

See /etc/services.


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: Openoffice

2010-12-27 Thread Robert
On Mon, 27 Dec 2010 19:57:59 -0500
Jerry McAllister jerr...@msu.edu wrote:

 Hi,
 
 It has been a long time since I tried to install Openoffice from
 packages, but I would prefer not to have to build it.
 

 
 By the way I tried Abiword and could not read in a plain text file - 
 one with just regular text created with vi.   It made some irregular
 blob in the middle of the page that looked like all the characters 
 mushed together.  
 
 Otherwise I would be using that and ignoring Openoffice.
 
Jerry

I am a user of AbiWord. Try installing /usr/ports/x11-fonts/webfonts to
solve the above problem and then fuggedabout openoffice.

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


ImageMagick, Djvu, and Perl-threaded - marked as IGNORE when updating

2010-12-26 Thread Robert Huff

Da Rock writes:
  I'm running another set of updates, and I can't for the life of me get 
  rid of this erroneous behaviour.
  
  I run portupgrade and it tells me it can't update ImageMagick because 
  the Djvu option requires threads, and needs perl, therefore perl needs 
  to be threaded. So it comes up with an IGNORE which is nuts because I 
  run threaded perl.
  
  #pkg_version -v | grep perl
  mod_perl2-2.0.4_2,3 =   up-to-date with port
  perl-threaded-5.10.1_3  =   up-to-date with port
  
  Something I'm missing here? A fix would be nice, I should be used to it 
  though- ImageMagick _always_ has issues for me. I just thought it'd be 
  nice to get it updated for once- it looked so close :)

I'm getting something similar, have been for a couple of weeks:

** Port marked as IGNORE: graphics/ImageMagick:
OpenEXR requires threads. . Perl is non-threaded. Reinstall Perl with 
threads or undefine WITH_IMAGEMAGICK_PERL
** Listing the failed packages (-:ignored / *:skipped / !:failed)
- graphics/ImageMagick (marked as IGNORE)

(Follow-ups redirected to ports@, or I tried to.)


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: Completely remove user from system

2010-12-23 Thread Robert Huff

Igor V. Ruzanov writes:

  One of simpliest ways to remove user is the `vipw' command. vipw
  opens master.passwd file in vi editor. 

Though it's called vipw, it will try to use any program
pointed to by the EDITOR environment variable.

Respectfully,


Robert setenv EDITOR xemacs 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: AMD Athlon64 Mainboard - NOT SPAM: please check it out :)

2010-12-23 Thread Robert
On Thu, 23 Dec 2010 18:23:30 +1000
Da Rock freebsd-questi...@herveybayaustralia.com.au wrote:

 I know its a little OT, but I'm hunting for a mainboard to plug this
 CPU into and build a file server. So the ideal specs are (and maybe
 dreaming too :) ):
 
 184 pin RAM DIMM
 SataIII 4+ ports
 Either onboard or AGP Video
 2x Gigabit LAN
 
 Obviously I don't need much RAM, just juice the throughput from the
 HDD to the LAN, and plenty of bandwidth. That said a lot of my specs
 could be pipe dreaming, I know. I'm looking at 3x 2Tb Seagate 64Mb
 SATAIII's so I'd rather not waste it, I'm sure you'd agree.
 
 I'll be setting up RAID5 in some fashion or other, just still
 choosing my method between ZFS and VINUM or something. So the need
 for as many SATA ports is a must :)
 
 Any help finding a suitable model would be much appreciated- very
 hard to find anything still in stock. And of course advice will be
 very welcome :)

I just did a quick search on ebay australia for socket 939
motherboard and hit this

http://shop.ebay.com.au/?_from=R40_trksid=m570_nkw=socket+939+motherboard_sacat=See-All-Categories

One of my computers is a Asus A8N-VM 939. It has 2 ports for SATA and
I added another SATA card into the PCI-E x1 slot. I found an AMD64x2
CPU on ebay that was reasonable nad have 4G of RAM. This is not the
latest or greatest but it is still a very functional computer.

I hope this helps.

Robert

P.S. I will be taking my first trip to AU in February and am quite
excited  about 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


SAS HBA card for freebsd?

2010-12-23 Thread Robert Boyer
I have been running FreeBSD for about a year and tracking the ZFS 
implementation for almost as long. I am reasonably happy with the current 
stable 8.1 ZFS configs that I have been running with a few TB of storage all 
managed with an integrated SATA controller  on my test machine. I am about to 
invest a little bit of money in a production machine targeted for a bunch of 
cheapo storage attachment and plan to implement on FreeBSD / ZFS. I have 
searched around on this topic and most info seems to be a bit out of date or 
contradictory, so here is the question at the risk of being redundant.

I need a SAS controller that has preferably 8 ports (two four channel) 
connections per card. I don't mind decent buying a RAID card but really really 
desire it to be configurable in HBA mode vs. RAID or JBOD with RAID signatures. 
There are plenty of HBA only cards that would be suitable but I can find none 
that seem to fit the bill in terms of FreeBSD. I have seen a couple of cheap 
RAID cards recommended but cannot seem to get a definitive answer of whether 
they are actually configurable as plain old disks (HBA mode) vs JBOD w/ RAID 
signature.

Anybody using a reasonably priced card that fits the bill?

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


Best SAS controller

2010-12-23 Thread Robert Boyer
I have been running FreeBSD for about a year and tracking the ZFS 
implementation for almost as long. I am reasonably happy with the current 
stable 8.1 ZFS configs that I have been running with a few TB of storage all 
managed with an integrated SATA controller  on my test machine. I am about to 
invest a little bit of money in a production machine targeted for a bunch of 
cheapo storage attachment and plan to implement on FreeBSD / ZFS. I have 
searched around on this topic and most info seems to be a bit out of date or 
contradictory, so here is the question at the risk of being redundant.

I need a SAS controller that has preferably 8 ports (two four channel) 
connections per card. I don't mind decent buying a RAID card but really really 
desire it to be configurable in HBA mode vs. RAID or JBOD with RAID signatures. 
There are plenty of HBA only cards that would be suitable but I can find none 
that seem to fit the bill in terms of FreeBSD. I have seen a couple of cheap 
RAID cards recommended but cannot seem to get a definitive answer of whether 
they are actually configurable as plain old disks (HBA mode) vs JBOD w/ RAID 
signature.

Anybody using a reasonably priced card that fits the bill?

Thanks
RB

___
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: Well, I broke it! FreeBSD V8.1 release

2010-12-22 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Wed Dec 22 05:01:28 2010
 From: Dave d...@g8kbv.demon.co.uk
 To: freebsd-questions@freebsd.org
 Date: Wed, 22 Dec 2010 11:01:10 -
 Subject: Well, I broke it!   FreeBSD V8.1 release

 Hi...

 I was trying to disable the console screensaver, and found that in 
 sysinstall, there is no way to select none as an option.

 So I went and edited /etc/rc.conf to comment out the line:-
 Saver=fire (or whatever it is)

 I put a ; at the beginning of the line, and now FreeBSD wont come up, 
 showing an error (unexpected ;) and leaving me with a # prompt.

It's rogt. you did wrong;.  Should have been a '#', not a ';'

 How do I get to re-edit rc.conf, to correct the problem, as all command 
 line commands result in a not found error.

  # fsck -p || fsck
  # mount -a
  # vi /etc/rc.conf{ or editor of your choice }
  # reboot

 Also.  What's the Correct way to disable a console screensaver?

 # vidcontrol -t off

see 'man splash'


___
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: DES Cipher

2010-12-22 Thread Robert Bonomi

 From owner-freebsd-questi...@freebsd.org  Wed Dec 22 08:22:15 2010
 From: Mohammad Hedayati hedayati...@gmail.com
 Date: Wed, 22 Dec 2010 17:50:19 +0330
 To: freebsd-questions@freebsd.org
 Subject: DES Cipher

 Can anyone please show me a sample code for ciphering using DES in FreeBSD?

I hate to say it, but RTFM applies.
'apropos encryption' gives, among other things (and first), a cite to bdes(1).

'bdes' is a program that comes with the FreeBSD distribution.
You have access to the source code of all of the distribution.

'Use the Souce, Luke applies, and will bring the mountain to Mohammad. :)


___
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: A jail with a dash in its name

2010-12-21 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Tue Dec 21 04:58:59 2010
 Date: Tue, 21 Dec 2010 11:58:38 +0100
 From: Christer Solskogen christer.solsko...@gmail.com
 To: FreeBSD Mailing List freebsd-questions@freebsd.org
 Subject: A jail with a dash in its name

 I want to create a jail called forest-friend. And having a dash in the
 name seems to create problems for me.

 /etc/rc.conf: jail_forest-friend_rootdir=/usr/jails/forest-friend: not found

 how do I escape that?

It looks to me like yo're chasing the wrong problem.

That statement appears to be a shell variable assignment, yet the 
error message indicates that the system is trying to find an executable
by the name of the entire expression.

You need to show us the actual line in /etc/rc.conf _and_ the surrounding
context. 

___
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


<    2   3   4   5   6   7   8   9   10   11   >