Re: Port Adobe Photoshop and Illustrator for FreeBSD?

2008-11-08 Thread Roland Smith
On Fri, Nov 07, 2008 at 10:52:08PM -0800, Mike Price wrote:
 Hello guys,
 
 Is there a port like Adobe Photoshop and Illustrator for FreeBSD?
 I would like to move to FreeBSD as soon as possible.

You could try the gimp for manipulating bitmap images. For creating
vector images, try either inkscape or xaralx. They're all in ports.

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


pgpZiMXnDk18D.pgp
Description: PGP signature


Re: Port Adobe Photoshop and Illustrator for FreeBSD?

2008-11-08 Thread Wojciech Puchar

On Fri, Nov 07, 2008 at 10:52:08PM -0800, Mike Price wrote:

Hello guys,

Is there a port like Adobe Photoshop and Illustrator for FreeBSD?
I would like to move to FreeBSD as soon as possible.


You could try the gimp for manipulating bitmap images. For creating
vector images, try either inkscape or xaralx. They're all in ports.


i have a friend that do offset printing.

he have to use windoze and photoshop for only one reason - gimp doesn't 
support editing CMYK images

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


Re: Port Adobe Photoshop and Illustrator for FreeBSD?

2008-11-08 Thread Da Rock

On Sat, 2008-11-08 at 09:33 +0100, Wojciech Puchar wrote:
  On Fri, Nov 07, 2008 at 10:52:08PM -0800, Mike Price wrote:
  Hello guys,
 
  Is there a port like Adobe Photoshop and Illustrator for FreeBSD?
  I would like to move to FreeBSD as soon as possible.
 
  You could try the gimp for manipulating bitmap images. For creating
  vector images, try either inkscape or xaralx. They're all in ports.
 
 i have a friend that do offset printing.
 
 he have to use windoze and photoshop for only one reason - gimp doesn't 
 support editing CMYK images

Actually it does have limited support. I do printing myself, and I
refuse to use M$ crap.

To be able to do the job I use Gimp for some editing (making sure to use
the CMYK ICC) and it will save in a RGB format. I then use scribus with
the same ICC to save in CMYK and final layout. It works very well in
fact.

Consider Gimp like Photoshop and Scribus like Illustrator. For help and
tips try meet the gimp, he offers an podcast in tips and tricks in Gimp
(and sometimes compares them to Photoshop methods).

Good luck :)

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


Re: Port Adobe Photoshop and Illustrator for FreeBSD?

2008-11-08 Thread Roland Smith
On Sat, Nov 08, 2008 at 09:33:36AM +0100, Wojciech Puchar wrote:
  On Fri, Nov 07, 2008 at 10:52:08PM -0800, Mike Price wrote:
  Hello guys,
 
  Is there a port like Adobe Photoshop and Illustrator for FreeBSD?
  I would like to move to FreeBSD as soon as possible.
 
  You could try the gimp for manipulating bitmap images. For creating
  vector images, try either inkscape or xaralx. They're all in ports.
 
 i have a friend that do offset printing.
 
 he have to use windoze and photoshop for only one reason - gimp doesn't 
 support editing CMYK images

Nobody has ever said that the gimp was suitable for all purposes. But it
seems that most users of gimp (and photoshop) don't need it.

Most of the gimp users seem to use it for editing photos or making web
graphics, where RGB is fine. Adding and testing CMYK capabilities
is both time-consuming and costly because you need access to pre-press
equipment to do meaningfull testing, see:
http://rants.scribus.net/2006/06/03/why-no-cmyk-in-gimp-is-a-good-thing-now/

However, there is a gimp plug-in for exporting CMYK images: 
http://cue.yellowmagic.info/softwares/separate.html

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


pgp4DOjx9jkmu.pgp
Description: PGP signature


Re: (no subject)

2008-11-08 Thread Michael Powell
Chad Perrin wrote:

 On Fri, Nov 07, 2008 at 06:28:07AM -0500, Michael Powell wrote:
 
 If you are totally new to Linux/Unix and have zero experience and just
 want an easy, out of the box something other than XP you might try the
 latest incarnation of Kubuntu. I know in a FreeBSD list these comments
 are sacrilege, but the broader picture is what your needs truly are.

I take that back - I just examined the latest Kubuntu. It is the simplest to
install of just about anything I've seen, but once installed is just so
excruciatingly annoying! Ease of install doesn't make up for the short
sightedness of Canonical.
 
 I'd suggest PC-BSD instead, and not only because it's a FreeBSD spin-off.
 It also provides PBI for software management, which will surely provide a
 gentler transition for people used to the Microsoft way of installing
 software, and doesn't make a lot of the design mistakes I see in Ubuntu
 and its spin-offs.
 
 DesktopBSD is a pretty good choice along those lines, too.  Still better
 than Ubuntu, in my opinion.
 
 Furthermore . . . they both use KDE by default, and you don't have to use
 a red-headed stepchild or second-hand citizen like Kubuntu to get it.
 

Yes, I like this suggestion better - I've just never used either one but
rather just built KDE out from ports. I just took some brief looks at
Kubuntu 8.10 in a VirtualBox VM and it still annoys me no end. I had used
it some time in the past and needed reminding why I quit. Fedora 9 looks a
trifle better, and the openSUSE 11.1 Beta is a train wreck. So my desktop
will probably stay openSUSE 10.3 as this allows me to get work done. If
none of the newer, improved and advanced Linuxes get their act together
soon I will probably be returning to KDE on FreeBSD in the not very distant
future. I just can't spend all my time screwing around with b***cr**.

 
 Now running a real live Web presence out of your house is probably not
 really a good idea if it has anything to do with business. A personal
 blog can go down for indefinite periods and no harm done, but a business
 site is a different story. First, the reason for having your servers
 located in a data center is they are sitting directly on the fat pipes
 of the Internet. Second, these data centers are multi homed in their
 peerage to other backbones. If one connection path develops a problem
 your site is still going to be accessible via one of the other paths. You
 simply will never have the kind of connectivity found in a real data
 center at home.
 
 Make sure the colocation facility of your choice is multi-homed before
 simply assuming it is.  Some aren't.
 

I wouldn't want one with less than 3 peerages, and I'm in favor of full mesh
arrangements. But at this stage of the game I think the OP is better served
by learning how it all works before he starts co-locating or leasing
dedicated boxen. Baby steps first, so to speak.

-Mike
 

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


Re: recommendation word processer for xfce

2008-11-08 Thread Jerry
On Fri, 7 Nov 2008 16:28:00 -0700
Chad Perrin [EMAIL PROTECTED] wrote:

. . . or, as someone else pointed out, one could just learn to scroll
to the end before typing.  It's not that difficult -- even in Outlook.

CTRLEND works like a charm also. It is amazing what people will
bitch at. The same people who will spend days attempting to get a video
card fully functional will find placing the cursor at the end of an
email message too daunting of a task.

-- 
Jerry
[EMAIL PROTECTED]

Sex discriminates against the shy and ugly.


signature.asc
Description: PGP signature


Re: Openoffice 3.0.0 - spellchecker not functioning

2008-11-08 Thread Lowell Gilbert
Nikola Lečić [EMAIL PROTECTED] writes:

 The OpenOffice.org dictionaries page says:

   IMPORTANT NOTE: From OpenOffice.org 3.0 on the dictionary wizard
   is not longer available -- Dictionaries are now available via
   the extensions repository.

   [http://wiki.services.openoffice.org/wiki/Dictionaries]

 So, the OpenOffice.org-3 users are supposed to download .oxt files and
 run them. However, I experienced the 'bad transfer url' problem with all
 extension files; this was reported on FreeBSD mailing lists in the past
 with no available solution.

 Happily, the instruction from the same page (DictOOo-Wizard, intended
 for OpenOffice.org-2) worked just fine in my OpenOffice-3. I downloaded

   
 http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/dicooo/DicOOo.sxw

 and it worked like a charm, installing Hunspell Spellchecker module and
 dictionary files.

I had the same experience.  Note that to install the dictionaries for
all users, I needed write access to 
/usr/local/openoffice.org-3.0.0/openoffice.org/basis3.0/share/dict/ooo
and to some of the files inside of it.

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


Re: eps to jpg conversion - which program?

2008-11-08 Thread Jonathan McKeown
On Friday 07 November 2008 21:19, Polytropon wrote:
 On Fri, 07 Nov 2008 13:36:51 +0100, Laszlo Nagy [EMAIL PROTECTED] 
wrote:

 A batch solution is simple:

   #!/bin/sh
   for f in *eps; do
   convert ${f} `basename ${f} .eps`.jpg
   done

You can also save yourself repeated calls to basename by using

for f in *eps; do
convert ${f%.eps}.jpg
done

Look under parameter expansion in the manpage for sh(1) (or bash(1) if you 
have bash installed). As far as I can tell csh/tcsh doesn't support this 
useful feature.

Essentially, a Bourne-type shell with parameter expansion expands 
${variable#prefix} or ${variable%suffix} to $variable with the prefix or 
suffix, respectively, removed.

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


Compile : Always missing headers

2008-11-08 Thread d bena
Hi,

We have just install our FreeBSD and we try naturally to update our system.
$ uname -a
FreeBSD pinky.e-cac.fr 7.0-RELEASE-p5 FreeBSD
7.0-RELEASE-p5 #0: Wed Oct  1 10:10:12 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

But each time we compile softs, ports or world, we have errors with the headers 
not found or wrong headers like that :
 /usr/include/sys/param.h:63:23: error: sys/types.h: No such file or directory 

 /usr/src/lib/libmagic/../../contrib/file/file.h:50:23: error: sys/types.h: No 
such file or directory 
 chkproc.c:61:23: error: sys/types.h: No such file or directory 
 /usr/src/sys/sys/types.h:169: error: two or more data types in declaration 
specifiers 
 /usr/src/sys/sys/types.h:169: warning: useless type name in empty declaration 


We think : Hmmm ... il seems that includes are wrong ... try to add some 
includes folders
So we precise the CFLAGS : CFLAGS='-I/usr/src/sys -I/usr/include -I/sys'
Unfortunately, we have always some errors in the compilation...

Example :
# make buildworld
[...]
/usr/src/lib/libmagic/../../contrib/file/file.h:336: error: expected '=', ',', 
';', 'asm' or '__attribute__' before 'sread'
In file included from /usr/src/lib/libmagic/../../contrib/file/apprentice.c:37:
/usr/include/unistd.h:510: error: expected declaration specifiers or '...' 
before 'vm_offset_t'
/usr/include/unistd.h:528: error: expected declaration specifiers or '...' 
before 'fd_set'
/usr/include/unistd.h:528: error: expected declaration specifiers or '...' 
before 'fd_set'
/usr/include/unistd.h:528: error: expected declaration specifiers or '...' 
before 'fd_set'
/usr/include/unistd.h:546: error: expected declaration specifiers or '...' 
before 'u_long'
/usr/include/unistd.h:546: error: expected declaration specifiers or '...' 
before 'u_long'
/usr/include/unistd.h:550: error: expected ')' before '...' token
In file included from /usr/src/lib/libmagic/../../contrib/file/funcs.c:27:
/usr/src/lib/libmagic/../../contrib/file/file.h:50:23: error: sys/types.h: No 
such file or directory
In file included from /usr/src/lib/libmagic/../../contrib/file/funcs.c:27:
/usr/src/lib/libmagic/../../contrib/file/file.h:336: error: expected '=', ',', 
';', 'asm' or '__attribute__' before 'sread'
In file included from /usr/src/lib/libmagic/../../contrib/file/magic.c:28:
/usr/src/lib/libmagic/../../contrib/file/file.h:50:23: error: sys/types.h: No 
such file or directory
In file included from /usr/src/lib/libmagic/../../contrib/file/magic.c:28:
/usr/src/lib/libmagic/../../contrib/file/file.h:336: error: expected '=', ',', 
';', 'asm' or '__attribute__' before 'sread'
In file included from /usr/src/lib/libmagic/../../contrib/file/magic.c:33:
/usr/include/unistd.h:510: error: expected declaration specifiers or '...' 
before 'vm_offset_t'
/usr/include/unistd.h:528: error: expected declaration specifiers or '...' 
before 'fd_set'
/usr/include/unistd.h:528: error: expected declaration specifiers or '...' 
before 'fd_set'
/usr/include/unistd.h:528: error: expected declaration specifiers or '...' 
before 'fd_set'
/usr/include/unistd.h:546: error: expected declaration specifiers or '...' 
before 'u_long'
/usr/include/unistd.h:546: error: expected declaration specifiers or '...' 
before 'u_long'
/usr/include/unistd.h:550: error: expected ')' before '...' token
In file included from /usr/src/lib/libmagic/../../contrib/file/print.c:32:
/usr/src/lib/libmagic/../../contrib/file/file.h:50:23: error: sys/types.h: No 
such file or directory
In file included from /usr/src/lib/libmagic/../../contrib/file/print.c:32:
/usr/src/lib/libmagic/../../contrib/file/file.h:336: error: expected '=', ',', 
';', 'asm' or '__attribute__' before 'sread'
In file included from /usr/src/lib/libmagic/../../contrib/file/print.c:39:
/usr/include/unistd.h:510: error: expected declaration specifiers or '...' 
before 'vm_offset_t'
/usr/include/unistd.h:528: error: expected declaration specifiers or '...' 
before 'fd_set'
/usr/include/unistd.h:528: error: expected declaration specifiers or '...' 
before 'fd_set'
/usr/include/unistd.h:528: error: expected declaration specifiers or '...' 
before 'fd_set'
/usr/include/unistd.h:546: error: expected declaration specifiers or '...' 
before 'u_long'
/usr/include/unistd.h:546: error: expected declaration specifiers or '...' 
before 'u_long'
/usr/include/unistd.h:550: error: expected ')' before '...' token
*** Error code 1


We don't understand why it lacks some headers files like 
/usr/include/sys/types.h ?
And google, our best friend, doesn't want to explain us...

If you need more information, tell us, we'll be glad to answer.

--
Three poor french guys, very happy to discover FreeBSD but little disturb...



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


automatic creation of home directories

2008-11-08 Thread Ansar Mohammed
Hello all,

I have users logging in via Kerberos (authn) and LDAP (authz) on FreeBSD to
Active Directory. 

I don't like having to manually create their home directory. Is there some
way to have the login process automatically create the home directory on
login?

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


Re: Port Adobe Photoshop and Illustrator for FreeBSD?

2008-11-08 Thread Da Rock

On Sat, 2008-11-08 at 10:26 +0100, Roland Smith wrote:
 On Sat, Nov 08, 2008 at 09:33:36AM +0100, Wojciech Puchar wrote:
   On Fri, Nov 07, 2008 at 10:52:08PM -0800, Mike Price wrote:
   Hello guys,
  
   Is there a port like Adobe Photoshop and Illustrator for FreeBSD?
   I would like to move to FreeBSD as soon as possible.
  
   You could try the gimp for manipulating bitmap images. For creating
   vector images, try either inkscape or xaralx. They're all in ports.
  
  i have a friend that do offset printing.
  
  he have to use windoze and photoshop for only one reason - gimp doesn't 
  support editing CMYK images
 
 Nobody has ever said that the gimp was suitable for all purposes. But it
 seems that most users of gimp (and photoshop) don't need it.
 
 Most of the gimp users seem to use it for editing photos or making web
 graphics, where RGB is fine. Adding and testing CMYK capabilities
 is both time-consuming and costly because you need access to pre-press
 equipment to do meaningfull testing, see:
 http://rants.scribus.net/2006/06/03/why-no-cmyk-in-gimp-is-a-good-thing-now/
 
 However, there is a gimp plug-in for exporting CMYK images: 
 http://cue.yellowmagic.info/softwares/separate.html

Actually I've checked that out and it isn't much chop unless you
specifically want to create colour sep plates. Gimp can handle CMYK
palettes because they're a subset of the RGB palette. Just use the right
ICC, import into scribus, and save as a pdf (or whatever).

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


Re: recommendation word processer for xfce

2008-11-08 Thread Jonathan McKeown
On Saturday 08 November 2008 13:55, Jerry wrote:
 On Fri, 7 Nov 2008 16:28:00 -0700

 Chad Perrin [EMAIL PROTECTED] wrote:
 . . . or, as someone else pointed out, one could just learn to scroll
 to the end before typing.  It's not that difficult -- even in Outlook.

 CTRLEND works like a charm also. It is amazing what people will
 bitch at. The same people who will spend days attempting to get a video
 card fully functional will find placing the cursor at the end of an
 email message too daunting of a task.

The best response to the issue of Outlook and top-posting I've seen recently 
was on the London Perlmongers mailing list - although I should warn that some 
may find this offensive.

space to protect the sensitive
...
...
...
...
...
...
...
...
...
...
potentially offensive response

The last I checked, cursor keys worked in Outlook just fine without any
third-party hacks, so there is no reason for top-posting just because the
cursor happens to be there. It's a bit like crapping in your pants because
that's where your arse happens to be. -- Peter Corlett, london.pm

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


No pam_module.so found

2008-11-08 Thread Unga
Hi all

I have built FreeBSD 7.0 with openpam (ver. 20071221) on (i386).

Now I cannot login through the console, it gives following error message:
login: in openpam_load_module(): no pam_self.so found
login: pam_start(): system error

But I can login remotely using ssh. In both cases I tried only root account.

After ssh into the system, when I try to login as another user, it gives 
following error on the console:
su -l test

su: in openpam_load_module(): no pam_rootok.so found
su: pam_start: system error

All my pam modules reside in /usr/lib/ and the version number of pam modules 
match the version number of the libpam (/usr/lib/libpam.so.2). Eg. 
pam_self.so.2 and pam_rootok.so.2 are available in /usr/lib/.

My first question is, is suffix 2 in this case, the Module Version number?

Second question, what do you guys think, why pam cannot find pam modules?

Kind regards
Unga








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


[SOLVED] Apache environment variables - logical AND

2008-11-08 Thread Ian Smith
On Wed, 5 Nov 2008, Jeremy Chadwick wrote:
  On Wed, Nov 05, 2008 at 08:24:16PM +1100, Ian Smith wrote:
   On Tue, 4 Nov 2008, Jeremy Chadwick wrote:
 On Wed, Nov 05, 2008 at 05:33:45PM +1100, Ian Smith wrote:
  I know this isn't FreeBSD specific - but I am, so crave your 
   indulgence.
  
  Running Apache 1.3.27, using a fairly extensive access.conf to beat 
   off 
  the most rapacious robots and such, using mostly BrowserMatch[NoCase] 
  and SetEnvIf to moderate access to several virtual hosts.  No problem.
  
  OR conditions are of course straighforward:
  
SetEnvIf condition1 somevar
SetEnvIf condition2 somevar
SetEnvIf exception1 !somevar
  
  What I can't figure out is how to set a variable3 if and only if both 
  variable1 AND variable2 are set.  Eg:
  
SetEnvIf Referer ^$ no_referer
SetEnvIf User-Agent ^$ no_browser
  
  I want the equivalent for this (invalid and totally fanciful) match: 
  
SetEnvIf (no_browser AND no_referer) go_away
 
 Sounds like a job for mod_rewrite.  The SetEnvIf stuff is such a hack.

That's true.  Thanks for your considered and helpful tutorial.  I do use 
ipfw+dummynet for bandwidth limiting, and ipfw table 80 to house bogons.

But I finally figured out how to make such a hack work .. it just kept 
on bugging me until I woke up remembering some very basic logic; quite 
embarrassing really ..

# 9/11/8: preset env vars to be tested by value
SetEnvIf Referer .* no_ref=0 no_bro=0 both=1
SetEnvIf Referer^$ no_ref=1
SetEnvIf User-Agent ^$ no_bro=1
# duh, logic 101: a AND b = NOT ( (NOT a) OR (NOT b) )
SetEnvIf no_ref 0 both=0
SetEnvIf no_bro 0 both=0
SetEnvIf both 1 go_away

It's a bit round about and awkward but seems to work fine, and this was 
just one example of several combination conditions I'd like to test.

cheers, Ian


   It may be a hack, but I've found it an extremely useful one so far.
  
 This is what we use on our production servers (snipped to keep it
 short):
 
 RewriteEngine on
 RewriteCond %{HTTP_REFERER} ^:  [OR]
 RewriteCond %{HTTP_REFERER} ^http://forums.somethingawful.com/  [OR]
 RewriteCond %{HTTP_REFERER} ^http://forums.fark.com/[OR]
 RewriteCond %{HTTP_USER_AGENT} ^Alexibot[OR]
 RewriteCond %{HTTP_USER_AGENT} ^asterias[OR]
 RewriteCond %{HTTP_USER_AGENT} ^BackDoorBot [OR]
 RewriteCond %{HTTP_USER_AGENT} ^Black.Hole  [NC,OR]
 RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE[OR]
 RewriteCond %{HTTP_USER_AGENT} ^Xaldon.WebSpider
 RewriteRule ^.* - [F,L]
 
 You need to keep something in mind however: blocking by user agent is
 basically worthless these days.  Most leeching tools now let you
 spoof the user agent to show up as Internet Explorer, essentially
 defeating the checks.
   
   While that's true, I've found most of the more troublesome robots are 
   too proud of their 'brand' to spoof user agent, and those that do are a) 
   often consistent enough in their Remote_Addr to exclude by subnet and/or 
   b) often make obvious errors in spoofed User_Agent strings .. especially 
   those pretending to be some variant of MSIE :)
  
  I haven't found this to be true at all, and I've been doing web hosting
  since 1993.  In the past 2-3 years, the amount of leeching tools which
  spoof their User-Agent has increased dramatically.
 
  But step back for a moment and look at it from a usability perspective,
  because this is what really happens.
  
  A user tries to leech a site you host, using FruitBatLeecher, which your
  Apache server blocks based on User-Agent.  The user has no idea why the
  leech program doesn't work.  Does the user simply give up his quest?
  Absolutely not -- the user then goes and finds BobsBandwidthZilla which
  pretends to be Internet Explorer, Firefox, or lynx, and downloads the
  site.
  
  Now, if you're trying to block robots/scrapers which aren't honouring
  robots.txt, oh yes, that almost always works, because those rarely spoof
  their User-Agent (I think to date I've only seen one site which did
  that, and it was some Russian search engine).
 
  If you feel I'm just doing burn-outs arguing, a la BSD style, let me
  give you some insight to how often I deal with this problem: daily.
 
  We host a very specific/niche site that contains over 20 years of
  technical information on the Famicom / Nintendo Entertainment System.
  The site has hundreds of megabytes of information, and a very active
  forum.  Some jackass comes along and decides Wow, this has all the info
  I want! and fires off a leeching program against the entire
  domain/vhost.  Let's say the program he's using is blocked by our
  User-Agent blocks; there is a 6-7 minute delay as the user goes off to
  find another program to leech with, installs it, and 

Re: automatic creation of home directories

2008-11-08 Thread Francesco Malvezzi
Il giorno sab, 08/11/2008 alle 11.15 -0500, Ansar Mohammed ha scritto:
 Hello all,
 
 I have users logging in via Kerberos (authn) and LDAP (authz) on FreeBSD to
 Active Directory. 
 
 I don't like having to manually create their home directory. Is there some
 way to have the login process automatically create the home directory on
 login?

Have you already checked pam_mkhomedir?
I have a simpler setup (pam_ldap only), but it solved my issue.

Regards,

Francesco

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


Re: recommendation word processer for xfce

2008-11-08 Thread RW
On Sat, 8 Nov 2008 15:25:12 +0200
Jonathan McKeown [EMAIL PROTECTED] wrote:

 On Saturday 08 November 2008 13:55, Jerry wrote:

 The best response to the issue of Outlook and top-posting I've seen
 recently was on the London Perlmongers mailing list 
 ...
 The last I checked, cursor keys worked in Outlook just fine without
 any third-party hacks, so there is no reason for top-posting just
 because the cursor happens to be there.

Some people argue that the cursor should start-off at the top because
you should start by removing superfluous quoted text before bottom
posting.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Compile : Always missing headers

2008-11-08 Thread Mel
On Saturday 08 November 2008 14:11:59 d bena wrote:
 Hi,

 We have just install our FreeBSD and we try naturally to update our system.
 $ uname -a
 FreeBSD pinky.e-cac.fr 7.0-RELEASE-p5 FreeBSD
 7.0-RELEASE-p5 #0: Wed Oct  1 10:10:12 UTC 2008
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

 But each time we compile softs, ports or world, we have errors with the
 headers not found or wrong headers like that : 
 /usr/include/sys/param.h:63:23: error: sys/types.h: No such file or
 directory   /usr/src/lib/libmagic/../../contrib/file/file.h:50:23: error:

snip more examples of sys/types.h missing


 We don't understand why it lacks some headers files like
 /usr/include/sys/types.h ?

Only you can tell that. Is the file present or not? Maybe an fsck couldn't 
restore it? Or something went wrong during install?
Do you have a /usr/src populated with the OS and kernel sources?

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Question on creating a video server

2008-11-08 Thread Ted Mittelstaedt
Hi All,

  OK, I'm just asking for opinions here on some application
software.

  Like most people we have a nice big 21 TV set that will be
obsolete in Feb.  I have been thinking about replacing this with a
big screen TV set but the prices on them are still way, way
way out of my budget (I just can't see spending $500 for
a TV set, sorry)

  I can pick up really high quality, large, old-style
video monitors from a computer surplus place near here for
next to nothing.

  I'd like to setup a PC and put a HDTV tuner card in it
for over-the-air HDTV broadcasts, and use that as a TV.

  We also have a ton of DVD's and I'd like to rip these
to video files and put them on the PC.  Then when anyone
wants to watch a movie they just watch it off the PC.
I've already started doing this under Windows and it works
great - it's even better since I can remove all those
movie previews that the studio wants to force you to
watch.

  Has anyone done this with FreeBSD and open source
software, and has recommendations on what hardware to get
and what software works with it?

PREFERABLY cheap - since ultimately we likely will get
a big screen TV set once the prices fall.

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


Re: Glob error?

2008-11-08 Thread Steve Watt
On Fri, Nov 07, 2008 at 07:08:10PM -0600, Paul A. Procacci wrote:
 Steve Watt wrote:
 ( Please cc: me on replies, as I can't keep up with traffic on -questions )
 
 I did the following:
 
 % cd /tmp
 % mkdir -p a/dir1/new a/dir1/cur
 % mkdir -p b/dir1/new b/dir1/cur
 % mkdir -p c/dir1/new c/dir1/cur
 % ls -ld */dir1/new
 drwxrwxr-x  2 steve  wheel  512 Nov  7 15:10 a/dir1/new/
 % 
 
 System is:
 FreeBSD wattres.Watt.COM 6.3-STABLE FreeBSD 6.3-STABLE #9: Tue May 13 
 16:06:34 PDT 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/WATTRES  
 i386
 
 Source was probably updated a few hours before the kernel build time.
 
 Shell doesn't seem to matter (have tried both tcsh and bash).
 
 My cygwin installation seems to get it right.
 
 Known issue?  A quick glance for glob in gnats didn't show anything 
 promising.
   
 
 I too can't reproduce this on any of my machines:

Well, it went away with my update to 6.4-PRE.  Must've been a bad time to
grab a -stable snapshot.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Question on creating a video server

2008-11-08 Thread prad
On Sat, 8 Nov 2008 10:40:26 -0800
Ted Mittelstaedt [EMAIL PROTECTED] wrote:

 Has anyone done this with FreeBSD and open source
 software, and has recommendations on what hardware to get
 and what software works with it?

we found it awkward to do it on freebsd so used kubuntu.

we tried lifeview flyvideo 2000 tv card which worked fine with mythtv
and kdetv, but couldn't pick up the cable station we think due to our
location in canada.

for ripping we used perl's dvd::rip.

our harddrive can't hold too many shows so we just use the dvd player
on the computer now to play them.

-- 
In friendship,
prad

  ... with you on your journey
Towards Freedom
http://www.towardsfreedom.com (website)
Information, Inspiration, Imagination - truly a site for soaring I's
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Question on creating a video server

2008-11-08 Thread Sean Cavanaugh


 Has anyone done this with FreeBSD and open source
software, and has recommendations on what hardware to get
and what software works with it?


Look up MythTV. it's the opensource alternative to Windows Media Center and 
has a lot of nice functionality. It is in FreeBSD ports too.


-Sean


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


Re: Question on creating a video server

2008-11-08 Thread Benjamin Lee
On 11/08/08 11:14, Sean Cavanaugh wrote:

  Has anyone done this with FreeBSD and open source
 software, and has recommendations on what hardware to get
o and what software works with it?
 
 Look up MythTV. it's the opensource alternative to Windows Media Center
 and has a lot of nice functionality. It is in FreeBSD ports too.

Although MythTV is available in ports, there are significant
disadvantages to running MythTV on FreeBSD.  First, most TV tuner cards
don't have corresponding FreeBSD kernel modules.  Second, MythTV uses
the Video4Linux API, which of course doesn't exist on FreeBSD --
instead, you hack the kernel to emulate V4L.  Third, there is terribly
limited LIRC (Linux Infrared Remote Control) support, and most people
will want to use their remotes with their MythTV installations.

I love FreeBSD, but running a PVR solution that is so closely tied to
Linux (V4L, LIRC) is a bit of a hack.  Don't get me wrong -- I tried it
and discovered that the community has made significant progress towards
getting it to work.  But at the end of the day, I wanted a
fully-functional PVR, not months of writing drivers and hacking V4L into
the FreeBSD kernel.  That's why I eventually made the decision to run
MythTV on Linux, even though I'd *much* rather administer a machine
running FreeBSD.


-- 
Benjamin Lee



signature.asc
Description: OpenPGP digital signature


scripting text replacement

2008-11-08 Thread bsd
Sorry for this cross posting, but I can not find a good bash mailing  
list…
I am certain FreeBSD gurus will provide me with a fast and reliable  
answer to this little question.



Here is the deal:
-


I have a file containing a list of items like that:

line1item1 line1item2 line1item3
line2item1 line2item2 line2item3
…400 times

I need to insert this into another text file using printf() items  
should be converted into variable looping… like that:


printf Bla bla bla $1 bla bla $2 bla bla $3 bla bla $2


The main thing is that I can not get $1 $2 $3 to correspond to  
line1item1 line1item2 line1item3



Any good idea or example will be welcome.



Gregober --- PGP ID -- 0x1BA3C2FD
bsd @at@ todoo.biz


P Please consider your environmental responsibility before printing  
this e-mail



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


Re: Port Adobe Photoshop and Illustrator for FreeBSD?

2008-11-08 Thread perryh
  Is there a port like Adobe Photoshop and Illustrator for FreeBSD?
  I would like to move to FreeBSD as soon as possible.
 
  You could try the gimp for manipulating bitmap images. For creating
  vector images, try either inkscape or xaralx. They're all in ports.

 i have a friend that do offset printing.

 he have to use windoze and photoshop for only one reason - gimp
 doesn't support editing CMYK images

If all else fails, one could try running the Windows versions of
Photoshop and Illustrator under wine.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Question on creating a video server

2008-11-08 Thread Wojciech Puchar

 Has anyone done this with FreeBSD and open source
software, and has recommendations on what hardware to get
and what software works with it?


mplayer play video files fine.

no idea about HDTV tunes



PREFERABLY cheap - since ultimately we likely will get
a big screen TV set once the prices fall.

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



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


How long does it take to compile KDE4

2008-11-08 Thread Andrew Falanga
Hi

I'm trying to install in KDE 4 and it's been stuck on 
Generating k3iconviewsearchline.moc

for about 4 hours now.  My box is a an amd64 (running amd64 kernel) 1.8ghz 
w/1gb RAM.  I know that this request is quite relative based on hard 
hardware and such, but from those who have installed KDE4 from ports, can you 
give me the times it took you to compile?

There are two reasons I haven't stopped the process yet.  First, it's not 
acting like it's stuck, e.g. top shows that the system is 0.0% idle and the 
process, automoc4, isn't steady on a specific number it keeps going from 
~92% - ~98% WCPU usage.  This would seem to indicate that it's not stuck in a 
loop doing the same thing over and over but is really doing some work.  
Second, I've been around long enough to know that sometimes you just have to 
wait . . . a long time.

Any ideas on time to compile would be good.

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


Re: scripting text replacement

2008-11-08 Thread Giorgos Keramidas
On Sat, 8 Nov 2008 19:43:52 +0100, bsd [EMAIL PROTECTED] wrote:
 Sorry for this cross posting, but I can not find a good bash mailing
 list…
 I am certain FreeBSD gurus will provide me with a fast and reliable
 answer to this little question.

 Here is the deal:
 -

 I have a file containing a list of items like that:

 line1item1 line1item2 line1item3
 line2item1 line2item2 line2item3
 …400 times

 I need to insert this into another text file using printf() items should
 be converted into variable looping… like that:

 printf Bla bla bla $1 bla bla $2 bla bla $3 bla bla $2

 The main thing is that I can not get $1 $2 $3 to correspond to
 line1item1 line1item2 line1item3

A little more detail about the Bla bla part may be important in our
effort to help you effectively.  What you seem to describe above may be
trivial to do with awk(1):

,---
| $ cat /tmp/inputfile
| line1item1 line1item2 line1item3
| line2item1 line2item2 line2item3
| $ awk '{
| printf Bla bla bla %s bla bla %s bla bla %s bla bla %s\n,
| $1, $2, $3, $2;
|   }' /tmp/inputfile
| Bla bla bla line1item1 bla bla line1item2 bla bla line1item3 bla bla 
line1item2
| Bla bla bla line2item1 bla bla line2item2 bla bla line2item3 bla bla 
line2item2
| $
`---

or with a short script in sed(1) or Perl:

,---
| $ perl \
|   -pe 's/(\S+)\s+(\S+)\s+(\S+)/Bla bla bla $1 bla bla $2 bla bla $3 bla bla 
$2/' \
|   /tmp/inputfile
| Bla bla bla line1item1 bla bla line1item2 bla bla line1item3 bla bla 
line1item2
| Bla bla bla line2item1 bla bla line2item2 bla bla line2item3 bla bla 
line2item2
| $
`---

More complex substitutions can be scripted in almost any scripting
language you prefer.

HTH,
Giorgos

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


Re: recommendation word processer for xfce

2008-11-08 Thread Jerry
On Sat, 8 Nov 2008 16:40:13 +
RW [EMAIL PROTECTED] wrote:

[snip]

Some people argue that the cursor should start-off at the top because
you should start by removing superfluous quoted text before bottom
posting.

If only that were true.

-- 
Jerry
[EMAIL PROTECTED]

Did you know that for the price of a 280-Z you can buy two Z-80's?

P. J. Plauger


signature.asc
Description: PGP signature


Re: Question on creating a video server

2008-11-08 Thread John Almberg


On Nov 8, 2008, at 1:40 PM, Ted Mittelstaedt wrote:


Hi All,

  OK, I'm just asking for opinions here on some application
software.

  Like most people we have a nice big 21 TV set that will be
obsolete in Feb.  I have been thinking about replacing this with a
big screen TV set but the prices on them are still way, way
way out of my budget (I just can't see spending $500 for
a TV set, sorry)



Why not just get a digital converter and keep using your nice TV?

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


The FreeBSD Diary: 2008-10-19 - 2008-11-08

2008-11-08 Thread Dan Langille
The FreeBSD Diary contains a large number of practical 
examples and how-to guides.  This message is posted weekly
to freebsd-questions@freebsd.org with the aim of letting people
know what's available on the website.  Before you post a question
here it might be a good idea to first search the mailing list 
archives http://www.freebsd.org/search/search.html#mailinglists 
and/or The FreeBSD Diary http://www.freebsddiary.org/. 


-- 
Dan Langille
BSDCan - http://www.BSDCan.org/ - BSD Conference

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


Re: host -6 failure

2008-11-08 Thread David Horn
On Sat, Nov 8, 2008 at 7:55 PM, mdh [EMAIL PROTECTED] wrote:
 --- On Sat, 11/8/08, David Horn [EMAIL PROTECTED] wrote:
 From: David Horn [EMAIL PROTECTED]
 Subject: Re: host -6 failure
 To: [EMAIL PROTECTED]
 Cc: freebsd-questions@freebsd.org
 Date: Saturday, November 8, 2008, 7:25 PM
 On Fri, Nov 7, 2008 at 2:18 PM, mdh
 [EMAIL PROTECTED] wrote:
  Howdy folks,
  I'm having a little trouble understanding a
 problem that the `host` command in RELENG_7_0 (very recent)
 is having.  This is by and large my first time working with
 IPv6, which I've been meaning to learn for some time.
 First off, I've got my zone file configured to return a
  record for x1.mydomain and named isn't complaining.
  However, when I run `host -6 x1.mydomain`, host returns the
 following output:
 
  ([EMAIL PROTECTED]) [/etc/namedb]: host -6 x1.mydomain
 
 /usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/unix/socket.c:1179:
 internal_send: :::127.0.0.1#53: Invalid argument
 
 /usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/unix/socket.c:1179:
 internal_send: :::IP.IP.IP.8#53: Invalid argument
 
 /usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/unix/socket.c:1179:
 internal_send: :::127.0.0.1#53: Invalid argument
 
 /usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/unix/socket.c:1179:
 internal_send: :::IP.IP.IP.8#53: Invalid argument
  ;; connection timed out; no servers could be reached

 The '-6' on the command line for host(1) forces an
 IPv6 only
 connection to your nameserver, not necessarily a
  query for the
 hostname in question.  In this case, your nameservers
 listed in the
 warnings are IPv4 nameservers that host(1) is attempting to
 connect to
 using an ipv4 mapped ipv6 address (which by default is
 disabled in the
 kernel) In other words, don't use host -6 for this
 scenario.

 Yet as I pointed out, the second nameserver in my resolv.conf is ::1 - so 
 shouldn't it work with that?  It's clearly trying to contact the first and 
 third nameservers listed.  If the behavior I'm experiencing is the proper 
 behavior, then let me pose this question: when would anyone conceivably want 
 to use the -6 option, and why does it exist?  My intent was to force a query 
 to hit the nameserver on ::1 rather than 127.0.0.1.


 Most recent versions of the host(1) command will do both
 A (IPv4
 host record), and  (IPv6 host record)
 lookups for you
 automatically.  For example:

  host www.kame.net
 www.kame.net has address 203.178.141.194
 www.kame.net has IPv6 address
 2001:200:0:8002:203:47ff:fea5:3085

 
  IP.IP.IP.8 is my ISP's DNS server, and is a third
 option just in case the localhost DNS server crashes or goes
 batty while I'm out drinking or somesuch.  Here's my
 resolv.conf, which shows ::1 listed as the second nameserver
 entry - however, it seems host -6 never even tries it.
 
  domain  mydomain
  search  mydomain
  nameserver  127.0.0.1
  nameserver  ::1
  nameserver  IP.IP.IP.8
 
  The DNS server running on localhost is authoritative
 for mydomain.  I can ping it via localhost using both v4 and
 v6, and I can also ping the external v4 and v6 addresses
 just fine remotely.
 
  As I said, I'm new to IPv6, but this behavior
 seems to be counterintuitive.  Am I just doing it wrong?
 

 For diagnosing your own nameservers, you are better off
 using the
 dig(1) utility.

 Example:

  dig ipv6.google.com  @::1

 This causes a dns query for an IPv6 address (aka
  query) for the
 hostname of ipv6.google.com using the
 nameserver on the IPv6
 localhost loopback address (::1), and will give a very nice
 verbose
 output.  man dig for more details.

 That is more useful, but still doesn't stifle my desire to stomp a potential 
 bug in the base system.

Right after sending, I realized that I did not tell you all of the answer

host(1) will successfully query ::1 when named is setup to listen on
::1 in named.conf, and ::1 is listed in /etc/resolv.conf (I just ran a
test on my box to be sure that it works this way with the -6 switch)

Example line from /etc/namedb/named.conf:

listen-on-v6{ ::1; any; };

And of course you need to restart named after the config change(
/etc/rc.d/named restart)

To make sure that it is listening on the IPv6 loopback address:

netstat -anW -f inet6

I do not remember the minimum version of bind (aka named) required for
IPv6 off the top of my head, but I am running 9.4.2-P2 on my IPv6
machine.

-_Dave



 Good Luck.

 BTW, if you have not already setup an IPv6 tunnel to the
 internet, I
 highly recommend SixXS's (www.sixxs.net) free tunnels
 (and the
 sixxs-aiccu port), or you can look at Hurricane Electric
 (www.he.net),
 and some other tunnel brokers as well.

 Actually this system is located at HE.  :)

 Thanks,
 - mdh





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

Re: host -6 failure

2008-11-08 Thread David Horn
On Fri, Nov 7, 2008 at 2:18 PM, mdh [EMAIL PROTECTED] wrote:
 Howdy folks,
 I'm having a little trouble understanding a problem that the `host` command 
 in RELENG_7_0 (very recent) is having.  This is by and large my first time 
 working with IPv6, which I've been meaning to learn for some time.  First 
 off, I've got my zone file configured to return a  record for x1.mydomain 
 and named isn't complaining.  However, when I run `host -6 x1.mydomain`, host 
 returns the following output:

 ([EMAIL PROTECTED]) [/etc/namedb]: host -6 x1.mydomain
 /usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/unix/socket.c:1179: 
 internal_send: :::127.0.0.1#53: Invalid argument
 /usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/unix/socket.c:1179: 
 internal_send: :::IP.IP.IP.8#53: Invalid argument
 /usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/unix/socket.c:1179: 
 internal_send: :::127.0.0.1#53: Invalid argument
 /usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/unix/socket.c:1179: 
 internal_send: :::IP.IP.IP.8#53: Invalid argument
 ;; connection timed out; no servers could be reached

The '-6' on the command line for host(1) forces an IPv6 only
connection to your nameserver, not necessarily a  query for the
hostname in question.  In this case, your nameservers listed in the
warnings are IPv4 nameservers that host(1) is attempting to connect to
using an ipv4 mapped ipv6 address (which by default is disabled in the
kernel) In other words, don't use host -6 for this scenario.

Most recent versions of the host(1) command will do both A (IPv4
host record), and  (IPv6 host record) lookups for you
automatically.  For example:

 host www.kame.net
www.kame.net has address 203.178.141.194
www.kame.net has IPv6 address 2001:200:0:8002:203:47ff:fea5:3085


 IP.IP.IP.8 is my ISP's DNS server, and is a third option just in case the 
 localhost DNS server crashes or goes batty while I'm out drinking or 
 somesuch.  Here's my resolv.conf, which shows ::1 listed as the second 
 nameserver entry - however, it seems host -6 never even tries it.

 domain  mydomain
 search  mydomain
 nameserver  127.0.0.1
 nameserver  ::1
 nameserver  IP.IP.IP.8

 The DNS server running on localhost is authoritative for mydomain.  I can 
 ping it via localhost using both v4 and v6, and I can also ping the external 
 v4 and v6 addresses just fine remotely.

 As I said, I'm new to IPv6, but this behavior seems to be counterintuitive.  
 Am I just doing it wrong?


For diagnosing your own nameservers, you are better off using the
dig(1) utility.

Example:

 dig ipv6.google.com  @::1

This causes a dns query for an IPv6 address (aka  query) for the
hostname of ipv6.google.com using the nameserver on the IPv6
localhost loopback address (::1), and will give a very nice verbose
output.  man dig for more details.

Good Luck.

BTW, if you have not already setup an IPv6 tunnel to the internet, I
highly recommend SixXS's (www.sixxs.net) free tunnels (and the
sixxs-aiccu port), or you can look at Hurricane Electric (www.he.net),
and some other tunnel brokers as well.

-_Dave

 Thanks, Matt




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

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


Re: host -6 failure

2008-11-08 Thread mdh
--- On Sat, 11/8/08, David Horn [EMAIL PROTECTED] wrote:
 From: David Horn [EMAIL PROTECTED]
 Subject: Re: host -6 failure
 To: [EMAIL PROTECTED]
 Cc: freebsd-questions@freebsd.org
 Date: Saturday, November 8, 2008, 7:25 PM
 On Fri, Nov 7, 2008 at 2:18 PM, mdh
 [EMAIL PROTECTED] wrote:
  Howdy folks,
  I'm having a little trouble understanding a
 problem that the `host` command in RELENG_7_0 (very recent)
 is having.  This is by and large my first time working with
 IPv6, which I've been meaning to learn for some time. 
 First off, I've got my zone file configured to return a
  record for x1.mydomain and named isn't complaining.
  However, when I run `host -6 x1.mydomain`, host returns the
 following output:
 
  ([EMAIL PROTECTED]) [/etc/namedb]: host -6 x1.mydomain
 
 /usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/unix/socket.c:1179:
 internal_send: :::127.0.0.1#53: Invalid argument
 
 /usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/unix/socket.c:1179:
 internal_send: :::IP.IP.IP.8#53: Invalid argument
 
 /usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/unix/socket.c:1179:
 internal_send: :::127.0.0.1#53: Invalid argument
 
 /usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/unix/socket.c:1179:
 internal_send: :::IP.IP.IP.8#53: Invalid argument
  ;; connection timed out; no servers could be reached
 
 The '-6' on the command line for host(1) forces an
 IPv6 only
 connection to your nameserver, not necessarily a
  query for the
 hostname in question.  In this case, your nameservers
 listed in the
 warnings are IPv4 nameservers that host(1) is attempting to
 connect to
 using an ipv4 mapped ipv6 address (which by default is
 disabled in the
 kernel) In other words, don't use host -6 for this
 scenario.

Yet as I pointed out, the second nameserver in my resolv.conf is ::1 - so 
shouldn't it work with that?  It's clearly trying to contact the first and 
third nameservers listed.  If the behavior I'm experiencing is the proper 
behavior, then let me pose this question: when would anyone conceivably want to 
use the -6 option, and why does it exist?  My intent was to force a query to 
hit the nameserver on ::1 rather than 127.0.0.1.  

 
 Most recent versions of the host(1) command will do both
 A (IPv4
 host record), and  (IPv6 host record)
 lookups for you
 automatically.  For example:
 
  host www.kame.net
 www.kame.net has address 203.178.141.194
 www.kame.net has IPv6 address
 2001:200:0:8002:203:47ff:fea5:3085
 
 
  IP.IP.IP.8 is my ISP's DNS server, and is a third
 option just in case the localhost DNS server crashes or goes
 batty while I'm out drinking or somesuch.  Here's my
 resolv.conf, which shows ::1 listed as the second nameserver
 entry - however, it seems host -6 never even tries it.
 
  domain  mydomain
  search  mydomain
  nameserver  127.0.0.1
  nameserver  ::1
  nameserver  IP.IP.IP.8
 
  The DNS server running on localhost is authoritative
 for mydomain.  I can ping it via localhost using both v4 and
 v6, and I can also ping the external v4 and v6 addresses
 just fine remotely.
 
  As I said, I'm new to IPv6, but this behavior
 seems to be counterintuitive.  Am I just doing it wrong?
 
 
 For diagnosing your own nameservers, you are better off
 using the
 dig(1) utility.
 
 Example:
 
  dig ipv6.google.com  @::1
 
 This causes a dns query for an IPv6 address (aka
  query) for the
 hostname of ipv6.google.com using the
 nameserver on the IPv6
 localhost loopback address (::1), and will give a very nice
 verbose
 output.  man dig for more details.

That is more useful, but still doesn't stifle my desire to stomp a potential 
bug in the base system.  

 
 Good Luck.
 
 BTW, if you have not already setup an IPv6 tunnel to the
 internet, I
 highly recommend SixXS's (www.sixxs.net) free tunnels
 (and the
 sixxs-aiccu port), or you can look at Hurricane Electric
 (www.he.net),
 and some other tunnel brokers as well.

Actually this system is located at HE.  :)

Thanks,
- mdh



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


UFS2 limits

2008-11-08 Thread no-spam
Hi,
I have a FreeBSD server that has about 10,500 subdirectories within a single
directory.
This number will keep rising and I assume UFS2 has a limit to the number of
sub-directories in a single directory - can anyone tell me what it is?

What about ZFS?

At some point I'll have to re-arrange things so that I have a deeper directory
structure, just wondering when I'll hit the limit so I can plan in advance :-)

Cheers,
Ian




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


Re: Question on creating a video server

2008-11-08 Thread Da Rock

On Sat, 2008-11-08 at 10:40 -0800, Ted Mittelstaedt wrote:
 Hi All,
 
   OK, I'm just asking for opinions here on some application
 software.
 
   Like most people we have a nice big 21 TV set that will be
 obsolete in Feb.  I have been thinking about replacing this with a
 big screen TV set but the prices on them are still way, way
 way out of my budget (I just can't see spending $500 for
 a TV set, sorry)
 
   I can pick up really high quality, large, old-style
 video monitors from a computer surplus place near here for
 next to nothing.
 
   I'd like to setup a PC and put a HDTV tuner card in it
 for over-the-air HDTV broadcasts, and use that as a TV.
 
   We also have a ton of DVD's and I'd like to rip these
 to video files and put them on the PC.  Then when anyone
 wants to watch a movie they just watch it off the PC.
 I've already started doing this under Windows and it works
 great - it's even better since I can remove all those
 movie previews that the studio wants to force you to
 watch.
 
   Has anyone done this with FreeBSD and open source
 software, and has recommendations on what hardware to get
 and what software works with it?
 
 PREFERABLY cheap - since ultimately we likely will get
 a big screen TV set once the prices fall.

Try the multimedia list, but for the most part (from my experience) the
modern tv tuners aren't really supported by FreeBSD (correct me if I'm
wrong) natively. Some are experimental and they're the hauppage tuners,
and then only a limited selection of them with limited features.

Another option maybe to try and get some of the linux drivers working
using linux compat_kmod- if you're really savvy that is...

Its been a real pain for me too, you're only other option is to use a
linux box (with greater driver support) which is what I'm using myself
right now until I can get the time to help in writing drivers for the
newer chipsets required for dvb. Check linuxtv.org for more info on
cards and chipsets and linux compatibility.

Good luck- there are some really cool options available to you once you
go down this path: like piping the transmission around your network
using multicasting so you can watch on just about every computer in the
house, setting up a personal, customised, tivo like system, and much
much more.

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


Re: UFS2 limits

2008-11-08 Thread Jeremy Chadwick
On Sun, Nov 09, 2008 at 01:40:51AM +, [EMAIL PROTECTED] wrote:
 Hi,
 I have a FreeBSD server that has about 10,500 subdirectories within a single
 directory.
 This number will keep rising and I assume UFS2 has a limit to the number of
 sub-directories in a single directory - can anyone tell me what it is?

As far as I know, there is no such limit on the number of files/dirs
inside of a directory.

I don't want to change the topic of discussion, but I *highly* recommend
you ***stop*** whatever it is you're doing that is creating such a
directory structure.  Software which has to iterate through that
directory using opendir() and readdir() will get slower and slower as
time goes on.

If this is something you've written or have control over or can work
with engineers in regards to, I recommend you change your directory
naming scheme to have separate subdirectories with the first 2 or 3
letters of the directory you wish to create.  E.g.:

/some/place/00/00ilikezeros/*
/some/place/01/01binaryheaven/*
/some/place/aa/aardvarks/*
/some/place/ab/abuse/*
/some/place/ac/actuary/*
...
/some/place/xy/xylophones/*

You get the point.

Traversing this structure is much more efficient, and requires very
little code change on your part.  Those who run nameservers that host
many zones, for example, use this structure to ensure the daemon doesn't
take 32498231 years to start up.

 What about ZFS?
 
 At some point I'll have to re-arrange things so that I have a deeper directory
 structure, just wondering when I'll hit the limit so I can plan in advance :-)

What baffles me is why you're looking at this problem from a  how can
the filesystem solve this engineering mistake I made for me standpoint,
rather than how can I solve this engineering mistake I made so that it
doesn't impact the filesystem.  Very strange.  Sometimes looking at
things in a different light makes all the difference.

Hope this helps.

P.S. -- I hope this mail makes it to you, because your From line is
[EMAIL PROTECTED] (I'll be surprised if your account name really is
that!).

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

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


Re: eps to jpg conversion - which program?

2008-11-08 Thread Polytropon
On Sat, 8 Nov 2008 12:12:46 +0200, Jonathan McKeown [EMAIL PROTECTED] wrote:
 You can also save yourself repeated calls to basename by using
 
 for f in *eps; do
 convert ${f%.eps}.jpg
 done
 
 Look under parameter expansion in the manpage for sh(1) (or bash(1) if you 
 have bash installed).

Yes, that's a very good hint, I will use this in the future.
Note that $f as first parameter is missing (source for convert).



 As far as I can tell csh/tcsh doesn't support this 
 useful feature.

Well, I prefer the C Shell (instead of BASH) as primary dialog shell,
but for scripting, I always stay with the good old Bourne Shell,
simply because it's the standard scripting shell for UNIX, and it's
compatible to most Linusi, too (where /bin/sh@ - /bin/bash,
but NB ! -f /bin/bash in FreeBSD).



 Essentially, a Bourne-type shell with parameter expansion expands 
 ${variable#prefix} or ${variable%suffix} to $variable with the prefix or 
 suffix, respectively, removed.

So this would be more efficient:

#!/bin/sh
for f in *eps; do
[ ! -f ${f%.eps}.jpg ]  convert $f ${f%.eps}.jpg
done



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


Re: eps to jpg conversion - which program?

2008-11-08 Thread Jeremy Chadwick
On Sun, Nov 09, 2008 at 07:25:49AM +0100, Polytropon wrote:
 On Sat, 8 Nov 2008 12:12:46 +0200, Jonathan McKeown [EMAIL PROTECTED] wrote:
  Essentially, a Bourne-type shell with parameter expansion expands 
  ${variable#prefix} or ${variable%suffix} to $variable with the prefix or 
  suffix, respectively, removed.
 
 So this would be more efficient:
 
   #!/bin/sh
   for f in *eps; do
   [ ! -f ${f%.eps}.jpg ]  convert $f ${f%.eps}.jpg
   done

Significantly.

Also, what guarantee do you have that all the filenames that match that
wildcard lack spaces in them?  Your [ and convert commands will botch
badly in that case.  See below.

style-rant
What people often forget while writing sh scripts is that spawning
external utilities slows down the script greatly, and destroys system
resources.  You might think My machine has 923484390GB of RAM, and has
6500 processors; why do I care? -- step back for a moment and think
about older/smaller boxes, or even more importantly, embedded machines
(very little memory, very little CPU).

Also think about situations where fork() will fail due to resource
limits or existing system resource exhaustion; what then?  I see this
regularly in perl scripts; people relying on `xxx` for no good reason.
I ask them, Why are you doing this?  Can you not use native-perl-code
instead, and avoid wasting resources and excessive risk?, and they
often have no idea what I'm talking about.  And whenever I see `ssh
[EMAIL PROTECTED] command` in perl scripts, I cry.

That in mind, don't let your scripting mimic that of perl bastards who
*intentionally* write obfuscated code just to show off (often citing
its faster as the reason, choosing to intentionally ignore that perl
is a compiled language).  For complex pieces of sh that are hard to
visually parse: try to keep it simple, and take the time to write
decent/legible comments above the hairy part of the script.

Also remember that double-quoting filenames or variables that are used
as filenames is a VERY good idea.  Filenames with spaces are quite
common these days.  It's best to assume the worst, but not be *too*
over-zealous.

And don't forget about set noglob when appropriate!
/style-rant

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

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