NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

Skywalker's avatar
Skywalker
NETGEAR Expert
Dec 13, 2007

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.

129 Replies

Replies have been turned off for this discussion
  • Could someone point me in the right direction? Got stuck at this point (version 4.2.21):

    ~# apt-get update && apt-get install build-essential
    Hit http://archive.debian.org etch Release.gpg
    Ign http://archive.debian.org etch/main Translation-en_US
    Hit http://archive.debian.org etch Release
    Ign http://archive.debian.org etch/main Packages/DiffIndex
    Hit http://archive.debian.org etch/main Packages
    Hit http://www.readynas.com 4.2.21/ Release.gpg
    Ign http://www.readynas.com 4.2.21/ Translation-en_US
    Hit http://www.readynas.com 4.2.21/ Release
    Ign http://www.readynas.com 4.2.21/ Packages/DiffIndex
    Hit http://www.readynas.com 4.2.21/ Packages
    Reading package lists... Done
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    You might want to run `apt-get -f install' to correct these:
    The following packages have unmet dependencies:
    build-essential: Depends: libc6-dev but it is not going to be installed or
    libc-dev
    Depends: gcc (>= 4:4.1.1) but it is not going to be installed
    Depends: g++ (>= 4:4.1.1) but it is not going to be installed
    Depends: make but it is not going to be installed
    Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed
    tesseract-ocr: Depends: libtiff4 but it is not going to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


    "apt-get -f install" doesn't work either.

    Thanks in advance
  • Torsten4385 wrote:
    Could someone point me in the right direction? Got stuck at this point (version 4.2.21):

    You might want to run `apt-get -f install' to correct these:
    The following packages have unmet dependencies:
    build-essential: Depends: libc6-dev but it is not going to be installed or
    libc-dev
    Depends: gcc (>= 4:4.1.1) but it is not going to be installed
    Depends: g++ (>= 4:4.1.1) but it is not going to be installed
    Depends: make but it is not going to be installed
    Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed
    tesseract-ocr: Depends: libtiff4 but it is not going to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).[/code]

    "apt-get -f install" doesn't work either.

    Thanks in advance


    You'll probably need to update your etc/apt/sources.list with a couple of new lines...

    deb http://www.readynas.com/packages 4.2.21/

    deb http://archive.debian.org/debian etch main
    deb http://www.readynas.com/packages readynas-x86/
    deb http://archive.canonical.com/ lucid partner
    deb http://archive.debian.org/debian etch main non-free

    But you'll be better to search here for sources to add to your RDN. (Sparc, x86,)

    I think I've got a Lenny line in there too, but I only have a couple of notes to hand ATM.
  • I'm trying to setup my ReadyNAS Duo to compile a few things I want/need. But I keep running into the an unmet dependancy with smbclient:
    You might want to run `apt-get -f install' to correct these:
    The following packages have unmet dependencies:
    smbclient: Depends: samba-common (= 3.0.37.netgear2) but 2:3.5.15-netgear1 is to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


    It's a sparc based Duo, RAIDiator 4.1.9 [1.00a043].

    Looking at the result of apt-cache show for smbclient and samba-common I see this:
    Package: samba-common
    Status: install ok installed
    Priority: optional
    Section: net
    Installed-Size: 692
    Maintainer: Debian Samba Maintainers <pkg-samba-maint@lists.alioth.debian.org>
    Architecture: all
    Source: samba
    Version: 2:3.5.15-netgear1
    Replaces: samba (<< 3.0.20b-1), samba4-common (<< 4.0.0~alpha7-1)
    Depends: debconf (>= 0.5) | debconf-2.0
    Recommends: samba-common-bin
    Conflicts: samba4-common (<< 4.0.0~alpha7-1)
    Conffiles:
    /etc/pam.d/samba ff2488324854f7b1e892bb0df062d5f0
    /etc/samba/gdbcommands 898c523d1c11feeac45538a65d00c838
    Description: common files used by both the Samba server and client
    Samba is an implementation of the SMB/CIFS protocol for Unix systems,
    providing support for cross-platform file and printer sharing with
    Microsoft Windows, OS X, and other Unix systems.
    .
    This package contains common files used by both Samba 3 and Samba 4.


    Package: smbclient
    Status: install ok installed
    Priority: optional
    Section: net
    Installed-Size: 8868
    Maintainer: Eloy A. Paris <peloy@debian.org>
    Architecture: sparc
    Source: samba
    Version: 3.0.37.netgear2
    Replaces: samba (<< 2.999+3.0.alpha21-4)
    Provides: samba-client
    Depends: samba-common (= 3.0.37.netgear2), libc6 (>= 2.3.2.ds1-21), libcap1, libcomerr2 (>= 1.33-3), libkrb53 (>= 1.4.2), libldap2 (>= 2.0.23-1), libncurses5 (>= 5.4-1), libpopt0 (>= 1.7), libreadline4 (>= 4.3-1)
    Suggests: smbfs
    Description: a LanManager-like simple client for Unix
    The Samba software suite is a collection of programs that
    implements the SMB protocol for unix systems, allowing you to serve
    files and printers to Windows, NT, OS/2 and DOS clients. This protocol
    is sometimes also referred to as the LanManager or NetBIOS protocol.
    .
    This package contains some client components of the Samba suite. In
    particular it includes the command line utilities smbclient, smbtar,
    and smbspool. If you want to mount shares exported from Microsoft
    Windows machines or a Samba server you must install the smbfs package.


    Any idea what to do? I'm not sure apt-get -f install is the right thing since it would remove smbclient. Is there some way I can convince apt-get that everything is okay and let me setup my compiling environment?

    Thanks,
  • mdgm-ntgr's avatar
    mdgm-ntgr
    NETGEAR Employee Retired
    Can you do

    # apt-get update

    and see if this helps. After running the above command you should be able to install smbclient.

    If not, please post the output of

    cat /etc/apt/sources.list
  • Running apt-get update:

    Beacon:~# apt-get update
    Hit http://www.readynas.com readynas/ Packages
    Hit http://www.readynas.com readynas/ Release
    Hit http://archive.debian.org sarge/main Packages
    Hit http://archive.debian.org sarge/main Release
    Hit http://archive.debian.org sarge/contrib Packages
    Hit http://archive.debian.org sarge/contrib Release
    Hit http://archive.debian.org sarge/non-free Packages
    Hit http://archive.debian.org sarge/non-free Release
    Hit http://archive.debian.org sarge/main Sources
    Hit http://archive.debian.org sarge/main Release
    Hit http://archive.debian.org sarge/contrib Sources
    Hit http://archive.debian.org sarge/contrib Release
    Hit http://archive.debian.org sarge/non-free Sources
    Hit http://archive.debian.org sarge/non-free Release
    Reading Package Lists... Done
    Beacon:~# apt-get install libc6-dev
    Reading Package Lists... Done
    Building Dependency Tree... Done
    You might want to run `apt-get -f install' to correct these:
    The following packages have unmet dependencies:
    libc6-dev: Depends: linux-kernel-headers but it is not going to be installed
    smbclient: Depends: samba-common (= 3.0.37.netgear2) but 2:3.5.15-netgear1 is to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


    Still have the problem!


    Beacon:~# cat /etc/apt/sources.list
    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


    Any ideas?

    Thanks for your help.
  • mdgm-ntgr's avatar
    mdgm-ntgr
    NETGEAR Employee Retired
    Can you edit /etc/apt/sources.list to have the line

    deb http://www.readynas.com/packages 4.1.9/

    not

    deb http://www.readynas.com/packages readynas/

    Then run apt-get update again.
  • Nope!
    Beacon:~# apt-get update
    Get:1 http://www.readynas.com 4.1.9/ Packages [39.4kB]
    Get:2 http://www.readynas.com 4.1.9/ Release [2363B]
    Get:3 http://archive.debian.org sarge/main Packages [4405kB]
    Get:4 http://archive.debian.org sarge/main Release [99B]
    Get:5 http://archive.debian.org sarge/contrib Packages [62.7kB]
    Get:6 http://archive.debian.org sarge/contrib Release [102B]
    Get:7 http://archive.debian.org sarge/non-free Packages [53.2kB]
    Get:8 http://archive.debian.org sarge/non-free Release [103B]
    Get:9 http://archive.debian.org sarge/main Sources [1323kB]
    Get:10 http://archive.debian.org sarge/main Release [100B]
    Get:11 http://archive.debian.org sarge/contrib Sources [24.7kB]
    Get:12 http://archive.debian.org sarge/contrib Release [103B]
    Get:13 http://archive.debian.org sarge/non-free Sources [23.5kB]
    Get:14 http://archive.debian.org sarge/non-free Release [104B]
    Fetched 5934kB in 40s (146kB/s)
    Reading Package Lists... Done
    Beacon:~# apt-get install libc6-dev
    Reading Package Lists... Done
    Building Dependency Tree... Done
    You might want to run `apt-get -f install' to correct these:
    The following packages have unmet dependencies:
    libc6-dev: Depends: linux-kernel-headers but it is not going to be installed
    smbclient: Depends: samba-common (= 3.0.37.netgear2) but 2:3.5.15-netgear1 is to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
    Beacon:~#


    My /etc/apt/sources.list looks like this:
    Beacon:~# cat /etc/apt/sources.list 
    deb http://www.readynas.com/packages 4.1.9/
    # 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

    Beacon:~#


    I'm thinking I'll try without the sarge repositories. Any way for me to see what's available in 4.1.9? Like I can browse the debian archives in a web browser.

    Thanks!

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More