Copyright © Ari Kuswanto
Design by Dzignine
Jumat, 24 Juni 2011

Install JDK di Fedora

Copy jdk-6u21-linux-i586.bin file using winscp to home dir.

Extract

#sh jdk-6u21-linux-i586.bin

#mkdir /usr/local/jdk

#mv jdk1.6.0_21 /usr/local/jdk/jdk1.6.0_21

#ln -s /usr/local/jdk/jdk1.6.0_21/ /usr/local/jdk/java

#cp jdk.csh /etc/profile.d/jdk.csh

#cp jdk.sh /etc/profile.d/jdk.sh

#cd /etc/profile.d

#vi jdk.csh à sesuaikan folder environment à /usr/local/jdk/java

#vi jdk.sh à sesuaikan folder environment à /usr/local/jdk/java

#reboot

Kamis, 23 Juni 2011

sample produk nebula distro








Description :







100% T-shirt katun
Ungu slogan yang membuat pernyataan!
Standar ukuran T-shirt (pra-menyusut tetapi masih dapat menyusut sangat sedikit). Ukuran lebih kecil jika anda seperti kaos ketat dan memilih satu ukuran jika anda ingin cocok longgar.










Size :



Price :







Order Now !!








Rabu, 22 Juni 2011

rc.local for linux router

/etc/rc/rc.local

#ethernet ke internet
/sbin/iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE

#ethernet ke intranet/lan
/sbin/iptables --append FORWARD --in-interface eth1 -j ACCEPT

#redirect request port 80 ke port proxy 3128
/sbin/iptables --table nat -A PREROUTING -s ip/subnet -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128

# redirect request port 80 ke port dansguardian (content filter) 8080
#/sbin/iptables --table nat -A PREROUTING -s ip/subnet -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080


vi /etc/mrtg/mrtg.cfg
=====================
# Minimal mrtg.cfg
#HtmlDir:
/var/www/mrtg
ImageDir: /var/www/mrtg
LogDir: /var/lib/mrtg
ThreshDir: /var/lib/mrtg
Target[r1]: 1:public@10.38.25.20
MaxBytes[r1]: 1250000
Title[r1]: Traffic Analysis
PageTop[r1]:

Stats for our Internet


Target[r2]: 2:public@192.168.1.1
MaxBytes[r2]: 1250000
Title[r2]: Traffic Analysis
PageTop[r2]:

Stats for our Intranet

Selasa, 21 Juni 2011

XAMPP Installation on Redhat

download xampp here !!

Put download file into source file : /home/xampp-linux-1.7.4.tar.gz
extract file :

#cd /home
#gunzip xampp-linux-1.7.4.tar.gz

#move into /opt
#cp /home/xampp-linux-1.7.4.tar /opt/xampp-linux-1.7.4.tar
#cd /opt
#tar -xvf xampp-linux-1.7.4.tar
#/opt/lampp/lampp start

Check through browser:
http://localhost --> XAMPP should running as well on the browser.
Selasa, 14 Juni 2011

Sudo tanpa input password (Redhat)

Run :


sudo nano /etc/sudoers


input password , rubah seperti contoh di bawah ini :

## Syntax:
##
## user MACHINE=COMMANDS
##
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere


root ALL=(ALL) ALL
ari ALL=(ALL) NOPASSWD:/bin/su
erpiz ALL=(ALL) NOPASSWD:/bin/su
Jumat, 10 Juni 2011

Menu Training di ERPIZ





Level 1 Desktop Linux Training (1 week):
--------------------------------------------
1. Linux Introduction (Fedora/Ubuntu/Redhat)
2. Open Office (Word processing, spreadsheet, presentation, graphic and database) including migration from Microsof Office document.
3. Network and Mail Client Setting and COnfiguration

Advance Linux Training (1 weeks):
---------------------------------
1. Installation Environment
2. Routing and DNS
3. Web Server (Apache)
4. Mail Server (Postfix and Dovecot)
5. JDK and J2SE

Oracle Solaris 10 Introduction Training (2 weeks):
-------------------------------------------
1. Introduction I of Solaris 10
2. Introduction II of Solaris 10

Oracle Solaris 10 + Databases Advance Training I (1 week):
----------------------------------------
1. Application (DNS, Web Server, Mail Server)
2. Database Server Installation and Configuration (MySQL/Oracle/Infobright/Greenplum)
3. Clustering (MySQL, Oracle)
4. Data Dump and Loading

Oracle Database I. (1 week):
----------------------------------------------
1. Installation
2. DDL
3. DML
4. Constraint
5. Database Transaction

Oracle Database II. (1 week):
----------------------------------------------
1. PL/SQL I
2. PL/SQL II
3. PL/SQL III

Business Intelligent Application Training (1 week):
---------------------------------------------------
1. Oracle BI (Reporting and Dashboard)
Kamis, 09 Juni 2011

belajar Linux di ERPIZ.com





- Pengantar dan instalasi Linux (VMware or scratching)

- Mengakses sistem Linux
- file dan struktur direktori Linux,
- Perintah-perintah dasar Linux (console),
- Media penyimpanan (CDROM, harddisk, usb disk),
- utilitas
- teks editor vi,
- desktop Linux & File manager.
- Internet Connection Configuration (wired access)

- ssh login (setup configuration)
- Open Office (Install/Update Package)


Prerequisite:
- Internet Connection.
- Class Room
- Notebook for audience (min Core 2 duo, 2GB RAM)

Price : Rp. 750 Rb / person

Duration :

12 Jam ( 6 days, 2 hour per days)
Rabu, 08 Juni 2011

Ari Kuswanto (Transformasi )

inilah perubahan yang terjadi pada diriku :


masih bayi (1989)


TK (1993-1995) --> no picture available
SD (1995-2001) --> no picture available

SMP (2001-2004)

SMA (2004-2007)

Kuliah Awal masuk semester 1 (2008)

Kuliah waktu jadi Kahim (2010)

Awal mulai bisa kerja (2011)



Juni (2012)

jadi , bagaimana menurut anda ? inikah yang dinamakan perubahan dalam hidup ? lalu apakah yang akan terjadi pada Ari Kuswanto di masa yang akan datang ?

Wallahualam...

install oracle di redhat

We will guide how to install Oracle 10g On Red Hat Enterprise Linux (RHEL)-5. We will check memory space,
temp space, RPM, kernel parameter, disk space, create user account,
create Oracle directories and set Oracle environments.
The step-10 is the mean point of the 10g installation on RHEL-5.

Step-0: First of All we will install all required RPM

# From RedHat AS5 Disk 1
cd /media/cdrom/Server
rpm -Uvh setarch-2*
rpm -Uvh make-3*
rpm -Uvh glibc-2*
rpm -Uvh libaio-0*
cd /
eject

# From RedHat AS5 Disk 2
cd /media/cdrom/Server
rpm -Uvh compat-libstdc++-33-3*
rpm -Uvh compat-gcc-34-3*
rpm -Uvh compat-gcc-34-c++-3*
rpm -Uvh gcc-4*
rpm -Uvh libXp-1*
cd /
eject

# From RedHat AS5 Disk 3
cd /media/cdrom/Server
rpm -Uvh openmotif-2*
rpm -Uvh compat-db-4*
cd /
eject

Step-1: We will create following groups and users.

# groupadd oinstall
# groupadd dba
# groupadd oper

Step-2: We will create user.

# useradd -g oinstall -G dba oracle

Step-3: We will create following directories and then change mode and ownership.

# mkdir -p /u01/app/oracle/product/10.2.0
# chmod -R 777 /u01
# chown -R oracle:oinstall /u01

Step-4: We will Oracle setting and after that open this file and press 'i' then in the last of that file paste the following values and again press 'ESC' and type ':wq'.

# vi /etc/sysctl.conf

kernel.shmall = 2097152
kernel.shmmax = 2147483648
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 = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 26214

Step-5: We will make the kernel parameters changes effective immediately.



# sysctl -p

Step-6: We will set the shell limits for the user Oracle and open this file and press 'i' then in the last of that file paste the following values and again press 'ESC' and type ':wq' .

# vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

Step-7: We will press d to delete all values which already there. and paste the following values and then press 'ESC' and type ':wq'.

# vi /etc/pam.d/login
#%PAM-1.0

auth required pam_securetty.so
auth required pam_stack.so service=system-auth
auth required pam_nologin.so
account required pam_stack.so service=system-auth
password required pam_stack.so service=system-auth

# pam_selinux.so close should be the first session rule
session required pam_selinux.so close
session required pam_stack.so service=system-auth
session optional pam_console.so

# pam_selinux.so open should be the last session rule
session required pam_selinux.so multiple open
session required /lib/security/pam_limits.so
session required pam_limits.so

Step-8: We will press d to delete all values which already there and passed the following values and then press 'ESC' and type ':wq'.

# vi /home/oracle/.bash_profile
# .bash_profile
# Get the aliases and functions

if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=ORCL; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
PATH=$ORACLE_HOME/OPatch:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH

export PATH

if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksn" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi

Step-9: We will enter this value.

# passwd oracle

Enter 'oracle' until you get the # prompt again.

Step-10: In this file whatever is written you have to delete that line and have to write 'redhat-4'.

# vi /etc/redhat-release

Step-11: We will logout from root user and login as an Oracle User.

Step-12: We will open new terminal and at oracle $ prompt execute run Installer from oracle setup.


source : http://www.dbtalks.com/UploadFile/anjudidi/901/
Selasa, 07 Juni 2011

7:30 P.M - Muhasabah Diri

بسم الله الرحمن الرحيم

aku belum menyadari bahwa hidup adalah karunia Mu ya Allah, aku masih belum mengerti bagaimana seharusnya menjalani hidup yang berat dan singkat ini. aku masih begitu bodoh dan kecil untuk memahami hal ini. apakah aku adalah orang yang munafik ? atau aku hanya orang yang harus belajar membaca suratan takdir yang dibuat oleh Mu ya Allah.

setelah kulihat hal itu, aku baru mengerti bahwa memang arah hidupku sangat jauh berubah. Apakah aku akan menjadi penghianat terhadap mu Ya Allah, dengan kemunafikan dan keduniawian yang tidak akan pernah habis. Apakah aku hanya mengikuti bagaimana Syaithon yang terkutuk itu mempengaruhi saya. Apakah aku akan terus menjadi pendusta, menjadi sesuatu yang paling kotor bagi orang-orang sekitarku ?


Allah maha pengampun , dan aku yakin itu. tapi , apakah aku ini memang bisa benar-benar bertobat dan berserah diri kepada Allah. Ya Allah, hatiku ini masih rapuh, masih mudah terbawa angin yang menghembuskan keindahan-keindahan dunia berikut aksesorisnya. apakah aku mampu menghadapi semua ini ?

apa yang harus aku lakukan ????

Ya Allah, aku masih ingin mencari kebenaran yang hakiki, otak dan hatiku masih belum selaras dengan apa yang terjadi di depan mataku. terjadi pertentangan dalam diriku , dan ini yang akan terus membebaniku jikalau aku benar-benar belum bisa menghadapinya.

lalu , apakah aku akan diam saja menghadapi semua ini .

Astagfirulloh Hal'adzim...

Astagfirulloh Hal'adzim...

Astagfirulloh Hal'adzim...

sungguh hamba ingin menangis di hadapanmu, sungguh hamba ingin mengadu beban ini, sungguh terasa amat berat. Ya Allah, berikanlah hamba pencerahan atas semua yang terjadi di dunia ini ? apakah ini hanya ujian ? ataukah ini lah yang harus dihadapi semua umat manusia untuk mempelajari kebesaranMu.

Ya Allah,

Hamba adalah orang yang hina, tapi hamba ingin merubah kehinaan ini . karena aku yakin, Engkau adalah pemilik jiwa dan raga ini, dan hanya Engkau yang berhak menentukan apakah aku pantas disebut sebagai Umat-Mu.

Allahu akbar !!

رَبَّنَا آَتِنَا فِي الدُّنْيَا حَسَنَةً وَفِي الْآَخِرَةِ حَسَنَةً وَقِنَا عَذَابَ النَّارِ

"Ya Tuhan kami, berilah kami kebaikan di dunia dan kebaikan di akhirat dan peliharalah kami dari siksa neraka." (QS. Al Baqarah: 201)"

sungguhghamba takut akan siksa neraka. dan hamba yakin bahwa neraka itu ada. Ya Allah, jauhkanlah hamba dari siksa yang palin di kutuk oleh umat manusi ini. sungguh tempat itu adalah seburuk-buruknya tempat.

Allah SWT berfirman,

"Sesungguhnya Allah mencintai orang-orang yang bertobat dan orang-orang yang menyucikan diri."
( QS.Al Baqarah 2:222 ).

Rasulullah SAW bersabda,

"Wahai manusia, minta ampunlah pada Tuhan kalian, dan bertobatlah.
Maka aku meminta ampun dan bertobat seratus kali setiap hari."
( HR. Bukhari dan Muslim ).

Semoga hamba masih mempunyai waktu untuk bertobat kepadaMu Ya Allah. Semoga hamba masih sempat menjadi umatMu yang mengikuti semua ajaranMu.

Amin , Allahuma Amin.


سبحانك اللهمّ وبحمدك اشهدأن لاإله إلا انت استغفرك واتوب إليك



Kebo in Action ( E 5148 LO )





Senin, 06 Juni 2011

Aku, dia , dan Kebo









dan inilah cerita indah kita setelah memandikan Kebo di depan Mess ..

Install MySQL pada Redhat

Download MySQL RPM dari URL berikut :

http://dev.mysql.com/downloads/mysql/

1. Install Mysql :

root# rpm -Uvh MySQL-shared-standard-5.0.24-0.rhel4.i386.rpm

root# rpm -Uvh MySQL-server-standard-5.0.24-0.rhel4.i386.rpm

root# rpm -Uvh MySQL-client-standard-5.0.24-0.rhel4.i386.rpm

*) kalian bisa sesuaikan dengan package RPM sesuai versi MySQL yang kalian download.

2. masuk ke Grant user tabel :

cd /usr/bin

root# ./mysql_install_db --user=mysql

3. pastikan bahwa kalian sudah melakukan bounce ke MySQL :

root# mysqladmin shutdown
root# ps -ef | grep mysqld
root 7842 2565 0 18:47 pts/1 00:00:00 grep mysqld
root# mysqld_safe --user=mysql --log &
[1] 7843
root# Starting mysqld daemon with databases from /var/lib/mysql

4. verifikasi server MySQL sudah running :

root# mysqladmin version

root# mysqladmin variables

root# mysqlshow
+--------------------+
| Databases |
+--------------------+
| information_schema |
| mysql |
| test |
+--------------------+

root# mysql -e "SELECT Host, Db, User FROM db" mysql
+------+---------+------+
| Host | Db | User |
+------+---------+------+
| % | test | |
| % | test\_% | |
+------+---------+------+

5. konfigure startup/shutdown; Optionally, konfigure /etc/my.cnf file; Test sebagai appropriate:

root# ls -lart /etc/init.d/mysql
-rwxr-xr-x 1 root root 9359 Jul 27 15:39 /etc/init.d/mysql

root# touch /etc/my.cnf

root# vi /etc/my.cnf (can direct edit with text editor in /etc/my.cnf)

--> Press "Insert" in the keyboard and type :
[mysqld]
log=/var/tmp/mylog.log
--> Press "Esc" in the keyboard and type :
:qw

root# more /etc/my.cnf

root# chkconfig --add mysql

root# chkconfig --list mysql
mysql 0:off 1:off 2:on 3:on 4:on 5:on 6:off

root# service mysql stop

root# service mysql start

6. Login dan hapus user yang tidak di perlukan :

root# mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 5.0.24-standard-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> DELETE FROM mysql.user WHERE User='';
Query OK, 2 rows affected (0.00 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)

mysql> SELECT Host, User from mysql.user;
+-----------+------+
| Host | User |
+-----------+------+
| localhost | root |
| tuxboy | root |
+-----------+------+
2 rows in set (0.01 sec)

7.membuat root users dan passwords :

mysql> select Host, User, Password from mysql.user;
+-----------+------+----------+
| Host | User | Password |
+-----------+------+----------+
| localhost | root | |
| tuxboy | root | |
+-----------+------+----------+
2 rows in set (0.00 sec)

mysql> UPDATE user set Password = PASSWORD('pa$$w1rd');
Query OK, 2 rows affected (0.00 sec)
Rows matched: 2 Changed: 2 Warnings: 0

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)

mysql> select Host, User, Password from user;
+-----------+------+-------------------------------------------+
| Host | User | Password |
+-----------+------+-------------------------------------------+
| localhost | root | *49C77AEDAAEDE6B380A0EF8A48F62A277ECFAE6B |
| tuxboy | root | *49C77AEDAAEDE6B380A0EF8A48F62A277ECFAE6B |
+-----------+------+-------------------------------------------+

silahkan di coba yah kawan2 .. ^_^

arikuswanto.com

Hai guys, akhirnya bisa juga . berkat http://freedns.afraid.org/ , saya bisa membuat domain saya bekerja setelah lama saya beli tapi belum saya konfigure karena banyak pertimbangan . Tapi kayaknya yang ini udah fix sih... hehehe..




So.. starting next article, i will use this URL. ^^
Kamis, 02 Juni 2011

rotate file yesterday linux script

# Ari Kuswanto
# Rotate file


cd {direktori}

mkdir namefile_$(date -d yesterday +%d%m%Y);

mv $(date -d yesterday +%d%m%Y)* namefile_$(date -d yesterday +%d%m%Y);

cd {directory};

tar -czf namefile_$(date -d yesterday +%d%m%Y).tgz namefile_$(date -d yesterday +%d%m%Y);