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 rpi-config (Clone of raspi-config) Base additions.
  • 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 10 replies
  • Subscribers 677 subscribers
  • Views 1850 views
  • Users 0 members are here
  • raspi-config
  • raspberry_pi
  • raspberrypi
  • rpi
Related

rpi-config (Clone of raspi-config) Base additions.

Former Member
Former Member over 13 years ago

Greetings All

 

My first post to this forum. Bet it will upset some. Please stick to the topic.

 

http://www.raspberrypi.org/phpBB3/viewtopic.php?f=63&t=18557

 

Please read this thread if you are interested in the reasons why I have added code to the original.

The push being to have it added to the official release by asb in Raspbian.

 

My comment. Removed insult aimed at Jamesh. Second thoughts say bad form not helping my cause. Not that they have any choice now.

 

On to the business at hand...

 

I am looking for people to firstly check and test my code as I am no expert and secondly make suggestions.

Finally post support in the thread given above as I have been banned for daring to relate my concerns.

Be careful how you state your opinion on the RPi forums. Banning people is not the best way to encourage robust discussion.

 

ftp://zlham.geek.nz/rpi/

 

I have added the following to the script.

 

Change root. Allow the setting of a root password.

Set static. Change between DHCP and a static ip address or vis versa.

Set dns. Change the dns server settings.

Set hosts. Change the hostname.

 

/etc/hosts settings are changed as is the norm when changing ip, dns and hostname.

 

I have removed overclocking as I feel this is not a base feature. It is an advanced feature that should require a new user to take steps to download a seperate script to set up this advanced feature.

 

Backup your /etc/network/interfaces. /etc/hosts, hostname and resolv.conf before testing.

The same warning as the original code. Heavily modified systems may not behave as expected as there is very little error checking.

I think I have set sane defaults. There is little need to reboot to test the code and keeping a backup makes it easy to set the machine back to standard.

 

I think this covers base configuration items not covered by asb.

It took me little more than a few hours over two days to add the extra code.

Given enough support I would be prepared to maintain the code however I really think the original author should pick up the ball.

Considering I am not going to tolerate the attitude I see on the RPi forum it is not likely that I will participate without a formal appology from jamesh in the thread (Yeah right).

One more time. I do not want to discuss the conduct of either side. Feel free to comment if you wish however it is unlikely I will respond on this level.

 

The primary goal is to ensure new users can start working with the RPi without DHCP by allowing a static IP to be set just like any other distribution (A generalization).

 

Dispite reasonably polite emails to asb and the forum admin no responses have been forthcoming. Probably par for the course.

Addressing the program name raspi-config change to rpi-config is also a matter for the author to consider.

 

 

Regards

Peter

PS It is easy enough to find my email address if you have a clue (zlham whois). Flames & sock puppets > /dev/null

  • Sign in to reply
  • Cancel
Parents
  • morgaine
    morgaine over 13 years ago

    My take on this issue is as follows:

     

    • Static IP provides a standalone configuration, and hence it is a necessary foundation for all networking.  After all, nothing else in the local network may be working at all, and you certainly can't rely on a DHCP server being present and configured correctly.

     

    • Dynamic IP is a more complex form of configuration and assumes that the local networking environment has already been set up with DHCP and is working properly.  If this is the case then adding a new node is transparent for the user, but if DHCP is not available then the user has no path forward other than static IP.

     

    Since both requirements and/or situations are common, they should both be configurable at installation time.  If it is possible to provide only one of these two, then it must be static IP, because that is foundational for IP networking and dynamic is not.

     

    [Dynamic IP is really just static IP config performed by a client-server pair on every boot or lease renewal.  Once DHCP has done its work, you just have static IP on your host until the next boot or as long as the lease lasts.  Clearly static IP is the foundation, and dynamic is layered on top of it.]

     

    On the educational side of the argument, DHCP hides how basic IP networking is configured, and hence its educational value is actually negative.

     

    Morgaine.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 13 years ago in reply to morgaine

    but if DHCP is not available then the user has no path forward other than static IP.

    I take slight issue with that, there's always RFC3927 - 169.254.x.x autoconfigured link-local addresses with mDNS and DNS-SD.

     

    Yes, that stuff makes me tear my hair out whenever I encounter it, but it is another option.

     

    Or try IPv6, fe80: link local addresses, Stateless Address Autoconfiguration, Router Advertisment and/or DHCPv6 combined with privacy addressing that changes your IP every so often.  Lots to learn from an educational perspective image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Former Member
    Former Member over 13 years ago in reply to morgaine

    but if DHCP is not available then the user has no path forward other than static IP.

    I take slight issue with that, there's always RFC3927 - 169.254.x.x autoconfigured link-local addresses with mDNS and DNS-SD.

     

    Yes, that stuff makes me tear my hair out whenever I encounter it, but it is another option.

     

    Or try IPv6, fe80: link local addresses, Stateless Address Autoconfiguration, Router Advertisment and/or DHCPv6 combined with privacy addressing that changes your IP every so often.  Lots to learn from an educational perspective image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
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 © 2026 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