Your preferences can not be read

June 30th, 2010 by tommy 2 comments »

Pernah buka google chrome di linux dan tiba-tiba muncul pesan error “Your preferences can not be read” ?
Google Chrome - Your preferences can not be read
Kalo ia itu hanya masalah permission saja, anda mungkin pernah log in sebagai root ataupun userlain dan membuka Chrome, jadi file permissionnya berubah menjadi user yang anda pakai tersebut. Cara untuk mengatasinya adalah dengan merubah file permissionnya menjadi hak milik anda.

Cek folder permission Local State

ls -l /home/useraccount/.config/google-chrome


-rw-r--r-- 1 blogkaro blogkaro        3 2010-06-29 23:48 chrome_shutdown_ms.txt
drwx------ 4 blogkaro blogkaro     4096 2010-06-29 23:48 Default
drwx------ 2 blogkaro blogkaro     4096 2010-05-10 12:35 Dictionaries
-rw-r--r-- 1 blogkaro blogkaro        0 2010-05-10 12:14 First Run
-rw------- 1 root    root        3245 2010-05-21 12:55 Local State
-rw-r--r-- 1 blogkaro blogkaro 17687552 2010-06-29 23:21 Safe Browsing Bloom
-rw------- 1 blogkaro blogkaro  1521456 2010-06-29 23:21 Safe Browsing Bloom Filter 2
srwxr-xr-x 1 blogkaro blogkaro        0 2010-06-29 23:47 SingletonSocket

Disitu tampak file Local State dimiki oleh root, sekarang ubah menjadi milik akun anda (pada contoh blogkaro)

sudo chown blogkaro:blogkaro -R  Local\ State

lakukan juga untuk  .config/google-chrome/Default

atau untuk cara yang lebih cepat

sudo chown blogkaro:blogkaro -R *

RSS Feed Add to Technorati Favorites Add to Del.icio.us Stumble It! Submit to Lintas Berita Submit to Buzz! Digg It! Submit to Fwisp

SquirrelMail Error

June 25th, 2010 by tommy 6 comments »

Tadi habis bermain-main dengan server mail tiba-tiba muncul pesan error.
Errornya :


Your session has expired, but will be resumed after logging in again

habis googling ada yang menyarankan untuk langsung ke halaman logout /scr/signout.php, hasilnya tetap sama :) malah muncul lagi error yang lain


Preference file, /var/lib/squirrelmail/prefs/.pref.tmp, could not be written. Contact your system administrator to resolve this issue.

udah coba-coba cek hak akses folder tersebut dan menggantinya menjadi 777 hasilnya tetap aja, liat di log httpd


[Fri Jun 25 03:18:17 2010] [error] [client xxx.xxx.xxx.xxx] PHP Warning:  session_write_close() [<a href='function.session-write-close'>function.session-write-close</a>]: write failed: No space left on device (28) in /usr/share/squirrelmail/src/redirect.php on line 171, referer: http://surbakti.web.id/src/login.php
[Fri Jun 25 03:18:17 2010] [error] [client xxx.xxx.xxx.xxx] PHP Warning:  session_write_close() [<a href='function.session-write-close'>function.session-write-close</a>]

ternyata space yang kurang :) coba aku cek ukuran hardisk


Filesystem            Size  Used Avail Use% Mounted on
/dev/xvda3            6.7G  6.4G  296K 100% /
/dev/xvda1             99M   17M   77M  18% /boot
tmpfs                 256M     0  256M   0% /dev/shm

ukuran yang tersedia tinggal 296K ;) jadi setelah hapus beberapa file, SquirrelMail pun sukses dijalankan :D

RSS Feed Add to Technorati Favorites Add to Del.icio.us Stumble It! Submit to Lintas Berita Submit to Buzz! Digg It! Submit to Fwisp

Mengganti Jam di Linux

June 25th, 2010 by tommy No comments »

Caranya simple dan ngga memerlukan banyak waktu :)
berikut ini contoh untuk settingan jakarta :

cp /usr/share/zoneinfo/Asia/Jakarta /etc/localtime

daftar-daftar timezone lainnya bisa dilihat di /usr/share/zoneinfo/ untuk melihat hasilnya ketik date

[blogkaro@karoserv]$ date
Fri Jun 25 00:25:27 WIT 2010

RSS Feed Add to Technorati Favorites Add to Del.icio.us Stumble It! Submit to Lintas Berita Submit to Buzz! Digg It! Submit to Fwisp

Nama Nama Yesus

June 24th, 2010 by tommy 4 comments »

Advocate (1 John 2:1)
Almighty (Rev. 1:8; Mt. 28:18)
Alpha and Omega (Rev. 1:8; 22:13)
Amen (Rev. 3:14)
Apostle of our Profession (Heb. 3:1)
Atoning Sacrifice for our Sins (1 John 2:2)
Author of Life (Acts 3:15)
Author and Perfecter of our Faith (Heb. 12:2)
Author of Salvation (Heb. 2:10)
Beginning and End (Rev. 22:13)
Blessed and only Ruler (1 Tim. 6:15)
Bread of God (John 6:33)
Bread of Life (John 6:35; 6:48)
Bridegroom (Mt. 9:15)
Capstone (Acts 4:11; 1 Pet. 2:7)
Chief Cornerstone (Eph. 2:20)
Chief Shepherd (1 Pet. 5:4)
Christ (1 John 2:22)
Creator (John 1:3)
Deliverer (Rom. 11:26)
Eternal Life (1 John 1:2; 5:20)
Faithful and True (Rev. 19:11)
Faithful Witness (Rev. 1:5)
Faithful and True Witness (Rev. 3:14)
First and Last (Rev. 1:17; 2:8; 22:13)
Firstborn From the Dead (Rev. 1:5)
Firstborn over all creation (Col. 1:15)
Gate (John 10:9)
God (John 1:1; 20:28; Heb. 1:8; Rom. 9:5; 2 Pet. 1:1;1 John 5:20; etc.)
Good Shepherd (John 10:11,14)
Great Shepherd (Heb. 13:20)
Great High Priest (Heb. 4:14)
Head of the Church (Eph. 1:22; 4:15; 5:23)
Heir of all things (Heb. 1:2)
High Priest (Heb. 2:17)
Holy and True (Rev. 3:7)
Holy One (Acts 3:14)
Hope (1 Tim. 1:1)
Hope of Glory (Col. 1:27)
Horn of Salvation (Luke 1:69)
I Am (John 8:58)
Image of God (2 Cor. 4:4)
Immanuel (Mt. 1:23)
Judge of the living and the dead (Acts 10:42)
King Eternal (1 Tim. 1:17)
King of Israel (John 1:49)
King of the Jews (Mt. 27:11)
King of kings (1 Tim 6:15; Rev. 19:16)
King of the Ages (Rev. 15:3)
Lamb (Rev. 13:8)
Lamb of God (John 1:29)
Lamb Without Blemish (1 Pet. 1:19)
Last Adam (1 Cor. 15:45)
Life (John 14:6; Col. 3:4)
Light of the World (John 8:12)
Lion of the Tribe of Judah (Rev. 5:5)
Living One (Rev. 1:18)
Living Stone (1 Pet. 2:4)
Lord (2 Pet. 2:20)
Lord of All (Acts 10:36)
Lord of Glory (1 Cor. 2:8)
Lord of lords (Rev. 19:16)
Man from Heaven (1 Cor. 15:48)
Master (Lk. 5:5; 8:24; 9:33)
Mediator of the New Covenant (Heb. 9:15)
Mighty God (Isa. 9:6)
Morning Star (Rev. 22:16)
Offspring of David (Rev. 22:16)
Only Begotten Son of God (John 1:18; 1 John 4:9)
Our Great God and Savior (Titus 2:13)
Our Holiness (1 Cor. 1:30)
Our Husband (2 Cor. 11:2)
Our Protection (2 Thess. 3:3)
Our Redemption (1 Cor. 1:30)
Our Righteousness (1 Cor. 1:30)
Our Sacrificed Passover Lamb (1 Cor. 5:7)
Power of God (1 Cor. 1:24)
Precious Cornerstone (1 Pet. 2:6)
Prophet (Acts 3:22)
Rabbi (Mt. 26:25)
Resurrection and Life (John 11:25)
Righteous Branch (Jer. 23:5)
Righteous One (Acts 7:52; 1 John 2:1)
Rock (1 Cor. 10:4)
Root of David (Rev. 5:5; 22:16)
Ruler of God’s Creation (Rev. 3:14)
Ruler of the Kings of the Earth (Rev. 1:5)
Savior (Eph. 5:23; Titus 1:4; 3:6; 2 Pet. 2:20)
Son of David (Lk. 18:39)
Son of God (John 1:49; Heb. 4:14)
Son of Man (Mt. 8:20)
Son of the Most High God (Lk. 1:32)
Source of Eternal Salvation for all who obey him (Heb. 5:9)
The One Mediator (1 Tim. 2:5)
The Stone the builders rejected (Acts 4:11)
True Bread (John 6:32)
True Light (John 1:9)
True Vine (John 15:1)
Truth (John 1:14; 14:6)
Way (John 14:6)
Wisdom of God (1 Cor. 1:24)
Word (John 1:1)
Word of God (Rev. 19:13)

RSS Feed Add to Technorati Favorites Add to Del.icio.us Stumble It! Submit to Lintas Berita Submit to Buzz! Digg It! Submit to Fwisp

IPv6 Ready

June 23rd, 2010 by tommy No comments »

Blog ini bisa diakses dengan IPv6 :D di alamat 2001:470:1f05:cb3::8 dengan alamatnya tetap http://blog.karo.or.id ayo kita dukung pengimplementasian IPv6 :)

RSS Feed Add to Technorati Favorites Add to Del.icio.us Stumble It! Submit to Lintas Berita Submit to Buzz! Digg It! Submit to Fwisp

Instalasi IPv6 DNS Server

June 23rd, 2010 by tommy 1 comment »

Kita akan menggunakan bind9 sebagai DNS server, dan CentOS 5.5 64 Bit sebagai Sistem Operasinya. Pertama lakukan upgrade CentOS,

yum update ; yum upgrade

lakukan instalasi DNS server

yum install bind -y

buat file konfigurasi bind di /etc/named.conf

nano /etc/named.conf


options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
forwarders {
8.8.4.4;
};
listen-on-v6 { any; };
};

controls {
inet 127.0.0.1 allow { localhost; } keys { t0DsdfaRqd2Lc5KfE6yWUEAXXj9rP0qrYoMDVw2; };
};

zone "." IN {
type hint;
file "named.ca";
};

zone "localhost" IN {
type master;
file "/var/named/localhost.zone";
allow-update { none; };
};

zone "v6.dom" IN {
type master;
file "/var/named/v6.dom";
allow-update { none; };
};

zone "v6.rev" IN {
type master;
file "/var/named/v6.rev";
allow-update { none; };
};

sekarang buat zona untuk reverse domain dan ip, yang tadi sudah kita buatkan.

nano /var/named/v6.dom


$TTL            86400
@                 IN SOA            surbakti.web.id.  root.surbakti.web.id. (
2010061801     ; serial
1H      ; refresh
1M      ; retry
1W      ; expiry
1D )    ; minimum
@               IN NS                    ns1.surbakti.web.id.
@               IN NS                    ns2.surbakti.web.id.
@               IN NS                    ns3.surbakti.web.id.
@               IN A                     2001:470:1f05:cb3::2
ns1             IN AAAA                  2001:470:1f05:cb3::4
ns2             IN AAAA                  2001:470:1f05:cb3::5
ns3             IN AAAA                  2001:470:1f05:cb3::6
mail            IN AAAA                    2001:470:1f05:cb3::7

sekarang buatkan zona reverse untuk ip nya

<strong>nano /var/named/v6.rev</strong>


$TTL    86400
@                  IN SOA          surbakti.web.id. root.surbakti.web.id. (
2010061801     ; serial
1H      ; refresh
1M      ; retry
1W      ; expiry
1D)     ; minimum
@               IN NS                    ns1.surbakti.web.id.
@               IN NS                    ns2.surbakti.web.id.
@               IN NS                    ns3.surbakti.web.id.
2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0         IN PTR          surbakti.web.id.
4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0         IN PTR          ns1.surbakti.web.id.
5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0         IN PTR          ns2.surbakti.web.id.
6.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0         IN PTR          ns3.surbakti.web.id.
7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0         IN PTR          mail.surbakti.web.id.

ada baiknya sebelum merestart bind9 kita mengecek apakah terdapat error atau tidak didalam file configurasi kit, dengan cara :

service named configtest

kalo ngga terdapat error bisa langsung direstart :) . Cek dengan dig apakah sudah sesuai dengan keinginan atau belum hasilnya.


dig -x 2001:470:1f05:cb3::5

5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.3.b.c.0.5.0.f.1.0.7.4.0.1.0.0.2.ip6.arpa. 86400 IN PTR ns2.surbakti.web.id.

kalo hasilnya seperti itu berarti sudah berhasil :D Selamat Menggunakan IPv6

RSS Feed Add to Technorati Favorites Add to Del.icio.us Stumble It! Submit to Lintas Berita Submit to Buzz! Digg It! Submit to Fwisp

Memindahkan File(s) Antar Server

June 20th, 2010 by tommy No comments »

Pindah memindah file antar server mungkin sangat sering dilakukan apalagi Anda bekerja sebagai system administrator, membackup file-file penting, email, script-script, database dan lain sebagainya. Untuk perpindahan file-file antar server di linux bisa menggunakan scp, kelebihan dari scp ini bisa melakukan transfer file tanpa menggunakan ftp atau http jadi kita tidak membutuhkan aplikasi tambahan untuk proses migrasi ini. Perintah untuk melakukan transfer :

scp d.sh root@89.238.177.13:/var/www/

keterangan :

d.sh adalah file yang akan ditransfer

root = root di server lain (bisa juga menggunakan user biasa)

89.238.177.13 = ip server tujuan

/var/www = direktori tempat file yang akan ditransfer disimpan.

proses pemindahan file

SCP Transfer

RSS Feed Add to Technorati Favorites Add to Del.icio.us Stumble It! Submit to Lintas Berita Submit to Buzz! Digg It! Submit to Fwisp

Mengecek Apa Saja Yang Diinstall Di CentOS

June 20th, 2010 by tommy No comments »

Kadang kita mau lihat software-software apa saja yang sudah diinstall di CentOS, perintahnya cukup simple

yum list

Kalo menggunakan yum list kita akan sulit melihatnya, karena hasilnya mungkin sangat banyak, ada baiknya hasilnya disimpan kedalam file, untuk memudahkan investigasi

yum list > list.yum

Bisa juga digabungkan dengan grep, atau yang lainnya, tinggal dikreasikan saja. tapi ada baiknya hasil listnya disimpan dulu baru dari file tersebut dicari file/software yang ingin kita cari, untuk mempercepat pencarian.

RSS Feed Add to Technorati Favorites Add to Del.icio.us Stumble It! Submit to Lintas Berita Submit to Buzz! Digg It! Submit to Fwisp

Menambah Repository Centos 5

June 14th, 2010 by tommy 4 comments »
EPEL software repository
download :
http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
Karan software repository
Download : simpan di /etc/yum.repos.d/
wget http://centos.karan.org/kbsingh-CentOS-Extras.repo
wget http://centos.karan.org/kbsingh-CentOS-Misc.repo
GPG Key :
rpm –import http://centos.karan.org/RPM-GPG-KEY-karan.org.txt
Dag  Wieers software repository

Red Hat Enterprise Linux 5 / i386  |  CentOS 5 i386
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
Red Hat Enterprise Linux 5 / x86_64 | CentOS 5 x86_64
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
GPG Key
rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

RSS Feed Add to Technorati Favorites Add to Del.icio.us Stumble It! Submit to Lintas Berita Submit to Buzz! Digg It! Submit to Fwisp

Instalasi DNS Server CentOS 5.5 on VPS or Dedicated Server

June 13th, 2010 by tommy No comments »

DNS  server  itu tujuannya untuk menerjemahkan ip menjadi domain name, jadi akan memudahkan kita untuk mengingat sebuah situs, daripada menggunakan alamat ip, seperti 233.33.22.10 kan pasti lebih mudah mengingat http://google.com :D . pada contoh domain yang akan kita pake surbakti.web.id, dengan ip 89.238.177.11
Kali ini instalasi DNS server yang akan digunakan adalah bind9 dengan CentOS 5.5 versi Server sebagai sistem operasinya.

yum install bind

buat file named.conf, karena defaultnya CentOS tidak membuat file ini.

nano /etc/named.conf

tambahkan konfigurasi berikut ini kedalam named.conf :

//
// named.conf for Red Hat caching-nameserver
//
options {
directory “/var/named”;
dump-file “/var/named/data/cache_dump.db”;
statistics-file “/var/named/data/named_stats.txt”;
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below.  Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};

//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rdnckey; };
};

zone “.” IN {
type hint;
file “named.ca”;

};

zone “localhost” IN {
type master;
file “/var/named/localhost.zone”;
allow-update { none; };
};

zone “surbakti.web.id” IN {
type master;
file “/var/named/surbakti.web.id.zone”;
allow-update { none; };
};

zone “177.238.89.in-addr.arpa” IN {
type master;
file “/var/named/177.238.89.rev”;
allow-update { none; };
};

include “/etc/rndc.key”;

sekarang buat zona resolve dari domain ke ip, di  /var/named/surbakti.web.id.zone,

nano /var/named/surbakti.web.id.zone

$TTL            86400
@                 IN SOA            surbakti.web.id.  root.surbakti.web.id. (
2010061302     ; serial
1H      ; refresh
1M      ; retry
1W      ; expiry
1D )    ; minimum
@                    IN NS                ns1.surbakti.web.id.
@                    IN A                 89.238.177.11
ns1                  IN A                 89.238.177.11
@                    IN MX   10           mail.surbakti.web.id.
mail                 IN A                 89.238.177.11
WWW                  IN A                 89.238.177.11

satu lagi zona resolve untuk dari ip ke domain di /var/named/177.238.89.rev

nano /var/named/177.238.89.rev

$TTL    86400
@                  IN SOA          surbakti.web.id. root.surbakti.web.id. (
2010061302     ; serial
1H      ; refresh
1M      ; retry
1W      ; expiry
1D)     ; minimum
@                   IN NS            ns1.surbakti.web.id.
11                  IN PTR           surbakti.web.id.

sekarang restart bind9 server

#service named restart atau #/etc/init.d/named restart

untuk mengecek hasilnya bisa pake dig, kalo belum terinstall, bisa disinstall dengan cara

yum install bind-utils

dig -x surbakti.web.id

[root@surbakti ~]# dig surbakti.web.id A

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> surbakti.web.id A
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4264
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;surbakti.web.id.        IN    A

;; ANSWER SECTION:
surbakti.web.id.    86400    IN    A    89.238.177.11

;; AUTHORITY SECTION:
surbakti.web.id.    86400    IN    NS    ns1.surbakti.web.id.

;; ADDITIONAL SECTION:
ns1.surbakti.web.id.    86400    IN    A    89.238.177.11

;; Query time: 1 msec
;; SERVER: 89.238.177.11#53(89.238.177.11)
;; WHEN: Sun Jun 13 01:56:00 2010
;; MSG SIZE  rcvd: 83

[root@surbakti ~]#

untuk melihat reverse ip ke domainnya berhasil bisa digunakan host namadomain

host 89.238.177.11

11.177.238.89.in-addr.arpa domain name pointer surbakti.web.id.

semoga berguna.

RSS Feed Add to Technorati Favorites Add to Del.icio.us Stumble It! Submit to Lintas Berita Submit to Buzz! Digg It! Submit to Fwisp

Switch to our mobile site