Re: [gentoo-user] Re: USB mass storage device slow in Gentoo, fast in Windows...? [SOLVED]

2010-01-05 Thread Stroller

On 5 Jan 2010, at 06:21, Mick wrote:
 ...
 Solved. The problem was CFQ I/O scheduler. It was several times slower
 than the others, for whatever reason.
 ...
 
 Hmmm ... reading at the help files I thought that CFQ was the default/best 
 option for a desktop.  Is there such a thing as a best fit here?

I had this notion that it was the worst option for everything, unless your 
computer has 96+ CPUs.

Stroller.




Re: [gentoo-user] Re: USB mass storage device slow in Gentoo, fast in Windows...? [SOLVED]

2010-01-05 Thread Alan McKinnon
On Tuesday 05 January 2010 10:15:00 Stroller wrote:
 On 5 Jan 2010, at 06:21, Mick wrote:
  ...
  Solved. The problem was CFQ I/O scheduler. It was several times slower
  than the others, for whatever reason.
  ...
 
  Hmmm ... reading at the help files I thought that CFQ was the
  default/best option for a desktop.  Is there such a thing as a best fit
  here?
 
 I had this notion that it was the worst option for everything, unless your
  computer has 96+ CPUs.

I had this notion that the author of the help files was talking through a hole 
in his butt and just expressing his own views. 

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] IDE/ATAPI ZIP drive - howto

2010-01-05 Thread Helmut Jarausch
On  4 Jan, Kyle Bader wrote:
 Any change in kernel configuration or did you copy your old config and
 run make oldconfig?

The problem seem to be that beginning with kernel 2.6.30 the ide-scsi
interface (CONFIG_BLK_DEV_IDESCSI) has been dropped.
Probably the new kernels are broken with the ATAPI floppy support.

I'll have to find out how to use a PATA driver for the ZIP drive.

Helmut.

 
 On 1/4/10, Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote:
 Hi,

 I've upgraded the kernel on an old machine to 2.6.32.
 Now, I cannot get the ZIP drive (ATAPI) working.

 There is a /dev/hdd device and dmesg is telling me about
 an IOMEGA ZIP drive, but
 trying to

 fdisk /dev/hdd
 or even mount it,
 seems to make the kernel hang (at least these commands
 never finish)

 Has anybody any hint on what to try?


-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



Re: [gentoo-user] Re: USB mass storage device slow in Gentoo, fast in Windows...? [SOLVED]

2010-01-05 Thread Mick
2010/1/5 Alan McKinnon alan.mckin...@gmail.com:
 On Tuesday 05 January 2010 10:15:00 Stroller wrote:
 On 5 Jan 2010, at 06:21, Mick wrote:
  ...
  Solved. The problem was CFQ I/O scheduler. It was several times slower
  than the others, for whatever reason.
  ...
 
  Hmmm ... reading at the help files I thought that CFQ was the
  default/best option for a desktop.  Is there such a thing as a best fit
  here?

 I had this notion that it was the worst option for everything, unless your
  computer has 96+ CPUs.

 I had this notion that the author of the help files was talking through a hole
 in his butt and just expressing his own views.

Ha, ha!

What does experience show to be a best option for a desktop that has:

a) Single CPU?
b) Dual core?
c) Quad core?

-- 
Regards,
Mick



Re: [gentoo-user] USB Flash Drives automatic mounting breakage (Gnome)

2010-01-05 Thread Mick
2010/1/5 Alan E. Davis lngn...@gmail.com:

 It seems to me that it is possible to unmount the drives manually, many
 times, if not always, if it is impossible to unmount them via nautilus.
 Other File Managers work differently, I think Thunar may be more
 straightforward, not sure, though.  Maybe this will all pass soon enough,
 but for now, on one of my machines, especially, I have to reboot
 frequently.  If it's hal that is at work, then perhaps I can restart that?
 But when I did something similar, the window manager, at least, restarted.

I'm at my machine now and can report as follows:

Mounting a USB stick manually by running:

$ pmount /dev/sda1

gives me this mounted device:

/dev/sda1 on /media/sda1 type vfat
(rw,noexec,nosuid,nodev,quiet,shortname=mixed,uid=1000,gid=441,umask=077,fmask=0177,dmask=0077,iocharset=iso8859-1)

which I *cannot* unmount using Konqueror.  Selecting 'safely remove'
does not do anything (and I can't see any messages in the logs on this
version of Konqueror).

Mounting the device using Konqueror allows me to unmount it both using
the Konqueror GUI and manually by issuing pumount /dev/sda1.

PS.  I have not set up any fancy USB rules for this drive.
-- 
Regards,
Mick



Re: [gentoo-user] Re: USB mass storage device slow in Gentoo, fast in Windows...? [SOLVED]

2010-01-05 Thread Szénási István
And what about the BFS scheduler? I know, that it isn't in the
mainline kernel, bit I've heard a lot of good about that.
If you send me the size and the number of the test files, I'll make an
other benchmark with the CFQ, the Deadline and the BFS scheduler on a
Dual Core machine. :-)

-- 
Szénási István



[gentoo-user] emerge @preserved-rebuild EVEN IF some needed package is masked

2010-01-05 Thread Helmut Jarausch
Hi,

emerge @preserved-rebuild fails to do any updating since a single
(needed) package has been masked.
But I do need to keep kdelibs:3.5 which pulls in kde-misc/kdnssd-avahi:3.5
which has been masked.

Is it possible to tell emerge to do the other updates which don't need
this?

Dropping kde:3.5 too early is one of the biggest disappointsment of
GenToo! For someone who needs some package depending on it, it's really
hard. (I do need kexi)

Many thanks for some help,
Helmut.

-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



Re: [gentoo-user] emerge @preserved-rebuild EVEN IF some needed package is masked

2010-01-05 Thread Alex Schuster
Helmut Jarausch writes:

 emerge @preserved-rebuild fails to do any updating since a single
 (needed) package has been masked.
 But I do need to keep kdelibs:3.5 which pulls in
  kde-misc/kdnssd-avahi:3.5 which has been masked.
 
 Is it possible to tell emerge to do the other updates which don't need
 this?
 
 Dropping kde:3.5 too early is one of the biggest disappointsment of
 GenToo! For someone who needs some package depending on it, it's really
 hard. (I do need kexi)

Well, it's still all there, not in the official Gentoo portage tree, but 
in the kde-sunset overlay. Get it, unmask all the KDE 3.5 stuff, and all 
should be fine again. See this guide for details:

http://www.linuxized.com/2009/11/how-to-keep-your-kde-3-5-after-its-
removed-gentoos-tree-using-the-kde-sunset-overlay/

weird ~ # eix kdnssd-avahi
* kde-misc/kdnssd-avahi
 Available versions:  (3.5)  {M}0.1.2[1] {M}0.1.2-r1 {M}0.1.2-r1[1]
{arts debug elibc_FreeBSD xinerama}
 Homepage:http://wiki.kde.org/tiki-
index.php?page=Zeroconf+in+KDE
 Description: DNS Service Discovery kioslave using Avahi 
(rather than mDNSResponder)

[1] kde-sunset /usr/local/portage/layman/kde-sunset
weird ~ # emerge -ptv kdnssd-avahi

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild  N] kde-misc/kdnssd-avahi-0.1.2-r1  USE=(-arts) -debug -
xinerama 739 kB [1]
[ebuild  N]  net-dns/avahi-0.6.24-r2  USE=dbus gdbm gtk ipv6 python 
qt4 -autoipd -bookmarks -doc -howl-compat -mdnsresponder-compat -mono -qt3 
-test 1,090 kB [1]
[ebuild  N]   dev-libs/libdaemon-0.13-r1  USE=-doc -examples 360 kB 
[0]

Total: 3 packages (3 new), Size of downloads: 2,188 kB
Portage tree and overlays:
 [0] /usr/portage/tree
 [1] /usr/local/portage/layman/kde-sunset

Wonko



Re: [gentoo-user] emerge @preserved-rebuild EVEN IF some needed package is masked

2010-01-05 Thread Neil Bothwick
On Tue, 05 Jan 2010 16:35:46 +0100 (CET), Helmut Jarausch wrote:

 But I do need to keep kdelibs:3.5 which pulls in
 kde-misc/kdnssd-avahi:3.5 which has been masked.

Unmask it.

 Dropping kde:3.5 too early is one of the biggest disappointsment of
 GenToo! For someone who needs some package depending on it, it's really
 hard. (I do need kexi)

It's not been totally dropped, but moved out of the main portage tree to
the kde-sunset overlay. Add that overlay and your problem will disappear.


-- 
Neil Bothwick

If it was easy, the hardware people would take care of it.


signature.asc
Description: PGP signature


[gentoo-user] Understanding sets

2010-01-05 Thread Zeerak Waseem

Hey guys,

I have some questions about sets:
1) Sets are just files with one package per line in /usr/portage/sets,  
right?

2) Can a set be included in the world file?
3) With set files in /usr/portage/sets and running emerge -u @foo  
portage yields that @foo isn't a valid package atom, any idea why this is?


Thanks for any help :-)

--
Zeerak



[gentoo-user] {OT} Laptop wifi find more than external antenna

2010-01-05 Thread Grant
I travel with a USB wifi dongle and one of these directional antennas:

http://www.newegg.com/Product/Product.aspx?Item=N82E16833164110

Lately I've noticed there are some APs that my laptop's internal wifi
connects to perfectly, but the external antenna can't find whatsoever,
even after a lot of directional experimentation.  I've tried 2
different USB dongles with the same result.  Has anyone had a similar
experience?  I'm baffled because the external antenna is able to make
strong connections to some APs, but it can't even find others that the
laptop's internal card finds and connects to no problem.

- Grant



Re: [gentoo-user] Understanding sets

2010-01-05 Thread Alex Schuster
Zeerak Waseem writes:

 I have some questions about sets:
 1) Sets are just files with one package per line in /usr/portage/sets,
 right?

I think it's /etc/portage/sets instead. And there are also meta-sets like 
system, world, module-rebuild, preserved-rebuild and more, defined in 
/usr/share/portage/config/sets.conf. There is a little documentation in 
the emerge man page, but I have no idea where else sets are documented. 

 2) Can a set be included in the world file?

I don't think so, sets go into /var/lib/portage/world_sets.

 3) With set files in /usr/portage/sets and running emerge -u @foo
 portage yields that @foo isn't a valid package atom, any idea why this
 is?

Your portage is too old? In case of an error, you should get an emerge: 
There are no sets to satisfy 'foo' message, and a list of known sets.

Wonko



Re: [gentoo-user] Understanding sets

2010-01-05 Thread Zeerak Waseem
On Tue, 05 Jan 2010 18:41:35 +0100, Alex Schuster wo...@wonkology.org  
wrote:



Zeerak Waseem writes:


I have some questions about sets:
1) Sets are just files with one package per line in /usr/portage/sets,
right?


I think it's /etc/portage/sets instead. And there are also meta-sets like
system, world, module-rebuild, preserved-rebuild and more, defined in
/usr/share/portage/config/sets.conf. There is a little documentation in
the emerge man page, but I have no idea where else sets are documented.


2) Can a set be included in the world file?


I don't think so, sets go into /var/lib/portage/world_sets.


3) With set files in /usr/portage/sets and running emerge -u @foo
portage yields that @foo isn't a valid package atom, any idea why this
is?


Your portage is too old? In case of an error, you should get an emerge:
There are no sets to satisfy 'foo' message, and a list of known sets.

Wonko



Ah well, having the sets in the wrong place would give me an error.
And regarding portage version, weren't sets included in v. 2.x.x? My  
portage version is 2.1.7.16, anything above seems to be hardmasked...


--
Zeerak



Re: [gentoo-user] {OT} Laptop wifi find more than external antenna

2010-01-05 Thread James Ausmus
On Tue, Jan 5, 2010 at 9:37 AM, Grant emailgr...@gmail.com wrote:

 I travel with a USB wifi dongle and one of these directional antennas:

 http://www.newegg.com/Product/Product.aspx?Item=N82E16833164110

 Lately I've noticed there are some APs that my laptop's internal wifi
 connects to perfectly, but the external antenna can't find whatsoever,
 even after a lot of directional experimentation.  I've tried 2
 different USB dongles with the same result.  Has anyone had a similar
 experience?  I'm baffled because the external antenna is able to make
 strong connections to some APs, but it can't even find others that the
 laptop's internal card finds and connects to no problem.



Maybe the USB dongle doesn't support as many bands as the internal WiFi? eg.
Dongle is B/G only, while internal is A/B/G?


-James


Re: [gentoo-user] Re: USB mass storage device slow in Gentoo, fast in Windows...? [SOLVED]

2010-01-05 Thread Stroller


On 5 Jan 2010, at 11:39, Mick wrote:

What does experience show to be a best option for a desktop that has:

a) Single CPU?
b) Dual core?
c) Quad core?



On 5 Jan 2010, at 12:38, Szénási István wrote:

And what about the BFS scheduler? I know, that it isn't in the
mainline kernel, bit I've heard a lot of good about that. ...


I didn't  think we're supposed to talk about that. :-/

Stroller.


Re: [gentoo-user] Understanding sets

2010-01-05 Thread Neil Bothwick
On Tue, 05 Jan 2010 18:53:13 +0100, Zeerak Waseem wrote:

  3) With set files in /usr/portage/sets and running emerge -u @foo
  portage yields that @foo isn't a valid package atom, any idea why
  this is?
 
  Your portage is too old? In case of an error, you should get an
  emerge: There are no sets to satisfy 'foo' message, and a list of
  known sets.

 Ah well, having the sets in the wrong place would give me an error.

Yes, but that would be a set not found error, not a WTF is this
@ error.

 And regarding portage version, weren't sets included in v. 2.x.x? My  
 portage version is 2.1.7.16, anything above seems to be hardmasked...

Sets need portage 2.2, you'll have to unmask it.


-- 
Neil Bothwick

Q: How many builders does it take to change a light bulb?
A: If only it was just the light bulb..we'll have to replace the
ceiling and...


signature.asc
Description: PGP signature


Re: [gentoo-user] Understanding sets

2010-01-05 Thread Mike Edenfield

On 1/5/2010 12:53 PM, Zeerak Waseem wrote:


Ah well, having the sets in the wrong place would give me an error.
And regarding portage version, weren't sets included in v. 2.x.x? My
portage version is 2.1.7.16, anything above seems to be hardmasked...


No, sets appear starting in portage v2.2.  And yes, the whole 2.2 series 
is hard-masked.  The stated reason is so that the 2.1 test versions will 
actually get some testing.


Opinions over precisely how silly it is to test old, being-obsoleted 
versions in deference to new, enhanced versions vary and can be found in 
the list archives.


Most unstable users have probably unmasked sys-apps/portage long ago and 
moved into the future.


--Mike



Re: [gentoo-user] Re: USB mass storage device slow in Gentoo, fast in Windows...? [SOLVED]

2010-01-05 Thread James Ausmus
2010/1/5 Szénási István sze...@gmail.com

 And what about the BFS scheduler? I know, that it isn't in the
 mainline kernel, bit I've heard a lot of good about that.
 If you send me the size and the number of the test files, I'll make an
 other benchmark with the CFQ, the Deadline and the BFS scheduler on a
 Dual Core machine. :-)


BFS is a CPU scheduler, CFQ, Deadline, No-Op, and Anticipatory are all I/O
schedulers...

-James


 --
 Szénási István




[gentoo-user] Re: [OT crypto] How to encrypt a directory without root?

2010-01-05 Thread Harry Putnam
Neil Bothwick n...@digimed.co.uk writes:

 On Sat, 02 Jan 2010 22:12:29 -0600, Harry Putnam wrote:

 I have an encfs encrpted partition on my home machine.. However I want
 a back up offsite.   
 
 The encrypted partition would be mounted, the contents tarred/gzipped,
 mcrypt'ed on home machine then scp'ed to the remote for offsite
 storage once a week or so, overwriting each time.

 Why not just tar up the underlying encfs partition? The data is already
 encrypted, what's the point of decrypting it to encrypt it again? That
 way you don't need to rely on any encryption software on the remote
 computer.

I wanted the option of decrypting on the remote if need be... that is
if my home machine is not accessible for whatever reason.

For example, if I wanted a forgotten password laying in a text file
but encfs encrypted and on the remote.  When for one or another reason
I cannot get it from the home machine.

In your scenario, I'd need access to both home machine and remote at
the same time to first get the blob of encrypted data off the remote
and then to decrypt it on home.

Or am I missing some easy solution?

I've been having a troublesome freeze up on the home machine and not
making much progress in debugging it.

Of course the remedy is to fix whatever is causing it but for now,
when it happens the machine cannot be accessed from keyboard, or by
ssh.  It requires a full (hard) reboot to get it going again.

If I happen to be away from home when that happened, I'd want access
to a backup on the remote... but it would need to be decrypted to
be of any use.





Re: [gentoo-user] Re: [OT crypto] How to encrypt a directory without root?

2010-01-05 Thread Neil Bothwick
On Tue, 05 Jan 2010 16:09:03 -0600, Harry Putnam wrote:

  Why not just tar up the underlying encfs partition? The data
  is already encrypted, what's the point of decrypting it to encrypt it
  again? That way you don't need to rely on any encryption software on
  the remote computer.
 
 I wanted the option of decrypting on the remote if need be... that is
 if my home machine is not accessible for whatever reason.
 
 For example, if I wanted a forgotten password laying in a text file
 but encfs encrypted and on the remote.  When for one or another reason
 I cannot get it from the home machine.
 
 In your scenario, I'd need access to both home machine and remote at
 the same time to first get the blob of encrypted data off the remote
 and then to decrypt it on home.

Then use rsync instead of tar, then you can mount the remote filesystem
using sshfs and encfs to read individual files. It's a little slow as you
are layering two FUSE filesystems, but quicker than downloading a
complete tarball just to get at one file. I've used this method with an
online backup service and it works.


-- 
Neil Bothwick

3 things happen as you age: 1) Your memory goes; 2) uh..um


signature.asc
Description: PGP signature


Re: [gentoo-user] Understanding sets

2010-01-05 Thread Dale

Mike Edenfield wrote:

On 1/5/2010 12:53 PM, Zeerak Waseem wrote:


Ah well, having the sets in the wrong place would give me an error.
And regarding portage version, weren't sets included in v. 2.x.x? My
portage version is 2.1.7.16, anything above seems to be hardmasked...


No, sets appear starting in portage v2.2.  And yes, the whole 2.2 
series is hard-masked.  The stated reason is so that the 2.1 test 
versions will actually get some testing.


Opinions over precisely how silly it is to test old, being-obsoleted 
versions in deference to new, enhanced versions vary and can be found 
in the list archives.


Most unstable users have probably unmasked sys-apps/portage long ago 
and moved into the future.


--Mike




I'll second that.  I'm using portage-2.2_rc61 and it has been working 
fine.  If you want, you could always unmask that specific version.  I 
just unmask and keyword portage and so far, I haven't had any portage 
problems.  I do get the latest features tho.  ;-)


Dale

:-)  :-) 



Re: [gentoo-user] emerge @preserved-rebuild EVEN IF some needed package is masked

2010-01-05 Thread Dale

Helmut Jarausch wrote:

Hi,

emerge @preserved-rebuild fails to do any updating since a single
(needed) package has been masked.
But I do need to keep kdelibs:3.5 which pulls in kde-misc/kdnssd-avahi:3.5
which has been masked.

Is it possible to tell emerge to do the other updates which don't need
this?

Dropping kde:3.5 too early is one of the biggest disappointsment of
GenToo! For someone who needs some package depending on it, it's really
hard. (I do need kexi)

Many thanks for some help,
Helmut.

  


Gentoo wasn't at fault here.  KDE was the one that dropped the ball.  
Gentoo had to follow the knuckle heads at KDE tho. 


Dale

:-)  :-) 



[gentoo-user] kde 4.3 + compiz = no window border

2010-01-05 Thread Xi Shen
hi,

when i replace the kde windows manager with compiz, all windows lost
their window border, and i cannot move the window. how can i fix this?


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/
http://meme.yahoo.com/davidshen84/



Re: [gentoo-user] kde 4.3 + compiz = no window border

2010-01-05 Thread Ngoc Nguyen Bao
On Wed, Jan 6, 2010 at 10:08 AM, Xi Shen davidshe...@googlemail.com wrote:

 hi,

 when i replace the kde windows manager with compiz, all windows lost
 their window border, and i cannot move the window. how can i fix this?


 --
 Best Regards,
 David Shen

 http://twitter.com/davidshen84/
 http://meme.yahoo.com/davidshen84/


Well, maybe you're not turn on Window Decoration and Move Window plugins.
Run ccsm and enable them.
And remember to put emerald --replace in command field of Window
Decoration plugin.

-- 
Nguyễn Bảo Ngọc
http://www.facebook.com/pymaster


Re: [gentoo-user] Understanding sets

2010-01-05 Thread Mike Kazantsev
On Tue, 5 Jan 2010 18:41:35 +0100
Alex Schuster wo...@wonkology.org wrote:

 Zeerak Waseem writes:
 
  I have some questions about sets:
  1) Sets are just files with one package per line in /usr/portage/sets,
  right?


There are other kind of sets, for example, dynamic ones, from the
output of a given command, which allow you to do things like preserving
N last slots of package (gcc, kernel, etc) or creating your own
dependency trees. Important file here is /etc/portage/sets.conf.


 I think it's /etc/portage/sets instead. And there are also meta-sets like 
 system, world, module-rebuild, preserved-rebuild and more, defined in 
 /usr/share/portage/config/sets.conf. There is a little documentation in 
 the emerge man page, but I have no idea where else sets are documented. 

It's all documented in html pages, which will be installed if you'll
emerge portage with USE=doc, just look at the
/usr/share/doc/portage-2.2*/html/index.html


  2) Can a set be included in the world file?
 
 I don't think so, sets go into /var/lib/portage/world_sets.
 
  3) With set files in /usr/portage/sets and running emerge -u @foo
  portage yields that @foo isn't a valid package atom, any idea why this
  is?
 
 Your portage is too old? In case of an error, you should get an emerge: 
 There are no sets to satisfy 'foo' message, and a list of known sets.
 
   Wonko
 

-- 
Mike Kazantsev // fraggod.net


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: USB mass storage device slow in Gentoo, fast in Windows...? [SOLVED]

2010-01-05 Thread Szénási István
 BFS is a CPU scheduler, CFQ, Deadline, No-Op, and Anticipatory are all I/O
 schedulers...

Sorry, I've realized that when I googled for benchmarks and it was
compiled against the CFS scheduler. :-)


-- 
Szénási István