Re: chroot: java fails

2008-01-06 Thread C. Ahlstrom

 Douglas A. Tutty 10:57 Sun 06 Jan  


>I don't know about Java.  If you mean for Etch, then for Flash you'll
>need to set up an i386 chroot.

Not necessarily.  You can install nspluginswrapper if you're running
Firefox.


Not in Etch.  That's a Lenny thing and it can't be backported.  I
already looked into it and the nspluginwrapper maintainer tried to
backport it and couldn't due to dependancies that conflict with Etch.


Thanks for the clarification.  Perhaps you can get it to install via the
source-code route for it and its dependencies.  I do that on occasion.
With some apps even that won't work, though.

--
A man was reading The Canterbury Tales one Saturday morning, when his
wife asked "What have you got there?"  Replied he, "Just my cup and Chaucer."


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: chroot: java fails

2008-01-06 Thread Douglas A. Tutty
On Sun, Jan 06, 2008 at 09:18:49AM -0500, C. Ahlstrom wrote:
>  Douglas A. Tutty 16:04 Sat 05 Jan  
> 
> >On Sat, Jan 05, 2008 at 01:38:54PM -0600, Karl Schmidt wrote:
> >>I'm hoping to get Flash and Java working with iceweasel on AMD64. The 
> >>bits and notes I see are not all the same and confusing.
> >>
> >>I've set up a wiki page http://wiki.xtronics.com/index.php/Iceweasel to 
> >>put step by step information and I'm hoping someone here can fill out a 
> >>full procedure so there is a place to point others as well as myself.
> >
> >I don't know about Java.  If you mean for Etch, then for Flash you'll
> >need to set up an i386 chroot.
> 
> Not necessarily.  You can install nspluginswrapper if you're running
> Firefox.

Not in Etch.  That's a Lenny thing and it can't be backported.  I
already looked into it and the nspluginwrapper maintainer tried to
backport it and couldn't due to dependancies that conflict with Etch.


> 
> I don't have a system chroot installed, and Flash (YouTube) works fine
> after using nspluginswrapper to install the Adobe plugin.  From
> about:plugins:
> 
> Shockwave Flash
> 
> File name: npwrapper.libflashplayer.so
> Shockwave Flash 9.0 r115
> 
> MIME Type  Description SuffixesEnabled
> application/x-shockwave-flash  Shockwave Flash swf Yes
> application/futuresplash   FutureSplash Player spl Yes
> 
> Not sure about 64-bit Java at this time.

Show me your /etc/apt/sources.list

Doug.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: chroot: java fails

2008-01-06 Thread C. Ahlstrom

 Douglas A. Tutty 16:04 Sat 05 Jan  


On Sat, Jan 05, 2008 at 01:38:54PM -0600, Karl Schmidt wrote:
I'm hoping to get Flash and Java working with iceweasel on AMD64. The bits 
and notes I see are not all the same and confusing.


I've set up a wiki page http://wiki.xtronics.com/index.php/Iceweasel to put 
step by step information and I'm hoping someone here can fill out a full 
procedure so there is a place to point others as well as myself.


I don't know about Java.  If you mean for Etch, then for Flash you'll
need to set up an i386 chroot.


Not necessarily.  You can install nspluginswrapper if you're running
Firefox.

I don't have a system chroot installed, and Flash (YouTube) works fine
after using nspluginswrapper to install the Adobe plugin.  From
about:plugins:

Shockwave Flash

File name: npwrapper.libflashplayer.so
Shockwave Flash 9.0 r115

MIME Type  Description SuffixesEnabled
application/x-shockwave-flash  Shockwave Flash swf Yes
application/futuresplash   FutureSplash Player spl Yes

Not sure about 64-bit Java at this time.

--
You have literary talent that you should take pains to develop.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: chroot: java fails

2008-01-05 Thread Douglas A. Tutty
On Sat, Jan 05, 2008 at 01:38:54PM -0600, Karl Schmidt wrote:
> I'm hoping to get Flash and Java working with iceweasel on AMD64. The bits 
> and notes I see are not all the same and confusing.
> 
> I've set up a wiki page http://wiki.xtronics.com/index.php/Iceweasel to put 
> step by step information and I'm hoping someone here can fill out a full 
> procedure so there is a place to point others as well as myself.

I don't know about Java.  If you mean for Etch, then for Flash you'll
need to set up an i386 chroot.

For a basic guide, there's the amd64 howto on debian's website.

Basically, you need some free space.  If you like, it can be a separate
partition that you mount somewhere, if not just some space.  Personally,
looking at the fhs, the most appropriate place to put it was under /srv,
so I have /srv/chroot/etch-ia32

Install debootstrap on the amd64 etch system, then use it to install a
base i386 system under the chroot directory.

Install schroot on the amd64 etch system.  I posted to a debian list
today my schroot.conf file.

Then you run commands from the amd64 with e.g.

# schroot -pc etch-ia32 /usr/bin/aptitude

Then install whatever apps you need.  Note that you will not need a
kernel installed in the chroot.

Doug.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: chroot: java fails

2008-01-05 Thread Karl Schmidt
I'm hoping to get Flash and Java working with iceweasel on AMD64. The bits and notes I see 
are not all the same and confusing.


I've set up a wiki page http://wiki.xtronics.com/index.php/Iceweasel to put step by step 
information and I'm hoping someone here can fill out a full procedure so there is a place to 
point others as well as myself.





Karl Schmidt EMail [EMAIL PROTECTED]
Transtronics, Inc. WEB http://xtronics.com
3209 West 9th StreetPh (785) 841-3089
Lawrence, KS 66049 FAX (785) 841-0434

"The truth does not change according to our ability to stomach it."
--Flannery O'Connor




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: chroot: java fails

2008-01-05 Thread Douglas A. Tutty
On Sat, Jan 05, 2008 at 03:59:40PM +0100, Heikki Levanto wrote:
> On Fri, Jan 04, 2008 at 12:11:01PM -0500, Douglas A. Tutty wrote:
> > Under what conditions would you need to boot the 32-bit chroot natively?
> 
> Hopefully none - but until it works perfectly, I need a way to get back
> there, so I can use my netbank (firefox, java, etc), and other things.
> Well, perhaps to run some performance tests, to show that my go program
> really is faster on a real 64-bit system. (well, I have to write that program
> first...)
> 
> > I access the chroot with 
> > $ schroot -pc etch-ia32
> > which means that I have the schroot package installed on the amd64
> > system.
> 
> 
> Thanks. The basic setup was surprisingly easy. I used the old root partition,
> so I did not have to install anything at all!  
> 
> I still had to (re?)mount my disks manually, haven't found where to tell
> schroot which disks I need mounted, or how to get them all right. 
> 
> I run into problems with X display not coming out. xeyes times out after some
> seconds with "Could not connect to :0". I fixed that by enabling tcp
> listening (in  vi /etc/kde3/kdm/kdmrc), and setting DISPLAY="127.0.0.1"
> inside the chroot. And a "xhost +" on the amd-64 side. Xeyes works, xine
> works! Firefox works - except when I try to go to my netbank (www.nordea.dk).
> I get the login screen, but the process dies in a few seconds, often in the
> middle of me typing in my password.
> 
> I am using a 'plain' schroot, since I already have the old root system
> mounted. Perhaps I should try with a block device type thing?

Here's my /etc/schroot/schroot.conf:

8>--
# schroot chroot definitions.
# See schroot.conf(5) for complete documentation of the file format.
#
# Please take note that you should not add untrusted users to
# root-groups, because they will essentially have full root access
# to your system.  They will only have root access inside the chroot,
# but that's enough to cause malicious damage.
#
#
#
#
[etch-ia32]
type=directory
description=Debian Etch ia32
groups=ssh
run-setup-scripts=true
run-exec-scripts=true
personality=linux32
location=/srv/chroot/etch-ia32

[snip commented out example lines]

8>--

Since /srv is its own LVM, it is its own block device, but it is always
mouted in the base amd64 system's fstab.  Therefore, this is a directory
type, which give auto-mounting and set up of networking, directories,
passwords, whatever.

The groups=ssh I put in.  On my box, as a bit of security, I only allow
members of the ssh group to run ssh.  Those same users are the ones I
would allow to run apps in the chroot.  There's a general rule that, for
security, you should never trust anyone in a chroot that you wouldn't
trust with root access on the main box.  This is probably overkill with
schroot but I didn't want just any random UID to run apps either.

I found that schroot ends up leaving schroot sessions active and then
restoring them on reboot.  Since I didn't want or need persistant
sessions and I shutdown every night, I removed the symlinks from
/etc/rc*.d to /etc/init.d/schroot.

Doug.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: chroot: java fails

2008-01-05 Thread Heikki Levanto
Sorry, I was too quick in posting this. I tried the block-device thing, and
for some reason all seems to work better that way. Even my netbank! And I did
not need to set DISPLAY to 127.0.0.1, for some reason. Not sure I understand
why, but as long as it works...


Regards

   Heikki

-- 
Heikki Levanto   "In Murphy We Turst" heikki (at) lsd (dot) dk


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



chroot: java fails

2008-01-05 Thread Heikki Levanto
On Fri, Jan 04, 2008 at 12:11:01PM -0500, Douglas A. Tutty wrote:
> Under what conditions would you need to boot the 32-bit chroot natively?

Hopefully none - but until it works perfectly, I need a way to get back
there, so I can use my netbank (firefox, java, etc), and other things.
Well, perhaps to run some performance tests, to show that my go program
really is faster on a real 64-bit system. (well, I have to write that program
first...)

> I access the chroot with 
> $ schroot -pc etch-ia32
> which means that I have the schroot package installed on the amd64
> system.


Thanks. The basic setup was surprisingly easy. I used the old root partition,
so I did not have to install anything at all!  

I still had to (re?)mount my disks manually, haven't found where to tell
schroot which disks I need mounted, or how to get them all right. 

I run into problems with X display not coming out. xeyes times out after some
seconds with "Could not connect to :0". I fixed that by enabling tcp
listening (in  vi /etc/kde3/kdm/kdmrc), and setting DISPLAY="127.0.0.1"
inside the chroot. And a "xhost +" on the amd-64 side. Xeyes works, xine
works! Firefox works - except when I try to go to my netbank (www.nordea.dk).
I get the login screen, but the process dies in a few seconds, often in the
middle of me typing in my password.

I am using a 'plain' schroot, since I already have the old root system
mounted. Perhaps I should try with a block device type thing?

  - Heikki

-- 
Heikki Levanto   "In Murphy We Turst" heikki (at) lsd (dot) dk


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]