Ruang Web Hosting Indonesia - Solusi Handal, Cepat dan Murah

Archive for August, 2008

Install VNC Server di Debian

August 19, 2008 - 12:58 pm No Comments

[root@bayoe ~]# apt-get install xserver-xorg xorg ssh

[root@bayoe ~]# dpkg-reconfigure xserver-xorg

[root@bayoe ~]# apt-get install xfce4

[root@bayoe ~]# startx

[root@bayoe ~]# apt-get install tightvncserver

[root@bayoe ~]# vi /root/.vnc/xstartup

#!/bin/sh

xrdb $HOME/.Xresources
xsetroot -solid grey
x-terminal-emulator -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
x-window-manager &
xfwm4 &
xfce4-panel &

[root@bayoe ~]# tightvncserver

Done :)

Setting Roc@t-Remote Catalogue (Apache, Oracle InstantClient, PHP di RHEL5)

August 19, 2008 - 12:45 pm No Comments

Apa sih itu Roc@t

ROC@T merupakan produk dari PT. Sigma Cipta Utama (http://scu.co.id) dibuat untuk membantu Anda dalam pengelolaan pencarian dan peminjaman pada lokasi penyimpanan data katalog di perusahaan Anda agar lebih efisien dalam pencarian, pendistribusian dan pemeliharaannya. Hal ini memungkinkan untuk membuat index dari data yang disimpan pada banyak unit penyimpanan asset menjadi katalog yang secara sentral dikelola dari data fisik yang didistribusikan. Aplikasi ini juga termasuk sistem pemesanan. Sistem pemesanan adalah fasilitas yang membantu pengguna untuk memesan beberapa item dari catatan yang ditunjukkan pada laporan

Apa aja sih yang dibutuhkan :

  1. Web Server (Apache)

  2. Oracle Database atau InstantClient jika database Oraclenya terpisah

  3. PHP

Langkah Instalasi di sistem operasi RedHat Enterprise Linux 5

1. Compile Apache

Buka console/terminal untuk memulai installasi

Pindah ke direktori dimana file aplikasi disimpan

Ekstract file Apache dengan mengetikkan

tar -xvf httpd-[versi aplikasi].tar.gz

Pindah ke dalam folder aplikasi Apache dengan mengetikkan perintah

cd httpd-[versi aplikasi]/

Compile aplikasi dengan mengetikkan perintah

./configure –enable-so

make

make install

2. Install Oracle InstantClient

Buka console/terminal untuk memulai installasi

Pindah ke direktori dimana file aplikasi disimpan

Install aplikasi dengan mengetikkan perintah

rpm -ivh oracle-instantclient-basic-11.1.0.1-1.i386.rpm

PATH instantclient di : /usr/lib/oracle/11.1.0.1/client/

Set Environment Variables:

export LD_LIBRARY_PATH=/usr/lib/oracle/11.1.0.1/client/:$PATH

export ORACLE_HOME=/usr/lib/oracle/11.1.0.1/client/

export PATH=$ORACLE_HOME/bin:$PATH

tambah baris diatas ke /etc/rc.local sehingga variabel tetap efektif walaupun setelah reboot

3. Compile PHP

Buka console/terminal untuk memulai installasi

Pindah ke direktori dimana file aplikasi disimpan

Ekstract file PHP dengan mengetikkan

tar -xvf php-[versi aplikasi].tar.gz

Pindah ke dalam folder aplikasi PHP dengan mengetikkan perintah

cd php-[versi aplikasi]/

Compile aplikasi dengan mengetikkan perintah

./configure –with-apxs2=/usr/local/apache2/bin/apxs –enable-debug –with-zlib-dir=/usr/ local/lib –enable-dba –enable-dbase –with-regex –with-pear –with- oci8=instantclient,/usr/lib/oracle/11.1.0.1/client/lib/

make

make install

Jika Anda terhubung ke database Oracle Anda harus mendefinisikan service dalam file yang bernama tnsnames.ora. Buat file tnsnames.ora di direktori /etc/

Contoh tnsnames.ora :

ORCL =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.1)(PORT = 1521))

)

(CONNECT_DATA =

(SID = ORCL)

(SERVER = DEDICATED)

)

)

Setting variabel TNS_ADMIN untuk mencari variabel tnsnames.ora :

export TNS_ADMIN=/etc/

dan tambah baris diatas pada /etc/rc.local
Done :)

Install Oracle Database 11g R1 di RHEL 5

August 16, 2008 - 4:53 am No Comments

Sumber :

http://www.oracle.com/technology/pub/articles/smiley-11gr1-install.html
http://www.sqlplex.com/articles/oracle/installation/installing-oracle-database-11g.html
http://rattyboy.wordpress.com/2008/07/09/encrypted-rsync-with-centos-5-rhel-5-fuse-sshfs-and-duplicity/
http://www.oracle-base.com/articles/linux/AutomatingDatabaseStartupAndShutdownOnLinux.php#the_rsh_command
http://ifrozi.wordpress.com/2008/05/

Setting Public Key
[root@rocat /]# ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/root/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_dsa.
Your public key has been saved in /root/.ssh/id_dsa.pub.
The key fingerprint is:
e9:44:24:20:dc:6a:1b:5e:6a:73:58:ca:5e:3e:35:fd root@testbox

Install Library yang dibutuhkan :
* elfutils-libelf-devel-0.125-3.el5
rpm -ivh elfutils-libelf-devel-0.125-3.el5.i386.rpm elfutils-libelf-devel-static-0.125-3.el5.i386.rpm
* compat-libstdc++-33-3.2.3-61
* elfutils-libelf-0.125-3.el5
* glibc-2.5-12
* glibc-devel-2.5-12
* glibc-common-2.5-12
* gcc-4.1.1-52.el5
* gcc-c++-4.1.1-52.el5
* libgcc-4.1.1-52.el5
* libaio-0.3.106-3.2
* libaio-devel-0.3.106-3.2
* libstdc++-4.1.1-52.el5
* libstdc++-devel-4.1.1-52.el5
* unixODBC-2.2.11-7.1
* unixODBC-devel-2.2.11-7.1
* sysstat-7.0.0-3.el5
* binutils-2.17.50.0.6-2.el5
* make-3.81-1.1

Setting User dan Group :
[root@rocat /]# /usr/sbin/groupadd oinstall
[root@rocat /]# /usr/sbin/groupadd dba
[root@rocat /]# /usr/sbin/useradd -m -g oinstall -G dba oracle
[root@rocat /]# passwd oracle

Pembuatan direktori dan hak akses :
[root@rocat /]# mkdir -p /u01/app/oracle
[root@rocat /]# chown -R oracle:oinstall /u01/app
[root@rocat /]# chmod -R 775 /u01/app

Setting Kernel :
[root@rocat /]# cat >> /etc/sysctl.conf <<EOF
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
> kernel.shmmni = 4096
> kernel.sem = 250 32000 100 128
> fs.file-max = 65536
> net.ipv4.ip_local_port_range = 1024 65000
> net.core.rmem_default=4194304
> net.core.wmem_default=262144
> net.core.rmem_max=4194304
> net.core.wmem_max=262144
> EOF

[root@rocat /]# /sbin/sysctl -p

Minimum Kernel
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=4194304
net.core.wmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_max=262144

Install Oracle :

* Login sebagai User oracle

* [root@rocat /]# ./runInstaller

Start Oracle automatically :

Setting oratab
/etc/oratab : SID:ORACLE_HOME:Y

Setting /etc/init.d/dbora
#########################################################
#!/bin/sh
# chkconfig: 345 99 10
# description: Oracle auto start-stop script.
#
# Set ORA_HOME to be equivalent to the $ORACLE_HOME
# from which you wish to execute dbstart and dbshut;
#
# Set ORA_OWNER to the user id of the owner of the
# Oracle database in ORA_HOME.

#ORA_HOME=/u01/app/oracle/product/10.2.0/db_1
ORA_HOME=/u01/app/oracle/product/11.1.0/db_1
ORA_OWNER=oracle

if [ ! -f $ORA_HOME/bin/dbstart ]
then
echo “Oracle startup: cannot start”
exit
fi

case “$1″ in
’start’)
# Start the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORA_OWNER -c “$ORA_HOME/bin/dbstart $ORA_HOME”
;;
’stop’)
# Stop the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORA_OWNER -c “$ORA_HOME/bin/dbshut $ORA_HOME”
;;
esac

#########################################################

[root@rocat /]# chmod 750 /etc/init.d/dbora
[root@rocat /]# chkconfig –level 345 dbora on

Start Oracle
[root@rocat /]# $ORACLE_HOME/bin/lsnrctl start
[root@rocat /]# $ORACLE_HOME/bin/dbstart

Kalau masih masalah, tambahkan aja skrip dibawah ke /etc/rc.local
/etc/rc.local
export ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1/
$ORACLE_HOME/bin/lsnrctl start
/etc/init.d/dbora start