Beranda » » Instalasi Paket OpenWrt Offline

Instalasi Paket OpenWrt Offline

Oleh Admin A pada Friday, May 17, 2013 | 2:51 AM

Untuk melakukan instalasi paket (package) pada OpenWrt secara offline berikut langkah-langkahnya:
  • Pastikan PC atau laptop (notebook) Anda sudah terinstall web server lokal (Xampp/Wamp/Appserv)
  • Silahkan download terlebih dahulu paket yang diperlukan menggunakan PC atau laptop (notebook) dan simpan pada direktori web server lokal (jika memakai Xampp, c:xampp/htdoc).
    Catatan:
    *) Sesuaikan paket dengan jenis firmware OpenWrt yang digunakan.
    *) Semua file yang berada pada direktori packages harus didownload, bukan hanya file dengan ekstensi ipk saja (*.ipk).
  • Ubah isi file /etc/opkg.conf, dengan cara:
    - Akses ke router (192.168.1.1) menggunakan Putty dengan jenis koneksi SSH
    - Ketikkan "vi /etc/opkg.conf" untuk merubah file /etc/opkg.conf
    
    BusyBox vx.xx.x (201x-02-22 23:42:42 CET) built-in shell (ash)
    Enter 'help' for a list of built-in commands.
      _______                     ________        __
     |       |.-----.-----.-----.|  |  |  |.----.|  |_
     |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
     |_______||   __|_____|__|__||________||__|  |____|
              |__| W I R E L E S S   F R E E D O M
     ATTITUDE ADJUSTMENT (bleeding edge, rxxxxx) ----------
      * 1/4 oz Vodka      Pour all ingredents into mixing
      * 1/4 oz Gin        tin with ice, strain into glass.
      * 1/4 oz Amaretto
      * 1/4 oz Triple sec
      * 1/4 oz Peach schnapps
      * 1/4 oz Sour mix
      * 1 splash Cranberry juice
     -----------------------------------------------------
    root@openwrt:~$ vi /etc/opkg.conf
    
    
    Tekan "Enter"
    
    root@openwrt:~$ src/gz snapshots http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages
    dest root /
    dest ram /tmp
    lists_dir ext /var/opkg-lists
    option overlay_root /overlay
    
    
    Ubah menjadi:
    
    root@openwrt:~$ src/gz snapshots http://ip_pc_atau_laptop/nama_directori_file_paket_disimpan
    dest root /
    dest ram /tmp
    lists_dir ext /var/opkg-lists
    option overlay_root /overlay
    
    
    Contoh:
    
    root@openwrt:~$ src/gz snapshots http://192.168.1.111/packages
    dest root /
    dest ram /tmp
    lists_dir ext /var/opkg-lists
    option overlay_root /overlay
    
    
    Simpan perubahan file /etc/opkg.conf dengan cara tekan "Esc" pada keyboard dan ketikkan ":wq" kemudian "Enter"
    
    root@openwrt:~$ :wq
    
    
  • Jalankan web server lokal
  • Lakukan proses update paket OpenWrt dengan menggunakan Putty (jenis koneksi SSH) dengan mengetikkan "opkg update"
    
    root@openwrt:~$ opkg update
    
    
  • Untuk proses instalasi paket gunakan baris perintah "opkg install nama_paket"
    
    root@openwrt:~$ opkg install paket1 paket2 paket3
    
    

0 comments:

Post a Comment