Jump to content

it

From The Document Foundation Wiki

Questa pagina fornisce le istruzioni su come Installare più copie di LibreOffice in Parallelo su GNU+Linux.

Introduzione

Se installi spesso LibreOffice in parallelo, potresti voler usare questo semplice script. In alternativa puoi usare questo script per l'installazione iniziale e questo script se devi installare un language pack successivamente.

  • Le vecchie versioni di LibreOffice sono archiviate qui.

Passo 1: Determinare l'Architettura del Tuo Sistema

I pacchetti di LibreOffice sono offerti in due tipi di pacchettizzazione su Linux: RPM e DEB, e per le due differenti architetture, 32-bit e 64-bit.

I pacchetti RPM sono usati sulle distro Linux basate su Fedora, openSUSE, Mandriva, ecc.

I pacchetti DEB sono usati sulle distro Linux basate su Debian, Ubuntu, ecc.

Se non sei sicuro di quale architettura è usata dalla tua CPU, apri un terminale (konsole su KDE, Gnome Terminal su Gnome...) e scrivi

uname -m

se il risultato è "x86_64" stai usando un sistema a 64-bit. Se il risultato è qualcosa tipo "i386" o "i586" stai usando un sistema a 32 bit. Se il comando "uname -i" risponde "unknown", prova

uname -a

. dovresti trovare "x86_64" nella risposta per una 64-bit o qualcosa tipo "i386" o "i586" per una 32-bit.

Determinare la giusta architettura è importante poiché i pacchetti sono differenti per i tipi di CPU.

Passo 2: Scaricare e Scompattare i File di Installazione

Dopo aver scaricato il giusto pacchetto (resp. da qui per le pre-releases), scompatta il pacchetto, sia graficamente con gli strumenti del tuo ambiente desktop (per esempio, su KDE: tasto destro ▸ Estrai qui) o usando il seguente comando in un terminale:

tar -vxzf file-name

una cartella con un nome simile a LibO_3.3.0rc2_Linux_x86-64_install-rpm_en-US verrà creata. Al suo interno, a seconda della versione scaricata, troverai una cartella chiamata RPMS o DEBS. Lì dentro trovaerai qualche altra cartella ed una cinquantina di file circa.

Passo 3: Ritoccare la Destinazione di Installazione

Dall'interno della cartella (RPMS or DEBS) crea una nuova cartella con un nome semplice, qualcosa tipo "install" con il tuo file manager o dalla shell eseguendo mkdir install. Lancia un terminale da quella cartella (o, se sei già in un terminale, scrivi solo cd install per entrare in quella cartella). Da lì, lancia come utente normale:

Per pacchetti RPM:

for i in ../*.rpm; do rpm2cpio $i | cpio -id; done

Per pacchetti DEB:

for i in ../*.deb; do dpkg-deb -x $i . ; done

Digita i comandi appropriati esattamente come scritto qui sopra! Non dimenticare nemmeno un singolo puntino!

Vedrai che una nuova cartella chiamata "opt" è stata creata lì con molte altre cartelle e file che contengono l'intera installazione di LibreOffice.

Step 4 - Optional, but Recommended when Testing: Changing the User Profile location

NOTE: you can find a complete article about the user profile here.

By default, the user profile is stored in ~/.libreoffice/3/user

You can change the user directory that will be used by the new installation by editing the file bootstraprc you find in

path-to-install-folder/install/opt/libreoffice/program/bootstraprc

To do so, you need add write permission for that file so that you can modify it. You can modify the file permission by using either the tools from your desktop environment (for example, on KDE: right click ▸ Properties ▸ Permissions and change the value for Owner to "Read and write possible") or by using the chmod command on a shell command line:

chmod +w bootstraprc

By editing this file, you can change the value for the "UserInstallation" variable from $SYSUSERCONFIG/.libreoffice/3 to any other directory of your choice. For example

UserInstallation=$ORIGIN/..

(Don't omit any of the dots!) will use as user folder the "install" folder, which is one level up in the file hierarchy from $ORIGIN.

Step 5 - Optional: Applying a Language Pack

After unpacking the language pack, in the same way described to unpack the installation packages, you will obtain an "opt" folder with all the localized files. Opening a terminal in the folder that contains this new opt folder, you can now proceed to do a "recursive copy" of that folder over the other "opt" that contains the full LibreOffice suite:

cp -R * path-to-install-folder/install/

Step 6 - Optional: Applying a Local Help Pack

After unpacking the help pack, in the same way described to unpack the installation packages, you will obtain an "opt" folder with all the localized help files. Opening a terminal in the folder that contains this new opt folder, you can now proceed to do a "recursive copy" of that folder over the other "opt" that contains the full LibreOffice suite:

cp -R * path-to-install-folder/install/

Step 7: Starting the Application

Add a script at the top-level of the LibreOffice directory hierarchy to start the program:

Alternative:

On

path-to-install-folder/install/opt/libreoffice/program

you will find different scripts to start the different LibreOffice apps: soffice, swriter, scalc, sdraw, simpress.

NOTE: with this kind of "user installation" you cannot use the desktop integration package, you will need to associate files and create system menu entries "by hand" - if you wish (but there's no need to do any desktop integration), it is easy to start any of the LibreOffice apps by opening a shell, changing to the "program" folder beneath the above-created installation folder (called "install") [the whole path might look like install/opt/libreoffice3.4/program] and starting the desired application: You can issue e.g.,

./soffice

to start the LibreOffice application or

./swriter

to start Libreoffice Writer (or ./scalc for Calc, ./simpress for impress, and so on.

Of course, you can start any of the above LibreOffice apps by just clicking its filename (soffice, swriter, scalc, sdraw, simpress, smath or sbase) in your file manager. But starting them from a shell gives you some additional info about program execution which might be helpful for testing/debugging purposes.