Re: FreeBSD-8 Dual Booting With Pre-Installed Windows 7?

2010-04-04 Thread Leslie Jensen


You can read this tread:


http://www.mail-archive.com/freebsd-questions@freebsd.org/msg229158.html

/Leslie




 Hello,
 Sorry if this has been asked before, but can some point me to where I
 can find info on installing FreeBSD-8 to a windows-7 pre-installed
 machine (single disk) in a dual-boot set up, please?

 Any assistance is appreciated.

 Thanks.

 Regards,

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


samba failed MD5 Checksum

2010-04-04 Thread gahn
Hi all:

I am trying to compile the smaba34 but somehow it failed MD5 Checksum and 
SHA256 Checksum:


# make all
===  Vulnerability check disabled, database not found
===  Found saved configuration for samba34-3.4.5_1
===  ---
===  Run 'make config' to (re)configure the port
===  ---
===  Extracting for samba34-3.4.5_1
= MD5 Checksum mismatch for samba-3.4.5.tar.gz.
= SHA256 Checksum mismatch for samba-3.4.5.tar.gz.
===  Refetch for 1 more times files: samba-3.4.5.tar.gz samba-3.4.5.tar.gz 
===  Vulnerability check disabled, database not found
===  Found saved configuration for samba34-3.4.5_1
===  ---
===  Run 'make config' to (re)configure the port
===  ---
= samba-3.4.5.tar.gz doesn't seem to exist in /usr/ports/distfiles/.

-

actually samba-3.4.5.tar.gz does exist under /usr/ports/distfiles

how could I fix this problem? I am using 7.2-p7...

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


network card issue; constantly up / down

2010-04-04 Thread Henrik Hudson
Hey List,

I just re-installed FreeBSD 8-stable on my laptop and everytime I
have network traffic, even something as innocuous as a ssh shell
with a large section of scrolling text, the interface keeps
flapping up and down. I've had FreeBSD 8 installed on here before
and I don't remember it doing that, but I could be mistaken.
However, I just noticed it again. I was running Gentoo and it had no
issue.

os install: freebsd8-stable i386 (from 4/2/2010)
kernel: generic with snd_hda, pf sections and atapicam added

/var/log/message shows:
Apr  3 23:45:23 kern.notice alucard kernel: ed0: link state
changed to DOWN
Apr  3 23:45:25 kern.notice alucard kernel: ed0: link state
changed to UP
Apr  3 23:45:28 kern.notice alucard kernel: ed0: link state
changed to DOWN
Apr  3 23:45:30 kern.notice alucard kernel: ed0: link state
changed to UP
Apr  3 23:45:36 kern.notice alucard kernel: ed0: link state
changed to DOWN
Apr  3 23:45:38 kern.notice alucard kernel: ed0: link state
changed to UP
. ad nauseum

It's using a PCMCIA PC-card because I jacked the pins on my
built-in ethernet device.

pciconf -v:
c...@pci0:8:6:0:class=0x060700 card=0x30a5103c chip=0x8039104c rev=0x00 
hdr=0x02
vendor = 'Texas Instruments (TI)'
device = 'PCIxx12 Cardbus Controller'
class  = bridge
subclass   = PCI-CardBus

dmesg for the ethernet device:
ed0: Linksys EtherFast 10/100 Integrated PC Card (PCM100) at port 0x100-0x11f 
irq 18 function 0 config 16 on pccard0
ed0: WARNING: using obsoleted if_watchdog interface
ed0: Ethernet address: 00:04:5a:a1:59:c3
miibus1: MII bus on ed0
nsphyter0: DP83815 10/100 media interface PHY 5 on miibus1
nsphyter0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ed0: [ITHREAD]


Is the using obsoleted if_watchdog interface something that should
really be worried about? Is this a driver issue with the card or the
cardbus controller? Any tweaks to sysctly or anything else specific
I could try? Any more info needed?


Thanks.

Henrik
-- 
Henrik Hudson
li...@rhavenn.net
-
God, root, what is difference? Pitr; UF 

___
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: samba failed MD5 Checksum

2010-04-04 Thread pluknet
On 4 April 2010 11:02, gahn ipfr...@yahoo.com wrote:
 Hi all:

 I am trying to compile the smaba34 but somehow it failed MD5 Checksum and 
 SHA256 Checksum:

 
 # make all
 ===  Vulnerability check disabled, database not found
 ===  Found saved configuration for samba34-3.4.5_1
 ===  ---
 ===  Run 'make config' to (re)configure the port
 ===  ---
 ===  Extracting for samba34-3.4.5_1
 = MD5 Checksum mismatch for samba-3.4.5.tar.gz.
 = SHA256 Checksum mismatch for samba-3.4.5.tar.gz.
 ===  Refetch for 1 more times files: samba-3.4.5.tar.gz samba-3.4.5.tar.gz
 ===  Vulnerability check disabled, database not found
 ===  Found saved configuration for samba34-3.4.5_1
 ===  ---
 ===  Run 'make config' to (re)configure the port
 ===  ---
 = samba-3.4.5.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
 
 -

 actually samba-3.4.5.tar.gz does exist under /usr/ports/distfiles


Looks like you have partially fetched distfile. Try to make distclean,
then restart again.


-- 
wbr,
pluknet
___
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: make delete-old question (removing old binaries)

2010-04-04 Thread Bruce Cran
On Saturday 03 April 2010 11:04:37 Ihsan Junaidi Ibrahim wrote:
 Hi folks,
 
 I've rebuild my world with NO_MAIL (in src.conf) and a few other NO_
 options however I noticed that related binaries are not removed
 entirely i.e. mailwrapper when I ran make delete-old /
 delete-old-libs. I can see that the old binaries have a timestamp
 older than the binaries rebuilt by the make world process.
 
 [anggerik:/usr/sbin]# ls -l mailwrapper
 -r-xr-xr-x  1 root  wheel  7808 Nov 21 22:31 mailwrapper
 [anggerik:/usr/sbin]# ls -l trac
 traceroute*  traceroute6*
 [anggerik:/usr/sbin]# ls -l traceroute
 -r-sr-xr-x  1 root  wheel  28240 Apr  3 08:54 traceroute
 
 Is this simply a cosmetic issue and I can just remove those binaries
 manually or if not so, is there a special configs needed to remove
 them.
 
 Apologize if this question has been asked before.

You should  be using WITHOUT_ versions of the options - see src.conf(5). Files 
won't be removed unless they're listed in ObsoleteFiles.inc, and it's 
typically not been kept up-to-date. This is being fixed in -CURRENT but for 
just now you can remove the binaries manually.

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


Support for Zotac MB with nVidia ION chipset

2010-04-04 Thread Jeremie Le Hen
Hi,

--- Please Cc: me when replying, I'm not subscribed. ---

I plan to purchase a Zotac motherboard with a embedded ATOM processor.
It uses an NVidia chipset.

http://www.zotacusa.com/zotac-ionitx-f-e-atom-n330-1-6ghz-dual-core-mini-itx-intel-motherboard.html

My intent is to build a small NAS with ZFS and NFS/CIFS.  I'd like to
know if anyone successfully ran FreeBSD on this motherboard and what
performance could be achieved, especially if ZFS is used.  I checked the
archives without luck.

Thanks!
-- 
Jeremie Le Hen

Humans are born free and equal.  But some are more equal than others.
-Coluche
___
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: perl qstn...

2010-04-04 Thread Gary Kline
On Sun, 2010-04-04 at 00:07 -0400, Greg Larkin wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Gary Kline wrote:
  guys,
  
  i'm finally trying to get my private scripts and binaries in
  ~/bin in order.   several of my perl scripts were meant to be
  throwaway ... but a few seem to be more useful and i would have
  to have informational or usage{} type messages.  
  
  if a .pl script has to have at least one arg, is there an easy
  way to do that?  can i have a perl fn called usage() that would
  be fed various strings?
  
  tia,
  
  gary
  
  
  
 
 Hi Gary,
 
 Check out this Perl module that builds on Getopt::Long, but also
 includes support for echoing usage messages for each option:
 http://search.cpan.org/~rjbs/Getopt-Long-Descriptive-0.085/lib/Getopt/Long/Descriptive.pm
 
 Hope that helps,
 Greg

thanks for your url as well and the others to posted.  but it seems like
overkill since i dont need any explicit option or argument.  i just need
the script to tell me whether i have an arg or not.  following is
something i've kept in one of my junk drawers from when i was learning
to write bourne sscripts.  it uses the $[token] syntax that determines
whether there are Any args on the cmdline.  if not, the script prints a
message and exits. 

#!/bin/sh
if [ $# -eq 0 ]
then
echo No args; need filename.
else
echo $1
fi

After a couple hours experimentation, the following does the same for my
perl scripts:


#!/usr/bin/perl
$argc = @ARGV;
if (! $argc ) {
printf(No args; need filename.\n);
}
else {
printf(%s\n, @ARGV);
}

gary


___
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-8 Dual Booting With Pre-Installed Windows 7?

2010-04-04 Thread Stacey Roberts
Hello Leslie,
  Good to hear from you..,

On Sun, 04 Apr 2010, Leslie Jensen wrote:
 
 http://www.mail-archive.com/freebsd-questions@freebsd.org/msg229158.html
 
 /Leslie
 

I had a look at the thread - thanks..,

The documentation for EasyBCD documentation itself states that its
compatible with windows vista - there's nowhere that actually states that it
supports windows 7.

Or, am I missing something?

I noted that the link by the responder in the thread also refers to a
document that is based on windows vista, but will review this as well.

Thanks!

Regards,

S Roberts


 
 
 
  Hello,
  Sorry if this has been asked before, but can some point me to where I
  can find info on installing FreeBSD-8 to a windows-7 pre-installed
  machine (single disk) in a dual-boot set up, please?
 
  Any assistance is appreciated.
 
  Thanks.
 
  Regards,
 
  S Roberts
  ___
  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: FreeBSD-8 Dual Booting With Pre-Installed Windows 7?

2010-04-04 Thread Svein Skogen (Listmail Account)
On 04.04.2010 11:22, Stacey Roberts wrote:
 The documentation for EasyBCD documentation itself states that its
 compatible with windows vista - there's nowhere that actually states that it
 supports windows 7.
 
 Or, am I missing something?

BCD was the boot mechanism introduced with Vista and Server 2008, and
continued in Windows 7 (actually 6.1) and Server 2008r2.

//Svein

-- 
+---+---
  /\   |Svein Skogen   | sv...@d80.iso100.no
  \ /   |Solberg Østli 9| PGP Key:  0xE5E76831
   X|2020 Skedsmokorset | sv...@jernhuset.no
  / \   |Norway | PGP Key:  0xCE96CE13
|   | sv...@stillbilde.net
 ascii  |   | PGP Key:  0x58CD33B6
 ribbon |System Admin   | svein-listm...@stillbilde.net
Campaign|stillbilde.net | PGP Key:  0x22D494A4
+---+---
|msn messenger: | Mobile Phone: +47 907 03 575
|sv...@jernhuset.no | RIPE handle:SS16503-RIPE
+---+---
 If you really are in a hurry, mail me at
   svein-mob...@stillbilde.net
 This mailbox goes directly to my cellphone and is checked
even when I'm not in front of my computer.

 Picture Gallery:
  https://gallery.stillbilde.net/v/svein/




signature.asc
Description: OpenPGP digital signature


Re: FreeBSD-8 Dual Booting With Pre-Installed Windows 7?

2010-04-04 Thread Stacey Roberts
Hello Svein,
  Good to hear from you..,

On Sun, 04 Apr 2010, Svein Skogen (Listmail Account) wrote:

 On 04.04.2010 11:22, Stacey Roberts wrote:
  The documentation for EasyBCD documentation itself states that its
  compatible with windows vista - there's nowhere that actually states that it
  supports windows 7.
  
  Or, am I missing something?
 
 BCD was the boot mechanism introduced with Vista and Server 2008, and
 continued in Windows 7 (actually 6.1) and Server 2008r2.
 


Ahh.., Understood.

Thank so much for that..,

Regards,

S Roberts


 //Svein
 
 -- 
 +---+---
   /\   |Svein Skogen   | sv...@d80.iso100.no
   \ /   |Solberg Østli 9| PGP Key:  0xE5E76831
X|2020 Skedsmokorset | sv...@jernhuset.no
   / \   |Norway | PGP Key:  0xCE96CE13
 |   | sv...@stillbilde.net
  ascii  |   | PGP Key:  0x58CD33B6
  ribbon |System Admin   | svein-listm...@stillbilde.net
 Campaign|stillbilde.net | PGP Key:  0x22D494A4
 +---+---
 |msn messenger: | Mobile Phone: +47 907 03 575
 |sv...@jernhuset.no | RIPE handle:SS16503-RIPE
 +---+---
  If you really are in a hurry, mail me at
svein-mob...@stillbilde.net
  This mailbox goes directly to my cellphone and is checked
 even when I'm not in front of my computer.
 
  Picture Gallery:
   https://gallery.stillbilde.net/v/svein/
 
 




pgpnOXxwJVews.pgp
Description: PGP signature


Re: CyberShot DSC-S40 and FreeBSD

2010-04-04 Thread Alejandro Imass
On Sat, Apr 3, 2010 at 8:26 PM, Mikle nekoexmach...@gmail.com wrote:
 On Sun, Apr 04, 2010 at 02:48:11AM +0400, Mikle wrote:
[...]

 Disregard that, it was pretty strange umass problem: i had forcibly unplugged 
 my flash card (forgot to umount it), and after that no new usb devices have 
 been detected. (could anyone reproduce it? I'm running pretty-recent 
 8-STABLE, update was about couple of weeks ago)

 Now, dmesg tells me:
 da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
 da0: Sony Sony DSC 6.00 Removable Direct Access SCSI-0 device

[...]

Maybe it's not related but if you are running Gnome, try disabling HAL
and then see if you can mount it.

See this thread  xptioctl pass driver usb scsi driver problem (solved)

Best,
Alejandro Imass
___
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: CyberShot DSC-S40 and FreeBSD

2010-04-04 Thread Mikle
On Sun, Apr 04, 2010 at 08:35:38AM -0400, Alejandro Imass wrote:
 
 Maybe it's not related but if you are running Gnome, try disabling HAL
 and then see if you can mount it.
 
 See this thread  xptioctl pass driver usb scsi driver problem (solved)
 
 Best,
 Alejandro Imass
Thank you for the reply.
On this pc i have no hal and no other auto-mounter software.

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


Configuring IPFW IP range

2010-04-04 Thread Carmel NY
This is my first attempt at configuring IPFW. I have it up and running;
however, I am not quite sure how to accomplish configuring it to block
an IP range.

Assume an IP range: 219.128.0.0 to 219.137.255.255

That is an actual range: CHINANET Guangdong province network

I want to block the entire range. I am not sure how to do it in IPFW. I
have read the 'man' pages; however, I am not getting the syntax correct
since I cannot get the range added.


-- 
Carmel
carmel...@hotmail.com

|===
|===
|===
|===
|

Slurm, n.:
The slime that accumulates on the underside of a soap bar when
it sits in the dish too long.

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


Re: Configuring IPFW IP range

2010-04-04 Thread Maciej Suszko
Carmel NY carmel...@hotmail.com wrote:
 This is my first attempt at configuring IPFW. I have it up and
 running; however, I am not quite sure how to accomplish configuring
 it to block an IP range.
 
 Assume an IP range: 219.128.0.0 to 219.137.255.255
 
 That is an actual range: CHINANET Guangdong province network
 
 I want to block the entire range. I am not sure how to do it in IPFW.
 I have read the 'man' pages; however, I am not getting the syntax
 correct since I cannot get the range added.

#v+
tlh...@arsenic:~ % ipcalc 219.128.0.0 - 219.137.255.255
deaggregate 219.128.0.0 - 219.137.255.255
219.128.0.0/13
219.136.0.0/15
#v-
-- 
regards, Maciej Suszko.


signature.asc
Description: PGP signature


Re: Configuring IPFW IP range

2010-04-04 Thread Ashley

On 04/04/2010 09:11 AM, Carmel NY wrote:

This is my first attempt at configuring IPFW. I have it up and running;
however, I am not quite sure how to accomplish configuring it to block
an IP range.

Assume an IP range: 219.128.0.0 to 219.137.255.255

That is an actual range: CHINANET Guangdong province network

I want to block the entire range. I am not sure how to do it in IPFW. I
have read the 'man' pages; however, I am not getting the syntax correct
since I cannot get the range added.

Carmel,

Have you tried something like what's mentioned in this excerpt quoted 
below?:


Network-based filtering works similarly, and the network
notation there utilizes either bitmasks or netmasks, for instance:

add 2000 allow all from 192.168.0.0/16 to any
add 2100 deny all from any to 10.0.0.0:255.0.0.0

The first rule allows all traffic from the network whose IP range
is 192.168.0.0-192.168.255.255. It uses a bitmask to indicate this. A
bitmask specifies how many bits from the network address (192.168.0.0)
should remain the same for matching packets. In this instance, the first
16 bits out of the 32 bit address will remain the same, and as the first
16 bits happen to be the first two octets, 192.168, all addresses whose
source addresses have the first two octets as 192.168 will be matched by
this rule. The second rule accomplishes a similar thing using netmasks.
The netmask indicate how many bits from the indicated network address
should be used for rule matching. In the above example, for rule two, the
netmask is 255.0.0.0. Its first octet is set with high bits; in other
words, the first 8 bits are set high. This indicates to ipfw(8) that only
packets with the first 8 bits of the network address (10.0.0.0) should be
matched. As the first 8 bits of the network address equal 10, then all
packets whose destination address have a 10 for the first octet (all
addresses between 10.0.0.0 and 10.255.255.255) will be matched by this
rule, and then dropped, as indicated by the action.


(This excerpt from http://www.freebsd-howto.com/HOWTO/Ipfw-HOWTO)



--
Ashley
___
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: perl qstn...

2010-04-04 Thread Randal L. Schwartz
 Gary == Gary Kline kl...@thought.org writes:

Gary #!/usr/bin/perl
Gary $argc = @ARGV;
Gary if (! $argc ) {
Gary printf(No args; need filename.\n);
Gary }
Gary else {
Gary printf(%s\n, @ARGV);
Gary }

Even simpler:

if (@ARGV) {
  print No args\n;
} else {
  print arg is $ARGV[0]\n;
}

If you're studying perl, you might want to join the very
beginner-friendly mailing list, info at
http://lists.perl.org/list/beginners.html, or start a conversation on
perlmonks.org, also relatively beginner-friendly.

And I'd recommend a couple of good books, but I might be seen as
self-pimping. :)

But if you look at http://learn.perl.org/ you'll see a number of other
resources, including free tutorials online.

print Just another Perl hacker,; # the original

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: perl qstn...

2010-04-04 Thread Randal L. Schwartz
 Randal == Randal L Schwartz mer...@stonehenge.com writes:

Randal Even simpler:

Randal if (@ARGV) {
Randal   print No args\n;
Randal } else {
Randal   print arg is $ARGV[0]\n;
Randal }

Augh.  I hit send just as I realized that's backwards.  Need
more caffiene.  Swap the true and false blocks there. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: freebsd-8 support for dell R710 SATA raid-0 (LSI2008)

2010-04-04 Thread John
Hi,

In the end I had to go with opensuse-11.2. I should have tried it in the
second place really, because the iDRAC has Suse enterprise as an
installation option, so it was a small leap to think of the free
version.

Here are the OSes I tried:

FreeBSD 8
FreeBSD 9
NetBSD 5.0.2
CentOS
Ubuntu 9.10 server

Basically the LSI SA2008 seems very new so it's unsurprising my
favourite OS doesn't support it. Hopefully it will in the near future,
because this card is a popular option on a popular server aimed at 
small to medium sized businesses. OpenSuse-11.2 also does GPT in its
installation process. I had to raid0 the disks before they could be
seen properly though. 

Current dmesg is available here: http://www.growveg.org/server/dmesg.txt
-- 
John - comp dot john at googlemail dot com
OpenBSD firewall | FreeBSD desktop | Ubuntu Karmic laptop
GPG: 0xF08A33C5
___
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: perl qstn...

2010-04-04 Thread Chad Perrin
On Sun, Apr 04, 2010 at 08:25:03AM -0700, Randal L. Schwartz wrote:
 
 Even simpler:
 
 if (@ARGV) {
   print No args\n;
 } else {
   print arg is $ARGV[0]\n;
 }

As Randal noted, he accidentally swapped the conditions here.  Just for
the sake of absolute clarity, I'll actually swap them:

if (@ARGV) {
  print arg is $ARGV[0]\n;
} else {
  print no args\n;
}


 
 If you're studying perl, you might want to join the very
 beginner-friendly mailing list, info at
 http://lists.perl.org/list/beginners.html, or start a conversation on
 perlmonks.org, also relatively beginner-friendly.

PerlMonks in particular is an excellent resource.  I haven't been active
there recently, but when I have been active there, I've always found it
rewarding and educational.  I can't recommend it enough.


 
 And I'd recommend a couple of good books, but I might be seen as
 self-pimping. :)

That's okay.  I'll pimp them for you.

Learning Perl, also known as The Llama Book (because it has a llama on
the cover), is one of the all-time best beginner's books for *any*
language that I've ever encountered.  I've gone through both the second
and fourth editions, and both are excellent books.  I prefer the
organization of the second edition a bit, but the fourth is a trifle more
up to date and does a much better job of covering Windows-related Perl
development issues.  If you're only worried about Unixy development and
execution environments, my personal recommendation would be the second
edition, though I suppose your mileage may vary.

As a follow-up to the Llama, the Alpaca book (it has an alpaca on the
cover, naturally) -- in its first edition known as Learning Perl Objects,
References, and Modules (or Perl PORM, as I like to call it), and in
later editions titled Intermediate Perl -- is also an excellent book.  In
addition to teaching more about Perl in particular, it also teaches some
important general programming concepts from a Perl perspective, thus
helping broaden your understanding of programming in general.

The final member of the traditional camelid trilogy, and a great book to
tack onto the list after the Alpaca, is the Camel Book, titled
Programming Perl.  It's sorta the definitive reference for Perl
programmers, and covers a lot more of the language and its philosophy
than the Llama and Alpaca, though in my opinion the Llama and Alpaca
together provide a needed introduction that the Camel only skims past
(out of necessity, really, since a hand-holding introduction isn't really
the book's purpose).

There's also Mastering Perl, which was written as a sequel to
Intermediate Perl, and I'm sure it's an excellent book.  I haven't read
it, though, and know next to nothing about it, so I can't really
recommend it.

All four of the above are published by O'Reilly, and the three I've read
at least are each the kind of book that has given O'Reilly its reputation
as a purveyor of excellent technical books.  Perl is blessed by an absurd
number of excellent programming books by knowledgeable authors, and there
are many more that are worth your time as well -- but in general the
above are the canonical starting steps, with others following from there
as you start figuring out what specific areas you want to give your focus
next.  Unfortunately, there are also a number of really crappy Perl books
out there (many books that spell it PERL, in all-capital letters, are
among the not-so-great books), and as such I figured I should be explicit
in sharing my thoughts on the best books to get started in Perl.

Now that I've gotten so far off-topic for this list, I'll return you to
your regularly scheduled programming.


 
 But if you look at http://learn.perl.org/ you'll see a number of other
 resources, including free tutorials online.
 
 print Just another Perl hacker,; # the original

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


pgpTcet2ag6PP.pgp
Description: PGP signature


Re: perl qstn...

2010-04-04 Thread Alejandro Imass
On Sun, Apr 4, 2010 at 11:27 AM, Randal L. Schwartz
mer...@stonehenge.com wrote:
 Randal == Randal L Schwartz mer...@stonehenge.com writes:

 Randal Even simpler:

 Randal     if (@ARGV) {
did you mean unless? ;-)
 Randal       print No args\n;
 Randal     } else {
 Randal       print arg is $ARGV[0]\n;
 Randal     }

 Augh.  I hit send just as I realized that's backwards.  Need
 more caffiene.  Swap the true and false blocks there. :)

 --
 Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
 See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

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


Re: Configuring IPFW IP range

2010-04-04 Thread Carmel NY
On Sun, 04 Apr 2010 11:02:29 -0400, Ashley ash...@cpufight.com
articulated:

 On 04/04/2010 09:11 AM, Carmel NY wrote:
  This is my first attempt at configuring IPFW. I have it up and
  running; however, I am not quite sure how to accomplish configuring
  it to block an IP range.
 
  Assume an IP range: 219.128.0.0 to 219.137.255.255
 
  That is an actual range: CHINANET Guangdong province network
 
  I want to block the entire range. I am not sure how to do it in
  IPFW. I have read the 'man' pages; however, I am not getting the
  syntax correct since I cannot get the range added.
 Carmel,
 
 Have you tried something like what's mentioned in this excerpt quoted 
 below?:
 
 Network-based filtering works similarly, and the network
 notation there utilizes either bitmasks or netmasks, for instance:
 
 add 2000 allow all from 192.168.0.0/16 to any
 add 2100 deny all from any to 10.0.0.0:255.0.0.0
 
 The first rule allows all traffic from the network whose IP range
 is 192.168.0.0-192.168.255.255. It uses a bitmask to indicate this. A
 bitmask specifies how many bits from the network address (192.168.0.0)
 should remain the same for matching packets. In this instance, the
 first 16 bits out of the 32 bit address will remain the same, and as
 the first 16 bits happen to be the first two octets, 192.168, all
 addresses whose source addresses have the first two octets as 192.168
 will be matched by this rule. The second rule accomplishes a similar
 thing using netmasks. The netmask indicate how many bits from the
 indicated network address should be used for rule matching. In the
 above example, for rule two, the netmask is 255.0.0.0. Its first
 octet is set with high bits; in other words, the first 8 bits are set
 high. This indicates to ipfw(8) that only packets with the first 8
 bits of the network address (10.0.0.0) should be matched. As the
 first 8 bits of the network address equal 10, then all packets whose
 destination address have a 10 for the first octet (all addresses
 between 10.0.0.0 and 10.255.255.255) will be matched by this rule,
 and then dropped, as indicated by the action.
 
 
 (This excerpt from http://www.freebsd-howto.com/HOWTO/Ipfw-HOWTO)

Thanks Maciej Suszko and Ashley. I used the ipcalc tool. I thought I
had seen something like that before; however, I was not able to recall
the name of the utility. I really have to study up on IPs and
networking.

-- 
Carmel
carmel...@hotmail.com

|===
|===
|===
|===
|

BACHELOR: A man who chases women and never Mrs. one.
___
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: perl qstn...

2010-04-04 Thread Chad Perrin
On Sun, Apr 04, 2010 at 12:45:30PM -0400, Alejandro Imass wrote:
 On Sun, Apr 4, 2010 at 11:27 AM, Randal L. Schwartz
 mer...@stonehenge.com wrote:
  Randal == Randal L Schwartz mer...@stonehenge.com writes:
 
  Randal Even simpler:
 
  Randal     if (@ARGV) {
 did you mean unless? ;-)

I find if to be clearer than unless when there's an else, so
instead of making that if into an unless, I'd just swap the
conditional actions.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


pgpDO8HYcLtW7.pgp
Description: PGP signature


Re: perl qstn...

2010-04-04 Thread Alejandro Imass
On Sun, Apr 4, 2010 at 11:04 AM, Chad Perrin per...@apotheon.com wrote:
 On Sun, Apr 04, 2010 at 08:25:03AM -0700, Randal L. Schwartz wrote:
[...]
 The final member of the traditional camelid trilogy, and a great book to

Hmm, so there _are_ in fact several trilogies! g  I would swap the
Camel for the Black Leopard anyday. Not implying that the author is
not a great writer, but the Camel book is mostly a printout of perldoc
perl g sure hope Larry is not on this list lol

 tack onto the list after the Alpaca, is the Camel Book, titled
 Programming Perl.  It's sorta the definitive reference for Perl
 programmers, and covers a lot more of the language and its philosophy
 than the Llama and Alpaca, though in my opinion the Llama and Alpaca
 together provide a needed introduction that the Camel only skims past
 (out of necessity, really, since a hand-holding introduction isn't really
 the book's purpose).

 There's also Mastering Perl, which was written as a sequel to
 Intermediate Perl, and I'm sure it's an excellent book.  I haven't read
 it, though, and know next to nothing about it, so I can't really
 recommend it.


Perhaps the Vicuña and kids is in fact the thrid member of the
trilogy, but the Black Leopard is a must have to become a respected
Perl hacker IMHO. Anyway, since this is all OT I started this thread
in PM for your comments: http://www.perlmonks.org/?node_id=832725


Cheers,
Alejandro Imass
___
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: perl qstn...

2010-04-04 Thread Polytropon
On Sun, 4 Apr 2010 10:33:53 -0600, Chad Perrin per...@apotheon.com wrote:
 On Sun, Apr 04, 2010 at 12:45:30PM -0400, Alejandro Imass wrote:
  did you mean unless? ;-)
 
 I find if to be clearer than unless when there's an else, so
 instead of making that if into an unless, I'd just swap the
 conditional actions.

A quite language-independent technical sidenote :-) ...

If your if() conditional is to test an exception, something
that you usually DON'T want to happen - i. e. missing command
line parameters - you can use the ! negation operator to
indicate this in the if() argument.

if(!...@argv) {
print No args\n;
exit;
}

In a short error message, you should indicate what you are
expecting, e. g. with a synopsis or a simple example (no
need for a 25 line help text here, e. g.

print Input file name is missing.\n;
print usage: blabla.pl filename\n;

or

print Use: blabla.pl inputfile\n;

And you could even force perl to exit with an exit code != 0
to indicate that something happened (e. g. program wasn't run
successfully).

Now, as the don't want case has been considered, you can
easily continue with your program, no need to put it into
an else { } branch.




PS. I'm not familiar with perl enough to be sure that the !
operator can be used at @ARGV to make sure it's  0,
and how or if to use exit() to set the return code.
I hardly can read perl at all, so the essence of my
examples is of a rather generic nature. :-)

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


Re: freebsd-8 support for dell R710 SATA raid-0 (LSI2008)

2010-04-04 Thread pluknet
On 4 April 2010 19:33, John comp.j...@googlemail.com wrote:
 Hi,

 In the end I had to go with opensuse-11.2. I should have tried it in the
 second place really, because the iDRAC has Suse enterprise as an
 installation option, so it was a small leap to think of the free
 version.

 Here are the OSes I tried:

 FreeBSD 8
 FreeBSD 9
 NetBSD 5.0.2
 CentOS
 Ubuntu 9.10 server

 Basically the LSI SA2008 seems very new so it's unsurprising my
 favourite OS doesn't support it. Hopefully it will in the near future,
 because this card is a popular option on a popular server aimed at
 small to medium sized businesses. OpenSuse-11.2 also does GPT in its
 installation process. I had to raid0 the disks before they could be
 seen properly though.

 Current dmesg is available here: http://www.growveg.org/server/dmesg.txt

A wild guess it's just not listed in mfi(4) pciids table (as well as
for rest H200 family).
What if you try this?

--- sys/dev/mfi/mfi_pci.c.orig  2010-04-04 20:02:26.0 +0400
+++ sys/dev/mfi/mfi_pci.c   2010-04-04 20:06:17.0 +0400
@@ -117,6 +117,7 @@
 } mfi_identifiers[] = {
{0x1000, 0x0060, 0x1028, 0x, MFI_FLAGS_1078,  Dell PERC 6},
{0x1000, 0x0060, 0x, 0x, MFI_FLAGS_1078,  LSI MegaSAS 1078},
+   {0x1000, 0x0072, 0x1028, 0x1f1e, MFI_FLAGS_GEN2,  Dell PERC
H200 Integrated},
{0x1000, 0x0078, 0x, 0x, MFI_FLAGS_GEN2,  LSI MegaSAS Gen2},
{0x1000, 0x0079, 0x1028, 0x1f15, MFI_FLAGS_GEN2,  Dell PERC
H800 Adapter},
{0x1000, 0x0079, 0x1028, 0x1f16, MFI_FLAGS_GEN2,  Dell PERC
H700 Adapter},

-- 
wbr,
pluknet
___
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: perl qstn...

2010-04-04 Thread Alejandro Imass
On Sun, Apr 4, 2010 at 2:14 PM, Polytropon free...@edvax.de wrote:
 On Sun, 4 Apr 2010 10:33:53 -0600, Chad Perrin per...@apotheon.com wrote:
 On Sun, Apr 04, 2010 at 12:45:30PM -0400, Alejandro Imass wrote:
  did you mean unless? ;-)

 I find if to be clearer than unless when there's an else, so
 instead of making that if into an unless, I'd just swap the
 conditional actions.

 A quite language-independent technical sidenote :-) ...


grin

 If your if() conditional is to test an exception, something
 that you usually DON'T want to happen - i. e. missing command
 line parameters - you can use the ! negation operator to
 indicate this in the if() argument.


_precisely_ what unless is for. it's just a funny way of writing
if(!... or should I say if(! is a funny way to write unless ;-)

But honestly pun aside unless(){} is far more readable than if(!){}
and _especially_ if you are programming in an exception manner as you
correctly point out. Every language should have an unless construct.

[...]
 And you could even force perl to exit with an exit code != 0
 to indicate that something happened (e. g. program wasn't run
 successfully).


a good practice in any language...

 Now, as the don't want case has been considered, you can
 easily continue with your program, no need to put it into
 an else { } branch.


ahh! the clarity of unless




 PS. I'm not familiar with perl enough to be sure that the !
    operator can be used at @ARGV to make sure it's  0,

In scalar context will automagically return the number of elements

perldoc perlintro (section Perl variable types)

    and how or if to use exit() to set the return code.

die Bailing cause you forgot the filename unless @ARGV

Yes, that _is_ actual code :) Will not only die with a pretty message
on STDERR but will return the value of $! (errno) as exit value. (no
need to make up exit codes) Good thing we are on a FBSD list, because
I can't see the sense of programming in a non-nix environment ;-)

    I hardly can read perl at all, so the essence of my
    examples is of a rather generic nature. :-)

Look mommi! Reading Perl is just like reading plain english! (or in
Nigerian spam for that matter
http://search.cpan.org/~jwalt/Acme-Lingua-NIGERIAN-1.0.0/NIGERIAN.pm)

Cheers,
Alejandro Imass


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

___
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: perl qstn...

2010-04-04 Thread Alejandro Imass
On Sun, Apr 4, 2010 at 11:25 AM, Randal L. Schwartz
mer...@stonehenge.com wrote:
 Gary == Gary Kline kl...@thought.org writes:
[...]

 And I'd recommend a couple of good books, but I might be seen as
 self-pimping. :)

 But if you look at http://learn.perl.org/ you'll see a number of other
 resources, including free tutorials online.


The trilogy is a must-have regardless if you are beginner
intermediate or advanced, and regardless of who wrote them ;-)

- Learning Perl
- Intermediate Perl
- Advanced Perl Programming

Of course, the Camel book (Programming Perl), and Perl Best Practices
which IMHO is a must read for _any_ language but especially for Perl
hackers. More here: http://oreilly.com/pub/topic/perl

Best,
Alejandro Imass

 print Just another Perl hacker,; # the original

 --
 Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
 See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
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: perl qstn...

2010-04-04 Thread Gary Kline
On Sun, Apr 04, 2010 at 08:25:03AM -0700, Randal L. Schwartz wrote:
  Gary == Gary Kline kl...@thought.org writes:
 
 Gary #!/usr/bin/perl
 Gary $argc = @ARGV;
 Gary if (! $argc ) {
 Gary printf(No args; need filename.\n);
 Gary }
 Gary else {
 Gary printf(%s\n, @ARGV);
 Gary }
 
 Even simpler:
 
 if (@ARGV) {
   print No args\n;
 } else {
   print arg is $ARGV[0]\n;
 }
 
 If you're studying perl, you might want to join the very
 beginner-friendly mailing list, info at
 http://lists.perl.org/list/beginners.html, or start a conversation on
 perlmonks.org, also relatively beginner-friendly.
 
 And I'd recommend a couple of good books, but I might be seen as
 self-pimping. :)


hey man, pimp away!  we'll all learn a few tricks.  ---i had
to teach myself perl around '96 and bought a couple books,
one with a floppy full of short programs.  After doing a
find . -name * -exec head -15 {} \; | more thru the
truckload of these nifties, i finally came across the $argc
idea.  

there are around a dozen no-longer-throwaways that need the
kind of no-arg tip just to make the scripts more user
friendly.  even tho i'm the Only person who'll ever use them.

---Maybe you can clue me in on this one: around a dozen years
ago i somw found a recursive grep named tgrep online. to save
tying, i renamed it rgr. i can start anywhere and 'rgr pattern'
--WITHOUT ANY ASTERISK-- will find any pattern and skip
binary or tarballs or compressed files.  given this, rgr has
become my favorite utility, but since it doesn't have All of grep's
options, yes, it's tru e, there are times whrn i have to use
the real thing.   i have searched for tgrep and cannot find a
newer more complete version.  would you or anyone reading
this know where an upgraded version is?

Here is the Usage string:


p4 13:07 tao [5524] rgr
Usage: tgrep [-iredblLnf] regexp filepat ...
   tgrep -h for help



if not for trgep/rgr my shoulder would've fallen off and just
laid on the floor; that's how much i use this script.  having
the 'w' switch would be nice, so would the -N switch.  


 
 But if you look at http://learn.perl.org/ you'll see a number of other
 resources, including free tutorials online.


tx for the pointer;  i'll add it to my bookmarks. 

gary



 
 print Just another Perl hacker,; # the original
 
 -- 
 Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
 See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

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

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


Re: perl qstn...

2010-04-04 Thread parv
in message 20100404203951.gb47...@thought.org,
wrote Gary Kline thusly...

  ---Maybe you can clue me in on this one: around a dozen years ago
  i somw found a recursive grep named tgrep online. to save tying,
  i renamed it rgr. i can start anywhere and 'rgr pattern'
  --WITHOUT ANY ASTERISK-- will find any pattern and skip binary or
  tarballs or compressed files.  given this, rgr has become my
  favorite utility, but since it doesn't have All of grep's
  options, yes, it's tru e, there are times whrn i have to use the
  real thing.   i have searched for tgrep and cannot find a newer
  more complete version.  would you or anyone reading this know
  where an upgraded version is?

  Here is the Usage string:

  p4 13:07 tao [5524] rgr
  Usage: tgrep [-iredblLnf] regexp filepat ...
 tgrep -h for help


  if not for trgep/rgr my shoulder would've fallen off and just
  laid on the floor; that's how much i use this script.  having the
  'w' switch would be nice, so would the -N switch.

What does -N do in grep included with FreeBSD?  My version
(FreeBSD 8) only has -n.

I know of one tcgrep (by Tom Christiansen) ...

  http://www.perl.com/CPAN/authors/id/TOMC/scripts/tcgrep.gz


Then, there is ack ...

  http://search.cpan.org/dist/ack/ack


... may need to tinker with option to search non-Perl files (see -a
option).

Or, simply ...

  #!/bin/sh

  #  If your particular egrep is laced with potent PCRE, may use -P
  #  option (before $@) to specify Perl regex.
  egrep -r $@ .


  - parv

-- 

___
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: Support for Zotac MB with nVidia ION chipset

2010-04-04 Thread Tim Judd
On 4/4/10, Jeremie Le Hen jere...@le-hen.org wrote:
 Hi,

 --- Please Cc: me when replying, I'm not subscribed. ---

 I plan to purchase a Zotac motherboard with a embedded ATOM processor.
 It uses an NVidia chipset.

 http://www.zotacusa.com/zotac-ionitx-f-e-atom-n330-1-6ghz-dual-core-mini-itx-intel-motherboard.html

 My intent is to build a small NAS with ZFS and NFS/CIFS.  I'd like to
 know if anyone successfully ran FreeBSD on this motherboard and what
 performance could be achieved, especially if ZFS is used.  I checked the
 archives without luck.

 Thanks!
 --
 Jeremie Le Hen


A NAS w/ ZFS, NFS and CIFS/SMB, doesn't need any feature of the ion
chipset.  Why are you electing for this board if you're not running
any graphical environment?

And ZFS is memory hungry, the Atom is a i386-like chip, so you'd have
too much overhead with ZFS.


I think you've elected the wrong board for your purposes.  Will
FreeBSD run on it?  yes.  I have freebsd on another atom N-series ASUS
box.



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


SSH root login with keys only

2010-04-04 Thread Marcin Wisnicki
Is it possible to configure sshd such that both conditions are met:

1. Root will be able to login only by using keys
2. Normal users will still be able to use pam/keyboard-interactive

___
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


Caution:: Off-topic Re: perl qstn...

2010-04-04 Thread Gary Kline
On Sun, Apr 04, 2010 at 12:45:30PM -0400, Alejandro Imass wrote:
 On Sun, Apr 4, 2010 at 11:27 AM, Randal L. Schwartz
 mer...@stonehenge.com wrote:
  Randal == Randal L Schwartz mer...@stonehenge.com writes:
 
  Randal Even simpler:
 
  Randal     if (@ARGV) {
 did you mean unless? ;-)
  Randal       print No args\n;
  Randal     } else {
  Randal       print arg is $ARGV[0]\n;
  Randal     }
 
  Augh.  I hit send just as I realized that's backwards.  Need
  more caffiene.  Swap the true and false blocks there. :)


just having my 77th mug of french roast, so i'm hip.
...Anyway, here's one i'v been wanting to ask for years but
don't know where to pose.  Is C dead?  i mean, since it's
been official for years, can C add things like the unless 
keyword?  Can C include the perl regex packages?

if i asked this anywhere else, they would send out the men in
white coats an d haul me away.   here i'm safe:)

anybody know if we need a new C [[maybe D]] that would be
allowed to grow?

gary


 
  --
  Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
  mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
  Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
  See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
 
 ___
 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

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

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


Re: Intel D945GSE vs Zotac ION ITX (was: Support for Zotac MB with nVidia ION chipset)

2010-04-04 Thread Jeremie Le Hen
Hi,

--- Cc: me when replying, as I'm not subscribed. ---

I cross-post this reply to freebsd-hardware@ since the result of my
little study around Atom-based motherboard may be of interest for
readers of this ML too.

On Sun, Apr 04, 2010 at 03:00:09PM -0600, Tim Judd wrote:
 On 4/4/10, Jeremie Le Hen jere...@le-hen.org wrote:
  Hi,
 
  --- Please Cc: me when replying, I'm not subscribed. ---
 
  I plan to purchase a Zotac motherboard with a embedded ATOM processor.
  It uses an NVidia chipset.
 
  http://www.zotacusa.com/zotac-ionitx-f-e-atom-n330-1-6ghz-dual-core-mini-itx-intel-motherboard.html
 
  My intent is to build a small NAS with ZFS and NFS/CIFS.  I'd like to
  know if anyone successfully ran FreeBSD on this motherboard and what
  performance could be achieved, especially if ZFS is used.  I checked the
  archives without luck.
 
 A NAS w/ ZFS, NFS and CIFS/SMB, doesn't need any feature of the ion
 chipset.  Why are you electing for this board if you're not running
 any graphical environment?
 
 And ZFS is memory hungry, the Atom is a i386-like chip, so you'd have
 too much overhead with ZFS.

 I think you've elected the wrong board for your purposes.  Will
 FreeBSD run on it?  yes.  I have freebsd on another atom N-series ASUS
 box.

Yeah, you are right.  I should have mentionned that I do not want
necessarily a high-performance NAS, it's for home use so my premary
concern is the low power consumption.  This is why I want an Atom-based
motherboard.  By the way, I found an post on OpenSolaris forums where
the author achieves something like 35MB/s on a ZFS filesystem through
CIFS using an Intel Atom-based motherboard [1].  This is enough for the
use I intend to have.

Zotac mobo is better than Intel D954GSE because it provides a wireless
interface - although I couldn't figure out which chipset yet, so I don't
know if it's corretly supported on FreeBSD - and three S-ATA connectors.

I'm still not sure about which motherboard to buy actually.  After some
additional reading, my leaning seems to go towards Intel's one as it is
less expensive and consumes half the power of the Zotac's one (13W with
a HDD [2] vs. 25W [3]).  I can live with two S-ATA connectors and I can
plug a wireless interface on the available PCI connector if I ever need
it.

Regards,

[1] 
http://mail.opensolaris.org/pipermail/opensolaris-discuss/2009-June/048214.html
[2] 
http://www.homeserverhacks.com/2009/06/hands-on-whs-build-with-intel-d945gsejt.html
[3] http://www.anandtech.com/show/2765/12
-- 
Jeremie Le Hen

Humans are born free and equal.  But some are more equal than others.
Coluche
___
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: perl qstn...

2010-04-04 Thread Gary Kline
On Sun, Apr 04, 2010 at 10:58:35AM -1000, p...@pair.com wrote:
 in message 20100404203951.gb47...@thought.org,
 wrote Gary Kline thusly...
 
   ---Maybe you can clue me in on this one: around a dozen years ago
   i somw found a recursive grep named tgrep online. to save tying,
   i renamed it rgr. i can start anywhere and 'rgr pattern'
   --WITHOUT ANY ASTERISK-- will find any pattern and skip binary or
   tarballs or compressed files.  given this, rgr has become my
   favorite utility, but since it doesn't have All of grep's
   options, yes, it's tru e, there are times whrn i have to use the
   real thing.   i have searched for tgrep and cannot find a newer
   more complete version.  would you or anyone reading this know
   where an upgraded version is?
 
   Here is the Usage string:
 
   p4 13:07 tao [5524] rgr
   Usage: tgrep [-iredblLnf] regexp filepat ...
  tgrep -h for help
 
 
   if not for trgep/rgr my shoulder would've fallen off and just
   laid on the floor; that's how much i use this script.  having the
   'w' switch would be nice, so would the -N switch.
 
 What does -N do in grep included with FreeBSD?  My version
 (FreeBSD 8) only has -n.


Sorry, my bad.  I should have said that N was any positive
integer.   Sometimes I'll be searching for a phrase that i'm
not certain of and will type grep -7 PATTERN file[s] where
PATTERN is a known.  I'll pipe around for various other
strings.  
 
 I know of one tcgrep (by Tom Christiansen) ...
 
   http://www.perl.com/CPAN/authors/id/TOMC/scripts/tcgrep.gz
 
 
 Then, there is ack ...
 
   http://search.cpan.org/dist/ack/ack
 
 
 ... may need to tinker with option to search non-Perl files (see -a
 option).
 
 Or, simply ...
 
   #!/bin/sh
 
   #  If your particular egrep is laced with potent PCRE, may use -P
   #  option (before $@) to specify Perl regex.
   egrep -r $@ .
 


this tgrep is from the NL; by a Prof Piet van Oostrum and is
dated 5/19/93.  i think ii wrote this fellow many years ago.
Zip.  I'll ck out ack when i'm using a gui mailer, thanks.

gary


 
   - parv
 
 -- 
 

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

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


Re: Caution:: Off-topic Re: perl qstn...

2010-04-04 Thread C. P. Ghost
On Sun, Apr 4, 2010 at 11:33 PM, Gary Kline kl...@thought.org wrote:
 Can C include the perl regex packages?

Yes! Just use PCRE. Or, if you prefer C++, Boost.Regex:

http://www.pcre.org/
http://www.boost.org/doc/libs/1_42_0/libs/regex/doc/html/index.html

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: SSH root login with keys only

2010-04-04 Thread Julian Fagir
Hi,

 Is it possible to configure sshd such that both conditions are met:
 
 1. Root will be able to login only by using keys
 2. Normal users will still be able to use pam/keyboard-interactive

perhaps the sshd-option PermitRootLogin does match your requirements.
To be found in sshd_config (5).


Regards, Julian
___
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: SSH root login with keys only

2010-04-04 Thread krad
On 4 April 2010 22:49, Julian Fagir g...@gnrp.in-berlin.de wrote:

 Hi,

  Is it possible to configure sshd such that both conditions are met:
 
  1. Root will be able to login only by using keys
  2. Normal users will still be able to use pam/keyboard-interactive

 perhaps the sshd-option PermitRootLogin does match your requirements.
 To be found in sshd_config (5).


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


Why do  you need to do this? It is generally a bad thing to allow. Why not
use su or sudo?
___
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: SSH root login with keys only

2010-04-04 Thread Erik Norgaard

On 04/04/10 23:04, Marcin Wisnicki wrote:

Is it possible to configure sshd such that both conditions are met:

1. Root will be able to login only by using keys
2. Normal users will still be able to use pam/keyboard-interactive


Yes, you can create a Match block with the criteria User, something like 
this I guess will work (haven't tested):


PermitRootLogin yes
Match User root
PasswordAuthentication no

check the man page. You might also want to restrict from where root can 
login with another match block.


I assume that you have decided root login is acceptable with the 
increased security of key authentication. Just beware that the key must 
be password protected.


BR, Erik
--
Erik Nørgaard
Ph: +34.666334818/+34.915211157  http://www.locolomo.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: SSH root login with keys only

2010-04-04 Thread Craig Butler

On 04/04/2010 22:04, Marcin Wisnicki wrote:

Is it possible to configure sshd such that both conditions are met:

1. Root will be able to login only by using keys
   

Yes

2. Normal users will still be able to use pam/keyboard-interactive
   

Yes

see PermitRootLogin section in man sshd_config...

/Craig B
___
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: SSH root login with keys only

2010-04-04 Thread Marcin Wisnicki
On Mon, 05 Apr 2010 01:25:09 +0200, Erik Norgaard wrote:

 On 04/04/10 23:04, Marcin Wisnicki wrote:
 Is it possible to configure sshd such that both conditions are met:

 1. Root will be able to login only by using keys 2. Normal users will
 still be able to use pam/keyboard-interactive
 
 Yes, you can create a Match block with the criteria User, something like
 this I guess will work (haven't tested):
 
 PermitRootLogin yes
 Match User root
  PasswordAuthentication no
 
 check the man page. You might also want to restrict from where root can
 login with another match block.
 

PasswordAuthentication is already disabled (by default).
I need to disable ChallengeResponseAuthentication however:

 /etc/ssh/sshd_config line 131: Directive 'ChallengeResponseAuthentication' 
   is not allowed within a Match block

Same thing for UsePAM no (though I would like to keep pam for accounting
and session management)

 I assume that you have decided root login is acceptable with the
 increased security of key authentication. Just beware that the key must
 be password protected.
 
 BR, Erik


___
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: SSH root login with keys only

2010-04-04 Thread Marcin Wisnicki
On Sun, 04 Apr 2010 23:49:59 +0200, Julian Fagir wrote:

 Hi,
 
 Is it possible to configure sshd such that both conditions are met:
 
 1. Root will be able to login only by using keys 2. Normal users will
 still be able to use pam/keyboard-interactive
 
 perhaps the sshd-option PermitRootLogin does match your requirements.
 To be found in sshd_config (5).
 

Unfortunately it doesn't. Assuming you mean 'without-password' option,
I would have to disable ChallengeResponseAuthentication for everyone
which I would like to avoid.
It is not possible to disable ChallengeResponseAuthentication inside
match block.

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


Re: Configuring IPFW IP range [FreeBSD-questions] {offlist}

2010-04-04 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Sun Apr  4 08:12:11 2010
 Date: Sun, 4 Apr 2010 09:11:47 -0400
 From: Carmel NY carmel...@hotmail.com
 To: freebsd-questions@freebsd.org
 Subject: Configuring IPFW IP range

 This is my first attempt at configuring IPFW. I have it up and running;
 however, I am not quite sure how to accomplish configuring it to block
 an IP range.

 Assume an IP range: 219.128.0.0 to 219.137.255.255

 That is an actual range: CHINANET Guangdong province network

 I want to block the entire range. I am not sure how to do it in IPFW. I
 have read the 'man' pages; however, I am not getting the syntax correct
 since I cannot get the range added.


CIDR ranges have to: (a) start on a 'power of 2' address, (b) be a 'power of 
two'
in size, and (c) be no larger than the 'power of 2' factor for the starting 
address.  This range is _not_ that way [fails (b)], so you'll have to do it with
multiple entries.

i.e., one for 219.128.0.0/13 which will catch 219.128.0.0 - 219.135.255.255
and a 2nd for 219.136.0.0/15 which will catch 219.136.0.0 - 219.137.255.255

Life can get messier, when rule 3 comes into play,  consider the block
219.130.0.0 to 219.139.255.255

219.130.0.0 is on a /15 boundary, so that's the max block size you can use
for tht starting address.
   219.130.0.0/15   catches 219.130.0.0 - 219.131.255.255
next, you can start with 219.132.0.0, which is a /14, and block a /14 wth
   219.132.0.0/14   catches 219.132.0.0 - 219.135.255.255
now, 219.136.0.0 is a /13  so you could block that big with just more rule,
if needed, (BUT, you only need another /14, to cover the remainder of the 
group of 10 /16s that the initial block includes.  thus, lastly:
   219.136.0.0/14   catches 219.136.0.0 - 219.139.255.255

This should help you get the syntax right.



___
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: Intel D945GSE vs Zotac ION ITX (was: Support for Zotac MB with nVidia ION chipset)

2010-04-04 Thread Dan Naumov
Just a small comment regarding Atom suitability for a home NAS: feel
free to completely ignore people saying that ZFS overhead is too much
for an Atom to handle efficiently, they have no idea what they are
talking about. I am using a Supermicro X7SPA-H board (Atom D510) and I
an easily achieving ~85mb/s transfers over Samba to and from the
machine. 85mb/s is also the best these drives will do and my CPU is
nowhere near maxed during these transfers, so with better disks I
would be easily saturating gigabit, while still having plenty of
available CPU time. What you want is a good disk controller and fast
and reliable disks, 2gb RAM is enough, but with 4gb ram you can
basically safely enable prefetch for a very noticable boost in
sequential pattern reads. Below are some numbers from my personal Atom
NAS system:

===
bonnie -s 8192

  ---Sequential Output ---Sequential Input-- --Random--
  -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---
MachineMB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU  /sec %CPU
 8192 29065 68.9 52027 39.8 39636 33.3 54057 95.4
105335 34.6 174.1  7.9

dd if=/dev/zero of=test1 bs=1M count=8192
8589934592 bytes transferred in 111.300481 secs (77177875 bytes/sec) (73,6mb/s)

dd if=/dev/urandom of=test2 bs=1M count=8192
dd if=test2 of=/dev/zero bs=1M
8589934592 bytes transferred in 76.031399 secs (112978779 bytes/sec)
(107,74mb/s)
===

This is a ZFS mirror of 2 x 2tb WD Green drives with 32mb cache with
the automatic headparking disabled via WDIDLE3. The drives are very
cheap and hence, are the bottleneck in my case.


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


Re: Intel D945GSE vs Zotac ION ITX (was: Support for Zotac MB with nVidia ION chipset)

2010-04-04 Thread Peter Jeremy
On 2010-Apr-04 23:54:55 +0200, Jeremie Le Hen jere...@le-hen.org wrote:
Yeah, you are right.  I should have mentionned that I do not want
necessarily a high-performance NAS, it's for home use so my premary
concern is the low power consumption.  This is why I want an Atom-based
motherboard.

Unfortunately, FreeBSD has some issues with low memory handling that
make FreeBSD/i386 a bad choice for ZFS.  You would be far better off
running amd64 with as much RAM as you can fit onto the board.  (And
this is one case where you want amd64 even if you don't have 4GB RAM).
Note that this doesn't mean you can't use an Atom - some Atoms include
EM64T - you just need to check.

IMO, the biggest disadvantage of using an Atom in a ZFS NAS is the
lack of ECC support on the Atom.  ZFS can detect bitflips in the
I/O sustem but you can still get screwed by a bitflip in RAM.

I'm still not sure about which motherboard to buy actually.  After some
additional reading, my leaning seems to go towards Intel's one as it is
less expensive and consumes half the power of the Zotac's one (13W with
a HDD [2] vs. 25W [3]).

I'd recommend against buying anything with the Atom combined with a 945.
Whilst the Atom is low-power, the 945 isn't.  That is also an older
motherboard using an older, superseded Atom.  I suggest you look for
motherboards built around the new Pinetrail Atoms (which _do_ support
EM46T and hence can run amd64).

Supermicro make a number of potentially suitable boards:
http://www.supermicro.com/products/motherboard/ATOM/ICH9/X7SPA.cfm
this is pricier but supports remote management - other options at:
http://www.supermicro.com/products/motherboard/Atom/

If you want an Intel MB, search for BOXD510MO

Note that I'm not sure how well FreeBSD's X.org supports the Pinetrail
yet.  There have been some commits but I don't know if support is
complete.

-- 
Peter Jeremy


pgpC4FYAbzinT.pgp
Description: PGP signature


Re: perl qstn...

2010-04-04 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Sun Apr  4 17:14:17 2010
 Date: Sun, 4 Apr 2010 15:13:49 -0700
 From: Gary Kline kl...@thought.org
 To: Randal L. Schwartz mer...@stonehenge.com, glar...@freebsd.org,
 FreeBSD Mailing List freebsd-questions@freebsd.org
 Cc: 
 Subject: Re: perl qstn...

 On Sun, Apr 04, 2010 at 10:58:35AM -1000, p...@pair.com wrote:
  in message 20100404203951.gb47...@thought.org,
  wrote Gary Kline thusly...
  
---Maybe you can clue me in on this one: around a dozen years ago
i somw found a recursive grep named tgrep online. to save tying,
i renamed it rgr. i can start anywhere and 'rgr pattern'
--WITHOUT ANY ASTERISK-- will find any pattern and skip binary or
tarballs or compressed files.  given this, rgr has become my
favorite utility, but since it doesn't have All of grep's
options, yes, it's tru e, there are times whrn i have to use the
real thing.   i have searched for tgrep and cannot find a newer
more complete version.  would you or anyone reading this know
where an upgraded version is?
  
Here is the Usage string:
  
p4 13:07 tao [5524] rgr
Usage: tgrep [-iredblLnf] regexp filepat ...
   tgrep -h for help
  
  
if not for trgep/rgr my shoulder would've fallen off and just
laid on the floor; that's how much i use this script.  having the
'w' switch would be nice, so would the -N switch.
  
  What does -N do in grep included with FreeBSD?  My version
  (FreeBSD 8) only has -n.


   Sorry, my bad.  I should have said that N was any positive
   integer.   Sometimes I'll be searching for a phrase that i'm
   not certain of and will type grep -7 PATTERN file[s] where
   PATTERN is a known.  I'll pipe around for various other
   strings.  
  
  I know of one tcgrep (by Tom Christiansen) ...
  
http://www.perl.com/CPAN/authors/id/TOMC/scripts/tcgrep.gz
  
  
  Then, there is ack ...
  
http://search.cpan.org/dist/ack/ack
  
  
  ... may need to tinker with option to search non-Perl files (see -a
  option).
  
  Or, simply ...
  
#!/bin/sh
  
#  If your particular egrep is laced with potent PCRE, may use -P
#  option (before $@) to specify Perl regex.
egrep -r $@ .
  


   this tgrep is from the NL; by a Prof Piet van Oostrum and is
   dated 5/19/93.  i think ii wrote this fellow many years ago.
   Zip.  I'll ck out ack when i'm using a gui mailer, thanks.

Google to the rescue.  Given the program name, and the author, one finds that
this code was in UNIX Power Tools  (O'Reilly * Assoc.)


___
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


weird errors or else?

2010-04-04 Thread gahn
Hi all:

I am compiling xscreensaver-kde and it stooped with following errors:


Package tocloft Note: The document has chapter divisions.

) (/usr/local/share/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/local/share/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/local/share/texmf-dist/tex/latex/hyperref/hyperref.cfg)
Implicit mode ON; LaTeX internals redefined
(/usr/local/share/texmf-dist/tex/latex/hyperref/backref.sty)
(/usr/local/share/texmf-dist/tex/latex/url/url.sty))
*hyperref using default driver hpdftex*
(/usr/local/share/texmf-dist/tex/latex/hyperref/hpdftex.def
(/usr/local/share/texmf-dist/tex/latex/psnfss/pifont.sty
(/usr/local/share/texmf-dist/tex/latex/psnfss/upzd.fd)
(/usr/local/share/texmf-dist/tex/latex/psnfss/upsy.fd)))
Writing index file doxygen_manual.idx
(./doxygen_manual.aux
! Text line contains an invalid character.
l.2 ^^@
   
^...@^^@^...@^^@^...@^^@^...@^^@^...@^^@^...@^^@^...@^^@^...@^^@^...@^^@^...@^^@^...@^^@^...@...

? ^C
! Text line contains an invalid character.
l.2 ^...@^^@
  
^...@^^@^...@^^@^...@^^@^...@^^@^...@^^@^...@^^@^...@^^@^...@^^@^...@^^@^...@^^@^...@^^@...

? X
No pages of output.
Transcript written on doxygen_manual.log.
gmake[1]: *** [doxygen_manual.pdf] Error 1
gmake: *** [pdf] Interrupt: 2


seem to me it want to write something but it doesn't tell me what to do next...

what should I do next?

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


under X, frozen keys, no mouse

2010-04-04 Thread Henry Olyer
I installed FBSD 7.3 on an older Compaq box.  It has a built-in video card,
this isn't a top of the line superfast machine.

But it is important for me to press it into service.

I tried using a couple of Option lines in xorg.conf, but no luck.

so now my questions...

Will FBSD 7.3 make use of xf86cfg or some such program.  I ask because the X
--configure command has never worked for me;  Not on any of five different
machines I've put FBSD on.

I'm not trying to do a sophisticated install either -- and though I've
decided against running OpenBSD, the default install put's up X
perfectly...  (Why??)

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


Re: under X, frozen keys, no mouse

2010-04-04 Thread Tim Judd
On 4/4/10, Henry Olyer henry.ol...@gmail.com wrote:
 I installed FBSD 7.3 on an older Compaq box.  It has a built-in video card,
 this isn't a top of the line superfast machine.

 But it is important for me to press it into service.

 I tried using a couple of Option lines in xorg.conf, but no luck.

Would be nice for you to mention what option lines you're talking
about.  This message is not detailed enough to accurately read your
mind.


 so now my questions...

 Will FBSD 7.3 make use of xf86cfg or some such program.  I ask because the X
 --configure command has never worked for me;  Not on any of five different
 machines I've put FBSD on.

X --configure doesn't itself install the xorg.conf file it creates.


 I'm not trying to do a sophisticated install either -- and though I've
 decided against running OpenBSD, the default install put's up X
 perfectly...  (Why??)


A missing driver in freebsd that open puts on by default?  again, too vague.


 wish I knew more...


as do I.
___
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: Caution:: Off-topic Re: perl qstn...

2010-04-04 Thread Chad Perrin
On Sun, Apr 04, 2010 at 02:33:02PM -0700, Gary Kline wrote:
 
   anybody know if we need a new C [[maybe D]] that would be
   allowed to grow?

There's already a D.  I don't really know much about it, though.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


pgpluEACy1sZx.pgp
Description: PGP signature


Re: perl qstn...

2010-04-04 Thread Gary Kline
On Sun, Apr 04, 2010 at 08:14:21PM -0500, Robert Bonomi wrote:
  From owner-freebsd-questi...@freebsd.org  Sun Apr  4 17:14:17 2010
  Date: Sun, 4 Apr 2010 15:13:49 -0700
  From: Gary Kline kl...@thought.org
  To: Randal L. Schwartz mer...@stonehenge.com, glar...@freebsd.org,
  FreeBSD Mailing List freebsd-questions@freebsd.org
  Cc: 
  Subject: Re: perl qstn...
 
  On Sun, Apr 04, 2010 at 10:58:35AM -1000, p...@pair.com wrote:
   in message 20100404203951.gb47...@thought.org,
   wrote Gary Kline thusly...
   
 ---Maybe you can clue me in on this one: around a dozen years ago
 i somw found a recursive grep named tgrep online. to save tying,
 i renamed it rgr. i can start anywhere and 'rgr pattern'
 --WITHOUT ANY ASTERISK-- will find any pattern and skip binary or
 tarballs or compressed files.  given this, rgr has become my
 favorite utility, but since it doesn't have All of grep's
 options, yes, it's tru e, there are times whrn i have to use the
 real thing.   i have searched for tgrep and cannot find a newer
 more complete version.  would you or anyone reading this know
 where an upgraded version is?
   
 Here is the Usage string:
   
 p4 13:07 tao [5524] rgr
 Usage: tgrep [-iredblLnf] regexp filepat ...
tgrep -h for help

[[ ... ]]

 
 Google to the rescue.  Given the program name, and the author, one finds that
 this code was in UNIX Power Tools  (O'Reilly * Assoc.)
 

right; i've got the power tools book front and center.  it
must have come with  tgrep on a floppy.

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

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