Perintah dasar Linux

Perintah dasar Linux
Category: Other

Basic command
Perintah-perintah dasar Linux perintah-perintah dalam sistem operasi under Unix bersifat case sensitive, perintah tersebut membedakan antara penggunaan huruf besar (capital) dengan huruf kecil. Artinya perintah ‘ls’ dengan ‘LS’ atau’Ls’ atau ‘lS’ akan diterjemahkan sebagai perintah yang berbeda. Dalam sistem operasi under UNIX banyak sekali kombinasi perintah yang bisa digabungkan dalam satu perintah artinya dalam satu perintah bisa terdiri dari beberapa perintah dasar. Apabila kita kesulitan atau bingung karena banyak kombinasi perintah, option atau syntax yang digunakan, kita bisa melihat howto-nya,readme,atau manual pagenya. Contoh, bila kita ingin mengetahui sintak2 apa saja yang dapat digunakan dalam perintah ‘ls’ kita hanya cukup mengetikan ‘man ls’ atau ‘ls -help’ maka nanti akan ditampilkan semua informasi tentang perintah ‘ls’ dari option2nya hingga sintak2 penulisannya. Berikut ini adalah beberapa perintah dasar dalam sistem operasi under UNIX khususnya Linux :
man atau -help
fungsi : untuk melihat halaman manual dari suatu perintah
cth : man ls : melihat halaman manual dari perintah ls
ls
fungsi : untuk melihat isi suatu direktori “untuk option2nya dapat dilihat pada “halaman manual”
cth :
ls -l : untuk melihat file atau direktori pd direktori aktif dengan menyertakan atributnya
ls -la /etc : untuk melihat file atau direktori pada direktori /etc beserta file hiddennya
ket : pada sistem operai under UNIX menggunakan ‘/’ untuk memisahkan parent directory dengan child directory, sedangkan pada DOS menggunakan ‘ \’

cd
fungsi : untuk berpindah direktori (change directory)
cth :
cd /home/sparrow : untuk berpindah ke direktori /home/sparrow
cd .. : untuk berpindah ke parent directory dari direktori aktif
ket : penggunaan cd tanpa nama direktori akan menuju ke home direktori,sedangkan penggunaan cd- akan menuju ke direktori aktif sebelumnya.
mkdir
fungsi : untuk membuat direktori baru
cth :
mkdir dany : untuk membuat direktori baru dengan nama dany pada direktor aktif
mkdir dany sparrow : membuat dua direktori baru dany dan sparrow
ket : penggunaan spasi pada nama direktori akan diasumsikan sebagai beberapa nama direktori baru
rmdir
fungsi : untuk menghapus direktori yang sudah kosong
cth :
rmdir dany : untuk menghapus direktori dengan nama dany
cp
fungsi : untuk mengkopi file atau direktori
cth :
cp coba_in /home :mengkopi file coba_in ke direktori /home
cp test /home/dokumenku : mengkopi file test ke direktori /home/dokumenku,apabila dalam direktori home tidak ada direktori dokumenku, maka file akan dikopi ke direktori home sekaligus diganti nama filenya dengan nama dokumenku.
mv
fungsi : untuk memindahkan file atau direktori dan atau me-rename-nya
cth :
mv /home/dany /etc : memindahkan file atau direktori dany yang berada di dalam direktori /home ke dalam direktori /etc dengan nama dany
mv dany sparrow : mengubah (me-rename) file dany menjadi sparrow pada direktori aktif
rm fungsi : untuk menghapus file
cth :
rm dataku : menghapus file dataku pada direktori aktif
pwd fungsi : untuk mengetahui path direktori yang sedang aktif (print working directory)
passwd fungsi : untuk mengganti password user yang sedang aktif
useradd fungsi : untuk menambah user
userdel fungsi : untuk menghapus user

cat fungsi : untuk melihat isi file atau membuat suatu file
cth :
cat dany : melihat isi file dany
cat >sparrow : membuat file baru dengan nama sparrow (untuk mengakhirinya tekan (Ctrl+D)

less fungsi : untuk menampilkan isi file
cth :
less latihan.txt : menampilkan file latihan.txt
find fungsi : untuk mencari file/direktori
cth :
find / -name dany.txt -print : mencari file dany.txt keseluruh direktori dan menampilkannya pada layar.
ket : untuk mencari file atau direktori pada direktori tertentu cth : find /home -dany.txt

pico atau vi fungsi : editor file/text editor
cth :
pico dany.txt : mengedit file dany.txt
who atau w fungsi : untuk melihat user yang sedang aktif
ps fungsi : untuk melihat proses yang sedang aktif / sedang dijalankan oleh sistem
kill fungsi : untuk menghentikan atau mematikan proses yang ada
cth :
kill -9 245 : mematikan / menghentikan proses dengan nomor PID 245
ket : untuk bisa menggunakan nomor signalnya atau bisa juga menggunakan nama signalnya
more
fungsi : untuk melihat isi file dan melihat output di layar,bila dalam satu layar tidak cukup maka akan ditampilkan per layar
uname fungsi : untuk melihat versi Linux
cth :
[root@localhost sparrow]# uname -r
2.6.12-12mdk
[root@localhost sparrow]#
atau cara lain dengan melihat isi file /proc/version
cth :
[sparrow@localhost ~]$ cat /proc/version
Linux version 2.6.12-12mdk (apatard@n1.mandriva.com) (gcc version 4.0.1 (4.0.1-5mdk for Mandriva Linux release
2006.0)) #1 Fri Sep 9 18:15:22 CEST 2005
[sparrow@localhost ~]$

Clear fungsi : untuk membersihkan layar dari tampilan text

reboot atau Ctrl+Alt+Del fungsi : untuk membooting (restart) komputer

halt atau shutdown atau init 0
fungsi : untuk mematikan komputer
ket : untuk command prompt pada windows XP bisa menggunakan shutdown

Perintah vi di Linux

ambil dari artikel tetangga..

Perintah “vi” adalah perintah di dalam shell linux untuk mengedit teks, kalau di dalam Windows pada shell MS-Dos dengan perintah “edit”. Yang keduanya hampir mempunyai kesamaan, perbedaannya di dalam dos bisa langsung dari windows dan dapat mouse dapat dijalankan tetapi di dalam vi mouse tidak bisa digunakan untuk memilih option tersebut seperti file, edit, help dll.
Untuk perintah edit di MS-DOS dan vi di Linux adalah sebagai berikut :
edit namafile.extensi –> untuk MS-DOS
vi namafile.extensi –> untuk Linux
Untuk perintah edit pada MS-DOS antara lain

EDIT [/B] [/H] [/R] [/S] [/] [/?] [file(s)]
/B – Forces monochrome mode.
/H – Displays the maximum number of lines possible for your hardware.
/R – Load file(s) in read-only mode.
/S – Forces the use of short filenames.
/ – Load binary file(s), wrapping lines to characters wide.
/? – Displays this help screen.
[file] – Specifies initial files(s) to load. Wildcards and multiple
filespecs can be given.

Dan berikut ini perintah dalam vi dalam linux antara lain :

Insert Text:
a : Insert Text after the cursor
A : Insert text at the end of the current line
I : Insert text at the beginning of the current line
i : Insert text before cursor
o : Open a line below the current line
O : Open a line above the current line
Ctrl-V : Insert any special character in input mode

Delete Text:
D : Delete up to the end of the current line
dd: Delete the current line
dw: Delete from the cursor to the end of the following word
x : Delete the character on which the cursor rests

Change Text:
C : Change up to the end of the current line
cc: Change the current line
cw: Change the word
J : Join the current line with the next one
rx: Replace the character under the cursor with x (x is any character)
~ : Change the character under the cursor to the opposite case

Move Cursor:
$ : Move to the end of the current line
; : Repeat last f or F command
^ : Move to the beginning of the current line
e : Move to the end of the current word
fx: Move cursor to the first occurrence of character x on the current
line
Fx: move cursor to the last occurrence of character x on the current
line
H : Move cursor to the top of the screen
h : Move one character to the left
j : Move one line down
k : Move one line up
L : Move cursor to the end of the screen
l : move one character to the right
M : Move cursor to the middle of the screen
n|: Move cursor to column n on current line
nG: Place cursor on line n
w : Move to the beginning of the following word

Mark A location:
‘x: Move cursor to the beginning of the line that contains mark x
`x: Move cursor to mark x
mx: Mark the current location with letter x

Scroll text:
Ctrl-b : Scroll backward by a full screen
Ctrl-d : Scroll forward by half a screen
Ctrl-f : Scroll forward by a full screen
Ctrl-u : Scroll backward by half a screen

Refresh Screen:
Ctrl-l : Redraw screen

Cut and Paste Text:
“xndd : Delete n lines and move them to buffer x(x is any single lowercase character)
“Xnyy : Yank n (a number) lines and append them to buffer x
“xnyy : Yank n (a number) lines into buffer x (x is any single lowercase character)
“xp : Put the yanked lines from buffer x after the current line
P : Put yanked line above the current line
p : Put yanked line below the current line
yy : Yank (copy) current line into an unnamed buffer

Colon Commands:
:!command : Execute shell command
:e filename : Edit file
:f : Display filename and current line number
:N : Move to line n (n is a number)
:q : quit editor
:r filename : Read file and insert after current line
:w filename : Write buffer to file
:wq : Save changes and exit

Search Text:
/string : search forward for string
?string : serach backward for string
n : find next sring

View file Information:
ctrl-g : show filename,size,and current line number

Miscelaneous:
u : Undo last command
Esc : End input mode and enter visual command mode
U : Undo recent changes to current line

Proxy Server Linux dengan Squid

ambil dari artikel tetangga

by FX. Eko Budi Kristanto

Proxy Server LinuxBagi sebagian rekan-rekan yang mau membuat proxy server dengan Linux, atau bagi adik-adik Ilmu Komputer USD yang mau coba-coba belajar bikin proxy, saya ingin membagikan pengalaman kecil saya dalam membuat proxy menggunakan Linux. Meski banyak software untuk membuat proxy server, saya memilih squid karena paketnya sudah ter-include dalam distro yang saya gunakan (Fedora Core) dan hampir sebagian proxy server Linux menggunakan squid. Untuk spesifikasi hardware yang saya gunakan, dapat dilihat di artikel Proxy Server di tempat kerja saya. Proxy server tersebut menggunakan squid versi 2.6-12 pada distro Fedora Core 6 yang saya fungsikan sebagai:

  1. Menyimpan halaman web di proxy untuk mempercepat akses Internet.

  2. Akses kontrol Internet berdasarkan IP Address. Menggunakan 2 network yang berbeda (saya fungsikan juga sebagai router – dengan IP Forwarding), untuk ini, saya menggunakan 3 NIC pada 1 server.

  3. Blacklist daftar situs terlarang secara manual.

  4. Membatasi ukuran download File dengan ekstension tertentu dan hanya berlaku pada jam tertentu.

  5. Pesan Error dalam format Bahasa Indonesia.

  6. Rule untuk memperbolehkan akses Internet hanya protokol tertentu saja.

Langkah-langkah yang saya lakukan:

  1. Instal aplikasi squid
  2. Edit file konfigurasi squid
  3. Buat direktori dan file blacklist untuk blacklist secara manual
  4. Buat direktori dan file untuk pesan error dalam bahasa indonesia
  5. Check konfigurasi firewall yang diterapkan di proxy
  6. Jalankan servicenya
  7. Test konfigurasi di proxy dan client

File konfigurasi squid: /etc/squid/squid.conf (versi saya)

#SQUID 2.6.STABLE12
#Author by: http://fxekobudi.net

# OPTION JARINGAN
# —————————————————————————–
http_port 3128
icp_port 0

# OPTION UKURAN CACHE
# —————————————————————————–
cache_mem 256 MB
cache_swap_low 94
cache_swap_high 96
maximum_object_size 16384 KB
minimum_object_size 4 KB
maximum_object_size_in_memory 2048 KB
fqdncache_size 1024
cache_replacement_policy heap GDSF
memory_replacement_policy heap GDSF

# DIREKTORI LOG DAN CACHE
# —————————————————————————–
cache_dir aufs /var/spool/squid 9000 16 256
access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
cache_store_log none

# TUNING CACHE PROXY
# —————————————————————————–
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
negative_ttl 1 minutes

# TIMEOUT
# —————————————————————————–
half_closed_clients off
# ————————————-
# Memblok situs terlarang (blacklist)secara manual
# ————————————-
acl noblacklist dstdomain “/etc/squid/blacklist/no-blacklist.txt”
acl katablacklist url_regex -i “/etc/squid/blacklist/kata-blacklist.txt”
acl domainblacklist dstdomain “/etc/squid/blacklist/domain-blacklist.txt”
acl ipblacklist dst “/etc/squid/blacklist/ip-blacklist.txt”

acl tdkbebasdownload time 08:00-13:00

# AKSES KONTROL
# —————————————————————————–
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
# ————————————-
# Daftar IP address
# ————————————-
acl lab1 src 192.168.254.1-192.168.254.40/255.255.255.255
acl staf-it src 192.168.254.41-192.168.254.42/255.255.255.255
acl lab2 src 192.168.254.43-192.168.254.44/255.255.255.255
acl ruang1 src 192.168.1.1-192.168.1.8/255.255.255.255
acl ruang2 src 192.168.1.11-192.168.1.17/255.255.255.255

# ————————————-
# Memblok situs terlarang secara manual
# ————————————-
http_access allow noblacklist
http_access deny katablacklist
http_access deny domainblacklist
http_access deny ipblacklist

http_access allow manager localhost
http_access deny manager
# ————————————-
# Rule yang saya terapkan
# ————————————-
http_access allow lab1
http_access allow staf-it
http_access allow lab2
http_access allow ruang1
http_access allow ruang2

acl magic_words2 url_regex -i ftp .exe .mp3 .vqf .tar.gz .gz .tar.bz2 .bz2 .rpm .zip .rar .avi .mpeg .mpe .mpg .qt .ram .rm .raw .wav .iso

# Cancel download if file is bigger than 2 MB = 2000×1024 byte = 2048000 byte
reply_body_max_size 2048000 allow magic_words2 tdkbebasdownload

http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow all

# PARAMETER ADMINISTRATOR
# —————————————————————————–
cache_mgr fxekobudi@gmail.com
cache_effective_user squid
cache_effective_group squid
visible_hostname proxy.fxekobudi.local

# PESAN ERROR DALAM BAHASA INDONESIA
# —————————————————————————–
error_directory /usr/share/squid/errors/Indonesian

Agar fungsi blacklist manual itu dapat digunakan, buat direktori berisi file-file disebutkan dalam blacklist manual:
# mkdir /etc/squid/blacklist
# cd /etc/squid/blacklist/
# vim no-blacklist.txt
# vim kata-blacklist.txt
# vim domain-blacklist.txt
# vim ip-blacklist.txt
Minimal dimasukkan satu item untuk masing-masing file tersebut, karena jika tidak, maka saat kita melihat error log squid sesaat setelah service dijalankan, akan ada pesan error tidak menemukan item pada file tersebut…

Selain itu, saya juga menyertakan konfigurasi untuk pesan Error dari Proxy squid dalam bentuk bahasa indonesia, agar user di tempat kerja saya lebih mudah memahami maksudnya… Ide pesan error ini kemudian menjadi inspirasi saya saat mengkonfigurasi redirect SquidGuard untuk mengarah kepada file yang sengaja saya buat di root direktori web server proxy.
Untuk melakukannya, tinggal copykan saja pesan Error dalam bahasa Inggris ke direktori lokasi pesan error berbahasa Indonesia.

# cp /usr/share/squid/errors/English /usr/share/squid/errors/Indonesian

trus terjemahkan file-filenya…

Untuk menjalankan servicenya, gunakan saja perintah:

# /sbin/service squid start

Oh ya, Anda juga perlu menambahkan di konfigurasi Firewall menggunakan Iptable agar client diperbolehkan mengakses Internet ini melalui proxy, request client ke proxy dengan IP address yang terdaftar diperbolehkan melalui port 3128 (atau 8080) tergantung konfigurasi yang Anda gunakan… Saya jadi ingat waktu pertama kali mencoba, koneksi internet di server pake proxy udah jalan, tapi kok clientnya ngga bisa akses, eh ternyata emang client belum diperbolehkan akses ke IP address dan portnya proxy… Hehe. Agar bisa akses ke proxy, rule iptable-nya untuk file /etc/sysconfig/iptables harus memuat rule ini: (saya pakai konfigurasi firewall bawaan Fedora Core)
-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 3128 -j ACCEPT

Untuk menerapkan IP forwarding, saya edit file /etc/sysctl.conf dan memberi nilai 1 (enable) untuk direktive:
net.ipv4.ip_forward = 0 menjadi net.ipv4.ip_forward = 1

Konfigurasi proxy ini saya gunakan sebagian ditempat kerja saya (YBHK dan persekolahan Tarsisius 1, Damai, Tarsisius 2, Vianney, dan Tarsisius Vireta) dengan beberapa tambahan fitur yang tidak dapat saya sebutkan disini… Dengan alasan keamanan. Hehe…

Sedangkan konfigurasi squid untuk menggunakan blacklist dari redirect SquidGuard dan firewall-nya akan saya tulis beberapa minggu ke depan… Setelah saya pulang berlibur ke rumah orang tua saya sekaligus tanah kelahiran saya di Sarolangun, Jambi.

installasi mysql di slackware

ambil dari artikel tetangga

Mysql adalah jenis database yang sangat populer disemua kalangan dikarenakan kinerja
system basis data nya yang baik dalam webserver juga mendukung basis data lainya seperti
oracle , Ms access dan lainya. Dalam tulisan ini saya coba menggunakan mysql karena saia
memakai paket standar dari slackware paket mysql sudah tersintal dalam slackware
Kita telah ketahui bahwa mysql sudah terinstal sebelumnya tapi yang menjadi kendala pada
mysql slackware adalah database bawaan slackware belum terinstal sehingga itu bisa membuat kita
bingung mengapa mysql pada saat di start melakukan Stop server sql dengan sendirinya itu
dikarenakan karena kita belum menginstal database bawaaan dari slackware
Contoh kendala yang terjadi sebelum kita melakukan install database bawaan dari slackware :

root@arfandi:/# /etc/rc.d/rc.mysqld start
root@arfandi:/# nohup: redirecting stderr to stdout
Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/run/mysql/mysql.pid
071224 09:49:27 mysqld ended

jelas terlihat sql telah melakukan stop server, solusinya bagai mana agar dia tidak melakukan
stop server?.. solusinya adalah kita mengisntal database bawaan pada slackware ketikan
perintah for a in $(which mysql_install_db); do $a; done maka akan tampil informasi database
sebagai berikut

root@arfandi:/# for a in $(which mysql_install_db); do $a; done
Installing all prepared tables
Fill help tables
To start mysqld at boot time you have to copy supportfiles/
mysql.server\
to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password ‘new-password’
/usr/bin/mysqladmin -u root -h arfandi password ‘new-password’
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with the benchmarks in the ’sqlbench’
directory:
cd sql-bench ; perl run-all-tests
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
root@arfandi:/#

Setelah itu kita cari info mengenasi mysql tersebut ketikan
cat /etc/passwd | grep mysql
maka akan tampil informasi seperti berikut

root@arfandi:/# cat /etc/passwd | grep mysql
mysql:x:27:27:MySQL:/var/lib/mysql:/bin/bash
root@arfandi:/#

berarti home dir mysql berada di direktori /var/lib/mysql Untuk itu, anda harus mengubah
owner dan group direktori tersebut gunakan perintah chown -R mysql.mysql /var/lib/mysql
untuk mengubah owner dan group contoh :

root@arfandi:/# chown -R mysql.mysql /var/lib/mysql
root@arfandi:/#

setelah itu lakukan copy file my-medium.cnf ke my.cnf gunakan perintah cp /etc/mymedium.
cnf /etc/my.cnf untuk mengcopy file tersebut contoh :

root@arfandi:/# cp /etc/my-medium.cnf /etc/my.cnf
root@arfandi:/#

Jika sudah sekarang kita menjalankan sql daemon ketikan perintah :
chmod +x /etc/rc.d/rc.mysqld;
/etc/rc.d/rc.mysqld start
contoh :

root@arfandi:/# chmod +x /etc/rc.d/rc.mysqld
root@arfandi:/# /etc/rc.d/rc.mysqld start
root@arfandi:/# nohup: redirecting stderr to stdout
Starting mysqld daemon with databases from /var/lib/mysql

Terlihat mysql telah jalan sekarang kita akan melakukan set password root agar aman dari
serangan orang yang tidak bertanggung jawab. Ketikan perintah for a in $(which mysqladmin);
do $a -u root password ‘password_anda’; done
Contoh :

for a in $(which mysqladmin); do $a -u root password ‘arfandi’;
done
root@arfandi:/#

setelah itu jalankan mysql nya ketikan perintah mysql -u root –p lalu akan ditanyakan password
masukan password yang anda buat sebelumnya
contoh :

root@arfandi:/# mysql -u root –p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.0.37-log Source distribution
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.
mysql>

kemudian exit
Ada juga sati kendala dan kebiasan buruk kita yaitu penglupa , jika anda lupa dengan password
database anda, anda bisa melakukan reset password dengan cara
# killall mysqld
#mysqld_safe –skip-grant-tables -u root &
atau
#/usr/libexec/mysqld –skip-grant-tables –user=root &
Setelah masuk pada database option sekarang yang kita lakukan adalah mengganti password
lama menjadi passowrd baru karena password lama sudah kita lupa jadi diganti dengan
password baru caranya seperti dibawah ini :
mysql> USE mysql
mysql> update user set password=password(”PASSWORD_KAMU”) Where user=”root”;
dimana PASSWORD_KAMU ganti sesuai password yg kamu mau
kemuadian lakukan reload hak akses user pada database ketikan perintah flush privileges;
Contoh :

mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)
mysql> exit

Installasi

Install WordPress MU

ambil dari artikel tetangga

Belum lama ini saya melakukan install WordPress MU untuk keperluan di tempat kerja. Secara umum sih tidak terlalu berbeda dengan cara install WordPress. Yang membedakan hanya pada bagian wildcard mask.

Langkah-langkahnya (nyontek dari manualnya) :

###### Apache Side ######

1. download source code dari sini

2. Pastikan pada apache yang terinstall terdapat konfigurasi dibawah
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so

3. Pada bagian di VirtualHost
Ubah “AllowOverride None
Menjadi “AllowOverride FileInfo Options

4. Biasanya pada konfigurasi (minimal) VirtualHost apache seperti dibawah

ServerName www.domain.tld
DocumentRoot /www/domain

Agar setiap user dapat memiliki alamat blog subdomain (http://salman.blogs.yarsi.ac.id) maka konfigurasi VirtualHost dirubah menjadi

ServerName blogs.yarsi.ac.id
DocumentRoot /www/domain
ServerAlias *.blogs.yarsi.ac.id

###### DNS ######

Setelah menambahkan domain utamanya kedalam konfigurasi DNS domain, kita perlu menambahkan satu baris lagi untuk wildcard domain-nya.
Contoh :

…. awal isi file db.domain

www IN A 192.168.1.1
blogs IN cname www
*.blogs IN cname www


…. akhir isi file db.domain

###### PHP Side ######

Pada file php.ini, kita harus menambahkan (merubah) menjadi berikut ini :

display_errors = Off
register_globals = Off

###### Installing ######

1. extract file yang telah di download
2. buat database dan user di mysql
3. simpan folder yang telah di-extract pada directory yang diinginkan (biasanya di htdocs apache)
4. pastikan directory /wp-content writeable
5. jalankan script install (http://localhost/wordpress-mu/index.php)

Semoga bermanfaat

PS:

Apabila setelah melakukan posting, dan ketika judul posting diklik ada masalah 404  (the webpage cannot be found). Maka tambahkan baris berikut pada settingan virtualhost :

<Directory /usr/local/www/apache22/data/blogs>
AllowOverride FileInfo Options
</Directory>

2 speedy on one router

ambil dari artikel tetangga

1. Ip address setting
/ip address
add address=192.168.0.254/24 network=192.168.0.0 broadcast=192.168.0.255 interface=Local
comment=”Link to Local Lan” disabled=no

add address=192.168.1.2/24 network=192.168.1.0 broadcast=192.168.255 interface=speedy1

comment=”Link to Modem 1″ disabled=no
add address=192.168.2.2/24 network=192.168.2.0 broadcast=192.168.2.255 interface=speedy2
comment=”Link to Modem 2″ disabled=no2. Manggle setting for NTH concept and packet mark
/ip firewall mangle
add chain=prerouting in-interface=Local connection-state=new nth=1,2,0 action=mark-connection
new-connection-mark=link1 passthrough=yes comment=”Mark Nth for link 1″ disabled=no
add chain=prerouting in-interface=Local connection-mark=link1 action=mark-routing
new-routing-mark=link1 passthrough=no comment=”" disabled=no
add chain=prerouting in-interface=Local connection-state=new nth=1,2,1 action=mark-connection
new-connection-mark=link2 passthrough=yes comment=”Mark Nth for link 1″ disabled=no
add chain=prerouting in-interface=Local connection-mark=link2 action=mark-routing
new-routing-mark=link2 passthrough=no comment=”" disabled=no

3. Nat tables for Link1 and link 2
/ip firewall nat
add chain=srcnat connection-mark=link1 action=src-nat to-addresses=192.168.1.2 to-ports=0-65535
comment=”Masquee Nat Link 1″ disabled=no
add chain=srcnat connection-mark=link1 action=src-nat to-addresses=192.168.2.2 to-ports=0-65535
comment=”Masquee Nat Link 2″ disabled=no

4. Ip routing for link 1 and 2
/ ip route
add dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=255 target-scope=10 routing-mark=link1
comment=”Link To modem1″ disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.2.2 scope=255 target-scope=10 routing-mark=link2
comment=”Link To modem1″ disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.2.2 scope=255 target-scope=10
comment=”Default routing” disabled=no <<– this default routing

simple configuration load balancing.

Hello world!

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!