Saturday, February 26, 2011

How Many Monsters Can A Kid Have

Install in text mode on Linux servers

The new Alfresco installer will install BitRock for the product together with all ancillary components (JVM, Tomcat, MySQL, OpenOffice, Imagemagick, ...) very easily and quickly.
But often you need to install Alfresco on a machine that has no GUI, but which can only be accessed remotely via the terminal in characters, such as ssh and scp. In this case, either you give up using the installer and instead proceed to the manual installation and configuration of all the individual components, or you can easily continue to use its text mode installer. Below is a description how to proceed.

In our case, we describe a particular installation on a remote server
Ubuntu Linux 4.10 (Lucid) 64-bit. ( ).

1) Download the installer (or
Community Enterprise) for the operating system and make it executable chmod + x alfresco-enterprise-installer-3.4.0-linux-x64.bin

2) Display available from the command line, using the parameter - help ./alfresco-enterprise-3.4.0-installer-linux-x64.bin - help
A list of options:

The option that interests you
- mode \u0026lt;mode>
. The default mode is

./alfresco-enterprise-3.4.0-installer-linux-x64.bin - text-mode - installer-language giving it sending part of the installation process, which poses a series of questions about the components to install and use on ports. Since in this demonstration we decided not to install Alfresco as root but using a normal user, you must select ports above 1024. Normally, on a test or production environment, it is good practice to create a dedicated user and group for Alfresco, by providing the necessary privileges to use all ports.
The home screen:


mauri @ ubuntu10-laptop: ~ $ ./alfresco-enterprise-3.4.0-installer-linux-x64.bin - Text mode - installer-language en
------------------------------------------------- -------------------- Welcome to the program installation of Alfresco Enterprise ------------------ -------------------------------------------------- -
Select the components you want to install, uncheck the components you do not
want. Click Next when you are ready to continue.
MySQL: Y (Can not be edited)
Java: Y (Can not be edited)
Alfresco: Y (Can not be edited)
SharePoint [Y / n]: y
Records Management [Y / n]: n Web Quick
Start [Y / n]: y
Web Project Management (AVM) [Y / n]: n
Quickr Connector Support [Y / n]: n
OpenOffice [Y / n]: y
The selection and 'correct? [Y / n]: y


We proceed with the selection of doors, after choosing the option "Advanced" menu in the Installation Type:


--------------- -------------------------------------------------- ----


Installation Type


[1] Easy - Installs servers with the default configuration
[2] Advanced - Configures server ports and service properties
Choose an option [1]: 2

Here you must choose a folder where to install Alfresco and MySQL database if you use the attachment, or an existing installation. In this case we prefer to use MySQL on Ubuntu, so you can manage yourself
------------------------------- --------------------------------------
Installation Folder

Please choose a folder to install Alfresco Enterprise.

Select a folder [/ home/mauri/alfresco-3.4.0]

---------------------------------------------- -----------------------
Database Installation

Please select Which database configuration you wish to use. If you select an existing database Should you configure the application before running the Alfresco Alfresco server.

[1] I wish to use the bundled MySQL database
[2] I wish to use an existing database
Choose an option [1]: 2

E 'Note that the JDBC URI proposal The default is false. Replace then later in the configuration file alfresco-global.properties
jdbc: mysql: / / localhost / alfresco? UseUnicode = yes #38 characterEncoding=UTF-8
con

jdbc:mysql://localhost/alfresco?useUnicode=yes
& characterEncoding=UTF-8 Procediamo quindi fino alla fine, rispondendo alle domande poste. Alla fine partirà il processo di installazione vero e proprio

---------------------------------------------------------------------
Il programma d'installazione e' pronto per installare Alfresco Enterprise sul
tuo pc.
Vuoi continuare? [Y/n]: y

---------------------------------------------------------------------
Attendere prego, mentre Alfresco Enterprise e'installato sul tuo computer.

 Installazione...
 0% ______________ 50% ______________ 100%
 ########################################

Al termine della procedura è necessario andare a controllare che il file alfresco-global.properties sia configurato correttamente (è il file più importante e si trova sotto
tomcat/shared/classes ). Da notare che è raccomandato che MySQL sia configurato per usare il charset UTF-8. Per la corretta configurazione e creazione database are available online
excellent guides. Wanting to use a JVM other than bundled with Alfresco, you can rename the folder such as Java present in the Alfresco installation folder, then create a symbolic link to the JDK already on your machine. In this case, having installed the latest Sun JDK for Linux and having $ JAVA_HOME = / usr/lib/jvm/java-6-sun you can issue the following command:
ln-s / usr / lib / jvm / java-6-sun java the start Alfresco will use this instead of the integrated JVM, if that's what you want. Make sure that this is but one version of JVM from among those certified and supported, or may cause problems.
file tomcat / bin / setenv.sh
can then be edited to change the JAVA_OPTS
and optimize (knowing exactly what you're doing), the parameters of the Java Virtual Machine. To get started you should first read a good document topic.

finished, to start Alfresco, it is useful to have suffered an eye on the logs, then you can run the following command:
. / Alfresco.sh start: tail-f tomcat / logs / catalina.out
UPDATE: I added the instructions to create the database mysql

.

0 comments:

Post a Comment