Thursday, July 28, 2011

Oracle Database 11g Release 1 (11.1) Installation On Enterprise Linux 4.5 and 5.0

This article describes the installation of Oracle Database 11g Release 1 (11.1) on Enterprise Linux 4.5 and 5.0, but these instructions work perfectly for the original Red Hat Enterprise Linux 4 and 5 distributions, or any other clones such as CentOS 4 and 5. The article is based on a server installation with a minimum of 2G swap, secure Linux disabled. Oracle recommend a default server installation, but for these installations the following package groups installed:

Wednesday, July 20, 2011

Backup Restore Linux

The best tool to use for this is probably dump, which is a standard linux tool and will give you the whole filesystem. I would do something like this:

/sbin/dump -0uan -f - / 
| gzip -2 
| ssh user@serverB 
dd of=/backup/server-full-backup-`date '+%d-%B-%Y'`.dump.gz

This will do a file system dump of / (make sure you don't need to dump
any other mounts!), compress it with gzip and ssh it to a remote server
(serverB), storing it in /backup/. If you later need
to browse the backup you use restore:
 
restore -i
Another option, if you don't have access to dump is to use tar and do something like

tar -zcvpf /backup/full-backup-`date '+%d-%B-%Y'`.tar.gz 
--directory / --exclude=mnt --exclude=proc --exclude=tmp .

But tar does not handle changes in the file system as well.

seting samba

seting samba:

1.masuk dg putty
2.vi /etc/samba/smb.conf

yum behind proxy

1) Configure yum.conf

vi /etc/yum.conf
enter following lines at bottom of [main] section
proxy=http://yourproxyaddress:port/
proxy_username=youruser
proxy_password=yourpassword

2) Export http_proxy variable

export http_proxy=”http://username:password@yourproxyaddress:3128/”

3) Export http_proxy variable in bash login script

vi /root/.bash_profile
export http_proxy=”http://username:password@yourproxyaddress:3128/”
This will help you to export http_proxy variable automatically everytime you login.
Now use “yum list” command to check for its working.
yum list

Tuesday, July 19, 2011

TAR LINUX

   tar cvzf foo.tgz cps100
will tar the directory cps100 (and its files/subdirectories) into a tar file named foo.tgz.

To extract the contents of a tar file use:
    tar xvzf foo.tgz

This untars/extracts (x) into the directory from which the command is invoked, and prints the files being
extracted (v).

Monday, July 18, 2011

CPIO

How to create / extract using cpio command !

Wednesday, July 6, 2011

Oleh oleh Surabaya

Surabaya dikenal sebagai kota Pahlawan, kota yang terbesar ke dua di Indonesia. Banyak pebisnis yang datang dan bila perlu oleh oleh Surabaya atau oleh-oleh khas Surabaya bisa dengan cepat mendapatkan di banyak tempat, salah satu yang biasa di pesan adalah di http://mychococake.com

Oleh oleh Surabaya ini atau oleh-oleh khas Surabaya ini biasa disebut lapis Surabaya atau dalam bahasa lain disebut juga spiku, kue yang empuk, enak dan tidak bikin seret di tenggorokan deh. Jadi laper nih membahasnya, hehehehe.

Oya untuk macam oleh oleh Surabaya ini ada beberapa:
1. Double Choco / coklatnya double, jadi banyak coklatnya. Yummy banget deh...
2. Romantic, khusus yg berjiwa romantis....manis dan sedikit berkumis... (nah lho apa itu hehehehe)
3. Classic, ini original taste... jadi rasanya oke punya... kayak jaman Belanda doeloe deh
4. Mocca, ini khusus bagi pecinta mocca... duilaaaaa deh

Oleh oleh Surabaya ini tidak ada pengawet, jadi aman kalo dimakan, gak usah kuatir ama yg namanya pengawet... kalo bisa bikin awet muda sih yang kita cari ya... centil boooo

Ya udah ini kan cuman tulisan iseng buat ramaikan oleh oleh Surabaya.

Monday, July 4, 2011

Split and join

split --b 10000 filebesar.iso prefixntar jadinya: prefixaa, prefixab masing2 sebanyak 10000 bytes


utk gabung:
cat prefix* > filehasil.iso