Re: [gentoo-user] Re: Impossible question... Swithcing from no multilib to multilib

2010-07-23 Thread Sebastian Beßler

Am 23.07.2010 05:51, schrieb Walter Dnes:


   I had a similar situation.  I use one Windows app, that runs in WINE.
WINE will not build without multi-lib support on a 64-bit install.  I
ended up installing QEMU-KVM, and then a 32-bit Gentoo guest inside
that.  Having done it once, the second time would be a lot easier.  I
went with 10 gig main disk image, and a 2 gig swap disk image.  A
quick rundown...


Why the overhead using qemu when a chroot does the same? I use a 32bit 
chroot inside my no-multilib 64bit-Gentoo and that works great.


Greetings

Sebastian



Re: [gentoo-user] Re: Impossible question... Swithcing from no multilib to multilib

2010-07-22 Thread Alex Schuster
Nikos Chantziaras writes:

 On 07/22/2010 12:56 PM, Andrea Momesso wrote:
  That's impossible, isn't it?

I think so.

  Swithcing profile and reemerging everithing isn't gonna work? Even
  from a chroot?
  
  Should I reinstall a new stage from scratch? Adobe stopped providing
  flash for linux 64 bit, and I some of the sites I need to visit for
  work need it. Mantaining a chroot is not worth the effort, so I
  really want to switch.
  
  Thank you in advance.
 
 emerge www-plugins/nspluginwrapper and this will make 32bit Flash work
 in 64bit browsers.

But only when the multilib profile is active. I do not know why this is, 
and if there are _any_ hacks that might make this possible, but the Gentoo 
AMD64 FAQ [*] states:

  Warning: Currently you cannot switch from a no-multilib to a multilib-
  enabled profile, so think over your decision twice before you use the
  no-multilib profile.

Wonko

[*] http://www.gentoo.org/doc/en/gentoo-amd64-faq.xml#multilib



Re: [gentoo-user] Re: Impossible question... Swithcing from no multilib to multilib

2010-07-22 Thread Alan McKinnon
On Thursday 22 July 2010 10:19:21 Nikos Chantziaras wrote:
 On 07/22/2010 12:56 PM, Andrea Momesso wrote:
  That's impossible, isn't it?
  
  Swithcing profile and reemerging everithing isn't gonna work? Even from a
  chroot?
  
  Should I reinstall a new stage from scratch? Adobe stopped providing
  flash for linux 64 bit, and I some of the sites I need to visit for work
  need it. Mantaining a chroot is not worth the effort, so I really want
  to switch.
  
  Thank you in advance.
 
 emerge www-plugins/nspluginwrapper and this will make 32bit Flash work
 in 64bit browsers.


Except when it doesn't :-)


It works for me, reasonably stable, but with much higher than expected cpu 
usage.

Other users report not being so lucky, very much a case of YMMV


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: Impossible question... Swithcing from no multilib to multilib

2010-07-22 Thread Andrea Momesso
On Thursday 22 July 2010 11:13:23 Alex Schuster wrote:
 Nikos Chantziaras writes:
  On 07/22/2010 12:56 PM, Andrea Momesso wrote:
   That's impossible, isn't it?
 
 I think so.
 
   Swithcing profile and reemerging everithing isn't gonna work? Even
   from a chroot?
   
   Should I reinstall a new stage from scratch? Adobe stopped providing
   flash for linux 64 bit, and I some of the sites I need to visit for
   work need it. Mantaining a chroot is not worth the effort, so I
   really want to switch.
   
   Thank you in advance.
  
  emerge www-plugins/nspluginwrapper and this will make 32bit Flash work
  in 64bit browsers.
 
 But only when the multilib profile is active. I do not know why this is,
 and if there are _any_ hacks that might make this possible, but the Gentoo
 AMD64 FAQ [*] states:
 
   Warning: Currently you cannot switch from a no-multilib to a multilib-
   enabled profile, so think over your decision twice before you use the
   no-multilib profile.
 

Yeah, nspluginwrapper won't work for me, since I have a full no-multilib 
profile.

And yes, I had read the AMD64 FAQs before installing, and I've been happy with 
no-multilib for quita a while.
I still have adobe flash 10.0.45.2-r2 installed, but I understand it has serius 
security problems, and I had to mask all higher versions.

BTW, is anybody aware of the technical reason why the switch of profile is 
impossible? Can it be workarounded?

---
TopperH
http://topperh.ath.cx



Re: [gentoo-user] Re: Impossible question... Swithcing from no multilib to multilib

2010-07-22 Thread Paul Hartman
On Thu, Jul 22, 2010 at 6:37 AM, Andrea Momesso
momesso.and...@gmail.com wrote:
 I still have adobe flash 10.0.45.2-r2 installed, but I understand it has 
 serius
 security problems, and I had to mask all higher versions.

I think given the track record of security problems in flash player
(and java and firefox and everything else, it seems...) just
connecting to WWW you're accepting a certain level of risk in the
first place. Just because security problems have not been announced
for the newer versions doesn't mean they don't exist (we thought every
previous version was safe,too -- the world didn't end)

I think most of the security problems they fix are typically
theoretical and I'm not sure about any widespread actual exploit of
flash player, especially targeted at a beta 64-bit linux version of
flash player that probably 0.001% of web surfers are using.

If you only run flash from trustworthy sources I think there's minimal
risk. But that's just my opinion.



Re: [gentoo-user] Re: Impossible question... Swithcing from no multilib to multilib

2010-07-22 Thread Walter Dnes
On Thu, Jul 22, 2010 at 01:37:27PM +0200, Andrea Momesso wrote

 And yes, I had read the AMD64 FAQs before installing, and I've been
 happy with no-multilib for quita a while.  I still have adobe flash
 10.0.45.2-r2 installed, but I understand it has serius security
 problems, and I had to mask all higher versions.

  I had a similar situation.  I use one Windows app, that runs in WINE.
WINE will not build without multi-lib support on a 64-bit install.  I
ended up installing QEMU-KVM, and then a 32-bit Gentoo guest inside
that.  Having done it once, the second time would be a lot easier.  I
went with 10 gig main disk image, and a 2 gig swap disk image.  A
quick rundown...

  Remember to build qemu-kvm with the sdl USE flag if you want video.
Otherwise, it becomes a VNC-only server.  You could tunnel X over that
if you want.

  Also make sure that the host's kernel has tun/tap support built in.
Install dhcpcd in the guest, and let it take care of the IP address.

Create disks


qemu-img create -f raw g32_00_sda.img 10G
qemu-img create -f raw g32_00_sdb.img  2G

Boot the install CD image
=
  By default, they come up as /dev/hdx for the install, and /dev/sdx
when booting from the latest kernel.  You can't get from here to
there.  You cannot configure /etc/lilo.conf to boot from /dev/sda1 and
write it to the boot sector of what is currently /dev/hda1.  Note the
weird parameters necessary to force the disk images to come up as
/dev/sda and /dev/sdb for the install.

 The following is 1 long line

kvm -redir tcp:::22 -m 2048 -drive file=g32_00_sda.img,if=scsi,bus=0,unit=6 
-drive file=g32_00_sdb.img,if=scsi,bus=1,unit=6 -cdrom gentoo32.iso -boot d

Start the guest after install
=
Do not be confused by the -hda and -hdb syntax, it actually comes up as
/dev/sda and /dev/sdb

kvm -localtime -startdate now -vga std -redir tcp:::22 -m 2048 -hda 
g32_00_sda.img -hdb g32_00_sdb.img -boot c


  I selected -vga std for the video emulation.  I suggest the
following 2 stps to generate maximum video resolution...
1) As root, run X -configure to generate an initial xorg.conf
2) Copy the horizontal and vertical sync settings from the host's
   xorg.conf to the guest's xorg.cong

  The -redir tcp:::22 means that from the host, you can

ssh -p  u...@localhost

  to ssh into the guest.  Similarly...

scp -P  fubar.txt u...@localhost:.

  will copy a file to account user on the guest.  With dhcp, the guest
can ssh/scp to the host, using its actual address (in my case
192.168.123.249), or the name if you set up /etc/hosts.

-- 
Walter Dnes waltd...@waltdnes.org