Re: [gentoo-user] udev and device ownership

2007-03-11 Thread Neil Bothwick
On Sat, 10 Mar 2007 23:51:56 +0100, paulie.x wrote:

 I created new user and just changed OWNER in 10-local.rules to new
 username. Now when I plug in mp3 player it created device node
 (example) /dev/sdc and rightly I'm owner of this file but I'm not owner
 of the link so I cannot mount it like regular user. And when I mount it
 like root I cannot manipulate with data on the device.

Is the new user a member of the plugdev group? If not, they wouldn't be
able to mount it.

Add umask=0 to the options in /etc/fstab to allow all users read/write
access, even when mounted as root. See the FAT options in man mount if you
want more fine-grained control over this.


-- 
Neil Bothwick

Click..Click..Click..Damn! Out of taglines!


signature.asc
Description: PGP signature


Re: [gentoo-user] A question regarding non-Portage software...

2007-03-11 Thread Neil Bothwick
On Sun, 11 Mar 2007 06:10:22 +0100, Bo Ørsted Andresen wrote:

  I am hoping that someone can provide me with resources - examples
  and/or a walkthrough would be especially helpful.  I realize that the
  Gentoo team can only do so much and carefully test each package
  before putting it in the official tree.  There are just some pieces
  of software that I want that are not even in the testing tree.  
 
 The devmanual is a good place to start. If you use IRC then
 #gentoo-dev-help at freenode is a good place to get more help...

Also, search Bugzilla and the forums, someone may have already created
ebuilds for these programs.


-- 
Neil Bothwick

Amoebit: Amoeba/rabbit cross; it can multiply and divide at the same time.


signature.asc
Description: PGP signature


Re: [gentoo-user] RAID

2007-03-11 Thread Boyd Stephen Smith Jr.
On Saturday 10 March 2007, mwq [EMAIL PROTECTED] wrote about '[gentoo-user] 
RAID':
 Imagine such a situation: I have two
 hard drives but drive A is twice faster when reading and writing then
 drive B. I want to make RAID 0 using A and B. Why are the stripes sizes
 on both drives excacly the same?

If stripe sizes aren't consistent, it's takes hundreds more CPU cycles (and 
a separate code path) to determine where to write a block.  This 
calculation has to be repeated every time a block is written so, it can 
easily end up limiting your total throughput by making an I/O operation be 
CPU bound.

 I think that using twice
 greater stripe on A gives more speed then using equal stripes.

If A is also twice as big, you can do as Dan Farrell suggested to get some 
increased performance.  If A is the same size, you'd be sacrificing speed 
across the whole raid-ed device to potentially gain some speed in the 
sections where you can make A's segments bigger.

-- 
Boyd Stephen Smith Jr. ,= ,-_-. =. 
[EMAIL PROTECTED]  ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy   `-'(. .)`-' 
http://iguanasuicide.org/  \_/ 
New GPG Key!  Old key expires 2007-03-25.  Upgrade NOW!


pgp0cjIJBy29G.pgp
Description: PGP signature


Re: [gentoo-user] Re: adesklets

2007-03-11 Thread Neal McConachie
Mick said the following:
 Thank you all for your help, 

 It seems that there is something wrong with the fonts(?)  I have managed to 
 launch weatherforecast which works fine, but calendar and volume do not.  I 
 tried testing them and this is what I get:
   
snip
 raise ADESKLETSError(4,message)
 adesklets.error_handler.ADESKLETSError: adesklets command error - 
 font 'VeraBd/8' could not be loaded
 ==

 Of course volume does not show up at all.  How do I fix this?
   

My guess is that it can't find the particular font that the volume
desklet wants.  I don't use that particular desklet, but chances are
pretty good that in the config.txt for it there will be a font setting.

You might want to try changing that to a font that you know you have, or
else emerging the font package that has that font.

*investigates*
Yep, the default config.txt for the volume applet specifies the VeraBd
font, with size 8.

Also, when I used the commands

$ slocate VeraBd  (to see if I had that font installed)
and
$ equery -b VeraBd (to see what package it came with)

(Those two commands are available via sys-apps/slocate and
app-portage/gentoolkit in portage).  I found that the VeraBd font comes
with the media-fonts/ttf-bitstream-vera package.

Good luck :)
-nkm
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] udev and device ownership

2007-03-11 Thread paulie.x
Dne ne 11. březen 2007 09:45 Neil Bothwick napsal(a):
 On Sat, 10 Mar 2007 23:51:56 +0100, paulie.x wrote:
  I created new user and just changed OWNER in 10-local.rules to new
  username. Now when I plug in mp3 player it created device node
  (example) /dev/sdc and rightly I'm owner of this file but I'm not owner
  of the link so I cannot mount it like regular user. And when I mount it
  like root I cannot manipulate with data on the device.

 Is the new user a member of the plugdev group? If not, they wouldn't be
 able to mount it.

 Add umask=0 to the options in /etc/fstab to allow all users read/write
 access, even when mounted as root. See the FAT options in man mount if you
 want more fine-grained control over this.

Yes I'm in plugdev group. Problem is that I'm owner of the /dev/sdc block 
device but owner and group of link that udev creates is root.
--
gentoo-user@gentoo.org mailing list



[gentoo-user] Re: A question regarding non-Portage software...

2007-03-11 Thread Steve Long
Michael [Plouj] Ploujnikov wrote:

 On 3/10/07, Chris [EMAIL PROTECTED] wrote:
 I will begin by stating my problem.  I have the source code (in
 *.tar.bz2 format) for a couple of pieces of software that are not in the
 Portage tree at all.  I would like to compile and install them in such a
 way that I can use them, and even so Portage recognizes them.
 
 You most likely want to install that software in /usr/local as per
 Gentoo's filesystem layout [1]. The way you can do that with
 autotoolized software is like this:
 
 ./configure --prefix=/usr/local
 make
 make install
 
 I don't know what you mean by making Portage recognize the software
 installed this way. Do you want Portage to be able to uninstall and/or
 upgrade this software? If so, the simple answer is you it can't do
 that. You have to manage the software outside of Portage yourself.
 
That's exactly right, which is why it goes into /usr/local. You can however
notify portage that you have a certain package on your system
with /etc/portage/package.provided - I used this for that kde-env script
that was moved last year, as certain pkgs in the tree still depended on its
ebuild, but it had been moved to kde-libs (which it blocked.) I unmerged it
to get kde-libs, and put an entry in package.provided for pkgs which still
had a dependency on it. Once the tree had all been updated I deleted the
entry.

package.provided
  A list of packages (one per line) that portage should assume have been
provided. Useful for porting to non-Linux  systems. Portage will not 
attempt to update a package that is listed here unless another package
explicitly requires a version that is newer than what has been listed.

So in that sense portage will recognise the software for dependency
calculation. You should be aware of that last bit; I recommend reading man
portage for more explanation. (Oh and man -k is useful if you've not heard
of it.)

HTH,
steveL


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: adesklets

2007-03-11 Thread Rodrigo Lazo

Hi,

On 3/9/07, Mick [EMAIL PROTECTED] wrote:

On Friday 09 March 2007 05:25, Wayne Oliver wrote:

 If you select test from the menu it should show the desklet on screen
 you can now move it around, play with it etc.
 Exit the desklet re run the

 $/path/to/calendar/Calender.py

 This time selecting register
 Kill adesklets and then run it again.
 If you happy that it's working simply add adesklets to your X startup
 i.e. .xinitrc or .XSession

Thank you all for your help,

It seems that there is something wrong with the fonts(?)  I have managed to
launch weatherforecast which works fine, but calendar and volume do not.  I
tried testing them and this is what I get:
==
$ ./volume.py
Do you want to (r)egister this desklet or to (t)est it? t
Now testing...

If you do not see anything (or just an initial flicker
in the top left corner of your screen), try `--help',
and see the FAQ: `info adesklets'.

Traceback (most recent call last):
  File ./volume.py, line 588, in ?
Events(dirname(__file__)).pause()
  File ./volume.py, line 63, in __init__
adesklets.Events_handler.__init__(self)
  File /usr/lib/python2.4/site-packages/adesklets/events_handler.py, line
157, in __init__
self.ready()
  File ./volume.py, line 127, in ready
self.drawVolumeTxt(self.volume)
  File ./volume.py, line 190, in drawVolumeTxt
adesklets.load_font(font)
  File /usr/lib/python2.4/site-packages/adesklets/commands.py, line 706, in
load_font
return comm.out()
  File /usr/lib/python2.4/site-packages/adesklets/commands_handler.py, line
103, in out
raise ADESKLETSError(4,message)
adesklets.error_handler.ADESKLETSError: adesklets command error -
font 'VeraBd/8' could not be loaded
==



There is a problem with the latest version of font-* and adesklets
that is solved in the unstable version of adesklets.

I hope it helps


Of course volume does not show up at all.  How do I fix this?
--
Regards,
Mick



--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: adesklets

2007-03-11 Thread Rodrigo Lazo

On 3/11/07, Rodrigo Lazo [EMAIL PROTECTED] wrote:

Hi,

On 3/9/07, Mick [EMAIL PROTECTED] wrote:
 On Friday 09 March 2007 05:25, Wayne Oliver wrote:

  If you select test from the menu it should show the desklet on screen
  you can now move it around, play with it etc.
  Exit the desklet re run the
 
  $/path/to/calendar/Calender.py
 
  This time selecting register
  Kill adesklets and then run it again.
  If you happy that it's working simply add adesklets to your X startup
  i.e. .xinitrc or .XSession

 Thank you all for your help,

 It seems that there is something wrong with the fonts(?)  I have managed to
 launch weatherforecast which works fine, but calendar and volume do not.  I
 tried testing them and this is what I get:
 ==
 $ ./volume.py
 Do you want to (r)egister this desklet or to (t)est it? t
 Now testing...
 
 If you do not see anything (or just an initial flicker
 in the top left corner of your screen), try `--help',
 and see the FAQ: `info adesklets'.
 
 Traceback (most recent call last):
   File ./volume.py, line 588, in ?
 Events(dirname(__file__)).pause()
   File ./volume.py, line 63, in __init__
 adesklets.Events_handler.__init__(self)
   File /usr/lib/python2.4/site-packages/adesklets/events_handler.py, line
 157, in __init__
 self.ready()
   File ./volume.py, line 127, in ready
 self.drawVolumeTxt(self.volume)
   File ./volume.py, line 190, in drawVolumeTxt
 adesklets.load_font(font)
   File /usr/lib/python2.4/site-packages/adesklets/commands.py, line 706, in
 load_font
 return comm.out()
   File /usr/lib/python2.4/site-packages/adesklets/commands_handler.py, line
 103, in out
 raise ADESKLETSError(4,message)
 adesklets.error_handler.ADESKLETSError: adesklets command error -
 font 'VeraBd/8' could not be loaded
 ==


There is a problem with the latest version of font-* and adesklets
that is solved in the unstable version of adesklets.



Is marked stable in x86; I didn't check it before sending the email

Sorry


I hope it helps

 Of course volume does not show up at all.  How do I fix this?
 --
 Regards,
 Mick




--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] A question regarding non-Portage software...

2007-03-11 Thread Alex Schuster
Michael [Plouj] Ploujnikov writes:

 You most likely want to install that software in /usr/local as per
 Gentoo's filesystem layout [1]. The way you can do that with
 autotoolized software is like this:

 ./configure --prefix=/usr/local
 make
 make install

 I don't know what you mean by making Portage recognize the software
 installed this way. Do you want Portage to be able to uninstall and/or
 upgrade this software? If so, the simple answer is you it can't do
 that. You have to manage the software outside of Portage yourself.

Additionally, I like to have the stuff separated in sub-directories 
of /usr/local, and use stow or better xstow to create symlinks, so the 
software appears to be installed directly in /usr/local.

  emerge xstow
  mkdir /usr/local/stow
  ./configure --prefix=/usr/local/stow/foo-1.2.3  make  make install
  cd /usr/local/stow
  xstow foo-1.2.3

To later uninstall, without the need to use make uninstall:
  cd /usr/local/stow
  xstow -D foo-1.2.3
  \rm -r foo-1.2.3

Or to try out a newer version of foo, without deleting foo-1.2.3:
  ./configure --prefix=/usr/local/stow/foo-1.2.4  make  make install
  cd /usr/local/stow
  xstow -D foo-1.2.3
  xstow foo-1.2.4
  
Alex
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] udev and device ownership

2007-03-11 Thread Neil Bothwick
On Sun, 11 Mar 2007 14:07:00 +0100, paulie.x wrote:

 Yes I'm in plugdev group. Problem is that I'm owner of the /dev/sdc
 block device but owner and group of link that udev creates is root.

OK, instead of

SUBSYSTEMS==scsi, ATTRS{model}==LYRA_MPHR2301_EU, OWNER=user,
SYMLINK+=lyra

do

SUBSYSTEMS==scsi, ATTRS{model}==LYRA_MPHR2301_EU, OWNER=user, NAME=lyra 
SYMLINK=%k

-- 
Neil Bothwick

Of all the people I've met you're certainly one of them.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: A question regarding non-Portage software...

2007-03-11 Thread Bo Ørsted Andresen
On Sunday 11 March 2007 15:01:27 Steve Long wrote:
  I don't know what you mean by making Portage recognize the software
  installed this way. Do you want Portage to be able to uninstall and/or
  upgrade this software? If so, the simple answer is you it can't do
  that. You have to manage the software outside of Portage yourself.

He can if he makes an ebuild for it (or as Neil suggested finds one outside 
the tree). It's not that hard to do.

 [...] package.provided - I used this for that kde-env script that was moved
 last year, as certain pkgs in the tree still depended on its ebuild, but it
 had been moved to kde-libs (which it blocked.) I unmerged it to get
 kde-libs, and put an entry in package.provided for pkgs which still had a
 dependency on it. Once the tree had all been updated I deleted the entry.

package.provided is certainly not intended to be used to circumvent 
dependencies due to blocks. Not that that has any relevance to this thread 
though.

-- 
Bo Andresen


pgpPU35n4Ljry.pgp
Description: PGP signature


[gentoo-user] Compiz keeps putting titlebars under gnome-panel

2007-03-11 Thread Mark David Dumlao

I have a button on my desktop that runs compiz-start if compiz is off and
metacity --replace if compiz is off.  I'm having fun playing wtih this thing
except one annoying feature is when I switch from metacity to compiz all
existing windows are bumped up by one titlebar's worth.  this means that all
windows that are maximized or at the top will have their titlebars undder
the gnome-panel.

An easy start+down with the place plugin moves the window down, else an alt
drag will also do.  But is there any way to prevent compiz from putting
titilebars under the gnome-panel at the top of the screen?
--
thing.


Re: [gentoo-user] Compiz keeps putting titlebars under gnome-panel

2007-03-11 Thread C Lee Davis

Mark David Dumlao wrote:

I have a button on my desktop that runs compiz-start if compiz is off and
metacity --replace if compiz is off.  I'm having fun playing wtih this 
thing

except one annoying feature is when I switch from metacity to compiz all
existing windows are bumped up by one titlebar's worth.  this means that 
all

windows that are maximized or at the top will have their titlebars undder
the gnome-panel.

I had this problem as well.  I ended up fixing it by removing 
/home/user/.gconf/apps/compiz, restarting X without compiz, and making sure 
decoration was in my active_plugins before starting compiz again.  I'm not sure 
what part fixed it, but it hasn't reappeared.


--
 C. Lee Davis
Fantasy Geographic Society  http://fantasy.geographic.net/
GCB for GURPS 4e http://fantasy.geographic.net/project/4eGURPS
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] rebuild gcc-3.4.6-r2 error

2007-03-11 Thread Walter Dnes
On Sat, Mar 10, 2007 at 03:00:53PM +, Andrew Dean wrote

 I have managed to get around 
 this problem by downloading the gdc-0.23-src.tar.bz2 file from my local 
 mirror (e.g. http://gentoo.virginmedia.com/distfiles) to the 
 /usr/portage/distfiles folder. When I then tried the update world the 
 second time, everything worked properly! I know that this does not 
 resolve the issue but it is the way that I managed to work around the 
 problem.
 
 Hope this helps.

ELVIS
Thank you, thank you, thank you verrry verrry much.
/ELVIS

  That solved it for me too.  I used wget, like so...
cd /usr/portage/distfiles
wget http://gentoo.virginmedia.com/distfiles/gdc-0.23-src.tar.bz2

-- 
Walter Dnes [EMAIL PROTECTED] In linux /sbin/init is Job #1
-- 
gentoo-user@gentoo.org mailing list