Kamis, 28 Oktober 2010

Import Database di Linux Via Console

Contoh disini saya, menggunakan:
1. Linux Ubuntu 10.04
2. MySQL
3. Data ada di /var/www/lgstkbck/neuronet_logistik.sql

Langkah-langkahnya:
1. Open Terminal
2. Masuk ke MySQL nya
# mysql -u root -p

3. Buat Database Baru
mysql> create database neuronet_logistik;
4. Gunakan database yang sudah dibuat
mysql> use neuronet_logistik;
5. Lalu import database .sqlnya
mysql> source /var/www/lgstkbck/neuronet_logistik.sql

Install Editor untuk Ubuntu

Disini saya memakai:
1. Ubuntu 10.04
2. Komodo Edit 5

Cara Install:
1. Buka Terminal.
2. Pertama download package data Komodonya.
http://www.activestate.com/komodo-edit/downloads
3. Pindahkan file ke File System yang diinginkan, contoh:
# mv /home/user/Downloads/Komodo-Edit-6.0.1-6535-linux-libcpp6-x86_64.tar.gz /opt/
Disini saya memindahkan file yang ada didalam /home/user/Downloads ke dalam /opt

4. Setelah itu extract filenya.
# tar zxfv Komodo-Edit-6.0.1-6535-linux-libcpp6-x86_64.tar.gz
5. Setelah itu pindah ke folder komodonya.
# cd Komodo-Edit-6.0.1-6535-linux-libcpp6-x86_64
6. Lalu install Komodonya.
# ./install.sh

7. Kita bisa menspesifikasikan path untuk installasinya.
# ./install.sh -I ~/opt/Komodo-IDE-5.2
8. Atau bisa ikuti defaultnya saja

9. Nanti akan otomatis mengexport dan membuat Link untuk komodonya.

10. Jalankan Komodo Edit. Klik Aplication-Programming-Komodo

Selamat Mencobaa... ^^

Sabtu, 23 Oktober 2010

Install WebServer & Database MySQL di Ubuntu

Sebelumnya Saya disini Memakai Ubuntu 10.04 dalam implementasinya. Untuk Langkah-langkah menginstallnya,sebagai berikut:

1. Buka terminal dan login sebagai root/admin.
# sudo -i
2. Update repositories, untuk mendapatkan update repositories yang baru:
# apt-get update
3. Install Apache, Untuk Web Servernya:
# apt-get install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils

4. Install PHP:
# apt-get install php5 libapache2-mod-php5 php5-common php5-gd php5-mysql php5-imap php5-cli php5-cgi php-pear php-auth
5. Install MySQL, Untuk Databasenya:
# apt-get install mysql-server mysql-client
Lalu nanti akan ditanyakan input root passwordnya untuk MySQL
6. Install PhpMyAdmin:
# apt-get install phpmyadmin
Lanjutkan dengan default Saja.
7. Setelah itu jalankan service web server dan databasenya.
# /etc/init.d/mysql (start/restart)
# /etc/init.d/apache2 (start/restart)
8. Lalu buka dokument root dalam /var/www , Lalu buat file misalnya info.php

Lalu Save
9. Testing dengan browser
# http://[ipserver]/

# http://[ipserver]/info.php

Jumat, 22 Oktober 2010

Install Package .deb, rpm, tar.gz

Sebelum membahas cara installasi alangkah bainya kita mengetahui terlebih dahulu extensi itu compatible dengan OS mana saja. Seperti .deb hanya bisa untuk turunan debian seperti Ubuntu, Lalu rpm hanya untuk turunannya Fedora dan Redhat saja. Sedangkan tar.gz bisa hampir developer Linux bisa digunakan.
A. Cara Install .deb
1. Cari packagenya disini saya menggunakan package picasa_3.0-current_i386.deb
2. Masuk ke root
3. Install
# dpkg -i picasa_3.0-current_i386.deb

Note: dpkg -i digunakan untuk memasang aplikasi pada komputer, ini harus berextensi .deb

B. Install .rpm
# rpm -ivh < Nama Packagenya>
Note: Harus berextensi .rpm

C. Install tar.gz
# tar zxfv
# ./configure
Untuk Configure ada beberapa package yang tidak digunakan / di skip
# install

Remote FTP atau File Sharing

Dalam artikel kali saya akan membahas masalah file sharing di dalam linux. Mungkin ada kalanya kita kita tidak tahu harus memakai applikasi apa untuk mengambil data dalam komputer lain/ server. Sebenarnya banyak applikasi yang bisa digunakan didalam Linux seperti: filezilla, gftp, kongueror/dolphin jika di KDE, dan masih banyak lagi. Contoh disini saya menggunakan:
1. OS Ubuntu 10.04
2. Aplikasi FileZilla (Untuk mengambil file dalam server FTP)

Cara Install:
1. Masuk ke dalam root/ bisa langsung
# sudo apt-get install filezilla

2. Setelah Install Otomatis akan Muncu di Applications---Internet---FileZilla
3. Jalankan File Zilla


Selamat Mencobaa ^_^

Senin, 31 Mei 2010

Contoh kasus disini adalah server berada di luar jaringan sehingga membutuhkan IP Publik server tersebut untuk masuk ke dalamnya. Lalu menggunakan OS Linux Centos 5.X. Service Server belum di install semuanya seperti FTP, APACHE/HTTPD, Zend Server, MySQL.

1. Remote terlebih dahulu server tujuan.
# ssh (ip tujuan)
atau misalkan menggunakan puty langsung saja, tinggal memasukan username password
2. Lihat Service-service server yang ada
# px aux | grep (Name Service)
3. Lihat package yang sudah terinstall atau belum
# yum list *(Nama Daemonnya)* //Misalkan ftp, daemonnya vsftpd
4. Download package yang belum ada.
Ini kasusnya, saya tidak mendownload langsung di servernya melainkan di PC yang saya gunakan. Untuk itu setelah package di download lalu copy/sharing ke server tujuan menggunakan winscp. Tetapi sebelumnya harus install FTP server terlebih dahulu. Lalu aktifkan servicenya.
5. Install Service servernya.
1. Service FTP Server
# yum install vsftpd
# pilih option y
Aktifkan Servicenya:
# /etc/init.d/vsftpd start
2. Service Apache/HTTP
# yum install httpd
Aktifkan Servicenya:
# /etc/init.d/httpd start
3. Service MySQL
# yum install mysql-server
Aktifkan Servicenya:
# /etc/init.d/mysqld start
6. Install Package Zend Server
Sebelumnya package yang sudah di copy lewat winscp. Disimpan di file system /opt.
1. Pindah ke /opt
# cd /opt
2. Extract Packagenya
# tar zxfv ZendServer-CE-php-5.2.13-5.0.1-linux-glibc23-i386.tar.gz
3. Pindah ke file zend yang sudah di extract
# cd ZendServer-XXX
4. Install zend servernya
# ./install.sh
6. Aktifkan
# cd /opt/zend/bin
# ./zendctl.sh start
7. Testing
Kita test di web browser lalu ketik:
http://(IP Number):10081/ZendServer

Senin, 10 Mei 2010

Install Samba di Ubuntu 9.10

Sebelum kita memulai untuk menginstall samba, alangkah baiknya kita lebih dulu mengetahui apa itu samba. Samba adalah suatu service yang dimiliki oleh linux yang mana memperbolehkan suatu node mengshare document, multimedia,dll. agar bisa diakses oleh node lain yang berbeda platform, misalnya windows. Jadi samba itu hanya dimiliki oleh platform Linux saja.

Langkah- langkah untuk Menginstall Samba, yaitu:
1. Bisa di install lewat source code atau bisa langsung saja.
disini saya membuat samba secara langsung:
# sudo apt-get install samba

Sebenarnya langkah di atas sudah cukup untuk bisa menshare suatu data yang berbeda platform hanya saja tanpa authentifikasi. dan menurut saya ini kurang aman jika orang yang tidak berkepentingan bisa mengakses data yang seharusnya dia tidak bisa mengaksesnya. Untuk itu perlu ditambahkannya suatu authentifikasi dalam proses ini.

2. Membuat authentifikasi untuk data yang akan di share.
# sudo smbpasswd -a < User Name >
Lalu akan muncul masukan passwdord dan juga confirm passwordnya.
Dan masukanlah sebuag strong password agar lebih aman.

3. Buat Folder share agar lebih terorganisir.
# mkdir /home/< user name>/

4. Setelah itu konfigurasi file smb.conf
# nano /etc/samba/smb.conf
tambahkan:
[nama folder yang telah dibuat sebelumnya]
path = /home//
available = yes
valid users = username
read only = no
browsable = yes
public = yes
writable = yes

5. Lalu jalankan service samba
# sudo /etc/init.d/samba start/restart

6. Test apakah sudah jalan atau belum
# sudo testparm

Selaaammattt Menncooobaaaa.......................

Rabu, 28 April 2010

Install Google Talk di Ubuntu 9.10

Ada dua cara:
1. Dengan Prism
2. Dengan Pidgin

1. Prism
1. Buka website http://allmyapps.com/app/ubuntu-9.10/prism-google-talk-google-talk.
Lalu klik free pada bagian header Aplikation google talk.
2. Lalu otomatis tombol free berubah menjadi install. lalu klik saja
3. Setelah itu akan muncul kotak dialog untuk memulai proses installasi.
4. Klik OK. Lalu klik install.
5. Setalah finish, kita langsung bisa memulai mengaktifkan gtalk pada internet---- gtalk.

2. Pidgin
1. Pertama-tama install pidgin terlebih dahulu.
# sudo apt-get install pidgin
2. Setelah finish pidgin akan otomatis berda pada internet.
3. Klik internet - pidgin.
4. Pilih Accounts-Manage Accounts. dan klik Add.
5. Lalu setting protokolnya sesuai yang kita inginkan.
6. Masukan username and passwordnya.

Silaakaaann Mencoobanyaa.............. n_n

Install Java di Ubuntu 9.10

1. Pertama masuk ke dalam terminal

2. Setelah itu lakukan proses installasi dengan cara:
# sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
3. Tunggu beberapa saat untuk reading package-packagenya. Nanti akan muncul kotak dialog
4. Pilih Yes untuk agree sebuah licence java.
5. Untuk memastikan sudah terinstall atayu belum, ketik:
# java -version

Tambahan:

Untuk Ubuntu 10.04 ada perbedaan untuk menginstall java. Langkah-langkahnya:
1. Download file installer JDK untuk Linux. Download yang ekstensinya .bin. https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewFilteredProducts-SingleVariationTypeFilter. dan didapat file jdk-6u22-linux-i586.bin
2. Berikan permission execute pada file JDK. Seperti:
# chmod +x /home/user/Download/jdk-6u22-linux-i586.bin
3. Lalu pindahkan file JDK tersebut ke folder /opt menggunakan terminal. Seperti:
# mv /home/user/Download/jdk-6u22-linux-i586.bin /opt
4. Selanjutnya instal file JDK-nya dengan perintah :
# cd /opt
# ./jdk-6u3-linux-i586.bin.
5. Langkah berikutnya optional yaitu membuat link dari directory tersebut dengan nama “jdk”. Ini dimaksudkan apabila kita akan melakukan upgrade versi JDK, kita tidak perlu melakukan banyak perubahan. Cukup melakukan perubahan pada linknya saja. Perintahnya : ln -s
6. Lalu masuk ke file bash.bashrc.
# sudo gedit /etc/bash.bashrc
7. Tambahkan perintah ini di baris paling bawah pada file yang muncul :
JAVA_HOME=/opt/jdk
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
export PATH
8. Testing
# java -version

Rabu, 07 April 2010

Install SQL Developer di Ubuntu 9.10


Install SQL Developer di Ubuntu 9.10

1.Installing packagenya. http://www.oracle.com/technology/software/products/sql/index.html
2.Lalu extract packagenya dan masukan ke file /opt
# sudo unzip sqldeveloper-2.1.0.63.73-no-jre.zip -C /opt
3.Setelah itu masuk ke file yang sudah di extract
# cd /sqldeveloper/sqldeveloper
4.Setting file sqldeveloper.conf
# sudo gedit /opt/sqldeveloper/sqldeveloper/sqldeveloper.conf
Edit SetJavaHome ../../jdk menjadi SetJavaHome /usr/lib/jvm/java-6-sun/
5.lalu save.
6.Untuk menjalankannya:
# sudo ./opt/sqldeveloper/sqldeveloper.sh


7.alahamdulillah Telaah selasaiii.... Selamaat Mencobanyaaa... n_n

Kamis, 18 Februari 2010

Install Alfresco CMS di OpenSuse10

INSTALLING ALFRESCO DI OPENSUSE10

1. Sebelum menginstall alfresco, pastikan terlebih dahulu install software di bawah ini:
1. MySQL Database
2. JDK
3. OpenOffice
2. Install Package alfresco di dalam file yang telah ditentukan sebelumnya:
A. Install dengan wizard
1. Browse atau tempatkan ke file yang tersimpan file Alfresco
contoh:
# cd /home/download/recomend
2. Lakukan install file dengan melakukan:
# ./Alfresco-Community-3.2r2-Linux-x86-Install
3. Lalu muncul pilikan bahasa, pilih English and klik OK.
4. Klik Yes.
5. Lakukan hingga selesai, untuk memudahkan pilih secara default saja.
B. Install dengan Package tar.gz
1. Browse atau tempatkan ke file yang tersimpan file Alfresco
contoh:
# cd /opt
2. Extrack package installernya
# tar zxfv
# tar zxfv alfresco-community-tomcat-3.2r2.tar.gz
3. Edit file catalina.properties.
Pastikan file tersebut memuat:
shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
4. Pastikan juga file commons-el.jar berada dalam directory lib.
5. Modifikasi file /conf/server.xml atau /opt/Alfresco/tomcat/conf/server.xml. Menjadi:
dan

6. Modifikasi file webscript-framework-config-custom.xml yang ada di:
# /opt/Alfresco/tomcat/shared/classes/alfresco/web-extension/webscript-framework-config-custom.xml
Ubah pada server IP dan Port Number yang digunakan:
http://yourserver:8080
.....................................................................................

Kamis, 11 Februari 2010

Membuat User di Oracle dengan OpenSuse10

1. Login Sebagai user Oracle
# login as : oracle
# password : oracle
2. Masuk ke dalam database Oracle
# su oracle
# sqlplus /nolog
3. Aktifkan oracle
sql> conn / as sysdba
sql> startup
sql> exit
Lalu kembali ke user Oracle, ketik:
# lsnrctl start
Kembali lagi ke database oracle untuk membuat user.
# sqlplus /nolog
4. Membuat User
sql> create user identified by default tablespace ;
5. Membuat Grant atau hak Akses untuk User.
sql> grant connect,resource to ;
sql> grant create synonym to ;

Kamis, 04 Februari 2010

Proxy Server with squid in RedHat

To use the services of Squid, you first need to install certain packages and utilities, and then needs to perform the following tasks:
1. Identify the technology for implementing a proxy server.
2. Implement the proxy server.
3. Restart the proxy server

1. Identify the technology for implementing a proxy server in RZTV.
In Linux, a proxy server can be implemented using the Squid proxy server. Squid can be used for caching, connecting sharing, and restrict the restricting the Web sites accessed by users.

2. Implement the proxy server.
To set up the squid proxy server, perform with open the /etc/squid/squid.conf file in editor.
# vi /etc/squid/squid.conf
http_port 192.168.3.130:8080
cache_peer 10.14.202.2 parent 8080 0 no-query default

icp_port 0
cache_mem 8 MB
cache_dir ufs /var/spool/squid 100 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
cache_mgr zareuli_rz@yahoo.co.id
acl all src 0.0.0.0/0.0.0.0
# Blok forbidden ip
acl forbidden_ip src 192.168.3.65-192.168.3.94
http_access deny forbidden_ip

# Blok site and porno word
acl asusila_domain dstdomain "/etc/squid/asusila_domain.txt"
acl kata_kotor url_regex -i "/etc/squid/kata_kotor.txt"
deny_info PESAN kata_kotor
deny_info PESAN asusila_domain
http_access deny asusila_domain
http_access deny kata_kotor

# download limited
acl working_time time MTWHF 09:00-17:00
acl movie_file urlpath_regex "/etc/squid/moviefile.txt"
http_access deny working_time movie_file

http_access allow all

# Bandwidth limiter
acl server src 192.168.3.130/27
acl staf src 192.168.3.34-192.168.3.62/27 192.168.3.65-192.168.3.94/27 192.168.3.98-192.168.3.126/27

delay_pools 2

# To pool no 1 and class no 1
delay_class 1 1
delay_parameters 1 -1/-1
delay_access 1 allow server
delay_access 1 deny all

# To pool no 2 and class no 2
delay_class 2 2
delay_parameters 2 5000000/5000000 20000/2000000
delay_access 2 allow staf
delay_access 2 deny all

never_direct allow all
visible_hostname rztv.com
cache_effective_group squid
cache_effective_user squid

Note:
1. http_port: HTTP port is used by the Squid.
2. icp_port: Port that is used by Squid to conduct cooperation with other Squid.
3. cache_mem: Memory physical ideal that is used by Squid to handle objects in-Transit (object is in a transition period between the time cache object download until the object was delivered to the client).
4. cache_dir ufs /var/spool/squid: Cache_dir option is determine the storage system such as that which will be used (UFS), the name of the directory where to store cache (/var/spool/squid).
5. acl: rule list that the state of privileges, to prevent people who do not have access rights to use the cache infrastructure.
6. http_access: HTTP Access parameter is to allow or deny access from the ACL, the ACL has been defined.
7. delay_pools: This option is for specifying the exact amount of pool that is used to limit the amount of bandwidth from the ACL.
8. delay_class: This option specifies the group from each pool that has been defined on the delay-pools option.
9. delay_parameters: This formula specifies the bandwidth that will be obtained by the ACL that will enter delay_pool.
10. delay_access: This defines who ACL that will be entered into a pool for the "slowing" bandwidth.

3. Restart the proxy server
To restart the Squid proxy service, enter the following command at the shell prompt:
# service squid restart

Setting DNS in RedHat Enterprise4

To solve problem about DNS, needs to perform the following tasks:
1. Configure a Linux node as a master DNS server for authenticated hosts.
2. Configure the forward zone file.
3. Configure the reverse zone file.
4. Configure the DNS.
5. Start named daemon for the master DNS server.

1. Configure a Linux node as a master DNS server for authenticated hosts.
To configure a Linux node as a master DNS server for RZTV, edit the /etc/named.conf file as follows:
zone "rztv.com" IN {
type master;
file "rztv.zone";
allow-update { none; };
};

zone "3.168.192.in-addr.arpa" IN {
type master;
file "named.rztv";
allow-update { none; };
};

Note:
A zone statement defines the characteristics of a zone and holds all the information regarding a zone, including the location of its configurations file. The following are some of the zone-options directives:
a. allow-update: Specifies the hosts that are allowed to dynamically update information in their zone.
b. file: Specifies the name of the zone’s configuration data file.
c. type: Specifies the types of zones, which are:
- master: Designates a name server as authoritative for the zone.
- forward: Forwards all requests regarding the information about the current zone to other name servers.
- hint: Points to the root name servers.

2. Configure the forward zone file.
Edit the /var/named/chroot/var/named/rztv.zone file in the linux node, which will act as the master DNS server, as follows:
$TTL 86400
@ IN SOA rztv.com. root.rztv.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

IN NS rztv.com.
rztv.com. IN A 192.168.3.130

Note:
1. $TTL: Used to set the default Time to Live (TTL) value for the zone. The TTL directive takes the value in seconds.
2. A: Address record, maps the host name to the IP address.
3. NS: Name Server record, defines the authoritative name servers for a particular zone.
4. SOA: State Of Authority record provides authoritative information about a domain. Contains the authoritative information about a namespace to the name server.
3. Configure the reverse zone file.
Edit the /var/named/chroot/var/named/named.rztv file in the Linux node, which will act as the master DNS server, as follows:
$TTL 86400
@ IN SOA rztv.com. root.rztv.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS rztv.com.

130 IN PTR rztv.com.
Note:
- PTR: PoinTeR record, maps an IP address to the host name. PTR are primarily used for reverse name solution, as they point IP addresses back to a particular host name.

4. Configure the DNS.
; generated by /sbin/dhclient-script
search localdomain
nameserver 192.168.3.130