EXIF inspector

2012-08-23 Thread Gary Aitken
For the photo folks --

What do you use for inspecting EXIF data?
I've tried 
  exif
  exiftags
  exifprobe
and none of them show the full compliment of tags present on my oly pen-ep3.
In particular, they omit most of the vendor specific stuff,
and they seem to display different parts of things, but not everything.

I ended up installing a PhotoME windoze .exe under wine.
It works, but I'd like a command line tool.

Thanks,

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


apache webdav svn locking issues

2012-08-23 Thread Da Rock
I've got a webdav setup on apache using svn, and all seems well until I 
use openoffice and it comes up with locking issues.


I can mount the webdav drive and use locking to stop the io errors in 
openoffice, but it still tells me it is locked and can only be opened 
read only. I've checked thoroughly and there is no .~lock file, but in 
the apache logs it says it returned a 423 error when the file is 
queried. Apparently openoffice requests again, and finds no .~lock file 
(404).


I'm assuming svn provides the locking data, correct? Anyone know the 
incantations to clear it?


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



Re: firefox png

2012-08-23 Thread Jamie Paul Griffin
[ Polytropon wrote on Thu 23.Aug'12 at  2:00:15 +0200 ]

 On Wed, 22 Aug 2012 19:43:55 -0400, david coder wrote:
  thx, i hadn't seen the reply to my earlier message.
  
  unfortunately, though i've got the png port installed w/ 
  
  OPTIONS=APNG Animated PNG support On
 
 That should be the default. Anyway, you can always check which
 options had been in use when building and installing a port:
 
   % cat /var/db/ports/png/options
   # This file is auto-generated by 'make config'.
   # No user-servicable parts inside!
   # Options for png-1.4.8
   _OPTIONS_READ=png-1.4.8
   WITH_APNG=true
 
 In this example you can see that it has been properly installed.
 
 
 
  the install of freebsd fails w/ the error message given below.
 
 Sadly the Firefox build error message is not included. 
 
 
 
  is there something else required in the png makefile or elsewhere that i'm
  missing?
 
 I'm sure this entry of /usr/ports/UPDATING applies:
 
 20120531:
   AFFECTS: users of graphics/png
   AUTHOR: din...@freebsd.org
 
   The PNG library has been updated to version 1.5.10.  Please rebuild all
   ports that depend on it.

I built Firefox 14 a couple of days ago and png installed is now version 
1.5.12. So an updated ports tree should incorporate that change now shouldn't 
it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: why does /etc/namedb link to /var?

2012-08-23 Thread Jamie Paul Griffin
[ Gary Aitken wrote on Wed 22.Aug'12 at 23:39:16 -0600 ]

 Can anyone shed light on why /etc/namedb is a symlink to 
 /var/named/etc/namedb?
 
 It seems to me this is general configuration stuff which should be in 
 /etc/namedb on the root partition, not on /var.  I thought /var was used for 
 things like logs, process ids of running processes, etc.
 
 Gary

If you read this 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-dns.html 
thoroughly it explains why. It's a security feature and therefore chroot's in 
/var/namedb/etc/namedb. 

You will probably need to adjust your zone files to provide the full path name 
in the file statement within them. That's what I needed to do when I set up 
named earlier this week. 
___
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: Warning - FreeBSD (*BSD) entanglement in Linux ecosystem

2012-08-23 Thread Thomas Mueller
 So this statement in the WikiP is false?

 systemd is Linux-only by design, as it relies upon features such as
 cgroups and fanotify.[6] Debian is avoiding the adoption of systemd due
 to this issue.[7]

 --
 Randal L. Schwartz - Stonehenge Consulting Services, Inc. 

I read an article online about some Linux constructs make it very difficult to 
port some software to BSD.

This included systemd, also Xfce and GNOME 3.

I figure this is why GNOME 3, out for some time now, has not yet been ported to 
FreeBSD ports or NetBSD pkgsrc.


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


[OT:] tools/methods for automated cross-platform packaging?

2012-08-23 Thread Christopher J. Ruwe
Currently, I am looking into the problem of providing software packages
for different platforms via native packages in a Continuous
Integration Environment. The software in question is pure Java, so
binary compatibility and/or cross-compilation issue resolves to having a
conforming JRE installed on the target-platform.

I know this question is prone for another OSI-10 flame-war on the Java
is the OS statement - please don't. It is a customer requirement I must
conform to. The (non-)intelligence of that requirement might be
questioned, but ...

Having looked into the issue of cross-platform packaging systems, I have
found mostly separate package managers which require to be installed on
the target-platform and manage a separate environment (viz OpenPkg,
IPS). These do not help, as the customers require native packages.

Apparantly, there are tools which take compiled binaries and wrap those
into some package-format - EPM and ProjectBuilder do such a thing. The
first has it's last commit by December 2010 and the second seems to be a
one-man-show, so those (I did not find alternatives) are of questionable
value in a long-term productive environment.

Other projects manage to provide packages for a multitude of
platforms. Are these built (semi-)manually by volunteers or distribution
providers or is there any packaging infrastructure available to automate
the task of taking sources to compile and package them? As I am talking
of Java, a tool which packages binaries would be entirely sufficient.

Thanks for any ideas or hints, cheers,
-- 
Christopher J. Ruwe
TZ: GMT + 2h


signature.asc
Description: PGP signature


Re: /tmp filesystem full

2012-08-23 Thread Andy Wodfer
Can't seem to figure out the problem with MAXPATHLEN.

locate: integer out of +-MAXPATHLEN (1024): 1029


In my /etc/locate.rc I have pruned several directories (even the most
obvious) - still the locate DB exeeds well over 1GB before outputting this
error message.

I have moved the tmp dir for locate to /usr/tmp which works fine (changed
in locate script) and there is no problems with diskspace here.

the find awk command suggested earlier in this thread didn't give me a
better clue about what's happening.

Anyone have any other ideas what I can try to find out why locate fails?

Thanks!
Andy

On Thu, Aug 23, 2012 at 6:24 AM, Michael Sierchio ku...@tenebras.comwrote:

 On Wed, Aug 22, 2012 at 7:17 PM, RW rwmailli...@googlemail.com wrote:

   tmpfs and swap md devices don't actually need swap. I don't seen any
   advantage in your way of creating an md device for /tmp.

 Then you don't understand. ;-)  The advantage of my approach is
 avoiding a kernel panic when writing to the tmpfs when you haven't
 pre-allocated all the filesystem space at creation time.  If that
 happens to matter to you...
 ___
 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: /tmp filesystem full

2012-08-23 Thread Andy Wodfer
Btw, is /etc/locate.rc being read at all?

/Andy

On Thu, Aug 23, 2012 at 11:04 AM, Andy Wodfer wod...@gmail.com wrote:

 Can't seem to figure out the problem with MAXPATHLEN.


 locate: integer out of +-MAXPATHLEN (1024): 1029


 In my /etc/locate.rc I have pruned several directories (even the most
 obvious) - still the locate DB exeeds well over 1GB before outputting this
 error message.

 I have moved the tmp dir for locate to /usr/tmp which works fine (changed
 in locate script) and there is no problems with diskspace here.

 the find awk command suggested earlier in this thread didn't give me a
 better clue about what's happening.

 Anyone have any other ideas what I can try to find out why locate fails?

 Thanks!
 Andy


 On Thu, Aug 23, 2012 at 6:24 AM, Michael Sierchio ku...@tenebras.comwrote:

 On Wed, Aug 22, 2012 at 7:17 PM, RW rwmailli...@googlemail.com wrote:

   tmpfs and swap md devices don't actually need swap. I don't seen any
   advantage in your way of creating an md device for /tmp.

 Then you don't understand. ;-)  The advantage of my approach is
 avoiding a kernel panic when writing to the tmpfs when you haven't
 pre-allocated all the filesystem space at creation time.  If that
 happens to matter to you...
 ___
 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: /tmp filesystem full

2012-08-23 Thread RW
On Wed, 22 Aug 2012 21:24:47 -0700
Michael Sierchio wrote:

 On Wed, Aug 22, 2012 at 7:17 PM, RW rwmailli...@googlemail.com
 wrote:
 
   tmpfs and swap md devices don't actually need swap. I don't seen
  any advantage in your way of creating an md device for /tmp.
 
 Then you don't understand. ;-)  The advantage of my approach is
 avoiding a kernel panic when writing to the tmpfs 

md device

 when you haven't
 pre-allocated all the filesystem space at creation time.  If that
 happens to matter to you...

It's the other way around, malloc md devices can cause kernel
panics.  swap md device use ordinary VM memory. If you set the limit
too high without swap you can slow performance, but it shouldn't
cause a kernel panic.

The default of 2MB isn't going to make a significant difference on any
normal install.
___
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: EXIF inspector

2012-08-23 Thread Bernt Hansson

2012-08-23 08:00, Gary Aitken skrev:

For the photo folks --

What do you use for inspecting EXIF data?
I've tried
   exif
   exiftags
   exifprobe
and none of them show the full compliment of tags present on my oly pen-ep3.
In particular, they omit most of the vendor specific stuff,
and they seem to display different parts of things, but not everything.


Have you tried exif?

exif-0.6.20Command line utility to read and manipulate EXIF data

It's in /usr/ports/graphics/exif
___
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: Issue with kernel building

2012-08-23 Thread Lowell Gilbert
antonin tessier antonintess...@live.fr writes:

 I have a problem when I try to build my own kernel. I had never got such a 
 one; here is my kernel configuration file and the building errors that it 
 makes.

You left out some devices that are required by other devices in your
configuration. for a start, it looks like man 4 ral would tell you
about a few of them for the ral device.

A better way to assemble a kernel configuration would be to start with
GENERIC and only change a few items at a time. That way, if it fails to
build, you have a narrower idea of where to look for the problem.

Or just stay with GENERIC; most consumer PCs have no real reason to need
a customized kernel.

Good luck.
___
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: Issue with kernel building

2012-08-23 Thread Jamie Paul Griffin
[ Lowell Gilbert wrote on Thu 23.Aug'12 at  9:23:14 -0400 ]

 antonin tessier antonintess...@live.fr writes:
 
  I have a problem when I try to build my own kernel. I had never got such a 
  one; here is my kernel configuration file and the building errors that it 
  makes.
 
 Or just stay with GENERIC; most consumer PCs have no real reason to need
 a customized kernel.

I agree. It boots quickly and it isn't really necessary for the majority of 
users. I can be useful to learn the procedure, etc. but didn't use the correct 
command anyway:

make buildkernel KERNCONF=KERNELCONFIG
 ^^^
___
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: EXIF inspector

2012-08-23 Thread Warren Block

On Thu, 23 Aug 2012, Gary Aitken wrote:


For the photo folks --

What do you use for inspecting EXIF data?
I've tried
 exif
 exiftags
 exifprobe
and none of them show the full compliment of tags present on my oly pen-ep3.
In particular, they omit most of the vendor specific stuff,
and they seem to display different parts of things, but not everything.


graphics/p5-Image-ExifTool should be capable of showing everything. 
It's a Perl module but includes a command-line interface called just 
exiftool.

___
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: Issue with kernel building

2012-08-23 Thread Lowell Gilbert
Jamie Paul Griffin ja...@kode5.net writes:

 [ Lowell Gilbert wrote on Thu 23.Aug'12 at  9:23:14 -0400 ]

 antonin tessier antonintess...@live.fr writes:
 
  I have a problem when I try to build my own kernel. I had never
  got such a one; here is my kernel configuration file and the
  building errors that it makes.
  
 Or just stay with GENERIC; most consumer PCs have no real reason to need
 a customized kernel.

 I agree. It boots quickly and it isn't really necessary for the majority of 
 users. I can be useful to learn the procedure, etc. but didn't use the 
 correct command anyway:

   make buildkernel KERNCONF=KERNELCONFIG
^^^

make kernel is equivalent to make buildkernel installkernel.
___
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: EXIF inspector

2012-08-23 Thread Polytropon
On Thu, 23 Aug 2012 00:00:08 -0600, Gary Aitken wrote:
 For the photo folks --
 
 What do you use for inspecting EXIF data?
 I've tried 
   exif
   exiftags
   exifprobe
 and none of them show the full compliment of tags present on my oly pen-ep3.
 In particular, they omit most of the vendor specific stuff,
 and they seem to display different parts of things, but not everything.

I've been using exiv2 (port graphics/exiv2) which fits my needs.
Here's an example of its output:

% exiv2 cam/img_6842.jpg 
File name   : cam/img_6842.jpg
File size   : 2887326 Bytes
MIME type   : image/jpeg
Image size  : 2816 x 2112
Camera make : Canon
Camera model: Canon PowerShot S3 IS
Image timestamp : 2011:08:19 09:14:42
Image number: 120-6842
Exposure time   : 1/50 s
Aperture: F2.7
Exposure bias   : 0 EV
Flash   : No, red-eye reduction
Flash bias  : 0 EV
Focal length: 6.0 mm
Subject distance: 68
ISO speed   : 100
Exposure mode   : Easy shooting (Auto)
Metering mode   : Multi-segment
Macro mode  : Off
Image quality   : Fine
Exif Resolution : 2816 x 2112
White balance   : Auto
Thumbnail   : image/jpeg, 5981 Bytes
Copyright   : 
Exif comment: 

See man exiv2 for details. It's a really versatile program
which can be excellently integrated into scripts.

In case you need more info from a photo file, use the strings
utility provided by the system and parse its output.




-- 
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: /tmp filesystem full

2012-08-23 Thread Polytropon
On Thu, 23 Aug 2012 09:54:08 -0400, kpn...@pobox.com wrote:
 On Thu, Aug 23, 2012 at 11:04:02AM +0200, Andy Wodfer wrote:
  Can't seem to figure out the problem with MAXPATHLEN.
  
  locate: integer out of +-MAXPATHLEN (1024): 1029
  
  
  In my /etc/locate.rc I have pruned several directories (even the most
  obvious) - still the locate DB exeeds well over 1GB before outputting this
  error message.
  
  I have moved the tmp dir for locate to /usr/tmp which works fine (changed
  in locate script) and there is no problems with diskspace here.
  
  the find awk command suggested earlier in this thread didn't give me a
  better clue about what's happening.
  
  Anyone have any other ideas what I can try to find out why locate fails?
 
 I'm starting to wonder if you have a corrupt filesystem. Do you have
 a large number of files or something? My locate database is about three
 megs in size. Granted, I don't have that much data to index.

On my home system, it's 16 GB, but that's still far away from
any gigabyte barrier...



 A loop in the filesystem will eventually result in a path that is
 too long. Use fsck to diagnose a corrupt filesystem if you are using
 UFS/UFS2.

Performing a file system check is a good advice, just to make
sure there's not a file system inconsistency that triggers some
abnormal behaviour. Note that _repairing_ a potential defect
should be done in single user mode (boot -s) on the unmounted
partitions.



 If you don't mind a teeny bit of scripting then you can get close to
 the problem with a find command that runs a short python script:
 
 find / -exec scriptname {} \;
 
 Where scriptname is an executable file with contents something like this:
 
 # /usr/local/bin/python
 
 import sys
 
 for x in sys.argv[1:]:
if len(x)  900:# make higher or lower as needed
   sys.stdout.write(x + \n)
   sys.stdout.flush()
 
 This script takes all command line arguments to it and prints them
 out if the length of the argument exceeds 900 characters. The find
 command I gave above should run this script and give it each
 filename as it comes across it.

In short and which system tools only:

% find / -type d | awk 'length  900'

And with storing a list for further reference:

% find / -type d | awk 'length  900'  /tmp/longpaths.txt

Also note that this test only considers path names. In case
you have long _file_ names (or names containing corrupt characters
maybe), that could also be a problem, as the locate command also
records those, if I remember correctly. You can change the -type d
to -type f to test for file names (_including_ the path).
See man find for details.




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


implications of adding root to a group

2012-08-23 Thread Krims G
Hello, I've been looking at the /etc/group and have noticed that some
groups have root included in them, for example operator. Is it not
implied that root has access to all things and groups? What is the purpose
of adding root to a group? If I add root to some new arbitrary group, what
does it result in differently than if I do not add root to that group?

Answers  suggestions appreciated,

K
___
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: implications of adding root to a group

2012-08-23 Thread Steve O'Hara-Smith
On Thu, 23 Aug 2012 07:51:10 -0700
Krims G krimskr...@gmail.com wrote:

 Hello, I've been looking at the /etc/group and have noticed that some
 groups have root included in them, for example operator. Is it not
 implied that root has access to all things and groups? What is the purpose
 of adding root to a group? If I add root to some new arbitrary group, what
 does it result in differently than if I do not add root to that group?

The root user has the ability to ignore file permissions, but not
the ability to subvert group membership tests in scripts or programs.

-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.org/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


freebsd-update question.

2012-08-23 Thread doug
I wanted to see if I could get an 8.1 system updated to 9.0 (mostly) with 
freebsd-update. I did this with a source update to RELENG_8_3 and then did the 
standard stuff to get to 9.0


perl and xdm both gave errors that libutil.so.9 was missing. scanning google and 
questions suggested this module was removed. Also in some basic way the ports 
make scripts view the system as an 8.X system as make index gives 'Generating 
INDEX-8 - please wait..


Can this be repaired? Building from source is out of the question for this 
system.


_
Douglas Denault
http://www.safeport.com
d...@safeport.com
Voice: 301-217-9220
  Fax: 301-217-9277
___
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: Issue with kernel building

2012-08-23 Thread Jamie Paul Griffin
[ Lowell Gilbert wrote on Thu 23.Aug'12 at 10:28:47 -0400 ]

 Jamie Paul Griffin ja...@kode5.net writes:
 
  [ Lowell Gilbert wrote on Thu 23.Aug'12 at  9:23:14 -0400 ]
 
  antonin tessier antonintess...@live.fr writes:
  
   I have a problem when I try to build my own kernel. I had never
   got such a one; here is my kernel configuration file and the
   building errors that it makes.
   
  Or just stay with GENERIC; most consumer PCs have no real reason to need
  a customized kernel.
 
  I agree. It boots quickly and it isn't really necessary for the majority of 
  users. I can be useful to learn the procedure, etc. but didn't use the 
  correct command anyway:
 
make buildkernel KERNCONF=KERNELCONFIG
 ^^^
 
 make kernel is equivalent to make buildkernel installkernel.

Ah, I didn't know that. I just stick to the Handbook info but it's good to 
learn other options. Cheers.
___
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


/tmp filesystem full

2012-08-23 Thread J B
Andy Wodfer wodfer at gmail.com
Thu Aug 23 09:04:08 UTC 2012

 Can't seem to figure out the problem with MAXPATHLEN.
 locate: integer out of +-MAXPATHLEN (1024): 1029

Your database may be corrupted. I would suggest you delete it and
recreate.
jb
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: firefox png

2012-08-23 Thread david coder

+++ Jamie Paul Griffin [23/08/12 07:54 +0100]:

[ Polytropon wrote on Thu 23.Aug'12 at  2:00:15 +0200 ]


On Wed, 22 Aug 2012 19:43:55 -0400, david coder wrote:
 thx, i hadn't seen the reply to my earlier message.
 
 unfortunately, though i've got the png port installed w/ 
 
 	OPTIONS=APNG Animated PNG support On


That should be the default. Anyway, you can always check which
options had been in use when building and installing a port:

% cat /var/db/ports/png/options
# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for png-1.4.8
_OPTIONS_READ=png-1.4.8
WITH_APNG=true

In this example you can see that it has been properly installed.



 the install of freebsd fails w/ the error message given below.

Sadly the Firefox build error message is not included. 




 is there something else required in the png makefile or elsewhere that i'm
 missing?

I'm sure this entry of /usr/ports/UPDATING applies:

20120531:
  AFFECTS: users of graphics/png
  AUTHOR: din...@freebsd.org

  The PNG library has been updated to version 1.5.10.  Please rebuild all
  ports that depend on it.


I built Firefox 14 a couple of days ago and png installed is now version 
1.5.12. So an updated ports tree should incorporate that change now shouldn't 
it.


true, but from what i have been able to sniff out on my own, ports
configuration data are stored in /usr/local/include, not anywhere in the ports
tree, so that if png has been installed already  you do a make showconfig
in /usr/ports/graphics/png, the data are read from files in /usr/local/include,
 if you run make config in /usr/ports/graphics/png, the files affected by
any change are in /usr/local/include, not anywhere in the ports tree.

this has been a learning experience for me  prolly will continue to be as
others here correct me.

david coder
___
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-update question.

2012-08-23 Thread Polytropon
On Thu, 23 Aug 2012 11:36:51 -0400 (EDT), d...@safeport.com wrote:
 I wanted to see if I could get an 8.1 system updated to 9.0 (mostly) with 
 freebsd-update. I did this with a source update to RELENG_8_3 and then did 
 the 
 standard stuff to get to 9.0
 
 perl and xdm both gave errors that libutil.so.9 was missing. scanning google 
 and 
 questions suggested this module was removed. Also in some basic way the ports 
 make scripts view the system as an 8.X system as make index gives 'Generating 
 INDEX-8 - please wait..
 
 Can this be repaired? Building from source is out of the question for this 
 system.

After a major version update (8.x - 9.x) you should reinstall
_all_ ports. See man portmaster (EXAMPLES section) for suggestions
on how to do this.

If you want to avoid it. you can install the compat8x port on
your system. Unaltered (!) installs from 8.x should continue
running. But as soon as you're introducing new software, trouble
may occur. In that case, a clean install of your applications
should be the better way. (Note that you can do this either by
source or by packages, just as you prefer.)

The described problem with libutil can be avoided when working
with the compat8x port. There are more such ports for older
versions that allow running binaries compiled for those OS
versions (API/ABI remapping).





-- 
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: Issue with kernel building

2012-08-23 Thread Polytropon
On Thu, 23 Aug 2012 17:23:59 +0100, Jamie Paul Griffin wrote:
 [ Lowell Gilbert wrote on Thu 23.Aug'12 at 10:28:47 -0400 ]
 
  Jamie Paul Griffin ja...@kode5.net writes:
  
   [ Lowell Gilbert wrote on Thu 23.Aug'12 at  9:23:14 -0400 ]
  
   antonin tessier antonintess...@live.fr writes:
   
I have a problem when I try to build my own kernel. I had never
got such a one; here is my kernel configuration file and the
building errors that it makes.

   Or just stay with GENERIC; most consumer PCs have no real reason to need
   a customized kernel.
  
   I agree. It boots quickly and it isn't really necessary for the majority 
   of users. I can be useful to learn the procedure, etc. but didn't use the 
   correct command anyway:
  
 make buildkernel KERNCONF=KERNELCONFIG
  ^^^
  
  make kernel is equivalent to make buildkernel installkernel.
 
 Ah, I didn't know that. I just stick to the Handbook info but it's good
 to learn other options. Cheers.

Have a look at the comment header of /usr/src/Makefile -- it contaons
lots of compressed information about how to deal with source installs.
Also worth reading: man make.conf and man src.conf.



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


port configuration data [was re: firefox png]

2012-08-23 Thread david coder

+++ david coder [23/08/12 12:26 -0400]:

+++ Jamie Paul Griffin [23/08/12 07:54 +0100]:

[ Polytropon wrote on Thu 23.Aug'12 at  2:00:15 +0200 ]


On Wed, 22 Aug 2012 19:43:55 -0400, david coder wrote:
 thx, i hadn't seen the reply to my earlier message.
  unfortunately, though i've got the png port installed w/   
	OPTIONS=APNG Animated PNG support On


That should be the default. Anyway, you can always check which
options had been in use when building and installing a port:

% cat /var/db/ports/png/options
# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for png-1.4.8
_OPTIONS_READ=png-1.4.8
WITH_APNG=true

In this example you can see that it has been properly installed.



 the install of freebsd fails w/ the error message given below.

Sadly the Firefox build error message is not included. 




 is there something else required in the png makefile or elsewhere that i'm
 missing?

I'm sure this entry of /usr/ports/UPDATING applies:

20120531:
  AFFECTS: users of graphics/png
  AUTHOR: din...@freebsd.org

  The PNG library has been updated to version 1.5.10.  Please rebuild all
  ports that depend on it.


I built Firefox 14 a couple of days ago and png installed is now version 
1.5.12. So an updated ports tree should incorporate that change now shouldn't 
it.


true, but from what i have been able to sniff out on my own, ports
configuration data are stored in /usr/local/include, not anywhere in the ports
tree, so that if png has been installed already  you do a make showconfig
in /usr/ports/graphics/png, the data are read from files in /usr/local/include,
 if you run make config in /usr/ports/graphics/png, the files affected by
any change are in /usr/local/include, not anywhere in the ports tree.

this has been a learning experience for me  prolly will continue to be as
others here correct me.

david coder
___


it's happened already:  in another post here, polytropon gives a more central
role to /var/db/ports/png/options.  if i understand him correctly, make
showconfig executed in /usr/ports/graphics/png reads from that file.
changes made through make config change both that file  files in
/usr/local/include  subdirectories thereof.

please correct me if i'm wrong.

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


Re: firefox png

2012-08-23 Thread Polytropon
On Thu, 23 Aug 2012 12:26:18 -0400, david coder wrote:
 +++ Jamie Paul Griffin [23/08/12 07:54 +0100]:
 [ Polytropon wrote on Thu 23.Aug'12 at  2:00:15 +0200 ]
 
  On Wed, 22 Aug 2012 19:43:55 -0400, david coder wrote:
   thx, i hadn't seen the reply to my earlier message.
   
   unfortunately, though i've got the png port installed w/ 
   
OPTIONS=APNG Animated PNG support On
  
  That should be the default. Anyway, you can always check which
  options had been in use when building and installing a port:
  
 % cat /var/db/ports/png/options
 # This file is auto-generated by 'make config'.
 # No user-servicable parts inside!
 # Options for png-1.4.8
 _OPTIONS_READ=png-1.4.8
 WITH_APNG=true
  
  In this example you can see that it has been properly installed.
  
  
  
   the install of freebsd fails w/ the error message given below.
  
  Sadly the Firefox build error message is not included. 
  
  
  
   is there something else required in the png makefile or elsewhere that 
   i'm
   missing?
  
  I'm sure this entry of /usr/ports/UPDATING applies:
  
  20120531:
AFFECTS: users of graphics/png
AUTHOR: din...@freebsd.org
  
The PNG library has been updated to version 1.5.10.  Please rebuild all
ports that depend on it.
 
 I built Firefox 14 a couple of days ago and png installed is now version 
 1.5.12. So an updated ports tree should incorporate that change now 
 shouldn't it.
 
 true, but from what i have been able to sniff out on my own, ports
 configuration data are stored in /usr/local/include, not anywhere in the ports
 tree, so that if png has been installed already  you do a make showconfig
 in /usr/ports/graphics/png, the data are read from files in 
 /usr/local/include,
  if you run make config in /usr/ports/graphics/png, the files affected by
 any change are in /usr/local/include, not anywhere in the ports tree.

That's not fully correct. Ports _configuration_ (what you select
with make configure) is not stored inside the ports tree -- so
far correct. It's _not_ stored in /usr/local/include. Anything
that will go to those directory subtree will be installed there
only by a make install step, not by make configure. The
options set for a port by make configure (even if no make or
make install follows) is /var/db/ports/name/options, where
name is the name of the port in question. This data will be
queried by make showconfig. See the example shown above.

make configure - data into /var/db/ports/name/options

make - data into /usr/ports/category/name/work/...

make install - data into /usr/local and its subtrees

The directory /usr/local/include is intended to hold header files
for interfacing with various libraries. It doesn't have anything
to do with ports _configuration_; it's designated content _may_
be affected by how a port is configured (by its own options or
by implicit dependencies and _their_ content).



 this has been a learning experience for me  prolly will continue to be as
 others here correct me.

See man 7 ports for an overview of how ports are utilized on
FreeBSD. There's also a chapter in The FreeBSD Handbook dealing
with ports. As soon as you have understood the simple mechanisms
that build the basic parts the ports infrastructure works on,
you will be quickly able to resolve all issues easily.


-- 
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: EXIF inspector

2012-08-23 Thread Gary Aitken
several responses combined to save bandwidth...

On 08/23/12 08:38, Polytropon wrote:
 On Thu, 23 Aug 2012 00:00:08 -0600, Gary Aitken wrote:
 For the photo folks --

 What do you use for inspecting EXIF data?
 I've tried
exif
exiftags
exifprobe
 and none of them show the full compliment of tags present on my oly pen-ep3.
 In particular, they omit most of the vendor specific stuff,
 and they seem to display different parts of things, but not everything.
 
 I've been using exiv2 (port graphics/exiv2) which fits my needs.
 Here's an example of its output:
 
   % exiv2 cam/img_6842.jpg
   File name   : cam/img_6842.jpg
   File size   : 2887326 Bytes
   MIME type   : image/jpeg
   Image size  : 2816 x 2112
   Camera make : Canon
   Camera model: Canon PowerShot S3 IS
   Image timestamp : 2011:08:19 09:14:42
   Image number: 120-6842
   Exposure time   : 1/50 s
   Aperture: F2.7
   Exposure bias   : 0 EV
   Flash   : No, red-eye reduction
   Flash bias  : 0 EV
   Focal length: 6.0 mm
   Subject distance: 68
   ISO speed   : 100
   Exposure mode   : Easy shooting (Auto)
   Metering mode   : Multi-segment
   Macro mode  : Off
   Image quality   : Fine
   Exif Resolution : 2816 x 2112
   White balance   : Auto
   Thumbnail   : image/jpeg, 5981 Bytes
   Copyright   :
   Exif comment:
 
 See man exiv2 for details. It's a really versatile program
 which can be excellently integrated into scripts.
 
 In case you need more info from a photo file, use the strings
 utility provided by the system and parse its output.

Thanks
This is rather weird.

I had tried exiv2 and concluded it did not report everything because on a
windows system I had previously used PhotoME to ascertain that the image
stabilization parameter for my camera was in a field whose tag name was
ImageQuality3, and exiv2 does not report anything with uality in it.
However, I now see that it does report a string called 
Exif.OlympusCs.ImageStabilization of the same type with the corresponding 
value.

Strings reports neither tag.
That makes sense, since exif tags are numerically encoded and not text, 
so I don't think strings is particularly useful.

Upon further investigation, it appears that the choice of string to print
for a tag is probably a translation provided by the program, not the image file.
A strings on /usr/local/lib/libexiv2.so.10 shows:
  Image stabilization
  ImageStabilization
  Image Stabilization for the Sony DSLR-A100
  Image stabilization data
  Image Stabilization Data
  ImageStabilizationData
  Image Stabilization A100
  ImageStabilizationA100
  Digital Image Stabilization
and also specific tags for different camera manufacturers, e.g.
  Exif.OlympusCs.
etc.

bah --
  exif doesn't report all the tags

warren --
  thanks, I thought I tried p5-Image-ExifTool but in looking back at my notes
I have a thing that says install ExifTool and its not there so obviously I 
didn't to that.  Will check it if exiv2 doesn't work out.

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: port configuration data [was re: firefox png]

2012-08-23 Thread Polytropon
On Thu, 23 Aug 2012 12:41:41 -0400, david coder wrote:
 it's happened already:  in another post here, polytropon gives a more central
 role to /var/db/ports/png/options.  if i understand him correctly, make
 showconfig executed in /usr/ports/graphics/png reads from that file.
 changes made through make config change both that file  files in
 /usr/local/include  subdirectories thereof.

Nothing in /usr/local is going to be changed until make install
(or make deinstall respectively) is executed. In /usr/local/include
header files are _installed_ for accessing library functions, mostly
a means for programmers to interface with software.

But it's correct that you mention /usr/local/include/libpng/pngconf.h
here. It's not to be changed by make configure, but it will be
created by make install, reflecting the properties libpng has
been installed with; it's a machine configurable file for libpng
by its own declaration. It belongs to the png port, _not_ to the
port configuration subsystem (which is _independent_ from the
ports theirselves.




-- 
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: port configuration data [was re: firefox png]

2012-08-23 Thread david coder

+++ Polytropon [23/08/12 19:17 +0200]:

On Thu, 23 Aug 2012 12:41:41 -0400, david coder wrote:

it's happened already:  in another post here, polytropon gives a more central
role to /var/db/ports/png/options.  if i understand him correctly, make
showconfig executed in /usr/ports/graphics/png reads from that file.
changes made through make config change both that file  files in
/usr/local/include  subdirectories thereof.


Nothing in /usr/local is going to be changed until make install
(or make deinstall respectively) is executed. In /usr/local/include
header files are _installed_ for accessing library functions, mostly
a means for programmers to interface with software.

But it's correct that you mention /usr/local/include/libpng/pngconf.h
here. It's not to be changed by make configure, but it will be
created by make install, reflecting the properties libpng has
been installed with; it's a machine configurable file for libpng
by its own declaration. It belongs to the png port, _not_ to the
port configuration subsystem (which is _independent_ from the
ports theirselves.




--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


thx for the correction  further education, polytropon.  much obliged.

david coder
___
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-update question.

2012-08-23 Thread doug

On Thu, 23 Aug 2012, Polytropon wrote:


On Thu, 23 Aug 2012 11:36:51 -0400 (EDT), d...@safeport.com wrote:

I wanted to see if I could get an 8.1 system updated to 9.0 (mostly) with
freebsd-update. I did this with a source update to RELENG_8_3 and then did the
standard stuff to get to 9.0

perl and xdm both gave errors that libutil.so.9 was missing. scanning google and
questions suggested this module was removed. Also in some basic way the ports
make scripts view the system as an 8.X system as make index gives 'Generating
INDEX-8 - please wait..

Can this be repaired? Building from source is out of the question for this
system.


After a major version update (8.x - 9.x) you should reinstall
_all_ ports. See man portmaster (EXAMPLES section) for suggestions
on how to do this.

If you want to avoid it. you can install the compat8x port on
your system. Unaltered (!) installs from 8.x should continue
running. But as soon as you're introducing new software, trouble
may occur. In that case, a clean install of your applications
should be the better way. (Note that you can do this either by
source or by packages, just as you prefer.)

The described problem with libutil can be avoided when working
with the compat8x port. There are more such ports for older
versions that allow running binaries compiled for those OS
versions (API/ABI remapping).


After seeing if xorg and twm would just work, I did remove all packages with 
pkg_delete. That did not clear out all of /usr/local. When pkg_add of perl 
failed, I just built that. pkg_add of xorg worked. pkg_add of xdm got an error 
something along the line of unliking lib/X11/auth... so I deleted that dir and 
did pkg_add again. This installed but xdm fails on execution with libutil.so.9 
missing.


monhegan:~ uname -a
FreeBSD monhegan.boltsys.com 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0:
  Tue Jun 12 01:47:53 UTC 2012
  r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386

But make index thinks (I think) this is an 8.x system. pkg_add did add from 
...lastest..9.0 for xorg and xdm. AFAIK there are no 8.x components.

___
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: Twitter.com is loading slowly after updating to Firefox 13.0.1

2012-08-23 Thread lokada...@gmx.de

On 08/21/12 22:48, Toomas Aas wrote:

Tue, 17 Jul 2012 kirjutas Lars Eighner luvbeas...@larseighner.com:


On Tue, 17 Jul 2012, Toomas Aas wrote:


Hello!

I'm having this problem on two different computers, one running 
8.3-STABLE and the other running 9.0-STABLE. After updating Firefox 
from 12.0 to 13.0.1, whenever I access twitter.com, I can log in but 
after that a message appears saying that Twitter.com is loading 
slowly, and the site is practically unusable - clicking on any of 
the links has no effect.


If you do not know that there is something in firefox (now 13ish) 
which you

must have, deinstall it and install firefox-esr (now 10ish).


I was away from my computer for the past month, but now that I 
returned and replaced Firefox 13.0.1 with 10.0.6 ESR, twitter.com is 
again behaving normally for me. I'd like to thank everyone who 
recommended ESR in this thread



I have the same problem.
My system is an old P4-3GHz with Hypterthreading (Northwood) and with 
ULE Scheduler isnt funny.
I must wait until a site is loaded. Bevor i can't make another tab or 
open bookmarks.
I make a kernel with SCHED_4BSD and it work better. Now i can open 
another tab or bookmark while a site is loading (but fast isnt it ;( ).


I will build a new kernel, look and hope it will be better.
System is FreeBSD 9.0 with custom kernel.
___
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-update question.

2012-08-23 Thread Polytropon
On Thu, 23 Aug 2012 13:49:18 -0400 (EDT), d...@safeport.com wrote:
 After seeing if xorg and twm would just work, I did remove all packages with 
 pkg_delete. That did not clear out all of /usr/local.

You can do a manual cleanup of /usr/local, entirely removing it
and then reconstructing its structure from the /etc/mtree file.

# cd /usr/local
# rm -rf *
# mtree -f /etc/mtree/BSD.local.dist
# mtree -f /etc/mtree/BSD.x11.dist

(Not tested, see the manpage for reference.)

That should give you a clean environment for a full re-installation.
Also note that /var/db/pkg could be manually deleted in this case.



 When pkg_add of perl 
 failed, I just built that. pkg_add of xorg worked. pkg_add of xdm got an 
 error 
 something along the line of unliking lib/X11/auth... so I deleted that dir 
 and 
 did pkg_add again. This installed but xdm fails on execution with 
 libutil.so.9 
 missing.

Seems that there are complications with leftover stuff in /usr/local.



 monhegan:~ uname -a
 FreeBSD monhegan.boltsys.com 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0:
Tue Jun 12 01:47:53 UTC 2012
r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
 
 But make index thinks (I think) this is an 8.x system. pkg_add did add from 
 ...lastest..9.0 for xorg and xdm. AFAIK there are no 8.x components.

You could install the ports tree from a 9.0 installation media
or simply use CVS to obtain (or at least update) it.


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


py-sqlalchemy install fails

2012-08-23 Thread Len Conrad
fbsd 9.0

py 2.7.3

cd /usr/ports/databases/py-sqlalchemy

make

ends with:

creating build/bdist.freebsd-9.0-RELEASE-i386/egg/EGG-INFO
copying lib/SQLAlchemy.egg-info/PKG-INFO - 
build/bdist.freebsd-9.0-RELEASE-i386/egg/EGG-INFO
copying lib/SQLAlchemy.egg-info/SOURCES.txt - 
build/bdist.freebsd-9.0-RELEASE-i386/egg/EGG-INFO
copying lib/SQLAlchemy.egg-info/dependency_links.txt - 
build/bdist.freebsd-9.0-RELEASE-i386/egg/EGG-INFO
copying lib/SQLAlchemy.egg-info/not-zip-safe - 
build/bdist.freebsd-9.0-RELEASE-i386/egg/EGG-INFO
copying lib/SQLAlchemy.egg-info/top_level.txt - 
build/bdist.freebsd-9.0-RELEASE-i386/egg/EGG-INFO
creating dist
creating 'dist/SQLAlchemy-0.7.8-py2.7.egg' and adding 
'build/bdist.freebsd-9.0-RELEASE-i386/egg' to it
removing 'build/bdist.freebsd-9.0-RELEASE-i386/egg' (and everything under it)
***
WARNING: The C extension could not be compiled, speedups are not enabled.
Plain-Python build succeeded.
***


make install

...

building '_mysql' extension
cc -DNDEBUG -O2 -pipe -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -fPIC 
-Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/local/include/mysql 
-I/usr/local/include/python2.7 -c _mysql.c -o 
temp.freebsd-9.0-RELEASE-i386-2.7/_mysql.o -pipe -fno-strict-aliasing -g 
-DMY_PTHREAD_FASTMUTEX=1
In file included from pymemcompat.h:10,
 from _mysql.c:29:
/usr/local/include/python2.7/Python.h:166:17: error: pth.h: No such file or 
directory
In file included from _mysql.c:36:
/usr/local/include/mysql/my_config.h:422:1: warning: HAVE_WCSCOLL redefined
In file included from /usr/local/include/python2.7/Python.h:8,
 from pymemcompat.h:10,
 from _mysql.c:29:
/usr/local/include/python2.7/pyconfig.h:890:1: warning: this is the location of 
the previous definition
error: command 'cc' failed with exit status 1
*** Error code 1

Stop in /usr/ports/databases/py-MySQLdb.
*** Error code 1

Stop in /usr/ports/databases/py-MySQLdb.
*** Error code 1

Stop in /usr/ports/databases/py-sqlalchemy.
*** Error code 1

Stop in /usr/ports/databases/py-sqlalchemy.

thanks
Len

___
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: implications of adding root to a group

2012-08-23 Thread Damien Fleuriot

On 23 Aug 2012, at 17:26, Steve O'Hara-Smith st...@sohara.org wrote:

 On Thu, 23 Aug 2012 07:51:10 -0700
 Krims G krimskr...@gmail.com wrote:
 
 Hello, I've been looking at the /etc/group and have noticed that some
 groups have root included in them, for example operator. Is it not
 implied that root has access to all things and groups? What is the purpose
 of adding root to a group? If I add root to some new arbitrary group, what
 does it result in differently than if I do not add root to that group?
 
The root user has the ability to ignore file permissions, but not
 the ability to subvert group membership tests in scripts or programs.
 
 -- 
 Steve O'Hara-Smith  |   


While I can compute what you wrote, I fail to see the implications.

Would you kindly explain in layman's terms ?

___
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: implications of adding root to a group

2012-08-23 Thread Polytropon
On Thu, 23 Aug 2012 23:07:04 +0200, Damien Fleuriot wrote:
 
 On 23 Aug 2012, at 17:26, Steve O'Hara-Smith st...@sohara.org wrote:
 
  On Thu, 23 Aug 2012 07:51:10 -0700
  Krims G krimskr...@gmail.com wrote:
  
  Hello, I've been looking at the /etc/group and have noticed that some
  groups have root included in them, for example operator. Is it not
  implied that root has access to all things and groups? What is the purpose
  of adding root to a group? If I add root to some new arbitrary group, what
  does it result in differently than if I do not add root to that group?
  
 The root user has the ability to ignore file permissions, but not
  the ability to subvert group membership tests in scripts or programs.
  
  -- 
  Steve O'Hara-Smith  |   
 
 
 While I can compute what you wrote, I fail to see the implications.
 
 Would you kindly explain in layman's terms ?

Let's say a script tests (upon execution) if the caller does
belong to a specific group. While root may execute all scripts
and remove all barriers, root:wheel will still have wheel
as the group. While root is superior to non-root is true,
wheel is superior to non-wheel does not apply.

In this fictional example, let's assume the script is executable
for a specific non-root user. Obviously, root can override this
and execute it anyway, even if the script is rwx/---/--- for
bob:foo. The script initially tests if the caller is member of
the group foo to continue. As root is member of wheel, and
_not_ of foo, the test will fail. The script doesn't continue.

Adding root to specific groups allows programs testing for group
membership to recognize the required group. It's comparable to
adding non-root users to operation groups like dialer or
operator to allow them execute scripts and programs that
are executable for the respective group, even though they are
owned by root, like rwx/r-x/---.




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


small script help

2012-08-23 Thread Jack Stone

Running freebsd-7.0

I use a small script in a jail to check if Apache is running and if 
not, restart it.


#!/bin/sh
#if ps -ax | grep -v grep | grep -i httpd
#then
#echo Apache is alive..
#else
#echo Apache is dead, but will be launched.
#/usr/local/etc/rc.d/apache22 start

However, if I want to check the host's Apache, ps -ax sees all of the 
httpd lines including the jail and the host:


(Jail) 83787  ??  SsJ0:07.71 /usr/local/sbin/httpd -DSSL 
-DNOHTTPACCEPT

(host) 98089  ??  Ss32:49.44 /usr/local/sbin/httpd -DNOHTTPACCEPT

How can I modify my script to see only the host based on the bottom 
line above?


Help appreciated!

Jack




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

2012-08-23 Thread Frank Reppin

On 24.08.2012 00:57, Jack Stone wrote:
[...]

How can I modify my script to see only the host based on the bottom line
above?

pgrep(1) has an option (-j jid) to either include jails by
given id or to exclude them (-j none).

HTH,
Frank Reppin

--
43rd Law of Computing:
Anything that can go wr
fortune: Segmentation violation -- Core dumped
___
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: small script help

2012-08-23 Thread Frank Reppin

On 24.08.2012 02:14, Jack Stone wrote:

Thanks, I tried that but pgrep only displayed the PIDs. I guess I wasn't
using proper switches.

Yes - and this should be enough.
If pgrep returns PIDs - then this is the same as 'true' in your
'if' condition - if it returns nothing, the 'else' part is executed:

#!/bin/sh
# * example for Jack with amavisd instead of apache
# * the ^ means 'match from the beginning'
# * so your content for PROCESS_PATTERN would be
#   PROCESS_PATTERN=^/usr/local/sbin/httpd
#   because ps -ax would show you this in the
#   COMMAND row

PROCESS_PATTERN=^/usr/local/sbin/amavisd
PGREP=/bin/pgrep

if ${PGREP} -q -j none -f ^${PROCESS_PATTERN}; then
  echo -e OK
else
  echo -e FAIL
fi

hth,
Frank Reppin



--
43rd Law of Computing:
Anything that can go wr
fortune: Segmentation violation -- Core dumped
___
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: small script help

2012-08-23 Thread Frank Reppin

There's an errorneous extra ^ in line 6 - please remove this
character.

Fixed version should look like:

#!/bin/sh

PROCESS_PATTERN=^/usr/local/sbin/saslauthd
PGREP=/bin/pgrep

if ${PGREP} -q -j none -f ${PROCESS_PATTERN}; then
  echo -e OK
else
  echo -e FAIL
fi

frank\

--
43rd Law of Computing:
Anything that can go wr
fortune: Segmentation violation -- Core dumped
___
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


harware compatibility queustion

2012-08-23 Thread Robert Bonomi

I need to add more than two' internal SATA _ports_ to a box that will be 
running FreeBSD 9.  

When I look at inexpensive SATA controllers, they all seem to be using
chipsets thar are _not_ explicitly mentioned in the 'supported hardware'
list.

Can anyone say, authoritatively, that, say, a 'SiL3114'-based cnntroller
card will work in FreeBSD, as far as 'bare drive' functionality goes?

Alternatively, can anybody recommend an inexpensive 4-port (or more)
SATA controller card that is known to work with FreeBSD?



___
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


sending fax from commandline/or via appliance

2012-08-23 Thread Frank Reppin

Hi all,

is someone aware of a solution which can do
the following:

1) given a freebsd host which hosts an application xxABxx
2) this application xxABxx sends an ordinary email with a .ps
   attachment to another host by mailing it to
   recipient_fax_number@tld
3) this attachment is then fax'ed to the recipient phone number
4) HylaFAX is not the solution
5) better some cli solution which could feed this .ps via a CLI
   directly and  non-interactive into a multifunction printer
   (which can do fax ofcourse)

thanks!
frank\



--
43rd Law of Computing:
Anything that can go wr
fortune: Segmentation violation -- Core dumped
___
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: harware compatibility queustion

2012-08-23 Thread Dan Nelson
In the last episode (Aug 23), Robert Bonomi said:
 I need to add more than two' internal SATA _ports_ to a box that will be
 running FreeBSD 9.
 
 When I look at inexpensive SATA controllers, they all seem to be using
 chipsets thar are _not_ explicitly mentioned in the 'supported hardware'
 list.
 
 Can anyone say, authoritatively, that, say, a 'SiL3114'-based cnntroller
 card will work in FreeBSD, as far as 'bare drive' functionality goes?

The ata manpage says it supports the SiI3114 card (even the
siliconimage.com webpage uses both SiI and Sil spellings all over), so
you should be safe.
 
 Alternatively, can anybody recommend an inexpensive 4-port (or more) SATA
 controller card that is known to work with FreeBSD?

-- 
Dan Nelson
dnel...@allantgroup.com
___
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: implications of adding root to a group

2012-08-23 Thread Steve O'Hara-Smith
On Thu, 23 Aug 2012 23:07:04 +0200
Damien Fleuriot m...@my.gd wrote:

 
 On 23 Aug 2012, at 17:26, Steve O'Hara-Smith st...@sohara.org wrote:
 
  On Thu, 23 Aug 2012 07:51:10 -0700
  Krims G krimskr...@gmail.com wrote:
  
  Hello, I've been looking at the /etc/group and have noticed that some
  groups have root included in them, for example operator. Is it not
  implied that root has access to all things and groups? What is the
  purpose of adding root to a group? If I add root to some new arbitrary
  group, what does it result in differently than if I do not add root to
  that group?
  
 The root user has the ability to ignore file permissions, but not
  the ability to subvert group membership tests in scripts or programs.
  
  -- 
  Steve O'Hara-Smith  |   
 
 
 While I can compute what you wrote, I fail to see the implications.
 
 Would you kindly explain in layman's terms ?

Any script or program that checks group membership before
proceeding will execute for root regardless of permissions but won't do
anything (except emit a message) unless root is also a member of the
required group.
 
-- 
Steve O'Hara-Smith  |   Directable Mirror Arrays
C:WIN  | A better way to focus the sun
The computer obeys and wins.|licences available see
You lose and Bill collects. |http://www.sohara.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