[gentoo-user] remote installation, dual boot

2015-04-23 Thread Stefan G. Weichinger

I plan to install a fresh gentoo linux in parallel to an existing SLES
10 server.

The server runs with /boot and / on 2 raid1 devices, there is a large
RAID6 array building the PV for several logical volumes with data on it.

The idea is to have the server booted from live media (chroot does not
work as the current kernel of SLES is too old [1] ) ... install the new
gentoo-root into a new LV, set up dracut for an LVM-based root and place
the new kernel and initrd into the existing /boot (with old grub currently).

Should/could work, right?

The extra kick (again): the server is ~600 km away from me ;-)

I should keep up SLES as fallback as long as I got everything up and
running in gentoo. The server is doing backups to a tape library and
monitoring stuff via nagios ... the new feature to be enabled is KVM
virtualization (yes, the CPU is supporting this).

I have access via some KVM over IP so I can access the server console
directly in case (choice of boot option, repairing stuff).

Any particular tips for me?

The grub installed is grub-0.97-16.27.1 (SLES-release).
Is that expected to work with recent kernels/initrds? I assume.

I won't touch partitions/RAIDs/bootloader for now ... these things might
follow later when gentoo is working on the server.

Thanks, Stefan

[1] Linux version 2.6.16.60-0.66.1-smp



Re: [gentoo-user] remote installation, dual boot

2015-04-23 Thread Stefan G. Weichinger
On 23.04.2015 17:09, Mike Gilbert wrote:

 Some pointers:
 - Unpack your stage tarball.
 - Build the kernel and initramfs on an existing Gentoo system and copy
 them over.
 - Add the gentoo kernel and initramfs to menu.lst.
 - Clear out the root password in /etc/shadow.
 - Reboot the box.
 
 You can then log in as root on the console, configure networking, and
 run from there.

hmm, yes, I see.
I have a gentoo server there so I have a preparation machine at hand.

I will see if I get that figured out ... got to get the kernel-options
and dracut modules right.

thanks, S







[gentoo-user] wicd not restarting after hibernation

2015-04-23 Thread »Q«
On my amd64 laptop, on resume from hibernation, wicd almost always
fails to restart.  This problem goes back to when I set up the machine,
over a year ago, but it seems to have gotten a lot worse in the last
month or so.

I'm using openrc and sys-power/hibernate-script.  I run mostly stable;
AFAIK stable everything to do with power management, init, and
networking.  I use stable gentoo-sources.  AFAICS, resuming works
normally except for wicd.

The configuration for hibernate-script has:

RestartServices fcron wicd

When it wicd fails to start, in /var/log/messages I see entries like
this:

Apr 23 08:38:28 sepulchrave dbus[1369]: [system] Activating service 
name='org.wicd.daemon' (using servicehelper)
Apr 23 08:38:28 sepulchrave dbus[1369]: [system] Activated service 
'org.wicd.daemon' failed: Launch helper exited with unknown return code 1

`sudo /etc/init.d/wicd start` always works to get it going again.  And
on (re)boot, wicd starts fine.








Re: [gentoo-user] remote installation, dual boot

2015-04-23 Thread Stefan G. Weichinger
On 23.04.2015 17:43, Stefan G. Weichinger wrote:

 I will see if I get that figured out ... got to get the kernel-options
 and dracut modules right.

first try started booting but couldn't mount rootfs ... and now the box
hangs there and I can't press the power button (only PS/2 attached
keyboard/mouse)

got to wait for the folks there to come to work tmrw ;-)




Re: [gentoo-user] remote installation, dual boot

2015-04-23 Thread Mike Gilbert
On Thu, Apr 23, 2015 at 10:49 AM, Stefan G. Weichinger li...@xunil.at wrote:

 I plan to install a fresh gentoo linux in parallel to an existing SLES
 10 server.

 The server runs with /boot and / on 2 raid1 devices, there is a large
 RAID6 array building the PV for several logical volumes with data on it.

 The idea is to have the server booted from live media (chroot does not
 work as the current kernel of SLES is too old [1] ) ... install the new
 gentoo-root into a new LV, set up dracut for an LVM-based root and place
 the new kernel and initrd into the existing /boot (with old grub currently).

You should be able to get away with not using a livecd: you don't
really need to chroot to get an initial Gentoo system working,
*especially if you have console access*.

Some pointers:
- Unpack your stage tarball.
- Build the kernel and initramfs on an existing Gentoo system and copy
them over.
- Add the gentoo kernel and initramfs to menu.lst.
- Clear out the root password in /etc/shadow.
- Reboot the box.

You can then log in as root on the console, configure networking, and
run from there.



[gentoo-user] Re: How do kernel modules load automatically during boot? [SOLVED]

2015-04-23 Thread walt
On 04/22/2015 12:17 PM, walt wrote:
 I just did a huge update on an older ~amd64 machine, and now only
 three out of a dozen or so kernel modules load during bootup, which
 leaves a lot of hardware in an unusable state.

Thanks to everyone who replied.  The infuriating thing about this problem
is that I'm sure I went through the same thing a few years ago and then
forgot about it:

Somehow (probably something stupid I did) these two symlinks got deleted
somewhere in the middle of the big update:

#ls -l /lib
lrwxrwxrwx 1 root root 5 Feb 17 05:11 /lib - lib64
#ls -l /usr/lib
lrwxrwxrwx 1 root root 5 Jul 31  2013 /usr/lib - lib64

After that happened, emerge created real directories /lib and /usr/lib and
put files there instead of in /lib64 and /usr/lib64 where they belong.

I suppose I should be thankful that the machine still boots even as far as
rescue mode.  (I'm not thankful, but that's not your problem ;)

Thanks again for your excellent questions.  They always give me new ideas
for debugging problems like this one.
 




[gentoo-user] Re: remote installation, dual boot

2015-04-23 Thread james
Stefan G. Weichinger lists at xunil.at writes:

 
 On 23.04.2015 17:43, Stefan G. Weichinger wrote:
 
  I will see if I get that figured out ... got to get the kernel-options
  and dracut modules right.
 
 first try started booting but couldn't mount rootfs ... and now the box
 hangs there and I can't press the power button (only PS/2 attached
 keyboard/mouse)
 
 got to wait for the folks there to come to work tmrw 


There are methods to get the console terminal session, remotely.
One, is called netconsole [1]. I use to use this sort of thing
decades ago. How it is currently supported and the associated codes
(ssh) to use it remotely, I have not kept up with. Some headless embedded
system still use this sort of thing; with holes punched in the
routers/firewalls.

I've also heard of folks setting up a serial console over serial-2-usb
converter, like ftdi, and then making a terminal session connection
form a remote cell phone to another cell phone, to tunnel an ascii
terminal session. I've never done this, but I'd be really curious how
somebody makes that sort of 9600 baud terminal connection to a remote
router or server, via a serial/console port using cell phones
as modems.

hth,
James



[1] https://www.kernel.org/doc/Documentation/networking/netconsole.txt

[2] http://www.mjmwired.net/kernel/Documentation/serial-console.txt 





Re: [gentoo-user] Re: gcc-5.0 ?

2015-04-23 Thread Andreas K. Huettel
Am Donnerstag, 23. April 2015, 07:51:30 schrieb james:
 I'll wait at least until there is an ebuild of some kind. Those folks
 (toolchain) that put out the 5.0.x builds should have one for 5.1
 soon.. I do agree with the subliminal suggestion that I should
 find those gcc compile and install docs to read about the new options
 and feature and where I needed them turned off or on, regardless of
 how it is installed on my systems.
 
 
 thx
 James

You may want to lurk on bug 547470 :)
https://bugs.gentoo.org/show_bug.cgi?id=547470

-- 
Andreas K. Huettel
Gentoo Linux developer (council, perl, libreoffice)
dilfri...@gentoo.org
http://www.akhuettel.de/



[gentoo-user] Re: gcc-5.0 ?

2015-04-23 Thread james
Stefan G. Weichinger lists at xunil.at writes:

 
 On 23.04.2015 10:12, Helmut Jarausch wrote:
 
  I've just renamed the  gcc-6.0.0_alpha20150412.ebuild (the 6 must be
typo) from toolchain overlay
  to gcc-5.1.0.ebuild which I have attached.
  It worked just fine here.

very cool! thx.




 I now try to build gcc-5.1.0 with itself ... and maybe later I will try
  at system in a btrfs-subvolume.

Hello Stephan,

Very interesting. You do know that both cephfs-0.94 and gcc-5.1.x
have support for RDMA. It should really speed up some applications,
particularly if you are running Apache:(spark|storm) or other 
in-memory codes on top of Apache-mesos (ebuild in BGO).

The recently released (portage)t dev-java/sbt has gotten me much further
along toward a working apache-spark ebuild, also in BGO.

So things are rocking for low-latency, HPCC in gentoo. I only regret
that somebody smarter than me is doing all of this. NONE of the 
old gentoo linux cluster devs are much interested in putting together
a gentoo cluster from 100% sources; and I find that most baffling,
particularly  Donnie Berkholz. Many are using clusters at their work,
based on other distros but little effort is being expended to bring
100% source solutions for clustering to gentoo. 

I do find lots of solutions for containers on remote (vendor) clouds and
binaries for hadoop and such. Nothing so that the rank and file gentoo
communities can build their High Performance Computer Clusters, (HPCC) from
100% sources. Strange, real strange, at least from where I sit

THANKS for the help.
James




James








Re: [gentoo-user] grep -lr ignoring subdirs that start with dot (.)?

2015-04-23 Thread Neil Bothwick
On Thu, 23 Apr 2015 07:32:54 -0400, Tanstaafl wrote:

 What I'd like is the output you get with
 
 'grep -ir searchstring .'
 
 which includes the line of text from each matching file that contains
 the searchstring, like this:
 
  ./user/Maildir/cur/1429731479.M511050P25876.hostname,S=3097,W=3185:2,S:Name
  asked me to approve Test PO 12036 this afternoon so she could
  see 
  ./user/Maildir/cur/1429731479.M511050P25876.hostname,S=3097,W=3185:2,S:it
  in the system.   In looking at Test PO 12033  12034 they show
  signed 
  ./user/Maildir/cur/1429731479.M511050P25876.hostname,S=3097,W=3185:2,S:by
  me however I did not approve these test PO's only test PO 12036 -
  how ./user/Maildir/cur/1429731479.M511050P25876.hostname,S=3097,W=3185:2,S:
  Name asked me to approve Test PO 12036 this afternoon so she could  
 
 but...
 
 What I'd like is for each output line showing the file-hit to be
 prefaced with at least the date/time of the file (permissions/owner etc
 would be ok too, but I at least need the date/time), like you get when
 doing an ls -al...

Something like this?

for i in $(grep -lr searchstring .);do
ls -l $i
grep -H searchstring $i
done

I'm sure you could format it better using the options from ls.


-- 
Neil Bothwick

I am McCoy of Bo...Damnit! I'm a doctor, not a collective!


pgpXKjeFCOMq8.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] [SOLVED] Java VM and SDK: icedtea X oracle's

2015-04-23 Thread Francisco Ares
2015-04-23 10:52 GMT-03:00 J. Roeleveld jo...@antarean.org:

 On Thursday, April 23, 2015 08:41:42 AM Francisco Ares wrote:
  2015-04-22 14:10 GMT-03:00 Francisco Ares fra...@gmail.com:

 snipped

   Thanks for the tip, gonna try to understand everything from that
 thread,
   but meanwhile I'm going to do what Alon has suggested.
  
   Best Regards,
   Francisco
 
  Hi, again.
 
  Both approaches have worked out. Masking Oracle's JDK and JRE was a good
  starting point, and later on, having icedtea-bin and icedtea-web marked
 as
  ~arch (and removing the mask for JDK and JRE) did the final trick.
 
  Thanks and Best Regards,
  Francisco

 If you really don't want the Oracle JDK/JRE, leave the mask in place.

 --
 Joost



Thank you.
Francisco


Re: [gentoo-user] Re: remote installation, dual boot

2015-04-23 Thread Stefan G. Weichinger
On 23.04.2015 18:57, james wrote:
 Stefan G. Weichinger lists at xunil.at writes:
 

 On 23.04.2015 17:43, Stefan G. Weichinger wrote:

 I will see if I get that figured out ... got to get the kernel-options
 and dracut modules right.

 first try started booting but couldn't mount rootfs ... and now the box
 hangs there and I can't press the power button (only PS/2 attached
 keyboard/mouse)

 got to wait for the folks there to come to work tmrw 
 
 
 There are methods to get the console terminal session, remotely.
 One, is called netconsole [1]. I use to use this sort of thing
 decades ago. How it is currently supported and the associated codes
 (ssh) to use it remotely, I have not kept up with. Some headless embedded
 system still use this sort of thing; with holes punched in the
 routers/firewalls.
 
 I've also heard of folks setting up a serial console over serial-2-usb
 converter, like ftdi, and then making a terminal session connection
 form a remote cell phone to another cell phone, to tunnel an ascii
 terminal session. I've never done this, but I'd be really curious how
 somebody makes that sort of 9600 baud terminal connection to a remote
 router or server, via a serial/console port using cell phones
 as modems.

Thanks for the hint but for now I have to wait.

When I think about I have to add several kernel-options to menu.lst:

dracut has to assemble /dev/md3 at first (this is the single PV in the
VG VG01)

and /dev/VG01/genroot then is the filesystem with the new gentoo-rootfs

I only added stuff like rd.md=1 etc ... I think I got the assembling
wrong. And maybe even the root= option.

We will see tmrw if I get in early from other jobs.

Stefan





Re: [gentoo-user] xen on new install reboots by itself

2015-04-23 Thread lee
hydra hydrapo...@gmail.com writes:

  You mean the documentation at Gentoo about Xen sucks or the upstream
 documentation? What information are you missing from there? Maybe we can
 add  the missing pieces for Xen being more accessible and easier to use,
 what do you think? :)

I mean the documentation they have on their wiki.  It's a confusing mess
referring to various version with which things are being done
differently.

Could you add missing pieces about why power management --- as in
frequency scaling --- doesn't work and what to do about keeping the time
in sync between all VMs when you find out that this doesn't work as the
documentation would have you think it does?


-- 
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us.  Finally, this fear has become reasonable.



Re: [gentoo-user] xen on new install reboots by itself

2015-04-23 Thread lee
J. Roeleveld jo...@antarean.org writes:

 On 8 April 2015 14:43:02 GMT-07:00, lee l...@yagibdah.de wrote:
hydra hydrapo...@gmail.com writes:

 On Sat, Apr 4, 2015 at 3:20 PM, lee l...@yagibdah.de wrote:

 symack sym...@gmail.com writes:

 Other than that, unless you really do need full virtualization: I'm
 finding Linux containers to be far more manageable than virtual
 machines, and much more efficient.


 Can you please post some more details?

About containers?

There's very useful documentation about them like
https://wiki.gentoo.org/wiki/LXC ...

What can I say?  Virtualization with xen is like juggling with a set of
black boxes each of which aren't exactly accessible; the
documentation sucks, it's hard work to get it running and likewise hard
to maintain.

 I disagree. Been using Xen for over 10 years now and find it very easy to use.
 The documentation could be better on the Xen site itself, but there is plenty 
 of decent documentation available via Google. 

Then we just disagree about this.

Virtualization with containers is basically as simple as running just
another daemon.

 Not quite. I use virtualization to minimizer the physical hardware. Xen is 
 easy for that. Containers are what chroot jails should have been.
 But there is no simple method to set these up when security isolation is your 
 goal.

Containers or chroots?

Which the better tool, or combination of tools is, depends on what
you
want to accomplish.  You could use containers in a VM, too, or use
virtualbox along with containers to run the odd VMs that require full
virtualzation.

 Virtualbox is nice for a quick test. I wouldn't use it for production.

Why not?


-- 
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us.  Finally, this fear has become reasonable.



Re: [gentoo-user] Re: gcc-5.0 ?

2015-04-23 Thread Stefan G. Weichinger
On 23.04.2015 19:18, james wrote:
 Stefan G. Weichinger lists at xunil.at writes:
 I now try to build gcc-5.1.0 with itself ... and maybe later I will try
  at system in a btrfs-subvolume.
 
 Hello Stephan,
 
 Very interesting. 

emerge -e @system

didn't get very far in my btrfs-subvolume (a snapshot of my current rootfs).

maybe a bit too early :-) (I didn't have the time to look into it closer)

But I run a recent kernel compiled with gcc-5.1.0 now -

$ cat /proc/version
Linux version 4.0.0-gentoo (root@hiro) (gcc version 5.1.0 (Gentoo 5.1.0)
) #4 SMP Thu Apr 23 21:15:14 CEST 2015

I am sure it will enter portage soon ...









Re: [gentoo-user] Re: gcc-5.0 ?

2015-04-23 Thread Stefan G. Weichinger
On 23.04.2015 23:06, Stefan G. Weichinger wrote:

 I am sure it will enter portage soon ...

btw ... there you go:

https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-devel/gcc/gcc-5.1.0.ebuild?view=markup





[gentoo-user] Installing python-2.6

2015-04-23 Thread Guillaume Poulin
I'm currently contributing to a python project still supporting python
2.6. Since python 2.6 is no more in portage tree, I currently have no
way to run the unit tests locally.

Is there an easy way to install python 2.6? I don't need other
packages support for python 2.6, just a python 2.6 installation with
pip and virtualenv, so I can run the unit tests locally.



Re: [gentoo-user] Installing python-2.6

2015-04-23 Thread Mike Gilbert
On Thu, Apr 23, 2015 at 3:08 PM, Guillaume Poulin
poulin.guilla...@gmail.com wrote:
 I'm currently contributing to a python project still supporting python
 2.6. Since python 2.6 is no more in portage tree, I currently have no
 way to run the unit tests locally.

 Is there an easy way to install python 2.6? I don't need other
 packages support for python 2.6, just a python 2.6 installation with
 pip and virtualenv, so I can run the unit tests locally.


I added python-2.6.9 back to the portage tree, but empty KEYWORDS.

Sync your portage tree in around an hour and add the following to
package.keywords:

~dev-lang/python-2.6.9 **



Re: [gentoo-user] Re: gcc-5.0 ?

2015-04-23 Thread Helmut Jarausch
On 04/23/2015 07:51:30 AM, james wrote:
 Nikos Chantziaras realnc at gmail.com writes:
 
 
   So is my best hope the toolchain repo ?
 
  You can always compile and install locally in your $HOME directory.
 5.1
  was just released, so you can try that.
 
 I hear you. It'd take me a long time to figure out the settings,
 configs
 and such. Beside I know that folks that do this sort of thing put
 some time into learning the tricks.
 
 I'll wait at least until there is an ebuild of some kind. Those folks
 (toolchain) that put out the 5.0.x builds should have one for 5.1
 soon.. I do agree with the subliminal suggestion that I should
 find those gcc compile and install docs to read about the new options
 and feature and where I needed them turned off or on, regardless of
 how it is installed on my systems.
 

I've just renamed the  gcc-6.0.0_alpha20150412.ebuild (the 6 must be typo) from 
toolchain overlay
to gcc-5.1.0.ebuild which I have attached.
It worked just fine here.

Helmut

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5
GCC_FILESDIR=${PORTDIR}/sys-devel/gcc/files

inherit eutils toolchain

KEYWORDS=
IUSE=debug

RDEPEND=
DEPEND=${RDEPEND}
=${CATEGORY}/binutils-2.20

if [[ ${CATEGORY} != cross-* ]] ; then
PDEPEND=${PDEPEND} elibc_glibc? ( =sys-libs/glibc-2.12 )
fi

src_prepare() {
toolchain_src_prepare

use debug  GCC_CHECKS_LIST=yes
}


Re: [gentoo-user] Re: gcc-5.0 ?

2015-04-23 Thread Stefan G. Weichinger
On 23.04.2015 10:12, Helmut Jarausch wrote:

 I've just renamed the  gcc-6.0.0_alpha20150412.ebuild (the 6 must be typo) 
 from toolchain overlay
 to gcc-5.1.0.ebuild which I have attached.
 It worked just fine here.

same here, just a bit later ;-)

I now try to build gcc-5.1.0 with itself ... and maybe later I will try
@system in a btrfs-subvolume.

just curious





Re: [gentoo-user] [SOLVED] Java VM and SDK: icedtea X oracle's

2015-04-23 Thread J. Roeleveld
On Thursday, April 23, 2015 08:41:42 AM Francisco Ares wrote:
 2015-04-22 14:10 GMT-03:00 Francisco Ares fra...@gmail.com:

snipped

  Thanks for the tip, gonna try to understand everything from that thread,
  but meanwhile I'm going to do what Alon has suggested.
  
  Best Regards,
  Francisco
 
 Hi, again.
 
 Both approaches have worked out. Masking Oracle's JDK and JRE was a good
 starting point, and later on, having icedtea-bin and icedtea-web marked as
 ~arch (and removing the mask for JDK and JRE) did the final trick.
 
 Thanks and Best Regards,
 Francisco

If you really don't want the Oracle JDK/JRE, leave the mask in place.

--
Joost




Re: [gentoo-user] [SOLVED] Java VM and SDK: icedtea X oracle's

2015-04-23 Thread Francisco Ares
2015-04-22 14:10 GMT-03:00 Francisco Ares fra...@gmail.com:



 2015-04-22 10:54 GMT-03:00 Neil Bothwick n...@digimed.co.uk:

 On Wed, 22 Apr 2015 10:34:05 -0300, Francisco Ares wrote:

  A few months ago I got rid of oracle's java jre and jdk in favor of
  icedtea.
 
  Now, when issuing an emerge -tpvuDN world, oracle's jre is about to be
  installed again on this system:

 See the thread from earlier this week stable java virtuals require
 unstable java packages.


 --
 Neil Bothwick

 Mac screen message: Like, dude, something went wrong.



 Thanks for the tip, gonna try to understand everything from that thread,
 but meanwhile I'm going to do what Alon has suggested.

 Best Regards,
 Francisco


Hi, again.

Both approaches have worked out. Masking Oracle's JDK and JRE was a good
starting point, and later on, having icedtea-bin and icedtea-web marked as
~arch (and removing the mask for JDK and JRE) did the final trick.

Thanks and Best Regards,
Francisco


Re: [gentoo-user] grep -lr ignoring subdirs that start with dot (.)?

2015-04-23 Thread Tanstaafl
On 4/17/2015 5:59 PM, Neil Bothwick n...@digimed.co.uk wrote:
 Since you want to search the entire contents f the current directory,
 there is no need to pass grep a list of directories (especially not an
 incomplete list), use grep -lr .

Ok, thanks Neil, but this is still not what I'm looking for... here's a
snip of what I got:

 ./user1/Maildir/.Sent/cur/1348064019.M219121P18374.mailhost.com,S=7615,W=7788:2,S
 ./user1/Maildir/.Sent/dovecot.index.cache
 ./user2/Maildir/cur/1348063111.Vfe02Ia7fe0eM242648.mailhost.com:2,S
 ./user2/Maildir/dovecot.index.cache

What I'd like is the output you get with

'grep -ir searchstring .'

which includes the line of text from each matching file that contains
the searchstring, like this:

 ./user/Maildir/cur/1429731479.M511050P25876.hostname,S=3097,W=3185:2,S:Name 
 asked me to approve Test PO 12036 this afternoon so she could see
 ./user/Maildir/cur/1429731479.M511050P25876.hostname,S=3097,W=3185:2,S:it in 
 the system.   In looking at Test PO 12033  12034 they show signed
 ./user/Maildir/cur/1429731479.M511050P25876.hostname,S=3097,W=3185:2,S:by me 
 however I did not approve these test PO's only test PO 12036 - how
 ./user/Maildir/cur/1429731479.M511050P25876.hostname,S=3097,W=3185:2,S:
 Name asked me to approve Test PO 12036 this afternoon so she could

but...

What I'd like is for each output line showing the file-hit to be
prefaced with at least the date/time of the file (permissions/owner etc
would be ok too, but I at least need the date/time), like you get when
doing an ls -al...

Is this just not possible?

Thanks again...