Difference between revisions of "AC Series Recommended Software and Utilities"

Wiki.TerraBase.info
Jump to navigation Jump to search
m
m
Line 7: Line 7:
2) Any useful software, utilities, or other tools that would allow one to fix whatever is wrong with the external drive.  That includes backup and restoration software too.
2) Any useful software, utilities, or other tools that would allow one to fix whatever is wrong with the external drive.  That includes backup and restoration software too.


Here's the list (everything will fit on a WRT32X and WRT3200ACM, but it will be a tight squeeze on the lower end AC Series)
Below is are some lists of things to install.  Everything will fit on a WRT32X and WRT3200ACM, but it will be a tight squeeze on the lower end AC Series.  Dependencies are not listed, but will be installed when the various items are installed.


==== Disk Utilities ====
When installing, to make use of limited storage space, install the largest items and groups first
opkg install blkid block-mount cfdisk dosfstools dumpe2fs e2fsprogs f2fs-tools f2fsck fdisk file fstools gdisk hdparm kmod-fs-exfat kmod-fs-ext4 kmod-fs-f2fs kmod-fs-vfat kmod-usb-storage kmod-usb2 kmod-usb3 lsblk mkf2fs ntfs-3g ntfs-3g-utils sfdisk tune2fs usbutils wipefs<syntaxhighlight lang="text">
 
====Disk Utilities====
opkg install blkid block-mount cfdisk dosfstools dumpe2fs e2fsprogs f2fs-tools f2fsck fdisk file fstools gdisk hdparm kmod-fs-exfat kmod-fs-ext4 kmod-fs-f2fs kmod-fs-vfat kmod-usb-storage kmod-usb2 kmod-usb3 lsblk mkf2fs ntfs-3g ntfs-3g-utils sfdisk tune2fs usbutils wipefs
 
These utilities will use up around 5 MB of space.<syntaxhighlight lang="text">
blkid
blkid
block-mount
block-mount
Line 42: Line 46:
</syntaxhighlight>
</syntaxhighlight>


==== Other Utilities ====
====Other Utilities====
opkg install ar attr bash busybox bzip2 grep gzip htop iftop ipset losetup lsof luci-app-advanced-reboot luci-app-samba4 luci-app-uhttpd nano netcat nmap pciutils resolveip restic samba4-admin samba4-client samba4-libs samba4-server samba4-utils socat ss swconfig tar tcpdump ubi-utils uboot-envtools wget xz xz-utils zlib<syntaxhighlight lang="text">
opkg install ar attr bash bzip2 grep gzip htop luci-app-advanced-reboot luci-app-uhttpd nano netcat swconfig tar ubi-utils uboot-envtools wget
ar
attr
bash
busybox
bzip2
grep
gzip
htop
iftop
ipset
losetup
lsof
luci-app-advanced-reboot
luci-app-samba4
luci-app-uhttpd
nano
netcat
nmap
pciutils
resolveip
restic
samba4-admin
samba4-client
samba4-libs
samba4-server
samba4-utils
socat
ss
swconfig
tar
tcpdump
ubi-utils
uboot-envtools
wget
xz
xz-utils
zlib
zoneinfo-core
zoneinfo-northamerica


Remember, some of these utilities are the ''full'' version of the utility.  A smaller / 'neutered' version of the command / utility may be included within the BusyBox software (again, look it up).
These items will take up about 15 or so MB of space<syntaxhighlight lang="text">
ar
attr
bash
bzip2
grep
gzip
htop
luci-app-advanced-reboot
luci-app-uhttpd
nano
netcat
swconfig
tar
ubi-utils
uboot-envtools
wget
</syntaxhighlight>
</syntaxhighlight>


=== Wildcard - All of the Utilities ===
====Wildcard - All of the Utilities====
opkg install WhatEver*  Nope, won't work
opkg install WhatEver*  Nope, won't work


This will;<syntaxhighlight lang="text">
The below commands will install in a wildcard fashion;<syntaxhighlight lang="text">
opkg list | grep WhatEverNamePackagesBeginWith| awk '{print $1}' | xargs opkg install
opkg list | grep WhatEverNamePackagesBeginWith| awk '{print $1}' | xargs opkg install
</syntaxhighlight>opkg list | grep coreutils-| awk '{print $1}' | xargs opkg install
</syntaxhighlight>opkg list | grep shadow| awk '{print $1}' | xargs opkg install (about 15 MB, so if space is an issue, do these selectively)
 
opkg list | grep coreutils-| awk '{print $1}' | xargs opkg install (about 5 MB)
 
opkg list | grep procps| awk '{print $1}' | xargs opkg install (maybe 1 MB)


opkg list | grep shadow| awk '{print $1}' | xargs opkg install
For some of these utilities the OpenWRT documentation states: "Full versions of standard <ins>shadow</ins> utilities. Normally, you would not…"  And that's it.  Let's finish that: Full versions of standard <ins>shadow</ins> utilities. Normally, you would not ''install, unless you want to actually succeed in accomplishing the task you need to complete.'' (That sounds a bit mean, and it isn't intended that way.  There's always a compromise that has to be made in terms of space and functionality when choosing all the options for utilities to cram into BusyBox).


opkg list | grep procps| awk '{print $1}' | xargs opkg install
Not all of these utilities will prove useful.  It is simply faster to install in a wildcard fashion, rather than individually, as many of them are useful.  So if space is an issue, be selective.


The OpenWRT documentation states: "Full versions of standard <ins>shadow</ins> utilities. Normally, you would not…"  And that's it.  Let's finish that: Full versions of standard <ins>shadow</ins> utilities. Normally, you would not ''install, unless you want to actually succeed in accomplishing the task you need to complete.'' (That sounds a bit mean, and it isn't intended that way.  There's always a compromise that has to be made in terms of space and functionality when choosing all the options for utilities to cram into BusyBox).
If Samba or Restic is really important, do these items last.


If one wants to remove everything in a certain group, just replace the install at the end of the command with: remove


Remember, some of the above noted utilities are the ''full'' version of the utility.  A smaller / 'neutered' version of the command / utility may be included within the BusyBox software (again, look it up).
==== Samba ====
opkg install samba4-admin samba4-client samba4-libs samba4-server samba4-utils luci-app-samba4


...and finally Samba.  It is quite useful in moving files around quickly, but it takes up a LOT of space.  The WRT32X and WRT3200ACM (to a lesser degree than the 32X) can spare the space, but probably not the lower end AC routers.  So this will be the item to leave off as it has the biggest storage footprint.
...and finally Samba.  It is quite useful in moving files around quickly, but it takes up a LOT of space.  The WRT32X and WRT3200ACM (to a lesser degree than the 32X) can spare the space, but probably not the lower end AC routers.  So this will be the item to leave off as it has the biggest storage footprint.
==== Restic ====
opkg install restic
Restic is another utility on the larger side.  If backups are done with this software and need to be restored, then it's needed.  If one doesn't use, consider using it.  If not, don't worry about installing it.
<br />
====Additional Utilities (if there's storage space available)====
opkg install busybox iftop ipset losetup lsof nmap pciutils resolveip ss tcpdump wget xz xz-utils
Remember, some of these utilities are the ''full'' version of the utility.  A smaller / 'neutered' version of the command / utility may be included within the BusyBox software (again, look it up).
These items will take up about 15 or so MB of space<syntaxhighlight lang="text">
busybox
iftop
ipset
losetup
lsof
nmap
pciutils
resolveip
ss
tcpdump
wget
xz
xz-utils
</syntaxhighlight>


<br />
<br />

Revision as of 09:43, 28 September 2021

The best method of owning, managing, having, using, ...whatever, an OpenWRT based router it to have the OpenWRT OS stored on some type of USB Flash drive, mSATA, NVME, NGFF, or other type of external drive / SSD etc that utilizes the OpenWRT /overlay functionality (look it up, it's quite useful).

...but, when the router is turned on, it's still booting from code stored on the built in "Disk Drive", AKA NAND. So an interesting question comes up: If the external drive fails, what should be installed on the NAND 'Drive'. Well, to start with, anything that is necessary for the "Overlay Functionality" (look it up on the OpenWRT site). But if it's booting to an external drive that's using the /overlay functionality, then it's already installed. Beyond that?

1) Anything (configuration / software) that allows the router to still provide internet access (albeit, possibly in a reduced functionality fashion)

2) Any useful software, utilities, or other tools that would allow one to fix whatever is wrong with the external drive. That includes backup and restoration software too.

Below is are some lists of things to install. Everything will fit on a WRT32X and WRT3200ACM, but it will be a tight squeeze on the lower end AC Series. Dependencies are not listed, but will be installed when the various items are installed.

When installing, to make use of limited storage space, install the largest items and groups first

Disk Utilities

opkg install blkid block-mount cfdisk dosfstools dumpe2fs e2fsprogs f2fs-tools f2fsck fdisk file fstools gdisk hdparm kmod-fs-exfat kmod-fs-ext4 kmod-fs-f2fs kmod-fs-vfat kmod-usb-storage kmod-usb2 kmod-usb3 lsblk mkf2fs ntfs-3g ntfs-3g-utils sfdisk tune2fs usbutils wipefs

These utilities will use up around 5 MB of space.

blkid
block-mount
cfdisk
dosfstools
dumpe2fs
e2fsprogs
f2fs-tools
f2fsck
fdisk
file
fstools
gdisk
hdparm
kmod-fs-exfat
kmod-fs-ext4
kmod-fs-f2fs
kmod-fs-vfat
kmod-usb-storage
kmod-usb2
kmod-usb3
lsblk
mkf2fs
ntfs-3g
ntfs-3g-utils
sfdisk
tune2fs
usbutils
wipefs

Other Utilities

opkg install ar attr bash bzip2 grep gzip htop luci-app-advanced-reboot luci-app-uhttpd nano netcat swconfig tar ubi-utils uboot-envtools wget

Remember, some of these utilities are the full version of the utility. A smaller / 'neutered' version of the command / utility may be included within the BusyBox software (again, look it up).

These items will take up about 15 or so MB of space

ar
attr
bash
bzip2
grep
gzip
htop
luci-app-advanced-reboot
luci-app-uhttpd
nano
netcat
swconfig
tar
ubi-utils
uboot-envtools
wget

Wildcard - All of the Utilities

opkg install WhatEver* Nope, won't work

The below commands will install in a wildcard fashion;

opkg list | grep WhatEverNamePackagesBeginWith| awk '{print $1}' | xargs opkg install

opkg list | grep shadow| awk '{print $1}' | xargs opkg install (about 15 MB, so if space is an issue, do these selectively)

opkg list | grep coreutils-| awk '{print $1}' | xargs opkg install (about 5 MB)

opkg list | grep procps| awk '{print $1}' | xargs opkg install (maybe 1 MB)

For some of these utilities the OpenWRT documentation states: "Full versions of standard shadow utilities. Normally, you would not…" And that's it. Let's finish that: Full versions of standard shadow utilities. Normally, you would not install, unless you want to actually succeed in accomplishing the task you need to complete. (That sounds a bit mean, and it isn't intended that way. There's always a compromise that has to be made in terms of space and functionality when choosing all the options for utilities to cram into BusyBox).

Not all of these utilities will prove useful. It is simply faster to install in a wildcard fashion, rather than individually, as many of them are useful. So if space is an issue, be selective.

If Samba or Restic is really important, do these items last.

If one wants to remove everything in a certain group, just replace the install at the end of the command with: remove

Samba

opkg install samba4-admin samba4-client samba4-libs samba4-server samba4-utils luci-app-samba4

...and finally Samba. It is quite useful in moving files around quickly, but it takes up a LOT of space. The WRT32X and WRT3200ACM (to a lesser degree than the 32X) can spare the space, but probably not the lower end AC routers. So this will be the item to leave off as it has the biggest storage footprint.

Restic

opkg install restic

Restic is another utility on the larger side. If backups are done with this software and need to be restored, then it's needed. If one doesn't use, consider using it. If not, don't worry about installing it.

Additional Utilities (if there's storage space available)

opkg install busybox iftop ipset losetup lsof nmap pciutils resolveip ss tcpdump wget xz xz-utils

Remember, some of these utilities are the full version of the utility. A smaller / 'neutered' version of the command / utility may be included within the BusyBox software (again, look it up).

These items will take up about 15 or so MB of space

busybox
iftop
ipset
losetup
lsof
nmap
pciutils
resolveip
ss
tcpdump
wget
xz
xz-utils