Re: [gentoo-user] help with inaccessible (trashed?) file

2010-02-07 Thread Alex Schuster
Walt Rarus writes:

> WALRUS ~ # whoami
> root
> WALRUS ~ # ls -l /usr/portage/x11-misc/icesndcfg/
> ls: cannot access /usr/portage/x11-misc/icesndcfg/icesndcfg-1.3.ebuild:
> Permission denied
> total 12
> -rw-r--r-- 1 rootroot2675 2008-05-09 09:37 ChangeLog
> -rw-r--r-- 1 rootroot 771 2008-05-09 09:37 Manifest
> ?? ? ?   ?  ?? icesndcfg-1.3.ebuild
> -rw-r--r-- 1 portage portage  224 2003-07-07 09:54 metadata.xml
> 
> The situation with icesndcfg-1.3.ebuild above is disallowing a complete
> "emerge --sync".
> I don't know how to resolve the problem since even root can't
> access/overwrite this (bogus?) file. Any help available?

Looks like a corrupted file system. A fsck might fix this. You can force 
one by 'shutdown -Fr now'. Sync your portage tree after this to make sure 
it is in a clean state.

Good luck,

Wonko



Re: [gentoo-user] emerge older version

2010-02-09 Thread Alex Schuster
Laurent Kappler writes:

> I'm tryin to emerge ImageMagick version 6.4.7.0 while current in
>  portage is 6.5.7.
> 
> How could I do that??

Look in the attic [*] for old ebuilds. Looks like 6.4.7.0 is not 
available, so maybe you will download 6.4.8.3 which is the nearest 
version. Put the ebuild into your overlay, create a manifest (like ebuild 
/usr/local/portage/media-gfx/imagemagick/imagemagick-6.4.8.3.ebuild 
manifest), and try to emerge =media-gfx/imagemagick-6.4.8.3. This might 
work, but maybe there is other software you have installed that needs a 
newer version - then it would not work so easily.

Why do you need it anyway? You could also just fetch the tarball from 
imagemagick.org, build it in a local directory, and install to 
/usr/local/.

Wonko

[*] http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-
gfx/imagemagick/?hideattic=0



Slow list? (was: Re: [gentoo-user] emerge older version)

2010-02-09 Thread Alex Schuster
Wow, seven mostly similar answers. Is the list becoming slow? When I 
posted about an hour after the question was posted, there were no answers 
yet. Let's see how long this post takes to arrive. Usually it's just a 
matter of a few minutes.

Wonko



Re: [gentoo-user] Cron, bash, and java interacting badly?

2010-02-11 Thread Alex Schuster
Walt Rarus writes:

> I have a java (clojure, actually) program which is invoked via a bash
> script. When the script is invoked from the shell, the java program
> always runs and succeeds. However, when the script is invoked via a
> cron job, the java program always runs and crashes with a null pointer
> exception.

Cron jobs have a limited environment. The $PATH is shorter, many 
environment variables are not set. Maybe this is the cause?

> Any thoughts on how to debug the situation?

I would add "env > /tmp/myscript.env" to the top of the script, this puts 
all environment variables and their values into /tmp/myscript.env. Compare 
the outputs with diff, maybe you spot something which explains the 
behaviour.

Maybe you can replace the call to the script in your crontab with 
something like "bash -il /path/to/myscript", forcing it to run in an 
interactive login shell. I have not tried this, though, it's just an idea.

Wonko



Re: [gentoo-user] Keyword for dev-java/sun-j2ee

2010-02-11 Thread Alex Schuster
Dale writes:

> chrome://messenger/locale/messengercompose/composeMsgs.properties:

Whoops?

> Have you synced lately?  According to mine it is not masked or
> keyworded and should install without changing anything.  I synced last
> night and I get this:

You're probably running an x86 system, while dhk probably is at amd64. But 
this is not part of the KEYWORDS line in the ebuild:

wo...@weird ~ $ grep KEYWORDS /usr/portage/tree/dev-java/sun-j2ee/sun-
j2ee-1.3.1-r4.ebuild 
KEYWORDS="-ppc x86"

Wonko



Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? -> bar performance so far

2010-02-15 Thread Alex Schuster
Frank Steinmetzger writes:

> Am Montag, 15. Februar 2010 schrieb Willie Wong:

> > Instead of guessing using this rather imprecise metric, why not just
> > look up the serial number of your drive and see what the physical
> > sector size is?
> 
> Well, at differences of 50%, precision is of no relevance anymore.
> Also, I already did look it up and it didn’t turn up any conclusive
> results. Just search hits from fdisk output of people who are
> partitioning the drive. So the only thing I can think of yet is to
> call Samsung’s expensive hotline. Hm... oh well, perhaps I could write
> an e-mail, because I’m too niggard and phonophobe to make a call. ^^

No need for either, just look up the drive on Samsung's homepage [*]. It's 
512 bytes/sector, you should be fine.

Wonko

[*]http://www.samsung.com/global/business/hdd/productmodel.do?group=72&type=94&subtype=99&model_cd=446



Re: [gentoo-user] Re: Gentoo on SSD

2010-02-17 Thread Alex Schuster
Stefan G. Weichinger writes:

> Am 17.02.2010 20:10, schrieb walt:

> > Are you using ext4 on the hard drives also?  For how long?
> 
> phew, for quite some time ... I'd have to think a while ...
> AFAIK there is no way to read that info from the fs
> 
> "formatted on 2009-06-." or something ;-)

dumpe2fs /dev/root | grep "Filesystem created:"

Wonko



Re: [gentoo-user] silly daylight saving

2010-02-17 Thread Alex Schuster
Enrico Weigelt writes:

> Neil Bothwick wrote:
> > What with their greenhouse gas emissions and insistence on their
> > farmers working at unearthly hours, those cows have a lot to answer
> > for. When are they going to start considering the environment?
> 
> What frakk'in greenhouse gases ? Is anyone stupid enough to still
> believe in that synthetic religion of men-made-global-warming ?

I am stupid enough.

Wonko



Re: [gentoo-user] [OT] Screen sharing software or similar

2010-02-18 Thread Alex Schuster
Renat Golubchyk writes:

> My relatives live 200 km away. They have a daughter, and I need to help
> her out with school homework etc. At the moment we cannot do it on a
> regular basis, because doing it over the phone is really difficult and
> time consuming. I thought some screen sharing software would solve
> this. A video conferencing or a VoIP feature would be a nice bonus,
> too. For easy writing I would probably buy graphics tablets since
> writing math formulas or drawing isn't particularly fast or easy with
> keyboard and mouse.
> 
> So, is there some easy-to-use Linux program? I have Linux desktops on
> both ends (Ubuntu and Gentoo), so portability or OS-independence is not
> a requirement.
> 
> Do you have any other ideas? For the record, we have a 2 Mbit DSL line
> on one end and a 6 Mbit on the other. Those are, of course, downstream
> bandwidth rates.

You could use Skype to replace your phone communication, if you don't mind 
its spookiness (I do). It also does video conferencing. If plain audio is 
enough, I'd use TeamSpeak.

Some jabber client for text conversations would be fine. Also works for 
formulas, if you know some LaTeX...

And then VNC (epecially TightVNC) to share your drawings on the tablet.

For ultimate performance, you could install NX, which makes X forwarding 
amazingly fast. One party connects to the remote NX server and opens a KDE 
3.5 session, which will work nearly as fast if it were opened locally. And 
the other connects via VNC to that KDE session, which is also very fast 
then because it runs locally, not over DSL. I do not know if other window 
managers than KDE 3.5 have the VNC sharing feature, I have not found it in 
KDE4.

You might need some port forwarding if you both are NATed behind a router.

Wonko



Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...

2010-02-19 Thread Alex Schuster
James Homuth writes:

> I performed a bit of an update on my laptop a day or two ago, and after
> reboot, I lost the ability to do anything with /dev/hda*. I currently
> have 0 swap space, and according to stat, ls etc, they don't exist.
> But, booting to an install CD I burned for diagnostic purposes, it
> sees them just fine. Also, and this is the strange part. It boots no
> problem, so the OS is able to mount at least /dev/hda3, even though
> from the command line I'm not seeing it. I'm probably missing
> something completely dead obvious (it's after midnight here and all),
> and Google's turning up nothing, so if someone could kindly slap me in
> the face with it, that'd be appreciated. Thanks either way for
> whatever help comes my way.

See the "When is a disk not a disk" thread a few days ago. I guess this is 
the same problem:

--
On Monday 08 February 2010 02:25:17 Nikos Chantziaras wrote:

> b) You have a corrupted partition table that you can try to repair
>  with the "testdisk" tool (after you make a full backup of your
>  disk.)

That seems to have been it. Testdisk did indeed write a new partition 
table, minus one of the partitions which it insisted on deleting so I 
suppose something was wrong with it.
--

Wonko



Re: [gentoo-user] KDE? Get me out of here!

2010-02-24 Thread Alex Schuster
Volker Armin Hemmann writes:

> On Mittwoch 24 Februar 2010, Kevin O'Gorman wrote:

> > The reason I bring this up is that my account just froze on me from
> > running out of disk space.  A little research showed that an
> > odd-sounding thing called nepomuk was using 7.2 G (SEVEN GIGS) in
> > some dotfiles.  It turns out to be a KDE client - whatever that is. 
> > I've got a lot of space here and there, but my /home partition was
> > never near full before.
> > 
> > I'd like to just nuke nepomuk, but fear the consequences.  I'm
> > seriously entertaining ideas about a more efficient way to run my
> > Gentoo system, although I'll probably keep kdelibs because I like a
> > few of their games. Similarly for gnome.  But I wonder what I should
> > do about the rest.
> > 
> > Ideas?
> 
> just deactivate it.
> 
> But one thing surprises me - I have 400gb of data in /home. And nepomuk
> just needs 600mb...

I had similar problems with KDE 4.2. And I wonder why strigi keeps 
indexing some of my files every time log into KDE, which I am sure were 
not changed in the meantime. But I do not notice this much, because Amarok 
creates much more disk I/O before it crashes every time I log in. Then I 
restart it, it scans for a while, and works then. Maybe I'll downgrade, or 
I'll wait for an update, I got so used to Amarok I do not want to change.

That's my experience with KDE4. It's really nice, has cool features and is 
getting better and better, but it's always many things which do not run 
correctly. With every KDE update, some are fixed, and other problems 
appear.

Problems that I had with 4.2 and still have with 4.4:

- Session saving sometimes does not work
- Kmail complains about running two times when started at login by a saved 
session
- I get dialogs about crashed konqueror sessions I can restore
- kthumbnail thumbnails my files over and over again, two days ago I had a 
load of 400
- Amarok: crashes, ogg file corruption, wrong playlists, sloow response 
(sometimes I miss the first 1-2 seconds)
- many bundled plasmoids seem to be buggy
- Krunner is very nice, if only it would not crash so often or hang for 
seconds, so that using the K menu is easier. Once I had to remove its 
config file because it would not start at all.
- My additional Konqueror profiles do not appear in the file menu. I can 
enable them, they are lost at next login.
- Under load the panel does not react well, clicks onto another desktop 
take > 10 seconds to happen sometimes. Switching via hotkey is still fast.
- This KMail window has spell checking which is nice to have. But when I 
open the spell checking dialog in order to add words to the dictionary, I 
always have to start at the very beginning and reply to all problems until 
I get to the word I want it to learn. Oh, and it even has problems with 
numbers like 4.2. This looks to me like the typical example of a nice 
idea, but it's implemented so badly I just do not use it.

And so on. But it's not so bad I cannot work with it (well, sometimes it 
is, and then I have to fix it, like when the password dialog no longer 
accepted passwords), and so I keep using it, waiting it to become really 
stable and usable.

Wonko



Re: [gentoo-user] Re: CUPS - Some apps see printers, some do not

2010-02-25 Thread Alex Schuster
roun...@hotmail.ru writes:

> roun...@lister ~ $ sudo emerge -vp equery
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> 
> emerge: there are no ebuilds to satisfy "equery".
[...]
> So what package is it part of?

wo...@weird ~ $ equery belongs /usr/bin/equery
 * Searching for /usr/bin/equery ...
app-portage/gentoolkit-0.3.0_rc8-r1 (/usr/bin/equery)

Wonko



Re: [gentoo-user] KDE? Get me out of here!

2010-02-25 Thread Alex Schuster
Peter Humphrey writes:

> On Thursday 25 February 2010 00:10:18 Alex Schuster wrote:
> > This KMail window has spell checking which is nice to have. But when
> > I open the spell checking dialog in order to add words to the
> > dictionary, I always have to start at the very beginning and reply to
> > all problems until I get to the word I want it to learn.
> 
> You might like instead to try right-clicking on the word you want it to
> learn. Sorry if eggs meet grandmothers here.

Nice! Did not see this as it only works if the word is not highlighted.

> > Oh, and it even has problems with numbers like 4.2. This looks to me
> > like the typical example of a nice idea, but it's implemented so
> > badly I just do not use it.
> 
> I don't have any of these problems with kmail. It really is a
> first-rate program.

I like it, too, I'm using it for years now even if it crashed daily in 
3.5. 
Kmail was just an example, the spell checking probably works the same in 
all KDE applications. And this is not a big problem at all, it's more of a 
symptom of KDE4 things being not so well-tested yet.

Wonko



Re: [gentoo-user] recovery from /var corruption?

2010-02-26 Thread Alex Schuster
Mark Knecht writes:

> Do I just watch the logs looking for problems? I have no way of
> knowing right now whether this was a disk problem that's going to come
> back, a 1 time deal due to power, or something else entirely.
> 
> As these cheap machines that don't use RAID what's the right way to
> go? emerge -e @world and then wait for the next event? Do nothing and
> wait?

Emerge smartmontools, then:

smartctl -h /dev/sda  # get overview of what the drive thinks about itself

smartctl -t short /dev/sda # start short self test
Wait
smartctl -l selftest /dev/sda  # see results

smartctl -t long /dev/sda  # start long self test
Wait a lot longer
smartctl -l selftest /dev/sda  # see results

You can continue working in the meanwhile, there will be no performance 
impact. You will see something like this in the log:

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num  Test_Description   Status  Remaining  LifeTime(hours)  
LBA_of_first_error
# 1  Short offline  Completed without error   00%2275   -
# 2  Extended offline   Completed without error   00%2270   -
# 3  Extended offline   Completed without error   00%1799   -
# 4  Extended offline   Completed without error   00% 197   -
# 5  Extended offline   Completed without error   00%  26   -

I you have a '-' in the right column, the disk has found no errors. If 
there is a number, than it's the position of the first error.

There's also badblocks, this will check every block and output the bad 
ones: badblocks -sv /dev/sda

badblocks -svn /dev/sda will do a read-write test. In case of a bad block, 
the drive should exchange it with a spare one. Maybe this happens already 
in read-only mode, I am not sure.

Also watch for errors in syslog or via dmesg, there should be some when 
bad blocks are being accessed.

Wonko



Re: [gentoo-user] Re: Removing KDE 3.5? Or reason to keep it around?

2010-02-26 Thread Alex Schuster
BRM writes:

> > > If you keep your world file (/var/lib/portage/world) tidy, simply
> > > deleting all lines with KDE3 packages and running emerge -a --
> > > depclean will take care of it.
> > 
> > > You *do* keep your world file tidy, don't you? :P
> > 
> > That would be the easiest method.  If you use the kde-meta package
> > like I do, just remove the one for KDE 3 and let --depclean do its
> > thing.  It should get all of it.
> 
> I actually don't touch the world file, and just do the 'emerge world
> -vuDNa' for updates. From my POV, that is emerge/Portage's job - not
> mine.

I'd also leave the world file alone, and emerge -C the packages I want 
removed.

> Aside from that, I'm not sure I have ever really run "emerge
> --depclean", but I also rarely uninstall anything, but don't install
> things left or right to try out either, so typically upgrades are all
> I need to do.
> 
> Having just done a compiler upgrade, I can say that there are roughly
> 1100 packages (emerge -eav) in world that were recompiled.
> 
> I was just contemplating - KDE4 is stable, and I don't see myself
> running KDE3 again; so why keep it around. If 'emerge world -vuDNa'
> will remove it when it gets pushed off the main trunk, then that's
> probably fine with me - since that seems to not be very far out now.
> If not, then I definitely want to remove it now as there is no other
> reason for keeping it around.

KDE3 is no longer in the portage tree, it's in the kde-sunset overlay.

World updates do not remove things, you need to use emerge --depclean for 
this. It will probably want to remove a lot when you never depcleaned 
before, so be sure to check. Put the stuff you want to keep in your world 
file with emerge -n, then depclean the rest. I guess it will remove your 
whole KDE3 that is no longer in portage. If you like to keep it, add the 
kde-sunset overlay with laymanl, and maybe emerge kde-base/kde-meta:3.5.

> That's the only issue. My only concern is software (e.g. KDevelop) that
> may not have been updated to KDE4 yet. (Not a fan of KDevelop3;
> waiting to see how KDevelop4 is going to shape up.)

The KDE4 version is in the kde overlay, but I do not know if it is usable 
already.

Wonko



Re: [gentoo-user] When copying an os to new disk

2010-02-26 Thread Alex Schuster
Kyle Bader writes:

> > I opted to reinstall from source that machine, which wasn't exactly a
> > bad choice anyway.  But as always, rtfm is good advice!  Thanks (not
> > sarcastic, except to mock myself).
> 
> Another option other than rsync or dd is to use tar:

Yeah, that's what I usually do.n The fastest method probably is star, 
but the syntax is a little different.

> tar cf - $old_dir | ( cd $new_dir: tar xf - )
> tar cf - $old_dir | ssh $other_host "( cd $new_dir: tar xf - )"
^
The ':' separating commands should be a ';'. Using the -C option would be 
a little easier, but your method also would work for star. This piping 
through ssh is quite cool, isn't it.

If $old_dir is the root partition, I would bin-mount it first to somewhere 
else, so other directories mounted to it (especially/dev, /proc and /sys) 
are not copied:
mount -o bind / /mnt
old_dir=/mnt

Wonko



Re: [gentoo-user] recovery from /var corruption?

2010-02-26 Thread Alex Schuster
Mark Knecht writes:

>Yes, I do use smartctl on some other machines although I'm not very
> good about it and your write-up is helpful so thanks for that.
> 
>My wife's machines is older and and I don't think SMART is
> supported on her drive. Note the lack of a * on the SMART line in
> hdparm -I:

Okay, but it still states:

>  *SMART error logging
>  *SMART self-test

So maybe smartctl -t long /dev/hda still works? Just give it a try.


> dragonfly ~ # smartctl -H /dev/hda
> smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce
> Allen Home page is http://smartmontools.sourceforge.net/
> 
> SMART Disabled. Use option -s with argument 'on' to enable it.
> dragonfly ~ # smartctl -s on /dev/hda
> smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce
> Allen Home page is http://smartmontools.sourceforge.net/
> 
> === START OF ENABLE/DISABLE COMMANDS SECTION ===
> Error SMART Enable failed: Input/output error
> Smartctl: SMART Enable Failed.
> 
> A mandatory SMART command failed: exiting. To continue, add one or
> more '-T permissive' options.
> dragonfly ~ #
> 
> I've not tried the -T permissive options.

I would :)  There is also a BIOS setting for SMART, but I think this does 
not matter here, and it's only for being able to report a failing drive 
before booting.

> I've never used badblocks as it seems I should only do that off-line.
> This might be a good time to boot with a CD and try it out.

In read-only mode, you can use it when the system is running. Only the 
write test (option -n) refuses to run if partitions are mounted from the 
drive. So I'd do the 'badblocks -sv /dev/hda' right now, if you do not 
need the drive at full speed for a while. You can interrupt it at any 
point with Ctrl-Z and continue with the fg command.

> Maybe I should just get a new drive that supports SMART?

When the drive is that old it does not support SMART, you probably can get 
one ten times as huge for much less than it had cost you. And I would 
trust a new drive much more than such an old one. Depends on how important 
the data is, if a total loss would not be too painful and I had backups, 
and I would not need more speed and size, I would keep it if it shows no 
errors.

Wonko



Re: [gentoo-user] recovery from /var corruption?

2010-02-26 Thread Alex Schuster
Mark Knecht writes:

> On Fri, Feb 26, 2010 at 8:01 AM, Alex Schuster 
> wrote:

> > Okay, but it still states:
> >>  *SMART error logging
> >>  *SMART self-test
> > 
> > So maybe smartctl -t long /dev/hda still works? Just give it a try.
> 
> No, -t long fails the same way. Basically every time I try to use
> smartctl on the drive it seems to issue one of these 3-line reports
> about SectorIDNotFound in dmesg. My other machines don't do this. Not
> a good sign I think...
> 
> hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
> hda: task_no_data_intr: error=0x10 { SectorIdNotFound },
> LBAsect=16777008, sector=18446744073709551615
> hda: possibly failed opcode: 0xb0

Uh-oh. Okay, I guess it just won't work then.


> Could this have ANYTHING to do with kernel configuation? Is there
> anything required at the kernel level that I might not have turned on?

I'm pretty sure it has nothing to do with the kernel, but with your drive 
being incapable of the SMART commands.

But I guess using badblocks is not that different in the end. The SMART 
selftest runs in the background and does not create disk I/O, but I think 
it does nothing so much different from badblocks.

Wonko



Re: [gentoo-user] How should I clean up my broken system?

2010-02-26 Thread Alex Schuster
Peter Humphrey writes:

> I'm still using etc-update, which seems adequate except when squid is
> upgraded, but I thought I'd try cfg-update. Problem though: it demands
> dev-util/xxdiff which doesn't exist. What's a suitable substitute?

Whatever you like. Just edit the MERGETOOL definition in /etc/cfg-
update.conf:

# +--+
# | MERGETOOL \
# 
++---+
# |The recommended tool for merging is beediff but you can also use other|
# |tools if you don't like beediff.  The Supported tools are listedbelow:|
# +--+-+--+--+
# | beediff  | GUI | QT   |  |
# | kdiff3   | GUI | KDE   (or Gnome with QT) |  |
# | meld | GUI | Gnome (or KDE with GTK)  |  |
# | gtkdiff  | GUI | Gnome (or KDE with GTK)  | STAGE 3 not supported!   |
# | gvimdiff | GUI | Gnome (or KDE with GTK)  | STAGE 3 not supported!   |
# | tkdiff   | GUI | Gnome (or KDE with TK)   |  |
# | vimdiff  | CLI | Systems without X| STAGE 3 not supported!   |
# | sdiff| CLI | Systems without X| STAGE 3 not supported!   |
# | imediff2 | CLI | Systems without X| STAGE 3 not supported!   | 
+--+-+--++
MERGE_TOOL = /usr/bin/kdiff3

Wonko



Re: [gentoo-user] aclocal failing on all emerges

2010-03-01 Thread Alex Schuster
Harry Putnam writes:

> All fail when aclocal is trotted out.  I don't see recent threads here
> about it... googling turns up a herd of bugs involving aclocal but
> then newest is 2008.
> 
> The newest threads here that even mention aclocal date around Jan 20.
> 
> I didn't change the compiler (gcc-4.3.4) since the first sync and
> update world.
> 
> gcc-4.4.3 is also installed but I'm using 4.3.4
> 
> Today I ran:
> 
>  emerge -v sys-devel/automake-wrapper (the package that has aclocal in
>   it)

I'd try to emerge the other autotools stuff, too:

emerge -a $( qlist -CeLS sys-devel/autoconf sys-devel/automake )

Just an idea, as no better ones came up. Looks like you have a very nasty 
problem there.

Wonko



Re: [gentoo-user] KDE? Get me out of here!

2010-03-01 Thread Alex Schuster
Alex Schuster wrote:

[KDE4 problems]
> And so on. But it's not so bad I cannot work with it (well, sometimes
> it is, and then I have to fix it, like when the password dialog no
> longer accepted passwords), and so I keep using it, waiting it to
> become really stable and usable.

And another weekend of KDE4 trouble. I rebooted after some upgrades, along 
those were Qt and MySQL. Now, plasma-desktop crashed, also when restarting 
it on the command line. So again I renamed the .kde4 directory and got one 
from my last backup. The desktop came up, but kmail failed, due to akonadi 
not finding its database. I thought it had to do with the mysql update so 
I masked that one and tried to build an older version, but it did not 
build. Now I see this was not the old version I had running, but something 
in between.
Anyway, the problem was another one, I had to rebuild qt-sql.
I had some Qt blockers during the last @world update that the newest 
portage did not resolve, so I did an emerge -1av $( qlist -I qt- ) - after 
this, @world was updateable. Maybe this emerge -1 stuff was the problem, I 
have no idea.

Then I wanted my last session back, as I had changed some things since the 
last backup and I also wanted my konqueror sessions - no idea where those 
are stored. So again I took the .kde directory (A) which was not working 
and the one from the last backup (B), and moved files from B to A until A 
was working again. And did so until I found which exact file was 
responsible for plasma-desktop not running (it was share/config/plasma-
desktop-appletsrc).

I had to reboot many times, because when KDE4 was running and plasma 
crashed, I had no way to log out adn had to restart the X server. And when 
switching to a text console and back to the newly started X server, I get 
an empty display on all consoles, probably due to the fglrx drivers. I 
know that already, but as I did not got any other drivers to run, I am 
stuck with ati-drivers. At least I have desktop effects and stuff running.

You can lose a lot of time with this. And I am wondering if KDE4 is the 
right thing for me. On the one hand, I like it very much. And it is 
getting better and better. I just discovered that I can tab windows, this 
is soo cool.
On the other hand, from time to time I have show-stoppers, and then I 
cannot use kmail, or no KDE4 at all. And have to invest time to solve 
this. And there are these annoying things. Like Amarok being very 
unstable, and taking 5 minutes to start. What the heck is it doing in this 
time? And KDE4 is slow. That maybe another problem, something seems to be 
wrong here, I'd expect the system to be faster, and not make any pauses 
when emerge is running (niced to 19 and also ioniced). I do not want to 
wait for seconds when switching desktops (sometimes its fast, sometimes 
not).

Sorry for the whining,

Wonko



Re: [gentoo-user] Advice/best practices for a new Gentoo installation

2010-03-02 Thread Alex Schuster
Paul Hartman writes:

> - utilizing device labels and/or volume labels instead of hoping
> /dev/sda stays /dev/sda always

Good idea. Or use LVM.

> - better partitioning scheme than my current root, boot, home (need
> portage on its own, maybe /var as well?)

I like to have many partitions. When my /usr/portage/distfiles or /tmp 
gets full, I do not want this to affect my system.

> - some kind of small linux emergency/recovery partition? equivalent to
> a liveCD maybe.

Maybe, but a liveCD is also fine and can be used elsewhere, too.

> - best filesystem for portage? something compressed or with small
> cluster size maybe.

I think reiserfs with the notail option is recommended.

> - omit/reduce number of reserved-for-root blocks on partitions where
> it's not necessary.

I reduce it for large partitions, but do not set it to 0 in order to 
prevent fragmentation.

> - I have never used LVM and don't really know about it. Should I use
> it? will it make life easier someday? or more difficult?

A little more difficult in the first place, until you get used to it. But 
if you need to change things later, it makes this much easier. /var is too 
small? Well, enter lvresize -L +1G /dev/myvg/var && resize2fs 
/dev/myvg/var and you have 1G more of space after half a minute. No need 
to take the system down, boot a rescue system and use parted.

Short how-to:
- create some partitions you will use for LVM (/dev/sda[56789])
- make them physical volumes: pvcreate /dev/sda[56789]
- make them a volume group:   vgcreate myvg /dev/sda[56789]
- create logical volumes: lvcreate -L 5G -n usr myvg (/usr partition)
- create file system: mke2fs -j -L usr /dev/myvg/usr

> - Is RAID5 still a good balance for disk cost vs usable space vs data
> safety? I can't/don't want to pay for full mirroring of all disks.

Probably, if you need RAID. But I'd say RAID is not a real backup, so you 
would need even more disks space for that. I prefer to use a 2nd disk for 
backups I make frequently with rdiff-backup. They have the same structure 
as the original, only that each partition has an additional 'rdiff-backup-
data' directory that stores the data of older snapshots.
Some months ago my main drive started having errors, so I took it out, 
booted with a CD, renamed the volume group of the backup disk to that of 
the original one ("vgrename backup system"), and that was all. Using RAID 
would have been even easier, but does not help when I accidentally remove 
a file, or want a file as it was a whiel ago.
Keeping the older snapshots needs some extra space, but this is 
compensated by not having to backup everything including 
/usr/portage/distfiles, /var/tmp/portage etc.

Wonko



Re: [gentoo-user] KDE? Get me out of here!

2010-03-03 Thread Alex Schuster
Alan McKinnon writes:

> On Monday 01 March 2010 18:08:05 Alex Schuster wrote:
> > On the other hand, from time to time I have show-stoppers, and then I
> > cannot use kmail, or no KDE4 at all. And have to invest time to solve
> > this. And there are these annoying things. Like Amarok being very
> > unstable, and taking 5 minutes to start. What the heck is it doing in
> > this time?
> 
> Fuck knows what amarok-2x does for the first 5 minutes. I *think* On my
> system it scans the music directory, presumably to find updates that
> happened when amarok was not running. Fair enough, can't argue that,
> but why is it so *slow*???

Yes, it scans the collection, I just verified that by removing a folder 
from my collection. Start-up takes 7 minutes, I guess this also slows down 
my KDE4 start-up even further (strigi also scans some stuff for about a 
minute, along this music files I did not touch in any way). So when I save 
my KDE session I have to remember to quit amarok before that. Of course, I 
also have to remember to start amarok some time after I logged in, so I 
can play music when I want without having to wait 7 minutes first.

This does not feel right...

BTW, a find /data/mp3 -type d takes about a minute. Checking the date of 
the directories to verify they did not alter since the last scan should 
not take that much longer.

Ah, I see the problem. It mainly scans /data/mp3/incoming, a directory I 
have NOT selected as collection folder (but most other directories in 
/data/mp3 are selected). Still, those files do not show up in my 
collection, which is fine - some time ago amarok did index all in 
/data/mp3, even if a directory was not selected.


> Fuck also knows what the amarok devs are doing in general. I still
> can't find a way to move stuff to an mp3 player like the old 1.4
> version did. And the library thingamagij still doesn't always update
> tags, or put tag changes that it itself did into it's own database. It
> gladly accepts any changes you make in the Edit Tags dialog, and tries
> to write them, even if it knows it cannot do it (no support for that
> format, permissions, etc). Then, no warning or message about this.

Ah, this looks familiar, I ran into this, too.

> Depending on which bleeding edge latest-svn commit build you happen to
> get on any given day, this last might or might not tell you something
> in the status bar.

I'm always using the newest version that is not hard-masked. with every 
new version, some things get better, but others get worse. This delays and 
startup times are new to me, but on the other hand I did not get any file 
corruption for a long time.
I do not like the new toolbar though. Where are the stop, forward and back 
buttons? And for the volume control I have to move the mouse in a circle 
around it... or use the scroll wheel, okay. Nah, I liked it better the way 
it was before.


> For all the above reasons, and more, I have switched to clementine
> (it's in portage). It's a Qt port of amarok-1.4 and has equivalents of
> all the music- playing goodness that amarok used to have. It doesn't
> do tags, external players, wikipedia etc etc, it just plays music. And
> you have to tag your music by other means with eg kid3. I can live
> with that. At least it starts and stays up.

Nice! But not for me. I like the wikipedia stuff. And tagging, now that it 
seems to work. And what amarok is supposed to become. Yes, I like it much 
better than the old amarok, it's just that things do not already work 
fine. So I will keep suffering, until some day amarok will not do all the 
annoying stuff it currently does. The day will come! Hopefully long before 
they start coding amarok-3 and all gets worse again. I'll just have to 
wait. And wait.

Thanks anyway for the tip, at least I can use clementine when I see that 
amarok is not running yet and did not do its 7 minutes of scanning 
already.

Wonko



Re: [gentoo-user] Advice/best practices for a new Gentoo installation

2010-03-03 Thread Alex Schuster
Neil Bothwick writes:

> On Tue, 2 Mar 2010 10:35:42 +0100, Alex Schuster wrote:
> > > - best filesystem for portage? something compressed or with small
> > > cluster size maybe.
> > 
> > I think reiserfs with the notail option is recommended.
> 
> The data I've seen indicates that ext2 is fastest, that's what I use.

I thought the small files of the portage tree especially profit from the 
notail option in reiserfs? Did you change the block size?

> There's no need for journalling on the portage tree, it's small enough
> to fsck quickly and if it does get broken, reformat and resync.

Would the journaling overhead be noticeable? 
I also had used ext2 for my portage tree first, then I read somewhere that 
reiserfs would be the best. BTW, I have distfiles and pkgdir somewhere 
else, if not the fsck would not be so fast.

Just for fun, I just copied my $PORTDIR into my tmpfs, emerge -DpN @system 
@world takes between 81 and 53 seconds. With reiserfs, I get 130 seconds 
first ($PORTDIR was unmounted first and mounted again to clear the 
caches), and 57 seconds in the second attempt.

I had expected that tmpfs would be even faster. I think I just keep it the 
way it is now.

Wonko



Re: [gentoo-user] Advice/best practices for a new Gentoo installation

2010-03-03 Thread Alex Schuster
Neil Bothwick writes:

> On Wed, 3 Mar 2010 12:52:55 +0100, Alex Schuster wrote:
> > > The data I've seen indicates that ext2 is fastest, that's what I
> > > use.
> > 
> > I thought the small files of the portage tree especially profit from
> > the notail option in reiserfs?
> 
> They benefit compared with using reiser with tail-packing.

Oh my. I have it the other way around, and never even thought much about 
what this does.

> > Did you change the block size?
> 
> I had to change both the block size and blocks per inode, otherwise I
> would run out of inodes on a 1GB filesystem. You have to admire the
> user-friendliness of ext!

I only wished I could add more inodes after all are out, because this 
happens quite frequently to me. But yes, it's nice I can specify this at 
all.


> > > There's no need for journalling on the portage tree, it's small
> > > enough to fsck quickly and if it does get broken, reformat and
> > > resync.
> > 
> > Would the journaling overhead be noticeable?
> > I also had used ext2 for my portage tree first, then I read somewhere
> > that reiserfs would be the best. BTW, I have distfiles and pkgdir
> > somewhere else, if not the fsck would not be so fast.
> 
> It's certainly noticeable compared with ext3. Many benchmarks do show
> ext2 to be the fastest filesystem, probably because of the lack of
> journalling overhead.

When I saw some, it was maybe 15% difference, and that probably due to 
writes I assume. The portage tree is written during sync only, and then I 
do not care about speed. But would accessing lots and lots of small files 
be slowed down by journaling?

> Like you, I have $DISTDIR and $PKGDIR elsewhere, those files really
> should not be mixed in with the portage tree.
> 
> > Just for fun, I just copied my $PORTDIR into my tmpfs, emerge -DpN
> > @system @world takes between 81 and 53 seconds. With reiserfs, I get
> > 130 seconds first ($PORTDIR was unmounted first and mounted again to
> > clear the caches), and 57 seconds in the second attempt.
> > 
> > I had expected that tmpfs would be even faster. I think I just keep
> > it the way it is now.
> 
> The exact same thought occurred to me. With a local tree to sync from,
> tmpfs seemed a good choice (you could sync it from /etc/conf.d/local)
> but it seems like it is not worth bothering with.

I would need more memory for that, I'm not at amd64 yet. But I probably 
should migrate anyway, and get another 4GB of memory.

> I'll try a reiser3
> filesystem without tail packing to see if it beats ext2.

I backed up my portage tree, re-created the reiserfs partition, and 
mounted without notail option. The same emerge command now takes about 
three minutes... no, on 2nd try it's five. Hmm... ah, clementine is 
indexing files. Why does it do this, I did not change files. Oh, and it 
has indexed all of my /data/mp3, while I only gave it four subfolders to 
index. Why does no audio player just accept my choices for what the 
collection is, and add other stuff?

The next test gives 93 seconds, that's nice.

Wonko



Re: [gentoo-user] KDE? Get me out of here!

2010-03-03 Thread Alex Schuster
Mick writes:

> On Monday 01 March 2010 16:08:05 Alex Schuster wrote:

> > And another weekend of KDE4 trouble. I rebooted after some upgrades,
> > along those were Qt and MySQL. Now, plasma-desktop crashed, also
> > when restarting it on the command line.
> 
> [snip ...]
> 
> > Sorry for the whining,
> 
> Nah!  It's good to vent every now and then.  :-))

Thanks! 

> Is it perhaps that you have a very complex/overloaded plasma set up?

Not really.
I would like to, though, this stuff is actually quite nice. I changed my 
setup to have a different activity for each desktop, and I like it. I hope 
this stuff becomes more stable and usable soon. And I am missing features. 
Why can't I tell a plasmoid to appear on several desktops / activities I 
select, and not only on one? Why can't I insert another activity/desktop 
between the ones I already have? At the moment, I think I would have to 
close all plasmoids and re-open them on the new activity I want them to 
be, this is annoying.
But again, I like the whole idea, it's only not perfect yet.

> I've updated KDE on two machines and went swimmingly well.  On one
> machine I first removed qt3 and then had no problems whatsoever.  On
> the other I can't recall what I did with qt3 ...
> 
> Other than that, I've noticed this sort of behaviour in the past with
> KDE2 and KDE3 when I was trying to use KDE while major apps were being
> updated.

This might have been the problem. But I would not like to log out for 
that, I just do the world updates from time to time when the machine has 
not much else to do, but I like to keep my desktop session running.

Wonko



Re: [gentoo-user] Pending layman directory "relocation"

2010-03-03 Thread Alex Schuster
Alan McKinnon writes:

> On Wednesday 03 March 2010 14:21:23 Neil Bothwick wrote:

> > That's right, they should both be in /var.
> 
> I concur. /usr has a long tradition is Unix of often being mounted
> read-only (think thin clients that mount it over NFS).

Any idea why it's different with Gentoo in the first place? /usr also 
always sounded wrong to me for the portage tree.
And for other things. Shouldn't /usr/src go somewhere into /var? And 
shouldn't /usr/share/config stuff be in /etc?

> My set up is:
> 
> portage:  /var/portage/
> my overlay:   /var/portage/local/alan/
> layman:   /var/portage/local/layman/*
> 
> As portage is hard-coded to not fiddle with $PORTDIR/local/, this works
> well for me and every ebuild on the system is under one mount point.

Where do you have the distfiles? I now have it like this:

/var/portage:distfiles, pkgdir and tree
/var/portage/tree:   portage tree (on extra partition)
/var/portage/layman: layman
/var/portage/local:  my ebuilds

Wonko



Re: [gentoo-user] Advice/best practices for a new Gentoo installation

2010-03-03 Thread Alex Schuster
Willie Wong writes:

> On Wed, Mar 03, 2010 at 12:52:55PM +0100, Alex Schuster wrote:

> > I thought the small files of the portage tree especially profit from
> > the notail option in reiserfs? Did you change the block size?
> 
> You mean the other way around, right?

Oh dear. Yes. Thanks.

> reiser defaults to tail-packing,
> which can cause problems with GRUB and LILO, which is why notail is an
> option which turns off tail-packing for those crazy enough to use
> reiser on /boot.
> 
> If you use notail on the portage tree, you get rid of that advantage,
> then Neil is absolutely correct: there's not too much point in
> journaling the portage tree, and if you actively make reiser
> not-competitive on the storage-space direction, the only metric left
> to compare is speed, and ext2 is faster.
> 
> Incidentally, if you are willing to sacrifice speed for space, then a
> sparsefile for /usr/portage may also be an option.

I had this once on a smaller machine, but now I'd prefer it the other way 
around, there's plenty of space available. I have 15G for distfiles and 
pkgdir, so I don't worry about some 100MB for the portage tree.

Wonko



Re: [gentoo-user] KDE? Get me out of here!

2010-03-03 Thread Alex Schuster
Alan McKinnon writes:

> On Wednesday 03 March 2010 13:27:45 Alex Schuster wrote:

[RANT RANT RANT]

> > Ah, I see the problem. It mainly scans /data/mp3/incoming, a
> > directory I have NOT selected as collection folder (but most other
> > directories in /data/mp3 are selected). Still, those files do not
> > show up in my collection, which is fine - some time ago amarok did
> > index all in /data/mp3, even if a directory was not selected.

I investigated this further. Amarok seems to look for all playlists below 
/data/mp3, and then looks up all of their files. No idea why.

> I wonder if amarok would not be better off using the strigi/nepomuk
> indexing function, instead of trying to be real clever and doing it
> itself.

Strigi also keeps indexing parts of my /data/mp3 stuff with EVERY login.

> OTOH, that might just resurrect the mother of all threads we had
> recently - the one about the pros and cons of nepomuk and
> semantic-desktop :-)

I am pro, I like it, but again it seems those things are not yet working 
right. Strigi indexes stuff over and over again at every login. virtuoso-t 
then also runs for a while and hogs resources. dbus-daemon uses 10-15 
percent of CPU time according to top. Should it do this?

I enabled auto-login for KDE, so when I boot the system, at least things 
are already indexed when I start working with it.

Now I'm going to emerge KDE-4.4.1, let's see what this will change.

Wonko



Re: [gentoo-user] No more mythtv for Gentoo users?

2010-03-04 Thread Alex Schuster
Neil Bothwick writes:

> > Wasn't Agrajag the toothless wonder that kept getting accidentally
> > killed by Arthur Dent?
> 
> Yes, all my hostnames are HHGTTG characters. Agrajag never crashes and
> has only died once... so far.

Uh, makes me wonder if I am along your hosts, too?

Wonko



Re: [gentoo-user] KDE? Get me out of here!

2010-03-04 Thread Alex Schuster
Alex Schuster writes:

> Now I'm going to emerge KDE-4.4.1, let's see what this will change.

Nothing I notice. At least things have not gone worse:)

Wonko



Re: [gentoo-user] Advice/best practices for a new Gentoo installation

2010-03-04 Thread Alex Schuster
Alex Schuster writes:
> Neil Bothwick writes:
> > On Wed, 3 Mar 2010 12:52:55 +0100, Alex Schuster wrote:
> > > > The data I've seen indicates that ext2 is fastest, that's what I
> > > > use.
> > > 
> > > I thought the small files of the portage tree especially profit
> > > from the notail option in reiserfs?
> > 
> > They benefit compared with using reiser with tail-packing.
> 
> Oh my. I have it the other way around, and never even thought much
> about what this does.
> 
> > > Did you change the block size?
> > 
> > I had to change both the block size and blocks per inode, otherwise I
> > would run out of inodes on a 1GB filesystem. You have to admire the
> > user-friendliness of ext!
> 
> I only wished I could add more inodes after all are out, because this
> happens quite frequently to me. But yes, it's nice I can specify this
> at all.
> 
> > > > There's no need for journalling on the portage tree, it's small
> > > > enough to fsck quickly and if it does get broken, reformat and
> > > > resync.
> > > 
> > > Would the journaling overhead be noticeable?
> > > I also had used ext2 for my portage tree first, then I read
> > > somewhere that reiserfs would be the best. BTW, I have distfiles
> > > and pkgdir somewhere else, if not the fsck would not be so fast.
> > 
> > It's certainly noticeable compared with ext3. Many benchmarks do show
> > ext2 to be the fastest filesystem, probably because of the lack of
> > journalling overhead.
> 
> When I saw some, it was maybe 15% difference, and that probably due to
> writes I assume. The portage tree is written during sync only, and then
> I do not care about speed. But would accessing lots and lots of small
> files be slowed down by journaling?
> 
> > Like you, I have $DISTDIR and $PKGDIR elsewhere, those files really
> > should not be mixed in with the portage tree.
> > 
> > > Just for fun, I just copied my $PORTDIR into my tmpfs, emerge -DpN
> > > @system @world takes between 81 and 53 seconds. With reiserfs, I
> > > get 130 seconds first ($PORTDIR was unmounted first and mounted
> > > again to clear the caches), and 57 seconds in the second attempt.
> > > 
> > > I had expected that tmpfs would be even faster. I think I just keep
> > > it the way it is now.
> > 
> > The exact same thought occurred to me. With a local tree to sync
> > from, tmpfs seemed a good choice (you could sync it from
> > /etc/conf.d/local) but it seems like it is not worth bothering with.
> 
> I would need more memory for that, I'm not at amd64 yet. But I probably
> should migrate anyway, and get another 4GB of memory.
> 
> > I'll try a reiser3
> > filesystem without tail packing to see if it beats ext2.
> 
> I backed up my portage tree, re-created the reiserfs partition, and
> mounted without notail option. The same emerge command now takes about
> three minutes... no, on 2nd try it's five. Hmm... ah, clementine is
> indexing files. Why does it do this, I did not change files. Oh, and it
> has indexed all of my /data/mp3, while I only gave it four subfolders
> to index. Why does no audio player just accept my choices for what the
> collection is, and add other stuff?
> 
> The next test gives 93 seconds, that's nice.
> 
>   Wonko



Re: [gentoo-user] Advice/best practices for a new Gentoo installation

2010-03-04 Thread Alex Schuster
Alex Schuster writes:
> Neil Bothwick writes:
> > On Wed, 3 Mar 2010 12:52:55 +0100, Alex Schuster wrote:
> > > > The data I've seen indicates that ext2 is fastest, that's what I
> > > > use.
> > > 
> > > I thought the small files of the portage tree especially profit
> > > from the notail option in reiserfs?
> > 
> > They benefit compared with using reiser with tail-packing.
> 
> Oh my. I have it the other way around, and never even thought much
> about what this does.
> 
> > > Did you change the block size?
> > 
> > I had to change both the block size and blocks per inode, otherwise I
> > would run out of inodes on a 1GB filesystem. You have to admire the
> > user-friendliness of ext!
> 
> I only wished I could add more inodes after all are out, because this
> happens quite frequently to me. But yes, it's nice I can specify this
> at all.
> 
> > > > There's no need for journalling on the portage tree, it's small
> > > > enough to fsck quickly and if it does get broken, reformat and
> > > > resync.
> > > 
> > > Would the journaling overhead be noticeable?
> > > I also had used ext2 for my portage tree first, then I read
> > > somewhere that reiserfs would be the best. BTW, I have distfiles
> > > and pkgdir somewhere else, if not the fsck would not be so fast.
> > 
> > It's certainly noticeable compared with ext3. Many benchmarks do show
> > ext2 to be the fastest filesystem, probably because of the lack of
> > journalling overhead.
> 
> When I saw some, it was maybe 15% difference, and that probably due to
> writes I assume. The portage tree is written during sync only, and then
> I do not care about speed. But would accessing lots and lots of small
> files be slowed down by journaling?
> 
> > Like you, I have $DISTDIR and $PKGDIR elsewhere, those files really
> > should not be mixed in with the portage tree.
> > 
> > > Just for fun, I just copied my $PORTDIR into my tmpfs, emerge -DpN
> > > @system @world takes between 81 and 53 seconds. With reiserfs, I
> > > get 130 seconds first ($PORTDIR was unmounted first and mounted
> > > again to clear the caches), and 57 seconds in the second attempt.
> > > 
> > > I had expected that tmpfs would be even faster. I think I just keep
> > > it the way it is now.
> > 
> > The exact same thought occurred to me. With a local tree to sync
> > from, tmpfs seemed a good choice (you could sync it from
> > /etc/conf.d/local) but it seems like it is not worth bothering with.
> 
> I would need more memory for that, I'm not at amd64 yet. But I probably
> should migrate anyway, and get another 4GB of memory.
> 
> > I'll try a reiser3
> > filesystem without tail packing to see if it beats ext2.
> 
> I backed up my portage tree, re-created the reiserfs partition, and
> mounted without notail option. The same emerge command now takes about
> three minutes... no, on 2nd try it's five. Hmm... ah, clementine is
> indexing files. Why does it do this, I did not change files. Oh, and it
> has indexed all of my /data/mp3, while I only gave it four subfolders
> to index. Why does no audio player just accept my choices for what the
> collection is, and add other stuff?
> 
> The next test gives 93 seconds, that's nice.
> 
>   Wonko
<



Re: [gentoo-user] Advice/best practices for a new Gentoo installation

2010-03-04 Thread Alex Schuster
Argh, sorry for the previous posts. I had some sort of Ctrl-lock, that is, 
the keyboard acted as if Ctrl was pressed all the time. Now I know that 
Ctrl+Enter is a shortcut to send an email. I accidentally closed some 
shells by pressing the D key.

I was able to get rid off it by switching to a text console with Alt-F1 
(the additional Ctrl key was also not needed) and back.


Alex Schuster writes:

> The next test gives 93 seconds, that's nice.

What is not so nice is that emerge -a --depclean took over half an hour of 
CPU time, needing half a gigabyte of memory. WOW.

Wonko



Re: [gentoo-user] /etc/portage/bin/post_sync - not found by `equery b`

2010-03-05 Thread Alex Schuster
Stroller writes:

> I have this /etc/portage/bin/post_sync file on a couple of systems,
> and strangely `equery b /etc/portage/bin/post_sync` doesn't tell me
> what package it belongs to. I might guess `eix`, but who knows?

It's part of portage, and it's called after a sync of the portage tree.

> Does anyone else experience this, please?
> Can anyone tell me what package it belongs to, or what its purpose is?
> 
> It attracted my attention because /etc seems a funny place to keep a /
> bin.

Here's some explanation:
http://forum.soft32.com/linux/gentoo-portage-ftopict333785.html

Wonko



Re: [gentoo-user] KDE? Get me out of here!

2010-03-09 Thread Alex Schuster
Alex Schuster wrote:

> Alex Schuster writes:
> > Now I'm going to emerge KDE-4.4.1, let's see what this will change.
> 
> Nothing I notice. At least things have not gone worse:)

But still they are not well. But you can safely ignore this if you don't 
have KDE4 or are not interested in reading how things do not work, and how 
I still use them. I have no good explanation for this, probably I keep 
using KDE4 because it is so new and shiny, because I think that the time 
must come when things actually DO work, and because I so not like to 
switch to something else. There was never a time when ALL was working 
fine, but at the moment I am even more disappointed then I used to be.

- Kontact. The old address book I had imported fro KDE 3.5 half a year ago 
showed one "address book" and many std.vcf (or similar) files, with my 
data scattered on them. I moved all stuff into the "address book", and did 
not use it for a while
Now I wanted to do so, but it did not run due to an error with akonadi. I 
tried to figure out what this was, and how to get the error message in 
English, but then I found out that I only have to restart kontact. Fine, 
now I want to add a contact. First, when I want to edit the location, the 
country is set to Afghanistan, I always have to change this to Germany. 
Annoying, why is this so, who would want this behaviour, except for 
Afghans perhaps. But it does not matter much, as I cannot store the data: 
when I press the OK button, I get a dialog where I should select the 
address book to store the data in, but the list is empty. Great. I tried 
adding a new address book, now I have two entries called "address book" 
and one called "personal contacts", still I cannot add an entry.

- Yesterday I tried the demo version of 'World Of Goo', a really nice 
game. it runs in fullscreen, after ending it my panel was invisible, but 
still working. At least turning the composite stuff off makes it visible. 
I tried to switch the resolution with Ctrl-Alt-+/-, and indeed this made 
the panel come back, but I could not switch the resolution back as it was 
before. Before trying xrandr I hought I'd just start another session with 
another window manager (via the K menu), and indeed I got the KDM screen, 
but only because KDE had crashed. At the next login, I had to rearrange my 
plasmoids because they were shiftwed to the left, probably due to the 
lower resolution I had. Or something like that, as switching the 
resolution should not change the virtual resolution. But in this case, I 
could not scroll around to see the whole desktop. Well, whatever, I do not 
dare to try this again.

- Dolphin can do FTP, but I have to repeat the login process several times 
until I see the destination files.

- I just tried to listen to a CD, but KsCD does not find it. The eject 
button ejects, but does not close the tray if pressed again. Okay. I just  
thought I could play CDs with KDE. Can you?

- And I am currently editing a page in my wiki with konqueror, but after 
the dialog appeared that I should save the edits, it sort of hangs. I can 
reload the page, but cannot edit any more. The good thing is that I did 
not edit that much yet. Which is also a bad thing, because when editing 
longer parts I cop the text to the clipboard from time to time, just in 
case something crashes. I'm doing this with this mail, too.
Hmm, looks like konqueror is still working just as usual, it's just it 
does no display updates at all. It's the first time it happened, but as it 
just happened while I was writing this rant, I thought I'd include it.

- Of course, Amarok keeps doing weird things. At least I can play music 
from my collection. But playing a stream sometimes crashes it. And 
dragging files into Amarok always leads to a crash. Yeah, I know, Amarok 
is not KDE.

But at least one bug was fixed, I got a mail from bugzilla about this 
today. It's the bug that makes password dialogs not work if the password 
is to be displayed as three bullets. Wow, nearly two months after it had 
been reported, this serious bug was at least confirmed to exist and is 
fixed now. Maybe this bug happens seldomly, but when it happens, much of 
KDE4 is unusable, as you have no kmail, no kwallet, nothing that needs a 
password works.

Dale, you brave, brave man, are you really using KDE4 now?

Wonko



Re: [gentoo-user] KDE? Get me out of here!

2010-03-11 Thread Alex Schuster
Philip Webb writes:

> I see  1  improvement &  2  regressions so far;
> NB I don't use the desktop (that's Fluxbox), only some apps.
> 
> Konsole has lost its 'fixed GNU' font, which now calls up something
> nasty (yes, I know there's an entry in the list, but it's a different
> font). I've switched to Xterm for Mutt & may junk Konsole for user
> terminal too.

I noticed this when I started KDE 4.4 for the first time. It looked quite 
different (and a little ugly), but somehow I got used to it. 

> Gwenview shows a lot of silly little pictures plastered all over
> folders & there seems to be no way of telling it not to.
> Do I want a picture of Conrad Black in my big 'people' collection ? --
> Yes. Do I want to look at him every time I open Gwenview ? -- No !!

Those four thumbnails on each folder icon? I actually like these :)

> Gwenview has regained F2='rename', which it lost after KDE 3 , a plus.

So at least sometimes things improve :)
I don't use gwenview much. When I used it a while ago, browsing through 
many photos, and rotating lots of them, it always crashed after a while, 
after it hogged very much of my memory. Just retried that, problem's gone. 
Hooray!

Wonko



Re: [gentoo-user] KDE? Get me out of here!

2010-03-11 Thread Alex Schuster
Dale writes:

> Alex Schuster wrote:
> > Dale, you brave, brave man, are you really using KDE4 now?

> I am in KDE4.  I still have KDE3 installed tho.  Thing is, I'm still
> using the same programs I was in KDE3.  Dolphin looks nice and all but
> I can't use it as root at all.

Huh? No problem here.

OT: does anyone know about dolphin somehow accessing all files it shows? I 
see this on a system that uses dolphin to browse remote files via the fish 
protocol. Previews are not enabled, but all the files are accessed, which 
means it takes about one hour until the directory is shown, because all 
files are being retrieved from a SAM-FS server. Maybe it is reading the 
magic number for each file? I will try konqueror now.

> So, I went back to Konqueror to edit
> config files and such.  I don't use some of the programs that you are
> using so I don't have the same issues.  I use smplayer to do movies or
> CDs.  It doesn't care what DE you use.

Ah, smplayer. Did not think about that. It was not important anyway - I 
had ripped a CD with K3b, and wondered why two tracks were swapped. BTW, 
what do you use for ripping? K3b is okay, but it does not remember changes 
like output path or file naming, I have to set this again for every CD.
But smplayer does not recognise the CD either. I wonder why I do not have 
a /dev/cdrom device - only /dev/cdrom3, /dev/cdrw3, /dev/dvd3 and 
/dev/dvdrw3, all symlinking to /dev/sr0.


> I do like the looks of KDE4.  I still think they dropped KDE3 to soon.
> KDE4 will get there but it is still having issues many months after
> dropping KDE3.  Bad thing is, I don't think they care about the users
> they left hanging in the wind.

I also think KDE3 was dropped too soon. While KDE4 is usable now for most 
things, it still has too many bugs, and a while ago it had many many more, 
while development and bug fixing of KDE3 was already stopped.
On the other hand, manpower is limited, and I understand the decision to 
focus on the new project rather than doing stuff for the old one that soon 
noone will be using. KDE 3.5 is still there. I don't know about the 
security issues, would it be unsafe now to use KDE 3.5? I remember 
something about kpfd being masked due to security holes.

Wonko



Re: [gentoo-user] KDE? Get me out of here!

2010-03-12 Thread Alex Schuster
Dale writes:

> Alex Schuster wrote:
> > Dale writes:

> >> I am in KDE4.  I still have KDE3 installed tho.  Thing is, I'm still
> >> using the same programs I was in KDE3.  Dolphin looks nice and all
> >> but I can't use it as root at all.
> > 
> > Huh? No problem here.
[...]
> This is what I am talking about.  Dolphin will browse through
> directories but as soon as I click to open a text file, it gives a
> error.  I have discussed this on the kde list and it is a known
> problem.  One even said the code was written to prevent that but others
> say it is just not fixed yet.  So, I still use Konqueror just like I
> did in KDE 3.

This is also working here, a click opens the file in kwrite.


> >> So, I went back to Konqueror to edit
> >> config files and such.  I don't use some of the programs that you
> >> are using so I don't have the same issues.  I use smplayer to do
> >> movies or CDs.  It doesn't care what DE you use.
> > 
> > Ah, smplayer. Did not think about that. It was not important anyway -
> > I had ripped a CD with K3b, and wondered why two tracks were
> > swapped. BTW, what do you use for ripping? K3b is okay, but it does
> > not remember changes like output path or file naming, I have to set
> > this again for every CD. But smplayer does not recognise the CD
> > either. I wonder why I do not have a /dev/cdrom device - only
> > /dev/cdrom3, /dev/cdrw3, /dev/dvd3 and /dev/dvdrw3, all symlinking
> > to /dev/sr0.
> 
> I have used tkdvd to burn a DVD.  It ain't pretty but it worked.  ;-)

Oh, K3b is fine for burning, never had a problem with that. It's the 
ripping that could be better, and the audio playing that does not work at 
all.

Wonko



Re: [gentoo-user] what's wrong with rsync 3.0.6?

2010-03-16 Thread Alex Schuster
Stroller writes:

> I'm going to assume that you're not being facetious, however I'm
> amazed you don't know `screen`. Everyone should know `screen`! It's
> amazing, and I can't believe that if you had tried it then you
> wouldn't have it installed. I sure you'll wonder how you lived without
> it.

Yes screen is quite essential. But I also too quite a while until I 
started using it. I think it's because you have to learn a bit about it 
first. I was confused by the -dDrR options, and by the many key bindings. 
Didn't know then that you only need a few to work with it, and I still do 
not use most of them. Now I use screen a lot, sometimes I use screen 
inside a screen session.

[screen summary]

Now that's a nice summary! If I weren't already using it, I'd give it a 
try now.

I want to add one thing: I suggest changing the defscrollback value in 
/etc/screenrc from 100 to something much larger, I have 10. If not, 
you can only scroll back 100 lines, which is not that much.

Wonko



Re: [gentoo-user] what's wrong with rsync 3.0.6?

2010-03-16 Thread Alex Schuster
Stroller writes:

> On 16 Mar 2010, at 22:26, Alex Schuster wrote:
> > ...
> > I want to add one thing: I suggest changing the defscrollback value
> > in /etc/screenrc from 100 to something much larger, I have 10.
> > If not, you can only scroll back 100 lines, which is not that much.
> 
> I don't *think* the default is as low as 100 lines. I don't seem to
> have a .screenrc on my system (the system I've just checked; and I
> would edit it there, rather than /etc/screenrc) and it has always had
> sufficient scrollback buffer for my needs. By all means it should be
> enlarged this way if necessary.

I just checked, the original screenrc I had when I emerged screen on this 
system around April has these lines:

# Change default scrollback value for new windows
  defscrollback 1000# default: 100

So it's 1000 already in Gentoo, ten times larger than the default. Still 
not large enough I think, as we have lots of memory nowadays, don't we. 
And I often go back many pages, 100 lines is not that much.
BTW, I did not know about Ctrl-U/D, after Ctrl-A-Esc I just use PgUp/PgDn 
to scroll up and down.

I prefer to edit /etc/screenrc so everyone has a reasonable large 
scrollback buffer. Other screen settings go into the user's .screenrc. 
There's so much that can be set, I'm only using a fraction of screen's 
features.

Another thing I sometimes use: With screen -r / you can join a 
session that is attached by another user. I am using this sometimes when 
another person has trouble with their Gentoo installation. I log in into 
their server, attach to the screen session, and we can both do things in 
it. screen needs the multiuser USE flag for this, though.

Wonko



Re: [gentoo-user] top does not save settings

2010-03-18 Thread Alex Schuster
Mick writes:

> In an aterm I launch top.  Then press z c and Shift+W.  I get:
> 
>Wrote configuration to '/home/michael/.toprc'

Cool. Didn't know about this yet.

> Fine I think, Ctrl+c to end it and move on.  Next time I fire up top,
> even from the same terminal, it's all looking white with no colour, no
> highlighting, or anything else.  Why is this?  This is what the
> contents of .toprc show:
> =
> Cfile for "top with windows"   # shameless braggin'
> Id:a, Mode_altscr=0, Mode_irixps=1, Delay_time=3.000, Curwin=0
> fieldscur=AEHIOQTWKNMbcdfgjplrsuvyzX
> winflags=64953, sortindx=10, maxtasks=0
> summclr=1, msgsclr=1, headclr=3, taskclr=1
> fieldscur=ABcefgjlrstuvyzMKNHIWOPQDX
> winflags=62777, sortindx=0, maxtasks=0
> summclr=6, msgsclr=6, headclr=7, taskclr=6
> fieldscur=ANOPQRSTUVbcdefgjlmyzWHIKX
> winflags=62777, sortindx=13, maxtasks=0
> summclr=5, msgsclr=5, headclr=4, taskclr=5
> fieldscur=ABDECGfhijlopqrstuvyzMKNWX
> winflags=62777, sortindx=4, maxtasks=0
> summclr=3, msgsclr=3, headclr=2, taskclr=3
> =
> 
> Same thing happens in xterm and konsole.

Works here, in konsole and xterm.

My .toprc looks similar, but it has additional keywords Def, Job, Mem and 
Usr. Are they missing in your .toprc, or did they get lost during 
copy&paste? If I remove them, my top also looks like without .toprc.

=
RCfile for "top with windows"   # shameless braggin'
Id:a, Mode_altscr=0, Mode_irixps=1, Delay_time=3.000, Curwin=0
Def fieldscur=AEHIOQTWKNMbcdfgjplrsuvyzX
winflags=64953, sortindx=10, maxtasks=0
summclr=1, msgsclr=1, headclr=3, taskclr=1
Job fieldscur=ABcefgjlrstuvyzMKNHIWOPQDX
winflags=62777, sortindx=0, maxtasks=0
summclr=6, msgsclr=6, headclr=7, taskclr=6
Mem fieldscur=ANOPQRSTUVbcdefgjlmyzWHIKX
winflags=62777, sortindx=13, maxtasks=0
summclr=5, msgsclr=5, headclr=4, taskclr=5
Usr fieldscur=ABDECGfhijlopqrstuvyzMKNWX
winflags=62777, sortindx=4, maxtasks=0
summclr=3, msgsclr=3, headclr=2, taskclr=3
=

Wonko



Re: [gentoo-user] top does not save settings

2010-03-18 Thread Alex Schuster
o0o.atlantis@gmail.com writes:

> Same  thing here, nothing was highlighted and my .toprc looked like
> yours I added Def, Job, Mem and usr in the file and it's fine now.
> The question is why is the file not having the right syntax?
> here:
> top: procps version 3.2.8 on amd64

I tried with sys-process/procps-3.2.7, sys-process/procps-3.2.8 and sys-
process/procps-3.2.8-r1 (all x86), all without the problem.

Wonko



Re: [gentoo-user] Re: help

2010-03-24 Thread Alex Schuster
Alan McKinnon asks:

> And Dale himself holds the record for starting the longest email thread
> ever outside of UseNet.
> 
> It started with ... wait for it ... Xorg and hal!
> 
> It makes me just a little bit sad to see that the next version of Xorg
> (ebuild sitting in some testing proving ground somewhere) will not use
> hal at all. What will we talk about now on slow news days?

I suggest KDE4. It's really getting on my nerves at the moment. But I 
don't want to quit using it either, now that I arranged my desktops and 
activities and plasmoids and stuff. Isn't KDE 4.5 about to be there soon 
and fix all those tings not running? No? 

Wonko



Re: [gentoo-user] Re: help

2010-03-24 Thread Alex Schuster
Dale writes:

> Since someone else mentioned KDE4, I do look forward to 4.5.  I'm
> hoping for some fixes too.  I want the desktop slideshow to be
> sequential instead of random.  I have a lot of pics that are taken to
> be a slideshow but if done in random order, they make no sense at all.
> All I need is a little check box to disable the random part.

Is there a bug report files already?

> Maybe one day everything will be perfect. < Dale holds his breath >

But then KDE 4 will be outdated already and they are doing KDE 5. I heard 
it will have some really cool features and gizmos and stuff, you know!

Wonko



Re: [gentoo-user] ATI-drivers versioning system - I'm confused

2010-03-26 Thread Alex Schuster
Mick writes:

> On 25 March 2010 11:50, Helmut Jarausch 
> wrote:

> > Many thanks, do you have an estimate when 10.4 appears in the tree?
> > Helmut.
> 
> I can't answer that (as far as I know the devs will only say that it
> will appear when it is ready) but I got myself into a pickle with
> trying to switch from radeon to fglrx driver, running xorg-server
> 1.7.6.  

I think you have to wait for ati-drivers-10.4 to work with xorg-1.7.

> It kept going around in circles with blockers and after
> subsequent masking and unmasking I couldn't get it to emerge, so I
> went back to the radeon driver.  Mind you I did not rebuilt the kernel
> at the time and that may be why I was getting 'you can't have these
> packages installed at the same time' type of message.

With the radeon driver, I only got a blank screen, so I am using ati-
drivers. From kernel 2.6.31 on, they are sort of working fine, with GLX 
and all that. Here is what I had to mask to keep the older x.org 1.6:

>=x11-apps/xinput-1.5.0
>=x11-base/xorg-drivers-1.7
>=x11-base/xorg-server-1.7
>=x11-libs/libX11-1.3.2
>=x11-libs/libXScrnSaver-1.2.0
>=x11-libs/libXext-1.1.1
>=x11-libs/libXi-1.3
>=x11-libs/libXinerama-1.1
>=x11-libs/libXtst-1.1.0
>=x11-libs/libXxf86dga-1.1.1
>=x11-libs/libXxf86vm-1.1.0
>=x11-proto/bigreqsproto-1.1.0
>=x11-proto/fixesproto-4.1.1
>=x11-proto/inputproto-2.0
>=x11-proto/recordproto-1.14
>=x11-proto/scrnsaverproto-1.2.0
>=x11-proto/xcmiscproto-1.2.0
>=x11-proto/xextproto-7.1.1
>=x11-proto/xf86bigfontproto-1.2.0
>=x11-proto/xf86dgaproto-2.1
>=x11-proto/xf86driproto-2.1.0
>=x11-proto/xf86vidmodeproto-2.3
>=x11-proto/xineramaproto-1.2
>=media-libs/mesa-7.6


> I only wanted to try fglrx, because someone on the Ubuntu forums said
> that it stopped their laptop fan from running all the time (mine
> starts when the temperature reaches 50C or so and thereafter runs
> continuously).

That's what I heard, too. Still, I have high CPU loads for the X process 
when running KDE4 with my Radeon 4200 GPU.

Wonko



Re: [gentoo-user] ATI-drivers versioning system - I'm confused

2010-03-26 Thread Alex Schuster
Helmut Jarausch writes:

> On 26 Mar, Alex Schuster wrote:

> > I think you have to wait for ati-drivers-10.4 to work with xorg-1.7.
> 
> I just want to report back, that xorg-server-1.7.6 (+ friends) is
> running just fine with  x11-drivers/ati-drivers-8.721 .
> The only minor problem was that one has to re-emerge all other
> installed x11-drivers/* packages.

Thanks! I will upgrade my X then when I have a little spare time.

Wonko



Re: [gentoo-user] iptables: how can I include multiple hosts/IPs in "-s" and "-d"?

2010-04-06 Thread Alex Schuster
Jarry writes:

> I'd like to ask if there is some way to include multiple discrete
> hosts/IP's in --source and --destination options of iptables.
> 
> I'm trying to write firewall rules for my server, but it has
> 12 IP's from different segments (and maybe it gets a few more
> later), and the script grows up as I have to write nearly
> identical rules with difference only in -s/-d IP's.
> 
> What I'm looking for is a way to define some variable at the
> beginning of my script, like MY_IP="IP1 IP2 IP3 IP4..." and
> later to use is in rules (iptables -A INPUT -s $MY_IP...).
> But I do not know how to use it. As far as I understand it,
> --source/--destination accepts only single IP's or continuous
> IP-segments...

Well, as your iptables script is probably written in bash, you can do 
loops as you like:

myIPs="IP1 IP2 IP3 IP4 ..."
for ip in $myIPs do   # use $myIPs here, not "$myIPs"!
iptables -A INPUT -s $ip ...
done

Wonko



Re: [gentoo-user] emerge update gcc downgrade

2010-04-06 Thread Alex Schuster
Kraus Philipp writes:

> I run in a virtual machine a gentoo (~x86) system. I synced the portage
> tree at the weekend an run emerge --update
> 
> The update runs without errors, but emerge installed the gcc 4.3.4,
> but on the system is the 4.4.3 installed
> 
> [ebuild  NS   ] sys-devel/gcc-4.3.4 [4.4.3] USE="hardened mudflap nls
> nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -fortran -
> gcj -gtk (-libffi) (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -
> objc -objc++ -objc-gc -test -vanilla"
> 
> After the update I run "emerge --depclean" and the 4.3.4 is unmerged
> and now
> I run emerge --update the gcc should installed again
[...]

> Can anybody help me to fix the gcc problem? I only need the 4.4.3 gcc

I do not understand this, but anyway: Add the -t / --tree option you your 
emerge command, I guess then you can see which package pulls in the old 
gcc. I assume that something needs the old gcc for building, but when it 
is built, the old gcc is no longer needed, so emerge --depclean will 
remove it.
Do you have "--with-bdeps y" in your EMERGE_DEFAULT_OPTS in make.conf? 
Otherwise this should not happen. And if it is set like this, depclean 
should not remove it. Hmm.

You could also emerge -n sys-devel/gcc:4.3 in order to add it to your 
world file. Depclean would not remove it then. No real solution, but it 
would spare you the emerges. Or you build a binary package with quickpkg, 
and use the -k option to emerge, so it will emerge the binary instead of 
building from scratch every time.

Wonko



Re: [gentoo-user] Switching to unstable

2010-04-11 Thread Alex Schuster
Damian writes:

> Thus, I'm thinking about switching all of my system to the unstable
> branch. But first I want to be sure that this is reasonable given the
> problems I described before.
> 
> Can you provide me some useful advice according to your experience?

I have asked a similar question here, I suggest you read the thread [*]. I 
did not regret the switch and would also suggest running ~arch. Beware the 
update to openrc, and do what the elog messages tell you to do before 
rebooting.

Wonko

[*] http://www.mail-archive.com/gentoo-user@lists.gentoo.org/msg94206.html



Re: [gentoo-user] Re: ~amd64 - my experience so far...

2010-04-12 Thread Alex Schuster
Mark Knecht writes:

> OK, let's start with xfce4-meta because there was only one failure.
> eix-update was done this morning and emerge -DuN @system is clean
> using ~arch in make.conf. I'll paste make.conf & emerge --info at the
> end of this message
[...]
> >>> Source prepared.
> >>> Configuring source in
> >>> /var/tmp/portage/dev-perl/glib-perl-1.222/work/Glib-1.222 ...
> 
>  * Using ExtUtils::MakeMaker
> Can't locate ExtUtils/Depends.pm in @INC (@INC contains:
[...]
> MakeMaker FATAL: prerequisites not found.
> ExtUtils::Depends not installed
> 
> Please install these modules first and rerun 'perl Makefile.PL'.

wo...@weird ~ $ equery b $( locate ExtUtils/Depends.pm )
 * Searching for /usr/lib/perl5/vendor_perl/5.10.1/ExtUtils/Depends.pm ... 
dev-perl/extutils-depends-0.302 
(/usr/lib/perl5/vendor_perl/5.10.1/ExtUtils/Depends.pm)

So I guess you do not have dev-perl/extutils-depends installed? In this 
case, emerge it, and let's hope all the other errors are similar ones.

Wonko



Re: [gentoo-user] Boot speedup

2010-04-12 Thread Alex Schuster
Florian Philipp writes:

> Am 12.04.2010 11:02, schrieb Hinko Kocevar:

> > Can boot be sped up even more?
> 
> The fastest way to boot is not to boot at all. Just use Suspend2Disk or
> SuspendToRam.
> 
> Take a look at TuxOnIce and hibernate-script. Unless something is
> broken, I hardly ever reboot.

I wonder why this seems to be working for everyone but me... I tried 
TuxOnIce for various times, with different systems, for years now, and 
still no real success. Well, it works sometimes on my desktop PC, but I 
have to issue the hibernate command up to ten times for this, and 
sometimes it still does not hibernate. And I also experience that trying 
to hibernate sometimes freezes the system, or has weird side effects.

But luckily, at least hibernate-ram suddenly seems to work well, and I'm 
sticking to that now.

Wonko



Re: [gentoo-user] Boot speedup

2010-04-13 Thread Alex Schuster
Peter Humphrey writes:

> On Monday 12 April 2010 17:17:52 Florian Philipp wrote:
> > Unless something is broken, I hardly ever reboot.
> 
> How do you take backups?

I do my backups from the running system, not from a live-cd. I create an 
LVM snapshot of the partition, and backup with use rdiff-backup. his way 
it does not matter if the partition itself is being modified during the 
backup.

Wonko



Re: [gentoo-user] ~amd64 - my experience so far...

2010-04-13 Thread Alex Schuster
Mark Knecht writes:

>One minor annoyance is that the task bar at the bottom is about 1/3
> black on the left. Resolution is 1920x1080 so I'd guess about the
> first 800 pixels are painted the wrong color. The task bar still
> works, it just doesn't look right.

I think I have the same problem, although not all the time. I happens only 
sometimes after I run opengl Software like Quake3, or other games that 
change the graphics resolution. What sometimes works is to turn off 
compositing with Alt-Shift-F12 and on again.

Wonko



Re: [gentoo-user] In which order services are started?

2010-04-21 Thread Alex Schuster
Jarry writes:

> Is there any way to find out in which order services are
> started during boot-up (except for looking at boot-up
> screen and making notes)?

I think the output of 'rc-status' shows the services in the right order.

Wonko



Re: [gentoo-user] In which order services are started?

2010-04-21 Thread Alex Schuster
Dale writes:

> Alex Schuster wrote:
> > Jarry writes:
> >> Is there any way to find out in which order services are
> >> started during boot-up (except for looking at boot-up
> >> screen and making notes)?
> > 
> > I think the output of 'rc-status' shows the services in the right
> > order.

> It may be a coincidence but mine are alphabetical.

This may be a baselayout-2 thing then. Here the output looks like this:

wo...@weird ~ $ rc-status boot|cut -d " " -f 2
boot
hwclock
modules
lvm
device-mapper
dmcrypt
fsck
root
mtab
localmount
hostname
sysctl
bootmisc
procfs
termencoding
consolefont
keymaps
net.lo
urandom
swap

wo...@weird ~ $ rc-status default|cut -d " " -f 2
default
hdparm
net.eth0
rsyncd
metalog
hald
cupsd
nfs
nfsmount
netmount
gpm
xdm
alsasound
distccd
fcron
lm_sensors
mysql
ntpd
smartd
sshd
udev-postmount
vmware
local

Wonko



Re: [gentoo-user] KDE? Get me out of here!

2010-04-22 Thread Alex Schuster
I wrote:

> Alan McKinnon writes:

> > On Monday 01 March 2010 18:08:05 Alex Schuster wrote:

[...]
> > > solve this. And there are these annoying things. Like Amarok being
> > > very unstable, and taking 5 minutes to start. What the heck is it
> > > doing in this time?
> > 
> > Fuck knows what amarok-2x does for the first 5 minutes. I *think* On
> > my system it scans the music directory, presumably to find updates
> > that happened when amarok was not running. Fair enough, can't argue
> > that, but why is it so *slow*???
> 
> Yes, it scans the collection, I just verified that by removing a folder
> from my collection. Start-up takes 7 minutes, I guess this also slows
> down my KDE4 start-up even further (strigi also scans some stuff for
> about a minute, along this music files I did not touch in any way). So
> when I save my KDE session I have to remember to quit amarok before
> that. Of course, I also have to remember to start amarok some time
> after I logged in, so I can play music when I want without having to
> wait 7 minutes first.
> 
> This does not feel right...
> 
> BTW, a find /data/mp3 -type d takes about a minute. Checking the date
> of the directories to verify they did not alter since the last scan
> should not take that much longer.
> 
> Ah, I see the problem. It mainly scans /data/mp3/incoming, a directory
> I have NOT selected as collection folder (but most other directories
> in /data/mp3 are selected). Still, those files do not show up in my
> collection, which is fine - some time ago amarok did index all in
> /data/mp3, even if a directory was not selected.

More precisely: Amarok scans folders not selected as collection for *.m3u 
playlists, and looks up their files. I had reported this in [*], and got 
some responses, but no solution or even confirmation. But today I emerged 
Amarok 2.3.0.90, and startup time went from 7 minutes to around half a 
minute now, so this bug seems to be fixed.

Wonko

[*] https://bugs.kde.org/show_bug.cgi?id=229239



Re: [gentoo-user] Re: elogviewer and something odd with equery

2010-04-26 Thread Alex Schuster
Dale writes:

> Again, I am using Konsole for this.  This may be a KDE thing.  I know
> it worked fine in KDE3 but then again, a LOT of things worked fine in
> KDE3.

It's probably not a KDE thing. I'm also using konsole in KDE4, and after 
becoming root (via su or su -) I have no Problems starting X applications.

I'm no expert at X authorization stuff. But I know that in the past I also 
had trouble when becoming root. Why it works for me and not for you - I 
don't know.

Workarounds you might try:
- Emerge sux, and use sux instead of su. Worked for me in the past.
- ssh -Y r...@localhost

Wonko



[gentoo-user] No /dev/sd? devices. Udev problem?

2010-04-29 Thread Alex Schuster
Hi there!

I just migrated a friend's machine to ~am64. Everything was updated, but 
after a reboot some partitons are not found. No wonder, there are no 
/dev/sd? devices, only /dev/sg?. I suspect the problem is udev, because 
that was updated. Root is encrypted, so this machine makes use of an 
initramfs. At that point, all devices are found, so the system comes up, 
but later mounting of data partitions fails due to the missing devices.

Any idea what the cause is? I will try to downgrade udev and see what 
happens. I have to wait for my friend to arrive here though, because I do 
not know the LUKS password. So I thought I'd ask here first, maybe someone 
knows this problem.

Wonko



Re: [gentoo-user] backup to a cold-swap drive

2010-04-29 Thread Alex Schuster
Iain Buchanan writes:

> A winblows colleague said he uses a utility to backup his internal hard
> drive to an external disk, such that if his internal disk fails he can
> replace it with the external disk and continue straight away.

I do the same, but with a 2nd internal drive. The drive is partitioned 
similar, with some partitions being a bit larger so I can do incremental 
backups, too.

I am using rdiff-backup, which makes use of rsync. The backup partition 
has exactly the same contents as the source partition, except for an 
additional 'rdiff-backup' directory that contains incremental backups of 
files that were modified from backup to backup, gzipped.

Some other partitions are handled differently: /boot is just being dd'ed, 
contents of /usr/src are tarred each, and /var/portage/packages/ is just 
plain rsynced. Some unnecessary stuff like .ccache and /var/tmp/portage is 
excluded.

All my partitions are LVM volumes, so before the backup starts, I make a 
LVM snapshot of the partition. This way I can modify it while the backup 
is still in progress.

I wrote a shell script to do this, so I do not have to issue a lot of 
commands every time I want to do the backup. As there are now some others 
using this script, adapted to their needs, I started to rewrite it in a 
way that it reads a config file, and no modification of the script itself 
is necessary. If anyone is interested, send me an email.


Some time ago my first drive started having bad blocks. Without LVM, I 
could just have swapped the disks, but so I had to rename the backup 
volume group to the original volume group from a live cd. And the system 
was running from the new drive as it was before - only that I no longer 
had a backup until the new drive arrived. This makes an uneasy feeling 
with these 1.5 TB drives.

Wonko



Re: [gentoo-user] No /dev/sd? devices. Udev problem?

2010-05-01 Thread Alex Schuster
I wrote:

> I just migrated a friend's machine to ~am64. Everything was updated,
> but after a reboot some partitons are not found. No wonder, there are
> no /dev/sd? devices, only /dev/sg?. I suspect the problem is udev,
> because that was updated. Root is encrypted, so this machine makes use
> of an initramfs. At that point, all devices are found, so the system
> comes up, but later mounting of data partitions fails due to the
> missing devices.
> 
> Any idea what the cause is? I will try to downgrade udev and see what
> happens. I have to wait for my friend to arrive here though, because I
> do not know the LUKS password. So I thought I'd ask here first, maybe
> someone knows this problem.

A downgrade from 151-r2 to 150-r1 did not change anything. I can try to go 
to lower versions, but I wonder what the problem is. My own machine is 
~x86 instead of ~am64, but has a similar setup, and all is working. Well, 
not all, but I spare you my KDE4 rants for the moment.

The missing devices appear in the /sys/block/ hierarchy, so I can create 
the device nodes by udevadm test. I created a new init script with 
basically these commands, that activates all the devices:

for disk in /sys/block/sd*
do
udevadm test /block/${disk#/sys/block/}
done

for part in /sys/block/sd*/sd*
do
udevadm test /block/${part#/sys/block/}
done

Another thing I am missing is the /dev/vg/lvm entries, but I can also 
access the LVM volumes as /dev/mapper/vg-lvm, so this is no problem. But I 
wonder what else is missing that I do not know of yet. And I would prefer 
a real solution over this hack, so if anyone has any ideas, I'd be happy 
to hear them.

Wonko



Re: [gentoo-user] backup to a cold-swap drive

2010-05-04 Thread Alex Schuster
Iain Buchanan writes:

> On Thu, 2010-04-29 at 16:44 +0200, Alex Schuster wrote:
> 
> [snip]
> 
> > All my partitions are LVM volumes, so before the backup starts, I
> > make a LVM snapshot of the partition. This way I can modify it while
> > the backup is still in progress.
> 
> hmm, never got into LVM.  Sounds interesting though...

It is. it gives you great flexibility. Your /home is becoming too small? 
So just add a Gigabyte:
  lvresize -L +1G /dev/system/home 
  resize2fs /dev/system/home

Takes half a minute, and you don't need to unmount anything before that.

You want to backup your large /home partition, and want to continue 
working meanwhile? Create a snapshot, mount it, and backup this:
  lvcreate -s -L 1G -n home-snapshot /dev/system/home
  mount /dev/system/home-snapshot /mnt


> [snip]
> 
> > I wrote a shell script to do this, so I do not have to issue a lot of
> > commands every time I want to do the backup.
> 
> I don't use too many commands, something like this
> in /etc/cron.daily/custom-backup:
> 
> sudo /usr/bin/ionice -c 3 /usr/bin/rsync -aAx --exclude suspend_file
> --delete-delay --delete-excluded --partial
> --human-readable / / || echo external
> backup failed!

That's okay, I did it in this way, too. Well, the backup may be 
inconsistent when you are modifying the root partition in the meantime, so 
I would not emerge things when the backup is running.
But now I am using LVM for everything, and so I just create a snapshot.
And I prefer to use rdiff-backup, so I can have incremental backups.

> >  As there are now some others
> > using this script, adapted to their needs, I started to rewrite it in
> > a way that it reads a config file, and no modification of the script
> > itself is necessary. If anyone is interested, send me an email.
> 
> interested! So is it on sourceforge yet ;)

Um, no... not yet. Not really sure if it belongs there...

The script has become a little large, but I think it's working now. I will 
do some testing, and inform you when it's done. I'm a little ill at the 
moment, so it may take 1-2 more days.

Wonko



Re: [gentoo-user] emerge --update - why doesn't it update my kde packages

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

> My 'standard' way of updating is
> emerge --keep-going -j4 -1 --ask --update --newuse --deep --tree
> @system @world
> 
> but it didn't update anything.
> 
> Still, eix confirmed there were quite a lot of kde packages which have
> newer versions, and indeed,
> emerge -auv1 -j4 --keep-going  $(qlist -IC kde-base/)
> upgraded 24 packages.
> 
> Where does this discrepancy come from?

I guess those packages are not in your /var/lib/portage/world file (or in 
a set in /var/lib/portage/world_sets), and nothing in there depends on 
them. Try emerge -p --depclean and see if they are listed. If so, use 
emerge -n to add them to world.

Wonko



Re: [gentoo-user] Receiving mail from crontab

2010-05-04 Thread Alex Schuster
Mick writes:

> I am getting a bit confused from the messages that I receive in my
> gmail account sent from my crontab.
> 
> First, is related to the title which is:
> 
>  Cron  test -x /usr/sbin/run-crons &&
> /usr/sbin/run-crons
> 
> I am not sure what this "test -x" part represents?

It means: If /usr/sbin/run-crons is executable, execute it. It could also 
be written as 
[ -x /usr/sbin/run-crons ] && /usr/sbin/run-crons
or
f=/usr/sbin/run-crons
if [ -x $f ]
then
$f
fi


No idea about your other question, though.

Wonko



Re: [gentoo-user] emerge --update - why doesn't it update my kde packages

2010-05-04 Thread Alex Schuster
KH writes:

> Am 04.05.2010 21:41, schrieb Dale:

> > I have with-bdeps set in my make.conf so that it is enabled each
> > time. I just ran the command given above and it found over 40
> > packages that need to be upgraded.  I'm not even going to claim that
> > I understand all the chicken scratch in that command but apparently
> > stuff needed to be upgraded on my system that was being missed.

If a deep @system @world upgrade with --with-bdeps=y does not upgrade the 
packages, then I think that they are either unnecessary packages that 
should be depcleaned, or they should go into the world file. This 
update_orphans.sh script is nice and I used a similar one when I had the 
problem that a world update did not work due to blockers or something, but 
normally it should not be necessary. And I believe these problems should 
better be fixed another way.

> For me it does try to update the same packages as --with-bdeps, but it
> tries to pull in like 39 new packages.
> 
> How and where have you integrated with-bdeps in make.conf?

From /usr/share/portage/config/make.conf.example:

# EMERGE_DEFAULT_OPTS allows emerge to act as if certain options are
#   specified on every run. Useful options include --ask, --verbose,
#   --usepkg and many others. Options that are not useful, such as --help,
#   are not filtered.
#EMERGE_DEFAULT_OPTS=""

I have it set like this: EMERGE_DEFAULT_OPTS="--with-bdeps y"

Wonko



snackup (was: Re: [gentoo-user] backup to a cold-swap drive)

2010-05-07 Thread Alex Schuster
Iain Buchanan writes:

> On Thu, 2010-04-29 at 16:44 +0200, Alex Schuster wrote:

> > using this script, adapted to their needs, I started to rewrite it in
> > a way that it reads a config file, and no modification of the script
> > itself is necessary. If anyone is interested, send me an email.
> 
> interested! So is it on sourceforge yet ;)

Sorry, it took a little longer. I was ill, and then these scripts tend to 
grow and grow until I am satisfied with them. It's still not perfect, but 
I think at the moment it does what it should do.

Still not on sourceforge, but here: http://www.wonkology.org/utils/snackup
The name is silly, but I kinda like it now. A backup utilizing LVM 
snapshots... snapshot backup... snackup!

It needs a config file that is looked up in some default locations, or can 
be specified with the -c option. Use option -T to generate a template that 
has information on the syntax and some examples. In short:

The config file defines targets you give as arguments to snackup. So 
'snackup home' backs up your /home partition, 'snackup etc' creates a .tgz 
file of your /etc. The config file is sourced, so you can put any bash 
stuff you want into there, like some shell functions you want to have 
executed. For example, I want my /var/log/portage/*.log files to be 
compressed before I backup my /var partition.

A target is started by a colon, followed by name, type, source and 
destination (and optionally more), separated by one or more tab 
characters. Type can be 'cp', 'dd', 'tar', 'rsync' or 'rdiff'. I only 
tested dd, tar and rdiff so far, though. The source directory may be 
prefixed by the volume group and LVM of that partition in order to create 
an lvm snapshot first. You may add a LUKS key if the partition is 
encrypted. The source may contain wildcards. In that case, all matching 
files are backed up to the destination. If the type has a * appended, all 
matching files are backed up individually. Some examples:

:   tar kde .kde*   /backup/kde.%s

Target 'kde' will backup all your .kde* directories to /backup/kde.tar 
(the %s is replaced by a suffix, usually tar). You need to be in your home 
directory, otherwise the path will not be found. This is not necessary if
you use ~//.kde* instead.

:   kernels tar*/usr/src//linux-*   /backup/src/%f.%s   
-j  -   lsf

Target 'kernels' will backup your /usr/src/linux-* directories 
individually - one tar file for each (note the * appendended to the tar 
target type). The -z option will be passed to the tar command, and the 
suffix is changed to tgz accordingly.
The // denotes that the backup should be done locally from the directory 
left to the //. Otherwise, the full path would be included in the tar 
file.

:   tar etc /etc/backup/etc_%d.%s   
-j

Target 'etc' will tar your /etc directory, compressed with bzip2. The %d 
will be replaced by the current date. You can change the date format by 
re-defining a date() shell function.
You will get a message about tar removing the leading /, you can avoid it 
by replacing /etc by ///etc, meaning that your local directroy will be /.

:   bootdd  /dev/sda5   /dev/sdb5   
bs=32M

Target 'boot' will backup a boot partition with dd. Options like the 
bs=32M are added directly to the dd command.

:   homersync   system/home::.  /backup/home/

Target 'home' will create a LVM snapshot of the /dev/system/home logical 
volume, mount it and back it up with rdiff-backup. The '.' could also be a 
/ or left off.

:   var rsync   system/var::/   /backup/var/-   ziplog

Similar, but the command ziplog will be executed before the backup, 
compressing some log files. It must be defined in the config file.

The script has some options:

  -c file location of config file
  -C  clear destination first
  -d  dummy mode, just show what would be done
  -f  force backup (the initial rdiff-backup may need this)
  -h  show this help
  -l  output to log file, too
  -L  log file (default:/home/wonko/log/snackup.log); may be a
  directory (add a trailing slash) to create target-specific logs
  -n luse nice level l (default:10, 0 to turn off)
  -N luse ionice level l (default:3, 0 to turn off)
  -o  extra options that will added to the actual backup command
  -s size size of LVM snapshot (default:2G)
  -S char replace tab as delimiter for targets in config file
  -T  output config file template
  -v  verbose output; may be given multiple times
  1: some extra output; 2: add -v to commands; 3: set -xv
  -V  output version information and exit

Most important are:
  -c to specify the location of the confi

[gentoo-user] Re: snackup

2010-05-07 Thread Alex Schuster
cov...@ccs.covici.com writes:

> I have a question -- where would lvm put a snapshot and how could I
> pass some list of excludes to rdiff-backup.  I have an lvm which is
> taking all the PEs and a snapshot would take up lots of disk space --
> or would it.  Would I need some free pes to put the snapshot?

An LVM snapshot has to be in the same volume group as the LVM. If all your 
physical extends are full, this will not work I'm afraid.
But you can reduce the size of one LVM with lvreduce. Of course you have 
to resize the file system inside first. This is a little more complicated 
than extending the size, because you have to specify the size when 
reducing the file system and the LVM. And the file system has to be 
unmounted :(

Let's say you want to reduce your data partition of 15G to 10G:

  umount /dev/myvg/data
  fsck -f /dev/myvg/data
  resize2fs /dev/myvg/data 9G
  lvresize -L 10G /dev/myvg/data
  resize2fs /dev/myvg/data
  mount /dev/myvg/data
 
The 2nd resize2fs maximizes the size of the fs inside the LVM. I do not 
know (does anyone else?) if you could skip this and reduce it to 10G in 
the first resize2fs step. Just to be on the safe side I reduce it a little 
more, and let it adapt do the reduced LVM size afterwards.

The snapshot itself takes nearly no space at all - it only keeps the 
changes that occur in the LVM while the snapshot is in place. So it grows 
when you modify the LVM you snapshotted. When you do not much 
modifications, 15-20% is enough according to the lvcreate man page. And I 
think I had it much lower without problems. I would expect that it can be 
really small when you do not change the original LVm much. snackup uses 2G 
as default, change this with option -s. Of course, when you do large 
modifications, like creating larger files, this may be too small.

Excludes can be given with the -x option (multiple times). And have a look 
at the config template that snackup -T gives you. Near the bottom, the 
variable oXclude is defined. It is an array, just change it to your needs. 
it already excludes things like ccache, kdecache-* directories, 
*/tmp/portage, and the dreaded nepomuk directory fo KDE4 because this 
sometimes gets really REALLY large here.

snackup -x dip -x dap would exclude the stuff already pre-defined and dip 
and dap. If you want to exclude dip and dap only, call snackup -x "" -x 
dip -x dap. But I find it easier to adapt the oXclude array.

Wonko



[gentoo-user] Re: snackup

2010-05-11 Thread Alex Schuster
I wrote:

> Still not on sourceforge, but here:
> http://www.wonkology.org/utils/snackup

Whoops, access denied. After a chmod o+r snackup, it is accessible now.

In case anyone already wrote me about this issue, I had lost my domain for 
two days, and all the e-mails going to wonkology.org.

Wonko



Re: [gentoo-user] Re: can't create file but disk isn't full

2010-05-12 Thread Alex Schuster
Willie Wong writes:

> When the filesystem fills up, services can start failing left and
> right because they cannot write logs, cannot write temp files, etc. At
> this point human intervention is necessary: root has to log in and
> clear out the disk. But if the $ROOT filesystem is completely full,
> one may not even be able to log in and/or that one cannot do any sort
> of maintenance that is needed. So you have some sort of circularity.
> (In which case you have to reboot, perhaps using another medium...)
> 
> The way out is to reserve some breathing room for root so that when
> everybody else is having problems he can still get in and fix the
> problem.
> 
> The 5% is historical from days when disks are much smaller. If you
> have a sensible partition scheme you only really need to reserve the
> blocks on the $ROOT filesystem. If the partition in question (IIRC) is
> only for /home, then you can just turn off the reserved blocks all
> together.

Isn't another purpose of those 5% the reduction of fragmentation that 
occurs more when there is few free space left? Although I also reduce ift 
on very large partitions. But I never set it to exactly zero.

Wonko



Re: [gentoo-user] Previous system uptime - not Gentoo specific

2010-05-13 Thread Alex Schuster
John J. Foster writes:

> I lost utility power for 2 hours today while at work (on my home
> machine). UPS probably help for 20 minutes, or so. Just out of
> curiousity, is there a way to determine previous system uptime. I know
> I was getting close to 11 months, which would be a record for me.

The system logs boot and login dates in /var/log/wtmp, the last command 
shows the content of this binary file.

last | grep "system boot" | head

Hope you broke the record,
Wonko



Re: [gentoo-user] Previous system uptime - not Gentoo specific

2010-05-13 Thread Alex Schuster
John J. Foster writes:

> > Hope you broke the record,
> > Wonko
> 
> fes...@localhost ~ $ last | grep "system boot"
> reboot   system boot  2.6.28-gentoo-r5 Thu May 13 16:39 - 17:30 
> (00:51)
> 
> OK, so after looking at "man last", I tried
> 
> fes...@localhost ~ $ last reboot
> reboot   system boot  2.6.28-gentoo-r5 Thu May 13 16:39 - 17:30 
> (00:51)
> 
> wtmp begins Sat May  1 08:23:36 2010
> 
> which doesn't really help much.

Strange. My wtmps are quite older:

wo...@zone ~ $ last -F  |tail -n 3
reboot   system boot  2.4.18-xfs   Sat Jul 13 00:08:20 2002 - Sun Jul 
14 02:53:25 2002 (1+02:45)   

wtmp begins Sat Jul 13 00:08:20 2002

> Any other ideas,

You could wait with your next reboot until May next year. Then it would no 
longer matter much as you broke the record anyway.

Wonko



Re: [gentoo-user] Re: libpng12 is missing

2010-05-15 Thread Alex Schuster
Roy Wright writes:

> Argh.  Just have to vent a little.

We feel with you :)


> So on to my list a applications to be installed.  Firefox check,
> openoffice check, handbrake...crap.  Handbrake is one of the
> non-standard packages that includes their own version of support
> libraries.  You guessed it, libpng12 dependent.  Argh!

After writing down some ideas about installing the old libraries somewhere 
in parallel, I just checked eix, and there is an extra slot for the 1.2 
version. So, just emerge media-libs/libpng:1.2 , and I'd expect all to be 
fine then.

Wonko



[gentoo-user] USB printer and new cups

2010-05-15 Thread Alex Schuster
Hi there!

I want to setup an USB printer. So I http://localhost:631/, and notice 
that the interface has changed. And when I try to add a printer, the only 
options for a local printer are SCSI-printer and HAL printing backend. And 
on the next screen, I have to enter the device URI by hand. How should I 
know what to enter there? And wasn't there an autodetect feature? Is the 
new CUPS (1.4.3) generally behaving like this lately, or is something 
wrong with my setup?

The usb use flag is set. lsusb shows the printer as "Bus 001 Device 003: 
ID 04a9:10a5 Canon, Inc. iP5200".

What is a HAL printing backend? Do I have to add some crazy fdi stuff for 
the printer? CUPS does not even have a hal use flag. Dale, help!

Wonko



Re: [gentoo-user] USB printer and new cups

2010-05-15 Thread Alex Schuster
Mick writes:

> On Saturday 15 May 2010 22:56:22 Alex Schuster wrote:

> > I want to setup an USB printer. So I http://localhost:631/, and
> > notice that the interface has changed. And when I try to add a
> > printer, the only options for a local printer are SCSI-printer and
> > HAL printing backend. And on the next screen, I have to enter the
> > device URI by hand. How should I know what to enter there? And
> > wasn't there an autodetect feature? Is the new CUPS (1.4.3)
> > generally behaving like this lately, or is something wrong with my
> > setup?
> > 
> > The usb use flag is set. lsusb shows the printer as "Bus 001 Device
> > 003: ID 04a9:10a5 Canon, Inc. iP5200".
> > 
> > What is a HAL printing backend? Do I have to add some crazy fdi stuff
> > for the printer? CUPS does not even have a hal use flag. Dale, help!
> 
> Did you ever get this printer working with this particular gentoo
> installation?  

I never used an USB printer at all. But I installed a lot of network 
printers, and one local parallel printer. I could select the device in the 
web frontend then, it had stuff like 'LPT #1' or 'USB Printer #1' in the 
device menu.

The Gentoo Printing Howto has this:

  USB Printer #1   Select this when the printer is locally attached to a
   USB port. The printer name should automatically be
   appended to the device name.

But I see no USB printer here.

> If not have you seen this page:
> 
> http://en.gentoo-wiki.com/wiki/Canon_Pixma_Series
> 
> They make suggestions for drivers that may work.  CUPs requires that
> you have installed the correct drivers for your device first.  Sorry I
> can't help more. Last time I tried to get a canon working was more
> than 5 years ago and I couldn't find a driver or ppd info at the time.

Thanks, this made me install gutenprint which claims to support the 
printer directly. I thought I had to use the iP4200 driver and hope it 
would work. 

But my main problem is another one: How do I tell CUPS which device my 
printer is? I tried usb:/dev/usb/lp0 (found this notation when googling 
'usb printer device uri'), but nothing happens when I try to print.

And now it gets really crazy: In the printer overview I see not only the 
'iP5200' I just created, but also a 'iP52002' that has the device URI 
'usb://Canon/iP5200'. What did create this?!

But printing to that does not work either.

Wonko



Re: [gentoo-user] Re: USB printer and new cups

2010-05-15 Thread Alex Schuster
walt writes:

> On 05/15/2010 04:01 PM, Dale wrote:
> > Just for reference, this is my USE flags:
> > 
> > USE="X avahi dbus gnutls java jpeg ldap pam perl png ppds python ssl
> > tiff zeroconf -acl -kerberos -php -samba -slp -static -xinetd"
> 
> Good grief, Dale, you're almost stark nekkid!  Where are all the rest
> of your useflags?

That was my first impression also, but those are only the USE flags for 
cups. Mine are a little different, but I have another cups version (Dale 
does not even seem have a usb USE flag):

USE="X acl dbus java jpeg ldap linguas_de pam perl php png python samba 
slp ssl tiff usb -debug -gnutls -kerberos -static -xinetd)  
 


> Alex:  when I plug in my HP USB printer, I see this in dmesg:
> 
> usb 2-2: new full speed USB device using uhci_hcd and address 2
> usb 2-2: New USB device found, idVendor=03f0, idProduct=1617
> usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
> usb 2-2: Product: hp LaserJet 3015
> usb 2-2: Manufacturer: Hewlett-Packard
> usb 2-2: SerialNumber: 00CNBM369103
> usblp0: USB Bidirectional printer dev 2 if 0 alt 1 proto 2 vid 0x03F0
> pid 0x1617 usbcore: registered new interface driver usblp
> 
> Do you see somethinhg different?

Less verbose, but similar:
usb 1-2: new high speed USB device using ehci_hcd and address 3
usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04A9 pid 
0x10A5
usbcore: registered new interface driver usblp

There is a message in syslog that is being repeated hundreds of times:
May 15 22:25:55 [kernel] usb 1-2: usbfs: interface 0 claimed by usblp 
while 'usb' sets config #1
- Last output repeated 58 times -

Wonko



Re: [gentoo-user] USB printer and new cups

2010-05-20 Thread Alex Schuster
Mick wrote:

> On Sunday 16 May 2010 02:56:23 Alex Schuster wrote:

> > But my main problem is another one: How do I tell CUPS which device
> > my printer is? I tried usb:/dev/usb/lp0 (found this notation when
> > googling 'usb printer device uri'), but nothing happens when I try
> > to print.
> 
> This is the cups driver (in kernel) which ought to pick up your usb
> printer and use it without problems.  However, according to your logs
> ... there seems to be a clash:
>
> > There is a message in syslog that is being repeated hundreds of
> > times: May 15 22:25:55 [kernel] usb 1-2: usbfs: interface 0 claimed
> > by usblp while 'usb' sets config #1

And I just found this:

May 15 22:17:40 [kernel] usb 1-2: new high speed USB device using ehci_hcd 
and address 3
May 15 22:17:41 [kernel] usblp0: USB Bidirectional printer dev 3 if 0 alt 
0 proto 2 vid 0x04A9 pid 0x10A5
May 15 22:17:41 [kernel] usbcore: registered new interface driver usblp
May 15 22:17:46 [hal_lpadmin] File "/usr/libexec/hal_lpadmin", line 717, 
in main_h = HalLpAdmin()
May 15 22:17:46 [hal_lpadmin] File "/usr/libexec/hal_lpadmin", line 686, 
in __init___self.addPrinter()
May 15 22:17:46 [hal_lpadmin] File "/usr/libexec/hal_lpadmin", line 700, 
in addPrinter_printer.add()
May 15 22:17:46 [hal_lpadmin] File "/usr/libexec/hal_lpadmin", line 541, 
in add_location=os.uname ()[1])
May 15 22:17:46 [hal_lpadmin] IPPError: (1280, 'server-error-internal-
error')

> So, what happens if you build usblp as a module and you modprobe -rv
> ubslp? Does cups pick up your printer now?

I was too busy to try this. And I don't have the printer here right now. 
But I will try this soon, so thanks.

> > And now it gets really crazy: In the printer overview I see not only
> > the 'iP5200' I just created, but also a 'iP52002' that has the
> > device URI 'usb://Canon/iP5200'. What did create this?!
> > 
> > But printing to that does not work either.
> 
> I suspect that this was created by the gutenprint driver that you
> installed. I believe that if you resolve the usblp error first then
> you'll know if gutenprint is necessary or if it will work.  Some
> manual tweaking of the ppd file may also be needed to print in higher
> resolutions, but let's get it to print first.
> 
> Stop press!
> 
> I just checked again your first post: You are using cups 1.4 which
> accesses raw usb devices!  Definitely remove usblp (or blacklist it
> and reboot if you don't want to recompile your kernel, or can't
> modprobe -r) and see if the cups back end picks up your printer on its
> own.

Thanks Mick! I will try again soon, this time on another Gentoo machine, 
where the printer finally belongs. I just wanted to try it out and to 
check the printing results. Well, this did not work at all, but at least I 
know now that it should be supported, while before I was under the 
impression I had to use a similar driver, and hope for good results.

Wonko



Re: [gentoo-user] Re: libpng12 is missing

2010-05-25 Thread Alex Schuster
Harry Putnam writes:

> Alex Schuster  writes:
> > After writing down some ideas about installing the old libraries
> > somewhere in parallel, I just checked eix, and there is an extra
> > slot for the 1.2 version. So, just emerge media-libs/libpng:1.2 ,
> > and I'd expect all to be fine then.
> 
> Doesn't seem to be the case here. (Some details below), But do we have
> a accepted way to handle this problem now?

When I wrote this, I did not really know much about this, I just spotted 
the 2nd slot. At that time, I also had a little libpng trouble, I could 
not update @world due to libpng blockers. I unmerged libpng, updated 
something that was blocking (don't remember what), and remerged libpng, 
because many applications were no longer working. I did the world update, 
ran lafilefixer --justfixit, emerged @preserved-libs, and had to do a 
revdep-rebuild, don't know why, I thought with FEATURES=preserve-libs this 
should no longer necessary.

But in the end, everything is sane now. My eix output looks similar, I 
also have both 1.2.43-r3 and 1.4.2 installed.

> But still some pkgs strike out from what appears to be libpng errors:
> 
> Example: xfce-base/thunar-1.0.2, (Wrapped for mail)
> (Emphasis added with asterisks -ed hp)
> ----   ---=---   -  
> tail of emerge:
> 
> ,
> 
> | [...]
> | 
> | /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../\
> | 
> |  i686-pc-linux-gnu/bin/ld:
> |     cannot find -lpng12 

Weird. I just tried that, and thunar-1.0.2 compiles just fine.
Does /usr/lib/libpng12.so.0 exist on your system? But, wait a minute, my 
thunar links to libpng14.so.14, not to 1.2. Do you have 
/usr/lib/libpng14.so.14? Maybe lafilefixer -justfixit fixed something for 
me, and you should try this, too?

Wonko



Re: [gentoo-user] Newbie question

2010-05-25 Thread Alex Schuster
Madhurya Kakati writes:

> Philip, Thanks for the detailed answer.

Yeah, that was a nice one.

> On 5/25/2010 9:09 PM, Philip Webb wrote:
> > 100525 Madhurya Kakati wrote:
> >> I am currently using Archlinux and Windows 7 and want to try out
> >> Gentoo.
> > 
> > Welcome aboard ! -- Gentoo requires a bit of work, time & attention,
> > but is not difficult & gives you real control on how you use your
> > machine.
> 
> Only reason i will be using gentoo is for this ;)
> 
> >> I guess Grub will be overwritten by Gentoo,
> > 
> > Not really.
> > 
> >> but will it contain the options to boot Arch kernel images
> >> automatically?

Gentoo itself does nothing - there is no automatic installer, YOU do the 
whole installation. You do not want to overwrite Grub? Well, then just 
skip this section in the Gentoo Handbook. Just add an entry for your 
Gentoo to you menu.lst. If you do not know what to add exactly, well, I'd 
suggest to read a little more about grub :)  Gentoo is special, there are 
many things to do by yourself, which users of other distributions often do 
not have to do. 

> > You can keep your whole Arch & M$ systems in separate partitions,
> > while installing Gentoo on another partition(s) alongside.
> > 
> >> I really dont wanna mess up Grub.

Well, just add something like
kernel /vmlinuz-gentoo root=/dev/sda7
to the menu.lst, but the exact parameters depend on your setup. In this 
case, Arch Linux and Gentoo would use the same /boot partition, so you 
just select another kernel image, and give the root device as kernel 
parameter. If it does not work, reboot into Arch Linux, and fix the error. 
And ask here if you are having problems.


> > First, read the Gentoo User's Guide carefully,
> > then follow it to the letter when you install Gentoo.
> 
> I have read that many times. Just need to get a printout now.

Just in case you print it so have it handy when installing Gentoo... 
there's probably no need for that (unless your are changing the 
architecture from 32bit to 64bit, then this would not work). You do not 
need to boot from a Gentoo CD, as you already have a running Linux, with 
everything needed to set up partitions for Gentoo, output some Gentoo 
stuff into them, and chroot into the new Gentoo system and do the rest of 
the install.
So, boot into Arch Linux, and then do the Gentoo install. And keep using 
your Arch system until you think Gentoo is fully operational.

Wonko



Re: [gentoo-user] howto increase INODE

2010-05-26 Thread Alex Schuster
kitti jaisong writes:

> I just install sparc machine. i found error "failed: No space left on
> device (28)" when i check inode by df -i command
[...]
> /dev/sda4 2.0G  952M  963M  50% /mnt/gentoo/usr
> /dev/sda5 2.0G   83M  1.8G   5% /mnt/gentoo/var
> /dev/sda6  29G  173M   27G   1% /mnt/gentoo/home
> 
> How to increase or solve this problem

2 GB for a /usr partition looks quite small to me, but may by okay for a 
small installation. But to increase the number of inodes, you have backup 
/usr, re-create the partition with more inodes, and copy the stuff back.

If you do not want to do so, you could move things to your home partition. 
I'd move /usr/portage first (and change the location in make.conf), that 
has many small files eating up many inodes. And if space is still getting 
small, just move other things like/usr/src, and set a symlink so /usr/src 
is still a valid path.

Oh, and please:
  - Do not hijack threads.
  - Do not quote stuff that has absolutely no relevance, like the
original posting you replied to, instead of starting a new one.

 
> - Original Message -
> From: 
> To: "Gentoo" 
> Sent: Wednesday, May 26, 2010 10:15 AM
> Subject: [gentoo-user] Harddisk trouble ... or not yet?

[BIG SNIP!]


Wonko



Re: [gentoo-user] Maximizing memory with 32bit

2010-06-02 Thread Alex Schuster
Johannes Kimmel writes:

> On 06/02/2010 03:27 PM, Alex Schuster wrote:

> > But: free -m shows only 2787 MB of total memory. I know I cannot use
> > all the 4G, but shouldn't there be at least 3GB or even a little
> > more available? What is your output of free -m?
[...]

> Probably your graphicscard uses the rest of the memory.

Oh, thanks! Did not think about this. It's an ATI Radeon HD4300 onboard 
card, so I guess this must be the cause. Seems like I will have to do the 
migration to 64bit then.

Wonko



[gentoo-user] Maximizing memory with 32bit

2010-06-02 Thread Alex Schuster
Hi there!

I have 4GB of RAM, but the system is swapping A LOT. I think I will have 
to go to 64 bit, but I need some time for that, and I need to use the 
system in the meantime.

But: free -m shows only 2787 MB of total memory. I know I cannot use all 
the 4G, but shouldn't there be at least 3GB or even a little more 
available? What is your output of free -m?

wo...@weird ~ $ zgrep HIGHMEM /proc/config.gz 
# CONFIG_NOHIGHMEM is not set
CONFIG_HIGHMEM4G=y
# CONFIG_HIGHMEM64G is not set
CONFIG_HIGHMEM=y
# CONFIG_DEBUG_HIGHMEM is not set

Wonko



Re: [gentoo-user] Maximizing memory with 32bit

2010-06-02 Thread Alex Schuster
J. Roeleveld writes:

> > > Probably your graphicscard uses the rest of the memory.
> > 
> > Oh, thanks! Did not think about this. It's an ATI Radeon HD4300
> > onboard card, so I guess this must be the cause. Seems like I will
> > have to do the migration to 64bit then.

> Wonko,
> 
> If your graphics card uses up the rest of the memory, moving up to
> 64bit won't help either.

Shouldn't I have 4GB minus the amount of graphics memory then, instead of 
3G minus that?
But I plan to add more memory anyway. With at least 6GB, and better 8GB, 
the graphics memory will not matter that much then. But I have to go to a  
64bit system for this.

> Check in your BIOS to see if you can reduce the amount your graphics
> card uses. For 'normal' desktop use, around 64MB should be more then
> sufficient and if you have 4GB physically in your system you should
> then see more memory appear.

Good idea! Thanks, I will have a look there.

BTW, this is part of my lshw output:
   *-display
description: VGA compatible controller
product: Radeon HD 3200 Graphics
vendor: ATI Technologies Inc
physical id: 5
bus info: p...@:01:05.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: pm msi vga_controller bus_master cap_list rom
configuration: driver=fglrx_pci latency=0
resources: irq:18 memory:d000-dfff(prefetchable) 
ioport:ee00(size=256) memory:fdfe-fdfe memory:fde0-fdef

d000-dfff is 255M, fde0-fdef is 1M. So I lose 1/4 G for 
graphics memory.

Wonko



Re: [gentoo-user] One hard drive much slower for some reason.

2010-06-05 Thread Alex Schuster
Dale writes:

> For the record, hda and hdb are not even mounted.  I am currently using
> hdc for the OS.  The drive used to be a lot faster than this.  I used
> it for my OS a good while back and recently used it for /var/portage
> and /usr/portage.  I'm not sure what has changed so I can't figure out
> why it is so slow.  Anyone see something I am missing?  All I see is
> the others are udma6 while it is udma5.  It has always been that way
> tho.
> 
> Thoughts?

hdb is in slave mode, maybe this slows things down? If you want to be 
sure, you could exchange hda and hdb (that is, exchange a jumper so master 
becomes slave and vice versa, unless you have it set to 'cable select'), 
and check again.

Wonko



Re: [gentoo-user] /var/tmp/portage not empty?

2010-06-07 Thread Alex Schuster
Mick writes:

> I am getting worried now about fs corruption.

I would be, too.

> The fs is supposed to be checked at boot time  

But only if it was not shut down correctly. To force a complete fsck on
reboot on a file system that looks sane, issue a 'touch /force_fsck'.

Wonko



Re: [gentoo-user] Remotely working on Gentoo systems

2010-06-08 Thread Alex Schuster
Jake Moe writes:

> j...@aus10224 ~ $ ssh -Y jhb5970
> Password:
> Last login: Wed Jun  9 08:05:09 EST 2010 from 192.168.0.114 on pts/0
> j...@jhb5970 ~ $ firefox
> Error: no display specified
> j...@jhb5970 ~ $ konqueror
> konqueror: cannot connect to X server
> j...@jhb5970 ~ $

Try "echo $DISPLAY", this should give something like localhost:10.0. If it 
is empty, the forwarding did not work. I guess you have to set 
X11Forwarding to yes in /etc/ssh/sshd_config on jhb5970, and restart ssh 
with /etc/init.d/sshd restart. /etc/init.d/sshd reload should also work.

Wonko



Re: [gentoo-user] Re: Strange python-updater error

2010-06-09 Thread Alex Schuster
Tanstaafl writes:

> So... for those of use who have already installed it (and thankfully I
> did actually read the notes about not switching to it), should me
> uninstall it then mask it? Or just leave it alone?

For the sake of simplicity, I just leave it alone.

> I'm guessing it
> won't hurt anything, again as long as I don't stupidly switch to it?

Right.

Wonko



Re: [gentoo-user] What settings for nVidia G72 [GeForce 7300 LE] video card?

2010-06-09 Thread Alex Schuster
Walter Dnes writes:

>   I'm converting an older Dell E521 AMD K8 machine from XP to Gentoo. 
> I intend to use it with an HDHomerun ATSC tuner, for recording and
> playback.  I don't know if it supports AGP, but I am including... <*> 
>  AMD Opteron/Athlon64 on-CPU GART support
> <*>   NVIDIA nForce/nForce2 chipset support
> ...in the kernel.
> 
>   I notice there are both "nv" and "nvidia" drivers available.  Which
> one do I use?  Also, are there any special settings in xorg.conf to
> watch for?

Have a look at the Gentoo Linux nVidia Guide:
http://www.gentoo.org/doc/en/nvidia-guide.xml

Wonko



Re: [gentoo-user] Two gcc versions installed

2010-06-09 Thread Alex Schuster
Daniel D Jones writes:

> eix gcc shows:
> 
>  Installed versions:
> 
> 4.3.4(4.3)!s(10:56:18 AM 02/27/2010)(gtk mudflap nls nptl openmp
> -altivec - bootstrap -build -doc -fixed-point -fortran -gcj -hardened
> -libffi -multilib - multislot -n32 -n64 -nocxx -nopie -objc -objc++
> -objc-gc -test -vanilla)
> 
> 4.4.3-r2(4.4)!s(08:29:19 PM 06/07/2010)(fortran gtk mudflap nls nptl
> openmp - altivec -bootstrap -build -doc -fixed-point -gcj -graphite
> -hardened -libffi - multilib -multislot -n32 -n64 -nocxx -objc -objc++
> -objc-gc -test -vanilla)
> 
> Is there any reason to have both of these installed?  Is it safe to
> unmerge 4.3.4?

Probably not. I would do an emerge -a --depclean. If nothing depends on 
the old gcc, it will be removed. Otherwise you get a message what has to 
be rebuilt, like I do:

weird ~ # emerge -a --depclean

 * Always study the list of packages to be cleaned for any obvious
 * mistakes. Packages that are part of the world set will always
 * be kept.  They can be manually added to this set with
 * `emerge --noreplace `.  Packages that are listed in
 * package.provided (see portage(5)) will be removed by
 * depclean, even if they are part of the world set.
 * 
 * As a safety measure, depclean will not remove any packages
 * unless *all* required dependencies have been resolved.  As a
 * consequence, it is often necessary to run `emerge --update
 * --newuse --deep @world` prior to depclean.

Calculating dependencies... done!
>>> Checking for lib consumers...
>>> Assigning files to packages...
 * In order to avoid breakage of link level dependencies, one or more
 * packages will not be removed. This can be solved by rebuilding the
 * packages that pulled them in.
 * 
 *   sys-devel/gcc-4.3.4 pulled in by:
 * app-arch/rpm-4.4.6-r7 needs libgomp.so.1
 * dev-lang/R-2.11.1 needs libgfortran.so.3
 * dev-lang/gdl-0.9_rc4 needs libgomp.so.1
 * dev-libs/beecrypt-4.2.1 needs libgomp.so.1
 * kde-base/cantor-4.4.4 needs libgfortran.so.3
 * kde-base/libkdcraw-4.4.4 needs libgomp.so.1
 * media-gfx/imagemagick-6.6.1.7 needs libgomp.so.1
 * media-sound/sox-14.3.1 needs libgomp.so.1
 * media-video/transcode-1.1.5-r1 needs libgomp.so.1
 * sci-libs/blas-reference-20070226-r1 needs libgfortran.so.3
 * sci-libs/fftw-3.2.2 needs libgomp.so.1
 * sci-libs/plplot-5.9.5 needs libgfortran.so.3
 * sys-devel/gettext-0.18.1 needs libgomp.so.1
 * 
>>> Adding lib providers to graph...
>>>
-
Calculating dependencies... done!
>>> No packages selected for removal by depclean
>>> To see reverse dependencies, use --verbose
Packages installed:   1678
Packages in world:373
Packages in system:   50
Required packages:1678
Number removed:   0

Wonko



Re: [gentoo-user] mkfs.btrfs check for bad blocks - howto

2010-06-10 Thread Alex Schuster
Helmut Jarausch writes:

> On 10 Jun, J. Roeleveld wrote:

> > You could either first use mkfs for ext3 or 4 to check, or you could
> > run "badblock" manually over the partition first to check.
> 
> Thanks, Joost,
> 
> but I don't know how to feed the output of badblocks to mkbtrfs.
> It looks as if btrfs cannot use a bad block list. Is that true?

Isn't this obsolete nowadays? SMART capable drives should remap bad 
sectors automatically and replace them by spare sectors. Running badblocks 
-n might be necessary though in order to make the drive acess every block.

So I would not trust a drive any more that actually still shows bad 
blocks.

Wonko



Re: [gentoo-user] emerge gnome fail

2010-06-13 Thread Alex Schuster
Jose Juan Montiel writes:

> yesterday i finally decide to try Gentoo (I came from debian).

Welcome!

> I follow all step of 
> http://www.gentoo.org/doc/en/gentoo-x86-quickinstall.xml but when i 
> finally go to install gnome...  in the latests package (mailclient or 
> something similar) fail...
> 
> I would like to know how to skip a failed package of metapackage 
> gnome... or how to update to other version (2.28 -> 2.30)...
> 
> Sorry for this trivial question ;)

Use emerge --resume --skipfirst to continue where you were, skipping
this package.
Or simply emerge --keep-going , this will continue
automatically even if a package fails.
To compile the package that faileed, there is often a bug report on
bugs.gentoo.org already. Just google for the error message, and if
you're lucky, you will find the solution. If not, just open a new bug
report :)

Oh, and please open a new thread the next time. This one appears under
the openrc thread.

Wonko



Re: [gentoo-user] Need help with samba (Possibly OT)

2010-06-14 Thread Alex Schuster
Michael Sullivan writes:

> 4: mich...@camille ~ $ nmblookup -B BIGSERVER __SAMBA__
> querying __SAMBA__ on 192.168.1.255
> 192.168.1.2 __SAMBA__<00>
> 
> 4:  carter ~ # nmblookup -B camille *
> querying xorg.conf.new on 192.168.1.3
> name_query failed to find name xorg.conf.new
> 
> *I'm not sure what finding xorg.conf.new has to do with Samba, but it's
> on the checklist...

The shell replaces the * by files in your current directory. I do not know 
about nmblookup, but I gues you have to escape the *. That is, use '*' or 
\* instead.

Wonko



64 bits (was: Re: [gentoo-user] Maximizing memory with 32bit)

2010-06-16 Thread Alex Schuster
I wrote:

> J. Roeleveld writes:
> > > > Probably your graphicscard uses the rest of the memory.
> > > 
> > > Oh, thanks! Did not think about this. It's an ATI Radeon HD4300
> > > onboard card, so I guess this must be the cause. Seems like I will
> > > have to do the migration to 64bit then.
> > 
> > Wonko,
> > 
> > If your graphics card uses up the rest of the memory, moving up to
> > 64bit won't help either.
> 
> Shouldn't I have 4GB minus the amount of graphics memory then, instead
> of 3G minus that?
> But I plan to add more memory anyway. With at least 6GB, and better
> 8GB, the graphics memory will not matter that much then. But I have to
> go to a 64bit system for this.

So I did, I just installed Gentoo again and now I have the 64bit system. 
Wow. The system is SO MUCH more responsive now. It's not only because 
of memory - I just removed 2GB, and the system still was more responsive 
than with 2.7GB and 32bit OS. With 32bit, I was not able to play videos 
with mplayer when updatedb or emerge -p --depclean was running, now this 
is no problem, even without [io]nice being used.
I do not know why this is - I did a setup quite similar to the existing 
system. make.conf is the same except for compiler flags, world file is 
nearly identical, kernel .config (2.6.33-tuxonice-r2) is identical except 
for some 64bit specific stuff, /home did not change.

> > Check in your BIOS to see if you can reduce the amount your graphics
> > card uses. For 'normal' desktop use, around 64MB should be more then
> > sufficient and if you have 4GB physically in your system you should
> > then see more memory appear.
> 
> Good idea! Thanks, I will have a look there.

Found it. I can select 128, 256 or 512 MB, and set it to 128 MB.

I hopped on my bike and went to the local hardware store in order to get 
another 4 GB of memory... but it was too expensive. Over a year ago, I 
paid 56 EUR for 4 GB, now I would have to pay 60 EUR for 2 GB. I'll wait.


Now for the 64bit problems. There are few, it's working better than 
expected, but some things are weird.

- At the first login into KDE4, four of my eight desktops were missing the 
background image. With every login, one came back, now I have them all. 
This issue fixed itself somehow.

- My KDE4 is mostly in English now, not in German. kde-base/kde-l10n is 
installed, LINGUAS is set to "de". Some things are in German, though - 
some parts of the systemsettings application, for example.
Oh, and after just another login - it's fixed. What's going on here? Maybe 
I should not write about other problems, and instead reboot a couple of 
times?

- hibernate-ram does not work. When I resume, the display stays black. The 
numlock key ativates the LED, but I could not switch to a text cnosole. 
After Alt-SysRq-R, caps and scroll lock flash, I guess that means kernel 
panic. Happened for two times, I won't try this anymore soon. I see 
nothing in syslog.

- Fortunately, hibernate (suspend to disk with tuxonice) seems to work. 
Did not try other yet, and the very first attempt stopped with the 'wacky 
driver' message. But the 2nd and 3rd attempt succeeded. This worked 
sometimes with the old system, but most of the times it aborted, I had to 
try about ten times for one success. And sometimes the system crashed, so 
I did not use this.
Next morning update: Resume did not work, I got a 'LUKS killed' message. 
Oh no! I do not want to shut down the system every night again, I got used 
to hibernation. I'll ask on the tuxonice mailing list, hopefully this time 
someone can help me.
BTW, I did change the graphics memory size after this, so this change is 
not the cause.

- There is some font problem. There is only one application (media-
tv/tvbrowser) in which the titles look bad, see the attachement (first 
time I do this on a mailing list, but it's small). That's no 
big problem, and I can activate antialiasing in tvbrowser, but I just 
wonder why this happens, this system should be quite identical. A diff of 
eix -I --only-names | grep font on both systems shows nothing.

- x11-libs/xview (from the science overlay) does not build, it has -amd64 
in KEYWORDS. I know about this already, and that I should not even bother 
to try compiling it anyway. But I need this libraries for stuff I am 
building. Linking 32bit libraries to applictions I build with a 64bit 
compiler cannot not work, right? Is there any easier solution than to 
chroot into a 32bit Linux? Which wouldn't be too bad, I still have my 
32bit Gentoo, and I could just trim it down and keep it running.

There were more problems, but they got solved while composing this mail. 
You wouldn't believe how often this happens to me, I start writing an 
email to this list, gather information that you might need to help, and 
solve the problem myself along this.

Wonko



Re: [gentoo-user] KDE? Get me out of here!

2010-06-16 Thread Alex Schuster
Oh my. Trying again. I already started a reply months ago, but kontact 
crashed, and I lost it. I started again, ranted about KDE4, tried to open 
systemsettings in order to check Mick's suggestions, but I misclicked and 
hit kontact, which is directly below in my favorite list. Of course, 
starting kontact under KDE4 does not open a 2nd instance of the program, 
or gives a warning that I am about to start another instance which I 
should not do, no, it just makes the running kontact crash. 
And again, the mail is gone. BTW, in the past that was no problem, kmail 
saved the drafts every two minutes (this is still configured that way in 
its settings), but this does not work. Even if I close if the regular way, 
unfinished mails are gone.
So I started for the third time, this time in thunderbird on a Windows 
mchine. And from time to time I marked the text and put it into the 
clipboard. I'm doing this with every longer mail now. I saved the mail as 
draft, and went to my Linxu machine where I resumed the edit. I wanted to 
try something and went into the import menu: Crash! Good thing 
the Windows Clipboard still had it.

Mick wrote:

> On Tuesday 09 March 2010 20:12:09 Alex Schuster wrote:

>> - Kontact. The old address book I had imported fro KDE 3.5 half a
>> year ago showed one "address book" and many std.vcf (or similar) files,
>> with my data scattered on them. I moved all stuff into the "address
>> book", and did not use it for a while
>> Now I wanted to do so, but it did not run due to an error with akonadi.
>
> Did you try to create a local resource using your systemsettings and
> point it to the local KDE3.5 contacts file?  If you restart the address
> book, then akonadi will kick in a carry out the migration - if it does
> not succeed it will tell you so.  In that case you may need to fix
> things manually (I've posted how in an older thread of mine, where I
> managed to make akonadi to succeed in its migration from a local
> resource file using sqlite - I don't have mysql in this box.  Let me
> know if you can't find it.)

I just tried that. I first added a dir-resource, as there are several .vcf 
files in my .kde3.5/share/appes/kabc directory. BTW, I had to copy that 
directory, as the file chooser did not show directories starting with a 
dot.
Nothing happened when I restarted kontact. I did the same with a file-
resource, when I noticed that all the .vcf files were identical. Again, 
nothing happened.

But: There are errors when akonadi is starting up during login. I think it 
did not do this when I wrote the last mail, but probably this is the 
problem now for the migration does not work. I attached the error parts of 
the log.

And I looked for your posting, and searched all of my gentoo-user archive, 
but somehow I did not find it. If you think it would help in my case, and 
if you still have it at hand, it would be nice if you could direct me to 
it (the subject would be enough).

>> I tried to figure out what this was, and how to get the error message
>> in English, but then I found out that I only have to restart kontact. 
>> Fine, now I want to add a contact. First, when I want to edit the
>> location, the country is set to Afghanistan, I always have to change
>> this to Germany.
>> Annoying, why is this so, who would want this behaviour, except for
>> Afghans perhaps.
>
> Have you tried to set up your locale in systemsettings to Germany?

Yes, it's set like that.


>> - Dolphin can do FTP, but I have to repeat the login process several
>> times until I see the destination files.
>
> I've also noticed an error when I try to connect with ftp saying that
> the connection failed, but then if I click on reload it connects fine.

Works sometimes, and sometimes not. Also, sometimes the content is not 
updated when I dragged files via FTP.
Other current dolphin problems:
- Opens maximized horizontally every time, except at session startup.
- The sorting is strange sometimes: Foo-1.srt, Foo-2.avi, 
Foo-1.avi, Foo-2.srt
- When the KDE session comes up, all dolphins have the same view. I'd like 
one of them to have a different view, but when I do this, next time the 
session comes up all dolphins will have this view, too. There is an option 
to remember every folder's view, but every time I open a new folder, it 
opens in symbol view first, not in the current view of the upper folder.


>> - Of course, Amarok keeps doing weird things. At least I can play music
>> from my collection. But playing a stream sometimes crashes it. And
>> dragging files into Amarok always leads to a crash. Yeah, I know, 
>> Amarok is not KDE.
>
> Given up on that long ago (and sadly have not found a nice replacement
> which won't pull in the whole of Gnome or worse)

It's getting bet

Re: [gentoo-user] User & password scanning on pop3

2010-06-16 Thread Alex Schuster
Rod writes:

>  Does anyone know how to block, or auto programs in Gentoo to limit
> or stop people scanning for a user/password hacking on your firewall?

I am using net-analyzer/fail2ban. That can block an IP after some 
unsuccessful login attempts. This helps a lot, but not against bot nets, 
when every host tries for two times only.

>  Besides disabling those ports, I still need the port accessable
> from the outside, and I guess they'd just try imap if pop was blocked.

Could you change the port to something unusual, like 1100?

Wonko



Re: [gentoo-user] Re: Boot hangs after install, no error

2010-06-16 Thread Alex Schuster
walt writes:

> On 06/16/2010 04:05 PM, Jake Moe wrote:
> > I've just completed a fresh Gentoo installation on a new laptop, and
> > 
> > strangely, after I choose the entry from the Grub screen, all I get
> > is:
> >Booting `Gentoo Linux 2.6.32-r7`
> > 
> > root (hd0,1)
> > 
> >   Filesystem type is ext2fs, partition type 0x83
> > 
> > kernel /kernel-2.6.32-gentoo-r7 root=/dev/sda4
> > 
> > [Linux-bzImage, setup=0x3000, size=0x1ab020]
> 
> The only thing that looks a bit unusual is that your kernel-2.6.xxx
> appears to be in the root directory instead of in /boot where it
> usually lives.

No, that's okay, I have it the same way. The root (hd0,1) statement tells 
grub where the boot partition is, and all other paths are relative to 
that.

Wonko



Re: [gentoo-user] (dual) booting windows kills the ethernet device for linux

2010-06-17 Thread Alex Schuster
Allan Gottlieb writes:

> The machine seems to have two "hardware" states determined by whether
> windows has been run since power on.

I _think_ I read about such a problem ages ago, and there was a 
workaround. Either in the BIOS, or in Windows, some Wake-On-LAN option. If 
activated, Windows would not shut down the device, so Wake-On-LAN will 
continue to work.

My memory on this is vague, but it might be worth a try to look into that.

Wonko



Re: [gentoo-user] Can't boot into X

2010-06-17 Thread Alex Schuster
Colleen Beamer writes:

> First, I looked in the archives and didn't find anything relevant -
> could be my stupidity, but I did try!

Fine :)


> From my kdm log the last few lines are as follows:
> 
> (EE) Failed to load module "dri" (module does not exist, 0)
> (EE) Failed to load module "dri2" (module does not exist, 0)

I have this too, when using ati-drivers. I think the nvidia-drivers also 
have their own dri, so this is okay.

> /usr/lib/kde4/libexec/kdm_greet:  error while loading shared libraries:
> libpng12.so.0:  cannot open shared object file:  No such file or
> directory
[...]
> Regarding libpng - on my first upgrade 6 days ago, I removed libpng
> prior to doing the update because the updated libpng file was being
> blocked by the existing one.  I don't know if this makes a difference.

This is the problem. /usr/lib/kde4/libexec/kdm_greet links to 
libpng12.so.0, which you removed. It needs to be rebuilt so it links 
against libpng14.so.0. A simple emerge -1 kde-base/kdm should solve this. 
Use ldd /usr/lib/kde4/libexec/kdm_greet to verify this, there should be no 
'not found' entries.

Better use revdep-rebuild, there might be many other things that are still 
linked to the old libpng. 

You could also try to emerge media-libs/libpng:1.2, this will install the 
old libpng in parallel. At least I do have both on my system, but my kdm 
inks to 1.4. If the revdep-rebuild list is very long, maybe you can get a 
working system faster this way.

Wonko



Re: [gentoo-user] Can't boot into X

2010-06-18 Thread Alex Schuster
Colleen Beamer writes:

> On Thu, Jun 17, 2010 at 12:54 PM, Alex Schuster 
> wrote:

> I don't remember why I unmasked the unstable version of libpng. 
> However, following your advice, I first attempted to reinstall kdm. 
> This had been an update 6 days ago when all this started.  The emerge
> bombed. Therefore, I fixed my package.keywords file so, the unstable
> version of libpng would not emerge and re-emerged libpng.  I can now
> boot into X.

Okay, this should have fixed a lot of broken things. I guess your revdep-
rebuid list would be even longer without this library.

> > Better use revdep-rebuild, there might be many other things that are
> > still linked to the old libpng.
> 
> The can of worms comes from doing revdep-rebuild.  However, the actual
> revdep-rebuild bombs and I get told that there are no e-builds to
> satisfy PyQt:0.

PyQt is in the kde-sunset overlay which contains all stuff needed for KDE 
3.5. Do you have such things installed? Or is PyQt accidentally in your 
/var/lib/portage/world file? emerge -pv --depclean PyQt should show you 
which stuff pulls it in.
If you think nothing needs it, remove it with emerge -Ca PyQt, and try 
revdep-rebuild again. Or add the kde-sunset overlay with layman.


> I admit that I have qt3support as a USE flag. Don't know if this is the
> issue and if I should remove it.  Advice?

I do not have it set explicitely, but for me this USE flag is also 
activated, probably because of the desktop profile. I do not have PyQt 
installed.

Wonko



Re: [gentoo-user] KDE? Get me out of here!

2010-06-19 Thread Alex Schuster
Mick writes:
> Before you read specific answers below, you may want to check:
> 
> $ echo $XDG_DATA_DIRS
> /usr/local/share:/usr/share
> 
> in your logs is shows:
> 
> Environment variable XDG_DATA_DIRS is set to
> '/usr/share:/usr/local/share:/usr/share'
> 
> Why is /usr/share in there twice?  Could this mess things up?
> 
> On 17 June 2010 00:23, Alex Schuster  wrote:
> [snip ...]
> 
> > Mick wrote:
> >> On Tuesday 09 March 2010 20:12:09 Alex Schuster wrote:
> >>> - Kontact. The old address book I had imported fro KDE 3.5 half a
> >>> year ago showed one "address book" and many std.vcf (or similar)
> >>> files, with my data scattered on them. I moved all stuff into the
> >>> "address book", and did not use it for a while
> >>> Now I wanted to do so, but it did not run due to an error with
> >>> akonadi.
> >> 
> >> Did you try to create a local resource using your systemsettings and
> >> point it to the local KDE3.5 contacts file?  If you restart the
> >> address book, then akonadi will kick in a carry out the migration -
> >> if it does not succeed it will tell you so.  In that case you may
> >> need to fix things manually (I've posted how in an older thread of
> >> mine, where I managed to make akonadi to succeed in its migration
> >> from a local resource file using sqlite - I don't have mysql in
> >> this box.  Let me know if you can't find it.)
> > 
> > I just tried that. I first added a dir-resource, as there are several
> > .vcf files in my .kde3.5/share/appes/kabc directory. BTW, I had to
> > copy that directory, as the file chooser did not show directories
> > starting with a dot.
> > Nothing happened when I restarted kontact. I did the same with a
> > file- resource, when I noticed that all the .vcf files were
> > identical. Again, nothing happened.
> > 
> > But: There are errors when akonadi is starting up during login. I
> > think it did not do this when I wrote the last mail, but probably
> > this is the problem now for the migration does not work. I attached
> > the error parts of the log.
> 
> Can you run /etc/init.d/dbus restart before you try again?  Your
> akonadi log complains about dbus (amidst other things).
> 
> > And I looked for your posting, and searched all of my gentoo-user
> > archive, but somehow I did not find it. If you think it would help
> > in my case, and if you still have it at hand, it would be nice if
> > you could direct me to it (the subject would be enough).
> 
> http://article.gmane.org/gmane.linux.gentoo.user/224044
> 
> but this was about me being able to run the akonadi migration without
> having to install mysql.  I used sqlite instead.  Have a look at the
> file I refer to anyway, just in case something is amiss in there.
> 
> >>> I tried to figure out what this was, and how to get the error
> >>> message in English, but then I found out that I only have to
> >>> restart kontact. Fine, now I want to add a contact. First, when I
> >>> want to edit the location, the country is set to Afghanistan, I
> >>> always have to change this to Germany.
> >>> Annoying, why is this so, who would want this behaviour, except for
> >>> Afghans perhaps.
> >> 
> >> Have you tried to set up your locale in systemsettings to Germany?
> > 
> > Yes, it's set like that.
> 
> Have you set up your local timezone in /etc/conf.d/clock, in case this
> affects it?
> 
> >>> - Dolphin can do FTP, but I have to repeat the login process
> >>> several times until I see the destination files.
> >> 
> >> I've also noticed an error when I try to connect with ftp saying
> >> that the connection failed, but then if I click on reload it
> >> connects fine.
> > 
> > Works sometimes, and sometimes not. Also, sometimes the content is
> > not updated when I dragged files via FTP.
> > Other current dolphin problems:
> > - Opens maximized horizontally every time, except at session startup.
> > - The sorting is strange sometimes: Foo-1.srt, Foo-2.avi,
> > Foo-1.avi, Foo-2.srt
> > - When the KDE session comes up, all dolphins have the same view. I'd
> > like one of them to have a different view, but when I do this, next
> > time the session comes up all dolphins will have this view, too.
> > There is an option to remember every folder's view, but every time I
> > open a new folder, it opens in symbol view first, not in the current
> > view o

Re: [gentoo-user] KDE? Get me out of here!

2010-06-19 Thread Alex Schuster
Whoops, sorry for the other posting. Suddenly this mail got sent, and some 
empty kmail windows opened. Probably due to this effect I sometimes 
experience: The last keypress gets repeated all over the time, and when I 
move the mouse over other windows weird things may happen. Pressing keys 
like Ctrl-Alt-Shift stops it after a while.


Mick writes:

> Before you read specific answers below, you may want to check:
> 
> $ echo $XDG_DATA_DIRS
> /usr/local/share:/usr/share
> 
> in your logs is shows:
> 
> Environment variable XDG_DATA_DIRS is set to
> '/usr/share:/usr/local/share:/usr/share'
> 
> Why is /usr/share in there twice?  Could this mess things up?

Seems to be normal, I also have this with a fresh setup.

> On 17 June 2010 00:23, Alex Schuster  wrote:
> [snip ...]
> 
> > Mick wrote:
> >> On Tuesday 09 March 2010 20:12:09 Alex Schuster wrote:

> > But: There are errors when akonadi is starting up during login. I
> > think it did not do this when I wrote the last mail, but probably
> > this is the problem now for the migration does not work. I attached
> > the error parts of the log.
> 
> Can you run /etc/init.d/dbus restart before you try again?  Your
> akonadi log complains about dbus (amidst other things).

This service is running - I think KDM did not even come up when I had it 
off once. This must be some KDE-internal dbus error.


> > And I looked for your posting, and searched all of my gentoo-user
> > archive, but somehow I did not find it. If you think it would help
> > in my case, and if you still have it at hand, it would be nice if
> > you could direct me to it (the subject would be enough).
> 
> http://article.gmane.org/gmane.linux.gentoo.user/224044

Thanks! Now I remember reading it.


> >>> I tried to figure out what this was, and how to get the error
> >>> message in English, but then I found out that I only have to
> >>> restart kontact. Fine, now I want to add a contact. First, when I
> >>> want to edit the location, the country is set to Afghanistan, I
> >>> always have to change this to Germany.
> >>> Annoying, why is this so, who would want this behaviour, except for
> >>> Afghans perhaps.
> >> 
> >> Have you tried to set up your locale in systemsettings to Germany?
> > 
> > Yes, it's set like that.
> 
> Have you set up your local timezone in /etc/conf.d/clock, in case this
> affects it?

It's set correctly. I'd guess Afghanistan ist simpy the first entry in the 
list of countries, and no one bothered to make the user's country default. 
Or do you have another default?


> > - Strigi indexes some directory over and over again and again and
> > again and again. And again and again. Then it crashes, and when I
> > re-activate it, it indexes the folder again and again and again. And
> > so on.
> 
> You may want to switch off strigi in systemsettings?

That's what I do. But still I'd like to use those desktop indexing 
features.

> BTW, have you tried removing ~/.kde4 and then login into KDE afresh?

Boy, do I hate to do this. Getting all the settings back takes so much 
work. But now I did it anyways. It took me several hours, and still not 
everying is back as it was, but at least I have I cleaner setup now.
This desktop activity stuff is a mess to set up. I have 8 desktops for 
different things I do, each one with its own activity. That is, those KDE 
plasmoids appear on that desktop only, not on every one. But while you can 
send a window to any desktop easily, moving a plasmoid from one activity 
to another does not seem to be possible. When I accidentally selected 
Enlightenment-KDE instead of Enlightenment, KDE4 started up with 
Enlightenment as window manager, which messed up the location of each 
desktop. I had to edit stuff in .kde4/share/config/plasma-desktop-
appletsrc by hand to correct this.


Impressions:

Some things are indeed fixed.

- Konqueror now respects the setting that it should ask before closing a 
window with multiple tabs.

- Dolphin no longer opens maximized.

- Ark no longer opens the home directory with dolphin when extracting 
files.

- And Akonadi starts without errors! Except for the last login, when again 
no resource agents were found. Did not happen again (yet).

KDE4 Problems that still happen:

- Strigi scans already indexed files, then crashes. Repeats a cuple of 
times, then exits. Syslog shows sefgaults in nepomukservices.

- Dolphin FTP does not work with Umlauts. And I have to enter the password 
twice.

- Konsole profiles have to be activated in the profile dialog before they 
show up in the menu.

- Kmail did not save this e-mail, I lost my edits when my whole system 
just crashed. Now I wonder what _this_ was.

- Sess

  1   2   3   4   5   6   7   8   9   10   >