[gentoo-user] rc single, rc default console login

2009-02-13 Thread Dale
Hi folks,

I from time to time will go to a console and do a rc single to go to
single user mode.  I have noticed something weird when I go back to rc
default tho.  On the #1 console, it acts and looks like I am logged out
but when I type in the user name root, it acts like it is a command. 
Same with the password.  However, if I just type in a command, it spits
that back out too.  It doesn't seem to like a login or a command. 

It did this a bit ago.  I just typed in junk and let it reach the bad
login limit and reset the console.  It then gave me a login and let me
do a legitimate login.  It cleared the screen which is what is in
.bash_login so I know I am logged in. 

This is just sort of weird to me.  The screen when it gets through
starting services looks just like it does when I reboot.  I see the last
few services at the top then my login prompt at the bottom.  Everything
looks normal but it's not.  What can I check?  Is this normal?  When I
type in rc default should something reset tty1 so that a new login is
required?  It acts like it is still logged in as root which could be a
security problem for some.  Just curious really.

Dale

:-)  :-) 



Re: [gentoo-user] Commenting out multiple lines in vim

2009-02-13 Thread Joost Roeleveld
On Fri, February 13, 2009 7:49 am, Eray Aslan wrote:
 On 13.02.2009 07:48, Stroller wrote:
 On 13 Feb 2009, at 00:53, Philip Webb wrote:
 090212 Stroller quoted:
 In vim, you can just select the rectangular region with Ctrl-v,
 then type I#ESC.  This will insert # in each line at the same
 column.

 If you want to comment a series of lines  m-n , it's quicker to do :

  :m,ns/^/#/

 I saw similar comments in my Google searches, but I am flummoxed how one
 could find it so.

 Is it only on my keyboard that forward-slash is a lower-case character
 that is accessed *without* the shift key deployed?

 How do you know m  n?

 Column and line numbers are shown on the lower right part of the screen.

 Surely it's easier just to highlight the lines?

 Not when you are working with the keyboard most of the time.  Taking
 your hands off the keyboard to use the mouse is time consuming and
 becomes rather annoying.

True, but with this method, you don't use the mouse, just the keyboard:
1) Go to first line
2) Press CTRL+V
3) go to last line
4) Press ESC
5) Press SHIFT+I
6) Press '#'
7) Press ESC

On my system I then need to move the cursor to actually see the change, is
this normal?

--
Joost




Re: [gentoo-user] Can't login from terminal?

2009-02-13 Thread Mike Kazantsev
On Fri, 13 Feb 2009 15:43:49 +0800
Chuanwen Wu wcw8...@gmail.com wrote:

 Hi, here is the root infomation in my /etc/passwd:
 root:x:0:0:root:/root:/bin/bash

Looks okay, can't see anything wrong in bash configs, too.


 I got the login information below from the tail of /var/log/messages:
...

I believe this clearly shows that pam shouldn't be the issue, but
something that gets launched (and that should be shell) is.

I don't know if there are any issues with bash and I rarely use it
myself (only as a login shell on debian machines, 'cause they have it
on root, installing zsh to usr), but prehaps there are in some bugzilla.

Also, I can assume that getty somehow fails to launch /bin/login
correctly or /bin/login somehow fails.
You can check that getty (agetty, in gentoo), not something else, gets
launched from /etc/inittab and recompile it, just in case.
Then you can try recompiling the shadow package, since /bin/login, which
should launch the shell belongs to it.

You can also check if it's possible to make agetty run something else,
then /bin/login (should be), and launch 'strace /bin/login' instead,
or just run agetty through 'strace -f', which'll show you all the kernel
calls it uses and if there are any failures.
I've found some obscure mistakes (my mistakes, always) that way, but it
might be quite time-consuming.


-- 
Mike Kazantsev // fraggod.net



Re: [gentoo-user] Re: Gentoo's advantage: 'optimized for your system' -- huh?

2009-02-13 Thread Joost Roeleveld
On Thu, February 5, 2009 9:12 pm, Neil Bothwick wrote:
 On Thu, 5 Feb 2009 21:03:30 +0100 (CET), Jes�s Guerrero wrote:

 Gentoo is not a distro. You don't use it, It's a metadristro
 that can be used to build a proper distro, after that you can
 use the final product.

 It's a flatpack distro ;-)

Can anyone tell me in which section of IKEA i can find the install set? :)






[gentoo-user] KDE-4.2 problems

2009-02-13 Thread András , Csányi - Sayusi Ando
Hi all!

After few weeks suffer (under XP) I came back and I have few questions!
I installed kde-4.2 and this is love at first sight!

But - there is always an 'but'... ;) - k3b is depends on
kdelibs-3.5.x. Yesterday I wanted to update my system and kdelibs-4.x
and kdelibs-3.5.x are blocked package.
I installed kde-4.2 with kdeprefix USE flag.

Other hand the Openoffice with kde flag has dependency to kdelibs-3.5.x.

Other thing is powerdevil. This is an laptop (Dell Latitude e6400) and
with cpufrequtils I can manipulate (speedstep) the processors but
under KDE-4 I can't. I can't turn off one processor. I think
powerdevil can't communicate with something. The error message is
suggested few things and I did install these libs (libXext and one
more, I'm under Xp and I can't view)
Under XP I can choose many profile. With the hardest the laptop can
work almost 4 hours with batterys. Under Linux on 800Mhz (2
processors) the powertop say ~2.5 hours. I think this is more than big
difference.

I thought that I downgrade the system to kde-3.5 and I will make an
usable environment with compiz to work. With the kdeprefix use flag I
can manage kde-4.x tree too.

So there are my problems and I think I can manage (sometimes this time
is wasted time, but I like Iron Maiden very much ;) ). But I need
yours experience and suggestions, what do you do If you are in my
position?

Thank you for help and I'm sorry my english. I feel dizzy, I have flu.

András

-- 
- -
--  Csanyi Andras  -- http://sayusi.hu -- Sayusi Ando
--  Bízzál Istenben és tartsd szárazon a puskaport!.-- Cromwell



Re: [gentoo-user] KDE-4.2 problems

2009-02-13 Thread Volker Armin Hemmann
On Freitag 13 Februar 2009, András, Csányi - Sayusi Ando wrote:
 Hi all!

 After few weeks suffer (under XP) I came back and I have few questions!
 I installed kde-4.2 and this is love at first sight!

 But - there is always an 'but'... ;) - k3b is depends on
 kdelibs-3.5.x. Yesterday I wanted to update my system and kdelibs-4.x
 and kdelibs-3.5.x are blocked package.
 I installed kde-4.2 with kdeprefix USE flag.

install k3b- from the kde-testing overlay. It depends on kde 4.X


 Other hand the Openoffice with kde flag has dependency to kdelibs-3.5.x.


well, what do you get from ooo with kde useflag? Isn#t it just an artwork 
flag?

 Other thing is powerdevil. This is an laptop (Dell Latitude e6400) and
 with cpufrequtils I can manipulate (speedstep) the processors but
 under KDE-4 I can't. I can't turn off one processor. I think
 powerdevil can't communicate with something. The error message is
 suggested few things and I did install these libs (libXext and one
 more, I'm under Xp and I can't view)
 Under XP I can choose many profile. With the hardest the laptop can
 work almost 4 hours with batterys. Under Linux on 800Mhz (2
 processors) the powertop say ~2.5 hours. I think this is more than big
 difference.

you can create power profiles in the systemsettings app.
But linux is known not to be as good as windows xp when it comes to power 
savings.


 I thought that I downgrade the system to kde-3.5 and I will make an
 usable environment with compiz to work. With the kdeprefix use flag I
 can manage kde-4.x tree too.

compiz and usable are mutual exclusive.


 So there are my problems and I think I can manage (sometimes this time
 is wasted time, but I like Iron Maiden very much ;) ). But I need
 yours experience and suggestions, what do you do If you are in my
 position?

there is no reason to 'downgrade' to kde 3.5. Openoffice is usable without 
kde-flag - in kde. k3b is available for kde 4.2 (or use tkdvd which is ugly 
bug can do all the stuff you need most of the time).


 Thank you for help and I'm sorry my english. I feel dizzy, I have flu.

not a good time to tinker with your system ;)





[gentoo-user] Re: Commenting out multiple lines in vim

2009-02-13 Thread Nicolas Sebrecht

On Fri, Feb 13, 2009 at 10:24:34AM +0100, Joost Roeleveld wrote:

 True, but with this method, you don't use the mouse, just the keyboard:
 1) Go to first line

Press gg

 2) Press CTRL+V
 3) go to last line

Press G

 4) Press ESC

Why this stage ?

 5) Press SHIFT+I
 6) Press '#'
 7) Press ESC
 
 On my system I then need to move the cursor to actually see the change, is
 this normal?

I don't have to here with vim72 or gvim. However, I have no idea of how
to fix this.

-- 
Nicolas Sebrecht




Re: [gentoo-user] Re: Commenting out multiple lines in vim

2009-02-13 Thread Joost Roeleveld
On Fri, February 13, 2009 1:37 pm, Nicolas Sebrecht wrote:

 On Fri, Feb 13, 2009 at 10:24:34AM +0100, Joost Roeleveld wrote:

 True, but with this method, you don't use the mouse, just the keyboard:
 1) Go to first line

 Press gg

Actually meant going to first line of block you want to comment out


 2) Press CTRL+V
 3) go to last line

 Press G

Ditto, but last line of what you want to comment out


 4) Press ESC

 Why this stage ?

Oops, typo...


 5) Press SHIFT+I
 6) Press '#'
 7) Press ESC

 On my system I then need to move the cursor to actually see the change,
 is
 this normal?

 I don't have to here with vim72 or gvim. However, I have no idea of how
 to fix this.

I use vim-7.2 as well. Could easily be because it needs that to do a
redraw of the screen.
It's a minor annoyance which I can live with. And as I am the only one
facing this, I don't see the point of raising a bug-report for it.

--
Joost




Re: [gentoo-user] rc single, rc default console login

2009-02-13 Thread Joshua Murphy
On Fri, Feb 13, 2009 at 3:05 AM, Dale rdalek1...@gmail.com wrote:
 Hi folks,

 I from time to time will go to a console and do a rc single to go to
 single user mode.  I have noticed something weird when I go back to rc
 default tho.  On the #1 console, it acts and looks like I am logged out
 but when I type in the user name root, it acts like it is a command.
 Same with the password.  However, if I just type in a command, it spits
 that back out too.  It doesn't seem to like a login or a command.

 It did this a bit ago.  I just typed in junk and let it reach the bad
 login limit and reset the console.  It then gave me a login and let me
 do a legitimate login.  It cleared the screen which is what is in
 .bash_login so I know I am logged in.

 This is just sort of weird to me.  The screen when it gets through
 starting services looks just like it does when I reboot.  I see the last
 few services at the top then my login prompt at the bottom.  Everything
 looks normal but it's not.  What can I check?  Is this normal?  When I
 type in rc default should something reset tty1 so that a new login is
 required?  It acts like it is still logged in as root which could be a
 security problem for some.  Just curious really.

 Dale

 :-)  :-)

Sounds like it's not closing out of the existing shell on the terminal
but is till starting a login process on top of it. The lazy fix is to,
when you go single user, throw a   logout on the end of the command
to make sure the shell closes out.

If you want to poke around and see, for certain, that it is doing what
I'd guess it is.. change your inittab and add another login in single
user mode on tty2, log in, and check w for an active session on
another tty.

-- 
Poison [BLX]
Joshua M. Murphy



[gentoo-user] --emptytree and slots

2009-02-13 Thread Helmut Jarausch
Hi,

switching to a new machine is good opportunity to do
house-cleaning.

I wonder what emerge --emptytree does when several versions of some
packages like kde or gcc are installed (in different slots).
The entry in the 'world' file does not contain the slot info.

Is there any danger it will leave my machine with only one version
of each package?

Many thanks for your help,
Helmut.

-- 
Helmut Jarausch

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



[gentoo-user] Re: KDE-4.2 problems

2009-02-13 Thread Nikos Chantziaras

András wrote:

But - there is always an 'but'... ;) - k3b is depends on
kdelibs-3.5.x. Yesterday I wanted to update my system and kdelibs-4.x
and kdelibs-3.5.x are blocked package.
I installed kde-4.2 with kdeprefix USE flag.


I have 3.5.10 together with 4.2.0 installed.  There's no blockage.  Make 
sure you have the 3.5.10 packages in your package.keywords.




Other hand the Openoffice with kde flag has dependency to kdelibs-3.5.x.


It works with 3.5.10, see above.  Or you can change its USE flags to 
gtk -kde and use an Oxygen Gtk theme in order for OOo to look a bit 
more integrated into KDE 4.  There's no Oxygen theme for KDE 3.




I thought that I downgrade the system to kde-3.5 and I will make an
usable environment with compiz to work. With the kdeprefix use flag I
can manage kde-4.x tree too.


You don't need to downgrade.  I'm using KDE 4.2.0 here and also have KDE 
3.5.10 libraries for stuff like k3b and Amarok 1.  They work nicely in 
KDE 4.





Re: [gentoo-user] --emptytree and slots

2009-02-13 Thread Nickolas Fortino
On Fri, Feb 13, 2009 at 8:34 AM, Helmut Jarausch 
jarau...@igpm.rwth-aachen.de wrote:

 Hi,

 switching to a new machine is good opportunity to do
 house-cleaning.

 I wonder what emerge --emptytree does when several versions of some
 packages like kde or gcc are installed (in different slots).
 The entry in the 'world' file does not contain the slot info.

 Is there any danger it will leave my machine with only one version
 of each package?

 Many thanks for your help,
 Helmut.

 --
 Helmut Jarausch

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


emerge -e world will re-emerge every package which is a dependency of
packages in your world file. It won't, however, do housecleaning of packages
in separate slots which are not used. To do that:

#usually required to make the next step happy
emerge -uDN world
emerge -p --depclean

Make sure you have the -p option, and sanity check the output of --depclean.
It's almost always correct, but only almost. See man emerge for more
information on other useful things the --depclean can do (in particular, it
does what most people seem to think 'equery depends' does).

Nick


[gentoo-user] kde 4.2 no prefixed problems

2009-02-13 Thread Andrés Becerra Sandoval
Hi,

I installed kde-4.2 with USE=kdeprefix two weeks ago and everything
I needed was working all right.

Then I decided to change my USE flags and delete kdeprefix in order to
have kde in /usr. After that I:

- Did an emerge -uDN world
- Deleted my user folders .kde*

The result was a kde-4.2 merged back, but with the following
applications crashing:

- kopete
- kmail
- kontact
- kaddresbook
- korganizer

With error messages like this:


kaddressbook(10155)/kdepimlibs (kabc) KABC::StdAddressBook::self:
asynchronous= true
kaddressbook(10155)/kresources KRES::Factory::self:
kaddressbook(10155)/kdecore (KSycoca) KSycocaPrivate::openDatabase:
Trying to open ksycoca from  /var/tmp/kdecache-abecerra/ksycoca4
kaddressbook(10155)/kresources KRES::ManagerImpl::ManagerImpl:
kaddressbook(10155)/kresources KRES::ManagerImpl::readConfig:
kaddressbook(10155)/kresources KRES::Factory::self:
kaddressbook(10155)/kdepimlibs (kabc) KABC::StdAddressBook::StdAddressBook:
kaddressbook(10155)/kdepimlibs (kabc) KABC::StdAddressBook::self:
calling init after instance creation
kaddressbook(10155)/kresources
KRES::Factory::Private::resourceInternal: ( file , config )
kaddressbook(10155)/kresources
KRES::Factory::Private::resourceInternal: no such type file
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kaddressbook path = unknown pid = 10155
sock_file=/home/abecerra/.kde4/socket-quark/kdeinit4__0
unknown program name(10154)/: Communication problem with
kaddressbook , it probably crashed.
Error message was:  org.freedesktop.DBus.Error.NoReply :  Message
did not receive a reply (timeout by message bus) 


Does anybody has any suggestions to fix these problems?, all this
packages used to work when I had kde prefixed!


Thanks,

-- 
  Andrés



Re: [gentoo-user] rc single, rc default console login

2009-02-13 Thread Dale
Joshua Murphy wrote:
 On Fri, Feb 13, 2009 at 3:05 AM, Dale rdalek1...@gmail.com wrote:
   
 Hi folks,

 I from time to time will go to a console and do a rc single to go to
 single user mode.  I have noticed something weird when I go back to rc
 default tho.  On the #1 console, it acts and looks like I am logged out
 but when I type in the user name root, it acts like it is a command.
 Same with the password.  However, if I just type in a command, it spits
 that back out too.  It doesn't seem to like a login or a command.

 It did this a bit ago.  I just typed in junk and let it reach the bad
 login limit and reset the console.  It then gave me a login and let me
 do a legitimate login.  It cleared the screen which is what is in
 .bash_login so I know I am logged in.

 This is just sort of weird to me.  The screen when it gets through
 starting services looks just like it does when I reboot.  I see the last
 few services at the top then my login prompt at the bottom.  Everything
 looks normal but it's not.  What can I check?  Is this normal?  When I
 type in rc default should something reset tty1 so that a new login is
 required?  It acts like it is still logged in as root which could be a
 security problem for some.  Just curious really.

 Dale

 :-)  :-)
 

 Sounds like it's not closing out of the existing shell on the terminal
 but is till starting a login process on top of it. The lazy fix is to,
 when you go single user, throw a   logout on the end of the command
 to make sure the shell closes out.

 If you want to poke around and see, for certain, that it is doing what
 I'd guess it is.. change your inittab and add another login in single
 user mode on tty2, log in, and check w for an active session on
 another tty.

   

Well, what I noticed is that when I go to single user, I have to type in
my password again.  I would think it would do the same when going the
other way around.  I'll go single user here in a little bit and try that
w command and see what it says.  I just thought it weird that it is
doing this way and was curious whether it is the standard or something
specific to me.

Thanks

Dale

:-)  :-) 



[gentoo-user] x86 versus amd64 - where is it set / overwritten

2009-02-13 Thread Helmut Jarausch
Hi,

I'm working on an AMD opteron, definitely an AMD64 machine.

/etc/make.conf  contains
CHOST=x86_64-pc-linux-gnu

my profile is
default/linux/amd64/2008.0/desktop

Still, when emerging sci-libs/acml, portage
fetches the 32-bit variant of the package.
The SRC_URI depends on use flags x86 and amd86.

My /etc/make.conf  does not contain the x86 use-flag
but the amd64 use-flag.

So, what am I missing?

Many thanks for a hint,
Helmut.



-- 
Helmut Jarausch

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



[gentoo-user] Re: kde 4.2 no prefixed problems

2009-02-13 Thread Nikos Chantziaras

Andrés Becerra Sandoval wrote:

Hi,

I installed kde-4.2 with USE=kdeprefix two weeks ago and everything
I needed was working all right.

Then I decided to change my USE flags and delete kdeprefix in order to
have kde in /usr. After that I:

- Did an emerge -uDN world
- Deleted my user folders .kde*


Check if /usr/kde/4.2/ has any files in it; there shouldn't be any in a 
non-prefixed install.  If there are, check the packages they belong to:


  equery belongs `find /usr/kde/4.2`

and try to re-emerge those packages.




[gentoo-user] Re: x86 versus amd64 - where is it set / overwritten

2009-02-13 Thread Nikos Chantziaras

Helmut Jarausch wrote:

Hi,

I'm working on an AMD opteron, definitely an AMD64 machine.

/etc/make.conf  contains
CHOST=x86_64-pc-linux-gnu

my profile is
default/linux/amd64/2008.0/desktop

Still, when emerging sci-libs/acml, portage
fetches the 32-bit variant of the package.
The SRC_URI depends on use flags x86 and amd86.


This package is fetch restricted.  It shouldn't actually fetch anything. 
 You have to download the correct tarball and place it in 
/usr/portage/distfiles.





Re: [gentoo-user] Re: x86 versus amd64 - where is it set / overwritten

2009-02-13 Thread Helmut Jarausch
On 13 Feb, Nikos Chantziaras wrote:
 Helmut Jarausch wrote:
 Hi,
 
 I'm working on an AMD opteron, definitely an AMD64 machine.
 
 /etc/make.conf  contains
 CHOST=x86_64-pc-linux-gnu
 
 my profile is
 default/linux/amd64/2008.0/desktop
 
 Still, when emerging sci-libs/acml, portage
 fetches the 32-bit variant of the package.
 The SRC_URI depends on use flags x86 and amd86.
 
 This package is fetch restricted.  It shouldn't actually fetch anything. 
   You have to download the correct tarball and place it in 
 /usr/portage/distfiles.
 

OK, my wording was wrong. I did fetch the 64-bit version but emerge
didn't use it, but told me to fetch the 32-bit version.

-- 
Helmut Jarausch

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



[gentoo-user] Re: x86 versus amd64 - where is it set / overwritten

2009-02-13 Thread Nikos Chantziaras

Helmut Jarausch wrote:

On 13 Feb, Nikos Chantziaras wrote:

Helmut Jarausch wrote:

Hi,

I'm working on an AMD opteron, definitely an AMD64 machine.

/etc/make.conf  contains
CHOST=x86_64-pc-linux-gnu

my profile is
default/linux/amd64/2008.0/desktop

Still, when emerging sci-libs/acml, portage
fetches the 32-bit variant of the package.
The SRC_URI depends on use flags x86 and amd86.
This package is fetch restricted.  It shouldn't actually fetch anything. 
  You have to download the correct tarball and place it in 
/usr/portage/distfiles.




OK, my wording was wrong. I did fetch the 64-bit version but emerge
didn't use it, but told me to fetch the 32-bit version.


Hmm.  Get that one too then and see which one is picked when the actual 
emerge starts.  It could be that it needs both.  If it ends up building 
the 32-bit one only, then I guess it's time for a bug report :)





Re: [gentoo-user] Re: x86 versus amd64 - where is it set / overwritten

2009-02-13 Thread Ian Lee

Nikos Chantziaras wrote:

Helmut Jarausch wrote:

On 13 Feb, Nikos Chantziaras wrote:

Helmut Jarausch wrote:

Hi,

I'm working on an AMD opteron, definitely an AMD64 machine.

/etc/make.conf  contains
CHOST=x86_64-pc-linux-gnu

my profile is
default/linux/amd64/2008.0/desktop

Still, when emerging sci-libs/acml, portage
fetches the 32-bit variant of the package.
The SRC_URI depends on use flags x86 and amd86.
This package is fetch restricted.  It shouldn't actually fetch 
anything.   You have to download the correct tarball and place it in 
/usr/portage/distfiles.




OK, my wording was wrong. I did fetch the 64-bit version but emerge
didn't use it, but told me to fetch the 32-bit version.


Hmm.  Get that one too then and see which one is picked when the actual 
emerge starts.  It could be that it needs both.  If it ends up building 
the 32-bit one only, then I guess it's time for a bug report :)





Its definitely a 64/32 bit problem and nothing to do with the int64 use 
flag?









Re: [gentoo-user] emerge on new install has die econf failed

2009-02-13 Thread Joseph Davis

Thanks for you directions - you pointed me where I needed to see.

Something near there mentioned checking the clock, which I did,
it was set three years ago.

I set the BIOS clock, to local time, then reset it to UTC time (doh!)

I then ran

# emerge ntp

and it worked! Hopefully that was it!

I am now running

#emerge apache and it is paused at this
---
 Emerging (8 of 48) app-text/libpaper-1.1.23
 * Fetching files in the background. To view fetch progress, run
 * `tail -f /var/log/emerge-fetch.log` in another terminal.

--
I don't see any activity... Well, I'll give it some time... The tail 
command seems to indicate


Connecting to mirrors.rcn.net|207.172.2.141|:21... failed: Connection 
timed out.

Retrying.

so time might just fix that.

In any case - thanks for the help!

Mike Kazantsev wrote:

On Thu, 12 Feb 2009 16:36:31 -0600
Joseph Davis jos...@uh.edu wrote:


I looked as you suggested, and this is what I found - I'm still clueless.

which: no gtkdoc-rebase in 
(/usr/local/sbin:/sbin:/usr/sbin:/usr/lib/portage/bin:/usr/local/bin:/bin:/usr/bin:/opt/bin:/usr/i486-pc-linux-gnu/gcc-bin/4.1.2)

make[5]: [install-data-local] Error 1 (ignored)


Looks like non-critical error to me, something else probably happened
even before that one.





[gentoo-user] screen, mc, htop

2009-02-13 Thread András , Csányi - Sayusi Ando
Hi all!

I'm here again.

So, the problem points is I can't decide what is the real problem. But
I can describe the symptomes.

I use screen lot of and I like it veery much. Few weeks ago - when I
reinstall gentoo, started this weird thing.
If I start mc in the screen nothings happen. I can see the cursos is
stop before the last line and waiting...
Generally first time the mc is start and I can work with. But, random
long time later the mc is start doing this stupid behavior what I
wrote upper. This thing is independent what I did. Last time is
started after I use vim to edit an file. Yesterday started after I
write in mc's command line 'df -h' and hit Enter.

If I detached screen I can start an mc. So, mc is working. If I
straced the process what is waiting I can see only this in the outline
of strace:

read(0,

In the screen I can't interrupt the process with Control-c or
Control-d. I can kill this process with C-a K but in this case the
screen windows will die too.
The screen do this with users and root user too. The 'screen -wipe'
command isn't solution. About my experiences the reboot is the
solution, only...

The important informations:
app-misc/screen-4.0.3 multiuser nethack pam -debug -selinux
app-misc/mc-4.6.2_pre1 7zip gpm ncurses nls -samba slang unicode -X

This information is enough or do you need more?

But there is an another crazy thing.
If I start htop - after the mc and screen started doing the strange
behavior - nothing happen. I detouch the screen and touch back the
htop is working fine.

I hope somebody can tell me what is the problem because I don't know. :(

Thank you!

András

-- 
- -
--  Csanyi Andras  -- http://sayusi.hu -- Sayusi Ando
--  Bízzál Istenben és tartsd szárazon a puskaport!.-- Cromwell



Re: [gentoo-user] Re: x86 versus amd64 - where is it set / overwritten

2009-02-13 Thread Helmut Jarausch
On 13 Feb, Ian Lee wrote:
 Nikos Chantziaras wrote:
 Helmut Jarausch wrote:
 On 13 Feb, Nikos Chantziaras wrote:
 Helmut Jarausch wrote:
 Hi,

 I'm working on an AMD opteron, definitely an AMD64 machine.

 /etc/make.conf  contains
 CHOST=x86_64-pc-linux-gnu

 my profile is
 default/linux/amd64/2008.0/desktop

 Still, when emerging sci-libs/acml, portage
 fetches the 32-bit variant of the package.
 The SRC_URI depends on use flags x86 and amd86.
 This package is fetch restricted.  It shouldn't actually fetch 
 anything.   You have to download the correct tarball and place it in 
 /usr/portage/distfiles.


 OK, my wording was wrong. I did fetch the 64-bit version but emerge
 didn't use it, but told me to fetch the 32-bit version.
 
 Hmm.  Get that one too then and see which one is picked when the actual 
 emerge starts.  It could be that it needs both.  If it ends up building 
 the 32-bit one only, then I guess it's time for a bug report :)
 
 
 
 Its definitely a 64/32 bit problem and nothing to do with the int64 use 
 flag?
 

Sorry, it's probably (partially) my fault.
I've tried to generate an overlay for version 4.2.0 (currently portage
has only 4.1.0-rc1).
Now, ebuild ... digest required to download all six packages ( 3 for gfortran
plus 3 for ifort ).

Sorry for the noise,
Helmut.
 

-- 
Helmut Jarausch

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



Re: [gentoo-user] Commenting out multiple lines in vim

2009-02-13 Thread Stroller


On 13 Feb 2009, at 06:49, Eray Aslan wrote:

...

Surely it's easier just to highlight the lines?


Not when you are working with the keyboard most of the time.  Taking
your hands off the keyboard to use the mouse is time consuming and
becomes rather annoying.


LOL!

Stroller.





Re: [gentoo-user] Commenting out multiple lines in vim

2009-02-13 Thread Stroller


On 13 Feb 2009, at 09:24, Joost Roeleveld wrote:

...
On my system I then need to move the cursor to actually see the  
change, is

this normal?


Here the change appears when you move the cursor... or after a slow  
second.


Stroller.




Re: [gentoo-user] kde 4.2 no prefixed problems

2009-02-13 Thread Alan McKinnon
On Friday 13 February 2009 19:01:32 Andrés Becerra Sandoval wrote:
 Hi,

 I installed kde-4.2 with USE=kdeprefix two weeks ago and everything
 I needed was working all right.

 Then I decided to change my USE flags and delete kdeprefix in order to
 have kde in /usr. After that I:

 - Did an emerge -uDN world
 - Deleted my user folders .kde*

 The result was a kde-4.2 merged back, but with the following
 applications crashing:

Unmerge EVERYTHING related to KDE-4.2. Every last package you can find, 
including Qt. Inspect emerge --depclean carefully and run it. Examine your 
world and make sure there's nothing left from KDE4. Make especially sure you 
are not mixing stuff from an overlay and the portage tree.

Then rebuild the whole lot the way you want it with the actual USE flags you 
want. This seems the wrong way round, but it isn't. I spent almost a week 
struggling to no avail with krunner and kopete doing the same things as yours, 
when complete reinstall fixed all of it in 8 hours.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] screen, mc, htop

2009-02-13 Thread Paul Hartman
On Fri, Feb 13, 2009 at 1:35 PM, András, Csányi - Sayusi Ando
sayusi.a...@sayusi.hu wrote:
 Hi all!

 I'm here again.

 So, the problem points is I can't decide what is the real problem. But
 I can describe the symptomes.

 I use screen lot of and I like it veery much. Few weeks ago - when I
 reinstall gentoo, started this weird thing.
 If I start mc in the screen nothings happen. I can see the cursos is
 stop before the last line and waiting...
 Generally first time the mc is start and I can work with. But, random
 long time later the mc is start doing this stupid behavior what I
 wrote upper. This thing is independent what I did. Last time is
 started after I use vim to edit an file. Yesterday started after I
 write in mc's command line 'df -h' and hit Enter.

 If I detached screen I can start an mc. So, mc is working. If I
 straced the process what is waiting I can see only this in the outline
 of strace:

 read(0,

 In the screen I can't interrupt the process with Control-c or
 Control-d. I can kill this process with C-a K but in this case the
 screen windows will die too.
 The screen do this with users and root user too. The 'screen -wipe'
 command isn't solution. About my experiences the reboot is the
 solution, only...

 The important informations:
 app-misc/screen-4.0.3 multiuser nethack pam -debug -selinux
 app-misc/mc-4.6.2_pre1 7zip gpm ncurses nls -samba slang unicode -X

 This information is enough or do you need more?

 But there is an another crazy thing.
 If I start htop - after the mc and screen started doing the strange
 behavior - nothing happen. I detouch the screen and touch back the
 htop is working fine.

 I hope somebody can tell me what is the problem because I don't know. :(

 Thank you!

 András

Very strange. I just tried this combination and it all works for me.
Here's my versions (am on ~amd64)

app-misc/screen-4.0.3  USE=pam -debug -multiuser -nethack (-selinux)
app-misc/mc-4.6.2_pre1  USE=X gpm nls samba unicode
sys-process/htop-0.8.1-r1  USE=unicode -debug

I do not use multiuser or nethack USE flags for scren. You do not
use samba. Otherwise everything seems the same.

Paul



[gentoo-user] Re: Commenting out multiple lines in vim

2009-02-13 Thread Nicolas Sebrecht

On Fri, Feb 13, 2009 at 07:58:52PM +, Stroller wrote:

  Not when you are working with the keyboard most of the time.  Taking
  your hands off the keyboard to use the mouse is time consuming and
  becomes rather annoying.

 LOL!

But so true.

-- 
Nicolas Sebrecht




[gentoo-user] {OT} convert all .png to 0 compression

2009-02-13 Thread Grant
My music folder is filled with images like this:

artist/album/cover.png
artist/album/CD/front.png
artist/album/CD/back.png

I think gmpc is struggling with all of the decompression so I'd like
to change all of their compression to 0.  Does anyone know of an easy
way to do this?

- Grant



[gentoo-user] trouble with evince (mime bad?)

2009-02-13 Thread Allan Gottlieb
Recently evince stopped working on one of my machines, ajglap.

For every pdf, evince opens a window and complains
  unable to open document
  unhandled mime type

Sometimes the mime type is application/text other times
it is application/octet-stream.

But the file is definitely a pdf.  For example
vita.pdf begins

   %PDF-1.2

grep pdf /etc/mime.types gives

   application/pdfpdf

I know there was a recent discussion about evince, but for that
user, evince knew the file type was application/pdf.


Since evince on another machine, allan, can view these files,
I don't think the files have gotten corrupted.  The files are
on ajglap; allan nfs mounts the files.  Also acroread on ajglap
has no trouble.

I have rebuild evince/poppler/poppler-bindings with no change.
I also ran revdep-rebuild, which rebuilt nothing.

Any help would be appreciated.
thanks,
allan



Re: [gentoo-user] {OT} convert all .png to 0 compression

2009-02-13 Thread Paul Hartman
On Fri, Feb 13, 2009 at 5:22 PM, Grant emailgr...@gmail.com wrote:
 My music folder is filled with images like this:

 artist/album/cover.png
 artist/album/CD/front.png
 artist/album/CD/back.png

 I think gmpc is struggling with all of the decompression so I'd like
 to change all of their compression to 0.  Does anyone know of an easy
 way to do this?

 - Grant

Yes! Emerge app-arch/advancecomp and then do advpng -z0 yourfile.png
to recompress the PNG with 0 compression.

Paul



Re: [gentoo-user] {OT} convert all .png to 0 compression

2009-02-13 Thread Grant
 My music folder is filled with images like this:

 artist/album/cover.png
 artist/album/CD/front.png
 artist/album/CD/back.png

 I think gmpc is struggling with all of the decompression so I'd like
 to change all of their compression to 0.  Does anyone know of an easy
 way to do this?

 - Grant

 Yes! Emerge app-arch/advancecomp and then do advpng -z0 yourfile.png
 to recompress the PNG with 0 compression.

 Paul

Fantastic, thank you Paul.

- Grant



Re: [gentoo-user] Re: Commenting out multiple lines in vim

2009-02-13 Thread Stroller


On 13 Feb 2009, at 21:45, Nicolas Sebrecht wrote:

On Fri, Feb 13, 2009 at 07:58:52PM +, Stroller wrote:


Not when you are working with the keyboard most of the time.  Taking
your hands off the keyboard to use the mouse is time consuming and
becomes rather annoying.


LOL!


But so true.


Sorry. I was LOLing at the idea that one might use a mouse with vim,  
or even a mouse-enabled vim.


I realised immediately after posting that this was not obvious.

Stroller.
 



[gentoo-user] Re: Commenting out multiple lines in vim

2009-02-13 Thread daid kahl
  In vim, you can just select the rectangular region with Ctrl-v,
  then type I#ESC.  This will insert # in each line at the same
  column.
 
  If you want to comment a series of lines  m-n , it's quicker to do :
 
   :m,ns/^/#/
 
  I saw similar comments in my Google searches, but I am flummoxed how one
  could find it so.
 
  Is it only on my keyboard that forward-slash is a lower-case character
  that is accessed *without* the shift key deployed?
 
  How do you know m  n?

 Column and line numbers are shown on the lower right part of the screen.

 You can also enable line numbering, either in command mode using set nu,
or in ~/.vimrc (which I prefer since I always like line numbers, except if
I'm copy and pasting...then it's annoying).  There is also a macro I made
(stole from somewhere and modified) to enter the date on \d entered in both
command mode and entry mode, which I find handy for journals or timestamp
comments in code.  You can, of course, rearrange and edit how the time
appears if you dislike my style.

Timestamp script for command (normal) mode
nmap \d :execute normal i . strftime(%d %b %Y %H:%M:%S )CR
Timestamp script for insert mode
imap \d C-R=strftime(%d %b %Y %H:%M:%S )CR

Is there any way to access the vim buffers from other than vi?  Using
Konsole, if I want to copy something from vim I have to highlight with the
mouse and right click, which is annoying.  I really just want a better way
to copy from Konsole that doesn't involve right click.  At least
shift+insert works for pasting from elsewhere...

~daid


Re: [gentoo-user] Re: Commenting out multiple lines in vim

2009-02-13 Thread Stroller


On 14 Feb 2009, at 04:21, daid kahl wrote:
You can also enable line numbering, either in command mode using  
set nu, or in ~/.vimrc (which I prefer since I always like line  
numbers, except if I'm copy and pasting...then it's annoying).   
There is also a macro I made (stole from somewhere and modified) to  
enter the date on \d entered in both command mode and entry mode,  
which I find handy for journals or timestamp comments in code.  You  
can, of course, rearrange and edit how the time appears if you  
dislike my style.


Timestamp script for command (normal) mode
nmap \d :execute normal i . strftime(%d %b %Y %H:%M:%S )CR
Timestamp script for insert mode
imap \d C-R=strftime(%d %b %Y %H:%M:%S )CR


Thanks for the tips. I don't have immediate need for them, but I will  
bear them in mind.


Is there any way to access the vim buffers from other than vi?   
Using Konsole, if I want to copy something from vim I have to  
highlight with the mouse and right click, which is annoying.  I  
really just want a better way to copy from Konsole that doesn't  
involve right click.  At least shift+insert works for pasting from  
elsewhere...


Do you want to copy without using right-click (i.e. copy upon mouse  
select) or copy without using the mouse at all? I assume the latter,  
but that was not my initial reaction when I read I really just want a  
better way ... that doesn't involve right click.


Stroller.



Re: [gentoo-user] rc single, rc default console login

2009-02-13 Thread Dale
Joshua Murphy wrote:
 On Fri, Feb 13, 2009 at 3:05 AM, Dale rdalek1...@gmail.com wrote:
   
 Hi folks,

 I from time to time will go to a console and do a rc single to go to
 single user mode.  I have noticed something weird when I go back to rc
 default tho.  On the #1 console, it acts and looks like I am logged out
 but when I type in the user name root, it acts like it is a command.
 Same with the password.  However, if I just type in a command, it spits
 that back out too.  It doesn't seem to like a login or a command.

 It did this a bit ago.  I just typed in junk and let it reach the bad
 login limit and reset the console.  It then gave me a login and let me
 do a legitimate login.  It cleared the screen which is what is in
 .bash_login so I know I am logged in.

 This is just sort of weird to me.  The screen when it gets through
 starting services looks just like it does when I reboot.  I see the last
 few services at the top then my login prompt at the bottom.  Everything
 looks normal but it's not.  What can I check?  Is this normal?  When I
 type in rc default should something reset tty1 so that a new login is
 required?  It acts like it is still logged in as root which could be a
 security problem for some.  Just curious really.

 Dale

 :-)  :-)
 

 Sounds like it's not closing out of the existing shell on the terminal
 but is till starting a login process on top of it. The lazy fix is to,
 when you go single user, throw a   logout on the end of the command
 to make sure the shell closes out.

 If you want to poke around and see, for certain, that it is doing what
 I'd guess it is.. change your inittab and add another login in single
 user mode on tty2, log in, and check w for an active session on
 another tty.

   

I wasn't sure how to add another login so I tried this.  When I went
from single back to default, I typed in rc default  exit to see what
that did.  It did like I think it should do with that.  It took me back
to a login and none of the looking like one thing but being another.

Shouldn't something do that automatically tho?  On mine, it switches to
the GUI when I go back to default.  I'm just curious if this could be a
security issue for someone else or is this just me?

Dale

:-)  :-) 



Re: [gentoo-user] Re: Commenting out multiple lines in vim

2009-02-13 Thread daid kahl
 Is there any way to access the vim buffers from other than vi?  Using
 Konsole, if I want to copy something from vim I have to highlight with the
 mouse and right click, which is annoying.  I really just want a better way
 to copy from Konsole that doesn't involve right click.  At least
 shift+insert works for pasting from elsewhere...


 Do you want to copy without using right-click (i.e. copy upon mouse select)
 or copy without using the mouse at all? I assume the latter, but that was
 not my initial reaction when I read I really just want a better way ...
 that doesn't involve right click.

 Stroller.

 Haha, either one.  I guess ideally it would be neat to be able to copy from
Konsole without using the mouse at all, but I'd settle for mouse highlight
and keystroke.  Since I use a laptop with a touchpad, the highlighting isn't
a huge hand motion away from the keyboard.  Though, strtictly speaking, this
thread is on vim, and I like to copy from vim more than Konsole anyway
(except for like compile bugs, which I guess I could access through vim and
the log files).

~daid


Re: [gentoo-user] Re: Commenting out multiple lines in vim

2009-02-13 Thread Stroller


On 14 Feb 2009, at 05:03, daid kahl wrote:


Is there any way to access the vim buffers from other than vi?   
Using Konsole, if I want to copy something from vim I have to  
highlight with the mouse and right click, which is annoying.  I  
really just want a better way to copy from Konsole that doesn't  
involve right click.  At least shift+insert works for pasting from  
elsewhere...


Do you want to copy without using right-click (i.e. copy upon mouse  
select) or copy without using the mouse at all? I assume the  
latter, but that was not my initial reaction when I read I really  
just want a better way ... that doesn't involve right click.


Haha, either one.  I guess ideally it would be neat to be able to  
copy from Konsole without using the mouse at all, but I'd settle for  
mouse highlight and keystroke.  Since I use a laptop with a  
touchpad, the highlighting isn't a huge hand motion away from the  
keyboard.  Though, strtictly speaking, this thread is on vim, and I  
like to copy from vim more than Konsole anyway (except for like  
compile bugs, which I guess I could access through vim and the log  
files).


I can certainly answer copying using mouse but without needing to click.

I started to write this before I realised the other possibility:

   IMO terminal emulators should copy on selection, as was the  
traditional

   X11 style. This is clearly undesirable behaviour in most any other
   application - in a word-processor or email program you may want to
   highlight a selection of text which you want to paste over, and
   it's no use trying that when doing so overwrites the clipboard -
   but that doesn't ever apply to terminal applications.

   Surely Konsole should offer a copy-upon-selection option?

I then realised that it was daft to ask this question without Googling  
it and quickly found this thread:

  http://forums.whirlpool.net.au/forum-replies-archive.cfm/718984.html

The last post gives the answer, I think.

It must surely be possible to access the clipboard API at the command  
line  create a vim command that passes the highlighted text to it,  
but I have no idea how.


Stroller.




Re: [gentoo-user] /etc/init.d/: ntpd or ntp-client?

2009-02-13 Thread Stroller


On 4 Feb 2009, at 13:40, Justin wrote:


pkg_postinst() {
ewarn You can find an example /etc/ntp.conf in /usr/share/ntp/
ewarn Review /etc/ntp.conf to setup server info.
ewarn Review /etc/conf.d/ntpd to setup init.d info.
echo
elog The way ntp sets and maintains your system time has changed.
elog Now you can use /etc/init.d/ntp-client to set your time at
elog boot while you can use /etc/init.d/ntpd to maintain your time
elog while your machine runs


Except that here, ntp-client seems to start *before* the network, so  
fails to find the ntp-server.


I'll investigate this more later.

Stroller.