Sunday, December 1, 2013

MADE CCTV WITH ROUTER AND WEBCAM

MADE CCTV WITH ROUTER AND WEBCAM

alternative router with openwrt

*************************
you needs packet .ipk for openwrt in tplink mr3420
packet download from :
https://app.box.com/s/k3ieh4uwn2getgur2wje

extract all packet to your pc
open winscp aplication
login into router (if you not understand you can read all page)
 find folder /tmp in router via winscp
copy all packet *.ipk from folder cctv to /tmp
now open up putty aplication
root@openwrt~#
root@openwrt~# cd /tmp
root@openwrt~#tmp/ opkg install *.ipk
wait until all file copied.
now... your router ready to be use for monitoring your home, your baby, your garden and many function.
for used.
plug usb cam via extender usb cable
and conected usb extender cable into router via usb hub
restart your router
open up putty aplication again
root@openwrt~#
root@openwrt~# cd /dev
root@openwrt~#dev/ ls
if you see video0 in putty than yourwebcam suport and succes detect in your router

for using webcam
open up web browser typing  http://192.168.1.1:8080/?action=stream

if reasing user name and password..... he..he...litle kiding...... you must find via putty aplication in your router
in folder : /etc/config/mjpg-streamer      you can see user name and password in there...

done......

Friday, November 29, 2013

SAMBA FOLDER SHARING FOR OPEN WRT (NAS OPWRT)

SAMBA FOLDER SHARING FOR OPEN WRT

alternative router with openwrt
 
 if you can build opwrt in mr3420 and can create login spot, Sharing internet, MP3 Player for your own, maybe you need share your colection file or multimedia file from and via your router. if you mix your data file and multimedia in system of openwrt space in your router can be full and maybe your router can runing normal. solution for this case you must put and save your file and multimedia file in diperent partition in your router in my case i put my file and my multimedia file in sda1 (15 gb) but maybe your partition(sda1) can be explore from your router to everyone ok you must create samba server in your router and set samba server to sda1 ( if you succes your router adding 1 function again the name is NAS (network storage atachment) ok you needs packet file .ipk for samba, packet can download in folder samba in :
 https://app.box.com/s/k3ieh4uwn2getgur2wje

download folder samba.rar extrct to your pc.
open up winscp application copy *.ipk from folder samba to your router and put in /tmp
open up putty application
typing in putty aplication

root@openwrt~#
root@openwrt~#cd /tm
root@openwrt~#tmp/ opkg install *.ipk
wait untill all packet copied

back again to winscp aplication
you must find folder /etc/config/

than edit your firewall
edit "/etc/config/firewall" add list scrift with
***************************************
config rule

    option src         lan

    option proto         udp

    option dest_port     137-138

    option target        ACCEPT


 config rule

    option src         lan

    option proto         tcp

    option dest_port     139

    option target        ACCEPT



config rule

    option src         lan

    option proto         tcp

    option dest_port    445

    option target        ACCEPT
****************************************

than you must find folder /etc/samba/
 and edit file smb.conf.template
edit "/etc/samba/smb.conf.template", like this :

*******************************************
[global]

    netbios name = |NAME|

    workgroup = |WORKGROUP|

    server string = |DESCRIPTION|

    syslog = 10

    encrypt passwords = true

    passdb backend = smbpasswd

    obey pam restrictions = yes

    socket options = TCP_NODELAY

    unix charset = ISO-8859-1

        local master = yes

    preferred master = yes

    os level = 20

    security = share

    guest account = nobody

    invalid users = root

    smb passwd file = /etc/samba/smbpasswd
******************************************
than you must find folder /etc/config/
and edit file samba with add this scrift above under scrift
 addscrift in file "/etc/config/samba" :
*******************************************

config 'samba'

    option 'name' 'openwrt'

    option 'description' 'openwrt'

    option 'workgroup' 'WORKGROUP'



config 'sambashare'

    option 'read_only' 'no'

    option 'create_mask' '0700'

    option 'dir_mask' '0700'

    option 'name' 'samba'        

    option 'path' '/mnt/sda1'   <==== similiar with partition in your router

    option 'guest_ok' 'yes'

****************************************************
 than you must find folder /etc
add list scrift, (don't delete just add above) in  "/etc/rc.local" :

****************************************************
smbd -D

nmbd -D



exit 0

*********************************************************
than back again to putty aplication
typing this scrift
root@openwrt~#
root@openwrt~# /etc/init.d/samba enable

root@openwrt~# /etc/init.d/samba start



because my partition in sda1   is ntfs
we must execution this command
root@openwrt~# umount /dev/sda1

root@openwrt~# ntfs-3g /dev/sda1 /mnt/sda1

restart your router.


back to your PC
in windows xp/7   in  RUN typing  "cmd" ,(DOS) than  ENTER, typing this command :

***************************************
net use S: \\192.168.1.1\samba

*****************************************
FINISH !!!



now you can akses in your computer (win7) or (win XP)"

maping for your folder sharing : samba

you can create folder in samba : /media/music
                                                /media/video
                                                /media/picture
                                               /media/pdf
for management your NAS

done

Monday, November 25, 2013

MADE MP3 PLAYER WITH ROUTER

MADE MP3 PLAYER WITH ROUTER

alternative router with openwrt

Router if changed firmware with Openwrt can made mp3 player without PC
you need USB soundcard and Portable Actif Speaker for aplicated.

if you folow my blog and succes install openwrt until creating loginspot(easyhotspot)
next step you can made mp3 player
you need : USB Audio soundcard and Portable actif speaker.
you can buy from :



ok. put your usb sound card in port hub no 6 and conect audio cable from multimedia audio/actif speaker to audio out from sound card, and power up multimedia audio.

2 way create MP3 Player in open wrt

1. using program MADPLAY
you need : file kmod-sound-core_3.3.8-1_ar71xx.ipk, kmod-usb-audio_3.3.8-1_ar71xx.ipk and madplay_0.15.2b-3_ar71xx.ipk you can findpacket  in audio.rar folder in myhosting download from:
https://app.box.com/s/k3ieh4uwn2getgur2wje

open up winscp aplication copy to router 3 file :ile kmod-sound-core_3.3.8-1_ar71xx.ipk, kmod-usb-audio_3.3.8-1_ar71xx.ipk and madplay_0.15.2b-3_ar71xx.ipk into /tmp folder

open up putty aplication
root@openwrt~#
root@openwrt~#cd /tmp
root@openwrt~#tmp/ opkg install *.ipk
after all file instaled

you must create folder to put your mp3 file
open up winscp cretae folder in router /media
put some file mp3 in /media
 example file mp3 in /media : /media/play.mp3
ok back again in putty aplication

root@openwrt~#
typing this scrift to play mp3

root@openwrt~#madplay /media/play.mp3

if you hear music from the router, now.... you can create mp3 player from router
next create menu for easy use madplay with html scrif or php scrift.  
  

Sunday, November 24, 2013

INSTALL APLICATION IN OPEN WRT

 alternative router with openwrt

Menambahkan aplikasi di Open Wrt                     # Add aplication in Open WRT

asumsi bahwa anda telah berhasil membuat exroot             # I mean your router have upgrade with openwrt
jika belum anda bisa mencarinya pada halaman sebelum     # if not yet you can read previous page to
                                                                                            learn how to upgrade openwrt

baiklah kita mulai saja langkah berikut                             # ok lets begin to add aplication for opwrt
buka openwrt in web  http://192.168.1.1                        # open web browser type http://192.168.1.1
buka putty                                                                      # open putty aplication
buka winscp                                                                    # open winscp aplication

pada aplikasi winscp                                                       # in use winscp
explore hingga anda masuk ke folder tmp                         # explore /root until found tmp folder /tmp
selanjutnya anda membutuhkan file file *.ipk                     # next you need file with extention *.ipk
yang berada di folder  packet all for easyhotspot.rar         # package in folder esyhotspot.rar
yang terdapat di postingan saya                                        #hosting by me :

packet all for easyhotspot

atau anda dapat mengunduhnya di                                   # or you can download from :
                      
https://app.box.com/s/k3ieh4uwn2getgur2wje

simpan file tersebut di computer                                        # than that file save in your computer
kemudian extrac paket tersebut sampai terbuka seluruh     # extrac all packet until opened all
file yang berextensi.ipk                                                      # all file extention is *.ipk
selanjutnya seleksi seluruh file tersebut                              # than you can selection all file
kemudian tarik dan letakan pada                                       # drag and drop in winscp aplication

winscp folder tmp                                                             # in folder /tmp

jika selanjutnya pilih copy pada mesage box winscp          # if reach the mesage bok for copy, clik copy file
jika seluruh file sudah masuk                                             # until all file *.ipk input into /tmp
maka selanjutnya anda                                                      # than you must open putty aplication
harus membuka program putty
lakukan perintah berikut                                                    # and typing this command

root@openwrt~# cd /tmp
root@openwrt~#tmp/ opkg install *.ipk

tunggu hingga seluruh file terupdate di sistem openwrt         # wait and see untill copy progres succesfull

root@openwrt~#

selanjutnya reboot ulang router                                          # for next you must reboot your router

root@openwrt~# reboot

jika router anda sudah menyala kembali                            # if your router starting up again
maka sampai langkah ini router anda sudah siap               # than your router resdy for upgrade and adding
menerima aplikasi lain : terutama yang penting                   # some aplication in openwrt : importan
login spot : easyhotspot                                                     # easyhotspot login,
web server                                                                       # web server
Php5                                                                                # php5
mediaplayer streaming file                                                 # media player streaming file
media player via router                                                      # made mp3player with router (MPD / Madplay)
cctv webcam                                                                    # cctv with webcam
Voip                                                                                  # mini server voip
jibas aplikasi pendidikan                                                    # jibas is content and page for education
minidlna                                                                             # minidlna
samba sharing                                                                    #samba sharing
dan sebagainya.                                                                  # and much more
berikut ini adalah peralatan yang dapat anda beli                 # you can buy this accesories
dan sudah saya tes dan berjalan dengan baik di open wrt   # and tested in openwrt succesfull in :



Saturday, November 23, 2013

CREATE LOGIN HOTSPOT

CREATE LOGIN HOTSPOT

alternative router with openwrt

ok. in this step your router
is ok, have internet, have web server and ready
to add all aplication and ready to share to every one
via wifi
for share via wifi you must enable wifi radio
now you can enable wifi radio in menu Interface Wifi.

ok now you can acces internet with
other gadget like android or smart phone, laptop
if have interface wifi.

if you share your internet but you not have
security or not have managemen user in your
router every one not legal can access your internet
in here I try sharing how to make manajemen hotspot
the name is easyhotspot for use in opwrt
if you wont your internet sharing
to be market for comercial you can buy your packet internet
with voucer or registration is production from easyhotspot manajemen user
you can print voucer for sale.

ok. lets tray begin.....
you need this accessories , you can buy this in :


ok. come on lets begin
you need this file :
packet all for easyhotspot.rar   you can download in here

https://app.box.com/s/k3ieh4uwn2getgur2wje



than you needs folder easyhotspot.rar, download from :

https://app.box.com/s/k3ieh4uwn2getgur2wje



extrac all to packet file in your computer and save it for next.

ok now you have all packet for file.

now !!!!!
open aplication putty
login
user name : root
password:****
ok. do not close

now.... open up application winscp
login.. until your succes
open up /root until you find /tmp

now copy *.ipk in folder packet all for easy hotspot into winscp folder /tmp
(drag and drop from your computer)

ok back agains into putty

root@openwrt~#
root@openwrt~# cd /tmp
root@openwrt~#tmp/ opkg install *.ipk

wait until all file succesly installed in openwrt this is progres needs 4 - 10 minutes
wait....and drink a luwak cofee from indonesia.......is nice  cofee.....
ok if progres is finis now......
you must be carefully and (maybe if you wrong step your router can not acces and your router must upgrade
agains step by step from start begin)ok....

ok. next step you need this file :
you needs folder the name srv and jibas , 2 folder(include inside aplication) download from :

https://app.box.com/s/k3ieh4uwn2getgur2wje


ok. until this step you must have :
1. packet all for easyhotspot (*.ipk)
2. easyhotspot (folder configuration for easyhotspot)
3. jibas (folder mysqld)
4. srv (folder, inside easyhotspot folder (aplication for easyhotspot)

ok. stop until this (colected all file before !!!!)
i come back again next.........to be continuid.......

ok. i am back again
1. you must install *.ipk (in folder packet all for easyhotspot to router in folder /tmp with putty and winscp)
open up application winscp
drag and drop *.ipk to router in /tmp
open up putty application
root@openwrt~#
root@openwrt~#cd /tmp
root@openwrt~#tmp/ opkg install *.ipk
wait until all file succes
root@openwrt~#
open up wincp again
now open jibas.rar extrac and put jibas folder to router in /root (klik router) and drag and drop folder jibas
open srv.rar extrac and put folder srv to router in /root sameas folder jibas
open up easyhotspot.rar extrac open agin until you see folder freradius2, folder chili and file dictionary, file dictionary.chillispot.

ok be care full......
open up file /etc in router....in there you find 2 folder freradius2 and chilli, ok substituted 2 folder that with folder chilli and freradius2 from packet easyhotspot.rar. drag and drop via winscp from your desktop.
continu with 2 file dictionary and dictionary.chillispot drag and drop to router in folder /usr/share/freradius2
ok. all file complete to copy

now
open up putty application
root@openwrt~#
root@openwrt~#/etc/init.d/mysqld enable     
root@openwrt~#/etc/init.d/mysqld start
root@openwrt~#/etc/init.d/uhttpd enable
root@openwrt~#/etc/init.d/uhttpd start
root@openwrt~#radiusd -x                                   #   if you found no error in router is ok
hit CTRL + C   for stop 
root@openwrt~#/etc/init.d/radiusd enable
root@openwrt~#/etc/init.d/radiusd start

attention do not turn off the router....... 



download file chilli from : 
https://app.box.com/s/k3ieh4uwn2getgur2wje

copy paste chilli to router via winscp in : /etc/init.d

download again 3 file : php.ini, my.conf and rc.local from :
https://app.box.com/s/k3ieh4uwn2getgur2wje

copy paste via winscp   file php.ini , my.conf and rc.local to router in folder /etc



now.... next step not guaranted succes for all, but succes for me.....
back agains to putty

root@openwrt~#/etc/init.d/uhttpd restart

root@openwrt~#chmod a+x /etc/init.d/chilli
root@openwrt~#/etc/init.d/chilli start 

until this step your router can not acces again, dont worry, this is 2 probability.... if your step is right until your router
boot up (manual boot up) easy hotspot success install in your router dhcp address not 192.168.1.1 but 10.1.0.2

but
if your step is wrong maybe.....your router can runing via exroot agains, you must repeat again step by step from begin
but (your router normali runing without flash disk)


if your step in succes lets continus with :

create symlink

open up winscp aplication

klik folder /root until you find    /www       folder

ok right click in blank objek  choice create symlink   (create symlink, create folder, create file)
in the name typing:    easyhotspot
in adress typing:    /srv/easyhotspot/htdocs


ok.... now open up your browser
typing  http://192.168.1.1/easyhotspot

if you seee login spot than your easyhotspot is succes
username:admin
password:admin123


done.... 
be carefull and always learn up....and .....get spirit.........

 
  


     
    




INSTALL USB 3g MODEM IN OPENWRT

INSTALL USB 3g MODEM IN OPENWRT

alternative router with openwrt

Anda membutuhkan USB 3g Modem
jika belum punya anda dapat membeli di sini :


mari kita mulai menginstal modem di openwrt
pasang usb modem di port usb hub no 1
reboot your router
login into router


username :root
password:****
pilih menu interface
 

add new interface

setting modem

seting firewall

done


Friday, November 22, 2013

MENAMBAH APLIKASi DI OPENWRT # ADD APLICATION IN OPENWRT

 alternative router with openwrt


Menambahkan aplikasi di Open Wrt                     # Add aplication in Open WRT

asumsi bahwa anda telah berhasil membuat exroot             # I mean your router have upgrade with openwrt
jika belum anda bisa mencarinya pada halaman sebelum     # if not yet you can read previous page to
                                                                                            learn how to upgrade openwrt

baiklah kita mulai saja langkah berikut                             # ok lets begin to add aplication for opwrt
buka openwrt in web  http://192.168.1.1                        # open web browser type http://192.168.1.1
buka putty                                                                      # open putty aplication
buka winscp                                                                    # open winscp aplication

pada aplikasi winscp                                                       # in use winscp
explore hingga anda masuk ke folder tmp                         # explore /root until found tmp folder /tmp
selanjutnya anda membutuhkan file file *.ipk                     # next you need file with extention *.ipk
yang berada di folder  packet all for easyhotspot.rar         # package in folder esyhotspot.rar
yang terdapat di postingan saya                                        #hosting by me :

packet all for easyhotspot

atau anda dapat mengunduhnya di                                   # or you can download from :
                      
https://app.box.com/s/k3ieh4uwn2getgur2wje

simpan file tersebut di computer                                        # than that file save in your computer
kemudian extrac paket tersebut sampai terbuka seluruh     # extrac all packet until opened all
file yang berextensi.ipk                                                      # all file extention is *.ipk
selanjutnya seleksi seluruh file tersebut                              # than you can selection all file
kemudian tarik dan letakan pada                                       # drag and drop in winscp aplication

winscp folder tmp                                                             # in folder /tmp

jika selanjutnya pilih copy pada mesage box winscp          # if reach the mesage bok for copy, clik copy file
jika seluruh file sudah masuk                                             # until all file *.ipk input into /tmp
maka selanjutnya anda                                                      # than you must open putty aplication
harus membuka program putty
lakukan perintah berikut                                                    # and typing this command

root@openwrt~# cd /tmp
root@openwrt~#tmp/ opkg install *.ipk

tunggu hingga seluruh file terupdate di sistem openwrt         # wait and see untill copy progres succesfull

root@openwrt~#

selanjutnya reboot ulang router                                          # for next you must reboot your router

root@openwrt~# reboot

jika router anda sudah menyala kembali                            # if your router starting up again
maka sampai langkah ini router anda sudah siap               # than your router resdy for upgrade and adding
menerima aplikasi lain : terutama yang penting                   # some aplication in openwrt : importan
login spot : easyhotspot                                                     # easyhotspot login,
web server                                                                       # web server
Php5                                                                                # php5
mediaplayer streaming file                                                 # media player streaming file
media player via router                                                      # made mp3player with router (MPD / Madplay)
cctv webcam                                                                    # cctv with webcam
Voip                                                                                  # mini server voip
jibas aplikasi pendidikan                                                    # jibas is content and page for education
minidlna                                                                             # minidlna
samba sharing                                                                    #samba sharing
dan sebagainya.                                                                  # and much more
berikut ini adalah peralatan yang dapat anda beli                 # you can buy this accesories
dan sudah saya tes dan berjalan dengan baik di open wrt   # and tested in openwrt succesfull in :



Cara Exroot dengan Flashdisk di Open Wrt

CARA EXROOT FLASH UNTUK OPENWRT

alternative router with openwrt

 pada langkah ini saya anggap                      # in this step i mean your task with mr3420
anda telah berhasil mengupgrade router        # have been upgrade your router
mr 3420 dengan open wrt jika belum           # with open wrt, if not yet
silahkan baca :                                            # please read this step :

cara upgrade tplink ke openwrt

setelah berhasil mengganti                           # until you success change
firmware TP Link dengan open wrt             # original firmware with openwrt
maka langkah selanjutnya adalah                 # than next step is
membuat exroot di openwrt                        # made exroot for your openwrt
exroot dimaksudkan untuk                         # exroot usualy for
memberikan ruang yang luas pada              # upgradable space for the put file
media penyimpanan openwrt                      # in media drive of openwrt
jika anda tak membuat exroot                     # if you don't create the exroot
maka space rom dan ram                            # than internal space rom and ram
di internal TP LINK open wrt                     # in internal TP LINK
tidak akan cukup untuk                               # not have space
menambahkan aplikasi lainnya.                    # for save and add file
maka caranya adalah anda                          # than your solution
menambahkan flashdisk untuk                     # you must add with flash disk
dijadikan exroot. berhubung                        # for create the exroot, because
port usb di router hanya memiliki                 # your router only have
satu port maka anda memerlukan                # one usb port, than you need
usb hub untuk menambah port usb             #usb hub for extended your usb port
saya sarankan yang memiliki minimal          # I recomended you for used minimal
8 port usb karena nantinya anda akan        # with 8 port usb hub, because in next step
memerlukan port port usb ini untuk :          # maybe you need for upgradable your router
usb modem, usb cam, usb audio,               # and used with Usb Modem, Usb Cam, Usb Audio
arduino, usb bluetooth dan banyak            # Usb arduino, Usb Bluetooth and much more
lagi usb interface yang suport dengan         # some interface if suport
openwrt.                                                  # with openwrt
                                                              

pilihan usb hub yang suport open wrt        # you can choice usb hub like this for your open wrt :
dapat anda beli disini :

dan usb flash disk yang bagus dan
suport open wrt dapat anda beli di sini      # you can choice UFD  like this for your open wrt :

setelah anda miliki ke 2 benda                       # if you have 2 accesories like that
tersebut marilah kita mulai membuat exroot    # than, we start begin for create the exroot
partisi UFD menjadi 3 bagian                         # made your partition for your UFD
ntfs, ext2, swaf dengan menggunakan aplikasi # ntfs, ext2, swaf with app name is
mini tools partition wizard downlod di sini :      # mini tools partition wizard, you can download here :

http://download.cnet.com/MiniTool-Partition-Wizard-Home-Edition/3000-2094_4-10962200.html
caranya :                                                                 # use
install aplikasi mini tools partition wizard                   # intall mini tools partition wizard in win os 
pasang UFD di pc anda                                           # put your UFD in usb port in your PC
buka aplikasi mini tools partition wizard                    # open up aplication minitool partition wizard
klik disk 2 (UFD)                                                    # select disk 2 your (UFD)
pilih create, pilih primary dan ntfs                              # select create,select primary and ntfs
tentukan kapasitas = 14 gb (+- 75% dari kapasitas) # colocation capacity = 14 gb (+- 75 % of your UFD)
pilih create lagi, pilih primary dan ext2                      # than create again, select primary and ext2
tentukan kapasitas = 1,5 gb (untuk sistem)               #colocation capacity = 1,5 gb (used for system opwrt)
pilih create lagi, pilih primary dan swaf                     # than create again, select primary and swaf
tentukan kapasitas=512 mb (atau habiskan sisa UFD)# colocation = 512 mb (or used all unalocated)
digunakan untuk swaf sistem linux                             # for swaf system linux

setelah dibuat 3 partisi : ntfs, ext2, swaf                     # after you made 3 partition like : ntfs, ext2, swaf
selanjutnya klik apply untuk melakukan proses partisi # you continued with apply for executed partitioned
tunggu hingga selesai, maka partisi siap digunakan      # wait and see until your progress 100 %, if finish
                                                                                 # you can use your ufd in opwrt

masukan UFD ke port no 8 USB hub                        # put your UFD in usb port no 8 in usb hub
masukan usb hub ke port router                                 # put your usb hub conection in usb port in router
boot up router                                                           # boot up the router
login ke open wrt melalui web browser                      # login in to open wrt in web browser
http://192.168.1.1                                                     # http://192.168.1.1
login..                                                                       # login
buka putty                                                                # open putty application
masukan user name :                                                 # input user name :
masukan password                                                   # input password
pada bagian root@OpenWrt:~#                                # in part of  root@OpenWrt:~#
ketik :                                                                      # typing :

root@OpenWrt:~# cd /dev
root@OpenWrt:~# dev/ ls

jika anda melihat ada file :                                   # if you see
sda
sda1
sda2
sda3

maka router anda berhasil mendeteksi flashdisk    # than your router succes detect UFD
lakukan sbb :                                                       # next step :

root@OpenWrt:~# dev/ vi /etc/config/fstab

anda akan melihat baris teks seperti ini :              # you can see

config global 'automount'
option from_fstab '1'
option anon_mount '1'


config global 'autoswap'
option from_fstab '1'
option 'anon_swap' '0'


config 'mount'
option fstype 'ext4'
option options 'rw,sync'
option enabled '0'
option device '/dev/sdb2'
option target '/mnt/sdb2'


config 'swap'
option device '/dev/sdb1'
option enabled '0'


maka anda harus mengedit file tersebut                        # you must edit that file
caranya : tekan tombol insert di keyboard pc               # push insert buton in your keypad
gunakan tombol navigasi keyboard panah kiri               # use navigation buton,
kanan, atas bawah untuk mengarahkan                          # up down left right
gunakan tombol del dan backspace untuk menghapus    # use del and backspace for deleted character

edit file menjadi :                                                          # edited this file like  this

config global 'automount'
option from_fstab '1'
option anon_mount '1'


config global 'autoswap'
option from_fstab '1'
option 'anon_swap' '0'


config 'mount'
option fstype 'ext2'
option options 'rw,sync'
option enabled '1'
option device '/dev/sda2'
option target '/mnt/sda2'


config 'swap'
option device '/dev/sda3'
option enabled '1'


tekan tombol ctrl + c
lalu lanjut tombol shift + :
:wq            (write quit)
 untuk menyimpan
lanjut


root@OpenWrt:~#

jalankan fstab                                                 # runing fsatab

root@OpenWrt:~# /etc/init.d/fstab enable
root@OpenWrt:~# /etc/init.d/fstab start

copy sistem dari router ke flashdisk                   # copying your router system to your UFD
                
copy paste perintah di bawah ini ke root@OpenWrt:~#              # copy paste this scrift

tar -C /overlay -cvf - . | tar -C /mnt/sda2 -xf -
mkdir -p /tmp/cproot
mount --bind / /tmp/cproot
tar -C /tmp/cproot -cvf - . | tar -C /mnt/sda2 -xf -
umount /tmp/cproot




jika berhasil maka ada proses pengkopian sistem ke flashdisk         # if succes

 root@OpenWrt:~#

lanjut menambahkan perintah ini di fstab                                        # continus with editing  fstab     again

 root@OpenWrt:~# vi /etc/config/fstab

config global 'automount'
option from_fstab '1'
option anon_mount '1'


config global 'autoswap'
option from_fstab '1'
option 'anon_swap' '0'


config 'mount'
option fstype 'ext2'
option options 'rw,sync'
option enabled '1'
option device '/dev/sda2'
option target '/mnt/sda2'

option is_rootfs '1'

config 'swap'
option device '/dev/sda3'
option enabled '1'




tekan tombol ctrl + c                              # push buton ctrl + c
lalu lanjut tombol shift + :                        # push shift buton + :
:wq            (write quit)                           # :wq  
 
root@OpenWrt:~#
nyalakan ulang router
root@OpenWrt:~# reboot

buka router di web http://192.168.1.1            # open your router in web http://192.168.1.1
buka system mount point menu                       # open menu in system mount point
jika pada bagian overlay kapasitasnya menjadi 1,5 gb# if you see in part of overlay add with 1,5 capacity
maka exroot berhasil                                                  # your exroot is succesfull
jika belum, bukalah menu mount point                         # if not yet, open menu mount point in opwrt
pilih pada sda2 kemudian edit                                     # select in sda2 option
pilih pada bagian advanced beri tanda check               # select and check part of advanced
pada is root fs, simpan                                                # in teks: is root fs, checked, than save your change
reboot ulang router                                                     # reboot up your router
jika berhasil maka anda bisa melihat                             # if succes you can see your menu router
pada bagian overlays menjadi bertambah                      # in part of mount point overlays capacity added
disini menjadi 1,5 gb                                                     # with 1,5 gb
selesai                                                                          # done, your router ready to be add aplication

selanjutnya:                                                                  # wait for next page
menambah aplikasi di router klik disini:                          # add aplication for openwrt router