Archive

Posts Tagged ‘Linux’

How to Use Tor Project Anonymous IP with Curl PHP on Linux

June 15th, 2010 1 comment

This article explains how to utilize Tor project in our own PHP application using Curl Library.

Tor is free software and an open network that helps you defend against a form of network surveillance that threatens personal freedom and privacy, confidential business activities and relationships, and state security known as traffic analysis.

We start by installing and configuring Tor and the necessary software then we create a simple application that fetch a website address anonymously.

Read more…

  • Share/Bookmark

BASH Redirection

Quick reference

In BASH terminology, there are 3 file descriptors, stdin, stdout and stderr (std means standard).

Basically you can:

  1. redirect stdout to a file
  2. redirect stderr to a file
  3. redirect stdout to a stderr
  4. redirect stderr to a stdout
  5. redirect stderr and stdout to a file
  6. redirect stderr and stdout to stdout
  7. redirect stderr and stdout to stderr

Next, 1 represents stdout and 2 means stderr.

A little note for seeing this things: with the less command you can view both stdout (which will remain on the buffer) and the stderr that will be printed on the screen, but erased as you try to ‘browse’ the buffer.

Read more…

  • Share/Bookmark
Categories: Linux Tags: , , , ,

Perl connection to PostgreSQL

Modul Perl yang diperlukan

Agar program Perl bisa connect ke Posgres diperlukan modul tambahan Perl sebagai berikut:

  1. DBI
  2. DBD::Pg

Instalasi Modul di Linux

Untuk sistem operasi Linux, installasi modul sangat mudah dilakukan, yaitu dengan menggunakan program RPM, Yum, dan sebagainya.

Read more…

  • Share/Bookmark

Me-Restore database PostgreSQL dari Windows ke Linux

Kasus

Anda mempunyai database PostgreSQL yang sudah berjalan di Windows kemudian ingin direstore ke server PostgreSQL yang berjalan di Linux.

Backup Database Di Windows

  1. Jalankan PgAdmin III di Windows,
  2. Pilih database yang mau dipindahkan ke Linux
  3. Klik kanan pada database, klik Backup

    Dialog Backup PgAdmin III

  4. Isikan filename yaitu nama file backup database, nama file tersebut harus ber-extension .backup
  5. Pilih option Compress
  6. Biarkan pilihan lain
  7. Klik OK
  8. Tunggu sampai proses selesai

Read more…

  • Share/Bookmark
This site uses a Hackadelic PlugIn, Hackadelic SEO Table Of Contents 1.6.0.