openwrt Insomnia

Ext-root via USB driver Virgin

  • I use 3 partitions

    • /dev/sda1 - the ext root, 100gb
    • /dev/sda2 - swap, 10gb
    • /dev/sda3 - /storage, 390gb
  • Move to a new terminal and log in

ssh root@

opkg update

# Linksys WRT1900ACS and Linksys WRT3200ACM 
# in insomnia, it is pre installed
opkg install kmod-usb-core e2fsprogs kmod-usb-storage kmod-fs-ext4 kmod-usb-storage-extras block-mount kmod-usb3 blkid block-mount fdisk 
# kmod-scsi-core kmod-usb2 
opkg install kmod-usb-core kmod-usb-ledtrig-usbport kmod-usb-storage kmod-usb-storage-uas kmod-usb-uhci kmod-usb3 kmod-usb2 libusb-1.0 usbutils

# lsusb
# nano /etc/modprobe.d/ignore_uas.conf
# options usb-storage quirks=0bc2:2320:u
# reboot

# in insomnia, it is pre installed
insmod xhci-mtk

mkfs.ext4 /dev/sda1
# say yes

# if you already have it and it is not
# overlay, then you do not need it,
# it will work
# non overlay is working,
# but if the HD is virgin you need an ext4 filesytem
# mkfs.ext4 /dev/sda3
# say yes

mkdir -p /media/storage

/sbin/block detect > /etc/config/fstab; sed -i s/option$'\t'enabled$'\t'\'0\'/option$'\t'enabled$'\t'\'1\'/ /etc/config/fstab; sed -i s#/mnt/sda1#/overlay# /etc/config/fstab; cat /etc/config/fstab;

# set /dev/sda3 -> /media/storage
nano /etc/config/fstab

# built the overlay into the drive
mount /dev/sda1 /mnt ; tar -C /overlay -cvf - . | tar -C /mnt -xf - ; umount /mnt

swapon /dev/sda2

# is it good? then we are good! if it is not, uncheck Keep settings 
# install the factory now and redo from creating the partition
# finally 
# check show fstab, might dont need again
uci show fstab 

uci commit
reboot && exit

# wait so that the network is connected
ssh root@ # if you have existing then there like

uci show fstab 
cat /etc/config/fstab
df -h 

# if the WAN is not DHCP then have to restore the config first
# this is my own setup, you don't needed
# just in my /dev/sda3 i have monthly, weekly and daily backup
mkdir -p /opt/ 
cd /opt 
git config --global http.sslVerify "false" 
git clone 

cd router-scripts-openwrt
npm install

# an error with dnsmasq-dhcp wrt3200acm/wrt32x
# /etc/dnsmasq.confg => except-interface=eth1.2

reboot && exit

# have to make sure that ./image-builder-files/etc/sysupgrade.conf includes in /cgi-bin/luci/admin/system/flashops/backupfiles

Crypto accelerator

openssl engine -t -c
onenoteGithub onenoteredis-uiGithub redis-uiangular-compileGithub angular-compilegitlistGithub gitlistramdiskGithub ramdiskopenwrt-insomniaGithub openwrt-insomniafreenomGithub freenomdebian-testing-mongodb-stableGithub debian-testing-mongodb-stablesystemd-managerGithub systemd-managerredis-ui-serverGithub redis-ui-servercorifeusGithub corifeushtml-pdfGithub html-pdfredis-ui-materialGithub redis-ui-materialverdaccio-cliGithub verdaccio-clixml2jsonGithub xml2jsoncorifeus-app-web-pagesGithub corifeus-app-web-pagesangular-http-cache-interceptorGithub angular-http-cache-interceptorgrunt-p3x-expressGithub grunt-p3x-expressbinary-search-closestGithub binary-search-closestcorifeus-builderGithub corifeus-buildercorifeus-utilsGithub corifeus-utilsjson2xls-worker-threadGithub json2xls-worker-threadtoolsGithub tools