Skip to main content

Posts

Showing posts from April, 2016

Membuat Mirror Untuk Repository OpenWrt

Server yang akan dijadikan repository bisa Ubuntu/Debian/Raspbian/dll Install wget # apt-get install wget Install Apache2 # apt-get install apache2 Download packages # wget -r --no-parent --reject "index.html*" http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/ # mv downloads.openwrt.org/ /var/www # chown -Rf www-data:www-data /var/www/downloads.openwrt.org # chmod  -Rf a+rwx /var/www/downloads.openwrt.org # /etc/init.d/apache2 restart Menggunakan repository OpenWrt yang telah dibuat. # vi /etc/opkg.conf Ganti downloads.openwrt.org dengan IP Server yang dijadikan repository tadi. Catatan: Untuk versi lain (Chaos Calmer atau yang lainnya) tinggal disesuaikan saja.

Membuat Extroot (Rootfs on External Storage) di OpenWrt

Format USB Flasdisk atau sejenisnya dan bagi menjadi 2 partisi Partisi 1 (Ext4 File System) Partisi 2 (Linux Swap) Install beberapa aplikasi (paket) yang dibutuhkan # opkg install block-mount kmod-fs-ext4 kmod-usb-storage Jika terdapat error ketika meng-install kmod-usb-storage coba install kmod-usb-core # opkg instal kmod-usb-core Lihat informasi storage # block info Maka akan menampilkan /dev/sdb1 dan /dev/sdb2 (swap), output-nya mungkin akan berbeda-beda. Memulai proses extroot # mount /dev/sda1 /mnt # mkdir /tmp/cproot # mount --bind / /tmp/cproot # tar -C /tmp/cproot -cvf - . | tar -C /mnt -xvf - # sync; umount /mnt # umount /tmp/cproot Membuat template untuk fstab # block detect > /etc/config/fstab Mengubah fstab # vim /etc/config/fstab config 'mount' => option target '/overlay' & option enabled '1' config 'swap' => option device '/dev/sda2' & option enabled '1' ...