← Back to blog home

Setup Path / Environment variables on Netgear Stora

18 Nov

To avoid having to type the full path to everything you install you need to set up the path environment variable. This is a very simple tutorial, but will save you a ton of headache once you start installing a lot of things.

Important Note: Before you can follow this guide you must have root access to your stora.

To setup your path variable simply copy and paste the code below and you will be good to go.

echo "PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/sbin:/opt/sbin:/usr/sbin:/sbin" > /etc/environment

OR if you already have nano installed you an simply edit the path using nano by typing:

nano -w /etc/environment

then just copy and paste the following in to the editor PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/sbin:/opt/sbin:/usr/sbin:/sbin

and press CTRL+X to close and answer Y when it asks you to save

 

Finishing up

For these changes to take effect you will need to reboot your stora using the linux shutdown command: shutdown -r now OR you can just reboot it using the web interface. Once the system comes back up you should be able to just type the name of applications instead of the full path. eg nano, ipkg, etc

 
2 Comments

Posted in Guides

 

Tags: , ,

Leave a Reply

Notify me of future comments

(I don't spam or share your e-mail. Unsubscribing is as easy as clicking the "unsubscribe" link in the notifications)
 

 

 
  1. Georges

    January 25, 2011 at 9:46 am

    Hi,

    I am looking for a low cost NAS DLNA Server.
    I hesitate about “Netgear” because it was a close system.
    Now, I will run and buy one.

    Thanks

    Georges

     
  2. RigoNet

    June 6, 2014 at 4:45 am

    You don’t need to reboot the system after changes on /etc/environment

    just type: ‘source /etc/environment’