-
Notifications
You must be signed in to change notification settings - Fork 64
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
creating custom os #55
Comments
Not sure if that is going to work with piserver. If you do not need multi-user support, want all your Pi's to be running independent (not the same OS image), and only want your Pi's to store their data at a central location, Berryboot's iSCSI support may be a better fit for you: https://www.berryterminal.com/doku.php/storing_your_files_on_a_synology_nas_using_iscsi == But for educational purposes, here are the instructions for creating a custom piserver image:
.tar.xz files are archives, a bit similar to .zip files. A standard Raspbian SD card has two partitions. A FAT partition with the boot files. The contents of that should end up in boot.tar.xz
|
Thanks for the info, you're right, this probably isn't the project for me, but this information is great and I appreciate it very much, thanks! |
This is failing as of now as pxz is not available on buster. |
I think there is a typo in the instructions. I believe the unmount instructions should be: Also I got the follow error message: I am using samba to connect to the RPi running PiServer to which 5 large drives are connected using a USB3 hub. The access to the 5 drives works perfectly on the RPi i'm using to build the image. I haven't yet tried to use the generated image on PiServer. |
This is the full list of error messages I get when running bsdtar on root:
|
Unix socket files cannot be in a .tar file. I don't think you really need to have the Samba SERVER stuff running on the CLIENTS. |
I got the same message about sockets. I may try creating the SD from scratch again, and stop just before I install samba. Hopefully that will solve the problem. I start from the RaspOS Lite and then run the following:
Do you see anything that could be an issue? I just prefer the xfce UI. |
Note that it are warnings that those files mentioned will not make it into the .tar So if it concerns software that is not essential for your needs, you can just ignore the warnings. |
Yeah, well the RPi does not start, but if I use one of the standard RaspOS images on the same RPi, it does start. |
If this is all you want to do, do not bother with custom images.
|
That is very cool!! Thank you. |
This works great, expect I get the error when I try to set the display manager to lightdm using the command dpkg-reconfigure lightdm. The image does start, but never completes. I just see a blinking cursor in the top left of the screen. I'm following these instructions: Install XFCE desktop on your Raspberry Pi
|
For lightdm you probably need to execute the following 2 commands that are normally done by convert script:
Not sure if anything extra is needed for XFCE. |
Ugh. I waited too long before I cloned the starting image, namely Raspberry Pi OS Lite, to something else before making changes. Of course I should have cloned it immediately, and then made changes to the clone. But I didn't. And now I get an error when I try to delete the OS from PiServer. The Clients are pointed to the Raspberry Pi OS image, so that isn't the issue. And I can't overwrite the OS by loading the original with the same name. And suggestions other than removing PiServer and reinstalling it? |
|
I feel like an idiot: I still had the shell for the Raspberry Pi OS Lite open while trying to delete it. Closing the sheel solved the issue. |
Update: I have been able to install XFCE successfully. Thank you very much for your help. Question: How do I enable SSH? However: I am struggling to get RDP working. I have created these images: XFCE Desktop - Base is named incorrectly. It is really Raspberry Pi OS Lite on which I have run update and upgrade. Just to be sure I wasn't doing anything stupid, I cloned Raspberry Pi OS to RPiOS RDP and installed xrdp. I couldn't login. |
SSH has the issue you need to create an unique host key first.
XRDP has the issue that it wants to write a log file on the read-only file system, and does not like that is not going to work.
(For any other issues, please create a new issue or ask on forum. |
Hello, I'm looking for guidance on creating custom versions of raspbian with piserver. I want to PXE boot my pi's fully configured, one as a pihole, one for FlightRadar24, etc. I'm a linux noob and struggle with CLI work and basic linux directory structures.
So far my understanding of the process is that I need to configure a pi how I want it, and then run one of the scripts in the/var/lib/piserver/scripts directory and point it at my boot and root.tar files and then specify an output image to be copied to and added to the piserver
Is that accurate? and if so, could someone please point me towards the correct script(I'm assuming convert.sh but am not 100%) and the locations of the boot and root.tar files? Thank you for this awesome project, it's something I've been looking to do for a long time and was very excited when I found it.
The text was updated successfully, but these errors were encountered: