[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Matlab in sarge amd64 chroot



Matlab comes with a native x86-64 version that I've installed and runs fine on
Sarge, for what it's worth.  Not sure why you would want to run it 32bit in a
chroot, honestly, but I'm sure there's a good reason.  If you'd like some hints
getting it installed natively, I'd be happy to help.

jamie.

On Sat, Oct 01, 2005 at 01:33:39AM +0200, Gudjon I. Gudjonsson wrote:
> Hi 
>    I wrote a somewhat detailed description on how to set up Matlab in sarge 
> chroot on Debian testing/unstable amd64. Hope it helps someone.
> 
> Start with:
> $sux
> #debootstrap --resolve-deps --arch amd64 sarge /var/chroot/sarge-amd64 
> http://bach.hpc2n.umu.se/debian-amd64/debian/
> 
> Add the file /var/chroot/sarge-amd64/etc/apt/sources.list and put the 
> following line into it 
> deb http://bach.hpc2n.umu.se/debian-amd64/debian/ stable main contrib non-free
> 
> Change to the new environment
> #chroot /var/chroot/sarge-amd64
> 
> Upgrade the package list
> #apt-get upgrade
> 
> Install some packages
> #apt-get install libxtst6 libxp6 libxt6 libx11-6
> 
> Add the following lines to /etc/fstab (in base system)
> # amd64 chroot
> /home           /var/chroot/sarge-amd64/home none  bind            0       0
> /tmp            /var/chroot/sarge-amd64/tmp none   bind            0       0
> /dev            /var/chroot/sarge-amd64/dev none   rbind           0       0
> proc            /var/chroot/sarge-amd64/proc proc  defaults        0       0
> 
> Remount everything and open for X connection from chroot (in base system)
> #mount -a
> #xhost +
> 
> Hardlink the password and shadow files between the systems
> /var/chroot/sarge-amd64/etc# mv passwd passwd.old
> /var/chroot/sarge-amd64/etc# mv passwd- passwd-.old
> /var/chroot/sarge-amd64/etc# mv group group.old
> /var/chroot/sarge-amd64/etc# ln /etc/group group
> /var/chroot/sarge-amd64/etc# ln /etc/passwd passwd
> /var/chroot/sarge-amd64/etc# ln /etc/passwd- passwd-
> 
> Switch to the chroot system and do
> #export DISPLAY=:0
> 
> Then set up matlab
> 
> Add the following lines to /etc/dchroot.conf
> # sarge amd64 chroot
> amd64    /var/chroot/sarge-amd64
> 
> Then matlab can be run by typing (in the base system
> $dchroot -d amd64 -c matlab
> 
> or by adding the file /usr/local/bin/do_amd64_chroot (in the base system) and 
> put the following lines into it
> #!/bin/sh
> ARGS=""
> for i in "$@" ; do
>         ARGS="$ARGS '$i'"
> done
> exec dchroot -c amd64 -d -q "`basename $0`" "$ARGS"
> 
> Make symbolic link from matlab to do_amd64_chroot
> /usr/local/bin# ln -s do_amd64_chroot  matlab
> 
> /Gudjon
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-amd64-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: