I have a TS-219P. I noticed that the installed Busybox version is outdated and doesn't support things like "grep -r".
I managed to download the latest version of Busybox (1.19 as of this writing), and threw it into my shared folder. I downloaded the arm5l version (http://www.busybox.net/downloads/binari ... box-armv5l)
I don't want to replace system files in case they are needed, but what is the best way to "update" the pre-installed busybox (that is: where should I move the binary, and which links should I create).
Thanks!
Updating Busybox?
- schumaku
- Guru
- Posts: 43578
- Joined: Mon Jan 21, 2008 4:41 pm
- Location: Kloten (Zurich), Switzerland -- Skype: schumaku
- Contact:
Re: Updating Busybox?
Be aware the QNAP-supplied scripts are thightly adopted to the Busybox in place - many things can (and will) go wrong replacing it.
-
- Know my way around
- Posts: 113
- Joined: Sun Oct 10, 2010 8:24 am
Re: Updating Busybox?
hmmm, good point.
I guess I will just leave it....Can I move the binary somewhere into a "bin" location or somewhere at least so it is globally accessible (by a different name ie: "busybox2" or something of my choosing?)
I guess I will just leave it....Can I move the binary somewhere into a "bin" location or somewhere at least so it is globally accessible (by a different name ie: "busybox2" or something of my choosing?)
- schumaku
- Guru
- Posts: 43578
- Joined: Mon Jan 21, 2008 4:41 pm
- Location: Kloten (Zurich), Switzerland -- Skype: schumaku
- Contact:
Re: Updating Busybox?
What about just substituting some specific command binaries in a dedicated path - one the normal scripts dodn't use?
-
- Know my way around
- Posts: 113
- Joined: Sun Oct 10, 2010 8:24 am
Re: Updating Busybox?
Sorry, admittedly I'm a linux noob (used to be much more fluent 10 years ago when I worked with it quite a bit, but I'm finding its not like riding a bike).
Busybox seems to be a single binary. Functions like "grep" seem to map to "./bin/busybox grep", like a shortcut. I don't necessarily need to add additional functions (ie: I'm content prefixing every "updated" busybox function with "busybox2", but I'm not sure what the best implementation would be.
ie:
rather than using "grep", I would do "busybox2 grep"
Busybox seems to be a single binary. Functions like "grep" seem to map to "./bin/busybox grep", like a shortcut. I don't necessarily need to add additional functions (ie: I'm content prefixing every "updated" busybox function with "busybox2", but I'm not sure what the best implementation would be.
ie:
rather than using "grep", I would do "busybox2 grep"
-
- Experience counts
- Posts: 1006
- Joined: Mon Nov 16, 2009 11:02 am
Re: Updating Busybox?
If you want a decent shell with utilities, my advice is skip busybox and go straight to the Optware qpkg, then install full ipkgs for bash and coreutils, then add whatever else you may need. They all land in /opt, stay out of the way of the builtin NAS admin, and you'll be much happier. Just be sure to set your $PATH to reference /opt when logging in:
Code: Select all
# export PATH=/opt/bin:/opt/sbin:$PATH
#
SS-439, Ubuntu Server 12.04.3 LTS, EXT4, RAID10, 4xHitachi 5K1000
TS-112, 4.1.x Beta, EXT4, 1xHitachi 7K1000
TS-112, 4.1.x Beta, EXT4, 1xHitachi 7K1000
- schumaku
- Guru
- Posts: 43578
- Joined: Mon Jan 21, 2008 4:41 pm
- Location: Kloten (Zurich), Switzerland -- Skype: schumaku
- Contact:
Re: Updating Busybox?
Ensure this path is not used on the "normal" NAS processing
-
- First post
- Posts: 1
- Joined: Mon Feb 24, 2020 6:17 am
Re: Updating Busybox?
I installed version 1.26 of BusyBox on my very old Qnap TS-219, by downloading the BusyBox binary for ARM v6, and moving it to the /opt folder. I then set chmod u+x on it, and renamed it to busybox2. For me it works like a charm, and I can now execute commands such as for example "/opt/busybox2 find . -type f -exec chmod o-w {} \;", which was not possible with the built-in (older) version of BusyBox that comes with QTS 4.3.3 (which is the latest version for TS-219). That version did not support -exec as a parameter to "find".
Based on my limited experience (so far, so good), I would recommend this approach over installing Entware. With Entware, you may end up replacing commands such as find or grep with newer versions, which may impact Qnap in unexpected ways perhaps (?). But with a completely separate binary in /opt, you have not altered any original binaries. You just need to call this binary explicitly when you want to use a newer version of some standard bash commands.
Based on my limited experience (so far, so good), I would recommend this approach over installing Entware. With Entware, you may end up replacing commands such as find or grep with newer versions, which may impact Qnap in unexpected ways perhaps (?). But with a completely separate binary in /opt, you have not altered any original binaries. You just need to call this binary explicitly when you want to use a newer version of some standard bash commands.
- jaysona
- Been there, done that
- Posts: 856
- Joined: Tue Dec 02, 2008 11:26 am
- Location: Somewhere in the Great White North
Re: Updating Busybox?
@MitsuItsu it is usually a good idea to read forum rules when you first sign-up.
viewtopic.php?f=5&t=60
viewtopic.php?f=5&t=60
Resurrecting a ten-year old thread - that's quite the necromancer you are. :p2.8 Necro-posting is also not allowed. This is the practice of posting in stale, inactive or dead topics. A topic is considered dead if it hasn't been updated for over 1 year.
RAID is not a Back-up!
H/W: QNAP TVS-872x (i7-8700. 64GB) (Plex server & encoding host) / TVS-EC1080 (32Gig ECC) - VM host & seedbox
H/W: Asustor AS6706T (32GB) / Asustor AS7010T (16GB) (media storage)
H/W: TS-219 Pro / TS-509 Pro
O/S: Slackware 14.2 / MS Windows 7-64 (x5)
Router1: Asus RT-AX86U - Asuswrt-Merlin - 3004.388.6_2
Router2: Asus RT-AC66U - Asuswrt-Merlin - 386.12_6
Router3: Linksys WRT1900AC - DD-WRT v3.0-r46816 std
Router4: Asus RT-AC66U - FreshTomato v2021.10.15
Misc: Popcorn Hour A-110/WN-100, Pinnacle Show Center 250HD, Roku SoundBridge Radio (all retired)
Ditched QNAP units: TS-269 Pro / TS-253 Pro (8GB) / TS-509 Pro / TS-569 Pro / TS-853 Pro (8GB)
TS-670 Pro x2 (i7-3770s 16GB) / TS-870 Pro (i7-3770 16GB) / TVS-871 (i7-4790s 16GB)
H/W: QNAP TVS-872x (i7-8700. 64GB) (Plex server & encoding host) / TVS-EC1080 (32Gig ECC) - VM host & seedbox
H/W: Asustor AS6706T (32GB) / Asustor AS7010T (16GB) (media storage)
H/W: TS-219 Pro / TS-509 Pro
O/S: Slackware 14.2 / MS Windows 7-64 (x5)
Router1: Asus RT-AX86U - Asuswrt-Merlin - 3004.388.6_2
Router2: Asus RT-AC66U - Asuswrt-Merlin - 386.12_6
Router3: Linksys WRT1900AC - DD-WRT v3.0-r46816 std
Router4: Asus RT-AC66U - FreshTomato v2021.10.15
Misc: Popcorn Hour A-110/WN-100, Pinnacle Show Center 250HD, Roku SoundBridge Radio (all retired)
Ditched QNAP units: TS-269 Pro / TS-253 Pro (8GB) / TS-509 Pro / TS-569 Pro / TS-853 Pro (8GB)
TS-670 Pro x2 (i7-3770s 16GB) / TS-870 Pro (i7-3770 16GB) / TVS-871 (i7-4790s 16GB)