-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup
87 lines (67 loc) · 2.39 KB
/
setup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
::: Repository (version control system)
# GitHub private
git clone https://github.com/crised/server-android
::: Repository_END
::: Java
$ java -version
java version "1.7.0_21"
OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-0ubuntu0.12.10.1)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
::: Java_END
::: Profile (.profile or .bash_rc)
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export FORGE_HOME=~/applications/forge-distribution-1.2.1.Final
#maven got issues due M2_HOME folder =/
#export M2_HOME=~/applications/apache-maven-3.0.4
#export M2=$M2_HOME/bin
#export PATH=$JAVA_HOME/bin:$M2:$FORGE_HOME/bin:$PATH
export PATH=$JAVA_HOME/bin:~/applications/apache-maven-3.0.4/bin:$FORGE_HOME/bin:$PATH
::: Profile_END
::: Maven
$ mvn -version
Apache Maven 3.0.4 (r1232337; 2012-01-17 06:44:56-0200)
Maven home: /home/luan/applications/apache-maven-3.0.4
Java version: 1.7.0_21, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.5.0-32-generic", arch: "amd64", family: "unix"
::: Maven 3_END
::: IDE
Eclipse Juno + Java EE + Android Plugin
InterlJ
::: IDE_END
::: Java EE Container
JBoss AS 7.1.1
::: Java EE Container_END
::: JBoss Forge
forge-distribution-1.2.1.Final
::: JBoss Forge_END
::: Android SDK
android-sdk_r22.0.1-linux
::: Android SDK_END
::: Sonar
sonar-3.5.1
::: Sonar_END
::: CI -> Jenkins -> not now
::: Configuration management -> Chef -> not now
::: DATABASE
#PostgreSQL 9.1
sudo -u postgres psql template1
ALTER USER postgres with encrypted password 'pgadmin3';
#Press ctrl-d to exit
sudo vim /etc/postgresql/9.1/main/pg_hba.conf
#replace "local all postgres peer" to "local all postgres md5"
sudo vim /etc/postgresql/9.1/main/postgresql.conf
# remove the '#' in the line "#listen_addresses = 'localhost'"
sudo service postgresql restart
# To create the database TELEMATIC for postgres (user)
sudo -u postgres createdb TELEMATIC
#So the user and pass we will use foward:
user: postgres & pass: pgadmin3
#To test (or with pgadmin3, the graphical tool)
sudo -u postgres psql -U postgres TELEMATIC
::: DATABASE_END
::: Drawing / UML / Diagrams -> https://www.draw.io/
:::<<>>:::
::: Suggestion for speed up the developement
Create some basic projects with JBoss Forger and clone the https://github.com/donnfelker/android-bootstrap ( see http://www.youtube.com/watch?v=YbyzRNxcvZw )