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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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 Is there a way to customize the Raspbian OS
  • 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
  • State Suggested Answer
  • Replies 7 replies
  • Answers 4 answers
  • Subscribers 664 subscribers
  • Views 3085 views
  • Users 0 members are here
  • raspberry pi 4b
  • rasberry_pi_3_b_plus
  • raspberry_pi
Related

Is there a way to customize the Raspbian OS

movlbobl
movlbobl over 5 years ago

Is there a way I can customize the Raspbian Buster img File?

 

Here's what I want to customize:

1. For the first boot setup screen I want to only 9 specific countries along with 1 generic no country specific setting and the ability to add more countries if needed.

2. For those 9 countries I want 27 specific cities with the ability to add more if needed.

3. Set up specific Password Requirements for certain countries, i.e. Mexico needs 15 characters, France needs 11 characters and New Zealand only needs 6 characters.

4. Setting up IP addresses like IPv4, Gateway and netmask that can connect with other servers within a local network.

5. Customize packages on Raspian to add custom packages I do need and to take away packages I don't need i.e. Scratch.

6. Make my own software repository tree for future builds of the OS, for instance to build .iso and .img files.

7. Set Root and the Bootloader (if possible) passwords.

8. Set different accounts from the start.

 

My plan is to run this on a RaspberryPi 4, 1GB RAM and 4G RAM, I will also be comparing this by running the RaspberryPis with Fedora, and Chromium OS with the same qualifications.

 

I banned form the RaspberryPi forum for a month because I was being to confusing for them and kept insisting I didn't know what I was talking about.

  • Sign in to reply
  • Cancel
  • shabaz
    0 shabaz over 5 years ago

    Hi Bob,

     

    That's a sizeable list. From the way it is all framed, it appears that you're asking for how to build a new version of Raspbian with the differences you've listed. Anyone is free to build their own Linux image, but it's a full-time job for someone. Some businesses have a team of people that all they do is maintain such a thing.

    Anyway, if you wish to do this, it looks like the scripts are here, you'd need to modify these:

    https://github.com/RPi-Distro/pi-gen

     

    However what's the actual goal? And is the main objective above to simplify installation for an end user who will have the hardware and no software pre-installed on a micro SD card? What is the precise workflow for the end user?

    I ask, because there can be simpler ways. Since your end goal, and what you're trying to accomplish with the list above, and the workflow you're envisaging, isn't revealed, it's hard to advise much.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • clem57
    0 clem57 over 5 years ago

    My suggestion to you, learn python. This can script a large portion of your list. One example is passwords. Just frontend your normal passwd command and enforce your rules above.

    Clem

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 5 years ago in reply to clem57

    Then create an autoscript to invoke all of them...

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • aswinvenu
    0 aswinvenu over 5 years ago

    Hi Bob,

     

    This sounds like you almost wanted a customized OS (Operating System). My suggestion would be please don't waste time digging into Raspbian OS. Why don't you make your own Operating system. Sounds crazy!?? But there are tools to do this.

     

    Do you want to do this in the hard way ??? Please read Linux From scratch.Welcome to Linux From Scratch!

    The other way would be Yocto project https://www.yoctoproject.org/

     

    If you like the luxury of already existing Operating System. Please check susestudio from opensuse.https://studioexpress.opensuse.org/

     

    I haven't used suse studio myself. But you can do a lot of customization there.

     

    Hope this helps.

     

    Thanks and regards,

    Aswin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • colporteur
    0 colporteur over 5 years ago

    Your comment

    "I banned form the RaspberryPi forum for a month because I was being to confusing for them and kept insisting I didn't know what I was talking about."

    causes me some concern. The Raspberry Pi forum has been very accommodating, in my experience, why they elected to ban someone is not something I take lightly.

     

    It sounds like you have a direction you want an operating system to take and the support team for that operating system may not be as accommodating as you like. The suggestion of building your own is one solution. Unless you have a development team that has bought into your vision you may find the project beyond you capacity, meaning you are the only person supporting it.

     

    Your list of "I wants" seems to be pretty specific. I can see a support team rejecting the request.

     

    Can you share some of the insight you have developed into what your "I want" operating system objective is?

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • aswinvenu
    0 aswinvenu over 5 years ago

    Hi Bob,

    Some more suggestion from my side.

     

    Source code to Raspi-Config can be found here :

    https://github.com/RPi-Distro/raspi-config

    Check that your requirements 1-3 can be done by tweaking the code here.

     

    You can configure the dhcp to do any IPv4 settings.

    https://www.ionos.com/digitalguide/server/configuration/provide-raspberry-pi-with-a-static-ip-address/

     

    you can always add/remove PPAs from the existing /etc/apt/sources.list

    Note: Removing the PPA links may lead you to broken software dependencies. When you perform apt update you may cause errors.

     

    Regards,

    Aswin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • balearicdynamics
    0 balearicdynamics over 5 years ago

    Hello,

    IMHO, you mentioned the question in a way that the notable friends above mentioned immediately the Linux rebuild option. I have done this on other kinds of Linux platforms for embedded devices (as a job) in past, but this is a very complex work that also requiring a lot of testing to be sure you reach a stable version.

     

    But... I think that if we see things from a different point of view, there is a more light perspective that may be helpful in saving you time ad big efforts. Consider that most (or all, I am not sure) of the changes you need can be just obtained customizing a pilot standard Raspberry Buster setup. At least it is what I have done in many different cases.

     

    Focus on the changes that you need and see how to do them using the normal Linux tools starting from a standard Raspbian version.

    Create an image of the modified installation

    Use it for set up all the other Raspberry Pi you need just like using the standard Buster image you downloaded from the official site.

     

    In addition, if something should be custoimzed after the first boot, follow the suggestion of clem57 and write down a first boot script that self-delete itself after setting the needed changes.

     

    Enrico

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • 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