Rsync using ssh non-standart port ssh

Before we start to explain deep, let me introduce rsync (evil_grin)

What is Rsync ? (lonely)

rsync is a file transfer program for Unix systems. rsync uses the “rsync algorithm” which provides a very fast method for bringing remote files into sync. It does this by sending just the differences in the files across the link, without requiring that both sets of files are present at one of the ends of the link beforehand (scenic) .

Rsync features 

  • Can update whole directory trees and filesystems
  • Optionally preserves symbolic links, hard links, file ownership, permissions, devices and times
  • Requires no special privileges to install
  • Internal pipelining reduces latency for multiple files
  • Can use rsh, ssh or direct sockets as the transport
  • Supports anonymous rsync which is ideal for mirroring

The Basic command rsync. (thinking)

rsync -av <source> <target>

 
Read more »

Categories: Linux, Orat-oret | Tags: , | Leave a comment

Howto: Install PHP Oracle / module php-oci8 on Linux

If you are using Oracle database and  you want to connect, in here you can find how to install module php-oci8. In this how to you can use Oracle’s Instant Client and php oci8 module from pear.  (thinking)

Download the Linux Basic  and the SDK packages from here. At the time of this writing, filename are  instantclient-basic-linux-11.2.0.3.0.zip (58,502,865 bytes) (cksum – 2164488682) and instantclient-sdk-linux-11.2.0.3.0.zip (639,306 bytes) (cksum – 3741058433)

PHP-oci8 you can download here. At the time of this writing, filename are oci8-1.4.6.tgz (163.3kB)  (gym)

Unzip all file to /opt/oracle or anything path you want.  (rock)

mkdir /opt/oracle

unzip instantclient-basic-linux-11.2.0.3.0.zip /opt/oracle

unzip instantclient-sdk-linux-11.2.0.3.0.zip /opt/oracle

 

Read more »

Categories: Linux, Orat-oret | Tags: , , , , | 2 Comments

Export MySQL data to CSV

Melakukan export data MySQL ke CSV sangat mudah di lakukan melalui CLI (Command Line Interface), untuk langkah ini kita mempunya 2 cara, tinggal pilih saja mana yang menurut Anda gampang dilakukan.

Langkah 1:

select columns INTO OUTFILE ‘/path/to/output.csv’
FIELDS TERMINATED BY ‘,’ OPTIONALLY ENCLOSED BY ‘”‘
LINES TERMINATED BY ‘n’ from table [where clause]

Langkah 2:

mysql -unamauser -ppassword namadatabase -B -e “select * from data;” | sed ‘s/t/”,”/g;s/^/”/;s/$/”/;s/n//g’ > output.csv

Dari perinta diatas kita akan mendapatkan output sebagai berikut:

“id”,”username”,”group”,”password”
“1″,”henry”,”admin”,”10D6D95FE54A1D05C81E928D47450E”
“2″,”flubber”,”admin”,”10D6D95FE54A1D05C81E928D47450E”
“3″,”khad”,”admin”,”10D6D95FE54A1D05C81E928D47450E”
“4″,”maharzz”,”staff”,”10D6D95FE54A1D05C81E928D47450E”
“5″,”sipur”,”staff”,”10D6D95FE54A1D05C81E928D47450E”

Dan berikut adalah penjelasannya:
Dimulai dengan perintah MySQL. Saya tidak akan menjelaskan opsi -u dan -p karena asumsi sering digunakan didalam perintah CLI mysql. Opsi-B akan membatasi data menggunakan tab dan setiap baris akan muncul pada baris baru. -e opsi menunjukkan perintah untuk menjalankan setelah Anda login ke dalam database. Dalam hal ini kita menggunakan statemen SELECT sederhana.

Penjelasan SED, Perintah ini mempunyai tiga script sed terpisah:

s/t/”,”/g;s/^/”/ <— ini akan mencari dan mengganti semua ‘tab’ dan menggantinya dengan “,”.

;s/$/”/; <— ini akan menambah tanda kutip ” pada awal baris.

s/n//g <— ini akan menambah tanda kutip ” pada akhir baris.

Setelah menjalankan perintah diatas kita akan mendapatkan output file dalam bentuk ekstensi .csv

Sumber: h++p://tlug.dnho.net

Categories: Linux, Uncategorized | Tags: | Leave a comment

Surga Di Telapak Kakimu – Gita Gutawa

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

Kunyanyikan sebuah lagu untukmu ibu
Sebagai wujud terimakasihku kepadamu
Tanpa lelah….
Kau berjuang membesarkanku
Berikan yang terbaik untukku.

Ijinkanlah tanganmu kucium
Dan kubersujud di pangkuanmu
Temukan kedamaian di hangat pelukmu.

Didalam hatiku yakin serta percaya
Pada kekuatan do’a yang engkau titipkan lewat Tuhan
Membuat semangat bila diri ini rapuh & tiada berdaya.

Ada surga di telapak kakimu
Betapa besar arti dirimu
Buka pintu maafmu
Saat kulukai hatimu.

Ada surga di telapak kakimu
Lambangkan mulianya dirimu
Hanya lewat restumu
Terbuka pintu ke surga…

Kasih sayangmu begitu tulus
Kau cahaya di hidupku
Tiada seorang pun yang dapat menggantimu…
IBU….

Terimakasih Gita Gutawa…syair lagu mu ini indah bgt ^^
*Setiap waktu,di setiap desah nafasku,dan dimanapun berada saya selalu mendo’akan mu ibu….
hari.. minggu.. bulan.. pun berganti, saya tetap selalu mendo’akan mu ibu…
Semoga engkau mendapatkan tempat yg layak di sisiNya Amin….*

Yang ingin unduh atau download Gita Gutawa – Surga Di Telapak Kakimu langsung klik Continue reading
Read more »

Categories: Music | Tags: | Leave a comment

DBZ hybrid v1.2 for 9800

Untuk pengguna Blackberry Torch a.k.a 9800, dan mencintai hybrid, saat ini telah ada Hybrid versi 1.2 dari DBZ series..
DBZ hybrid v1.2
Mix: 448+450+461+466+481+6.1.0.7+6.1.0.13
About n help screen: 6.0.0.481 (1908)
Platform: 6.4.0.211

Fitur dan Kelebihan DBZ Hybrid dibanding OS Standard :
-Battery, memory, browser dan performa yang lebih baik
-Include CJK (read & write CJK except Japan)
-BBM v6.0.0.13.
-Facebook v1.9.1.5
-Twitter v1.1.0.16
-Yahoo Messenger v2.5.69
-Bahasa yang tersedia hanya English
-Hybrid ini sudah saia Shrink, tapi jika mau shrink silahkan tapi ditanggung sendiri yah resikonya
-BBM6 lebih ramah di OS hybrid versi ini.
-signal locking yg lebih baik.
-lainya, silahkan di rasakan sendiri ^_^
-bebas menggunakan base OS mana aja yg penting masih versi OS dari 9800
*bonus:
Blackberry protect (SDcard installer)
NewsFeeds (SDcard Installer)
Read more »

Categories: Orat-oret | Tags: , , , | Leave a comment

UberTwitter And Twidroyd Suspended

If you are using UberTwitter or twidroyd, it’s a bad news to you (tears) . Twitter, in an announcement from Twitter Support blog, they said “We have suspended UberTwitter and twidroyd for violating our policies” (scenic)

See the full statment from Twitter Support Blog.

And from the another forum they tell “Bring Back UT!!” :). Now you can use Official Twitter Application and make more twitt (dance_bzz)

Categories: Curhat, Orat-oret | Tags: , , , , , | Leave a comment

Rossa – Ku Menunggu


2 Hari setelah hari Valentine, mendadak datang request download lagu dari teman kantor missicuth untuk mencari lagunya Rossa dengan tembang terbarunya yaitu Ku Menunggu dari albumnya Harmoni Jalinan Nada & Cerita, finally setelah googling akhirnya dapat :) Dan juga lirik lagunya.

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

Read more »

Categories: Curhat, Music, Orat-oret | Tags: , , | Leave a comment

Enable Telnet Client on Windows 7 or higher

Telnet (Telecommunication Network) is an ancient network protocol used on the Internet or local area network to connect to remote host and provide two-way interactive command-line interface.

In the Windows operating system, Telnet client application software is included to provide the ability telnet. But on Windows 7 or higher, telnet client by default is not active. (doh)
Telnet is very insecure and whenever you have the choice you should always use SSH. However, with that being said, you can quickly re-enable Telnet by following these steps: (goodluck)

Read more »

Categories: Hobby, Orat-oret | Tags: , , | Leave a comment

Thunderbird Get MS-Exchange Global Address List

I’m using Thunderbird as Mail User Agent. Now i want to get Global Address List with my Thunderbird. As we know Active Directory using LDAP.

To setting up Thunderbird open Tools > Address Book

Read more »

Categories: Hobby, Linux, Orat-oret | Tags: , | 1 Comment

Exporting Data with the SELECT … INTO OUTFILE Statement

Berikut syntax untuk membatu dalam melakukan dump database, tetapi kita dapat menentukan field-filed yg kita butuhkan, dengan menggunakan SELECT dengan INTO OUTFILE output_file.

Ikuti langkah berikut ini untuk mengexport table data_tbl ke dalam file data.txt.

mysql> SELECT * FROM data_tbl
-> INTO OUTFILE ‘/tmp/data.txt’;

Output dari perintah diatas akan membuat file /tmp/data.txt. Jika ingin outpunya dalam bentuk CSV (Comma Separate Vallues) bisa mengikuti langkah berikut.
Read more »

Categories: Linux, Orat-oret | Tags: , | Leave a comment