element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Interfaces
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 12 replies
  • Subscribers 678 subscribers
  • Views 1070 views
  • Users 0 members are here
  • raspberry_pi
Related

Interfaces

rincewind1
rincewind1 over 12 years ago

I am trying to access sudo nano  /network/interfaces on my new pi the nano screen opens but has no content and if I try to type and save I get message file does not exist, I am a beginner trying to run pi from laptop but cannot get pi to have a static IP address due to this, can you help?

I think I have tried everything

  • Sign in to reply
  • Cancel
Parents
  • wallarug
    wallarug over 12 years ago

    Wrong file name:

     

    "sudo nano /etc/network/interfaces"

     

    that should work.

     

    EDIT:

     

    Once you have the file open, change:

     

    iface eth0 inet auto

     

    to

     

    iface eth0 inet static

      address <your_ip_address>

      netmask <your_netmask>

     

    Hope this helps.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • rincewind1
    rincewind1 over 12 years ago in reply to wallarug

    Yes I have tried that, the ect/network/interfaces, that is the line I was using, just forgot it in my question, when the editor opens it puts that path on top of the window, but it is classed as a new file.

    I happily get online via wireless network, but the interfaces file eludes me no matter how many times I try it.

    I have looked at and copied the path faithfully from research and books all to no avail.

    I have to put 2 spaces after the nano part before the /ect /network/interfaces else I get message command not found

    Thank you both for the suggestion

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • webmanaus
    webmanaus over 12 years ago in reply to rincewind1

    I don't know why, but you have the name wrong both times in your message:

    ect/network/interfaces - wrong - missing / at the beginning, and not ect

    /ect /network/interfaces - also wrong - not ect and remove the extra space

     

    The correct version is:

    sudo nano /etc/network/interfaces

     

    If all else fails, sometimes it is easier to take it in multiple small steps:

    1) cd /etc

    2) cd network

    3) sudo nano interfaces

     

    Make sure you don't get any errors after each step, and if possible, copy and paste what happens, or upload a photo of the screen. That will help us spot real issues instead of typos you may only be making when posting here.

     

    Hope this helps.

     

    Regards,

    Adam

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • webmanaus
    webmanaus over 12 years ago in reply to rincewind1

    I don't know why, but you have the name wrong both times in your message:

    ect/network/interfaces - wrong - missing / at the beginning, and not ect

    /ect /network/interfaces - also wrong - not ect and remove the extra space

     

    The correct version is:

    sudo nano /etc/network/interfaces

     

    If all else fails, sometimes it is easier to take it in multiple small steps:

    1) cd /etc

    2) cd network

    3) sudo nano interfaces

     

    Make sure you don't get any errors after each step, and if possible, copy and paste what happens, or upload a photo of the screen. That will help us spot real issues instead of typos you may only be making when posting here.

     

    Hope this helps.

     

    Regards,

    Adam

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • rincewind1
    rincewind1 over 12 years ago in reply to webmanaus

    Thank you.

    However the line

    Sudo nano/ect/network/interfaces

    Returns message "command not found"

     

    Cd/ect

    Returns "no such file or directory"

     

    Cd network

    Returns "no such file or directory"

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to rincewind1

    However the line

    Sudo nano/ect/network/interfaces

    Returns message "command not found"

     

    Try sudo instead of Sudo.

    Try etc instead of ect.

    Try leaving a space after nano

     

    Cd/ect

    Returns "no such file or directory"

     

    Try cd instead of Cd.

    Try etc instead of ect.

    Try leaving a space after cd.

     

    Cd network

    Returns "no such file or directory"

     

    Try cd instead of Cd.

    You need to successfully do "cd /etc" before you can do "cd network".

     

    By the way, you aren't the first person to get etc and ect confused.

    It might be helpful to understand that etc (the correct spelling) is an abbreviation

    for the latin "et cetera" which means miscellaneous things, as opposed to ect

    which might be an abbreviation for ectomorph, which means skinny kid.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube