ia32-libs vs. ia32 chroot

2004-11-30 Thread Philip Warrick
(Sorry for the no-subject post)

My /etc/apt/sources.list in the chroot looks like this:

deb ftp://ftp.debian.org/debian/ testing main
deb-src ftp://ftp.debian.org/debian/ testing main
# deb http://security.debian.org/ testing/updates main

as created by apt-setup (I said no the the security option, not knowing if I 
wanted this).

These files do exist in the chroot: /etc/hosts, /etc/passwd, /etc/group (not 
/etc/groups), /etc/shadow,
/proc (as described in the AMD-64 How-to).  I had done nothing with /etc/mtab 
and its entries were:

proc /proc proc rw 0 0

whereas my chroot /etc/mtab was simply

/dev/sda7 / ext3 rw,errors=remount-ro 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
proc /var/chroot/sid-ia32/proc proc rw 0 0
/dev/sda1 /mnt/winC ntfs ro,noexec,nosuid,nodev,umask=0222 0 0
/dev/sda5 /mnt/winD ntfs ro,noexec,nosuid,nodev,umask=0222 0 0
/home /var/chroot/sid-ia32/home none rw,bind 0 0
/tmp /var/chroot/sid-ia32/tmp none rw,bind 0 0
//lmsrd01/DataDrive /mnt/lmsrd01 smbfs rw 0 0
/dev/sda6 /mnt/winE vfat rw,noexec,nosuid,gid=100,umask=000 0 0

Following ?good? advice elsewhere 
(http://hacktavista.com/howto/chroot_slackware.html) I did the following for 
the mtab file:
rm -f /etc/mtab
ln -s /proc/mounts /etc/mtab

the contents of /proc/mounts in the chroot are:

rootfs / rootfs rw 0 0
/dev2/root2 / ext3 rw 0 0
proc /proc proc rw,nodiratime 0 0
devpts /dev/pts devpts rw 0 0
proc /var/chroot/sid-ia32/proc proc rw,nodiratime 0 0
/dev/sda1 /mnt/winC ntfs 
ro,noatime,nodiratime,nosuid,nodev,noexec,uid=0,gid=0,umask=0222,nls=cp437,errors=continue,mft_zone_multiplier=1
 0 0
/dev/sda5 /mnt/winD ntfs 
ro,noatime,nodiratime,nosuid,nodev,noexec,uid=0,gid=0,umask=0222,nls=cp437,errors=continue,mft_zone_multiplier=1
 0 0
/dev2/root2 /var/chroot/sid-ia32/home ext3 rw 0 0
/dev2/root2 /var/chroot/sid-ia32/tmp ext3 rw 0 0
//lmsrd01/DataDrive /mnt/lmsrd01 smbfs 
rw,nodiratime,nosuid,nodev,file_mode=0744,dir_mode=0755 0 0
/dev/sda6 /mnt/winE vfat 
rw,nodiratime,nosuid,noexec,gid=100,fmask=,dmask= 0 0

After all that I still get the same errors.  apt is definitely able to connect 
(apt-get update downloaded some packages successfully).

Any ideas?

Thanks,

Phil


[EMAIL PROTECTED] (Bob Proulx) writes:

 Phil Warrick wrote:
 I'm going with the chroot approach then.
 
 Following the AMD64 HOWTO in section Running applications inside the 
 chroot,  I followed the instructions and then I wanted to try to run a 
 32-bit program.
 
 First I wanted to try to run some X-based program so I tried openoffice, 
 which was not yet installed.  When I tried to install it in the chroot, 
 I got the following errors below.
 [...]
 Can someone indicate what might be wrong?  I'm using kernel 
 2.6.8-9-amd-k8-smp on a dual Opteron system.

 Check your /etc/apt/sources.list file *in the chroot* and make sure it
 can get to the 32-bit archive.  Make sure that 'apt-get update' works
 in the chroot.  It looks to me like apt has no package lists at all.

 If you have 'dchroot' configured you can run the commands like this:

   dchroot editor /etc/apt/sources.list

   dchroot apt-get update
   dchroot apt-get install openoffice.org

 Bob

Don't forget /etc/hosts, /etc/passwd, /etc/groups, /etc/shadow,
/etc/mtab, /proc in the chroot.

MfG
Goswin


Re: ia32-libs vs. ia32 chroot

2004-11-30 Thread Sven Krahn
Philip Warrick wrote:
[...]
After all that I still get the same errors.  apt is definitely able to connect 
(apt-get update downloaded some packages successfully).
Any ideas?
 

In your chroot, modify your /etc/apt/sources.list:
deb ftp://ftp.debian.org/debian/ sid main contrib non-free
deb-src ftp://ftp.debian.org/debian/ sid main contrib non-free
From your earlier posts I think you have forgotten the 'contrib' and 
'non-free' entries.
Hope this helps.

--
Best regards
Sven



Re: ia32-libs vs. ia32 chroot

2004-11-29 Thread Bob Proulx
Phil Warrick wrote:
 I'm going with the chroot approach then.
 
 Following the AMD64 HOWTO in section Running applications inside the 
 chroot,  I followed the instructions and then I wanted to try to run a 
 32-bit program.
 
 First I wanted to try to run some X-based program so I tried openoffice, 
 which was not yet installed.  When I tried to install it in the chroot, 
 I got the following errors below.
 [...]
 Can someone indicate what might be wrong?  I'm using kernel 
 2.6.8-9-amd-k8-smp on a dual Opteron system.

Check your /etc/apt/sources.list file *in the chroot* and make sure it
can get to the 32-bit archive.  Make sure that 'apt-get update' works
in the chroot.  It looks to me like apt has no package lists at all.

If you have 'dchroot' configured you can run the commands like this:

  dchroot editor /etc/apt/sources.list

  dchroot apt-get update
  dchroot apt-get install openoffice.org

Bob


signature.asc
Description: Digital signature


Re: ia32-libs vs. ia32 chroot

2004-11-29 Thread Goswin von Brederlow
[EMAIL PROTECTED] (Bob Proulx) writes:

 Phil Warrick wrote:
 I'm going with the chroot approach then.
 
 Following the AMD64 HOWTO in section Running applications inside the 
 chroot,  I followed the instructions and then I wanted to try to run a 
 32-bit program.
 
 First I wanted to try to run some X-based program so I tried openoffice, 
 which was not yet installed.  When I tried to install it in the chroot, 
 I got the following errors below.
 [...]
 Can someone indicate what might be wrong?  I'm using kernel 
 2.6.8-9-amd-k8-smp on a dual Opteron system.

 Check your /etc/apt/sources.list file *in the chroot* and make sure it
 can get to the 32-bit archive.  Make sure that 'apt-get update' works
 in the chroot.  It looks to me like apt has no package lists at all.

 If you have 'dchroot' configured you can run the commands like this:

   dchroot editor /etc/apt/sources.list

   dchroot apt-get update
   dchroot apt-get install openoffice.org

 Bob

Don't forget /etc/hosts, /etc/passwd, /etc/groups, /etc/shadow,
/etc/mtab, /proc in the chroot.

MfG
Goswin




ia32-libs vs. ia32 chroot

2004-11-24 Thread Phil Warrick
Hi,
In the AMD64 HOW-TO, two ways to run 32 bit apps are described, the 
quick way via ia32-libs and Installing a Debian IA32 chroot system.

Can someone expand on the pros/cons of the two approaches?  Is the 
ia32-libs approach just too limited for most people?

My need is to run VSS under wine.
I'm new to both linux and 64-bit and have seen more or less smooth 
sailing so far.  Thanks to all contributors.

Any comments would be most appreciated,
Phil



Re: ia32-libs vs. ia32 chroot

2004-11-24 Thread Alan Woodland
IA32 Chroot:
+ Can install other libraries very easily
+ Can add library directories to /etc/ld.so.conf so it runs like the 
ia32-libs
- Slightly more effort to setup
- Takes up quite a bit more space

ia32-libs:
+ Install and run (for limited library dependencies)
- Not a complete 32bit system (Ie running 32bit firefox isn't anywhere 
near as easy)
+ Less space

In my opinion that about sums up the important points to consider, I've 
probably missed a couple or explained some badly though

Alan