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
- chirpaLuminary
gabriel.hahmann wrote: I'm trying to create an envinment for cross compiling some software to the ReadyNAS Duo but I'm failling.
I've downloaded the cross compiler kit and the glibc from netgear but I cant put it to work.
Give this a try: Sparc platform development envrionment using Qemu - glassercAspirantHi,
I compiled rdiff-backup for my ReadyNAS. Trying to do things the Debian way will just lead to frustration. What worked was:
- install python-dev, librsync-dev, etc. from the NAS repos
- get the most recent rdiff-backup source. I did this by (on my laptop, running unstable) apt-get source rdiff-backup, and then copying the directory over to the NAS
- dpkg-dev is uninstallable, so dpkg-buildpackage won't work (but it probably wouldn't anyhow, due to dependency issues) :( Instead: python setup.py build; python setup.py install
Now I am messing about with the users and groups so that the permissions on NFS and over SSH are both sensible, but you can ignore that if you're only going to use one or the other.
HTH
Ethan - berkut1TutorI am venturing into the development environment for the NV+. I've installed both the APT and EnableSSH addons and have been succesful in logging in and perusing the environment.
However when I execute "apt-get update" from the root, I get many errors such those listed below
:Err http://http.us.debian.org sarge/main Packages
404 Not Found [IP: 128.30.2.36 80]
Ign http://http.us.debian.org sarge/main Release
Err http://security.debian.org sarge/updates/main Packages
404 Not Found [IP: 128.31.0.36 80]
Ign http://security.debian.org sarge/updates/main Release
Err http://http.us.debian.org sarge/contrib Packages
404 Not Found [IP: 128.30.2.36 80]
Ign http://http.us.debian.org sarge/contrib Release
Err http://http.us.debian.org sarge/non-free Packages
404 Not Found [IP: 128.30.2.36 80]
Ign http://http.us.debian.org sarge/non-free Release
Err http://http.us.debian.org sarge/main Sources
404 Not Found [IP: 128.30.2.36 80]
Ign http://http.us.debian.org sarge/main Release
Err http://http.us.debian.org sarge/contrib Sources
404 Not Found [IP: 128.30.2.36 80]
Is this normal?, or do I need to update the "../apt/sources.list"? - SkywalkerNETGEAR Expertsources.list should contain this:
deb http://www.readynas.com/packages readynas/
deb http://archive.debian.org/debian sarge main contrib non-free
deb-src http://archive.debian.org/debian sarge main contrib non-free - berkut1Tutor
Skywalker wrote: sources.list should contain this: deb http://www.readynas.com/packages readynas/
deb http://archive.debian.org/debian sarge main contrib non-free
deb-src http://archive.debian.org/debian sarge main contrib non-free
Thanks, that did the trick. - riplattAspirantHi all trying to set up Development Environment on my PRO and em running in to some trouble and would like some help
here's what i get when i go to install.rip-nas:/# apt-get install libc6-dev gcc gdb libtag1-dev uuid-dev g++
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
g++: Depends: g++-4.1 (>= 4.1.1-2) but it is not going to be installed
Depends: gcc-4.1 (>= 4.1.1-2) but it is not going to be installed
gcc: Depends: gcc-4.1 (>= 4.1.1-2) but it is not going to be installed
libc6-dev: Depends: libc6 (= 2.7-18) but 2.3.6.ds1-13etch9+b1 is to be installed
Depends: linux-libc-dev but it is not installable
E: Broken packages - super_poussinVirtuoso
riplatt wrote: Hi all trying to set up Development Environment on my PRO and em running in to some trouble and would like some help
here's what i get when i go to install.rip-nas:/# apt-get install libc6-dev gcc gdb libtag1-dev uuid-dev g++
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
g++: Depends: g++-4.1 (>= 4.1.1-2) but it is not going to be installed
Depends: gcc-4.1 (>= 4.1.1-2) but it is not going to be installed
gcc: Depends: gcc-4.1 (>= 4.1.1-2) but it is not going to be installed
libc6-dev: Depends: libc6 (= 2.7-18) but 2.3.6.ds1-13etch9+b1 is to be installed
Depends: linux-libc-dev but it is not installable
E: Broken packages
did you do an apt-get update before ? - riplattAspirantYeah i did a apt-get update before hand.
but i do get some public key errors when i do.rip-nas:~# apt-get update
Ign http://www.readynas.com readynas-x86/ Release.gpg
Get:1 http://ftp.debian.org etch Release.gpg [1032B]
Hit http://ftp.debian.org etch Release
Err http://ftp.debian.org etch Release
Get:2 http://ftp.debian.org etch Release [67.8kB]
Ign http://www.readynas.com readynas-x86/ Release
Ign http://ftp.debian.org etch Release
Ign http://www.readynas.com readynas-x86/ Packages/DiffIndex
Ign http://ftp.debian.org etch/main Packages/DiffIndex
Hit http://ftp.debian.org etch/main Packages
Ign http://www.readynas.com readynas-x86/ Packages
Get:3 http://security.debian.org etch/updates Release.gpg [835B]
Hit http://security.debian.org etch/updates Release
Err http://security.debian.org etch/updates Release
Get:4 http://security.debian.org etch/updates Release [37.6kB]
Ign http://security.debian.org etch/updates Release
Ign http://security.debian.org etch/updates/main Packages/DiffIndex
Hit http://security.debian.org etch/updates/main Packages
Hit http://www.readynas.com readynas-x86/ Packages
Fetched 107kB in 6s (16.8kB/s)
Reading package lists... Done
W: GPG error: http://ftp.debian.org etch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302B
W: GPG error: http://security.debian.org etch/updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302B
W: You may want to run apt-get update to correct these problems - riplattAspirantok did an update to RAIDiator-x86-4.2.7
and now apt-get update goes without error but still no luck with uuid-devrip-nas:/# apt-get update
Ign http://www.readynas.com 4.2.7/ Release.gpg
Ign http://www.readynas.com 4.2.7/ Release
Ign http://www.readynas.com 4.2.7/ Packages/DiffIndex
Ign http://www.readynas.com 4.2.7/ Packages
Get:1 http://ftp.debian.org etch Release.gpg [1032B]
Hit http://ftp.debian.org etch Release
Hit http://www.readynas.com 4.2.7/ Packages
Ign http://ftp.debian.org etch/main Packages/DiffIndex
Hit http://ftp.debian.org etch/main Packages
Fetched 1B in 7s (0B/s)
Reading package lists... Done
rip-nas:/# apt-get install libc6-dev gcc gdb libtag1-dev uuid-dev g++
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
uuid-dev: Depends: libuuid1 (= 1.41.6-1.netgear1) but 1.41.9-1.netgear1 is to be installed
E: Broken packages - SkywalkerNETGEAR ExpertTry another apt-get update. We just finished updating the respository.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!