[gentoo-user] Re: ebuild not inserting soname, therefore emerging zlib fails

2011-05-30 Thread Alberto Luaces
Hi Paul,

Paul Hartman writes:

> On Fri, May 27, 2011 at 11:26 AM, Alberto Luaces  wrote:
>> Hello,
>>
>> I have searched quite a bit for an error I'm having when emerging
>> current zlib-1.2.5-r2. The problem is that somehow the soname is not
>> written in the .so file, and the build process fails. I attach all the
>> build logs in case I have some obvious misconfiguration that I should be
>> aware of. I have not changed my CHOSTS or things like that.
>>
>> I recompiled the previous version and happened the same, but it seems
>> at that time not having a soname was not forbidden by the ebuild and I
>> got just a QA notice.
>>
>> If I try to compile zlib from the /var/tmp/portage... directory the
>> library compiles fine and, in addition, the soname is included this
>> time. I tried to trace the eclasses in order to know what was happening
>> but I couldn't.
>
> Hi,
>
> Based on your settings I am guessing you have used distcc in the past,
> even though you have disabled it now.

You are right, well spotted!

> I think zlib's configure makes some changes based on if it thinks you
> use distcc or not. I would try to unset CC in environment and remove
> -m32 from your CFLAGS and see if it is any different. It's only a
> guess and you can change it back if it doesn't work.
>

My environment CC was empty or already unset, I removed the `-m32' tag
but it happens the same.

>
> I would also select again your preferences in gcc-config and
> binutils-config, run env-update and source /etc/profile just to be
> sure everything is in working order. :)
>

I followed your advice. I have only another compiler, the mingw cross
compiler, but I checked that is not selected byb default.

Nevertheless, thank you for your help. You gave me the idea on focusing
on zlib's configure script in order to see what is failing in the
detection process.

-- 
Alberto




Re: [gentoo-user] How do I eject an audio CD inside Gnome?

2011-05-30 Thread Thanasis
on 05/29/2011 11:49 PM Alan Mackenzie wrote the following:

> So, I thought, maybe this "feature" is another pesky group restriction.
> So I tried adding myself to group "disk", then to group "cdrw",
Try adding yourself to plugdev group also.



[gentoo-user] time issue

2011-05-30 Thread András Csányi
Hi All,

I have a little problem regarding time.  After every boot I have to
setup my clock because about my machine the current time is +2 hour
more. To be honest, this is a little bit annoying.
What I did:

- According to install guide I have copied the
/usr/share/zoneinfo/Europe/Budapest to /etc/localtime
- According to localization guide [1] I have to set up the current
timezone in the /etc/conf.d/clock file but this file is missing. I
have checked it the original stage-3 pack from Hungarian mirror and I
couldn't find there as well. I think this file is removed.

So my question is that, what should I do to have the current time
automatically (I'm in Hungary/Budapest)? Should I make a new clock
file?

[1] - http://www.gentoo.org/doc/en/guide-localization.xml

Thanks for any help in advance!

András

-- 
- -
--  Csanyi Andras (Sayusi Ando)  -- http://sayusi.hu --
http://facebook.com/andras.csanyi
--  ""Trust in God and keep your gunpowder dry!" - Cromwell



[gentoo-user] Re: vertical panel in KDE4

2011-05-30 Thread András Csányi
On 24 May 2011 14:53, András Csányi  wrote:
> Hi Guys,
>
> I'm an old Gentoo fun and after a while I installed back to my
> machine. Unfortunately, I got used to the comfort of the Windows and
> my main purpose is that to make a comfortable work environment which
> is as comfortable as Win7 could be. The first step is in this process
> the taskbar.
>
> So, I'm just wondering is there any solution to have vertical menu in
> KDE4? I would like to something like Win7 taskbar? In Xfce I was able
> to do this but, to be honest, my favorite desktop environment in *nix
> world is KDE.
> I have 2 monitors and it's very comfortable that when I put the panel
> (taskbar) the right side of left monitor because this is almost
> centered.

Hi All,

I would like to thank you the help what I got in this case. The panel
is works according to my wishes. It's  centered, it's vertical and
it's wonderful! :)

Have a nice day!

András

-- 
- -
--  Csanyi Andras (Sayusi Ando)  -- http://sayusi.hu --
http://facebook.com/andras.csanyi
--  ""Trust in God and keep your gunpowder dry!" - Cromwell



Re: [gentoo-user] time issue

2011-05-30 Thread Pandu Poluan
IIRC, starting from baselayout-2 the timezone is in /etc/timezone

Just one line: Region/City

Rgds,


On 2011-05-30, András Csányi  wrote:
> Hi All,
>
> I have a little problem regarding time.  After every boot I have to
> setup my clock because about my machine the current time is +2 hour
> more. To be honest, this is a little bit annoying.
> What I did:
>
> - According to install guide I have copied the
> /usr/share/zoneinfo/Europe/Budapest to /etc/localtime
> - According to localization guide [1] I have to set up the current
> timezone in the /etc/conf.d/clock file but this file is missing. I
> have checked it the original stage-3 pack from Hungarian mirror and I
> couldn't find there as well. I think this file is removed.
>
> So my question is that, what should I do to have the current time
> automatically (I'm in Hungary/Budapest)? Should I make a new clock
> file?
>
> [1] - http://www.gentoo.org/doc/en/guide-localization.xml
>
> Thanks for any help in advance!
>
> András
>
> --
> - -
> --  Csanyi Andras (Sayusi Ando)  -- http://sayusi.hu --
> http://facebook.com/andras.csanyi
> --  ""Trust in God and keep your gunpowder dry!" - Cromwell
>
>


-- 
--
Pandu E Poluan - IT Optimizer
My website: http://pandu.poluan.info/



Re: [gentoo-user] time issue

2011-05-30 Thread Florian Philipp
Am 30.05.2011 10:15, schrieb András Csányi:
> Hi All,
> 
> I have a little problem regarding time.  After every boot I have to
> setup my clock because about my machine the current time is +2 hour
> more. To be honest, this is a little bit annoying.
> What I did:
> 
> - According to install guide I have copied the
> /usr/share/zoneinfo/Europe/Budapest to /etc/localtime
> - According to localization guide [1] I have to set up the current
> timezone in the /etc/conf.d/clock file but this file is missing. I
> have checked it the original stage-3 pack from Hungarian mirror and I
> couldn't find there as well. I think this file is removed.
> 
> So my question is that, what should I do to have the current time
> automatically (I'm in Hungary/Budapest)? Should I make a new clock
> file?
> 
> [1] - http://www.gentoo.org/doc/en/guide-localization.xml
> 
> Thanks for any help in advance!
> 
> András
> 

First question: Are you dual-booting some other operating system?
Windows sets the hardware clock to local time, Linux expects it to be
UTC, by default. You can change this setting in /etc/conf.d/hwclock

In this file, you can also specify to set the hardware clock to whatever
the software clock tells. That might help you to restore the correct
time at boot.

The localization guide seems to be in a poor state. Copying the zoneinfo
file from /usr/share... to /etc/localtime is not the best way to do it
because then you miss updates. It is better to create a symlink between
the two. Also, instead of setting the timezone in /etc/conf.d/clock, you
do it in /etc/timezone nowadays (change introduced in baselayout-2 if
I'm not mistaken).

`echo Hungary/Budapest > /etc/timezone`
will do the trick.

Hope this helps,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] time issue

2011-05-30 Thread Henry Gebhardt
On Mon, May 30, 2011 at 10:15:59AM +0200, András Csányi wrote:
> 
> So my question is that, what should I do to have the current time
> automatically (I'm in Hungary/Budapest)? Should I make a new clock
> file?

You should probably customize /etc/conf.d/hwclock, search for "Clock" in
http://www.gentoo.org/doc/en/openrc-migration.xml.

> 
> [1] - http://www.gentoo.org/doc/en/guide-localization.xml

That looks like a bug in the documentation.


H



Re: [gentoo-user] time issue

2011-05-30 Thread Florian Philipp
Am 30.05.2011 11:02, schrieb Henry Gebhardt:
> On Mon, May 30, 2011 at 10:15:59AM +0200, András Csányi wrote:
>>
>> So my question is that, what should I do to have the current time
>> automatically (I'm in Hungary/Budapest)? Should I make a new clock
>> file?
> 
> You should probably customize /etc/conf.d/hwclock, search for "Clock" in
> http://www.gentoo.org/doc/en/openrc-migration.xml.
> 
>>
>> [1] - http://www.gentoo.org/doc/en/guide-localization.xml
> 
> That looks like a bug in the documentation.
> 
> 
> H
> 

I've just reported it in the tracker bug for documentation changes due
to the OpenRC migration.

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] time issue

2011-05-30 Thread Mick
On Monday 30 May 2011 09:15:59 András Csányi wrote:
> Hi All,
> 
> I have a little problem regarding time.  After every boot I have to
> setup my clock because about my machine the current time is +2 hour
> more. To be honest, this is a little bit annoying.
> What I did:
> 
> - According to install guide I have copied the
> /usr/share/zoneinfo/Europe/Budapest to /etc/localtime
> - According to localization guide [1] I have to set up the current
> timezone in the /etc/conf.d/clock file but this file is missing. I
> have checked it the original stage-3 pack from Hungarian mirror and I
> couldn't find there as well. I think this file is removed.
> 
> So my question is that, what should I do to have the current time
> automatically (I'm in Hungary/Budapest)? Should I make a new clock
> file?
> 
> [1] - http://www.gentoo.org/doc/en/guide-localization.xml
> 
> Thanks for any help in advance!
> 
> András

Assuming that you have moved to openrc and running Linux not FreeBSD, you 
should have a file /etc/conf.d/hwclock.  Therefore you would not need to 
create the /etc/conf.d/clock file:

http://www.gentoo.org/doc/en/openrc-migration.xml

Read the section under Clock, which says that you should set up your timezone 
in /etc/timezone.  If it hasn't been created in your system already, then add 
it yourself with this line in it:

Europe/Budapest

HTH.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Converting time formats

2011-05-30 Thread Florian Philipp
Am 30.05.2011 00:18, schrieb Henry Gebhardt:
> On Sat, May 28, 2011 at 09:28:47PM -0500, Dale wrote:
>>
>> I went back to the man page, it sort of left the @ out on mine:
>>
>> -d, --date=STRING
>>display time described by STRING, not `now'
>>
>> No mention of the @ sign there.  It does say to read the info file but I 
>> very rarely get into those.  I never have had any good luck with them.  
> 
> May I suggest sending a patch upstream? That'd be pretty cool. Just fix
> it in the right place where everyone will find it. I bet other people
> would appreciate it, too.
> 
> 
> Thanks,
> 
> H
> 

Just adding the @ will not be sufficient. The STRING can be in many
different formats. `date -d 'last tuesday'` also works, for example. You
have to add a whole new section to the man page -- or just refer to the
info page ;-)

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] time issue

2011-05-30 Thread Henry Gebhardt
On Mon, May 30, 2011 at 10:57:51AM +0200, Florian Philipp wrote:
> Am 30.05.2011 10:15, schrieb András Csányi:
> 
> The localization guide seems to be in a poor state. Copying the zoneinfo
> file from /usr/share... to /etc/localtime is not the best way to do it
> because then you miss updates. It is better to create a symlink between
> the two.

Copying is just fine. The timezone-data ebuild will update
/etc/localtime for you on the next update, and replace the symlink if
you have one there. The reason, IIRC, being that /usr might not yet be
mounted during early boot.


H



Re: [gentoo-user] How do I eject an audio CD inside Gnome?

2011-05-30 Thread Alan Mackenzie
Hi, Alan.

On Sun, May 29, 2011 at 11:56:10PM +0200, Alan McKinnon wrote:
> Apparently, though unproven, at 23:37 on Sunday 29 May 2011, Alan Mackenzie 
> did opine thusly:

> > Hi, Neil.

> > On Sun, May 29, 2011 at 10:13:08PM +0100, Neil Bothwick wrote:
> > > On Sun, 29 May 2011 22:58:39 +0200, Alan McKinnon wrote:
> > > > With a CD in the drive and gnome running, please post the output
> > > > of

> > > > mount
> > > > cat /etc/mtab

> > > And the output of eject -v

> > acm@acm ~ $ eject -v
> > eject: using default device `cdrom'
> > eject: device name is `cdrom'
> > eject: expanded name is `/dev/cdrom'
> > eject: `/dev/cdrom' is a link to `/dev/sr0'
> > eject: `/dev/sr0' is not mounted
> > eject: `/dev/sr0' is not a mount point
> > eject: `/dev/sr0' is not a multipartition device
> > eject: trying to eject `/dev/sr0' using CD-ROM eject command
> > eject: CD-ROM eject command failed
> > eject: trying to eject `/dev/sr0' using SCSI commands
> > eject: SCSI eject succeeded

> > (This was run as a normal user, not root.)

> > Hey, eject -v works!  :-)  It's still not quite ideal, though.


> My money says you've been hit by the Gnome Borg - where you are only
> permitted to do things the way the gnome devs have deemed to be
> appropriate and TheOneTrueWay(tm). After all, you are just a user, what
> do you know? The devs know better, you must trust them!

You're dashed right.  I now understand what's happening:  When a CD is
inserted and Gnome detects it as an audio CD, the CD drive is locked.  At
the same time, a stupid icon "Audio Disc" appears on the screen.

Right clicking on "Audio Disc" gives an "eject" menu point.  YUCK!!!  If
I'd've wanted an Apple Macintosh, I know where to buy one.  I just want
my drive's eject button to work.

It gets worse.  If you double click on "Audio Disc", it opens a window
with the "files" uselessly displayed.  Right clicking gives a menu point
"unmount" (I kid you not), as though a filesystem were mounted.  This
unlocks the drive.

I feel like screaming.  ARHHH

> I can't be of much more help to you, I don't use Gnome at all (see above)

Can't say I blame you.  What's the choice, though?  I appreciate the
spare uncluttered desktop of Gnome.  Last time I tried KDE (about 7 years
ago) it was anything but uncluttered.  I tried XFCE briefly, but couldn't
get it to run stably.  Besides, it was missing an application to switch
between keyboard layouts, something I absolutely need.

> -- 
> alan dot mckinnon at gmail dot com

-- 
Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] How do I eject an audio CD inside Gnome?

2011-05-30 Thread Alan McKinnon
Apparently, though unproven, at 12:10 on Monday 30 May 2011, Alan Mackenzie 
did opine thusly:

> > My money says you've been hit by the Gnome Borg - where you are only
> > permitted to do things the way the gnome devs have deemed to be
> > appropriate and TheOneTrueWay(tm). After all, you are just a user, what
> > do you know? The devs know better, you must trust them!
> 
> You're dashed right.  I now understand what's happening:  When a CD is
> inserted and Gnome detects it as an audio CD, the CD drive is locked.  At
> the same time, a stupid icon "Audio Disc" appears on the screen.

I don't understand why they lock it. If you can physically press the eject 
button the drive should open because you can just as easily put a paperclip in 
the little hole and force it open.

A case can be made for locking the software controls - with software, open the 
drive using the matching command to what loads it. But not physical controls

> Right clicking on "Audio Disc" gives an "eject" menu point.  YUCK!!!  If
> I'd've wanted an Apple Macintosh, I know where to buy one.  I just want
> my drive's eject button to work.
> 
> It gets worse.  If you double click on "Audio Disc", it opens a window
> with the "files" uselessly displayed.  Right clicking gives a menu point
> "unmount" (I kid you not), as though a filesystem were mounted.  This
> unlocks the drive.
> 
> I feel like screaming.  ARHHH

I feel your pain

> > I can't be of much more help to you, I don't use Gnome at all (see above)
> 
> Can't say I blame you.  What's the choice, though?  I appreciate the
> spare uncluttered desktop of Gnome.  Last time I tried KDE (about 7 years
> ago) it was anything but uncluttered.  I tried XFCE briefly, but couldn't
> get it to run stably.  Besides, it was missing an application to switch
> between keyboard layouts, something I absolutely need.

I hear good things about XFCE these days. If you haven't tried it lately, it 
might be worth a new look. And you can always write a small script to change 
your keyboard layout if there's no gui app. Not as convenient as a systray 
icon, but probably a small price to pay if everything else suits your needs

There's also other DEs like *box and e17.

e17 requires a huge mind shift in how you perceive the desktop but once you 
get your head around it, it becomes strangely addictive.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] time issue

2011-05-30 Thread Neil Bothwick
On Mon, 30 May 2011 10:57:51 +0200, Florian Philipp wrote:

> The localization guide seems to be in a poor state. Copying the zoneinfo
> file from /usr/share... to /etc/localtime is not the best way to do it
> because then you miss updates. It is better to create a symlink between
> the two.

Which will break if /usr is on a separate filesystem.

> Also, instead of setting the timezone in /etc/conf.d/clock, you
> do it in /etc/timezone nowadays (change introduced in baselayout-2 if
> I'm not mistaken).

Setting it in /etc/timezone also takes care of the updates situation,
because the timezone-data ebuild automatically copies the correct file
to /etc/.


-- 
Neil Bothwick

Linux users do it without paying a Bill


signature.asc
Description: PGP signature


Re: [gentoo-user] How do I eject an audio CD inside Gnome?

2011-05-30 Thread Mick
On Monday 30 May 2011 11:33:02 Alan McKinnon wrote:
> Apparently, though unproven, at 12:10 on Monday 30 May 2011, Alan Mackenzie

> > Can't say I blame you.  What's the choice, though?  I appreciate the
> > spare uncluttered desktop of Gnome.  Last time I tried KDE (about 7 years
> > ago) it was anything but uncluttered.  I tried XFCE briefly, but couldn't
> > get it to run stably.  Besides, it was missing an application to switch
> > between keyboard layouts, something I absolutely need.
> 
> I hear good things about XFCE these days. If you haven't tried it lately,
> it might be worth a new look. And you can always write a small script to
> change your keyboard layout if there's no gui app. Not as convenient as a
> systray icon, but probably a small price to pay if everything else suits
> your needs
> 
> There's also other DEs like *box and e17.
> 
> e17 requires a huge mind shift in how you perceive the desktop but once you
> get your head around it, it becomes strangely addictive.

KDE has changed *significantly* from 7 years ago.  It will be a completely new 
experience for you and there are a number of LiveCDs/DVDs you can use to try 
it out and see if it meets your needs.

Fluxbox which I have been using for years is ultimately configurable, but 
development is not really breathtaking and it does not do compiz or other 
composite eye-candy.  It's fast, but some of its edges are jagged compared to 
more modern WMs.

e17 is the best desktop for me, because it is extremely light footed, has 
enough eye candy (if you need that) and it is relatively configurable.  Until 
it becomes stable you'll need to compile it from svn.

Alan, I'm not sure I understand what you mean by "huge mind shift"?  Unless my 
mind shifted and wasn't aware of it!  :))
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Install issue

2011-05-30 Thread James Wall
I have had that particular problem if I mounted /dev before extracting the
stage3 tarball. Just follow those instructions and you sill be fine.

James Wall


Re: [gentoo-user] setting locale

2011-05-30 Thread Allan Gottlieb
On Sun, May 29 2011, Nils Larsson wrote:

> måndagen den 30 maj 2011 03:26:49 skrev  Allan Gottlieb:
>> What must I do to get "en_US_utf8" ?
>
> echo "LANG=en_US_utf8" > /etc/env.d/02locale
> and
> env-update
> should work.

Thanks.  It just needed
source /etc/profile

at the end.  The variables are now correct but there are still problems.

1.  locale complains

oldlap ~ # locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US_utf8
LC_CTYPE="en_US_utf8"
LC_NUMERIC="en_US_utf8"
LC_TIME="en_US_utf8"
LC_COLLATE="en_US_utf8"
LC_MONETARY="en_US_utf8"
LC_MESSAGES="en_US_utf8"
LC_PAPER="en_US_utf8"
LC_NAME="en_US_utf8"
LC_ADDRESS="en_US_utf8"
LC_TELEPHONE="en_US_utf8"
LC_MEASUREMENT="en_US_utf8"
LC_IDENTIFICATION="en_US_utf8"
LC_ALL=
oldlap ~ # 

2.  ca-certificates complains during emerge

2A.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US_utf8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
>>> cfg-update-1.8.2-r1: Creating checksum index...

that was expected from above

2B.
   * This package installs one or more file names containing characters that
   * do not match your current locale settings. The current setting for
   * filesystem encoding is 'ANSI_X3.4-1968'.
   * 
   *
usr/share/ca-certificates/mozilla/AC_Ra\ufffd\ufffdz_Certic\ufffd\ufffdmara_S.A..crt

plus other certificates.  Perhaps fixing 2A would fix this as well??

2C.  The following has unreadable characters
Updating certificates in /etc/ssl/certs... W: 
/usr/share/ca-certificates/mozilla/AC_Ra��z_Certic��mara_S.A..crt not found, 
but listed in /etc/ca-certificates.conf.
W: 
/usr/share/ca-certificates/mozilla/EBG_Elektronik_Sertifika_Hizmet_Sa��lay��c��s��.crt
 not found, but listed in /etc/ca-certificates.conf.
W: 
/usr/share/ca-certificates/mozilla/NetLock_Arany_=Class_Gold=_F��tan��s��tv��ny.crt
 not found, but listed in /etc/ca-certificates.conf.
W: 
/usr/share/ca-certificates/mozilla/T��B��TAK_UEKAE_K��k_Sertifika_Hizmet_Sa��lay��c��s��_-_S��r��m_3.crt
 not found, but listed in /etc/ca-certificates.conf.
0 added, 0 removed; done.

thanks again,
allan



Re: [gentoo-user] setting locale

2011-05-30 Thread David W Noon
On Mon, 30 May 2011 04:20:01 +0200, Nils Larsson wrote about Re:
[gentoo-user] setting locale:

>måndagen den 30 maj 2011 03:26:49 skrev  Allan Gottlieb:
>> What must I do to get "en_US_utf8" ?
>
>echo "LANG=en_US_utf8" > /etc/env.d/02locale
>and
>env-update
>should work.

Not likely.  The correct locale string is "en_US.UTF-8", not the mess
that is written above.

Moreover, I never use file redirection from echo when a text editor is
a more appropriate tool.  What you have suggested above could well
replace a valid locale setting with an that invalid one, without any
checks at all on the existing contents of the file.  So, it's best to
use vim, nano or even emacs for such a job.
-- 
Regards,

Dave  [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
dwn...@ntlworld.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


signature.asc
Description: PGP signature


[gentoo-user] Cleaning redundant configuration files

2011-05-30 Thread David W Noon
On Mon, 30 May 2011 08:40:02 +0200, Graham Murray wrote about Re:
[gentoo-user] haldaemon group/user:

>Do any of the config tools, etc-update, dispatch-conf, cfg-update etc,
>ever prompt for removing a redundant file? In my experience they only
>'trigger' for changed content within existing configuration files?

How does the tool of choice determine if a file is redundant or not?

Just because a configuration file is not associated with a Portage
package [any more] does not necessarily mean it is redundant.
-- 
Regards,

Dave  [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
dwn...@ntlworld.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


signature.asc
Description: PGP signature


Re: [gentoo-user] [OT - More Router Advice] Cheap Router with decent/reliable VLAN support

2011-05-30 Thread Todd Goodman
* Gregory Shearman  [110528 20:17]:
> In linux.gentoo.user, Todd Goodman wrote:
> > * Tanstaafl  [110528 12:43]:
> >> After seeing an older thread asking about a router, I figured I'd ask my
> >> own question...
> >> 
> >> I'm looking for a cheap but reliable router that has decent and SIMPLE
> >> way to add VLANs (I'm not a CISCO guy and don't want to have to become
> >> one)...
> >> 
> >> Specifically, I want to have one VLAN that my wireless access points are
> >> plugged into, to provide ONLY internet access, and then a separate VLAN
> >> for my internal network...
> >> 
> >> This is to protect my internal net from any potentially infected
> >> machines that are on the wireless access points (I routinely work on
> >> infected computers for friends/family, so, I need internet access, but
> >> want them isolated from my internal network).
> >> 
> >> Anyone? Will one of the FLOSS builds for the cheap Cable/DSL routers
> >> support VLANs on the different built-in router ports (ie, Tomato, DD-WRT
> >> or OpenWRT)?
> >> 
> >> Looking forward to any suggestions/ideas...
> >
> > Hi, I'm pretty sure OpenWRT supports VLANs.
> >
> > I started using it on a Buffalo WHR-G300N (I think, not at home to check
> > right now.)  Cheap and I didn't expect much but it works great (far
> > better than any Linksys or trendnet products I've purchased and run
> > their firmware on.)
> 
> I'll second that. I run a Buffalo Nfiniti WZR-HP-G300NH with openwrt
> installed. It is VLAN capable and has Gigabyte ethernet and b/g/n wifi.
> It also has a USB socket for extra disk storage if needed (or any other
> peripheral you fancy).  It just sits in the corner and does its job. It
> is also very cheap.
> 
> -- 
> Regards,
> Gregory.

Thanks Gregory, I do have the WZR-HD-G300NH.  Very cheap and works
great.

Todd



Re: [gentoo-user] setting locale

2011-05-30 Thread Neil Bothwick
On Mon, 30 May 2011 15:43:19 +0100, David W Noon wrote:

> Moreover, I never use file redirection from echo when a text editor is
> a more appropriate tool.  What you have suggested above could well
> replace a valid locale setting with an that invalid one, without any
> checks at all on the existing contents of the file.  So, it's best to
> use vim, nano or even emacs for such a job.

Setting noclobber in /etc/profile.d/*shopts.sh avoids that particular
problem, as well was the one of accidentally nuking a file when you meant
to add to it with >>.


-- 
Neil Bothwick

Microbiology: staph only.


signature.asc
Description: PGP signature


Re: [gentoo-user] Cleaning redundant configuration files

2011-05-30 Thread Neil Bothwick
On Mon, 30 May 2011 15:48:15 +0100, David W Noon wrote:

> How does the tool of choice determine if a file is redundant or not?
> 
> Just because a configuration file is not associated with a Portage
> package [any more] does not necessarily mean it is redundant.

No, but it indicates the file warrants a closer look as it may be
orphaned. qfile is my tool of choice for this, it only list files and
deletes nothing.


-- 
Neil Bothwick

c:>Press Enter to Exit


signature.asc
Description: PGP signature


[gentoo-user] kde update

2011-05-30 Thread Alain DIDIERJEAN
Trying to update from kde4.5 to kde4.6
A simple "emerge -uD world" gives:

[ebuild U ] x11-libs/qt-core-4.7.2-r1 [4.6.3-r1] USE="-jit% 
-private-headers%"
[ebuild U ] x11-libs/qt-sql-4.7.2 [4.6.3-r2]
[blocks b ] =kde-base/plasma-runtime-4.6.2[-aqua,-kdeprefix] required by 
(kde-base/plasma-workspace-4.6.2-r1^[[39;49;00m, ebuild scheduled for m$
>=kde-base/plasma-runtime-4.6.2[-aqua,-kdeprefix] required by 
(kde-base/kdebase-runtime-meta-4.6.2^[[39;49;00m, ebuild scheduled for $

  (kde-base/solid-4.6.2^[[39;49;00m, ebuild scheduled for merge) pulled in by
>=kde-base/solid-4.6.2[-aqua,-kdeprefix] required by 
(kde-base/kdebase-meta-4.6.2^[[39;49;00m, ebuild scheduled for merge)
>=kde-base/solid-4.5 required by (media-gfx/digikam-1.9.0^[[39;49;00m, 
ebuild scheduled for merge)
>=kde-base/solid-4.6.2[-aqua,-kdeprefix] required by 
(kde-base/plasma-workspace-4.6.2-r1^[[39;49;00m, ebuild scheduled for merge)
(and 6 more)

  (net-wireless/kbluetooth-0.4.2^[[39;49;00m, installed) pulled in by
net-wireless/kbluetooth required by @selected

  (kde-base/kdontchangethehostname-4.6.2^[[39;49;00m, ebuild scheduled for 
merge) pulled in by
>=kde-base/kdontchangethehostname-4.6.2[-aqua,-kdeprefix] required by 
(kde-base/kdebase-runtime-meta-4.6.2^[[39;49;00m, ebuild schedu$

  (kde-base/kdelibs-4.6.2-r3^[[39;49;00m, ebuild scheduled for merge) pulled in 
by
>=kde-base/kdelibs-4.6.2[-aqua,-kdeprefix] required by 
(kde-base/kdeartwork-wallpapers-4.6.2^[[39;49;00m, ebuild scheduled for merge)
>=kde-base/kdelibs-4.6.2[-aqua,-kdeprefix] required by 
(kde-base/kcheckpass-4.6.2^[[39;49;00m, ebuild scheduled for merge)
>=kde-base/kdelibs-4.6.2[-aqua,-kdeprefix] required by 
(kde-base/kanagram-4.6.2^[[39;49;00m, ebuild scheduled for merge)
(and 373 more)

  (kde-base/solid-runtime-4.6.2^[[39;49;00m, ebuild scheduled for merge) pulled 
in by
>=kde-base/solid-runtime-4.4.5[-aqua,-kdeprefix] required by 
(kde-base/solid-4.4.5^[[39;49;00m, installed)
>=kde-base/solid-runtime-4.6.2[-aqua,-kdeprefix] required by 
(kde-base/kdebase-runtime-meta-4.6.2^[[39;49;00m, ebuild scheduled for m$
>=kde-base/solid-runtime-4.6.2[-aqua,-kdeprefix] required by 
(kde-base/solid-4.6.2^[[39;49;00m, ebuild scheduled for merge)

  (kde-base/libkworkspace-4.6.2^[[39;49;00m, ebuild scheduled for merge) pulled 
in by
>=kde-base/libkworkspace-4.6.2[-aqua,-kdeprefix] required by 
(kde-base/plasma-workspace-4.6.2-r1^[[39;49;00m, ebuild scheduled for me$
>=kde-base/libkworkspace-4.6.2[-aqua,-kdeprefix] required by 
(kde-base/powerdevil-4.6.2-r1^[[39;49;00m, ebuild scheduled for merge)
>=kde-base/libkworkspace-4.6.2[-aqua,-kdeprefix] required by 
(kde-base/kwin-4.6.2^[[39;49;00m, ebuild scheduled for merge)
(and 13 more)


All together 982 lines as above.
Besides that, gentoo amd64 works fine on my box and I emerge everyday packages 
to upgrade, except those which are kde's.
Questions:
- what the hell is this mess, did I do something wrong ?
- have any of you got the same kind of troubles ?
- is there a way to go back to an up to date clean install, I mean besides 
reinstalling from scratch or going for Ubuntu ?
Reasons that make me go for gentoo 8 or 9 years ago:
- excellent docs. (as of to-day, some docs need updating);
- easyness of maintenance, no need for periodical reinstall (I'm not sure this 
time);
- stable packages are renewed in time, not too soon, not too late;
- portage works like a charm.
Hope I can get some help


-- 

Alain DIDIERJEAN  Puisque ces mystères nous dépassent
   Feignons d'en être l'organisateur




Re: [gentoo-user] KDE4 localization

2011-05-30 Thread Alex Schuster
Mick writes:

> On Sunday 29 May 2011 18:16:04 Volker Armin Hemmann wrote:
> > On Saturday 28 May 2011 20:27:59 Alex Schuster wrote:
> > > Maxim Vorontsov writes:
> > > > 27.05.2011, в 21:35, Alex Schuster  написал(а):

> > > I backup them up regularly. And I just had to restore some config
> > > files because all plasma was messed up AGAIN. Most plasmoids were
> > > missing, including the panel, and I hat lots of additional
> > > activities. Before this I had to log out because kwin was using 1.3G
> > > of memory. Maybe a side effect from /var running full? I had 2G of
> > > stuff in
> > > /var/tmp/kdecache-wonko/http/. Is this normal? I moved this directory
> > > into my $HOME directory and set a symlink so just using KDE will not
> > > again fill /var again.

> > no, normal is something like 60 or 100mb for http. You don't delete
> > your caches...

Should I?

> > btw, a lot of kde stuff ends up in .local nowadays. Stupid standards...

Noticed that, too. Probably stuff that not only KDE uses, like Trash, or 
Mails. Might actually be a good thing, I think.

> This is mine:
> 
> $ du -s -h /var/tmp/kdecache-michael/http
> 61M   /var/tmp/kdecache-michael/http
> 
> Are you running some strange plasma or plugin that keeps caching and
> caching?

I don't think so, and I did not install such stuff recently.

But now that I look again, I do not find _any_ new files in 
/var/tmp/kdecache-wonko/. 

> In Konqueror I have my Disk Cache Size set at 51200 KiB.

Same here.

Wonko



Re: [gentoo-user] kde update

2011-05-30 Thread Mick
On Monday 30 May 2011 17:45:17 Alain DIDIERJEAN wrote:
> Trying to update from kde4.5 to kde4.6
> A simple "emerge -uD world" gives:
> 
> [ebuild U ] x11-libs/qt-core-4.7.2-r1 [4.6.3-r1] USE="-jit%
> -private-headers%" [ebuild U ] x11-libs/qt-sql-4.7.2 [4.6.3-r2]
> [blocks b ]  blocking x11-libs/qt-test-4.7.2, x11-libs/qt-svg-4.7.2,
[snip ...]

> (and 13 more)
> 
> 
> All together 982 lines as above.
> Besides that, gentoo amd64 works fine on my box and I emerge everyday
> packages to upgrade, except those which are kde's. Questions:
> - what the hell is this mess, did I do something wrong ?

No, nothing wrong, new packages that the latest qt and kde4.6 want are being 
blocked by packages already installed.

> - have any of you got the same kind of troubles ?

Yes, I did on 3 different boxen.


> - is there a way to go back to an up to date clean install, I mean besides
> reinstalling from scratch or going for Ubuntu ? Reasons that make me go
> for gentoo 8 or 9 years ago:
> - excellent docs. (as of to-day, some docs need updating);
> - easyness of maintenance, no need for periodical reinstall (I'm not sure
> this time); - stable packages are renewed in time, not too soon, not too
> late; - portage works like a charm.
> Hope I can get some help

Don't panic!  What I did was to progressively uninstall the blockers and then 
run emerge -uaDv world.  Eventually there were no blockers, the latest qt was 
installed and then kde4.6.

Everything now is like a "clean new install" should be.

If you're running 2.2 portage there may be some automagic way of achieving 
this, but with portage-2.1.9.42 I had to do it manually.

HTH.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Install issue

2011-05-30 Thread Colleen Beamer
On Mon, May 30, 2011 at 9:47 AM, James Wall  wrote:

> I have had that particular problem if I mounted /dev before extracting the
> stage3 tarball. Just follow those instructions and you sill be fine.
>
> James Wall
>
I tried doing the steps that I found in my google search as previously
posted.  It somewhat resolved the problem, but I still got error messages.
Since I was tired at this point, I gave up.

This morning, I tried what was suggested and used an earlier stage 3 tarball
(Apr. 24th, I believe it was).  This solved the problem and I was able to
boot.  Must have been an issue with the stage 3 tarball I had previously
tried.

Thanks for the help and comments, everyone!

Regards,

Colleen


Re: [gentoo-user] Install issue

2011-05-30 Thread William Hubbs
Hi all,

this issue is being worked currently. The bug you want to follow is
http://bugs.gentoo.org/show_bug.cgi?id=368597

William



pgp10T4IhBQ71.pgp
Description: PGP signature


Re: [gentoo-user] setting locale

2011-05-30 Thread Florian Philipp
Am 30.05.2011 16:43, schrieb David W Noon:
> On Mon, 30 May 2011 04:20:01 +0200, Nils Larsson wrote about Re:
> [gentoo-user] setting locale:
> 
>> måndagen den 30 maj 2011 03:26:49 skrev  Allan Gottlieb:
>>> What must I do to get "en_US_utf8" ?
>>
>> echo "LANG=en_US_utf8" > /etc/env.d/02locale
>> and
>> env-update
>> should work.
> 
> Not likely.  The correct locale string is "en_US.UTF-8", not the mess
> that is written above.
> 

Please stay polite. It also saves you the effort of writing those words. ;)

> Moreover, I never use file redirection from echo when a text editor is
> a more appropriate tool.  What you have suggested above could well
> replace a valid locale setting with an that invalid one, without any
> checks at all on the existing contents of the file.  So, it's best to
> use vim, nano or even emacs for such a job.

Sure thing. However, it is much faster to type `echo foo > bar` than
writing "Open your favorite file editor and enter 'foo' into 'bar'."
Being concise is often the better approach when you want to show a
solution to the problem at hand instead of educating the reader.

Everyone who is able to install Gentoo should be able to understand the
shell line and use whatever approach he wants to achieve the same result
and if he is satisfied with the given line, he has a copy-and-paste
solution at hand (my colleagues call this "service to the reader").

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] setting locale

2011-05-30 Thread David W Noon
On Mon, 30 May 2011 18:00:02 +0200, Neil Bothwick wrote about Re:
[gentoo-user] setting locale:

>On Mon, 30 May 2011 15:43:19 +0100, David W Noon wrote:
>
>> Moreover, I never use file redirection from echo when a text editor
>> is a more appropriate tool.  What you have suggested above could well
>> replace a valid locale setting with an that invalid one, without any
>> checks at all on the existing contents of the file.  So, it's best to
>> use vim, nano or even emacs for such a job.
>
>Setting noclobber in /etc/profile.d/*shopts.sh avoids that particular
>problem, as well was the one of accidentally nuking a file when you
>meant to add to it with >>.

Setting noclobber is fine for not obliterating the current contents of
the file, but it does not help where the current contents need to be
updated.  That is why I *always* use a text editor to modify
configuration files.
-- 
Regards,

Dave  [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
dwn...@ntlworld.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


signature.asc
Description: PGP signature


Re: [gentoo-user] Cleaning redundant configuration files

2011-05-30 Thread David W Noon
On Mon, 30 May 2011 18:10:02 +0200, Neil Bothwick wrote about Re:
[gentoo-user] Cleaning redundant configuration files:

>On Mon, 30 May 2011 15:48:15 +0100, David W Noon wrote:
>
>> How does the tool of choice determine if a file is redundant or not?
>> 
>> Just because a configuration file is not associated with a Portage
>> package [any more] does not necessarily mean it is redundant.
>
>No, but it indicates the file warrants a closer look as it may be
>orphaned. qfile is my tool of choice for this, it only list files and
>deletes nothing.

Indeed, I would be very wary of any tool that automatically deleted a
configuration file without backing it up.

The only algorithmic approach with which I would feel comfortable would
be if the file were checked against the previous contents of a package
and found present, but has disappeared from the new contents of that
same package.  Even then, I would want manual confirmation.
-- 
Regards,

Dave  [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
dwn...@ntlworld.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


signature.asc
Description: PGP signature


Re: [gentoo-user] setting locale

2011-05-30 Thread Dale

Florian Philipp wrote:


Sure thing. However, it is much faster to type `echo foo>  bar` than
writing "Open your favorite file editor and enter 'foo' into 'bar'."
Being concise is often the better approach when you want to show a
solution to the problem at hand instead of educating the reader.

Everyone who is able to install Gentoo should be able to understand the
shell line and use whatever approach he wants to achieve the same result
and if he is satisfied with the given line, he has a copy-and-paste
solution at hand (my colleagues call this "service to the reader").

Regards,
Florian Philipp

   



Yep, one could write to open a file with nano or vi.  If the user knows 
what he/she is doing, opening it with kwrite would work just as good, 
unless the GUI is broken.  I often get help from folks who say to edit a 
file one way but I may do something with a different tool than they 
use.  Prime example being vi compared to nano.  Does the same thing but 
a different tool.  It's a matter of preferences is all.  I use nano but 
if someone writes to use vi, I know how to change the command to work 
with nano.


The biggest thing is, if a problem can't be solved on this list, it's a 
BIG problem or a nifty new feature.  lol


Dale

:-)  :-)



Re: [gentoo-user] kde update

2011-05-30 Thread Neil Bothwick
On Mon, 30 May 2011 18:16:44 +0100, Mick wrote:

> Don't panic!  What I did was to progressively uninstall the blockers
> and then run emerge -uaDv world.  Eventually there were no blockers,
> the latest qt was installed and then kde4.6.

If the blockers are marked with a lower case b, portage will handle them
for you. It's only blockers marked with B that need manual intervention,
and I don't recall any of those with the QT upgrade.


-- 
Neil Bothwick

WinErr 678: This will end your Windows session. Do you want to play
another game?


signature.asc
Description: PGP signature


Re: [gentoo-user] setting locale

2011-05-30 Thread Neil Bothwick
On Mon, 30 May 2011 18:46:47 +0100, David W Noon wrote:

> >Setting noclobber in /etc/profile.d/*shopts.sh avoids that particular
> >problem, as well was the one of accidentally nuking a file when you
> >meant to add to it with >>.  
> 
> Setting noclobber is fine for not obliterating the current contents of
> the file, but it does not help where the current contents need to be
> updated.  That is why I *always* use a text editor to modify
> configuration files.

True, sed is a good choice for that.


-- 
Neil Bothwick

EASY TO INSTALL = Difficult to install, but instruction manual has
pictures.


signature.asc
Description: PGP signature


Re: [gentoo-user] Cleaning redundant configuration files

2011-05-30 Thread Neil Bothwick
On Mon, 30 May 2011 19:05:10 +0100, David W Noon wrote:

> >> Just because a configuration file is not associated with a Portage
> >> package [any more] does not necessarily mean it is redundant.  
> >
> >No, but it indicates the file warrants a closer look as it may be
> >orphaned. qfile is my tool of choice for this, it only list files and
> >deletes nothing.  
> 
> Indeed, I would be very wary of any tool that automatically deleted a
> configuration file without backing it up.
> 
> The only algorithmic approach with which I would feel comfortable would
> be if the file were checked against the previous contents of a package
> and found present, but has disappeared from the new contents of that
> same package.  Even then, I would want manual confirmation.

That omits the most common cause of orphaned files, that the package
owning it has been unmerged.


-- 
Neil Bothwick

A friend in need may turn out to be a nuisance.


signature.asc
Description: PGP signature


Re: [gentoo-user] kde update

2011-05-30 Thread Mick
On Monday 30 May 2011 20:02:06 Neil Bothwick wrote:
> On Mon, 30 May 2011 18:16:44 +0100, Mick wrote:
> > Don't panic!  What I did was to progressively uninstall the blockers
> > and then run emerge -uaDv world.  Eventually there were no blockers,
> > the latest qt was installed and then kde4.6.
> 
> If the blockers are marked with a lower case b, portage will handle them
> for you. It's only blockers marked with B that need manual intervention,
> and I don't recall any of those with the QT upgrade.

I had some upper case Bs on one of my boxen, the others were trouble-free.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] kde update

2011-05-30 Thread Dale

Mick wrote:

On Monday 30 May 2011 20:02:06 Neil Bothwick wrote:
   

On Mon, 30 May 2011 18:16:44 +0100, Mick wrote:
 

Don't panic!  What I did was to progressively uninstall the blockers
and then run emerge -uaDv world.  Eventually there were no blockers,
the latest qt was installed and then kde4.6.
   

If the blockers are marked with a lower case b, portage will handle them
for you. It's only blockers marked with B that need manual intervention,
and I don't recall any of those with the QT upgrade.
 

I had some upper case Bs on one of my boxen, the others were trouble-free.
   


I had the same on my amd64 rig too.  I think I recall having to unmerge 
two packages on mine.  On my old x86 box, I think I had to unmerge 
several on it.  It was upgrading from a good bit older packages so that 
may have had something to do with it.


I guess YMMV says a lot on this issue.

Dale

:-)  :-)



Re: [gentoo-user] setting locale

2011-05-30 Thread Nils Larsson
Eh... Right, so ...

The echo example might have been a bit blunt. I've found myself using echo 
examples as a general "you need to add this setting here" device, like you 
learn to do when you start using Gentoo, might have been a bit presumptuous of 
me.

As for the incorrect locale string, copy&paste from parent.




Re: [gentoo-user] Cleaning redundant configuration files

2011-05-30 Thread Florian Philipp
Am 30.05.2011 20:05, schrieb David W Noon:
> On Mon, 30 May 2011 18:10:02 +0200, Neil Bothwick wrote about Re:
> [gentoo-user] Cleaning redundant configuration files:
> 
>> On Mon, 30 May 2011 15:48:15 +0100, David W Noon wrote:
>>
>>> How does the tool of choice determine if a file is redundant or not?
>>>
>>> Just because a configuration file is not associated with a Portage
>>> package [any more] does not necessarily mean it is redundant.
>>
>> No, but it indicates the file warrants a closer look as it may be
>> orphaned. qfile is my tool of choice for this, it only list files and
>> deletes nothing.
> 
> Indeed, I would be very wary of any tool that automatically deleted a
> configuration file without backing it up.
> 
> The only algorithmic approach with which I would feel comfortable would
> be if the file were checked against the previous contents of a package
> and found present, but has disappeared from the new contents of that
> same package.  Even then, I would want manual confirmation.

This might also be one of the few cases where atime might be of
interest. If the file has not been accessed in the last complete
power-on/power-off cycle, chances are no application depends on it.

Of course, even then there are lots of false positives, for example
everything in /etc/skel

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] How do I eject an audio CD inside Gnome?

2011-05-30 Thread Jonathan
On Sun, 29 May 2011 20:49:05 +
Alan Mackenzie  wrote:

> Having played a CD, I discover there's no way to eject it; the physical
> button on the drive is inactive until I exit from Gnome, which is
> clearly suboptimal.

Try checking to see if any program has a file open in the cd.
If you open a terminal and change the current dir to one on the cd, it will 
lock it as well as a open file.
I had fun and games with that ones.

If all else fails you could turn the lock off with: echo 0 > 
/proc/sys/dev/cdrom/lock 
I'm sure you know that you can add the setting to /etc/sysctl.conf



Re: [gentoo-user] [OT - More Router Advice] Cheap Router with decent/reliable VLAN support

2011-05-30 Thread Tanstaafl
On 2011-05-29 8:28 AM, Volker Armin Hemmann wrote:
> so - why don't you get a router that ONLY does the routing and a nice
> good switch where you can tag the vlans?

Money/knowledge level? I don't know how to do it, so I was looking for
something that will work that I can do myself, that is affordable.

> Because if someone takes over your router it does not matter that you
> have different vlans, they can access everything.

And the same would apply if they got access to the switch too, right? ;)

> But if the router is on a different vlan than the internal network,
> they have to take over the switch - which will be in a vlan
> inaccessible from any active device - to get into the other vlans.


If this is something that can be done with not a lot of money/expertise,
can you point me to some How-To that walk me through it?

Thanks...



Re: [gentoo-user] [OT - More Router Advice] Cheap Router with decent/reliable VLAN support

2011-05-30 Thread Tanstaafl
On 2011-05-28 8:42 PM, Gregory Shearman wrote:
> In linux.gentoo.user, Todd Goodman wrote:
>> * Tanstaafl  [110528 12:43]:
>>> Anyone? Will one of the FLOSS builds for the cheap Cable/DSL routers
>>> support VLANs on the different built-in router ports (ie, Tomato, DD-WRT
>>> or OpenWRT)?
>>>
>>> Looking forward to any suggestions/ideas...
>>
>> Hi, I'm pretty sure OpenWRT supports VLANs.
>>
>> I started using it on a Buffalo WHR-G300N (I think, not at home to check
>> right now.)  Cheap and I didn't expect much but it works great (far
>> better than any Linksys or trendnet products I've purchased and run
>> their firmware on.)
> 
> I'll second that. I run a Buffalo Nfiniti WZR-HP-G300NH with openwrt
> installed. It is VLAN capable and has Gigabyte ethernet and b/g/n wifi.
> It also has a USB socket for extra disk storage if needed (or any other
> peripheral you fancy).  It just sits in the corner and does its job. It
> is also very cheap.

Thanks for the reco guys... will probably go with it...

Is the VLAN configurable via the GUI? Or is it commandline only? I'm not
exactly a whiz with this stuff...

Also, any pointers to OpenWRT docs that cover creating VLANs? I
obviously want to make sure I do it right... I'd hate to *think* I was
secure and then find out the hard way I goofed when setting it up... ;)



Re: [gentoo-user] Cleaning redundant configuration files

2011-05-30 Thread David W Noon
On Mon, 30 May 2011 21:20:01 +0200, Neil Bothwick wrote about Re:
[gentoo-user] Cleaning redundant configuration files:

>On Mon, 30 May 2011 19:05:10 +0100, David W Noon wrote:
[snip]
>> The only algorithmic approach with which I would feel comfortable
>> would be if the file were checked against the previous contents of a
>> package and found present, but has disappeared from the new contents
>> of that same package.  Even then, I would want manual confirmation.
>
>That omits the most common cause of orphaned files, that the package
>owning it has been unmerged.

You have just touched on an annoyance of unmerge, in that it does not
clean up configuration files that have been modified.  It removes files
that are still in the same state as when the package was emerged, but
not those modified by the user.  I don't see how user changes make the
file more important than would be in its vanilla state.

Perhaps an option to remove (by an unmerge, not etc-update or the
like) these genuinely orphaned files could be set in /etc/make.conf.
-- 
Regards,

Dave  [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
dwn...@ntlworld.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


signature.asc
Description: PGP signature


[gentoo-user] Re: openrc and /etc/modprobe.d/*

2011-05-30 Thread Harry Putnam
Alan McKinnon  writes:

>>   modules=fuse
>> 
>> Which appears to be the proper syntax judging from the comments in
>> the stub file provided (/etc/conf.d/modules).
>> 
>> But `fuse' never gets auto loaded.  There must be something more or
>> different it needs.
>
>
> Your syntax is correct. I suspect a module loading issue (not a
> config issue).  The answer is likely in your dmesg or messages log
>
> :-)
>
> can you successfully "modprobe fuse" after first login?

Yes.  No problems there at all

The only mention of fuse in dmesg looks like:

  # dmesg|grep fuse
  [   19.364168] fuse init (API version 7.13)




Re: [gentoo-user] How do I eject an audio CD inside Gnome?

2011-05-30 Thread Stroller

On 30/5/2011, at 11:10am, Alan Mackenzie wrote:
> ...
> Right clicking on "Audio Disc" gives an "eject" menu point.  YUCK!!!  If
> I'd've wanted an Apple Macintosh, I know where to buy one.  I just want
> my drive's eject button to work.


Your Linux box isn't working, and you're complaining about Macs?

That seems a little inappropriate.

Let me assure you: when a Mac has a hardware button, it will work just fine. It 
won't be disabled for no reason. 

This is why I use Mac for the desktop. Because when I get home after a hard 
day's work fixing computers I don't want to have to do a "bat shit crazy amount 
of work to keep things working" [1]. I don't want the kind of grief you've been 
experiencing with this issue. I'd *love* to use Linux on the desktop, but it's 
stuff like this that discourages me.

Right-clicking a CD to get an eject menu is very well-established across all 
UIs. It's better established in Windows, in fact (since c 95), than it is in 
Macs, which used to be criticised because one dragged the CD "to the trash" 
(actually, the Trash icon changes to an eject icon as soon as you start to drag 
a CD in MacOS). I would be *extremely* surprised to hear that KDE didn't have a 
right-click eject menu option when I last used it seriously a decade ago. None 
of this need prevent the drive's physical eject button working - it should be 
possible for the o/s to be aware of that (as it is in Windows, for instance).

I'd be the first to admit that Macs have flaws, but this isn't one (or two) of 
them.

> It gets worse.  If you double click on "Audio Disc", it opens a window
> with the "files" uselessly displayed.  

I'll bet it doesn't display the actual files. Audio CDs don't have files, they 
have a single spiral of wav-like audio data. AIUI Linux desktops *present* 
audio CDs so that they *appear* as audio files, so that you can more 
conveniently drag and drop them to your MP3 music collection. Typically there 
is a preference which allows you to choose between copying them as MP3, AAC, 
FLAC &c - the audio data will be transcoded to the selected format only after 
you drag & drop the icons in another folder. 

Stroller.




[1] Alan McKinnon, 28 May 2011 9:06:34 am GMT+01:00


Re: [gentoo-user] How do I eject an audio CD inside Gnome?

2011-05-30 Thread Stroller

On 30/5/2011, at 11:33am, Alan McKinnon wrote:
>> 
>> You're dashed right.  I now understand what's happening:  When a CD is
>> inserted and Gnome detects it as an audio CD, the CD drive is locked.  At
>> the same time, a stupid icon "Audio Disc" appears on the screen.
> 
> I don't understand why they lock it. If you can physically press the eject 
> button the drive should open because you can just as easily put a paperclip 
> in 
> the little hole and force it open.
> 
> A case can be made for locking the software controls - with software, open 
> the 
> drive using the matching command to what loads it. But not physical controls

The button *isn't* fully a physical control, though. It reports to the o/s 
"I've been pressed" and the o/s should open the drive, as long as (for 
instance) you're not in the middle of burning a CD (which would ruin the CD; 
clearly pressing the button at such a time would be accidental; the user would 
have to cancel through the on-screen burning dialogue which would normally ask 
"are you really sure?")

Ejecting the disk with the paper clip is liable to scratch the CD, if the disk 
is being read. That's why the button isn't as fully physical as the paper clip 
method, that's why the paper clip method should be reserved for "emergencies" 
and that's why the o/s may choose to "lock" the eject button. 

Stroller.


Re: [gentoo-user] How do I eject an audio CD inside Gnome?

2011-05-30 Thread Stroller

On 31/5/2011, at 12:26am, Stroller wrote:
> On 30/5/2011, at 11:10am, Alan Mackenzie wrote:
> 
>> It gets worse.  If you double click on "Audio Disc", it opens a window
>> with the "files" uselessly displayed.  
> 
> I'll bet it doesn't display the actual files. Audio CDs don't have files, 
> they have a single spiral of wav-like audio data. AIUI Linux desktops 
> *present* audio CDs so that they *appear* as audio files, so that you can 
> more conveniently drag and drop them to your MP3 music collection. Typically 
> there is a preference which allows you to choose between copying them as MP3, 
> AAC, FLAC &c - the audio data will be transcoded to the selected format only 
> after you drag & drop the icons in another folder. 

I meant to say:

Most people don't find this "icon view" useless, as it allows one to select and 
play (or copy) a single track at a time. It is a useful "representation" of the 
songs on the CD. Most people find it *more useful* to be able to drag and drop 
the tracks to their MP3s folder, because they don't like having to physically 
find a CD, looking through hundreds of disks, and insert it into the drive. Far 
easier to drag and drop once, then just search for "fiona apple" in Gnome's 
file viewer or in their music player.

TL;DR: you're sounding dangerously like a grumpy old man. In this latter case: 
it's not necessarily "bad" just because it's unfamiliar to you.

Stroller.




[gentoo-user] Anyone running a gentoo guest on virtualbox?

2011-05-30 Thread walt
In preparation for the upcoming "upgrade" to gnome3, I've installed
the latest gentoo snapshot to a new virtualbox machine.  (So I can
trash my virtual gentoo machine instead of my real gentoo machine :)

The virtual install went perfectly AFAICT, except for building a new
customized kernel for the gentoo virtualbox machine.

Here's what I did to configure my new customized gentoo kernel:

I booted the gentoo install iso image in virtualbox and did lspci -k
and wrote down all the drivers it displayed.

I also booted my virtualbox ubuntu machine and did lspci -k and again
wrote down all the listed drivers.  (Only one extra driver showed up
in ubuntu and I included it in my list of drivers to-be-installed.)

I configured my new gentoo custom kernel to use all of the drivers I'd
gathered from the steps above, and compiled and installed it without
any problems.

However, when I reboot the virtual gentoo guest machine with my new
customized kernel, the boot hangs forever after discovering devices
and mounting the root partition.ro.

Obviously I've configured my custom kernel incorrectly, but how?

If any of you have virtualbox guest gentoo machines running with a
custom kernel, would you please post your guest .config file for my
edification?

Many thanks!




Re: [gentoo-user] setting locale

2011-05-30 Thread Allan Gottlieb
On Mon, May 30 2011, David W. Noon wrote:

> On Mon, 30 May 2011 04:20:01 +0200, Nils Larsson wrote about Re:
> [gentoo-user] setting locale:
>
>>måndagen den 30 maj 2011 03:26:49 skrev  Allan Gottlieb:
>>> What must I do to get "en_US_utf8" ?
>>
>>echo "LANG=en_US_utf8" > /etc/env.d/02locale
>>and
>>env-update
>>should work.
>
> The correct locale string is "en_US.UTF-8".

Thank you this fixed the problem.
allan



Re: [gentoo-user] Anyone running a gentoo guest on virtualbox?

2011-05-30 Thread Pandu Poluan
Are you using a recent stage3 tarball? If so, I suspect your booting
problem has got something to do with this bug:

http://bugs.gentoo.org/show_bug.cgi?id=368597

Rgds,


On 2011-05-31, walt  wrote:
> In preparation for the upcoming "upgrade" to gnome3, I've installed
> the latest gentoo snapshot to a new virtualbox machine.  (So I can
> trash my virtual gentoo machine instead of my real gentoo machine :)
>
> The virtual install went perfectly AFAICT, except for building a new
> customized kernel for the gentoo virtualbox machine.
>
> Here's what I did to configure my new customized gentoo kernel:
>
> I booted the gentoo install iso image in virtualbox and did lspci -k
> and wrote down all the drivers it displayed.
>
> I also booted my virtualbox ubuntu machine and did lspci -k and again
> wrote down all the listed drivers.  (Only one extra driver showed up
> in ubuntu and I included it in my list of drivers to-be-installed.)
>
> I configured my new gentoo custom kernel to use all of the drivers I'd
> gathered from the steps above, and compiled and installed it without
> any problems.
>
> However, when I reboot the virtual gentoo guest machine with my new
> customized kernel, the boot hangs forever after discovering devices
> and mounting the root partition.ro.
>
> Obviously I've configured my custom kernel incorrectly, but how?
>
> If any of you have virtualbox guest gentoo machines running with a
> custom kernel, would you please post your guest .config file for my
> edification?
>
> Many thanks!
>
>
>


-- 
--
Pandu E Poluan - IT Optimizer
My website: http://pandu.poluan.info/



Re: [gentoo-user] Anyone running a gentoo guest on virtualbox?

2011-05-30 Thread Pandu Poluan
Meh, I clicked 'Send' too fast.

*My* suggested solution:

Generate an initramfs containing udev. The hands-down easiest way is
using genkernel's 'only create an initramfs' switch (sorry I forgot
what exactly).

This needs to be done exactly once throughout the life of your VM.

(To the herd of Gentoo graybeards, feel free to CMIIW)

Another alternative would be to mknod all required devices for
booting. But, as evidenced in the bug I've linked to earlier, you
might have to create more than 20 devs. Not a good use of time, if you
ask me. Except if you're one of the guys doing the bug exorcising :)

Oh, and please forgive my top-postings. Gmail's Java mobile client sucks.

Rgds,


On 2011-05-31, walt  wrote:
> In preparation for the upcoming "upgrade" to gnome3, I've installed
> the latest gentoo snapshot to a new virtualbox machine.  (So I can
> trash my virtual gentoo machine instead of my real gentoo machine :)
>
> The virtual install went perfectly AFAICT, except for building a new
> customized kernel for the gentoo virtualbox machine.
>
> Here's what I did to configure my new customized gentoo kernel:
>
> I booted the gentoo install iso image in virtualbox and did lspci -k
> and wrote down all the drivers it displayed.
>
> I also booted my virtualbox ubuntu machine and did lspci -k and again
> wrote down all the listed drivers.  (Only one extra driver showed up
> in ubuntu and I included it in my list of drivers to-be-installed.)
>
> I configured my new gentoo custom kernel to use all of the drivers I'd
> gathered from the steps above, and compiled and installed it without
> any problems.
>
> However, when I reboot the virtual gentoo guest machine with my new
> customized kernel, the boot hangs forever after discovering devices
> and mounting the root partition.ro.
>
> Obviously I've configured my custom kernel incorrectly, but how?
>
> If any of you have virtualbox guest gentoo machines running with a
> custom kernel, would you please post your guest .config file for my
> edification?
>
> Many thanks!
>
>
>


-- 
--
Pandu E Poluan - IT Optimizer
My website: http://pandu.poluan.info/



Re: [gentoo-user] setting locale

2011-05-30 Thread daid kahl
On 30 May 2011 20:58, Allan Gottlieb  wrote:
> On Mon, May 30 2011, David W. Noon wrote:
>
>> On Mon, 30 May 2011 04:20:01 +0200, Nils Larsson wrote about Re:
>> [gentoo-user] setting locale:
>>
>>>måndagen den 30 maj 2011 03:26:49 skrev  Allan Gottlieb:
 What must I do to get "en_US_utf8" ?
>>>
>>>echo "LANG=en_US_utf8" > /etc/env.d/02locale
>>>and
>>>env-update
>>>should work.
>>
>> The correct locale string is "en_US.UTF-8".
>
> Thank you this fixed the problem.
> allan
>

Indeed, my own notes are exactly the same as here.

As far as the other debates on how to most concisely express the idea,
my notes to myself read as the result rather than say "how to edit
config files".  Spill the contents to the screen and you need to see
that (or similar for different locale than US).

daid@flux ~ % cat /etc/env.d/02locale
LANG="en_US.UTF-8"

Is there any kind of project using even a simple GUI like zenity for
doing config file editing in Gentoo?  I could use some good way to
organize that stuff some days.

Cheers,
daid



Re: [gentoo-user] How do I eject an audio CD inside Gnome?

2011-05-30 Thread daid kahl
>> > I can't be of much more help to you, I don't use Gnome at all (see above)
>>
>> Can't say I blame you.  What's the choice, though?  I appreciate the
>> spare uncluttered desktop of Gnome.  Last time I tried KDE (about 7 years
>> ago) it was anything but uncluttered.  I tried XFCE briefly, but couldn't
>> get it to run stably.  Besides, it was missing an application to switch
>> between keyboard layouts, something I absolutely need.
>
> I hear good things about XFCE these days. If you haven't tried it lately, it
> might be worth a new look. And you can always write a small script to change
> your keyboard layout if there's no gui app. Not as convenient as a systray
> icon, but probably a small price to pay if everything else suits your needs
>

My basic response was in fact that I now use XFCE, and I basically do
not have any auto-mounting software even installed.  I don't mind
mounting and umounting manually for some stuff, and then using udev
rules and scripts for like my regular USB items (harddisks, flash
memory...).

So yeah, you go mount the CD yourself, but then the eject button will
work if you just set up a script in the very worst case, as long as
all permissions are satisfied (group, whatever).  Usually an eject
call on the device will work fine for the hotkey.  Just use some
keyboard tweaking program to fix it up.  And for me that's just fine.
Other people may prefer it differently.  But auto-mounting will do
annoying stuff on my laptop every time it goes to sleep and wakes up
and...it's just annoying to me personally.

If you don't have much experience setting up you own custom
'automonting' tools, I'll give just a couple examples.  I think with
the comments it's clear enough.

daid@titan ~ % cat /etc/udev/rules.d/10-local.rules
# external USB, Seagate FreeAgent GO aka cyclops
 SUBSYSTEMS=="usb", DRIVERS=="usb", ATTRS{serial}=="
5LZ2XQJ5", SYMLINK+="cyclops" ACTION=="add",
RUN+="/etc/udev/scripts/mount_cyclops.sh"


daid@titan ~ % more /etc/udev/scripts/mount_cyclops.sh
#!/bin/bash
#mount Seagate FreeAgent Go with serial 5LZ2XQJ5 to /mnt/cyclops on ACTION='add'
mount -t ext3 /dev/cyclops /mnt/cyclops
chown root:users /mnt/cyclops
chmod 775 /mnt/cyclops

daid@titan ~ % ls -l /etc/udev/scripts/mount_cyclops.sh
-rwxr--r-- 1 root root 186 Apr 27 04:21 /etc/udev/scripts/mount_cyclops.sh
daid@titan ~ % ls -l /etc/udev/rules.d/10-local.rules
-rw-r--r-- 1 root root 1409 May 25 13:43 /etc/udev/rules.d/10-local.rules

The udev rule will do a tricky thing making the /dev/cyclops symlink
so it doesn't matter what *order* the device was connected.  Rather
than 'naming' it like in some other operating systems, you just give
it a static mount point.  When you're done, just manually umount the
mount point.

Cheers,
daid



Re: [gentoo-user] How do I eject an audio CD inside Gnome?

2011-05-30 Thread daid kahl
> daid@titan ~ % cat /etc/udev/rules.d/10-local.rules
> # external USB, Seagate FreeAgent GO aka cyclops
>  SUBSYSTEMS=="usb", DRIVERS=="usb", ATTRS{serial}=="
> 5LZ2XQJ5", SYMLINK+="cyclops" ACTION=="add",
> RUN+="/etc/udev/scripts/mount_cyclops.sh"

Sorry, but make sure that the one entry (begins with SUBSYSTEMS) is on
*only one line* since that is a general requirement for a udev rule
format (but some email programs may auto-indent or mis-represent the
single line, but this is a necessary detail, just like makefiles don't
paste well from html either due to whitespace issues).

~daid.



Re: [gentoo-user] Cleaning redundant configuration files

2011-05-30 Thread Dale

David W Noon wrote:


You have just touched on an annoyance of unmerge, in that it does not
clean up configuration files that have been modified.  It removes files
that are still in the same state as when the package was emerged, but
not those modified by the user.  I don't see how user changes make the
file more important than would be in its vanilla state.

Perhaps an option to remove (by an unmerge, not etc-update or the
like) these genuinely orphaned files could be set in /etc/make.conf.
   


There are times that if portage removed a config file, I would not be 
happy.  Sometimes I unmerge a package then remerge but want to keep the 
config files.


Would I like there to be the option, yep, I sure would.  There are also 
times when I want to get rid of a package and all its config files.  The 
option would be nice but it should be a option.


Dale

:-)  :-)



Re: [gentoo-user] How do I eject an audio CD inside Gnome?

2011-05-30 Thread Indi
On Mon, May 30, 2011 at 12:10:02AM +0200, Alan McKinnon wrote:
> Apparently, though unproven, at 23:37 on Sunday 29 May 2011, Alan Mackenzie 
> did opine thusly:
> 
> > Hi, Neil.
> > 
> > On Sun, May 29, 2011 at 10:13:08PM +0100, Neil Bothwick wrote:
> > > On Sun, 29 May 2011 22:58:39 +0200, Alan McKinnon wrote:
> > > > With a CD in the drive and gnome running, please post the output of
> > > > 
> > > > mount
> > > > cat /etc/mtab
> > > 
> > > And the output of eject -v
> > 
> > acm@acm ~ $ eject -v
> > eject: using default device `cdrom'
> > eject: device name is `cdrom'
> > eject: expanded name is `/dev/cdrom'
> > eject: `/dev/cdrom' is a link to `/dev/sr0'
> > eject: `/dev/sr0' is not mounted
> > eject: `/dev/sr0' is not a mount point
> > eject: `/dev/sr0' is not a multipartition device
> > eject: trying to eject `/dev/sr0' using CD-ROM eject command
> > eject: CD-ROM eject command failed
> > eject: trying to eject `/dev/sr0' using SCSI commands
> > eject: SCSI eject succeeded
> > 
> > (This was run as a normal user, not root.)
> > 
> > Hey, eject -v works!  :-)  It's still not quite ideal, though.
> 
> 
> My money says you've been hit by the Gnome Borg - where you are only 
> permitted 
> to do things the way the gnome devs have deemed to be appropriate and 
> TheOneTrueWay(tm). After all, you are just a user, what do you know? The devs 
> know better, you must trust them!
> 
> I can't be of much more help to you, I don't use Gnome at all (see above)
> 

The only real reason gnome exists is so kde4 users can have someone 
to sneer at and look down upon, while they frantcally attempt to 
make kde4 actually do something other than hog RAM and feed their OCD.
:)

-- 
caveat utilitor
♫ ❤ ♫ ❤ ♫ ❤ ♫ ❤ 



Re: [gentoo-user] [OT - More Router Advice] Cheap Router with decent/reliable VLAN support

2011-05-30 Thread Volker Armin Hemmann
On Monday 30 May 2011 17:06:01 Tanstaafl wrote:
> On 2011-05-29 8:28 AM, Volker Armin Hemmann wrote:
> > so - why don't you get a router that ONLY does the routing and a nice
> > good switch where you can tag the vlans?
> 
> Money/knowledge level? I don't know how to do it, so I was looking for
> something that will work that I can do myself, that is affordable.
> 
> > Because if someone takes over your router it does not matter that you
> > have different vlans, they can access everything.
> 
> And the same would apply if they got access to the switch too, right? ;)
> 

since the switch will be in its own managment vlan, it won't be possible. 

> > But if the router is on a different vlan than the internal network,
> > they have to take over the switch - which will be in a vlan
> > inaccessible from any active device - to get into the other vlans.
> 
> If this is something that can be done with not a lot of money/expertise,
> can you point me to some How-To that walk me through it?

the manuals of switches with vlan tagging are pretty easy. On alcatels its 
boils down to klicking around in a web interface ;)



Re: [gentoo-user] Cleaning redundant configuration files

2011-05-30 Thread Graham Murray
Dale  writes:

> There are times that if portage removed a config file, I would not be
> happy.  Sometimes I unmerge a package then remerge but want to keep
> the config files.
>
> Would I like there to be the option, yep, I sure would.  There are
> also times when I want to get rid of a package and all its config
> files.  The option would be nice but it should be a option.

I think that the ideal would be if portage could set some kind of
'marker' so that etc-update, dispatch-conf etc could prompt the user as
to whether to keep or remove the orphaned file.



Re: [gentoo-user] Cleaning redundant configuration files

2011-05-30 Thread Dale

Graham Murray wrote:

Dale  writes:

   

There are times that if portage removed a config file, I would not be
happy.  Sometimes I unmerge a package then remerge but want to keep
the config files.

Would I like there to be the option, yep, I sure would.  There are
also times when I want to get rid of a package and all its config
files.  The option would be nice but it should be a option.
 

I think that the ideal would be if portage could set some kind of
'marker' so that etc-update, dispatch-conf etc could prompt the user as
to whether to keep or remove the orphaned file.

   


That would work and may even be better.  Either way, keeping unneeded 
config files out would be good.  We got tools to clean out everything 
else so may as well have that too.  Now getting someone to come up with 
one, that could be interesting for sure.


Since portage has so many options already, I wonder what letter it would 
get?  Are there even any good ones left.  Maybe it would be a number 
like oneshot.  o_O


Dale

:-)  :-)



Re: [gentoo-user] Cleaning redundant configuration files

2011-05-30 Thread Alan McKinnon
On Tue, May 31, 2011 at 12:08 AM, David W Noon  wrote:
> On Mon, 30 May 2011 21:20:01 +0200, Neil Bothwick wrote about Re:
> [gentoo-user] Cleaning redundant configuration files:
>
>>On Mon, 30 May 2011 19:05:10 +0100, David W Noon wrote:
> [snip]
>>> The only algorithmic approach with which I would feel comfortable
>>> would be if the file were checked against the previous contents of a
>>> package and found present, but has disappeared from the new contents
>>> of that same package.  Even then, I would want manual confirmation.
>>
>>That omits the most common cause of orphaned files, that the package
>>owning it has been unmerged.
>
> You have just touched on an annoyance of unmerge, in that it does not
> clean up configuration files that have been modified.  It removes files
> that are still in the same state as when the package was emerged, but
> not those modified by the user.  I don't see how user changes make the
> file more important than would be in its vanilla state.
>
> Perhaps an option to remove (by an unmerge, not etc-update or the
> like) these genuinely orphaned files could be set in /etc/make.conf.

The logic appears to be that an unmodified file will be re-instated
as-is should the package be re-merged, so nothing changes. A modified
config file is more problematic - if the package is re-merged, which
version should be used? The old one or the new vanilla one? Presumably
the user modified the file last time round for a reason and that
reason might still be valid.

Only one sensible choice remains - present both files to the human
user and ask them to decide.

If memory serves, this is in some doc somewhere, I know I read it long
ago but don't remember where.


-- 
Alan McKinnon
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Anyone running a gentoo guest on virtualbox?

2011-05-30 Thread Alan McKinnon
On Tue, May 31, 2011 at 3:14 AM, Pandu Poluan  wrote:
> Meh, I clicked 'Send' too fast.
>
> *My* suggested solution:
>
> Generate an initramfs containing udev. The hands-down easiest way is
> using genkernel's 'only create an initramfs' switch (sorry I forgot
> what exactly).

good god no, please, anything but genkernel.

That thing is an attempt to emulate binary distros which require an
initramfs to work properly (for any sane definition of "work") as the
person building the installer has no idea what hardware the user will
have. In Gentoo the user knows exactly what they have so there's no
need for a gigantic hardware-detecting workaround at boot time.

> This needs to be done exactly once throughout the life of your VM.
>
> (To the herd of Gentoo graybeards, feel free to CMIIW)

Or wait a few days for vapier's (posting under his other name of
spanky) sane advice to be implemented. His proposal is the sole voice
of reason in that bug thread


>
> Another alternative would be to mknod all required devices for
> booting. But, as evidenced in the bug I've linked to earlier, you
> might have to create more than 20 devs. Not a good use of time, if you
> ask me. Except if you're one of the guys doing the bug exorcising :)
>
> Oh, and please forgive my top-postings. Gmail's Java mobile client sucks.
>
> Rgds,
>
>
> On 2011-05-31, walt  wrote:
>> In preparation for the upcoming "upgrade" to gnome3, I've installed
>> the latest gentoo snapshot to a new virtualbox machine.  (So I can
>> trash my virtual gentoo machine instead of my real gentoo machine :)
>>
>> The virtual install went perfectly AFAICT, except for building a new
>> customized kernel for the gentoo virtualbox machine.
>>
>> Here's what I did to configure my new customized gentoo kernel:
>>
>> I booted the gentoo install iso image in virtualbox and did lspci -k
>> and wrote down all the drivers it displayed.
>>
>> I also booted my virtualbox ubuntu machine and did lspci -k and again
>> wrote down all the listed drivers.  (Only one extra driver showed up
>> in ubuntu and I included it in my list of drivers to-be-installed.)
>>
>> I configured my new gentoo custom kernel to use all of the drivers I'd
>> gathered from the steps above, and compiled and installed it without
>> any problems.
>>
>> However, when I reboot the virtual gentoo guest machine with my new
>> customized kernel, the boot hangs forever after discovering devices
>> and mounting the root partition.ro.
>>
>> Obviously I've configured my custom kernel incorrectly, but how?
>>
>> If any of you have virtualbox guest gentoo machines running with a
>> custom kernel, would you please post your guest .config file for my
>> edification?
>>
>> Many thanks!
>>
>>
>>
>
>
> --
> --
> Pandu E Poluan - IT Optimizer
> My website: http://pandu.poluan.info/
>
>



-- 
Alan McKinnon
alan dot mckinnon at gmail dot com