Just another Blog

“share knowledge”

back to installation II

Posted by zmhazmi on December 27, 2008

berikut adalah cara instalasi-instalasi lain pada Ubuntu Hardy

Install oracle-xe :

aku@aku-laptop:~/opt/oracle$ sudo apt-get install libaio1

ketikkan password jika diminta :

[sudo] password for aku:
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
libaio1
0 upgraded, 1 newly installed, 0 to remove and 16 not upgraded.
Need to get 8268B of archives.
After this operation, 73.7kB of additional disk space will be used.
Get:1 http://id.archive.ubuntu.com hardy/main libaio1 0.3.106-8ubuntu1 [8268B]
Fetched 8268B in 2s (3782B/s)
Selecting previously deselected package libaio1.
(Reading database … 100670 files and directories currently installed.)
Unpacking libaio1 (from …/libaio1_0.3.106-8ubuntu1_i386.deb) …
Setting up libaio1 (0.3.106-8ubuntu1) …
.
Processing triggers for libc6 …
ldconfig deferred processing now taking place
aku@aku-laptop:~/opt/oracle$

lalu ketikkan perintah berikut untuk unpacking :

aku@aku-laptop:~/opt/oracle$ sudo dpkg -i oracle-xe-universal_10.2.0.1-1.0_i386.deb
Selecting previously deselected package oracle-xe-universal.
(Reading database … 100678 files and directories currently installed.)
Unpacking oracle-xe-universal (from oracle-xe-universal_10.2.0.1-1.0_i386.deb) …
Setting up oracle-xe-universal (10.2.0.1-1.0) …
Executing Post-install steps…
-e You must run ‘/etc/init.d/oracle-xe configure’ as the root user to configure the database.

berikutnya kita diharuskan melakukan konfigurasi untuk oracle-xe :

aku@aku-laptop:~/opt/oracle$ sudo /etc/init.d/oracle-xe configure

lalu oracle meminta pengisian port, username & password

Oracle Database 10g Express Edition Configuration
————————————————-
This will configure on-boot properties of Oracle Database 10g Express
Edition.  The following questions will determine whether the database should
be starting upon system boot, the ports it will use, and the passwords that
will be used for database accounts.  Press <Enter> to accept the defaults.
Ctrl-C will abort.
.
Specify the HTTP port that will be used for Oracle Application Express [8080]:8282
.
Specify a port that will be used for the database listener [1521]:
.
Specify a password to be used for database accounts. Note that the same
password will be used for SYS and SYSTEM. Oracle recommends the use of
different passwords for each database account. This can be done after
initial configuration:
Confirm the password:
.
Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:y

coba kita isi HTTP Port nya : 8282, listener nya biarkan default saja, password misalkan : 123, dan jadikan oracle-xe berjalan pada saat boot. lalu :

Starting Oracle Net Listener…Done
Configuring Database…Done
Starting Oracle Database 10g Express Edition Instance…Done
Installation Completed Successfully.
To access the Database Home Page go to “http://127.0.0.1:8282/apex”
aku@aku-laptop:~/opt/oracle$

dan …, saatnya mengetes apakah oracle berjalan melalui browser dengan mengetikkan :

http://127.0.0.1:8282/apex

agar dapat menjalankan skrip2 sqlplus, juga perlu menambahkan beberapa environment dalam file ~/.bashrc sbb :

ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
ORACLE_SID=XE
.
PATH=$ORACLE_HOME/bin:$PATH
.
export ORACLE_HOME ORACLE_SID

Install netbeans :

pertama lakukan perintah berikut pada paket netbeans yang didapat :

aku@aku-laptop:~/opt/netbeans$ ./netbeans-6.0-linux.sh
Configuring the installer…
Searching for JVM on the system…
Extracting installation data…
Running the installer wizard…

selanjutnya akan dipandu melalui wizard.

screenshot-netbeans-ide-installer1

sebelumnya tambahkan Apache Tomcat yang ada di Customize, kemudian klik Next >. Selanjutnya halaman agreement dan klik Next >. berikutnya Installation Folder, klik Next >. untuk Glassfish App. Server nya misalkan diubah seperti berikut :

glassfish

terakhir akan diperlihatkan summary installation, klik Install

berikutnya akan berlangsung proses instalasi… tunggu sampai selesai.

Install eclipse :

ekstrak eclipse dan bikin symbolic link :

aku@aku-laptop:~/opt/eclipse$ tar -xvvzf eclipse-jee-europa-winter-linux-gtk.tar.gz
aku@aku-laptop:~/opt/eclipse$ ln -s eclipse current

coba jalankan :

aku@aku-laptop:~$ eclipse&

screenshot-eclipse

Install Glassfish stand-alone :

lakukan perintah berikut :

aku@aku-laptop:~/opt/glassfish$ java -Xmx256m -jar glassfish-installer-v2ur1-b09d-linux.jar

kemudian akan keluar License Agreement, klik Accept. maka akan dilakukan proses ekstrak file.

selanjutnya bikin symbolic link :

aku@aku-laptop:~/opt/glassfish$ ln -s glassfish current

masuk ke folder /glassfish dan lakukan perintah berikut :

aku@aku-laptop:~/opt/glassfish/glassfish$ chmod -R +x lib/ant/bin/

kemudian ketik perintah berikut :

aku@aku-laptop:~/opt/glassfish/glassfish$ lib/ant/bin/ant -f setup-cluster.xml
………..
………..
create.domain:
[exec] Using port 4848 for Admin.
[exec] Using port 8080 for HTTP Instance.
[exec] Using port 7676 for JMS.
[exec] Using port 3700 for IIOP.
[exec] Using port 8181 for HTTP_SSL.
[exec] Using default port 3820 for IIOP_SSL.
[exec] Using default port 3920 for IIOP_MUTUALAUTH.
[exec] Using default port 8686 for JMX_ADMIN.
[exec] Domain being created with profile:cluster, as specified by variable AS_ADMIN_PROFILE in configuration file.
[exec] Security Store uses: JKS
[exec] Domain domain1 created.
[exec] Login information relevant to admin user name [admin] for this domain [domain1] stored at [/home/aku/.asadminpass] successfully.
[exec] Make sure that this file remains protected. Information stored in this file will be used by asadmin commands to manage this domain.
[delete] Deleting: /home/aku/opt/glassfish/glassfish/passfile
.
BUILD SUCCESSFUL
Total time: 37 seconds

masuk ke folder /bin dan jalankan perintah berikut :

aku@aku-laptop:~/opt/glassfish/glassfish/bin$ ./asadmin start-domain domain1

Starting Domain domain1, please wait.
Log redirected to /home/aku/opt/glassfish/glassfish/domains/domain1/logs/server.log.
Redirecting output to /home/aku/opt/glassfish/glassfish/domains/domain1/logs/server.log
Domain domain1 started.
Domain [domain1] is running [Sun Java System Application Server 9.1_01 (build b09d-fcs)] with its configuration and logs at: [/home/aku/opt/glassfish/glassfish/domains].
Admin Console is available at [http://localhost:4848].
Use the same port [4848] for “asadmin” commands.
User web applications are available at these URLs:
[http://localhost:8080 https://localhost:8181 ].
Following web-contexts are available:
[/web1  /__wstx-services ].
Standard JMX Clients (like JConsole) can connect to JMXServiceURL:
[service:jmx:rmi:///jndi/rmi://aku-laptop:8686/jmxrmi] for domain management purposes.
Domain listens on at least following ports for connections:
[8080 8181 4848 3700 3820 3920 8686 ].
Domain supports application server clusters and other standalone instances.

buka browser, lalu ketikkan :

http://localhost:4848

seharusnya akan tampil seperti berikut jika tidak ada masalah.

screenshot-login-mozilla-firefox

Install Apache Tomcat :

ketikkan perintah untuk melakukan ekstraksi & bikin symbolic link :

aku@aku-laptop:~/opt/tomcat$ tar -xvvzf apache-tomcat-6.0.16.tar.gz
aku@aku-laptop:~/opt/tomcat$ ln -s apache-tomcat-6.0.16 current

masuk ke folder /current dan lakukan perintah berikut :

aku@aku-laptop:~/opt/tomcat/current$ chmod -R +x conf/

ketikkan perintah berikut, dan untuk merubah port tomcat lakukan pada baris seperti dibawah ini :

aku@aku-laptop:~/opt/tomcat/current/conf$ sudo gedit server.xml
.
<Connector port=”8880″ protocol=”HTTP/1.1″
connectionTimeout=”20000″
redirectPort=”8443″ />

ketikkan perintah berikut, dan untuk menambah user beserta role pada tomcat lakukan seperti berikut :

aku@aku-laptop:~/opt/tomcat/current/conf$ sudo gedit tomcat-users.xml
.
<tomcat-users>
<role rolename=”manager”/>
<user username=”tomcat” password=”manager” roles=”manager”/>
</tomcat-users>

start tomcat dengan perintah :

aku@aku-laptop:~/opt/tomcat/current/bin$ ./startup.sh

masuk ke browser, dan ketikkan

http://localhost:8880/

seharusnya akan tampil seperti gambar berikut, jika tidak ada masalah

screenshot-apache-tomcat-mozilla-firefox

stop tomcat dengan perintah :

aku@aku-laptop:~/opt/tomcat/current/bin$ ./shutdown.sh

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>