Re: [gentoo-user] mediamanager tries to open wrong path (SOLVED)

2007-02-01 Thread Gerhard Hoogterp
On Thursday 01 February 2007 00:44, Neil Bothwick wrote:

 There is a way round this. It is possible, somewhere in the config of
 pmount/hal, to have devices mounted according to the /dev name only. I
 can't remember where this is, but Google and/or grep should find it.

After some searching around I found the HAL 0.4.0 specs 
(http://people.redhat.com/davidz/hal-spec/hal-spec.html) offering all the 
info needed to write my own policy:

?xml version=1.0 encoding=ISO-8859-1? !-- -*- SGML -*- --

deviceinfo version=0.2
  device
match key=block.is_volume bool=true
  match key=volume.fsusage string=filesystem
match key=info.parent
 
string=/org/freedesktop/Hal/devices/storage_serial_KM_DYNAX_7D
  merge key=volume.policy.desired_mount_point
 type=stringcamera/merge
/match
  /match
/match
  /device
/deviceinfo

The line that makes it work for me is the match key=info.parent ..  which 
is true when my camera (a dynax 7D) tries to create an mount point. The 
result is a /media/camera which I can use in digikam to import photo's..

  Besides, the card
  isn't the camera.. so even on a logical level it's wacky..

 If your camera mounts as USB-storage, the camera is simply acting as an
 expensive card reader.

True, but the card is also not the cardreader..;-) Anyhow, for me this works 
as it looks at the camera and not at the card.. 

Thanks for thinking along!
 Gerhard


-- 
Ithaka photography, http://ithaka.mine.nu/
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] mediamanager tries to open wrong path

2007-01-31 Thread Gerhard Hoogterp
Hi,

I try to install udev/hal/pmount  in such a way that my usb devices are 
automounted. But not with a changable name in the media folder, but with a 
fixed name like /mnt/camera (or /media/camera.. whatever. As long as it's the 
same every time..)

At this moment most things work, but when I add the mountpoints to fstab 
things go wrong. kde pops up a window and an error permission denied. The 
later is understandable as it seems to try to open a mount in the media dir 
which doesn't exists instead of the mount point as given in the fstab. 
Regretfully the /mnt/camera isn't mounted either. 

So adding a line to the fstab file just screws up the system as  it seems. 
Removing it leaves me with changable names in the media folder (/media/disk, 
media/disk-1, depending on what's happening..

So I see two sollutions: 

- Or the mediamanager whould open the path as givien in the fstab (but where 
do I tell it to do so?)

- Or I should be able to give the pmount a label (the second parameter) so it 
creates a /media/label. But again.. where can I do this. 

The main reason that I want a fixed name is for programs like digikam which 
expects such a path for importing images.  Besides, on of the howtos 
suggested that using the fstab should work. So why doesn't it..

Anybody a suggestion?

-- 
Ithaka photography, http://ithaka.mine.nu/
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] mediamanager tries to open wrong path

2007-01-31 Thread Gerhard Hoogterp
On Wednesday 31 January 2007 22:09, Neil Bothwick wrote:
 On Wed, 31 Jan 2007 21:31:03 +0100, Gerhard Hoogterp wrote:

  So adding a line to the fstab file just screws up the system as  it
  seems. Removing it leaves me with changable names in the media folder
  (/media/disk, media/disk-1, depending on what's happening..

 Adding a line in fstab overrides the naming that pmount would otherwise
 use, but you have to add users to the options to allow it to be mounted
 as a normal user. Generally, fstab and HAL-driven automounting don't play
 well together.

Apparently.. the users flag was already added (noauto, user) so that's not 
the problem.. 

/dev/minolta  /mnt/camera  vfat  noauto,user 0 0

to be precise.

 You need to set up udev rules to have persistent naming for your devices,
 then KDE will use this to name the mount point. See
 http://www.reactivated.net/udevrules.php

Done too. udev creates a nice /dev/minolta which I would like automounted 
to /mnt/camera (or even /media/camera)

If only pmount.allow would allow for a device label to use. But as it 
seems that would make life to simple eg. less interesting..;)

Thanks,
 Gerhard

-- 
Ithaka photography, http://ithaka.mine.nu/
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] mediamanager tries to open wrong path

2007-01-31 Thread Gerhard Hoogterp
 pmount.allow only specifies which devices may be automounted. 
 When mounting, pmount gets the name from either the disk's volume name or
 the
 device. Does your camera use a removable memory card? If so, try putting
 it in a card reader and setting the volume name with mkdosfs or mtools.
 My camera formats the card with a volume name of CANON_EOS, so it is
 mounted at /media/CANON_EOS.

Well it does, but it does feel a bit of an ugly hack to have to label all my 
cards camera just to get hal/kded to behave. Besides, the card isn't the 
camera.. so even on a logical level it's wacky.. 

Anyhow, guess it's the best for now. 

Thanks!
 Gerhard


-- 
Ithaka photography, http://ithaka.mine.nu/
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Things that can be improved

2006-07-11 Thread Gerhard Hoogterp
I think there's a mis-understanding here.  Gerhard and I are
  complaining about config files being possibly *OVERWRITTEN* with default
  settings.  If there's no config file, sure write the default config
  file.  But if someone has customized a config file, assume that they
  know what they're doing, and leave settings alone.

 That only happens if YOU do it. No config file is EVER changed without
 your permission by portage, if it does not exist, a default is copied,
 but if there's already one, no.

Sure and if Ihad lots of time I would do an emerge world every day just to 
check a few files. Regretfully, with 5 servers, some 28 websites and some 
other work too I don't have that daily time. So when I update my system I 
have to go through pages full of diffs, checking every diff to see if, 
besides all the settings returning to default, there are also changes that I 
should be aware off. A wrong key is easily pressed and there you go.. 

And why? Yes I changed my settings and yes etc-update or dispatch-conf show me 
carefully every moved point or comma. Thanks, but I know I changed those and 
I did that on purpose. Untouched files are already on auto-pilot. 
Show me what is added or removed. And since it can only do that by comparing 
the new file to a clean, untouched, original file I innocently suggested to 
have such a file, make changes there and leave it up to the admin to check if 
settings are added or removed and deal with these changes in the active 
config file.. And in that case don't bother showing the diff.. just tell me 
which files have changed and *offer* to show the changes. 
But don't touch my active configes.. not automatically, not ever..

Guess I'm just paranoid.. but then again, sometimes a healty amount of 
paranoia keeps you out of a lot of troubles..

Gerhard

-- 
Ithaka photography, http://ithaka.mine.nu/
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Things that can be improved

2006-07-09 Thread Gerhard Hoogterp
On Sunday 09 July 2006 17:29, Alexander Skwar wrote:

  As I wrote in an other mail: Stop interfering with the actual configfile
  and add the changes to a config.conf.dist file.

 Yep, you wrote that, and I answered that *I* would *NOT* like this.
 I like it, that I can use a program right away - at least in a
 default way. If you had your way, *NO* program which relied
 on configuration files would be usable after installation, as
 no configuration file could be found. Because of that, I would
 not want to happen what you proposed.

Sure, and it's such a big deal to copy the dist to a non dist on first emerge 
and update the dist version afterwards. 
My whole point is that etc-update and friends should stay out of my manually 
adjusted config files once I've touched them as basicly the only thing 
etc-update is doing now is proposing to return all the settings to the 
defaults. Even if there is an new setting or something removed it would get 
lost in all the other fluff.

As for software running on pure and unchecked default configs.. That's, 
especially for more low level software, not the smartest thing to rely on. 

Gerhard
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Things that can be improved

2006-07-08 Thread Gerhard Hoogterp
   When I say yes I mean yes.  When I say no I mean no.  And I
 don't mean just until the next update either.  I have reasons for my
 settings; please don't act like Windows and assume that you know better
 than me.  And there is no excuse whatsoever for wiping out the custom
 settings in /etc/conf.d/local.start

As I wrote in an other mail: Stop interfering with the actual configfile and 
add the changes to a config.conf.dist file. There you don't have to ask for 
permission and a simple diff can reveal the changes whenever I want. 

During install a copy of this file could be installed already for direct use..

Something alike for the messages during an emerge. Often I see instructions on 
what to do after the emerge flashing by while doing an emerge world, I don't 
even want to know how many I miss.. Why not log those to a seperate file so 
one can actually find them back afterwards?

I know Gentoo is supposed to be for those who know how to deal with things, 
but that doesn't mean it should be more complicated of dangerous than 
needed.. 

Gerhard
-- 
Ithaka photography, http://funsite.mine.nu
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Null Modem Cables Between Windoze XP and Linux

2006-06-25 Thread Gerhard Hoogterp
On Sunday 25 June 2006 22:02, John J. Foster wrote:
 On Sun, Jun 25, 2006 at 12:46:16PM -0700, Lord Sauron wrote:
  I have it on extremely good authority that it goes 2MB/sec.

 it's always a good thing to question authority.

Well, the used protocol has to do with it too.. and what I remember from my 
BBS days is that kermit is extremely reliable and runs on more or less 
everything, but also that it does give a new meening to the word slow.. 
zmodem or even sealink would already improve a lot.. 

  I'll start looking for Kermit now.  Thanks.

 emerge -av kermit

or net-dialup/lrzsz for x- yor z-modem.. (and forget x-modem.. it's as slow 
as..)



-- 
Ithaka photography, http://ithaka.mine.nu/
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Null Modem Cables Between Windoze XP and Linux

2006-06-24 Thread Gerhard Hoogterp
On Saturday 24 June 2006 21:49, Lord Sauron wrote:
 I dug out of this ancient computer book (Upgrading and Repairing PCs
 12th Ed.) this relic technology of the Null Modem Cable.  It's a
 twisted Parallel Cable that allows 2 PCs to almost literally talk to
 each other. 

While there were cables using the parallel port for communication, they always 
needed special software to deal with this. A nul-modem though used to be 
serial and as such worked the normal tty stuff.

For parallel I remember that lantastic-z had a parallel cable and there was 
some other program under dos which used to use a parallel cable. Forgot the 
name, but maybe with a little google and dosbox you have a chance there..

-- 
Ithaka photography, http://ithaka.mine.nu/
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] graphical ssh-enabled file system browser?

2006-06-24 Thread Gerhard Hoogterp
On Saturday 24 June 2006 22:00, Mark Knecht wrote:

I use WinSCP on my WinXP machine. It works really great for this
 purpose. Something like that which is Linux based would be great for
 them but I cannot yet find anythign in the Online Package Database.
 Probably I'm just not searching with the right terms yet. Sorry.

Konqueror with the fish:// protocol would do nicely..That's what I use..;-)

-- 
Ithaka photography, http://ithaka.mine.nu/
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] FTP Server

2006-06-06 Thread Gerhard Hoogterp
On Tuesday 06 June 2006 17:38, JimD wrote:

 From my perspective, I don't want an ftp server that will allow someone

 to get in to my gentoo box by brute forcing a username and password.  I
 guess I can install something like denyhosts if the ftp server uses tcp
 wrappers.


Maybe winscp is a better idea? It behaves like most windows ftpclients but 
uses scp to connect to your box with all the ssh goodness for security.. 

http://winscp.net/eng/index.php

Gerhard



-- 
Ithaka photography, http://ithaka.mine.nu/
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Unpacking an ISO Image

2006-05-16 Thread Gerhard Hoogterp
On Tuesday 16 May 2006 17:18, Kris Kerwin wrote:

 Quick question. Is there any way that one can unpack an ISO image:
 extracting the data that is contained within it like a tarball,
 without having to burn it to a CD? I'm sure there's an option
 somewhere within either the mkisofs or cdrecord man pages, but I feel
 like I'm searching for a needle in a haystack.

Mount and copy should be an option.. 
http://gentoo-wiki.com/TIP_Mounting_Iso_Files should help..

Gerhard


-- 
Ithaka photography, http://ithaka.mine.nu/
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Is my postfix being used as a relay?

2006-03-16 Thread Gerhard Hoogterp
On Thursday 16 March 2006 20:12, Kevin O'Gorman wrote:
 I get a lot of bounce messages from Postfix relating to emails
 that are not actually from me, and the mail q shows lots of
 stuff I don't recognize.

 I'd like to know how to interpret this, and if it is called-for,
 to secure this daemon a bit more. Can somebody point
 me in the right direction?  I'll RTFM if it's not *too* big,
 if I know the appropriate FM to R.


You can check if your machine is an open relay by using telnet to 
relay-test.mail-abuse.org from the machine which runs the mail. 

An other alternative is to use their webinterface 
(http://www.abuse.net/relay.html) but I have no experience with that one.

Gerhard


-- 
Ithaka photography, http://ithaka.mine.nu/
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] [OT] Can bash do comments on files?

2006-02-12 Thread Gerhard Hoogterp
On Sunday 12 February 2006 23:03, Alan E. Davis wrote:
 I remember a little MSDOG shell utility called 4dos.  It alllowed me
 to store comments that would appear alongside the filename.  Can
 anyone point to a way to do this transparently and easily with bash?
 I don't want to run any extra programs if I can avoid it.  I do like
 dired for emacs, though.

4dos (and 4NT, still use it daily on win2000) had to deal with 8.3 filenames.. 
So it used an index file named descript.ion. Under linux that's not nessecary 
as you can just use long filenames including spaces.. 

-- 
Ithaka photography, http://ithaka.mine.nu/
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] /dev/hda not created

2006-01-11 Thread Gerhard Hoogterp
On Wednesday 11 January 2006 21:20, Michael George wrote:
 I've got one of my servers that doesn't have /dev/hda on it at boot
 time.

 I've got a lite-on DVD burner there that works just fine (once I create
 the device) and is noted as hda in the boot messages.

 However, /dev/hda doesn't exist.  That's a problem.  /dev/hda?* did
 exist, though...

Ha! Thatone kept me busy for a long time too (hdc/hdd in my case, but guess 
that doesn't matter!)

In my case it was solved by adding the ide-cd module to 

/etc/modules.autoload.d/kernel-2.6

(try first with modprobe ide-cd and ls -l /dev/hda)

Good luck
 Gerhard
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Regular user can't offload usb camera`

2005-12-29 Thread Gerhard Hoogterp
On Thursday 29 December 2005 18:28, Christoph Eckert wrote:
 Hi Michael,

  My personal account (michael) cannot offload pictures from my usb
  digital camera - only root can do it.  michael is in the usb group.
  There used to be a file called /etc/security/console.perms which
  allowed the michael user to offload pictures, but it's gone now.  How
  can I make it where I don't have to su to root just to offload
  pictures?

 the same happens here since I did an emerge --update world

 Before, normal users have been allowed to get pics via gphoto2 on the
 command line or even via the KDE protocol camera:/.

 Since the update, only root can get the images. I'm sure it's a
 permission problem, but I don't know where to look first.

I had something alike and found that the hotplug script was looking 
for /var/run/console/console.lock to see who owned the console (and to use 
this info to chown the usbfile) 

You can easily check if you have the same problem: disconnect the camera, 
become root on the commandline and use 

cat loginname  /var/run/console/console.lock

(so if you're logged in as michael use 
cat michael  /var/run/console/console.lock
)

Plug in the camera and try to download the photo's. If it now works, you have 
the same problem which I had (and which has to do I think with pam_console 
which is a flag for emerging pam)

Anyhow, as I got bored to create the lockfile every time I just fixed 
the /etc/hotplug/usb/usbcam to use my name whenever it couldn't find a lock 
file.. Somewhat ugly, but oh well..

Hope this helps..
Gerhard

-- 
Ithaka photography, http://ithaka.mine.nu/

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Is there and Alternative to compiling kde?

2005-12-10 Thread Gerhard Hoogterp
On Saturday 10 December 2005 11:58, Holly Bostick wrote:
 Gerhard Hoogterp schreef:

  While this is true and one of the things that makes gentoo gentoo,
  there are already binary packages in portage. mozilla-bin,
  openoffice-bin. Mostly big packages which take some time to compile.
   So the idea of having a pre-compiled KDE isn't that alien to the
  world of gentoo..

 Oh, phooey,  Gerhard (sorry).

NP.. happily phooey away..;-) It wasn't my question and I already did my 
compile session.. Only 3 days due to some hurdles, toxml who dosn't know 
about its dependency on libxlst and hal wanting a newer kernel (but not MM- 
as it doesn't seem to have the needed feature.. so back to gentoo kernel.. ) 
But oh well, that's the goodness that's gentoo and sorting it out yourself 
gives on that soft glowing almost-guru feeling..;-)

 People, it's not like KDE just got huge yesterday or something.

Nope, but on a slow machine it IS big.. and trying to keep an 400mhz amd-k6 
somewhat up to date as a gateway (without KDE, but compiling glibc or 
apache/php/mysql isn't much fun either) I can see that's a problem for some. 
Of course the question is if they should run kde on such a machine, but 
that's up to them..  I don't blame them for asking. But seeing my hurdles 
while upgrading, I doubt that just binary kde packages is going to help them 
much. 

Gerhard
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] SOLVED: Compiling kde-meta for 3.5

2005-12-09 Thread Gerhard Hoogterp
On Tuesday 06 December 2005 22:45, Gerhard Hoogterp wrote:

As it seems xmlto needs the latest libxlst 1.1.15 and DOESN'T have a 
dependency for it. 


 As I try to emerge kde-meta I run into the following error:

 /usr/kde/3.5/bin/meinproc --check --cache index.cache.bz2 ./index.docbook
   XPath error : Undefined variable
 compilation error:
   file /usr/kde/3.5/share/apps/ksgmltools2/docbook/xsl/html/autotoc.xsl
 line 544 element div

 using the

   USE=kdeenablefinal ACCEPT_KEYWORDS=~x86
   emerge kdeaddons-docs-konq-plugins

 commandline. I've checked and updated all the docbook stuff I have
 installed to no avail..

 Anyone who has an idea or a pointer?

 Gerhard
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Is there and Alternative to compiling kde?

2005-12-09 Thread Gerhard Hoogterp
On Friday 09 December 2005 23:20, Tom Smith wrote:
 Gentoo is a source-based distribution. This means that the software you
 receive comes in the form of source code. It's up to you to install (which
 includes compiling) the software with your specific preferences--this is
 what makes Gentoo what it is.

While this is true and one of the things that makes gentoo gentoo, there are 
already binary packages in portage. mozilla-bin, openoffice-bin. Mostly big 
packages which take some time to compile. So the idea of having a 
pre-compiled KDE isn't that alien to the world of gentoo..

Gerhard
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Compiling kde-meta for 3.5

2005-12-06 Thread Gerhard Hoogterp
As I try to emerge kde-meta I run into the following error:

/usr/kde/3.5/bin/meinproc --check --cache index.cache.bz2 ./index.docbook
XPath error : Undefined variable
compilation error:
file /usr/kde/3.5/share/apps/ksgmltools2/docbook/xsl/html/autotoc.xsl 
line
544 element div

using the 

USE=kdeenablefinal ACCEPT_KEYWORDS=~x86 
emerge kdeaddons-docs-konq-plugins

commandline. I've checked and updated all the docbook stuff I have installed 
to no avail..

Anyone who has an idea or a pointer? 

Gerhard
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] complaints about world file and ooodi

2005-11-22 Thread Gerhard Hoogterp
On Tuesday 22 November 200

 portage says something is wrong with my world file. emaint --check world
 produces this output:
 'app-office/ooodi' has no ebuilds available

 What am I to do?

My first reaction would be to go to the /usr/portage/app-office en to remove 
or rename the ooodi dir. If it's needed it will be back after the next sync.. 

GH
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] emerge/build problem

2005-05-18 Thread Gerhard Hoogterp
Hi,

Since a few days, and after emerging a number of packages, emerge doesn't seem 
to be able to find libraries in the /usr/lib directory anymore. Or beter, as 
far as I can see it doesn't even look there. The problem shows while it looks 
for the openssl libraries. Already compiled programs know to find the libs 
quite nicely, ldconfig -v idem, but when emerging for example wget:

Looking for SSL libraries in system-default
checking for includes... not found
Looking for SSL libraries in /usr/local/ssl
checking for includes... not found
Looking for SSL libraries in /usr/local
checking for includes... not found
Looking for SSL libraries in /opt
checking for includes... not found
ERROR: Failed to find OpenSSL libraries.

So who can help me. Searching google and usenet didn't point me in any useful 
direction. Which program or configfile is responsible for the lib files which 
portages uses  while emerging a file? Any other ideas or pointers? Or do I 
miss something in the errors and am I looking in all the wrong corners?

Thanks!
 Gerhard
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] iPodder

2005-05-11 Thread Gerhard Hoogterp
Hi,

Im  trying to get iPodder running under gentoo. But since I'm not much of a 
python head I hope someone can help me out. The error I get is:

[EMAIL PROTECTED] iPodder]# ./ipodder.sh
Traceback (most recent call last):
  File iPodderGui.py, line 38, in ?
import iPodderWindows
  File /opt/iPodder/iPodderWindows.py, line 4, in ?
import  listctrl  as  listmix
  File /opt/iPodder/listctrl.py, line 296, in ?
EVT_DOPOPUPMENU = wx.PyEventBinder(wxEVT_DOPOPUPMENU, 0)
AttributeError: 'module' object has no attribute 'PyEventBinder'

As it seems something is missing. But what.. According to the readme the 
following stuff is needed:

Prerequisites:
-
Python2.3+
python-gtk
wxPythonGTK
libwxPythonGTK2.5_2
pythonlib
libpython2.3
libxml2-python


Python and python-gtk are there. But the rest doesn't seem to translate into 
ebuilds. 

Any pointers? Thanks!

Gerhard
-- 
gentoo-user@gentoo.org mailing list