Re: [gentoo-user] portage no longer in world?

2011-08-01 Thread Albert Hopkins


On Monday, August 1 at 12:41 (+0200), Joost Roeleveld said:

> On Sunday, July 31, 2011 11:02:22 AM Florian Philipp wrote:
> > @system used to contain portage. It doesn't by default, anymore. If
> you
> > do `emerge -pv --depclean`, portage should try to remove itself.
> Just
> > add it to @world by doing `emerge --noreplace portage`
> 
> It doesn't try this on my system

Yeah, I don't think that statement was entirely accurate.  Deplean
"normally" will not try to remove portage, because it satisfies the
virtual/package-manager requirement, which is in @system.

If, however, you have portage and another package satisfying
virtual/package-manager installed, and the other package was in your
world file, but portage wasn't then depclean *would* remove portage.
This is the recent behavior change, which is why some people were
surprised suddenly when nano or less or
insert_your_favorite_virtual_here was suddenly wanting to get unmerged
by --depclean.






Re: [gentoo-user] make oldconfig necessary?

2011-08-01 Thread Albert Hopkins


On Sunday, July 31 at 21:23 (-0500), Jeremy McSpadden said:

> Better to run make oldconfig. It merges the changes.
> 
> --
> Jeremy McSpadden
> def...@uberpenguin.net
> 
> 
> 
> 
> On Jul 31, 2011, at 9:06 PM, Pandu Poluan wrote:
> 
> > Let's say I have a .config from an older kernel version (for example,
> > 2.6.38), and now I want to install a newer kernel (let's say, 3.0).
> > 
> > Is it necessary to first do `make oldconfig`, or is it safe to go
> > directly to `make menuconfig`?
> > 

Agreed, although it should be possible to go straight to menuconfig,
what I think that does is basically says 'n' to all the changes, and you
never get to see what you said no to.  (Unless you have a *very* good
memory and peruse though everything in menuconfig (but that isn't
entirely correct either since some menu options will not be visible
since you implicitly said not to them).

Usually, I just do an oldconfig after a kernel upgrade.  If I also need
to explicitly enable/disable something, then i do an oldconfig followed
by a menuconfig.






Re: [gentoo-user] portage no longer in world?

2011-07-31 Thread Albert Hopkins


On Sunday, July 31 at 13:31 (+0100), Stroller said:

> Yeah, I specifically wanted to stave off suggestions of "you should
> unmask the ~86 versions of portage, anyway", as I think I saw that
> view aired fairly robustly in another thread recently and it's really
> not for me.
> 
> I was also quite conscious of this because this seems to be a new
> change for me, but most of the users of this list seem to use ~x86 /
> ~amd64, so will presumably have encountered this change months ago.
> 
> I googled, but I didn't find this change obviously documented
> anywhere. I probably used the wrong keywords, but I'd love to know
> where this *is* documented. It seems like the kinda thing that would
> be announcing.

I've not seen anyone on this list suggest switching to unstable as to
fix a bug, though admittedly I don't follow all threads and even the
ones I do follow I don't follow fully usually as the signal/noise ratio
gets pretty bad over time.

But anyway, this isn't even a bug, just a change of behavior.

Where were you expecting this "announcement".  There usually aren't
announcements on gentoo-user.

However, it is stated in the ChangeLog (which is where you should
alwaysb check first ;-).  Also, there was a change to how portage
handles virtuals, which was also discussed some weeks ago.  But it may
not have been done in stable then.

They also removed flex, bison, and other things from the system profile.
This has broken a few ebuilds (I think I created at least 3 bugs
myself).  Again, there wasn't an "announcement" AFAIK, you just have to
check the ChangeLogs and bugzilla.

Anyway I don't think they "announce" every change they make to portage,
but they do seem to appear in the ChangeLogs.

-a





Re: [gentoo-user] portage no longer in world?

2011-07-31 Thread Albert Hopkins


On Sunday, July 31 at 12:08 (+0100), Peter Humphrey said:

> On Sunday 31 July 2011 09:54:07 Albert Hopkins wrote:
> 
> > Or perhaps I'm just not understanding the problem.
> 
> He's asking why upgrading world or system doesn't include upgrading portage.
> 
> "Or perhaps I'm just not understanding the problem."  :-)
> 

Yeah, sorry about that.  I think my understanding was clouded by all the
peripheral discussion regarding stable/unstable and different versions
of portage.  That and the fact that I had just gotten out of bed when I
read it :P

They OP could have simply said "Hey, when I synced I saw a message that
I there was a new portage available, but when I run 'emerge -up world'
or 'emerge -up system' it doesn't show the updated package."  Hooray.

Nevertheless, as has already been said, yeah, it appears that system
includes virtual/package-manager and not specifically sys-apps/portage
(how diplomatic), so unless you run emerge with '--deep' or explicitly
update the package name then it won't count.

As for stable vs. unstable... I still don't understand what that has to
do with it.




Re: [gentoo-user] portage no longer in world?

2011-07-31 Thread Albert Hopkins


On Sunday, July 31 at 05:44 (+0100), Stroller said:

> Hi there,
> 
> I kinda feel I'm opening myself up for ridicule in asking this, but I'm on 
> x86 "stable" (i.e. not ~x86) and this behaviour seems to have changed 
> recently.
> 
> During a recent `emerge --sync` I received the "an update to portage is 
> available - you're strongly advised to take it" message.
> 
> I'm sure that in the past `emerge -u world` would update portage.
> 
> Now:
> 
> # emerge -up world
> 
> These are the packages that would be merged, in order:
> Calculating dependencies... done!
> 
> [ebuild U ] sys-apps/baselayout-2.0.3 [2.0.2]
> 
> # emerge -up system
> 
> These are the packages that would be merged, in order:
> Calculating dependencies... done!
> 
> [ebuild U ] sys-apps/baselayout-2.0.3 [2.0.2]
> 
> # emerge -up portage
> 
> These are the packages that would be merged, in order:
> Calculating dependencies... done!
> 
> [ebuild U ] sys-apps/portage-2.1.10.3 [2.1.9.42] USE="less%*" 
> 
> #
> 
> The answer to this, for me, is not to move to testing / unstable / ~x86 
> portage. Not on this box, I don't think, at least. I've seen that suggested 
> here in the past as "oh, everyone should be on ~86 / ~amd64 for portage" (is 
> that the 2.2 series of Portage??) and really I don't see the need for myself. 
> The current version really does everything I need, and I'd rather stay as 
> much x86 ("stable") as possible. 
> 
> What I'm really asking for here is a sanity check:
> Is this the behaviour I should be seeing?
> Was I really seeing `emerge -u world` updating portage before?
> 
> I don't really have a problem with `emerge -u portage` then `emerge -u 
> world`, I'm just wondering if that's right.
> Is there a better way to include portage in my regular maintenance updates?
> 

Firstly, regarding the subject line.  Portage isn't in world.  It's in
the system set.

Secondly, I really don't understand the question.  You are in
x86/stable, ok I understand that...  Even in stable software gets
updated.  Portage is a piece of software.  There is an update.  There's
nothing "unusual" about that.

What exactly is the question?

You could choose to not upgrade portage (though I don't know why you
would do that), but that would mean you won't receive any bug fixes it
may have, or take advantage of any new features it introduces.  Or
things may simply not work :D

What exactly are you afraid of?  How long have you been using Gentoo
that you've never had to upgrade portage before?

Or perhaps I'm just not understanding the problem.

-a





Re: [gentoo-user] IRC active time?

2011-07-26 Thread Albert Hopkins


On Wednesday, July 27 at 08:07 (+0700), Pandu Poluan said:

> Anyone here knows at what time the Gentoo IRC channels are usually active?
> 
#gentoo is a 24-hour channel. 

> In UTC, if possible :)
> 
> (Still can't wrap my head around USA time zone codes)

It really doesn't matter.





Re: [gentoo-user] root fs moved, but no init

2011-07-25 Thread Albert Hopkins

On Monday, July 25 at 21:04 (+1000), Adam Carter said:

> > No message about init, just no more console messages. I'll try the
> > kernel line. Thanks.
> 
> Ok. i ran init from the shell, and it reported /dev/initctl no such
> device or directory.
> 
> I hadnt copied the contents of /dev across - i thought it was created
> automagically?
> 
> Anyway, its copied now and I have booted successfully from the sdb.

There is always (well usually)* an initial /dev created in root.  This is needed
for before udev kicks in.  You should always copy that (and make sure it's /dev 
on
the root fs, not the udev /dev that gets mounted over it.

* This was the cause of a bug in the stage3 tarballs a few weeks back, where 
some /dev
entries did not exist in the tarball and the result was that people were able 
to 
successfully install Gentoo, but were not able to successfully boot into the
installation.






Re: [gentoo-user] root fs moved, but no init

2011-07-25 Thread Albert Hopkins


On Sunday, July 24 at 09:49 (+1000), Adam Carter said:

> Summary;
> Copied / from sda3 to sdb3
> Updated the fstab in the new disk (/dev/sdb3   /
> btrfs   noatime,compress=lzo0 0)
> Updated the kernel line's root=/dev/sda3 to /dev/sdb3 in grub.conf,
> but left the root (hd0,0) as it is. So, kernel is loaded from sda but
> init should run from sdb.
> When booting the kernel successfully mounts /dev/sdb3 as root fs
> Then the system halts at one of the freeing memory messages, but I
> assume the problem is that init isn't executed from /dev/sdb3

I wouldn't assume.  If init isn't executed you should get an explicit
error from the kernel:

Kernel panic - not syncing: No init found. Try passing init=
option to the kernel.






Re: [gentoo-user] sys-kernel/gentoo-sources-3.0 and oldconfig

2011-07-24 Thread Albert Hopkins


On Sunday, July 24 at 15:11 (+0100), Stroller said:

> > Well, if you knew what was causing it, then you wouldn't need to
> report
> > a bug as you could just fix it yourself :P
> 
> Quite the opposite!
> 
Yeah, I was half joking.  The point was that not filing a bug because
you don't know what the problem is is akin having the check engine light
on your car go on but not taking it in to service because you don't know
why the check engine light is on.

As far as diagnostics.  You can provide additional information, if they
ask you and tell you how (the same way you would if you were taking your
car in).

There's really no reason *not* to report something that you know is
wrong, in my opinion anyway.  Even if it's not enough information to fix
it, at least other people are aware that there is a problem.




Re: [gentoo-user] Re: sys-kernel/gentoo-sources-3.0 and oldconfig

2011-07-23 Thread Albert Hopkins


On Saturday, July 23 at 09:35 (-0500), Dale said:

> Albert Hopkins wrote:
[...]
> > Anyway, here's something... did you actually report a bug?  If a tree
> > falls in the forest...
> >
> >
> 
> I haven't filed a bug because at the moment we have not been able to 
> figure out exactly what is causing it.  

Well, if you knew what was causing it, then you wouldn't need to report
a bug as you could just fix it yourself :P

Look, you know it's a kernel panic.  You know kernels aren't supposed to
panic.  You know fairly well how to repeat the bug, so I don't see
anything getting int he way of you reporting it.  That's my take on it
anyway.

-a





Re: [gentoo-user] Re: sys-kernel/gentoo-sources-3.0 and oldconfig

2011-07-23 Thread Albert Hopkins


On Saturday, July 23 at 05:33 (-0500), Dale said:

> But sometimes major changes can fix things and do things completely 
> different which can lead to other issues being fixed.  Seamonkey did
> the 
> same when they did their major redo.
> 
> Bad thing is, the kernel panics are at it again.  I had a little bit
> of 
> time to download a video or two but here we go again.
> 
> Back to the normal reboots I guess.  :-(
> 
Yeah but typically.. or maybe my experience is completely different than
most, but typically major releases center on new features and not fixing
bugs, and major releases tend to create a whole lot more new bugs than
fixes (which is why many people hold out for for .1) :P

Anyway, here's something... did you actually report a bug?  If a tree
falls in the forest...






Re: [gentoo-user] Re: sys-kernel/gentoo-sources-3.0 and oldconfig

2011-07-23 Thread Albert Hopkins


On Saturday, July 23 at 01:10 (-0500), Dale said:

> I was hoping since it was a whole different numbering scheme that it
> was 
> a major change.  That was the reason for my question.  I didn't know
> if 
> this was major or a normal update or something else.   I was hoping
> for 
> something like when Seamonkey went from version 1.* to 2.* but this
> is 
> not the case.  The reason I was hoping for this was because of my
> kernel 
> panic issue.  I'm still hopeful that something may have been updated 
> that will fix my problem but I'm not as hopeful now since this is 
> nothing great.

Yeah, but a kernel panic is *not* a major issue.  They are reported all
the time.  And it probably doesn't take a *major* change to fix it.

To the contrary, *major* changes typically introduce more bugs.  So you
probably *don't* want a major change.

  * Major change: re-write or architecture change
  * Minor change: bug fixes <-- you want this






Re: [gentoo-user] Re: sys-kernel/gentoo-sources-3.0 and oldconfig

2011-07-22 Thread Albert Hopkins


On Friday, July 22 at 18:42 (-0500), Dale said:

> I sort of hate to hear there are no major changes.  I was hoping for
> a 
> fix on my kernel panic problem.  Oh well.  I'll upgrade anyway.
> Maybe 
> it will help.

Fixing a kernel bug is not considered a "major change".  A major change
would be something like "oh, we rewrote it in C++" or "Linux is now a
microkernel" (ok, maybe not *that* major but you get the idea).




Re: [gentoo-user] mysqld invoked oom-killer

2011-07-22 Thread Albert Hopkins


On Friday, July 22 at 11:13 (-0700), Grant said:

> That all makes perfect sense.  So the reason a swap larger than maybe
> 1GB is not usually implemented is because idle processes don't
> normally have more than a few hundred MB of pages in memory?
> 
That's not entirely true, either.  For example, My laptop has 4GB of
swap. Why?  Well, because I use hibernate and hibernate works on the
swap partition and I want to make sure that I have enough swap to write
all my memory to swap (actually It's now compressed so actually I
probablldon't really need that much).

> Wouldn't a sufficiently large swap (100GB for example) completely
> prevent out of memory conditions and the oom-killer?

No.  oom killer kicks in when your system is out of virtual memory.
Consider this example:

You have 4GB RAM
You have 0 swap.
Therefore you have a total of 4GB virtual memory.

The second all your processes try to consume more than 4G of virtual
memory, oom killer will kick in*

Consider the next example

You have 4GB RAM
You have 100GB swap.
Therefore you have a total of 104GB virtual memory 

The second all your processes try to consume more than 104GB of virtual
memory, oom killer will kick in.

Oom killer works on virtual memory (RAM + swap).  So it doesn't matter
how much RAM you have or how much swap you have, when the total virtual
memory is consumed, oom killer is called.

The secret is to not run out of virtual memory.

There is no *easy* way not to run out of virtual memory.  You either
don't consume as much VM, or you provide more VM (either through RAM or
swap).

* This is not entirely true, the system also needs memory for the
kernel, buffers, hardware drivers, and other things which simply cannot
be paged out to disk, so the actual number will be less than the amount
of VM.




Re: [gentoo-user] mysqld invoked oom-killer

2011-07-22 Thread Albert Hopkins


On Friday, July 22 at 19:55 (+0100), Peter Humphrey said:

> > Wouldn't a sufficiently large swap (100GB for example) completely
> prevent
> > out of memory conditions and the oom-killer?
> 
> Of course, on any system with more than a few dozen MB of RAM, but I
> can't 
> imagine any combination of running programs whose size could add up to
> even 
> a tenth of that, with or without library sharing (somebody will be
> along 
> with an example in a moment).

The *prime* example is you have a program with a memory leak (omg we
have programs with memory leaks?).

On a system with only say 2GB swap, that program will cause oom killer
to kick in fairly quickly, on a system with 100GB swap, that system is
going to have to use all 100GB of swap before oom kicks in.  By then
your system will probably be thrashing like hell. 

There is no way you can complete guarantee a system won't run out of
virtual memory, unless you can guarantee that there are no misbehaving
applications or that some clueless guy won't isn't going to try to open
a database dump in vi.*

* Well you could set process/user limits to make sure a process gets an
error after it tries to allocate a set limit of memory.




Re: [gentoo-user] mysqld invoked oom-killer

2011-07-22 Thread Albert Hopkins


On Friday, July 22 at 11:46 (-0700), Grant said:

> That's what I'm curious about.  If some swap is good, why isn't more
> better?  Paul has demonstrated that a Linux system will put at least
> 10GB to use and probably much more given the opportunity.  Disk space
> is so cheap, why isn't everyone running a 10GB or 100GB swap since
> Linux will actually put it to use?
> 
Vitamin C is good for you, but if you take a whole bottle of vitamin C
tablets you will die :P

Seriously... I think you are just not understanding what is being said
(or maybe just trying to over-generalize it).  There is never a time I'm
using 100G of vm at one time, so why do i need 100G of swap?  Sure, I
could create a 100G swap partition, but the kernel is *never* going to
need to use 100G of swap at once (unless I have a *seriously* broken
app), so why bother?  Moreover, 100G is going to take a LONG time to
swap in/out (remember disk is slower than RAM).


What we are saying is, swap is good for certain conditions (which I
don't feel like explaining again).




Re: [gentoo-user] mysqld invoked oom-killer

2011-07-21 Thread Albert Hopkins


On Thursday, July 21 at 20:07 (-0700), Grant said:

> >> Then why not have a really big swap file?  If swap is useful as a
> >> second layer of caching behind RAM, why doesn't everyone with some
> >> extra hard drive space have a 100GB swap file?
> >>
> > You've not understood what I said, I think.  Swap is not useful as
> > filesystem cache.  Swap is as efficient (probably a little less)
> than
> > the files on the disk.  It's RAM that's efficient as filesystem
> cache.
> >
> > Where swap comes in is the kernel can swap out pages from "stale"
> > processes, and reclaim the RAM as filesystem cache.
> 
> That all makes perfect sense, but if a small swap is good and a large
> swap is not any better, I'm missing something.  Maybe the pages from
> stale processes never total more than a small amount?  I don't see how
> that could be

Because you're (likely) never going to be using 100GB of memory at one
time for all your processes, let alone "idle" processes, so what's the
point of allocating all that swap?  

Continuing the analogy, it's like getting a stadium-sized attic that's
100x bigger than the house your building it on just to store a Christmas
tree and a few other items.

Here's another way of looking at it.  The kernel wants to use *all* your
RAM.  RAM is fast (compared to disk).  But it wants to use the RAM for
stuff that's actually needed most at the present time. So say you have
4G RAM.  You're only using maybe 1.5G memory for applications.  So the
kernel is going to try to use the remaining 2.5G for cache when/if it
needs to.  But let's say you're hitting the disk a lot because you're
compiling something, then the kernel might decide it would like to cache
more files than the 2.5G.  So it sees you have 300M of paged in process
memory that hasn't been used in a long while.  A better use of RAM may
be to swap out those 300M and use it for more filesystem cache, causing
your compilation to run faster.  But if you have a 100G swap file and
only 300M of "idle" pages then all that extra swap isn't going to be of
any use.  Similarly, you don't want to swap out all of the 1.5G RAM
because some of it is actually being actively used (e.g. by the
compiler).




Re: [gentoo-user] mysqld invoked oom-killer

2011-07-21 Thread Albert Hopkins


On Thursday, July 21 at 18:43 (-0700), Grant said:

> If I understand correctly, an out-of-memory condition that would lock
> up a system without swap, will cause it to thrash with swap.  A remote
> system of mine was locked up for many hours due to running out of
> memory without swap.  If I had enabled swap, the system would have
> thrashed for those hours?

It really depends.  The rule of thumb is, if your disk is thrashing or
you are getting ooms/locks then you need more RAM (or less memory-hungry
processes).




Re: [gentoo-user] mysqld invoked oom-killer

2011-07-21 Thread Albert Hopkins


On Thursday, July 21 at 18:29 (-0700), Grant said:

> Then why not have a really big swap file?  If swap is useful as a
> second layer of caching behind RAM, why doesn't everyone with some
> extra hard drive space have a 100GB swap file?
> 
You've not understood what I said, I think.  Swap is not useful as
filesystem cache.  Swap is as efficient (probably a little less) than
the files on the disk.  It's RAM that's efficient as filesystem cache.

Where swap comes in is the kernel can swap out pages from "stale"
processes, and reclaim the RAM as filesystem cache.

Think of it this way:  You have a house with an attic. Now the attic is
not as "efficient" as say, the middle of your living room.  You have a
Christmas tree, but you only use that Christmas tree maybe once a year.
Now it's much more efficient to keep that Christmas tree in the attic
for 11 months of the year and use that reclaimed space in your living
room for.. say a coffee table.  Then, when you need that Christmas tree
in December, you pull it out of the attic and maybe put the coffee table
up in the attic for a month.

The Christmas tree represents a process that's just sitting out there
doing not much half the time, but taking up space.  The space in your
living room is RAM, and the space in your attic is swap.  The coffee
table is filesystem cache.




Re: [gentoo-user] mysqld invoked oom-killer

2011-07-21 Thread Albert Hopkins


On Friday, July 22 at 10:56 (+1000), Adam Carter said:

> Its more how much i/o rather than the size. If you have a bunch of
> stuff swapped out, but it hardly ever needs to be swapped in, the
> impact will be low.
> 
> Keep an eye on the use with vmstat;
> 
> adam@rix ~ $ vmstat 5
> procs ---memory-- ---swap-- -io -system--
> cpu
>  r  b   swpd   free   buff  cache   si   sobibo   in   cs us
> sy id wa
>  0  0  56700 351244  79564 20784800 3 3   117  1
> 0 99  0
>  0  0  56700 351244  79564 20784800 0 8   52   27  0
> 0 100  0
>  0  0  56700 351244  79564 20784800 0 0   45   14  0
> 0 100  0
>  0  0  56700 351244  79564 20784800 0 0   47   17  0
> 0 100  0
> 
> from the man page;
>Swap
>si: Amount of memory swapped in from disk (/s).
>so: Amount of memory swapped to disk (/s).
> 
> 
Exactly!  My system is the same way.

Right now I've got a 4GB system that's using 708MB swap.  But vmstat
isn't showing any swap activity.  Why?  Because some processes that I'm
not aware about because I'm obviously not using, got swapped out a long
time ago, and Linux is using that reclaimed RAM to compile chromium ;)

If/when I need part of that 708MB becomes active, Linux will swap it
back in in one short burst that I doubt that I'll even notice.




Re: [gentoo-user] mysqld invoked oom-killer

2011-07-21 Thread Albert Hopkins


On Thursday, July 21 at 16:53 (-0700), Grant said:


> So swap isn't treated exactly like RAM.  It actually has special
> handling in Linux which makes it beneficial to have on almost any
> Linux system?  According to Alan, things get very bad when a Linux
> system hits swap.  How can behavior like this be beneficial:
> 
> "When a linux machine hits swap, it does so very aggressively, there
> is nothing nice about it at all. The entire machine slows to a
> painstaking crawl for easily a minute at a time while the kernel
> writes pages out to disk, and disk is thousands of times slower than
> RAM.
> 
This is not entirely true.  There's regular swapping and there is
"thrashing".  Thrashing is indicative of a memory-starved system, i.e.
when many processes are trying to access memory, but there just isn't
enough and the system is frantically swapping in/out.  I'm talking about
your normal day-to-day swapping that you probably don't even notice.

> It gets so bad that you can't even run a shell properly to try and see
> what's going on and kill the actual memory hog."

Again, that is thrashing.  I'm talking about "normal" swappage.  Dont
throw the baby out with the bath water.

> Also, aren't you likely to wear out your hard disk sooner using swap?

Is this coming from someone who uses Gentoo linux, which is constantly
downloading/compiling/linking object files?   Syslog and other loggers
writing everything under the sun to a log file.  Backups, journal
writes, database transactions, etc.  Compare how many disk transactions
take place during your normal Gentoo usage versus a few megabytes
here/there being swapped in/out.  Again, I'm talking about regular
swapping, not "oh my god I has no RAM and my hard drive won't stop"
Even so, we're talking about modern drives here.  This isn't the 1960s.




Re: [gentoo-user] mysqld invoked oom-killer

2011-07-21 Thread Albert Hopkins


On Thursday, July 21 at 10:27 (-0700), Grant said:

> It sounds like adding physical RAM is better than enabling swap in
> every way.  I'll stay in the anti-swap camp.

I don't see why it has to be one way *or* the other...

Yes more RAM is always going to be better than more swap, RAM is just
way faster than disk, however byte-per-byte, disk is cheaper.

The whole reason why we have swap.. back in the olden days, some
programs needed more RAM than perhaps the system provided.  Some of
these program were written with this in mind, and actually handled this
by manually writing some of it's data to disk, then freeing that data
from RAM, doing something, then when it needed the disk data, reading it
back into RAM (after having freed the previous data).  This is of course
cumbersome.  Enter virtual memory operating systems, which basically
treat fast memory (RAM) and slow memory (disk) as one flat memory pool.
Then the program it all looks like memory, and the OS does the paging in
and out to disk.

By now you would think "oh, but if I just had one system that had a more
RAM than i would ever use simultaneously, then I don't need swap, right?
Well, not exactly, because modern operationg systems also do something
called filesystem caching.  What this does is, recently, and often used
(parts of) files on the filesystem are kept into fast RAM, so when a
program needs that data it can be fetched from cached RAM instead of
hitting slower disk.  Ok, that's nice, but what does that have to do
with swap?  Well, not only does Linux keep track of wIt sounds like
adding physical RAM is better than enabling swap in
every way.  I'll stay in the anti-swap camp.hat files are used often, it
also keeps track of what pages of virtual memory are *not* used often.
Say you started some program a long time ago, or some program launches
at boot time, but that program sleeps and doesn't do anything for a long
time.  Now ordinarily that program would just sit there taking up RAM.
Now you are running some other programs, and these programs are very
actively hitting the disk.  Now Linux would love to use more RAM for
caching those disk hits, but that program you haven't touched in hours
is taking up RAM doing nothing.

That's where swap comes in.  Linux would like to take that sleeping
process and swap some of its pages out to disk, so it can use the freed
RAM for more cache, and therefore speed up the programs that are
actually being used.  Then, if the barely used process ever does wake
up, Linux can expire some cache and put it back into RAM.

In this case swap *is* good because it's making more efficient use of
RAM by swapping out seldom-used processes and using that RAM to cache
often-accessed files.

So a healthy combination of swap and RAM *can* be a good thing.  If,
however, you have so much RAM that you can run every program you'd ever
run simultaneously with every file you'd ever access cached in RAM then
I wouldn't worry about swap ;)

-a





Re: [gentoo-user] Upgrade query

2011-07-21 Thread Albert Hopkins


On Thursday, July 21 at 11:10 (+), j...@jdm.myzen.co.uk said:


Well, depends on your definition of "works".

AFAIK linux does not expose the NFTS permission system fully, because
they are very different and there is no 1:1 mapping between them.  So
while the *data* may be copied over, the permissions will likely only be
copied as far as how the linux filesystem layer sees them, and may not
be preserved 100%.

There are NTFS tools afaik though, (ntfsclone).  Since I don't actually
use NTFS for anything, someone else may better be able to assist.




Re: [gentoo-user] Upgrade query

2011-07-21 Thread Albert Hopkins


On Thursday, July 21 at 10:01 (+), j...@jdm.myzen.co.uk said:

> A little advice please? I am about to build a new box going from
> athlon dual core to phenom six core. Including new sata drives and
> motherboard. I was going to clone all my partitions and the re emerged
> all packages with march native
> 
> Firstly would you reccommend cloning and if so what is best
> technology?

When I move to a different machine, I just

  * boot into a live cd
  * back up all the partitions with rsync (or use tar or similar if
you need compression) to an external (USB) drive.
  * boot new machine into livcd
  * repartion, copy backed up files
  * install bootloader (and reconfigure/build kernel if necessary)

If both source and target are on the same network you can probably also
get away with rsync'ing over the LAN instead of using an external drive.

As for what "technology" is best, they are not going to make a whole lot
of difference, IMO.  I find rsync/cp easier to work with (you can
manipulate files before copying them to the new box).  tar is more
efficient if you need compression.  dd, would be the least efficient in
my opinion, because it's going to clone the entire partition, including
unused blocks, when you're really only concerned about the files.  Tools
like partimage, etc. can clone a partition "smartly" but I tend to use
those tools less often as I'm really only concerned about the files, not
the partitions.  Unless your source and target partitions are going to
have the exact same geometry, I don't see the benefit if cloning
partitions.

Just my 2¢

-a




Re: [gentoo-user] Using KVM, what about clocks?

2011-07-20 Thread Albert Hopkins


On Wednesday, July 20 at 23:43 (+0200), Stefan G. Weichinger said:

[...]
> Are there any recommended kernel-config-settings for a performant and
> non-drifting KVM-server?

Well, KVM_CLOCK obviously:

KVM_CLOCK
bool "KVM paravirtualized clock"
select PARAVIRT
select PARAVIRT_CLOCK

  Turning on this option will allow you to run a paravirtualized clock
  when running over the KVM hypervisor. Instead of relying on a PIT
  (or probably other) emulation by the underlying device model, the host
  provides the guest with timing infrastructure such as time of day, and
  system time





Re: [gentoo-user] Any way around "Argument list too long"?

2011-07-17 Thread Albert Hopkins


On Sunday, July 17 at 17:47 (-0700), Grant said:

> ran this and the output was voluminous but looked good:
> 
> /usr/bin/find /home/user -type f -name "*-`/bin/date -d 'yesterday'
> +\%Y\%m\%d`*.jpg"
> 
> So I ran it again, adding -delete right before -type.  After a lot of
  

That was a mistake.

> processing I got a line of output like this for each file:
> 
> /usr/bin/find: `/home/user/1-2011071612345.jpg': No such file or
> directory
> 
> Unfortunately the command actually deleted the entire /home/user
> folder.  Can anyone tell me what went wrong?  Maybe '/home/user' was
> at the very top of the long list that scrolled up the screen when I
> ran the find command without -delete?
> 
Well this is an unfortunate way to learn how find works.  A better way
would be:

$ man find

Basically find works of a chain of selection criteria.  It crawls all
the files/dirs and when one item in the chain is true for the criteria,
it checks for the other.  For example

$ find /path -type f -name blah -print

Crawls /path, for each file/dir it checks if it is a regular file (-type
f), if that is true, it checks if it's name is "blah", if that is true,
it prints the name (blah).

Therefore, 

$ find /path -delete -type f -name 

Crawls path, then checks "-delete".. but wait, -delete evaluates to
"true if removal succeeded" (find(1)), so it deletes the file, then
checks to see if it is a regular file, then if that is true then it
checks the name... but all that doesn't matter because your files are
deleted.

You should never put -delete at the beginning of a chain and, arguably,
you shouldn't use -delete at all.  It even says in the man page:

Warnings:  Don't  forget that the find command line is evaluated
as an expression, so putting -delete first will make find try to
delete everything below the starting points you specified.  When
testing a find command line that you later intend  to  use  with
-delete,  you should explicitly specify -depth in order to avoid
later surprises.  Because -delete  implies  -depth,  you  cannot
usefully use -prune and -delete together.







Re: [gentoo-user] best cflags and cpu for gentoo qemu virtual machine

2011-07-17 Thread Albert Hopkins


On Saturday, July 16 at 16:54 (+0300), Kfir Lavi said:


> The mother machine will be Core I7 4 cores.
> What cpu and CFLAGS should I use to get the best performance out of this vm?

A router is not going to be CPU-bound.  Should matter little either way.




Re: [gentoo-user] [OT]: Converting flv to what?

2011-07-16 Thread Albert Hopkins


On Saturday, July 16 at 07:12 (+0200), meino.cra...@gmx.de said:

> Hi,
> 
> As a Blender-fan over the time my harddisk has been filled (by me ;) )
> with lots of video-tutorials in the flv (flash video)-format.
> 
> Now I need some space to store more *.blend files ...
> 
> So I think I need to convert the flvs into another format...
> 
> What is the most recommended format to preserve as much as possible
> of the original video and audio quality *and* to save space beyond
> the "some kilobytes" area?
> 
> What is the best tool for that job: mplayer or ffmpeg or...?
> 
> What parameters should I use ?

I would just keep the original, but that's just me.  Converting them
you're going to lose quality to some degree or another.  Just burn them
to an optical disk or something.

Barring that I use ffmpeg, but it's really just a matter of whatever
you're more comfortable with.

-a





Re: [gentoo-user] qemu-kvm

2011-07-15 Thread Albert Hopkins


On Saturday, July 16 at 01:24 (+0100), john said:

> I am running a gentoo amd64 qemu-kvm virtual image on my gentoo amd64
> box.
> 
> Everything is running well. Machine boots up and all looks to be ok.
> 
> When I startx the screen goes purple (on guest) and locks up. The only
> error message I get is on host.
> 
> KVM internal error. Suberror: 1 emulation failure
> 
> I would guess this is a graphics issue but not entirely sure.
> 
> I have tried -vga cirrus, std, vmware but all have the same effect.
> 
> I have emerged these in guest as xorg-drivers.
> 
> Any suggestions!

I use kvm, though most of my guests are headless or just text mode.. but
i did just try booting systemrescuecd into X and all was well.

question:

  * What verison of qemu-kvm are you runing
  * which kernel
  * Have you tried other guests (such as systemrescuecd)?


Seems to work for me (with the cirrus emulator).

-a





[gentoo-user] Drupal appliance available

2011-07-15 Thread Albert Hopkins
Last night I decided I wanted to create a new Gentoo virtual appliance.
So I build a Drupal[1] appliance. Though I really don't know anything
about Drupal, but I managed to get one made.

I uploaded a "pruned" appliance. Which means I removed the gentoo
toolchain, so it's not upgradable or manageable in the Gentoo sense.
It's just the appliance.  But I did so just to see how small I could
make it.  It turns out to be a 63M compressed vmdk[2] with 72 packages
installed[3] (excluding virtuals). Anyway see below if anyone wants to
play with it, and let me know if you have any suggestions.

-a


[1] http://drupal.org/
[2] http://starship.python.net/crew/marduk/drupal-dist.vmdk.bz2
[3] http://starship.python.net/crew/marduk/drupal-dist-package.lst





Re: [gentoo-user] How does emerge know which files to delete during unmerge?

2011-07-14 Thread Albert Hopkins


On Thursday, July 14 at 19:56 (+0700), Pandu Poluan said:

> Another question:
> 
> How does emerge know which files to delete during unmerge?
> 
> I'm asking this one because I'm in the midst of writing an ebuild, and
> I want to know how to tell emerge what new files has been added (if
> necessary)

You don't tell emerge.  Emerge already knows.  It keeps a manifest in
the package database (/var/db/pkg) and that's how it knows what to
delete.  Most package managers work similarly.




Re: [gentoo-user] rc_sys -- what for?

2011-07-14 Thread Albert Hopkins


On Thursday, July 14 at 18:59 (+0700), Pandu Poluan said:

> One question's been haunting my mind since migration to baselayout-2:
> 
> What's the purpose of setting rc_sys?
> 
> (In my case, to "xenU")l
> 
> Rgds,


Just briefly looking at the sources...

  * It affects when some filesystems are mounted (e.g. xenfs).
  * It determines if dmesg is written to /var/log/messages on boot.
  * For openvz it writes a "halt record" on shutdown/reboot.
  * For FreeBSD it does something with sysctl
  * Probably some other stuff







Re: [gentoo-user] qemu command line manager (rc scripts)

2011-07-11 Thread Albert Hopkins


On Monday, July 11 at 18:28 (+0300), Kfir Lavi said:

> Hi,
> I'm looking for xen like manager to manage my virtual machines when
> computer
> boots.
> Is there any such project?


libvirt (can also manage Xen):

http://libvirt.org/






Re: [gentoo-user] ?? CONFIG_USB_SUSPEND ??

2011-07-11 Thread Albert Hopkins


On Monday, July 11 at 10:16 (+), Alan Mackenzie said:

> Hi, Gentoo.
> 
> Just done an "emerge -puND world".  One of the packages updated was
> sys-fs/udisks-1.0.3-r1.  Its warning message was:
> 
> CONFIG_USB_SUSPEND: is not set when it should be.
>   * Please check to make sure these options are set correctly.
>   * Failure to do so may cause unexpected problems.
> 
> CONFIG_USB_SUSPEND is surely a kernel config thing.  I can't find it in
> my kernel config file.  However, in "make menuconfig" I do a search for
> "USB_SUSPEND", It says:
> 
>Location:
>   │ -> Device Drivers
>   │   -> USB support (USB_SUPPORT [=y])
>   │ -> Support for Host-side USB (USB [=y])
> 
> I can't find anything at that location which looks like "USB_SUSPEND".
> 
USB_SUSPEND
bool "USB runtime power management (autosuspend) and wakeup"
depends on USB && PM_RUNTIME

  If you say Y here, you can use driver calls or the sysfs
  "power/control" file to enable or disable autosuspend for
  individual USB peripherals (see
  Documentation/usb/power-management.txt for more details).





Re: [gentoo-user] [OT encfs] When encfs gets hungup

2011-07-09 Thread Albert Hopkins


On Saturday, July 9 at 12:22 (+0100), Neil Bothwick said:

> I wasn't suggesting that. But when the main reason for sticking with
> the
> older option is that you have a working system with data in it, the
> loss
> of both of those is a good time to investigate the newer alternative.

I see.  I guess I don't consider one as "older".  They are rather
alternatives to one another (like openssl and gnutls).

Generally speaking I'm usually discouraged by "I currently have a
problem A, so I'll switch to B".. the old adage "Now you have two
problems." 




Re: [gentoo-user] [OT encfs] When encfs gets hungup

2011-07-09 Thread Albert Hopkins


On Saturday, July 9 at 08:39 (+0100), Neil Bothwick said:

> Fair enough, except this thread is about encfs not working :(

Unfortunately.  But that's not to say "encfs doesn't work".  When I have
a problem with a bash script, I don't just up and switch to zsh :P
(although I hear people do such things).




Re: [gentoo-user] [OT encfs] When encfs gets hungup

2011-07-08 Thread Albert Hopkins


On Friday, July 8 at 22:50 (+0100), Neil Bothwick said:

> Apart from the need to access legacy data, which Harry has resolved by
> reformatting, is there any benefit in using encfs rather than the
> in-kernel ecryptfs these days?

Admittedly there isn't much difference, so if what you are using works
for you why not stick with it. I still prefer encfs, although I have
admittedly never tried ecryptfs, for the following reasons:

  * It's FUSE, completely userspace and requires no kernel support
(other than FUSE) and no special privileges to mount (other than
fusermount).
  * You can have multiple layers of encryption on on source
directory.  E.g. two different passwords can give you two
different views of the filesystem.
  * In the documentation at least, it says when you upgrade ecryptfs
you should first copy the files from the old ecryptfs to an
unencrypted filesystem, and then copy it to the new ecryptfs.
That seems like something some people won't want to do.






Re: [gentoo-user] Virt-manager

2011-07-08 Thread Albert Hopkins


On Friday, July 8 at 22:37 (+0100), john said:

> ok I might be being dumb but found a way round this (through trial and
> error) 
> 
> In advanced options in step 5 of 5 select "Specify Shared Device Name"
> 
> Please note you'll need to create a bridge as well but selecting the
> above removes error message.
> 

Ok, the problem appears that you never really solved the first issue you
had.  So that's causing other issues down the pipe, which is often the
case.




Re: [gentoo-user] Virt-manager

2011-07-08 Thread Albert Hopkins


On Friday, July 8 at 21:22 (+0100), john said:

[...]
> LOL Well I was up and running but now when trying to create VMs I get
> (have done upgrade of around 20 packages)
>  
> Uncaught error validating install parameters: Must pass a VirtualDevice
> instance.
> 
> Traceback (most recent call last):
>   File "/usr/share/virt-manager/virtManager/create.py", line 1241, in
> validate
> return self.validate_final_page()
>   File "/usr/share/virt-manager/virtManager/create.py", line 1501, in
> validate_final_page
> self.guest.add_device(self.nic)
>   File "/usr/lib64/python2.7/site-packages/virtinst/Guest.py", line
> 666, in add_device
> raise ValueError(_("Must pass a VirtualDevice instance."))
> ValueError: Must pass a VirtualDevice instance.
> 
> dnsmasq installed. python-updater run. revdep-rebuild etc..
> 

> Are there any other GUIs to try for for virtualisation?
> 
> Or is it better sticking to CL to qemu-kvm?
> Am I expecting too much for this just to work?
> 

I can honestly say that I haven't experienced so much pain working with
libvirt/virt-manger.  If I had I probably would have given up, but I've
been using it for years now.

What versions of packages are you using?  Are you mixing stable/unstable 
packages?

I can't really say.  I've never seen that error before.  What steps are
you taking to create the VM?

 





Re: [gentoo-user] Is Gentoo wiping out Gtk 2 support from packages that support it?

2011-07-08 Thread Albert Hopkins


On Friday, July 8 at 17:19 (+0200), Alan McKinnon said:

> On Friday 08 July 2011 09:14:36 Albert Hopkins did opine thusly:
> > On Friday, July 8 at 13:11 (+0100), Stroller said:
> > > Taking a look at this bug today, is there any reason why the
> > > ebuild shouldn't simply RDEPEND="x11-libs/gtk+" (i.e. remove
> > > the explicit dep on gtk3), detect what version you have
> > > installed on your system and then either run --enable-gtk3 or
> > > --enable-gtk2 during src_configure(), depending upon which
> > > you're using?
> > 
> > ebuilds generally don't do this, because it is bad.  What you have
> > and what you want aren't necessarily the same thing.  Consider:
> > 
> >   * You don't yet have any gtk installed
> >   * You have gtk2 but actually *want* the gtk3 version, so you
> > want the ebuild to pull in gtk3 (or vice versa)
> >   * You have both gtk2 and gtk3 installed.
> >   * You have gtk installed, but don't want gtk support for a
> > particular package (if gtk support is optional for that
> > package).
> 
> easy.
> 
> Two USE flags: gtk2 and gtk3
> 
> in ebuild:
> 
> DEPEND="
> gtk2? (x11-libs/gtk+:2)
> gtk3? (x11-libs/gtk+:3)
> "
> 
> in src-configure() write the code such that it establishes a 
> precedence
> 
> If both flags are set, build against gtk+:3
> If only one flag is set, build against that toolkit
> If no flags are set, do something appropriate.
> 

You mean like what they did with portage and python2/3?

Well, there was bugs in that (I reported 1 or 2 bugs myself).  It works
now (depending on your expectation of "works" but is very ugly.

> IIRC, it is frowned upon to have conditionals in DEPENDS based on USE 
> flags so the above is best - take the small hit on disk space if both 
> are set and gtk+:2 is used nowhere else (highly unlikely for quite a 
> while still)
> 
They could do that.. I don't see it happening though.

I didn't want to comment on this thread (having been on both sides of
the fence).  But I will say this.  The best thing about Gentoo is it's a
"meta-distribution".  It gives you more control and more ease to do
things "your" way.  I think people should learn to take more advantage
of the latter.  I do.





Re: [gentoo-user] [OT encfs] When encfs gets hungup

2011-07-08 Thread Albert Hopkins


On Friday, July 8 at 11:55 (-0500), Harry Putnam said:

[..]
> Somehow I managed to really hurt the installation ... here is what I
> remember having done:
> 
> Some how I got mixed up when running as root, and attempted to mount a
> users encfs directory.  (Its a single user machine so it my users
> directory) 
> 
> That should just fail with some kind of permission error since no one,
> even root, can mess with someone elses' encfs directory.
> 
This is not entirely the case.  No one can enter an encfs mount
(destination) but the person that mounted it (by default), but anyone
can *mount* the encfs "source" (and thus become the owner of the mount).
All other Unix permissions are retained.

> But once I'd done that I could no longer even `ls' the subject
> directory.  Not as user, not as root.  A simple `ls' would totally
> hang the terminal.
> 
> Of course I tried to umount but really it never actually mounted.
> 
It probably *did* mount, but...

> I started getting this error: `Transport endpoint is not connected'
> 
Usually that means the background process that actually handles the
enc/dec has died or is otherwise not responding.

> I could see roots attempt to mount the darn thing in ps wwaux output
> and killed that pid.
> 
That's probably why you got the above error.  But technically if you
just kill the process, the kernel still thinks it's mounted.

> Eventually (after posting several days ago on encfs list.  I resorted
> to umounting /home (after full backup of course) and reformatted it.
> 
That's seems a bit extreme...

> I was then able to deleted encfs_raw and encfs_mnt.
> 
Did you try simply rebooting or manually unmounting?  That's probably
all that was needed.

> But here is the real kicker.  Even after all that, and in fact another
> full round of mostly the same stuff, including another reformat.  So
> two reformats and two reboots.  Even with that, I still cannot create a
> new enc_raw and enc_mount of the same name as the old one.
> 
What do you mean by "cannot"?  Do you get an error?  Does dmesg tell you
anything?

> I would like to, because I have several scripts that depend on that
> name.  Not a huge deal... but what could still be causing trouble?
> 
This is indicative possibly of another issue, that is being masked.  Try
reading dmesg or strace the encfs process in foreground mode.

> I can create any number of encfs directories with different names.
> Just not the original.
> 
Again, seems indicative of another issue.  Perhaps the host fs is
currupt or something similar.

> What happens if I try is that after creation (using old name) I can
> move files to the new (with old name) directory.
> 
> But if I once umount it like: fusermount -u /my/oldencfs, then when I
> try next to mount it, it hangs terminally.  Takes over the terminal
> and kills all further progress (in that terminal).  This happens at
> the point where I answer the passwd prompt with the appropriate
> passwd.
> 
> (No .. no chance I'm entering it wrong... its been in daily use for
> yrs).
> 
> I'm kind of stumped at what else to try.  I've used encfs -v (verbose)
> mode and -f (foreground) mode but after entering the passwd... it
> all just goes south... nothing more can happen.
> 
> Maybe encfs keeps data somewhere that I can delete and make this go
> away?  But a `qlist encfs', listing all that got installed doesn't show
> anything like that.
> 
If you totally remove the source and target directories, there is no
other information stored, which allows you to (e.g) encfs directory on a
vfat-formated USB stick and move it mount it on a different machine.
All that encfs knows about an encrypted directory is in *one* file on
the source directory (.encfs6.xml).  Once that file is gone, there is no
such thing as an encfs.

Having said that:
One of encfs's Achilles heel is its dependency on the boost C++ library
which is *very* sensitive wrt to API/ABI changes and the like.  It also
depends on OpenSSL which also shares this notoriety (although, in my
experience, less so).  So there is a possibility that an update to any
of those packages may have broken encfs and you need to rebuild the
package.






Re: [gentoo-user] Is Gentoo wiping out Gtk 2 support from packages that support it?

2011-07-08 Thread Albert Hopkins


On Friday, July 8 at 13:11 (+0100), Stroller said:

> Taking a look at this bug today, is there any reason why the ebuild
> shouldn't simply RDEPEND="x11-libs/gtk+" (i.e. remove the explicit dep
> on gtk3), detect what version you have installed on your system and
> then either run --enable-gtk3 or --enable-gtk2 during src_configure(),
> depending upon which you're using?
> 
ebuilds generally don't do this, because it is bad.  What you have and
what you want aren't necessarily the same thing.  Consider:

  * You don't yet have any gtk installed
  * You have gtk2 but actually *want* the gtk3 version, so you want
the ebuild to pull in gtk3 (or vice versa)
  * You have both gtk2 and gtk3 installed.
  * You have gtk installed, but don't want gtk support for a
particular package (if gtk support is optional for that
package).






Re: [gentoo-user] Lexmark X5650 working in Gentoo Linux?

2011-07-07 Thread Albert Hopkins


On Thursday, July 7 at 21:18 (-0600), Carlos Sura said:

> I was thinking if there was any chance if anyone of you have this
> printer
> installed to tell me how to get it work for me... Or a howto,
> tutorial,
> manual?

According to openprinting.org, it's a paperweight.




Re: [gentoo-user] DNS error with ssh

2011-07-07 Thread Albert Hopkins


On Thursday, July 7 at 17:43 (-0700), Grant said:


> 
> Yeah I don't get it.  Check this out:
> 
> $ ping google.com
> PING google.com (74.125.224.84) 56(84) bytes of data.
> 64 bytes from 74.125.224.84: icmp_req=1 ttl=55 time=97.1 ms
> 64 bytes from 74.125.224.84: icmp_req=2 ttl=55 time=97.1 ms
> 64 bytes from 74.125.224.84: icmp_req=3 ttl=55 time=97.5 ms
> ^C
> --- google.com ping statistics ---
> 3 packets transmitted, 3 received, 0% packet loss, time 5142ms
> rtt min/avg/max/mdev = 97.105/97.268/97.539/0.319 ms
> $ ssh google.com
> ssh: Could not resolve hostname google.com: Name or service not known
> 
> - Grant
> 

Check your ~/.ssh/config.  For example:

$ ssh localhost # works fine, but

$ mv ~/.ssh/config ~/.ssh/config.bak

$ cat -v config.test
Host *
HostName "%h ^H"

$ mv config.test ~/.ssh/config

$ ssh localhost
ssh: Could not resolve hostname localhost: Name or service not known





Re: [gentoo-user] Virt-manager

2011-07-07 Thread Albert Hopkins


On Thursday, July 7 at 23:30 (+0100), john said:

> On Thu, 07 Jul 2011 17:26:18 -0400

> 
> Have cleared up error messages using config as suggested.
> 
> I still get the issue when starting /etc/init.d/libvirtd
>  
> >  * Starting libvirtd ...
> > /usr/sbin/libvirtd: error: Unable to initialize network sockets.
> > Check /var/log/messages or run without --daemon for more info.
> >  * start-stop-daemon: failed to start
> > `/usr/sbin/libvirtd'[ !! ]
> >  * ERROR: libvirtd failed to start

You'll have to turn up the logging level of libvirt (to find out exactly
what it's trying to do and where it's erroring out).

> BUT when i start /usr/sbin/libvirtd from command line virt-manager now
> works. It lets me create vms (yippee)
> 
> I was unaware that libvirtd was a separate package (thought it was part
> of virt-manager. After reading your hints it dawned on me that is was
> seaparate so have enabled more use flags. I should check more carefully
> the output of emerge -vp.
> 

libvirt (not libvirtd) is a seperate package, it (possibly) contains a
number of things, including

libvirt: the C library that allows you to manage many different types of
virtualization platforms using a common API.
Python bindings for the above
A command-line and shell interface (called virsh)
libvirtd, which is a daemon helper used to manage virtualization
platforms which don't have their own management service (such as kvm).

virt-manager, is a seperate product.  It is a GUI interface written in
python that is used to talk to manage different types of virtualization
platforms.  It uses libvirt (its python bindings) to do this.  Think of
it as a GUI version of virsh.

But you don't need virt-manager to use libvirt, and you don't even need
libvirtd to use libvirt (e.g. you are interfacing with Xen or VMware
hypervisors).

That's why I was trying to say it's good for you to figure out what you
are trying to do, before you go through the trouble of figuring out how
to solve a problem that doesn't even pertain to you and could have been
avoided altogether just by choosing the right combination of USE flags.

If you are just wanting have a GUI for Xen, for example, you don't even
need to worry about libvirtd.  If, for example, you are using KVM but
you want the VMs to bridge off a physical interface and have no need for
"virtual networks", then you don't even need the virt-net USE flag.
 
> Anyway I am up and running with a big thanks to yourself and will have
> a closer look at the service another day.

Ok




Re: [gentoo-user] Virt-manager

2011-07-07 Thread Albert Hopkins


On Thursday, July 7 at 20:46 (+0100), john said:

Well, I see several errors, you may want to start with the first one and
work your way down.

> iptables is running, bridging and tun have been loaded as modules
> iproute2 has now been installed but makes no odds. Not sure about brctl
> as I can't find this?
> 
> Have started libvirtd and get the following
> when trying to start virt-manager
> 
> 20:28:05.083: 5216: info :
> libvirt version: 0.9.1 20:28:05.083: 5216: error : virCommandWait:1281 :
> internal error Child process (/sbin/iptables --table mangle --insert
> POSTROUTING --out-interface virbr0 --protocol udp --destination-port 68
> --jump CHECKSUM --checksum-fill) status unexpected: exit status 1

iptables is failing.  Maybe you don't have the correct modules or have
them installed.

> 20:28:05.084: 5216: warning : networkAddGeneralIptablesRules:1199 :
> Could not add rule to fixup DHCP response checksums on network
> 'default'. 20:28:05.084: 5216: warning :
> networkAddGeneralIptablesRules:1200 : May need to update iptables
> package & kernel to support CHECKSUM rule. 20:28:05.256: 5216: error :
> virCommandWait:1281 : internal error Child process (/sbin/ip addr add
> 192.168.122.1/24 broadcast 192.168.122.255 dev virbr0) status
> unexpected: exit status 1 20:28:05.256: 5216: error :
> networkAddAddrToBridge:1625 : internal error cannot set IP address on
> bridge 'virbr0' 20:28:05.449: 5216: error : virCommandWait:1281 :
> internal error Child process (/sbin/iptables --table mangle --delete
> POSTROUTING --out-interface virbr0 --protocol udp --destination-port 68
> --jump CHECKSUM --checksum-fill) status unexpected: exit status 1
> 20:28:05.481: 5216: warning : networkStartNetworkDaemon:1800 : Failed
> to delete dummy tap device '(null)' on bridge 'virbr0' : Invalid
> argument 20:28:05.526: 5216: error : udevGetDMIData:1493 : Failed to
> get udev device for syspath '/sys/devices/virtual/dmi/id' or
> '/sys/class/dmi/id' 20:28:51.078: 5219: error :
> remoteDispatchAuthPolkit:5139 : Policy kit denied action
> org.libvirt.unix.manage from pid 6810, uid 1000: exit status 1
> 20:31:26.177: 5218: error : do_open:1085 : no connection driver
> available for No connection for URI qemu:///system
> 
> Does mean something++
> no connection driver
> available for No connection for URI qemu:///system
> 

The subsequent errors may be because of the first.  So I'd start with
that.

If you are not going to use virtual networks, then you could simply
disable the virt-net USE flag and save yourself some time.

As for as iptables.  You need the right sub-drivers (or whatever they're
called).  Basically if you are using virtual networking you need to be
able to do NAT.  I have the following:

CONFIG_NF_CONNTRACK=m
CONFIG_NF_CONNTRACK_MARK=y
# CONFIG_NF_CONNTRACK_EVENTS is not set
# CONFIG_NF_CT_PROTO_DCCP is not set
# CONFIG_NF_CT_PROTO_SCTP is not set
# CONFIG_NF_CT_PROTO_UDPLITE is not set
# CONFIG_NF_CONNTRACK_AMANDA is not set
# CONFIG_NF_CONNTRACK_FTP is not set
# CONFIG_NF_CONNTRACK_H323 is not set
# CONFIG_NF_CONNTRACK_IRC is not set
# CONFIG_NF_CONNTRACK_NETBIOS_NS is not set
# CONFIG_NF_CONNTRACK_PPTP is not set
# CONFIG_NF_CONNTRACK_SANE is not set
# CONFIG_NF_CONNTRACK_SIP is not set
# CONFIG_NF_CONNTRACK_TFTP is not set
# CONFIG_NF_CT_NETLINK is not set
CONFIG_NF_DEFRAG_IPV4=m
CONFIG_NF_CONNTRACK_IPV4=m
CONFIG_NF_CONNTRACK_PROC_COMPAT=y
# CONFIG_IP_NF_QUEUE is not set
CONFIG_IP_NF_IPTABLES=m
CONFIG_IP_NF_MATCH_ADDRTYPE=m
# CONFIG_IP_NF_MATCH_AH is not set
# CONFIG_IP_NF_MATCH_ECN is not set
# CONFIG_IP_NF_MATCH_TTL is not set
CONFIG_IP_NF_FILTER=m
CONFIG_IP_NF_TARGET_REJECT=mNAT/masquerading.
# CONFIG_IP_NF_TARGET_LOG is not set
# CONFIG_IP_NF_TARGET_ULOG is not set
CONFIG_NF_NAT=m
CONFIG_NF_NAT_NEEDED=y
CONFIG_IP_NF_TARGET_MASQUERADE=m
# CONFIG_IP_NF_TARGET_NETMAP is not set
# CONFIG_IP_NF_TARGET_REDIRECT is not set
# CONFIG_NF_NAT_SNMP_BASIC is not set
# CONFIG_NF_NAT_FTP is not set
# CONFIG_NF_NAT_IRC is not set
# CONFIG_NF_NAT_TFTP is not set
# CONFIG_NF_NAT_AMANDA is not set
# CONFIG_NF_NAT_PPTP is not set
# CONFIG_NF_NAT_H323 is not set
# CONFIG_NF_NAT_SIP is not set
CONFIG_IP_NF_MANGLE=m
# CONFIG_IP_NF_TARGET_CLUSTERIP is not set
# CONFIG_IP_NF_TARGET_ECN is not set
# CONFIG_IP_NF_TARGET_TTL is not set
# CONFIG_IP_NF_RAW is not set
# CONFIG_IP_NF_ARPTABLES is not set
# CONFIG_BRIDGE_NF_EBTABLES is not set

I have the following modules loaded (may not all be used by libvirt
though):

$ lsmod|egrep 'ipt|nf'
ipt_MASQUERADE  1523  3 
iptable_nat 3053  1 
nf_nat 11757  2 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4   8846  4 iptable_nat,nf_nat
nf_defrag_ipv4  1131  1 nf_conntrack_ipv4
nf_conntrack   40786  5
ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4,xt_state
ipt_REJECT  1998  2 
iptable_mangle  1392  1 
iptable_filter  1312  1 
ip_tables  13195  3
iptable_nat,iptable_mangle,iptable_filter
x_tab

Re: [gentoo-user] Virt-manager

2011-07-07 Thread Albert Hopkins


On Thursday, July 7 at 19:15 (+0100), john said:

> 
> I am trying to start virt-manager but when I start the daemon
> 
> /etc/init.d/libvirtd i get
> 
>  * Starting libvirtd ...
> /usr/sbin/libvirtd: error: Unable to initialize network sockets.
> Check /var/log/messages or run without --daemon for more info.
>  * start-stop-daemon: failed to start
> `/usr/sbin/libvirtd'[ !! ]
>  * ERROR: libvirtd failed to start
> 
> Any suggestions???

Other than the obvious (which is to check /var/log/messages or run
without --daemon)...

My guess is that you have enabled the virt-network USE flag but the
system is not configured as such that it could start the default virtual
network.  Among other things you need:

  * iptables support in there kernel
  * bridging support in the kernel
  * tun/tap support in the kernel
  * brctl (probably a dependency of the package itself)
  * iproute2 (probably a dependency of the package itself)

Did /var/log/messages tell you anything (did you bother to look)?  Also
libvirt has a log level that can be set in the config, you could
increase that (and also check the logs).

You should also check the logs.

-a





Re: [gentoo-user] Re: about boot with framebuffer

2011-07-05 Thread Albert Hopkins


On Tuesday, July 5 at 11:27 (-0400), cov...@ccs.covici.com said:

> I tried to use kms, but it conflicted with the nvidia driver and did
> not
> give me as much screen size in the console as uvesafb.

Yeah, you can't use the nvidia driver and KMS at the same time.  You'd
have to use the nouveau driver.





Re: [gentoo-user] Re: about boot with framebuffer

2011-07-04 Thread Albert Hopkins


On Monday, July 4 at 13:10 (-0500), Harry Putnam said:

> Are you saying it does not require `xorg-x11'.
> 
> Step 2) says in large type:
>`2.  Installing Xorg'
> 
> Then a big note in a green box later on says:
> 
> ,
> | Note: You could install the xorg-x11 metapackage instead of the more
> | lightweight xorg-server. Functionally, xorg-x11 and xorg-server are
> | the same. However, xorg-x11 brings in many more packages that you
> | probably don't need, such as a huge assortment of fonts in many
> | different languages. They're not necessary for a working desktop.
> `
> 
> So I'm a little confused.

Perhaps pointing to the xorg documentation was a mistake.  I only
pointed there because it had instructions on setting up KMS.

KMS (kernel mode setting) does not require X.  It gives the kernel the
ability to set the modes of your graphics cards, more efficiently and
usually beyond the capabilities of what the *vesa drivers can do.
Perhaps a better, non X-centered explanation of what KMS is can be found
here [1].

Regardless, KMS is the newer, better, what-all-the-cool-kids-are-doinger
way to what we've traditionally called "framebuffer console".  It also
helps with X, especially switching between console and Xorg (faster and
more seamless).  It also gives you some xrandr-like abilities for the
console.

E.g. my laptop does native 1366x768 but does not support that vesa mode
(it's not in the VESA standard afaik). But KMS can set that mode without
me even having to specify it.[2]

Anyway some proprietary X drivers (I've heard) don't support KMS (some
still don't even support xrandr), but if you are not running Xorg then
that may not be applicable to you anyway.

[1]
http://kernelnewbies.org/Linux_2_6_29#head-e1bab8dc862e3b477cc38d87e8ddc779a66509d1

[2] http://ompldr.org/vOWN0cg/kms.png





Re: [gentoo-user] Re: about boot with framebuffer

2011-07-03 Thread Albert Hopkins


On Sunday, July 3 at 22:07 (-0500), Harry Putnam said:
> this is a no X machine... it appears at the cited URL they expect you
> to be running xorg.

KMS doesn't require X, but Xorg can use it.  Basically Xorg can let the
kernel handle graphics mode setting and gets out of the way.

But KMS doesn't require X.  The link I provided shows how to enable KMS.
it just happens to be in part of the Xorg docs.

-a





Re: [gentoo-user] about boot with framebuffer

2011-07-03 Thread Albert Hopkins


On Sunday, July 3 at 16:39 (-0500), Harry Putnam said:

> I've been booting with a framebuffer for some time.  So long that I
> fear my kernel line may be out of date.
> 

A lot of people nowadays are using KMS.  It's the one true way™ for
doing console/X mode settings.  But if you have a procraprietary driver
it may not work.

http://www.gentoo.org/doc/en/xorg-config.xml#doc_chap2






Re: [gentoo-user] Why does update want to replace ssmtp with courier?

2011-07-02 Thread Albert Hopkins


On Saturday, July 2 at 23:15 (-0400), Walter Dnes said:

> Fortunately, I do emerge -pv... otherwise I wouldn't be able to send
> this email, asking what the bleep is going on.  I'm trying to do a
> regular update on my desktop and laptop.  Apparently the update wants to
> replace ssmtp with courier on both machines.  equery shows courier to be
> a dependancy for virtual/mta-0 which is a dependancy for virtual/mta.
> 
>   I really don't want/need a full-blown MTA.  ssmtp simply pushes email
> out the door to my ISP, who takes care of it.
> 


ssmtp has an mta USE flag.. I guess this just made it to stable (has
been in testing for a while now).  Anyway ssmtp only satisfies
virtual/mta with that flag set.

So you should be able to simply set it and remerge ssmtp.




Re: [gentoo-user] Re: [OT virtual stuff] gentoo vm appliance

2011-07-01 Thread Albert Hopkins


On Friday, July 1 at 19:22 (-0500), Harry Putnam said:

> Albert Hopkins  writes:
[...]
> At the risk of exposing further ignorance on my part, I'm curious what
> it means in fstab where you have:
> 
>   /.swap  none swap sw0 0
> 
> At the swap line.
> 
> That's another thing I haven't seen before.I mean the /DOTswap
> `/.swap', does it just mean there is no swap?

For the virtual appliances, I use a swap file instead of a swap
partition, partially because I'm lazy and partially because it's easier
to resize later on than a partition.

The "." just means it's a standard "hidden" file per Unix convention[1]
(i.e. you won't normally see if if you do "ls" but will if you do "ls
-a".

> Its hard to google because google doesn't recognize the . (dot), so a
> search with terms like:
> 
> site:gentoo.org  fstab "/.swap"  
> 
> still finds /swap (with no dot) google throws out the dot.
> 
> I've noticed similar behavior on google if you try something
> like "--color=auto"  as a search term.. google appears to throw
> out the `--' (dashdash) and the `=' equal sign. 

You'd probably not find anything useful via Google anyway.  It's just a
standard swap file, but the name starts with a ".".  You can rename it
to whatever you want.

-a

[1]
http://en.wikipedia.org/wiki/Hidden_file_and_hidden_directory#Unix_and_Unix-like_environments





Re: [gentoo-user] Re: [OT virtual stuff] gentoo vm appliance

2011-07-01 Thread Albert Hopkins
On Friday, July 1 at 17:44 (-0500), James Wall said:

> Thanks for the appliance image. it has come in handy for trying out
> multiple ideas and setups at once on my machine. Keep up the great
> work Albert! :)
> 

You're welcome.  I do have other appliances other than the "base"
appliance.  For example:

  * gnome: this a headless (or at least Xserver-less) GNOME
appliance. It can serve a GNOME desktop via XDMCP or ssh.
  * hemp-node: This is almost like base, but applicable to my "hemp"
project ( https://bitbucket.org/marduk/hemp ) .  Hemp is kind of
like a "cloud in a box".  It's good for developing deployments
via fabric
  * kde: This is just like the "gnome" appliance, except it serves
KDE
  * lodgeit: This is a lodgeit
( http://www.pocoo.org/projects/lodgeit/ ) pastbin virtual
appliance.  We use this at my job.
  * teamplayer: this is another one of my projects.  You can't
really build it because it hasn't been released yet.  But
basically it's a "Democratic Internet radio station".  We also
use this at my job.
  * x: This is an "old-school" X appliance, like GNOME/KDE, except
it serves TWM, xclock, xload, xterm, xeyes, etc. for a totally
early 90's looking X desktop.
  * xfce: a "headless" XFCE desktop appliance.

I'm actually looking for ideas for other Gentoo appliances.  So if
anyone has an idea for one, let me know.

Also, if you happen to download and use the virtual appliance script
(Makefile), there are many more options to build images including:

  * "headless" appliances (serial console)
  * virtio (for kvm-based VMs)
  * external kernel image (for kvm (and possibly others))
  * Use dash instead of bash for the default shell
  * remove "build" (gentoo-critical) packages (e.g. gcc, portage,
etc.).  This will make it so you can't ever use portage on the
appliance, but it reduces the size of the appliance greatly.
  * Use a static /dev instead of udev
  * Build and use binary packages so you don't have to re-compile
everything every time you build a new image.
  * Build/use/distribute stage4 tarballs of the appliance.  This
really speeds up the creation of images too (e.g. I can build a
"base" virtual appliance image on my laptop in less than 3
minutes.
  * Use a different kernel and/or different kernel config.
  * Creates raw images, compressed QCOW, VMDK, and XVA.

I'd also welcome any other ideas for image-building features.

-a




Re: [gentoo-user] Re: [OT virtual stuff] gentoo vm appliance

2011-07-01 Thread Albert Hopkins


On Friday, July 1 at 14:10 (-0500), Harry Putnam said:

> Sorry for being a lazy slug... I've used the same /etc/make.conf for
> several yrs with no problems... so didn't really think to look there.
> That's why I asked... didn't know where to look... dumb perhaps but
> just didn't cross my mind.
> 
> I've found my systems to do pretty well without those FEATURES or --jobs
> entries.

Sure. I did not mean to imply one *must* know about FEATURES in order to
maintain a Gentoo system, only that it is a fundamental part of Gentoo
that may be of interest to you (it's even mentioned in the Handbook).
The --jobs parameter is not so important and, while it's been been a
feature of portage for a while, it hasn't nearly been around as long as
FEATURES (which has been part of Gentoo for as long as I can remember).

Well, thanks for pointing out the error in my appliance creation script
that mistakenly sets up the serial console on non-headless VMs.  I've
fixed the bug and created and uploaded a new image.

-a




Re: [gentoo-user] Re: [OT virtual stuff] gentoo vm appliance

2011-07-01 Thread Albert Hopkins


On Friday, July 1 at 11:42 (-0500), Harry Putnam said:

> In the shell where the initial login came up I keep seeing this every
> 5 minutes:
> 
>   INIT: ld "so" respawning too fast: disabled for 5 minutes

Oh, you can also do this manually by commenting out the s0 entry
in /etc/inittab.

-a





Re: [gentoo-user] Re: [OT virtual stuff] gentoo vm appliance

2011-07-01 Thread Albert Hopkins


On Friday, July 1 at 11:42 (-0500), Harry Putnam said:

> Albert Hopkins  writes:
> 
> 
> [...]
> 
> >
> > Yeah, sorry if I didn't mention before.  In the interest of size, I
> > remove the portage tree (and also kernel sources) before creating the
> > image.  So in order to do portage-related stuff one must first:
> >
> > # emerge --sync
> 
> [...]
> 
> > Should still be usable.
> 
> You may have seen my last post by now, where I retracted some of my
> earlier post.
> 
> I'm still seeing something that probably needs fixing.
> 
> In the shell where the initial login came up I keep seeing this every
> 5 minutes:
> 
>   INIT: ld "so" respawning too fast: disabled for 5 minutes
> 
You probably saw "s0".  That's the inittab for getty running on a serial
console.. should be disabled for non-headless.  I'll need to fix that.

> OH, and what does the `FEATURES=' entry in /etc/make.conf do? 

You've never heard of FEATURES (or --jobs)?  May want to peruse the man
pages a bit.  FEATURES is a very fundamental part of portage (man
make.conf).

Will post when the inittab is fixed.





Re: [gentoo-user] Re: [OT virtual stuff] gentoo vm appliance

2011-07-01 Thread Albert Hopkins


On Friday, July 1 at 11:55 (-0400), Albert Hopkins said:

> > Oh, I'm referring to the 4GB version.  The 10GB version demands a
> > password so couldn't even start on it.
> 
> That should not be the case with it requiring a password, or else I
> uploaded the wrong image.  Nevertheless, I'll upload another one
> shortly.

Now uploaded.





Re: [gentoo-user] Re: [OT virtual stuff] gentoo vm appliance

2011-07-01 Thread Albert Hopkins


On Friday, July 1 at 10:36 (-0500), Harry Putnam said:

> Albert Hopkins  writes:
> 
> > On Tuesday, June 28 at 10:57 (-0400), Albert Hopkins said:
> >
> >> Anyway, I will rebuild an image with AHCI support and upload it
> >> shortly.
> >
> > Done, uploaded to the same place:
> >
> > http://starship.python.net/crew/marduk/base-dist.vmdk.bz2
> >
> > I also made the image bigger (10GB).  Oddly enough, it compresses
> > smaller than the other by a couple of megs.
> 
> In case you are interested, I had problems with that appliance.
> 
> [I'm running virutal box]
> 
> I followed James W's walk thru of how to use it with Virtual box.
> 
> There is apparently no `portage' installed which meant that emerge
> would fail since /etc/make.profile is a dangling link. 

Yeah, sorry if I didn't mention before.  In the interest of size, I
remove the portage tree (and also kernel sources) before creating the
image.  So in order to do portage-related stuff one must first:

# emerge --sync

>  Once that was
> resolved I kept getting really strange output from emerge. It appeared
> to be the output of something like vmstat or maybe the upper portion
> of `top'.  Stuff about user loads and such... right after the first
> few lines of emerge output, and nothing was getting emerged.
> 
> Very possible it is pilot error; here is what the output of emerging
> gpm looks like:
> 
>   Calculating dependencies... done!
>   [ebuild  N] sys-libs/gpm-1.20.6  USE="(-selinux)" 1,251 kB
>   
>   Total: 1 package (1 new), Size of downloads: 1,251 kB
> 
>   >>> Verifying ebuild manifests
>   >>> Emerging (1 of 1) sys-libs/gpm-1.20.6
>   >>> Jobs: 0 of 1 complete, 1 runningLoad avg: 1.75, 1.16, 
> 0.95
> 
> And there it stays... so emerge does not work.

This appears normal to me...

Oh perhaps because I have "--jobs=2" in EMERGE_DEFAULT_OPTS
in /etc/make.conf.  That's what the output normally looks like if you
use --jobs...

Nevertheless the output definately looks normal (to me).  You can change
make.conf to suit your tastes.

> So it appears, so far, the appliance is not usable on Vbox.  

Should still be usable.

> Oh, I'm referring to the 4GB version.  The 10GB version demands a
> password so couldn't even start on it.

That should not be the case with it requiring a password, or else I
uploaded the wrong image.  Nevertheless, I'll upload another one
shortly.

-a






Re: [gentoo-user] [OT virtual stuff] gentoo vm appliance

2011-06-28 Thread Albert Hopkins


On Tuesday, June 28 at 10:57 (-0400), Albert Hopkins said:

> Anyway, I will rebuild an image with AHCI support and upload it
> shortly.

Done, uploaded to the same place:

http://starship.python.net/crew/marduk/base-dist.vmdk.bz2

I also made the image bigger (10GB).  Oddly enough, it compresses
smaller than the other by a couple of megs.

-a





Re: [gentoo-user] [OT virtual stuff] gentoo vm appliance

2011-06-28 Thread Albert Hopkins


On Tuesday, June 28 at 09:32 (-0500), James Wall said:

> Albert,
> it uses the AHCI driver for the sata controller.

You know it's odd, I was just talking with someone yesterday about why
don't the hypervisors default to AHCI since it's somewhat universal by
now.

Anyway, I will rebuild an image with AHCI support and upload it shortly.

-a





Re: [gentoo-user] [OT virtual stuff] gentoo vm appliance

2011-06-28 Thread Albert Hopkins


On Monday, June 27 at 22:44 (-0500), James Wall said:

> 2. I then went into the properties of the VM and changed the
> controller type to SCSI and readded the disk image.

If you let me know what controller virtualbox "natively" uses I can add
that to the kernel config.






Re: [gentoo-user] [OT virtual stuff] gentoo vm appliance

2011-06-27 Thread Albert Hopkins


On Monday, June 27 at 18:47 (-0500), James Wall said:

> Albert,
> Thanks for sharing the guest image. I have gotten it installed on my
> virtualbox to allow me to experiment with it. Thanks again for sharing
> your work.

Cool, now I at least know it works with vmware and virtualbox.

I will probably be uploading updated images every few days or so.

-a





Re: [gentoo-user] Firefox

2011-06-27 Thread Albert Hopkins


On Monday, June 27 at 19:52 (-0400), Daniel D Jones said:

> Can anyone explain why it takes so long for Firefox-bin to be unmasked?  
[etc.]

Have you gone to bugs.gentoo.org and submitted a stabilization request?




Re: [gentoo-user] [OT] using ffmpeg for screen cast

2011-06-26 Thread Albert Hopkins


On Sunday, June 26 at 18:28 (+0100), Mick said:

> Hi All,
> 
> I was trying to record my desktop using:
> 
> ffmpeg -f x11grab -s xga -r 25 -i :0.0 -aspect 4:3 /tmp/out.mpg
> 
> but the result is rather blurred as you can see in the attached screenshot, 
> when I play it with mplayer.
> 
> Is there some other option (codec) I should add to improve the quality of the 
> captured image?

Try passing "-sameq"

-a





Re: [gentoo-user] [OT virtual stuff] gentoo vm appliance

2011-06-25 Thread Albert Hopkins


On Thursday, June 23 at 12:52 (-0400), Albert Hopkins said:


> I've uploaded a (390MB) vmdk.  I've been told by someone that it works
> with vmware (not sure what version).
> 
> This was build just a few minutes ago with the latest stage3 tarball and
> the latest portage snapshot.
> 
> http://starship.python.net/crew/marduk/base.vmdk
> 
> The root password is blank. It will force you to change it on first
> login.


Last night I realized that the mirror I had used to download stage3s and
portage snapshots hadn't been updated in over 30 days.

So I changed mirrors and re-created an image.  The new image should have
packages from the latest snapshot (as of an hour ago).  Also it has the
2.6.38-gentoo-r6 kernel.  The complete package list is here[1].  The
compressed vmdk image (89MB) is here[2].

[1] http://starship.python.net/crew/marduk/base-dist-package.lst
[2] http://starship.python.net/crew/marduk/base-dist.vmdk.bz2





Re: [gentoo-user] [OT virtual stuff] gentoo vm appliance

2011-06-23 Thread Albert Hopkins


On Thursday, June 23 at 12:32 (-0400), Matthew Finkel said:

> On 06/23/11 07:15, Albert Hopkins wrote:
> >
> > On Thursday, June 23 at 00:35 (-0400), Matthew Finkel said:
> >
> >> Oh, don't get me wrong, that's one reason I use qcow2 myself, but it's
> >> either something he would have to deal with when he received it or the
> >> conversion would increase the size of the disk image that would be
> >> shipped to him.
> > Yes, of course a raw image file will typically be bigger than a
> > compressed qcow, just as an unpacked stage4..tar.bz2 file is going to be
> > bigger than the original archive.  But in terms transferability,
> > compressed qcows are more efficient since they only include *used*
> > blocks and they are compressed.  I can convert the image into any of a
> > number of formats, but the issue then is it will be bigger, and thus
> > take me longer to upload it and the OP to download it
> Yup, exactly :-)
> 

I've uploaded a (390MB) vmdk.  I've been told by someone that it works
with vmware (not sure what version).

This was build just a few minutes ago with the latest stage3 tarball and
the latest portage snapshot.

http://starship.python.net/crew/marduk/base.vmdk

The root password is blank. It will force you to change it on first
login.






Re: [gentoo-user] [OT virtual stuff] gentoo vm appliance

2011-06-23 Thread Albert Hopkins


On Thursday, June 23 at 13:45 (+0200), Joost Roeleveld said:

> > Yes the stage4 should work similarly.  However Pandu was asking
> about
> > building ".xva" which I know nothing about, unless an .xva is
> similar
> > to/same as a stage4 (I have no idea)?
> 
> .xva is a format specifically for Citrix Xen.
> 
> There are tools to convert "classic" Xen VMs to "xva" files:
> http://www.xen.org/files/xva/README
> 
> I would be willing to assist in getting this tool to work with your
> program. 
> All I'd need is a copy of your program along with assistance from
> Pandu Poluan 
> to test the resulting XVA files.
> 
> I do not run Citrix XenServer and have no need for it as Xen itself
> works fine 
> for me.

Thank you. I downloaded the xva.py script and created a target to
create .xva files.  The script appeared to run fine.  No errors, but I
cannot verify that the .xva is good.  I used hvm and converted the raw
image.  The .xva is 4.1G whereras the original raw image is only 414MB
(sparse).  The .xva appears to be a tar file, but I guess w/o the -S
flag passed to gnu tar.

My program is hosted on bitbucket[1].  The documentation for it is
outdated.

-a

[1] https://bitbucket.org/marduk/virtual-appliance/wiki/Home






Re: [gentoo-user] [OT virtual stuff] gentoo vm appliance

2011-06-23 Thread Albert Hopkins


On Thursday, June 23 at 00:35 (-0400), Matthew Finkel said:

> Oh, don't get me wrong, that's one reason I use qcow2 myself, but it's
> either something he would have to deal with when he received it or the
> conversion would increase the size of the disk image that would be
> shipped to him.

Yes, of course a raw image file will typically be bigger than a
compressed qcow, just as an unpacked stage4..tar.bz2 file is going to be
bigger than the original archive.  But in terms transferability,
compressed qcows are more efficient since they only include *used*
blocks and they are compressed.  I can convert the image into any of a
number of formats, but the issue then is it will be bigger, and thus
take me longer to upload it and the OP to download it.




Re: [gentoo-user] [OT virtual stuff] gentoo vm appliance

2011-06-23 Thread Albert Hopkins


On Thursday, June 23 at 09:54 (+0200), Joost Roeleveld said:

> > Any such program to build XenServer appliances (.xva) ?
> 
> Shouldn't it work similarly?
> Eg. start an appliance and install using the stage4?
> 
> I use Xen directly and as long as I can create and fill the partitions
> for the 
> VM, any "creation" tool should work.


Yes the stage4 should work similarly.  However Pandu was asking about
building ".xva" which I know nothing about, unless an .xva is similar
to/same as a stage4 (I have no idea)?




RE: [gentoo-user] [OT virtual stuff] gentoo vm appliance

2011-06-22 Thread Albert Hopkins


On Thursday, June 23 at 08:16 (+0700), Pandu Poluan said:

> Any such program to build XenServer appliances (.xva) ?

I haven't any.  I have no experience with XenServer appliances.




Re: [gentoo-user] [OT virtual stuff] gentoo vm appliance

2011-06-22 Thread Albert Hopkins


On Wednesday, June 22 at 21:31 (-0400), Matthew Finkel said:

> > The stage4
> > (excluding portage) would be ~90MB (bz2).  The disk image (compressed
> > QCOW is about 120MB)
> 
> The only issue with qcow2 is that in order to use it with VB, IIRC you
> need to convert it to raw before you can import it.

Perhaps, but it's trivial to convert qcows to other formats.





Re: [gentoo-user] [OT virtual stuff] gentoo vm appliance

2011-06-22 Thread Albert Hopkins


On Wednesday, June 22 at 16:52 (-0500), Harry Putnam said:

> The times I've tried to get a recent gentoo version running in a vm on
> windows turned out to be labor taking days to get right.
> 
> Does anyone know if there is a fairly current gentoo appliance
> somewhere that I can just install and then update or customize?
> 
> I'd prefer to run it with vbox but if the appliance is vmware created
> that's ok too.  I do have a license up to 6.5.
> 
> If that isn't available maybe someone has a fairly current kernel
> config that is known to boot on a windows host with guest gentoo.
> 
> As I recall from my efforts, there were always problems with something
> to do with scuzzi drivers or whatnot.

I have a program that I use to create Gentoo VM appliances.  I have no
idea if it works with vbox or vmware as I run KVM, but I think it
*should* work.  Anyway if you want to try it you can or, if you want, it
also builds stage4 tarballs, so I can build you a stage4 tarball of a
base Gentoo install pretty easily (including kernel).  The stage4
(excluding portage) would be ~90MB (bz2).  The disk image (compressed
QCOW is about 120MB).







Re: [gentoo-user] crontab not executing

2011-06-20 Thread Albert Hopkins


On Monday, June 20 at 20:39 (+1000), Adam Carter said:

> I dont understand. "runs as" usually means "runs under the user
> context" to me - are you saying bash has an sh compatibility mode?

Yes, when run as sh in POSIX mode (i.e. if it were called as "bash
--posix").





Re: [gentoo-user] Reinstalling older Packages

2011-06-20 Thread Albert Hopkins


On Monday, June 20 at 10:03 (+0100), Neil Bothwick said:

> There is no such option, but you can get expired ebuilds from
> http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/cat-egory/package

Sigh.  2011 and *still* using CVS?!





Re: [gentoo-user] Is it possible to have perl-5 and perl-6 installed and in use concurrently?

2011-06-18 Thread Albert Hopkins


On Sunday, June 19 at 09:47 (+0800), William Kenworthy said:

> Its actually not "slotting" I am after - slots are a choice of setting
> the system to one or the other (correct me if I am wrong) whereas I
> want
> to use perl-5 for eveyting except this which wants perl-6.

You are wrong. slots is the mechanism whereby "different versions of a
single package can coexist on a system".  "Setting a choice" I assume
means your eselect-style choices.   For example, you can eselect a
pager, which has nothing do do with slots.  Or you can eselect the
system python, which does (indirectly) have to do with slots.  But
eselect and slots are not the same.  




Re: [gentoo-user] OT: future moderation

2011-06-11 Thread Albert Hopkins
Ok... I'll bite.

On Sunday, June 12 at 00:19 (+0100), Matt Harrison said:

> Hi list,
> 
> An odd post here but I'm sitting up after midnight with a few beers and 
> I wanted to get an advanced word on this.
> 
(sigh)
Please don't drink and post.

> I don't know if anyone is subscribed to the ruby-talk mailing list at 
> the moment (or used to be on the comp.lang.lisp group a while ago). 
> There is an odd character there who is harming the community by either 
> being insane (not my words -- those of ruby guru Ryan Davis) or with 
> extremely well crafted trolling.
> 
> I see the trouble that ruby-talk is having with him and I wondered 
> firstly, if we would have similar trouble moderating his crap (he 
> alternates between email, usenet and forums. Apparently they can't 
> moderate him) and secondly, if/when he turns up here can we please shoot 
> him down the instant he arrives.
> 
I have seem similar people on similar mailing lists.  I simply ignore
them.  It works (for me).  People who don't ignore them are usually the
ones who are complaining the most, but as everyone is is ignoring it
their complaints are only heard by themselves.

> Ok, as I'm writing this it does seem that I'm going a little crazy, but 
> I consider this list my home. I love this list and the people on it..I 
> don't post that much these days but I have learned a lot. When I do 
> post, I get very helpful replies and I know you're good people. I would 
> just hate for this guy to come on here and wreck the joint.
> 
Please seek psychiatric help.

And please don't drink and post again... seriously.

> Take this as you will, drunken ramblings or well-meant concern :)

Mostly the former.




Re: [gentoo-user] portage-2.2.0_alpha38 & --depclean

2011-06-08 Thread Albert Hopkins
On Wed, 2011-06-08 at 07:37 -0700, Mark Knecht wrote:
> Then you missed the point of the thread.

Quite possibly.




Re: [gentoo-user] portage-2.2.0_alpha38 & --depclean

2011-06-08 Thread Albert Hopkins
On Wed, 2011-06-08 at 07:09 -0700, Mark Knecht wrote:
> >> I exaggerated. The number of kde packages pulled in on my compute
> >> server right now is about 10, so it's not as bad as I remember.
> >
> > I have a bunch of systems (desktop and client) and none of them pull
> in

should have been "(desktop and server)"

> > any KDE libs save one, which has kde-meta in the world file.  Not
> even
> > my mythtv box, which need QT has any kde libs installed.
> >
> 
> And all of these machines are using the kde profile? 

Of course not.  Why would you put a server (or anything else) in the kde
profile unless you wanted to pull in KDE stuff?




Re: [gentoo-user] portage-2.2.0_alpha38 & --depclean

2011-06-08 Thread Albert Hopkins

> I exaggerated. The number of kde packages pulled in on my compute
> server right now is about 10, so it's not as bad as I remember.

I have a bunch of systems (desktop and client) and none of them pull in
any KDE libs save one, which has kde-meta in the world file.  Not even
my mythtv box, which need QT has any kde libs installed.





Re: [gentoo-user] Why are *.so library files executable?

2011-06-05 Thread Albert Hopkins
On Sun, 2011-06-05 at 17:43 +0300, Nikos Chantziaras wrote:
> Gentoo users tend to be technically adept, so I'll ask the question here:
> 
> Why are *.so files set as executables?  I noticed that they keep working 
> if I do a "chmod a-x" on them.

Well, they are "executables" in that they are object code that are
(loaded and) executed.

In the olden days (pre libc6?) believe it was required form them to be
both executable and by whoever wanted to run (load) them.  It's probably
still a requirement for other *nix systems.






Re: [gentoo-user] external monitor output during boot

2011-05-18 Thread Albert Hopkins
On Tue, 2011-05-17 at 22:48 -0400, Valmor de Almeida wrote:
> Hello,
> 
> What controls the screen output to an external monitor connected to a
> laptop during boot or when just using a plain console without an X
> server running? Before a recent update the output would just
> automatically go to an external monitor when one is connected. Now it
> does not; not sure it has anything to do with the openrc migration.
> 

I think it largely depends on the particular hardware config.  For my
laptop it's a BIOS option.

If you are using KMS however it seems to want to drive all outputs with
a monitor attached.




Re: [gentoo-user] OpenRC in DomU

2011-05-11 Thread Albert Hopkins
On Wed, 2011-05-11 at 12:27 +, Konstantinos Agouros wrote:
> Hi,
> 
> after I went to openrc all works fine just one thing disturbing now:
> If I create a xen-guest with xm create guest -c or change to the console
> when the system boots, some of the characters particularly [] are garbled.

I have a simlilar problem with kvm serial consoles.  Not "garbled" but
the "[OK]" now appears on a seperate line than the "Starting..."
message.

> Is there a way to fix this?

Dunno, but it's not a huge deal for me so long as the services start :D






Re: [gentoo-user] Re: checking whether the C compiler works... no Oooops !!

2011-05-06 Thread Albert Hopkins
On Fri, 2011-05-06 at 12:18 +0200, Andrea Conti wrote:
> AFAIK in order to avoid this kind of
> breakage system ebuilds such as mpfr never delete old library
> versions;
> they just print a warning saying that the old library  has been kept
> around and should be manually deleted after running revdep-rebuild.
> 
> On all my sytems the transition to dev-libs/mpfr-3 was handled this
> way 

Perhaps the OP performed the latter step before performing the former?




Re: [gentoo-user] Public Apology to Minister Mentor Lee Kuan Yew and Prime Minister Lee Hsien Loong, Singapore

2011-04-30 Thread Albert Hopkins
Perhaps a bit too public.

Anyway, hope all is forgiven :D

-a





Re: [gentoo-user] removing gtk+ as requested by --depclean

2011-04-28 Thread Albert Hopkins
On Thu, 2011-04-28 at 16:19 +0200, Jesús J. Guerrero Botella wrote:
> gtk+ 3.x is not used by gnome versions in portage (2.x). If you don't
> know if you need it, then you don't need it.


Gnome3 is slowly making its way into portage, and so so is bringing with
it packages that depend either explicitly or optionally on gtk3, e.g.

libunique-3.0.0
clutter-gtk
libnotify-0.7.2
gtkmm-3.0.0.





Re: [gentoo-user] su doesn't work for me.

2011-04-10 Thread Albert Hopkins

> Funny, though, on my (very) old Debian system I don't seem to have a
> wheel.

http://www.gnu.org/software/coreutils/manual/html_node/su-invocation.html

Bottom section.





Re: [gentoo-user] qemu-kvm black screen and infinite loop on startup

2011-04-06 Thread Albert Hopkins
On Wed, 2011-04-06 at 12:00 +0300, Kfir Lavi wrote:

> 
> Hi  Albert,
> Can you paste your USE flags for qemu?
> 
> Thanks,
> Kfir

USE="aio sdl vde -alsa -bluetooth -brltty -curl -esd -fdt -hardened
-jpeg -ncurses -png -pulseaudio -qemu-ifup -sasl -ssl -static"





Re: [gentoo-user] qemu-kvm black screen and infinite loop on startup

2011-04-05 Thread Albert Hopkins
On Tue, 2011-04-05 at 18:06 +0300, Kfir Lavi wrote:
> Hi,
> After updating qemu-kvm to 0.13.0-r2 I get an infinite loop when running
> qemu.
> You can spot the loop with strace.
> This problem shows on Redhat
> https://bugzilla.redhat.com/show_bug.cgi?id=553689#c5
> and they say that it is related to the seabios.
> 
> Does anyone have this problem too?
> I'm compiling qemu-kvm with hardend flag.

I've been using app-emulation/qemu-kvm-0.13.0-r2 since early March.  I
have not had that problem, but I do not use the hardened flag.




Re: [gentoo-user] Re: How low can you go?

2011-04-02 Thread Albert Hopkins
On Sat, 2011-04-02 at 13:24 +0700, Pandu Poluan wrote:
> Unfortunately, I can't go module-less; xtables-addons requires modules
> support.
> 
> How do you get static /dev ?

Go into /etc/conf.d/rc and change RC_DEVICES to "static".  Also if you
are using virtio block devices (as I am) then you will need to manually
create the /dev/vd* device nodes else the vm won't find the virtual
drives.

> 
> > I could probably get it lower by tweaking the kernel a bit more.
>  Also
> > it would probably use slightly less RAM if it were 32-bit.  Also,
> the
> > biggest user of memory are /bin/bash and /bin/login.  I could
> minimize
> > memory further by making the login shell ash or dash.
> >
> 
> I also rely on lots of bash scripts.
> 
> *sigh* ... I'll never get it as small as yours... but still I *am*
> interested in your memory-saving tricks :-) 

I'm not saying replace bash with dash.  I'm saying change your login
shell with dash (i.e. chsh).

Moreover, dash is POSIX compliant so it should be able to be used with
most shell scripts.  The only reason you need bash around is that
unfortunately baselayout-1 depends on some bash-specific features (like
bash arrays), so you can't completely get rid of it.  But for most stuff
dash is fine.







Re: [gentoo-user] Re: How low can you go?

2011-04-01 Thread Albert Hopkins
On Fri, 2011-04-01 at 14:44 -0700, Bill Longman wrote:
...
> So, what can you actually *do* on this, other than an "ls" or two?

Well, first the "challenge" did not require that it had to have any use.

But thinking about what you said, I remember when I first started using
Linux, it was not unthinkable to think that was enough memory to do
stuff.

So I decided to build another VM and actually install stuff on it.  I
thought about what I'd typically be running on my desktop.  Being that
this is a graphics-less machine, I installed non-gui equivalents:

  * mutt for email
  * irssi for irc
  * vim for text editing
  * pidgin (finch) for IM
  * lynx for browsing the web
  * screen for multi-tasking

Then I added a NIC so that I could actually get on the network.
Interestingly enough, adding the virtio NIC made the VM jump up to 18MB
on the initial boot/shell, but adding a non-virtio NIC kept it down to
3MB.

Then I added a regular user and did "typical" things:

marduk@lilpenguin $ ps -ef |grep ^$USER
marduk2081  2080  0 21:36 ttyS000:00:00 -dash
marduk2094  2081  0 21:36 ttyS000:00:00 screen -T vt100
marduk2095  2094  0 21:36 ?00:00:02 SCREEN -T vt100
marduk2096  2095  0 21:36 pts/000:00:00 -/bin/dash
marduk2101  2096  0 21:36 pts/000:00:00 mutt
marduk2102  2095  0 21:37 pts/100:00:00 -/bin/dash
marduk2107  2102  0 21:37 pts/100:00:00 lynx
http://m.reuters.com/
marduk2110  2107  0 21:37 pts/100:00:00 [lynx] 
marduk2111  2095  0 21:37 pts/200:00:00 -/bin/dash
marduk2116  2111  0 21:38 pts/200:00:00 vim helloworld.py
marduk2117  2095  0 21:38 pts/300:00:00 -/bin/dash
marduk2122  2117  0 21:38 pts/300:00:00 irssi
marduk2124  2095  0 21:41 pts/400:00:00 -/bin/dash
marduk2129  2124  0 21:41 pts/400:00:00 finch
marduk2131  2095  0 21:42 pts/500:00:00 -/bin/dash
marduk2149  2095  0 21:43 pts/600:00:00 -/bin/dash
marduk2154  2149  0 21:43 pts/600:00:00 ssh tanuki@victoria
marduk2176  2131  0 21:46 pts/500:00:00 ps -ef
marduk2177  2131  0 21:46 pts/500:00:00 grep ^marduk

marduk@lilpenguin $ free -m
 total   used   free sharedbuffers cached
Mem:33 28  5  0  0  9
-/+ buffers/cache: 18 14
Swap:0  0  0

marduk@lilpenguin $ netstat -tn|grep ESTABLISHED |wc -l
5


So, running screen (with 7 sessions), 8 dash shells, mutt, irssi, finch,
an ssh session, lynx, vim and 5 TCP connections open still only takes up
18MB RAM (excluding cache).  Still not bad.





Re: [gentoo-user] Re: How low can you go?

2011-04-01 Thread Albert Hopkins

.. got it slightly lower by switching to dash and disabling ACPI and
APIC:

root@lilpenguin $ free -m
 total   used   free sharedbuffers
cached
Mem:18  4 13  0  0
1
-/+ buffers/cache:  2 15
Swap:0  0  0






Re: [gentoo-user] Re: How low can you go?

2011-04-01 Thread Albert Hopkins
On Sat, 2011-04-02 at 02:22 +0700, Pandu Poluan wrote:
> Good grief! How'd you do that?!
> 
> *bow in respect*
> 
> Rgds,
> 
> 

Well, firstly, I managed to get it down to 3MB (though I cheated *a
little*):

lilpenguin ~ # sync ; echo 3 > /proc/sys/vm/drop_caches # kinda cheating
lilpenguin ~ # free -m
 total   used   free sharedbuffers
cached
Mem:43  5 37  0  0
1
-/+ buffers/cache:  3 39
Swap:0  0  0
lilpenguin ~ # uname -srm
Linux 2.6.36-gentoo-r8 x86_64
lilpenguin ~ # df -h 
FilesystemSize  Used Avail Use% Mounted on
/dev/vda1 4.0G  157M  3.6G   5% /
shm22M 0   22M   0% /dev/shm


So what it is is this:

* kvm with virtio devices
* no udev (static /dev)
* serial console only
* no services in default runlevel
* tight module-less virtio-based kernel (booted externally)
* no extra (virtual) hardware
* everything compiled with -Os

I got the disk space down low by removing everything not needed to boot
and get into the system (which means the portage tree, compiler, etc),
but that has nothing to do with the memory usage.

I could probably get it lower by tweaking the kernel a bit more.  Also
it would probably use slightly less RAM if it were 32-bit.  Also, the
biggest user of memory are /bin/bash and /bin/login.  I could minimize
memory further by making the login shell ash or dash.





Re: [gentoo-user] How low can you go?

2011-04-01 Thread Albert Hopkins
On Fri, 2011-04-01 at 19:36 +0700, Pandu Poluan wrote:
> Just for fun, not for boasting ;-)
> 
> Out of curiosity, I pared down nearly everything from my Gentoo VMware Guest.
> 
> `free -m` directly after booting + login:
> 
> Mem:
>   total 499
>   used 28
>   free 470
>   shared 0
>   buffers 1
>   cached 12
> 
> Granted, system is quite possibly unusable for serious purposes,
> although I can still login (console & ssh) and do `emerge --sync`

lilpenguin ~ # free -m
 total   used   free sharedbuffers
cached
Mem:43  5 37  0  0
1
-/+ buffers/cache:  3 39
Swap:0  0  0
lilpenguin ~ # uname -srm
Linux 2.6.34-gentoo-r6 x86_64








Re: [gentoo-user] kvm and libvirt

2011-03-29 Thread Albert Hopkins
On Tue, 2011-03-29 at 13:02 +0200, Coert Waagmeester wrote:
> Hello all,
> 
> At the moment I have a running install of kvm.
> I do all the virtual networking manually with help of tap adaptors and
> bridges.
> And I use LVM for the VMs disks.
> 
> It is working very well, but to add a VM or to migrate it to another
> host is laborious.
> 
> Now I have started playing with libvirt, and I would like to know if
> anyone else here uses the combination of kvm and libvirt?
> 
> What is the most dynamic way of automatically setting up virtual
> networks per VM? Should I use qemu-ifup?
> 
> 
> I do not use routed or NATted virtual nets. only bridging.

The best way i to manually set up the bridge device via normal Gentoo
means, and create a virtual nic with the host device being that bridge
device.  libvirt should take care of the rest.




Re: [gentoo-user] Any small and fast desktop search app for GNOME?

2011-03-01 Thread Albert Hopkins
On Tue, 2011-03-01 at 14:14 +0800, Thomas Yao wrote:
> I dislike gnome-do and I use synapse on ubuntu with another PC
> So I'm wondering is there any other good desktop search applications?
> Or how can I install synapse on gentoo?
> Thank you!
> 

Synapse and it's dependencies are very unfriendly to non-Ubuntu
distributions.




Re: [gentoo-user] Remove redundant entries in "world" - howto

2010-12-08 Thread Albert Hopkins
On Wed, 2010-12-08 at 16:28 +, Stroller wrote:

> > http://paste.pocoo.org/show/302273/
> 
> I think this only works on ~ARCH, right?
> 
> On x86 I get:
> 
> Traceback (most recent call last):
>   File "./auditworld", line 20, in 
> import gentoolkit.sets
> ImportError: No module named sets
> 

... probaby.  I have an older (untested) version you can try:

http://paste.pocoo.org/show/302309/






Re: [gentoo-user] Remove redundant entries in "world" - howto

2010-12-08 Thread Albert Hopkins
On Wed, 2010-12-08 at 07:57 -0800, Mark Knecht wrote:
> On Wed, Dec 8, 2010 at 3:23 AM, Helmut Jarausch
>  wrote:
> > Hi,
> >
> > does anybody know about an easy method to remove all entries from
> > /var/lib/portage/world
> > which would have been pulled in anyway
> > even if they were not contained in world.
> >
> > My current attempt would be to write a script
> > which executes emerge -vpc on each entry in world.
> > If it wouldn't be removed it's obsolete in world.
> >
> > Unfortunately this has to be done in several rounds.
> >
> > Many thanks for a hint,
> > Helmut.
> >
> >
> 
> In my experience the world file isn't huge - 50-100 lines - but only
> if it contains the things that really need to be there. I've simply
> commented out specific entries and run emerge -pvDuN @world to
> determine if the entry wasn't necessary, and if it wasn't then removed
> it. When I've boiled it down to things that need to be there (I.e. - I
> can still run emerge -pvDuN @world and there would be no changes) then
> I run emerge - p --depclean to look at what can be removed, make sure
> it's OK, and then run depclean for real.

I have a script I used to locate "redudancies" in the world file.  It
requires gentoolkit.  It basically looks at packages in world that have
reverse dependencies also in world (but only goes one level deep).  Just

# auditworld < /var/lib/portage/world

http://paste.pocoo.org/show/302273/






Re: [gentoo-user] About interpreting output of df -h

2010-12-02 Thread Albert Hopkins
On Thu, 2010-12-02 at 15:53 -0600, Harry Putnam wrote:
> Can anyone tell me how determine what these kind of useless names
> really mean?
> 
> From df -h
> FilesystemSize  Used Avail Use% Mounted on
> rootfs1.9G  283M  1.6G  15% /
> /dev/root 1.9G  283M  1.6G  15% /
> 
> How are you supposed to tell what actual device these things are on.
> 
> I know I can look in fstab... but that is something of a crap shoot
> since it is user configured.
> 
> So what commands will show real devices not makebelieve baloney, and 
> allow me to see the usage devices are put to?
> 
> Why do we use these kind of names anyway?
> 
> fdisk yes,  but you can't tell what usage the devices are put to with that.
> 
> 
> 

# readlink -f /dev/root





Re: [gentoo-user] Console-kit instances...

2010-11-25 Thread Albert Hopkins
On Fri, 2010-11-26 at 01:20 +0100, meino.cra...@gmx.de wrote:
> Hi,
> 
>  is it really necessary, that console-kit runs 65 instances of
>  itsself???

They're not instances (whatever that means anyway). They're threads...
the short of it is... it's already been discussed .  It's not hurting
anything (much) and upstream takes a "better safe than sorry" approach
(there is a thread to monitor each possible virtual console).  It's easy
enough to patch if you you think it's a big deal (but it isn't).

-a





  1   2   3   4   5   6   7   >