mislim da je ipak pitanje dali je OpenOffice dio paketa a ne u kojoj je verziji,sigurno da nepostoji jos 64 bitna verzija,uz 3.1 dolazi OpenOffice.org 1.1.3 verzija.
za druge verzije se mora stvoriti chroot okolina ali sa gornjom koja je dio paketa instalaciona procedura je je standardna.
za druge verzije ili aplikacije na 32 bit modusu potrebna je chroot okolina
slijedi upustvo za stvaranje iste i primjer Open Office:
Using an IA32 chroot to run 32bit applications
Introduction
The current amd64 port of debian is a pure 64bit port. This means you can’t run binary only programs which are compiled for IA32 or applications which haven’t been ported to AMD64 yet (e.g. OpenOffice.org). This is because you can’t mix 32bit applications and 64bit libraries. You would also need the 32bit versions of the libraries to run a 32bit application.
This chapter explains how you can run 32bit applications in your 64bit system using the IA32 libs from a IA32 chroot and running IA32 applications inside this chroot, in a way which is mostly transparent to the user.
The quick way
There is already a minimal set of IA32 libraries packaged for use in a 64bit Debian system. Simply do an ‘apt-get install ia32-libs’ and you will be able to run most 32bit binaries within your system.
Installing a Debian IA32 chroot system
First you need to install a IA32 base system into a chroot. You can do this with the debootstrap command:
debootstrap --arch i386 sid /var/chroot/sid-ia32 http://ftp.debian.org/debian/
To install a few more libraries you can change into this chroot and install/update packages with apt-get:
chroot /var/chroot/sid-ia32
apt-get install libx11-6
To use the 32bit libraries in your 64bit system you have to add the library path of your chroot into your /etc/ld.so.conf:
/usr/X11R6/lib
chroot i386 system libs
/var/chroot/sid-ia32/lib
/var/chroot/sid-ia32/usr/lib
/var/chroot/sid-ia32/usr/X11R6/lib
/var/chroot/sid-ia32/usr/local/lib
You also need a link to your 32bit linker in the /lib path. Change in to directory /lib and create a link to the 32bit linker library of your chroot: (The name of the 64bit linker is ld-linux-x86-64.so.2)
Now run ldconfig to update your linker’s cache.
Now you should be able to run ia32 binaries with the libs from your chroot within your 64bit system. Having the libs in a separate chroot makes it easy for you to update or install the 32bit libraries with apt-get.
Running applications inside the chroot (e.g. OpenOffice.org)
To run an application inside the chroot you will need some parts of your 64bit system tree inside the chroot. This can be achieved with a bind mount. In this example we will bind /tmp to the chroot for the X11 sockets which are in /tmp, and bind /home to access the home directories from within the chroot. You may also want to mount the /proc and /sys filesystems within the chroot. Edit your fstab and add the required paths:
ia32 chroot
/home /var/chroot/sid-ia32/home none bind 0 0
/tmp /var/chroot/sid-ia32/tmp none bind 0 0
proc /var/chroot/sid-ia32/proc proc defaults 0 0
Then mount them:
mount /var/chroot/sid-ia32/home
mount /var/chroot/sid-ia32/tmp
mount /var/chroot/sid-ia32/proc
You will also need to set up the relevant users in the chroot. Copy your /etc/passwd, /etc/shadow and /etc/group files to the chroot, or add the users manually to the passwd/shadow of your chroot. It is also possible to hard link the files when they are on the same partition. Just make sure the user exists also in the chroot.
At this point you should be able to run applications within the chroot. Change to your chroot (you must be root to do this):
chroot /var/chroot/sid-ia32
Change to the user under which you want to run the program:
su - zumsel
Set your $DISPLAY:
export DISPLAY=:0
And run something:
openoffice
Of course you must have installed the package inside the chroot for this to work.
There is also an easier way to run applications inside the chroot with the dchroot. Leave the chroot and install the dchroot package. dchroot allows users to change into chroots and run commands inside them. You must add your chroot to /etc/dchroot.conf to allow users to change into it:
ia32 chroot
ia32 /var/chroot/sid-ia32
Now you should be able to run commands inside the chroot as normal user:
dchroot -c ia32 -d openoffice
This will run openoffice in the ia32 chroot you specified in /etc/dchroot.conf. The option -d preserves the user’s environment so you don’t have to set DISPLAY or such things manually.
You can make things slightly simpler even than this. Write a small shell script like the following, and place it in your PATH: eg. /usr/local/bin/do_dchroot
#!/bin/sh
ARGS="“
for i in “$@” ; do
ARGS=”$ARGS ‘$i’"
done
exec dchroot -c ia32 -d -q “basename $0
” “$ARGS”
Make it executable:
chmod 755 /usr/local/bin/do_dchroot
Now create a symlink to this script from each command you want to run inside the chroot to this shell script:
cd /usr/local/bin
ln -s do_dchroot openoffice
ln -s do_dchroot oowriter
ln -s do_dchroot oocalc
Now you can execute openoffice by simply typing openoffice or oowriter.
You can also pass filenames on the command line to openoffice since the paths are the same inside the chroot.
nadamse da moze nekom pomoci
pozdrav