======= Aggiornare la distro ======= opkg update && opkg list-upgradable | cut -f 1 -d ' ' | xargs opkg upgrade Oppure opkg update && opkg upgrade $(opkg list-upgradable | sed 's/ .*//g') ======= Supporto USB ======= Aggiungere i moduli USB per le più disparate opzioni, per scanner,stampanti,chiavette/hd esterni, periferiche aggiuntive: opkg update opkg install kmod-usb-storage kmod-usb-storage-uas usbutils kmod-usb-net kmod-usb-net-rndis kmod-usb-net-cdc-ether ===== Tethering USB ===== #installare il software opkg update && opkg install kmod-usb-net kmod-usb-net-rndis kmod-usb-net-cdc-ether #Creare l' interfaccia uci set network.TetheringWAN=interface uci set network.TetheringWAN.proto='dhcp' uci set network.TetheringWAN.ifname='usb0' uci set firewall.@zone[1].network='wan wan6 TetheringWAN' uci commit Per attivare la periferica ifup TetheringWAN --------------------------------------------------------------------------------------------------------------- ===== fstab ===== Non c'è? E' vuoto? Come configurarlo? Per prima cosa aggiungere del software necessario opkg install block-mount Poi riempire il file block detect | uci import fstab ===== EXT4 ===== == Prima il supporto usb == opkg update && opkg install kmod-usb-storage kmod-usb-ohci kmod-usb-uhci == Moduli e luci-tool == opkg update && opkg install kmod-fs-ext4 == Opzionali == opkg update && opkg install fdisk e2fsprogs ** ATTENZIONE: se si usa un modem/router con 4Mb di spazio, gli OPZIONALI potrebbero riempirlo oltremisura... ** ===== NTFS ===== A titolo informativo ce lo metto.. non avendo macchine windows a casa, mi è superfluo aggiungerlo. Prima il supporto usb opkg update && opkg install kmod-usb-storage kmod-usb-ohci kmod-usb-uhci Moduli opkg update && opkg install kmod-fs-ntfs ntfs-3g Opzionali opkg update && opkg install fdisk ntfs-3g-utils note ** ATTENZIONE: se si usa un modem/router con 4Mb di spazio, gli OPZIONALI potrebbero riempirlo oltremisura, fdisk occupa uno spazio, compreso quello che si porta dietro, di 570kb circa. ** ===== Spazio Aggiuntivo ===== Per Aggiungere spazio a openwrt ci sono 2 strade, quella via interfaccia web e quella via terminale. Oltretutto preferisco usare anche una piccola partizioni di swap Generalmente uso /dev/sda1 sw - /dev/sda2 root Cli: mkdir -p /tmp/introot mkdir -p /tmp/extroot mount --bind / /tmp/introot mount /dev/sda2 /tmp/extroot tar -C /tmp/introot -cvf - . | tar -C /tmp/extroot -xf - umount /tmp/introot umount /tmp/extroot --------------------------------------------------------------------------------------------------------------- Non sono abile con uci e quanto segue l'ho copiato dal sito... l' uuid è inventato... eh... uci add fstab mount # =cfg026b83 uci set fstab.@mount[-1].enabled='1' uci set fstab.@mount[-1].uuid='b541c08e-b551-4a0b-9d63-31bf0b6c62b9' uci set fstab.@mount[-1].enabled_fsck='1' uci set fstab.@mount[-1].target='/' ==== Automount the partition ==== Automount ensures that the external disk partition is automatically made available for usage when booting the OpenWrt device Generate a config entry for the fstab file: block detect | uci import fstab Now enable automount on that config entry: uci set fstab.@mount[-1].enabled='1' uci commit fstab Optionally enable autocheck of the file system each time the OpenWrt device powers up: uci set fstab.@global[0].check_fs='1' uci commit fstab Reboot your OpenWrt device (to verify that automount works) After the reboot, check your results: Run uci show fstab to see something like this fstab.@global[0]=global fstab.@global[0].anon_swap='0' fstab.@global[0].anon_mount='0' fstab.@global[0].auto_swap='1' fstab.@global[0].auto_mount='1' fstab.@global[0].check_fs='0' fstab.@global[0].delay_root='5' fstab.@mount[0]=mount fstab.@mount[0].target='/mnt/sda1' fstab.@mount[0].uuid='49c35b1f-a503-45b1-a953-56707bb84968' fstab.@mount[0].enabled='1' ===== hdparm e hdd-idle ===== Installare hdparm per lo spin-off del disco quando non è usato, insieme alla comoda interfaccia grafica luci opkg update && opkg install hdparm luci-app-hd-idle ====== utilità post installazione ===== ===== Il blocca tutto-Adblock ====== Ecco il normale AD-block se l' apparecchio permette opkg update && opkg install adblock libustream-mbedtls luci-app-adblock https://openwrt.org/docs/guide-user/services/ad-blocking vedi qui: # Install packages opkg update opkg install adblock # Install dependencies for uclient-fetch - this is crucial for downloading from SSL blocklist sources, which are used in the default configuration of Adblock opkg install libustream-mbedtls # Provide web interface opkg install luci-app-adblock # Enable Adblock uci set adblock.global.adb_enabled="1" # Backup the blocklists uci set adblock.extra.adb_backup="1" uci set adblock.extra.adb_backupdir="/etc/adblock" # Use blocklists backup on startup uci set adblock.extra.adb_backup_mode="1" # Save and apply the changes uci commit adblock # riavvio /etc/init.d/adblock restart ===== Simple Ad-block ===== opkg update && opkg install simple-adblock luci-app-simple-adblock https://github.com/openwrt/packages/blob/master/net/simple-adblock/files/README.md ===== AD-block ===== ===== SQM per una navigazione fluida ===== https://openwrt.org/docs/guide-user/network/traffic-shaping/sqm ==== DNS hijacking ==== https://openwrt.org/docs/guide-user/services/dns/intercept ===== DNSmasq e crypt ===== https://openwrt.org/docs/guide-user/services/dns/dnscrypt_dnsmasq_dnscrypt-proxy ====== Leggere ====== https://openwrt.org/it/reasons_to_use_openwrt ---------------------------------------------------------------------------------------------------------- ====== Link alle immagini .bin ====== Nel mio caso uso 3 immagini x86_64, x86 e rpi4 ===Tutti=== https://downloads.openwrt.org/releases/VERSIONE/targets/ === x86/64 === https://downloads.openwrt.org/releases/VERSIONE/targets/x86/ === rpi4 === https://downloads.openwrt.org/snapshots/targets/bcm27xx/bcm2711/ _______________________________________________________________________________________________________________ crea build on-line (occhio ai log) https://chef.libremesh.org/