Re: [gentoo-user] Gentoo on a Dell XPS 13 Ultrabook

2012-03-02 Thread Alan McKinnon
On Thu, 1 Mar 2012 18:12:11 -0800
Grant  wrote:

> I just received the new Dell XPS 13 Ultrabook and I'm trying to
> install Gentoo but I can't get install-amd64-minimal-20120223.iso to
> boot via a USB key.  I installed it to two different USB keys via
> unetbootin but I get this right after it asks for the keymap:
> 
> Looking for the cdrom
> Attempting to mount media:- /dev/sda1
> Attempting to mount media:- /dev/sda2
> Attempting to mount media:- /dev/sda3
> Attempting to mount media - /dev/sda4
> Media not found
> No bootable medium found. Waiting for new devices...
> Could not find CD to boot, something else needed!
> Determining root device...
> Could not find the root block device in .
> 
> It must be reading the USB key fine or it never would have gotten that
> far.  Maybe it has no drivers for the disk controller, but then why
> does it reference the cdrom?  I tried the nosata and ide=nodma options
> to no avail.

Use some other distro on the USB device to get you a chroot.

Check BIOS carefully. Some of those options can dick with booting
immensely

-- 
Alan McKinnnon
alan.mckin...@gmail.com




[gentoo-user] "net-firewall/xtables-addons" issues

2012-03-02 Thread Pandu Poluan
Okay, after compiling hardened-sources-3.2.2-r1, I follow through with
remerging net-firewall/xtables-addons-1.39 ...

... and it failed with an error, about unknown symbol or something.

A Google search led me to this solution:

http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/8ef017a863038724?pli=1

Although the attached patch in that thread *seems* to be meant for
xtables-addons-1.40 (not in portage yet), I tried applying the patches
to xtables-addons-1.39 ...

... and it worked!

However, a quick glance at upstream [1] indicates that upstream is
already at version 1.41!!

So...

1. Should I file a bugreport for xtables-addons-1.39?

2. Or should I request for xtables-addons-1.41 in the portage tree?


[1] http://sourceforge.net/projects/xtables-addons/files/Xtables-addons/


Rgds,
-- 
FdS Pandu E Poluan
~ IT Optimizer ~

 • LOPSA Member #15248
 • Blog : http://pepoluan.tumblr.com
 • Linked-In : http://id.linkedin.com/in/pepoluan



[gentoo-user] Re: "net-firewall/xtables-addons" issues

2012-03-02 Thread Pandu Poluan
Silly me...

On Fri, Mar 2, 2012 at 17:23, Pandu Poluan  wrote:
>
> 1. Should I file a bugreport for xtables-addons-1.39?
>
> 2. Or should I request for xtables-addons-1.41 in the portage tree?
>
>
> [1] http://sourceforge.net/projects/xtables-addons/files/Xtables-addons/
>
>

Upstream's 1.41 already incorporated the necessary fixes for
xtables-addons to be compilable on kernel 3.2/3.3:

http://xtables-addons.git.sourceforge.net/git/gitweb.cgi?p=xtables-addons/xtables-addons;a=commitdiff;h=076610e3af86b4b3f87f9c7811d36e38ec8a39cd

So there's just one question: Why haven't the package maintainer pull
xtables-addons-1.41 into the portage tree?

Rgds
-- 
FdS Pandu E Poluan
~ IT Optimizer ~

 • LOPSA Member #15248
 • Blog : http://pepoluan.tumblr.com
 • Linked-In : http://id.linkedin.com/in/pepoluan



[gentoo-user] Re: "net-firewall/xtables-addons" issues

2012-03-02 Thread Pandu Poluan
On Fri, Mar 2, 2012 at 17:38, Pandu Poluan  wrote:
> Silly me...
>
> On Fri, Mar 2, 2012 at 17:23, Pandu Poluan  wrote:
>>
>> 1. Should I file a bugreport for xtables-addons-1.39?
>>
>> 2. Or should I request for xtables-addons-1.41 in the portage tree?
>>
>>
>> [1] http://sourceforge.net/projects/xtables-addons/files/Xtables-addons/
>>
>>
>
> Upstream's 1.41 already incorporated the necessary fixes for
> xtables-addons to be compilable on kernel 3.2/3.3:
>
> http://xtables-addons.git.sourceforge.net/git/gitweb.cgi?p=xtables-addons/xtables-addons;a=commitdiff;h=076610e3af86b4b3f87f9c7811d36e38ec8a39cd
>
> So there's just one question: Why haven't the package maintainer pull
> xtables-addons-1.41 into the portage tree?
>

Bugs #397749, #403749, and #405197, apparently.


Rgds,
-- 
FdS Pandu E Poluan
~ IT Optimizer ~

 • LOPSA Member #15248
 • Blog : http://pepoluan.tumblr.com
 • Linked-In : http://id.linkedin.com/in/pepoluan



Re: [gentoo-user] Re: Autoloading modules..,

2012-03-02 Thread Dale
Nikos Chantziaras wrote:
> On 02/03/12 06:36, meino.cra...@gmx.de wrote:
>> I heard -- not only in this list -- that loading modules, that
>> supports hardware, is better than integration the according
>> modules into the kernel.
> 
> Nope.  It's exactly the same.  The only instance where it's "better", is
> when you need to unload it again later.
> 
> 
> 


I been using Gentoo for a long time.  I have never had modules except
for my nvidia driver.  I see no reason for having modules unless for
some reason some software requires something to be a module.  I did see
that requirement once but it was a rare case and quite some time ago.

I'm with others, just build it in then you don't have to worry about
loading the module at all.

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"



[gentoo-user] Python update question

2012-03-02 Thread Dale
Howdy,

I'm just wanting to make certain I don't break my rig.  Info first:

root@fireball / # eselect python list
Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.1
  [3]   python3.2
root@fireball / #

I ran --depclean and it wants to remove python 3.1.  I ran python
updater and recompiled the needed packages.  Since python 2.7 is the
default python, is it safe to remove python 3.1?  As we all know, python
and portage is really good friends and portage gets real upset when it
looses its friend.  I'd much rather ask this question than have to start
a thread on how to repair python with a dead portage.

So, safe to remove?  I'm thinking it is but just want the comfort of
taking someone else with me it is breaks.  lol

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"



Re: [gentoo-user] Python update question

2012-03-02 Thread Dale
Dale wrote:
> Howdy,
> 
> I'm just wanting to make certain I don't break my rig.  Info first:
> 
> root@fireball / # eselect python list
> Available Python interpreters:
>   [1]   python2.7 *
>   [2]   python3.1
>   [3]   python3.2
> root@fireball / #
> 
> I ran --depclean and it wants to remove python 3.1.  I ran python
> updater and recompiled the needed packages.  Since python 2.7 is the
> default python, is it safe to remove python 3.1?  As we all know, python
> and portage is really good friends and portage gets real upset when it
> looses its friend.  I'd much rather ask this question than have to start
> a thread on how to repair python with a dead portage.
> 
> So, safe to remove?  I'm thinking it is but just want the comfort of
> taking someone else with me it is breaks.  lol
> 
> Dale
> 
> :-)  :-)
> 


I really need to not post when I take my meds.  lol  The last line
should read "* someone else with me if it breaks."

Meds.  They help some things but hurt other things.  o_O

Thanks.

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"



Re: [gentoo-user] Python update question

2012-03-02 Thread Alex Schuster
Dale writes:

> root@fireball / # eselect python list
> Available Python interpreters:
>   [1]   python2.7 *
>   [2]   python3.1
>   [3]   python3.2
> root@fireball / #
> 
> I ran --depclean and it wants to remove python 3.1.  I ran python
> updater and recompiled the needed packages.  Since python 2.7 is the
> default python, is it safe to remove python 3.1?  As we all know, python
> and portage is really good friends and portage gets real upset when it
> looses its friend.  I'd much rather ask this question than have to start
> a thread on how to repair python with a dead portage.
> 
> So, safe to remove?  I'm thinking it is but just want the comfort of
> taking someone else with me it is breaks.  lol

It's safe, your portage uses 2.7.

Wonko



Re: [gentoo-user] MySQL > MariaDB - is it time?

2012-03-02 Thread Alex Schuster
Tanstaafl writes:

> Anyone here ever done the switch want to share their experience?

I use MySQL for an ld phpBB board and for Amarok, and do not now much
about it. I never explicitely installed MySQL, I only have the mysql USE
flag set for things like python or PHP. Somehow, dev-db/mysql was never
installed, but I have dev-db/mariadb installed instead. Seems I already
made the switch, without knowing about it.

Wonko



Re: [gentoo-user] Python update question

2012-03-02 Thread Dale
Alex Schuster wrote:
> Dale writes:
> 
>> root@fireball / # eselect python list
>> Available Python interpreters:
>>   [1]   python2.7 *
>>   [2]   python3.1
>>   [3]   python3.2
>> root@fireball / #
>>
>> I ran --depclean and it wants to remove python 3.1.  I ran python
>> updater and recompiled the needed packages.  Since python 2.7 is the
>> default python, is it safe to remove python 3.1?  As we all know, python
>> and portage is really good friends and portage gets real upset when it
>> looses its friend.  I'd much rather ask this question than have to start
>> a thread on how to repair python with a dead portage.
>>
>> So, safe to remove?  I'm thinking it is but just want the comfort of
>> taking someone else with me it is breaks.  lol
> 
> It's safe, your portage uses 2.7.
> 
>   Wonko
> 
> 


Thanks for the confirmation.  I was thinking it was but wanted to double
check.

Thanks again.

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"



Re: [gentoo-user] Python update question

2012-03-02 Thread Mark Knecht
On Fri, Mar 2, 2012 at 3:36 AM, Dale  wrote:
> Howdy,
>
> I'm just wanting to make certain I don't break my rig.  Info first:
>
> root@fireball / # eselect python list
> Available Python interpreters:
>  [1]   python2.7 *
>  [2]   python3.1
>  [3]   python3.2
> root@fireball / #
>
> I ran --depclean and it wants to remove python 3.1.  I ran python
> updater and recompiled the needed packages.  Since python 2.7 is the
> default python, is it safe to remove python 3.1?  As we all know, python
> and portage is really good friends and portage gets real upset when it
> looses its friend.  I'd much rather ask this question than have to start
> a thread on how to repair python with a dead portage.
>
> So, safe to remove?  I'm thinking it is but just want the comfort of
> taking someone else with me it is breaks.  lol
>
> Dale
>

You should be safe but please do an

eselect python list --python3

and make sure you're set to 3.2 before removing 3.1.

HTH,
Mark



[gentoo-user] Anyone used NILFS2?

2012-03-02 Thread Paul Hartman
I'm very interested in NILFS2 and considering using it as rootfs. I
read some good reviews and seems to perform okay in benchmarks. The
automatic checkpoints/snapshots sounds like it could be useful. (I'm
thinking especially to see prior versions of files in /etc for
example.)

Have any of you used NILFS2 and have any failures or success to report?



[gentoo-user] Filter grep output of 'ps aux'

2012-03-02 Thread Tanstaafl
Does anyone know if there is a way to filter the output of ps aux to 
show only lines that have a value in the %CPU column higher than x - ie, 
1.0, or 2.0, or something like that?


Thanks



Re: [gentoo-user] Filter grep output of 'ps aux'

2012-03-02 Thread Pandu Poluan
On Mar 3, 2012 12:49 AM, "Tanstaafl"  wrote:
>
> Does anyone know if there is a way to filter the output of ps aux to show
only lines that have a value in the %CPU column higher than x - ie, 1.0, or
2.0, or something like that?
>
> Thanks
>

For that, you need awk instead of grep.

Rgds,


Re: [gentoo-user] Filter grep output of 'ps aux'

2012-03-02 Thread Paul Hartman
On Fri, Mar 2, 2012 at 11:46 AM, Tanstaafl  wrote:
> Does anyone know if there is a way to filter the output of ps aux to show
> only lines that have a value in the %CPU column higher than x - ie, 1.0, or
> 2.0, or something like that?

ps aux | gawk '{ if ( $3 > 1.0 ) { print } }'



Re: [gentoo-user] Filter grep output of 'ps aux'

2012-03-02 Thread Tanstaafl

On 2012-03-02 12:56 PM, Pandu Poluan  wrote:


On Mar 3, 2012 12:49 AM, "Tanstaafl" mailto:tansta...@libertytrek.org>> wrote:
 >
 > Does anyone know if there is a way to filter the output of ps aux to
show only lines that have a value in the %CPU column higher than x - ie,
1.0, or 2.0, or something like that?
 >
 > Thanks
 >

For that, you need awk instead of grep.


Never used awk... any chance you (or someone) could provide an example 
of how to do this?


Also - would there be a way to get a running output (kind of like 
tailing a log)?




Re: [gentoo-user] Python update question

2012-03-02 Thread Tanstaafl

On 2012-03-02 9:28 AM, Mark Knecht  wrote:

eselect python list --python3

and make sure you're set to 3.2 before removing 3.1.


Hmmm... mine shows it is set to 3.1...

 # eselect python list --python3
Available Python 3 interpreters:
  [1]   python3.1 *
  [2]   python3.2
myhost : Fri Mar 02, 13:07:51 : ~
 #

So, that would be

eselect python set --python3 2

to set it to 3.2 leaving 2.7 as the main active python, right?

Just making sure because I know that mucking up python is *not* a 
problem I want to have to deal with...




Re: [gentoo-user] Filter grep output of 'ps aux'

2012-03-02 Thread Tanstaafl

On 2012-03-02 1:02 PM, Paul Hartman  wrote:

On Fri, Mar 2, 2012 at 11:46 AM, Tanstaafl  wrote:

>  Does anyone know if there is a way to filter the output of ps aux to show
>  only lines that have a value in the %CPU column higher than x - ie, 1.0, or
>  2.0, or something like that?

ps aux | gawk '{ if ( $3>  1.0 ) { print } }'


Thanks Paul! Thats a huge help...

Now if I could just get a constantly updated output of this (like 
tailing a live log), I'd be in heaven... ;)


But if this is the best I can do, it is 1000 times better...



Re: [gentoo-user] Filter grep output of 'ps aux'

2012-03-02 Thread Jason
On Fri, Mar 02, 2012 at 01:03:55PM -0500, Tanstaafl wrote:
> Also - would there be a way to get a running output (kind of like
> tailing a log)?

watch -n1 "ps aux | gawk '{ if ( \$3 > 1.0 ) { print } }'"



Re: [gentoo-user] Python update question

2012-03-02 Thread Dale
Mark Knecht wrote:
> On Fri, Mar 2, 2012 at 3:36 AM, Dale  wrote:
>> Howdy,
>>
>> I'm just wanting to make certain I don't break my rig.  Info first:
>>
>> root@fireball / # eselect python list
>> Available Python interpreters:
>>  [1]   python2.7 *
>>  [2]   python3.1
>>  [3]   python3.2
>> root@fireball / #
>>
>> I ran --depclean and it wants to remove python 3.1.  I ran python
>> updater and recompiled the needed packages.  Since python 2.7 is the
>> default python, is it safe to remove python 3.1?  As we all know, python
>> and portage is really good friends and portage gets real upset when it
>> looses its friend.  I'd much rather ask this question than have to start
>> a thread on how to repair python with a dead portage.
>>
>> So, safe to remove?  I'm thinking it is but just want the comfort of
>> taking someone else with me it is breaks.  lol
>>
>> Dale
>>
> 
> You should be safe but please do an
> 
> eselect python list --python3
> 
> and make sure you're set to 3.2 before removing 3.1.
> 
> HTH,
> Mark
> 
> 


Last I heard we are not supposed to set python to 3 anything.  Has that
changed?

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"



Re: [gentoo-user] Filter grep output of 'ps aux'

2012-03-02 Thread Pandu Poluan
On Mar 3, 2012 1:07 AM, "Paul Hartman" 
wrote:
>
> On Fri, Mar 2, 2012 at 11:46 AM, Tanstaafl 
wrote:
> > Does anyone know if there is a way to filter the output of ps aux to
show
> > only lines that have a value in the %CPU column higher than x - ie,
1.0, or
> > 2.0, or something like that?
>
> ps aux | gawk '{ if ( $3 > 1.0 ) { print } }'
>

Why would you use "if"? You can easily use this :

ps aux | awk '$3 > 1.0 {print}'

Rgds,


Re: [gentoo-user] Filter grep output of 'ps aux'

2012-03-02 Thread Alan McKinnon
On Fri, 02 Mar 2012 13:12:04 -0500
Tanstaafl  wrote:

> On 2012-03-02 1:02 PM, Paul Hartman 
> wrote:
> > On Fri, Mar 2, 2012 at 11:46 AM,
> > Tanstaafl  wrote:
> >> >  Does anyone know if there is a way to filter the output of ps
> >> > aux to show only lines that have a value in the %CPU column
> >> > higher than x - ie, 1.0, or 2.0, or something like that?
> > ps aux | gawk '{ if ( $3>  1.0 ) { print } }'
> 
> Thanks Paul! Thats a huge help...
> 
> Now if I could just get a constantly updated output of this (like 
> tailing a live log), I'd be in heaven... ;)
> 
> But if this is the best I can do, it is 1000 times better...
> 

try "watch"

-- 
Alan McKinnnon
alan.mckin...@gmail.com




Re: [gentoo-user] Filter grep output of 'ps aux'

2012-03-02 Thread Tanstaafl

On 2012-03-02 1:12 PM, Jason  wrote:

On Fri, Mar 02, 2012 at 01:03:55PM -0500, Tanstaafl wrote:

Also - would there be a way to get a running output (kind of like
tailing a log)?


watch -n1 "ps aux | gawk '{ if ( \$3>  1.0 ) { print } }'"


Perfect!!!

Thanks so much guys!



Re: [gentoo-user] Python update question

2012-03-02 Thread Mark Knecht
On Fri, Mar 2, 2012 at 10:20 AM, Dale  wrote:
> Mark Knecht wrote:
>> On Fri, Mar 2, 2012 at 3:36 AM, Dale  wrote:
>>> Howdy,
>>>
>>> I'm just wanting to make certain I don't break my rig.  Info first:
>>>
>>> root@fireball / # eselect python list
>>> Available Python interpreters:
>>>  [1]   python2.7 *
>>>  [2]   python3.1
>>>  [3]   python3.2
>>> root@fireball / #
>>>
>>> I ran --depclean and it wants to remove python 3.1.  I ran python
>>> updater and recompiled the needed packages.  Since python 2.7 is the
>>> default python, is it safe to remove python 3.1?  As we all know, python
>>> and portage is really good friends and portage gets real upset when it
>>> looses its friend.  I'd much rather ask this question than have to start
>>> a thread on how to repair python with a dead portage.
>>>
>>> So, safe to remove?  I'm thinking it is but just want the comfort of
>>> taking someone else with me it is breaks.  lol
>>>
>>> Dale
>>>
>>
>> You should be safe but please do an
>>
>> eselect python list --python3
>>
>> and make sure you're set to 3.2 before removing 3.1.
>>
>> HTH,
>> Mark
>>
>>
>
>
> Last I heard we are not supposed to set python to 3 anything.  Has that
> changed?
>
> Dale
>

No, we're not supposed to set the *system* *default* to python3 yet.
Still, if you have multiple 3.x versions installed you would want to
set the python3 setting to the python version you want to default to
should some program absolutely require python3, so we've got 3 real
settings:

System default - still python-2.x
Python2 - same python-2.x version as the system default
Python3 - what ever version you want for programs requiring Python3

HTH,
Mark



Re: [gentoo-user] Python update question

2012-03-02 Thread Dale
Mark Knecht wrote:
> On Fri, Mar 2, 2012 at 10:20 AM, Dale  wrote:
>> Mark Knecht wrote:
>>> On Fri, Mar 2, 2012 at 3:36 AM, Dale  wrote:
 Howdy,

 I'm just wanting to make certain I don't break my rig.  Info first:

 root@fireball / # eselect python list
 Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.1
  [3]   python3.2
 root@fireball / #

 I ran --depclean and it wants to remove python 3.1.  I ran python
 updater and recompiled the needed packages.  Since python 2.7 is the
 default python, is it safe to remove python 3.1?  As we all know, python
 and portage is really good friends and portage gets real upset when it
 looses its friend.  I'd much rather ask this question than have to start
 a thread on how to repair python with a dead portage.

 So, safe to remove?  I'm thinking it is but just want the comfort of
 taking someone else with me it is breaks.  lol

 Dale

>>>
>>> You should be safe but please do an
>>>
>>> eselect python list --python3
>>>
>>> and make sure you're set to 3.2 before removing 3.1.
>>>
>>> HTH,
>>> Mark
>>>
>>>
>>
>>
>> Last I heard we are not supposed to set python to 3 anything.  Has that
>> changed?
>>
>> Dale
>>
> 
> No, we're not supposed to set the *system* *default* to python3 yet.
> Still, if you have multiple 3.x versions installed you would want to
> set the python3 setting to the python version you want to default to
> should some program absolutely require python3, so we've got 3 real
> settings:
> 
> System default - still python-2.x
> Python2 - same python-2.x version as the system default
> Python3 - what ever version you want for programs requiring Python3
> 
> HTH,
> Mark
> 
> 


But if I tell eselect to set it to 3 something then that is what the
system will try to use right?  Isn't that what eselect does?  I'm
recalling what was posted after you emerge python here.  The einfo/ewarn
thingy.

Again, this may have changed but what I'm wondering is if we need the
python 2 stuff any more if we can set this to python 3.  After all,
python 2 has to die eventually.  ^_^

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"



Re: [gentoo-user] Python update question

2012-03-02 Thread Tanstaafl

On 2012-03-02 2:24 PM, Dale  wrote:

But if I tell eselect to set it to 3 something then that is what the
system will try to use right?  Isn't that what eselect does?  I'm
recalling what was posted after you emerge python here.  The einfo/ewarn
thingy.

Again, this may have changed but what I'm wondering is if we need the
python 2 stuff any more if we can set this to python 3.  After all,
python 2 has to die eventually.  ^_^


did you miss my earlier reply?

Mine also shows it is set to 3.1...

 # eselect python list --python3
Available Python 3 interpreters:
  [1]   python3.1 *
  [2]   python3.2
myhost : Fri Mar 02, 13:07:51 : ~
 #

So, that I'm guessing the correct way to do this is:

eselect python set --python3 2

?



Re: [gentoo-user] Filter grep output of 'ps aux'

2012-03-02 Thread Paul Hartman
On Fri, Mar 2, 2012 at 12:24 PM, Pandu Poluan  wrote:
>
> On Mar 3, 2012 1:07 AM, "Paul Hartman" 
> wrote:
>>
>> On Fri, Mar 2, 2012 at 11:46 AM, Tanstaafl 
>> wrote:
>> > Does anyone know if there is a way to filter the output of ps aux to
>> > show
>> > only lines that have a value in the %CPU column higher than x - ie, 1.0,
>> > or
>> > 2.0, or something like that?
>>
>> ps aux | gawk '{ if ( $3 > 1.0 ) { print } }'
>>
>
> Why would you use "if"? You can easily use this :
>
> ps aux | awk '$3 > 1.0 {print}'

because I don't know awk very well ;)



Re: [gentoo-user] Filter grep output of 'ps aux'

2012-03-02 Thread Paul Hartman
On Fri, Mar 2, 2012 at 12:32 PM, Tanstaafl  wrote:
> On 2012-03-02 1:12 PM, Jason  wrote:
>>
>> On Fri, Mar 02, 2012 at 01:03:55PM -0500, Tanstaafl wrote:
>>>
>>> Also - would there be a way to get a running output (kind of like
>>> tailing a log)?
>>
>>
>> watch -n1 "ps aux | gawk '{ if ( \$3>  1.0 ) { print } }'"
>
>
> Perfect!!!
>
> Thanks so much guys!

And you can use the --sort options for ps to sort by cpu or anything
you like (see the manpage)



[gentoo-user] Re: Filter grep output of 'ps aux'

2012-03-02 Thread Grant Edwards
On 2012-03-02, Pandu Poluan  wrote:
> On Mar 3, 2012 1:07 AM, "Paul Hartman" 
> wrote:
>>
>> On Fri, Mar 2, 2012 at 11:46 AM, Tanstaafl 
> wrote:
>> > Does anyone know if there is a way to filter the output of ps aux to
> show
>> > only lines that have a value in the %CPU column higher than x - ie,
> 1.0, or
>> > 2.0, or something like that?
>>
>> ps aux | gawk '{ if ( $3 > 1.0 ) { print } }'
>>
>
> Why would you use "if"? You can easily use this :
>
> ps aux | awk '$3 > 1.0 {print}'

Why would you use "{print}"?  You can easily use this:

ps aux | awk '$3 > 1.0'

;)

-- 
Grant Edwards   grant.b.edwardsYow! Kids, don't gross me
  at   off ... "Adventures with
  gmail.comMENTAL HYGIENE" can be
   carried too FAR!




Re: [gentoo-user] SOLVED: old cyrus-imapd from overlay

2012-03-02 Thread Stefan G. Weichinger
Am 29.02.2012 22:27, schrieb Stefan G. Weichinger:
> Am 29.02.2012 09:35, schrieb J. Roeleveld:
> 
>> If you want to still try to copy the mail over, you need to look into
>> converting the *.db files.
> 
> Just as a closing(?) feedback here:
> 
> people at the cyrus-ml were a great support, I am nearly done with my
> conversion.
> 
> And, yes, I run (gentoo stable) 2.4.12 now.

Does anyone use web-cyradm with this??
I can use the web-app, it writes to mysql OK.
But it doesn't trigger cyradm to create mailboxes ...

And I wonder if that might have to do with php or *something*

Stefan




Re: [gentoo-user] Gentoo on a Dell XPS 13 Ultrabook

2012-03-02 Thread Grant
>> I just received the new Dell XPS 13 Ultrabook and I'm trying to
>> install Gentoo but I can't get install-amd64-minimal-20120223.iso to
>> boot via a USB key.  I installed it to two different USB keys via
>> unetbootin but I get this right after it asks for the keymap:
>>
>> Looking for the cdrom
>> Attempting to mount media:- /dev/sda1
>> Attempting to mount media:- /dev/sda2
>> Attempting to mount media:- /dev/sda3
>> Attempting to mount media - /dev/sda4
>> Media not found
>> No bootable medium found. Waiting for new devices...
>> Could not find CD to boot, something else needed!
>> Determining root device...
>> Could not find the root block device in .
>>
>> It must be reading the USB key fine or it never would have gotten that
>> far.  Maybe it has no drivers for the disk controller, but then why
>> does it reference the cdrom?  I tried the nosata and ide=nodma options
>> to no avail.
>
> Use some other distro on the USB device to get you a chroot.

Thanks Alan, I'm installing via a Kubuntu ISO.  Does Gentoo have
anything like a daily live ISO?

- Grant



Re: [gentoo-user] Filter grep output of 'ps aux'

2012-03-02 Thread Tanstaafl

On 2012-03-02 2:33 PM, Paul Hartman  wrote:

And you can use the --sort options for ps to sort by cpu or anything
you like (see the manpage)


Even better, thanks Paul...

watch -n1 "ps aux --sort=-%cpu | gawk '{ if ( \$3 > 1.0 ) { print } }'"

does exactly what I want...

Hmmm... is there an easy way to include the column headers?



Re: [gentoo-user] Filter grep output of 'ps aux'

2012-03-02 Thread Paul Hartman
On Fri, Mar 2, 2012 at 2:39 PM, Tanstaafl  wrote:
> On 2012-03-02 2:33 PM, Paul Hartman  wrote:
>>
>> And you can use the --sort options for ps to sort by cpu or anything
>> you like (see the manpage)
>
>
> Even better, thanks Paul...
>
> watch -n1 "ps aux --sort=-%cpu | gawk '{ if ( \$3 > 1.0 ) { print } }'"
>
> does exactly what I want...
>
> Hmmm... is there an easy way to include the column headers?

To build on Grant's suggestion:
ps aux --sort %cpu | gawk 'NR==1; $3 > 0'



[gentoo-user] Pay for a hardened VM image

2012-03-02 Thread Tanstaafl

Hi all,

Would anyone here be interested in being paid to create a hardened VM 
image for me that will run on a Microsoft Hyper-V host?


If so, what would you be willing to do this for?

Feel free to email me directly...

Thanks

Charles



[gentoo-user] Re: Anyone used NILFS2?

2012-03-02 Thread Heorhi Valakhanovich
On Fri, 2 Mar 2012 10:59:54 -0600
Paul Hartman  wrote:

> I'm very interested in NILFS2 and considering using it as rootfs. I
> read some good reviews and seems to perform okay in benchmarks. The
> automatic checkpoints/snapshots sounds like it could be useful. (I'm
> thinking especially to see prior versions of files in /etc for
> example.)
> 
> Have any of you used NILFS2 and have any failures or success to
> report?
> 
> 

I had some issues with NILFS2. It sometimes "breaks" and still has no
checking-repairing utility. I never lost my data, but garbage collector
couldn't work.

Such things happen rarely, but may be dangerous in production. 




Re: [gentoo-user] Filter grep output of 'ps aux'

2012-03-02 Thread Tanstaafl

On 2012-03-02 3:50 PM, Paul Hartman  wrote:

On Fri, Mar 2, 2012 at 2:39 PM, Tanstaafl  wrote:

On 2012-03-02 2:33 PM, Paul Hartman  wrote:


And you can use the --sort options for ps to sort by cpu or anything
you like (see the manpage)



Even better, thanks Paul...

watch -n1 "ps aux --sort=-%cpu | gawk '{ if ( \$3>  1.0 ) { print } }'"

does exactly what I want...

Hmmm... is there an easy way to include the column headers?


To build on Grant's suggestion:
ps aux --sort %cpu | gawk 'NR==1; $3>  0'


Hmmm.. ok, this works beautifully, thanks!

But when I tried to incorporate it into the watch command like the other 
one:


Original:
watch -n1 "ps aux --sort=-%cpu | gawk '{ if ( \$3 > 1.0 ) { print } }'"

Attempt at incorporating your command into this:
watch -n1 "ps aux --sort=-%cpu | gawk 'NR==1; $3 > 0'"

it gives me a syntax error:

Every 1.0s: ps aux --sort=-%cpu | gawk 'NR==1; >  0' 

Fri Mar  2 
16:19:01 2012


gawk: NR==1; >  0
gawk:^ syntax error

Any ideas on how to get this working in the watch version

Thanks Paul, this will be very useful to me...



Re: [gentoo-user] Python update question

2012-03-02 Thread Mark Knecht
On Fri, Mar 2, 2012 at 11:24 AM, Dale  wrote:
> Mark Knecht wrote:
>> On Fri, Mar 2, 2012 at 10:20 AM, Dale  wrote:
>>> Mark Knecht wrote:
 On Fri, Mar 2, 2012 at 3:36 AM, Dale  wrote:
> Howdy,
>
> I'm just wanting to make certain I don't break my rig.  Info first:
>
> root@fireball / # eselect python list
> Available Python interpreters:
>  [1]   python2.7 *
>  [2]   python3.1
>  [3]   python3.2
> root@fireball / #
>
> I ran --depclean and it wants to remove python 3.1.  I ran python
> updater and recompiled the needed packages.  Since python 2.7 is the
> default python, is it safe to remove python 3.1?  As we all know, python
> and portage is really good friends and portage gets real upset when it
> looses its friend.  I'd much rather ask this question than have to start
> a thread on how to repair python with a dead portage.
>
> So, safe to remove?  I'm thinking it is but just want the comfort of
> taking someone else with me it is breaks.  lol
>
> Dale
>

 You should be safe but please do an

 eselect python list --python3

 and make sure you're set to 3.2 before removing 3.1.

 HTH,
 Mark


>>>
>>>
>>> Last I heard we are not supposed to set python to 3 anything.  Has that
>>> changed?
>>>
>>> Dale
>>>
>>
>> No, we're not supposed to set the *system* *default* to python3 yet.
>> Still, if you have multiple 3.x versions installed you would want to
>> set the python3 setting to the python version you want to default to
>> should some program absolutely require python3, so we've got 3 real
>> settings:
>>
>> System default - still python-2.x
>> Python2 - same python-2.x version as the system default
>> Python3 - what ever version you want for programs requiring Python3
>>
>> HTH,
>> Mark
>>
>>
>
>
> But if I tell eselect to set it to 3 something then that is what the
> system will try to use right?  Isn't that what eselect does?  I'm
> recalling what was posted after you emerge python here.  The einfo/ewarn
> thingy.
>
> Again, this may have changed but what I'm wondering is if we need the
> python 2 stuff any more if we can set this to python 3.  After all,
> python 2 has to die eventually.  ^_^
>
> Dale

Dale,
   I'll try to make it clearer:

The command "eselect python set #" sets the system python profile.
This command allows you to choose any python currently on your system.
You should only choose a python2 setting at this time.

The commands:
eselect python list --python2
eselect python set --python2 #

only deal with python2

The command
eselect python list --python3
eselect python set --python3 #

only deal with python3

All three of those profiles (python, python2 & python3) are distinct
entities. They are different and can each be set any way you want. I
was only clarifying that before you removed python3.1 that you choose
python3.2 for your python3 profile.

Clearer?

HTH,
Mark



Re: [gentoo-user] Anyone used NILFS2?

2012-03-02 Thread Michael Trausch
If you're looking for a flexible filesystem, try btrfs. It is quite nice.
It still needs some help in the performance department, but given a recent
Linux kernel (say, 3.2) it works wonderfully. I use its snapshots and COW
functionality the most.

The only downside to it is that it sometimes is slowish when I do many
writes in a short period of time. Also, fsync() still takes awhile, so
applications that use it liberally, such as dpkg, can run very slow.
Things which use SQLite also suffer under heavy write loads.

For that reason alone, I wouldn't yet use it on a database server. I would
use it on a read-mostly file server, however.

--
Sent from my Ice Cream Sandwich-powered HTC G2
Please excuse any typos.
On Mar 2, 2012 12:03 PM, "Paul Hartman" 
wrote:

> I'm very interested in NILFS2 and considering using it as rootfs. I
> read some good reviews and seems to perform okay in benchmarks. The
> automatic checkpoints/snapshots sounds like it could be useful. (I'm
> thinking especially to see prior versions of files in /etc for
> example.)
>
> Have any of you used NILFS2 and have any failures or success to report?
>
>


[gentoo-user] htop showing black screen

2012-03-02 Thread czernitko
Hello everyone,
I've recently installed 64bit hardened gentoo server in VirtualBox on our
main server and I've emerged htop. After running it I *got only the black
screen*, i wasn't able to kill it with ctrl+c and after that even *'kill
-9' stopped working* from any other console/ssh session. I wasn't even able
to run 'ps' or 'top', I could only end the ssh session. After losing some
bunch of hairs I've *recompiled sys-process/procps* and everything went
back to normal with htop happily working. So I'm just writing to let anyone
know in case you run into some similar problem. I am curious if anyone has
any explanation, but I've personally sorted that problem into
weird-and-not-to-be-curious-about-anymore group.
Regards,
Peter


Re: [gentoo-user] Filter grep output of 'ps aux'

2012-03-02 Thread Paul Hartman
On Fri, Mar 2, 2012 at 3:23 PM, Tanstaafl  wrote:
> On 2012-03-02 3:50 PM, Paul Hartman  wrote:
>>
>> On Fri, Mar 2, 2012 at 2:39 PM, Tanstaafl
>>  wrote:
>>>
>>> On 2012-03-02 2:33 PM, Paul Hartman
>>>  wrote:


 And you can use the --sort options for ps to sort by cpu or anything
 you like (see the manpage)
>>>
>>>
>>>
>>> Even better, thanks Paul...
>>>
>>> watch -n1 "ps aux --sort=-%cpu | gawk '{ if ( \$3>  1.0 ) { print } }'"
>>>
>>> does exactly what I want...
>>>
>>> Hmmm... is there an easy way to include the column headers?
>>
>>
>> To build on Grant's suggestion:
>> ps aux --sort %cpu | gawk 'NR==1; $3>  0'
>
>
> Hmmm.. ok, this works beautifully, thanks!
>
> But when I tried to incorporate it into the watch command like the other
> one:
>
> Original:
>
> watch -n1 "ps aux --sort=-%cpu | gawk '{ if ( \$3 > 1.0 ) { print } }'"
>
> Attempt at incorporating your command into this:
> watch -n1 "ps aux --sort=-%cpu | gawk 'NR==1; $3 > 0'"
>
> it gives me a syntax error:
>
> Every 1.0s: ps aux --sort=-%cpu | gawk 'NR==1; >  0'
>                                                            Fri Mar  2
> 16:19:01 2012
>
> gawk: NR==1; >  0
> gawk:        ^ syntax error
>
> Any ideas on how to get this working in the watch version
>
> Thanks Paul, this will be very useful to me...
>

Put a backslash before the $, it needs to be escaped in that context.



[gentoo-user] Re: Python update question

2012-03-02 Thread walt
On 03/02/2012 11:24 AM, Dale wrote:

> But if I tell eselect to set it to 3 something then that is what the
> system will try to use right?

"The system" isn't granular enough (I've been dying to use that geek-
speak phrase :) when discussing portage, which is only part of a gentoo
"system".

List the files in sys-apps/portage and you'll see that none of them go
in /usr/lib/pythonN.N/site-packages like mere ordinary python packages.
They go instead in /usr/lib/portage, which is independent of your python
version.

However, try this trick:

#head -1 /usr/lib/portage/bin/emerge
#!/usr/bin/python3

You can see from that I've installed portage to use python3, even though:

#eselect python list
Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.1

I still have my "system" python set to 2.7 like most of us, I suspect.

At this point, the portage package obeys the setting of the python3
useflag to decide which python to use and I have my python3 useflag
set, so portage announces "fixing shebangs" at the end of the emerge,
and that's where the #!/usr/bin/python3 comes from.




Re: [gentoo-user] Gentoo on a Dell XPS 13 Ultrabook

2012-03-02 Thread Neil Bothwick
On Fri, 2 Mar 2012 12:29:51 -0800, Grant wrote:

> Does Gentoo have anything like a daily live ISO?

Closer to weekly, but look in releases/autobuilds on your favourite
mirror.


-- 
Neil Bothwick

Experience is what you get when you didn't get what you wanted.



signature.asc
Description: PGP signature


[gentoo-user] Re: Gentoo on a Dell XPS 13 Ultrabook

2012-03-02 Thread walt
On 03/01/2012 06:12 PM, Grant wrote:
> I just received the new Dell XPS 13 Ultrabook and I'm trying to
> install Gentoo but I can't get install-amd64-minimal-20120223.iso to
> boot via a USB key.

Have you tested your boot USB keys on another machine?






Re: [gentoo-user] Gentoo on a Dell XPS 13 Ultrabook

2012-03-02 Thread Grant
>> Does Gentoo have anything like a daily live ISO?
>
> Closer to weekly, but look in releases/autobuilds on your favourite
> mirror.

Got it, thanks.

- Grant



Re: [gentoo-user] Re: Gentoo on a Dell XPS 13 Ultrabook

2012-03-02 Thread Grant
>> I just received the new Dell XPS 13 Ultrabook and I'm trying to
>> install Gentoo but I can't get install-amd64-minimal-20120223.iso to
>> boot via a USB key.
>
> Have you tested your boot USB keys on another machine?

Gentoo is installed but I can't get my USB->ethernet adapter to bring
up an eth0 (or any other) interface.  It works if I boot the Kubuntu
USB key.  I've definitely built the correct driver into the kernel
(mcs7380).  I'm going through an emerge world right now to bring
everything up to date.  Is there anything else I might need to do?

- Grant



Re: [gentoo-user] Re: Filter grep output of 'ps aux'

2012-03-02 Thread Pandu Poluan
On Mar 3, 2012 2:44 AM, "Grant Edwards"  wrote:
>
> On 2012-03-02, Pandu Poluan  wrote:
> > On Mar 3, 2012 1:07 AM, "Paul Hartman" 
> > wrote:
> >>
> >> On Fri, Mar 2, 2012 at 11:46 AM, Tanstaafl 
> > wrote:
> >> > Does anyone know if there is a way to filter the output of ps aux to
> > show
> >> > only lines that have a value in the %CPU column higher than x - ie,
> > 1.0, or
> >> > 2.0, or something like that?
> >>
> >> ps aux | gawk '{ if ( $3 > 1.0 ) { print } }'
> >>
> >
> > Why would you use "if"? You can easily use this :
> >
> > ps aux | awk '$3 > 1.0 {print}'
>
> Why would you use "{print}"?  You can easily use this:
>
> ps aux | awk '$3 > 1.0'
>
> ;)
>

Ahaha, true... that's the default action if no action block is provided. I
usually just print the fields I need in the action block.

Rgds,


Re: [gentoo-user] Python update question

2012-03-02 Thread Dale
Mark Knecht wrote:

> Dale,
>I'll try to make it clearer:
> 
> The command "eselect python set #" sets the system python profile.
> This command allows you to choose any python currently on your system.
> You should only choose a python2 setting at this time.
> 
> The commands:
> eselect python list --python2
> eselect python set --python2 #
> 
> only deal with python2
> 
> The command
> eselect python list --python3
> eselect python set --python3 #
> 
> only deal with python3
> 
> All three of those profiles (python, python2 & python3) are distinct
> entities. They are different and can each be set any way you want. I
> was only clarifying that before you removed python3.1 that you choose
> python3.2 for your python3 profile.
> 
> Clearer?
> 
> HTH,
> Mark
> 
> 


I see the difference now.  I already ran --depclean and portage still
works.  I'll run python-updater again tho.  I didn't know eselect
treated them separately like that.  Learn something every day.

Now to remember that.  :/

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"



Re: [gentoo-user] Autoloading modules..,

2012-03-02 Thread meino . cramer
Pandu Poluan  [12-03-02 06:04]:
> On Mar 2, 2012 11:25 AM,  wrote:
> >
> > Hi,
> >
> > I want to load snd-seq since the /dev/snd/seq device comes up with the
> > wrong permission, if this modules is not loaded. The result is a
> > defunct qjackctrl.
> >
> > I entered
> >
> >snd-seq
> >
> > into
> >
> >/etc/modules.autoload.d/kernel-3.2
> >
> > and it does *not* autoload.
> >
> > I am running
> >
> >Linux 3.2.9
> >
> > (vanilla kernel).
> >
> > What do have to do additionally to acchieve what I had intended?
> >
> > Thank you very much in advance for any help!
> >
> 
> If you are using baselayout-2, the file used to specify which modules to
> auto-load has changed. For more info, please read the following :
> 
> http://www.gentoo.org/doc/en/openrc-migration.xml#doc_chap2
> 
> Rgds,

Hi Pandu,

thanks a lot! :)

Your info helps me !

Have a nice weekend!
Best regards,
mcc