NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Skywalker
Dec 13, 2007NETGEAR Expert
Getting started How-To
Requirements:
1) RAIDiator-4.00c1-p2 or later.
2) The APT addon. Install it using the Frontview web UI under System -> Update -> Local Update.
3) The EnableRootSSH addon. Again, install using the Frontview web UI under System -> Update -> Local Update. This will allow you to SSH in to the NAS and bring up a shell command prompt.
Now what?
After those requirements are met, you should be able to run the standard Debian command "apt-get" to download and install packages for everything you need for development, including the headers for the non-standard packages used for the ReadyNAS.
Examples:
# apt-get update
# apt-get install libc6-dev
# apt-get install gcc
# apt-get install gdb
# apt-get install libtag1-dev
# apt-get install uuid-dev
Compiling natively on the ReadyNAS is slow. How about a cross-compiler?
You can grab a tarball of a cross-compiler to compile using an x86 system from here. It includes gcc, g++, and development headers, for use on Linux-based systems. Extract the tarball from your root directory to ensure things are placed in the correct path.
WARNING!
Please note that you can get your ReadyNAS into peril easily by overriding some of the system libraries and utilities. Do not do your development on a system you don't have a backup of as you may end up re-installing the firmware or worse yet, doing a factory default.
1) RAIDiator-4.00c1-p2 or later.
2) The APT addon. Install it using the Frontview web UI under System -> Update -> Local Update.
3) The EnableRootSSH addon. Again, install using the Frontview web UI under System -> Update -> Local Update. This will allow you to SSH in to the NAS and bring up a shell command prompt.
Now what?
After those requirements are met, you should be able to run the standard Debian command "apt-get" to download and install packages for everything you need for development, including the headers for the non-standard packages used for the ReadyNAS.
Examples:
# apt-get update
# apt-get install libc6-dev
# apt-get install gcc
# apt-get install gdb
# apt-get install libtag1-dev
# apt-get install uuid-dev
Compiling natively on the ReadyNAS is slow. How about a cross-compiler?
You can grab a tarball of a cross-compiler to compile using an x86 system from here. It includes gcc, g++, and development headers, for use on Linux-based systems. Extract the tarball from your root directory to ensure things are placed in the correct path.
WARNING!
Please note that you can get your ReadyNAS into peril easily by overriding some of the system libraries and utilities. Do not do your development on a system you don't have a backup of as you may end up re-installing the firmware or worse yet, doing a factory default.
129 Replies
Replies have been turned off for this discussion
- chirpaLuminaryYou don't need the APT add-on for NVX (or any other x86 systems like Pro), they have apt built in. Once you login via SSH, you can use 'apt-get update'.
- stefhfAspirantThank you for the quick reply.. "apt-get install build-essential" would be the best next step for a NVX system too?
- stefhfAspirantBTW: I get a "WARNING: The following packages cannot be authenticated! binutils linux-libc-dev libc6-dev" after performing "apt-get install build-essential" . Can i safely ignore this?
- sphardy1Apprenticedid you run 'apt-get update' first?
- stefhfAspirantYes in fact I did.
- sphardy1ApprenticeUmmm... Could you run it again (apt-get update) and post the output? You could also try to install again after re-running the update, see if the re-run fixes the issue
- stefhfAspirantoutput:
ReadyNAS:/# apt-get update
Get:1 http://archive.debian.org etch Release.gpg [1033B]
Hit http://archive.debian.org etch Release
Ign http://archive.debian.org etch/main Packages/DiffIndex
Hit http://archive.debian.org etch/main Packages
Ign http://www.readynas.com 4.2.13/ Release.gpg
Ign http://www.readynas.com 4.2.13/ Release
Ign http://www.readynas.com 4.2.13/ Packages/DiffIndex
Hit http://www.readynas.com 4.2.13/ Packages
Fetched 1B in 1s (1B/s)
Reading package lists... Done - sphardy1ApprenticeExactly same as what I see. And if you run 'apt-get install build-essential' now? You still get authentication issues?
- stefhfAspirantYes. How to solve this?
ReadyNAS:/# apt-get install build-essential
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
binutils cpp cpp-4.1 dpkg-dev g++ g++-4.1 gcc gcc-4.1 libc6-dev libssp0 libstdc++6-4.1-dev linux-libc-dev make patch
Suggested packages:
binutils-doc cpp-doc gcc-4.1-locales debian-keyring gcc-4.1-doc lib64stdc++6 manpages-dev autoconf automake1.9 libtool flex bison gdb gcc-doc libc6-dev-amd64 lib64gcc1 lib64ssp0 glibc-doc
libstdc++6-4.1-doc make-doc-non-dfsg ed diff-doc
Recommended packages:
bzip2 libmudflap0-dev
The following NEW packages will be installed:
binutils build-essential cpp cpp-4.1 dpkg-dev g++ g++-4.1 gcc gcc-4.1 libc6-dev libssp0 libstdc++6-4.1-dev linux-libc-dev make patch
0 upgraded, 15 newly installed, 0 to remove and 40 not upgraded.
Need to get 14.6MB of archives.
After unpacking 50.6MB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
binutils linux-libc-dev libc6-dev
Install these packages without verification [y/N]? - sphardy1Apprenticetry "apt-key update" to update the authentication keys
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!