Não foi possível enviar o arquivo. Será algum problema com as permissões?
Diferenças
Aqui você vê as diferenças entre duas revisões dessa página.
Ambos lados da revisão anterior Revisão anterior | Próxima revisão Ambos lados da revisão seguinte | ||
software:art:install [2007/12/11 09:50] paulojus |
software:art:install [2007/12/11 10:01] paulojus |
||
---|---|---|---|
Linha 5: | Linha 5: | ||
We will also assume you have ''root'' access to the system, altough many instructions can also use ''sudo'' | We will also assume you have ''root'' access to the system, altough many instructions can also use ''sudo'' | ||
- | === 1. Installaing the [[http://www.r-project.org|R software]] === | + | ==== Installing the R software ==== |
- | 1.1 Add the R repository in the ''source.list'' (alternativelly you may use the synaptic tool).\\ | + | - Add the R repository in the ''source.list'' (alternativelly you may use the synaptic tool).\\ |
- | + | - Open the file:\\ | |
- | 1.1.1 Open the file:\\ | + | |
$ sudo su - | $ sudo su - | ||
root$ vim /etc/apt/sources.list | root$ vim /etc/apt/sources.list | ||
- | + | - Add the repository by including the following line to the ''source.list'' file\\ | |
- | 1.1.2 Add the repository by including the following line to the ''source.list'' file\\ | + | |
deb http://cran.r-project.org/bin/linux/ubuntu gutsy/ | deb http://cran.r-project.org/bin/linux/ubuntu gutsy/ | ||
- | + | - Install the keys (Ubuntu specific)\\ | |
- | 1.2.3 Install the keys (Ubuntu specific)\\ | + | |
root$ gpg --keyserver subkeys.pgp.net --recv-key E2A11821 | root$ gpg --keyserver subkeys.pgp.net --recv-key E2A11821 | ||
root$ gpg -a --export E2A11821 | sudo apt-key add - | root$ gpg -a --export E2A11821 | sudo apt-key add - | ||
root$ apt-get update | root$ apt-get update | ||
- | + | - Install R | |
- | 1.2.4 Install R | + | |
root$ apt-get install r-base r-base-core r-base-html r-base-latex r-doc-html r-doc-info r-doc-pdf r-recommended | root$ apt-get install r-base r-base-core r-base-html r-base-latex r-doc-html r-doc-info r-doc-pdf r-recommended | ||
- | === 2. Install other tools === | + | ==== 2. Install other tools ==== |
root$ sudo apt-get install g++ libpq-dev gfortran xemacs21 ess | root$ sudo apt-get install g++ libpq-dev gfortran xemacs21 ess | ||
- | === 3. Get the tools to install **aRT** dependencies === | + | ==== 3. Get the tools to install **aRT** dependencies ==== |
This includes installing a ''MySQL'' data base and compiling ''TerraLib''\\ | This includes installing a ''MySQL'' data base and compiling ''TerraLib''\\ | ||
root$ wget http://www.leg.ufpr.br/aRT/install-aRT-dep.zip | root$ wget http://www.leg.ufpr.br/aRT/install-aRT-dep.zip | ||
Linha 43: | Linha 39: | ||
$ source /etc/bash.bashrc | $ source /etc/bash.bashrc | ||
- | === Installing R packages: aRT and sp === | + | ==== Installing R packages: aRT and sp ==== |
Start R:\\ | Start R:\\ | ||
root$ R | root$ R | ||
Linha 51: | Linha 47: | ||
> install.packages("aRT", contrib="http://www.leg.ufpr.br/aRT") | > install.packages("aRT", contrib="http://www.leg.ufpr.br/aRT") | ||
- | === Installing other R Spatial packages === | + | ==== Installing other R Spatial packages ==== |
You may wish to install other **Spatial** packages from the R-PROJECT. Required packages can be installed individually or the entire //CRAN SPATIAL Task View// can be installed as follows from the R prompt.\\ | You may wish to install other **Spatial** packages from the R-PROJECT. Required packages can be installed individually or the entire //CRAN SPATIAL Task View// can be installed as follows from the R prompt.\\ | ||
> install.packages("ctv", dep=T, repos="http://cran.fiocruz.br/") | > install.packages("ctv", dep=T, repos="http://cran.fiocruz.br/") | ||
Linha 57: | Linha 53: | ||
> install.views("Spatial") ## takes a loooooog time | > install.views("Spatial") ## takes a loooooog time | ||
+ | Quit R with: | ||
+ | > q(save=T) | ||
- | Para dar privilégions totais a um usuário no MySQL: | + | ==== MySQL setup === |
- | + | Start the BDMS with ''root'' (DBMS root, not system root!!!) permissions from the linux prompt with:\\ | |
- | - Inicie o mysql na linha de comando do LINUX com: | + | root$ mysql -u root -p |
- | + | ||
- | $ mysql -u root -p | + | |
- | + | ||
- | - No ''prompt'' do MySQL: (indicado por >) digite, por exemplo apra o usuário aluno): | + | |
+ | You will be prompt for the DBMS root password. After typing it in you will the the mysql prompt ''(mysql >)''. To grant full privileges to a MySQL user (''aluno'' in the example below) type:\\ | ||
> grant all privileges on *.* to aluno@localhost | > grant all privileges on *.* to aluno@localhost | ||
+ | Other user and permissions can be set. However we will use **aRT** tools to do this!!! Even the above instructions could be se from **aRT** (using the aRT function ''addPermissions()'') if the DBMS root pasword is available. | ||