- Extract the distribution archive, i.e. apache-maven-3.2.3-bin.tar.gz to the directory you wish to install Maven 3.2.3. These instructions assume you chose /usr/local/apache-maven-3.2.3.
- Edit the profile file, to add environment variables
- sudo gedit /etc/profile
- Add to the end
- #MAVEN
M2_HOME=/usr/local/apache-maven-3.2.3
M2=$M2_HOME/bin
PATH=$M2:$PATH
export M2_HOME
export M2
export PATH - To update the environment:
- source /etc/profile
- . /etc/profile (with the space)
- Run mvn --version to verify that it is correctly installed.
Friday, October 3, 2014
How to install Maven on Ubuntu
Wednesday, October 1, 2014
Jars necessários de se incluir no Jersey 2.12 para se ter suporte a JSON
Jars necessários de se incluir no Jersey 2.12 para se ter suporte a JSON
jersey-json.jar
jersey-media-moxy-2.12.jar
org.eclipse.persistence.antlr-2.6.0-M3.jar
org.eclipse.persistence.asm-2.6.0-M3.jar
org.eclipse.persistence.core-2.6.0-M3.jar
org.eclipse.persistence.moxy-2.6.0-M3.jar
Download pack:
https://www.dropbox.com/sh/kyo5wji1gqlr3v0/AAB7FWHOeiSSQJes7ubAtNCra?dl=0
jersey-json.jar
jersey-media-moxy-2.12.jar
org.eclipse.persistence.antlr-2.6.0-M3.jar
org.eclipse.persistence.asm-2.6.0-M3.jar
org.eclipse.persistence.core-2.6.0-M3.jar
org.eclipse.persistence.moxy-2.6.0-M3.jar
Download pack:
https://www.dropbox.com/sh/kyo5wji1gqlr3v0/AAB7FWHOeiSSQJes7ubAtNCra?dl=0
Thursday, May 1, 2014
How to configure Tomcat7 Server with Mysql database on Amazon EC2 Amazon AMI distribution
Posso usar este tutorial:
http://wpcertification.blogspot.com.br/2014/02/install-apache-tomcat-on-amazon-ec2.html
Connect to Amazon Server:
ssh -i learnbyheart.pem ec2-user@54.173.106.139
Porem, é preciso atualizaro iptables de forma que o tomcat comece a escutar a porta 80. (A 8080 também não pegará sem os comandos abaixos):
# cria a roda da porta 80 para 8080. sudo iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080 # salva a rota. sudo service iptables save # reinicia a tabela de rotas. sudo service iptables restart
Mysql Installation:
# recebe permissao de root.
sudo su
# instala o pacote do mysql.
yum install mysql mysql-server mysql-libs
# inicia o servico.
service mysqld start
# configura a inicializacao.
chkconfig --levels 235 mysqld on
# inicia as configuracoes (IMPORTANTE - para configurar os privilegios iniciais).
mysql_secure_installation
mysql -u root -p
CREATE DATABASE db_learnbyheart;
CREATE USER 'learnbyheart'@'localhost' IDENTIFIED BY 'lbhpwd';
GRANT ALL ON db_learnbyheart.* TO 'learnbyheart'@'localhost';
FLUSH PRIVILEGES;
How to upload file
(don't forget to restart tomcat, or reload axis... to make the updates take effects)
- scp -i learnbyheart.pem /usr/share/tomcat-7.0.34/webapps/axis2/WEB-INF/services/Cloud.aar ec2-user@54.173.106.139:~
- scp -i learnbyheart.pem /usr/share/tomcat-7.0.34/webapps/axis2/WEB-INF/services/Cloud.aar ec2-user@54.173.106.139:/usr/share/tomcat7/webapps/axis2/WEB-INF/services/
Os comandos acima foram retirados deste tutorial mais completo:
http://www.wbotelhos.com/amazon-ec2-com-java-mysql-e-tomcat
Friday, February 28, 2014
How to configure MySQL DB Connector on Tomcat7
Frist, add the db connector driver .jar to the folder ...tomcat7/lib
Then, add the following code before DriverManager.getConnection(...);
Class.forName("com.mysql.jdbc.Driver");
IT's done!
Then, add the following code before DriverManager.getConnection(...);
Class.forName("com.mysql.jdbc.Driver");
IT's done!
Thursday, February 27, 2014
Change the computer resolution Ubuntu
[this process was accomplished using Ubuntu 12.04 LTS]
Commands:
xrandr // get the currently display modes
xrandr --output LVDS1 --scale XxX // scale the image
xrandr --output LVDS1 --panning 1640x922 // change the resolution output
I used this sentence:
xrandr --output LVDS1 --scale 1.2x1.2 --panning 1640x922
xrandr --output LVDS1 --scale 1x1 --panning 1366x768
Commands:
xrandr // get the currently display modes
xrandr --output LVDS1 --scale XxX // scale the image
xrandr --output LVDS1 --panning 1640x922 // change the resolution output
I used this sentence:
xrandr --output LVDS1 --scale 1.2x1.2 --panning 1640x922
xrandr --output LVDS1 --scale 1x1 --panning 1366x768
Thursday, February 20, 2014
How to install Lamp/Xampp on Ubuntu (php, mysql, apache server)
Newer:
http://www.tecmint.com/ubuntu-14-04-server-installation-guide-and-lamp-setup/
, starting from step 31
Older:
https://help.ubuntu.com/community/ApacheMySQLPHP
how to install phpmyadmin after that:
sudo apt-get install phpmyadmin
If you have problems accessing phpmyadmin:
http://askubuntu.com/questions/19127/how-to-access-phpmyadmin-after-installation
http://www.tecmint.com/ubuntu-14-04-server-installation-guide-and-lamp-setup/
, starting from step 31
Older:
https://help.ubuntu.com/community/ApacheMySQLPHP
how to install phpmyadmin after that:
sudo apt-get install phpmyadmin
If you have problems accessing phpmyadmin:
http://askubuntu.com/questions/19127/how-to-access-phpmyadmin-after-installation
Tuesday, February 11, 2014
Subscribe to:
Comments (Atom)