Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change image creation towards CustomPiOS #543

Open
MaStr opened this issue May 23, 2020 · 11 comments
Open

Change image creation towards CustomPiOS #543

MaStr opened this issue May 23, 2020 · 11 comments

Comments

@MaStr
Copy link
Contributor

MaStr commented May 23, 2020

Hey,
recently, I stumbled again over your nice pimusicbox.
Unfortunately, I can't build the system like I want it to be because of the very old Raspbian. So my friend will receive "only" a vanilla pimusicbox.

Same like the last time I used this project, the build path of the image is using an already existing image to create v0.7. So, it is not totally clear what is needed and what not.

For PirateBox, I used my own set of script to build ArchLinux images, but that would be overkill to port an debian based distribution to ArchLinux.

But, I am using octoprint on another RPi, too. This is using octopi , which is a Raspbian based distribution. The image is created with CustomPiOS. This is a framework for repeatable builds.

I am wondering if it makes sense to put some work in there together with you guys, to change the build to a more modern Debian image? (Asking, because it won't make sense to work alone in a box for days/hours and then nobody wants to adapt this).

Best regards Matthias

@kingosticks
Copy link
Member

kingosticks commented May 23, 2020

Hi Matthias,

The release is horribly out of date, as you've been too polite to say. I've pretty much stopped maintaining it as I stopped using it so it's not in a good way these days. Arguably I should have made this clearer but it still seems to be useful for some people so I've left things how they are. I would like to remedy the poor state and I'd be happy to almost start-over rather than try and work out what we still need - we are of course two releases behind now and many things have moved on considerably. I'd welcome anyone who has some experience and was interested in helping with an update. I spent some time looking at CustomPiOS before and I thought it looked quite complicated but I will take another look. I also didnt want to restrict things to Raspbian so I've also thought the updated version would be based on regular Deb packages. Some people don't want the whole system so a scheme that allowed people to pick and choose would be nice.

@MaStr
Copy link
Contributor Author

MaStr commented May 23, 2020

Hi,
thank you for your replying so quickly. I noticed the state of the project based on the issues ;-)
In fact, the old distribution is one of the reasons for like 50% of the newer issues 👎

My major concern in porting the current repository into is, that there are a collection of etc configuration-content.. and it is hard to understand on a first shot what is intended to be changed or what is only default configuration.

I understand you would like to move forward toward a "simple" .deb package. Before you can go that route, you need to get all the stuff sorted.

Beside of the configuration, the other things are the distribution changes... like "do we still monit" or is systemd enough .. cough cough cough (I like monit).

I just started to throw the tings together for CustomPiOS, it takes some time to understand.. but using the octopi repository as a template/help/cheat sheet .. seems to help (nothing build yet, tbh).

Some people don't want the whole system so a scheme that allowed people to pick and choose would be nice.

Oh, I feel that. TBH: I ignore it. If you don't you end up like PirateBox: having all custom configuration in /opt/myproject . In your case, you can commit yourself and stay at the point of "being a special purpose image".
In fact, I can feel totally the pain of not using my board, like OrangePi. As far as I understand the customPiOS, you have a schema which you can use on a clean ubuntu or armbian, too. So, that should help. Another point is, that after "documenting" the installation process in a new build pipeline, you have a first step to a general installation instruction.

edit: my personal problem is, that I can't find a full list of changes / features which you provide. So, where to start with a new adaption?!

best regards Matthias

@satzg
Copy link

satzg commented May 23, 2020 via email

@kingosticks
Copy link
Member

I moved and changed my media setup. I do still have a use for a system like pimusicbox but I've spent the time elsewhere.

I think I'd be one of the people that would value the pick-and-mix option but it does really multiply out the support effort and that's something I was, at times, spending far too much time on, and at times it wasn't very interesting for me personally

PiMuiscbox was aimed at people who didn't want / know how to customise a Raspbian system, maybe that's its niche and that should still be the focus. Problem is, there's always people who want something slightly different. I don't enjoy walking people through the hacks they need to customise pimusicbox because it's so inflexible.

@MaStr
Copy link
Contributor Author

MaStr commented May 28, 2020

So basically, I got a working setup for creating an image.
I'll dig further in my spare freetime 👍

@kingosticks
Copy link
Member

Out of curiosity can I see how simple it is? I meant to take a look at the example you gave with octopi but it's still on my list of things to do.

@MaStr
Copy link
Contributor Author

MaStr commented May 28, 2020

clarification to my post from yesterday: I got the setup working for creating an image. Like doing a "hello world" program (but creating an image is a bit more then just a compile)

https://github.com/MaStr/pimusicbox_CustomPiOS

It is an example, the path of the CustomPiOS in custompios_path is absolute to my homedirectory.

Prerequiste:

  • docker
  • docker-compose

You need to do the following:

Currently the step after installing packages is failing. I can't see the error message, because the terminal is bogus after manually confirming a message from "'samba'" and a license confirm of '"firmware-ipw2x00'". I guess "pip" is missing.

The things you do inside the image is configured in : src/modules/pimusicbox/start_chroot_script

Configuration is done with shell variables, which are sourced from src/config

Modules caches for apt and other things are done automatigacally by the framework.

@gvidasdj
Copy link

Is project still alive?

@MaStr
Copy link
Contributor Author

MaStr commented Jun 14, 2020

Explain "project"?

@scls19fr
Copy link

scls19fr commented Dec 1, 2020

An (other) interesting approach which could be achieved by people with docker-compose skills could be to create a distribution which could be installed using http://balena.io/cloud
Some examples https://hub.balena.io/

@guysoft
Copy link

guysoft commented Mar 17, 2022

Hey, I just came across this thread. If you need help to figure out how to make CustomPiOS builds I can answer questions :)
It looks like @MaStr 's build is on the right track.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants