zhxt / imagebuilder

velvet os - simple script framework to build ubuntu 20.04 lts (focal), ubuntu 22.04 lts (jammy) and debian 11 (bullseye) bootable sd card images for some arm and intel devices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

velvet os - an introduction

kappa and juniper with velvet

this is a simple framework for building bootable sd card images for various (currently mostly arm based) small computer like devices. it is supposed to run natively, i.e. if you want to build an image for a 32bit arm system you should run it on a 32bit arm system and so on. i started it when i wanted to easily and reproducably build bootable sd card images for some arm devices for which there are no such images with recent distributions and linux kernels available or do not exist at all. i'm aware of the armbian (https://www.armbian.com/) framework, which has a similar goal and is much more advanced, but i wanted something simpler so that i can easier adjust it for prototyping and i wanted to build everything natively as i do not really have any strong intel machine for cross compiling. if anyone with amrbian knowledge and a proper build environment is interested to port over the patches etc. for the few systems not yet supported by armbian to it, that would be more than welcome.

please keep in mind that the intention of those images is to make it easier to get started on not too well supported systems or setups. they are not intended as a fully end user ready distribution - some fine tuning and adjustment will most probably be required still to make them fully working, but at least you do not have to think about how to get some device booting or where to get a working kernel from etc. - as such it should be a very good starting point for anyone with some (or more) linux experience and for anyone wanting to learn more about the system they are using.

the framework supports building debian and ubuntu images as they are very widely used linux distributions and they are very close to each other in the way they are designed and work (package mangement etc.). the chance that support for other linux distributions will be added is rather low as this would make things way more complicated and one of the basic ideas of this framework is to be small and simple while still being quite flexible. in case you are searching for something similar for arch or void linux (and debian as well), it might be a good idea to have a look at the cadmium project too: https://github.com/Maccraft123/Cadmium

the imagebuilder framework currently supports more than 30 different systems (which might support multiple separate devices each in many cases) and the level at which they are supported varies a bit among them, but for all of them at least some bootable images exist to get started to maybe improve them further. the systems with the most focus currently are most probably chromebooks (i.e. running a proper linux system instead of chromeos on them) as they are a perfect option to run linux on an arm soc based notebook at a very good price point and the odroid u/x series of sbc devices as there seem to be no other regularly maintained linux for them anymore otherwise.

for communication github issues should be used. before creating a new one, please check if there is maybe already another one regarding the topic or problem existing and when creating a new one it is very important to always include all the basic information required, like which hardware is used, which image is used, in case of problems: how exactly do they manifest (instead of just "does not work") and in which context do they appear. with all this please keep in mind that this is not a product, but a spare time project done and supported by volunters - so it might take time until there is a solution, answer or suggestion or there might be even none. there is one special category of issues so far which is dealing with the state of certain systems and they have subjects like "system status: chromebook_trogdor: coachz" - so it might be a good idea to search the github issues for such "system status" information for a certain system.

finally some notes about the name: the framework did not have any real name so far besides "imagebuilder", but as this is hard to find and not so easy to reference i have decided to give it some name, so it can be referenced easier than as "images built with the hexdump0815 imagebuilder framework" - lets call it "velvet os" from now on. the name comes from the fact, that i sometimes use self-adhesive velvet to cover the (sometimes heavily scratched) top of my chromebooks, which has the nice side effect to let all the marketing branding of the device disappear, making it a perfect velvet os device ... lets hope that using velvet os images one day will be an as pleasant experience as touching velvet :)

creating images

see scripts/readme.md as a start

more coming soon ...

using the images

simply write/flash (not just copy!) the images to an sd card - there is a lot of documentation about how to do this on the web. the images require an sd card of at least 8gb size (for the newer images even 4gb sould be enough) - more is no problem and can be made useable after the first boot of the image.

the images provided are ubuntu 20.04 lts (focal) with the xubuntu desktop environment. debian 11 (bullseye) with the xfce desktop environment will be added as soon as it gets officially released. they have a user named "linux" configured with the password "changeme" and sudo permission (use "sudo -i" to get root). the hostname is set to "changeme". they are assuming a us keyboard and are setup for english, so one should configure it as needed after the first boot - a good start might be:

  • locale: dpkg-reconfigure locales
  • timezone: dpkg-reconfigure tzdata
  • console keyboard (run this on the console if needed at all): dpkg-reconfigure keyboard-configuration
  • console (run this on the console if needed at all): dpkg-reconfigure console-setup

or even simpler, just use the various graphical settings tools installed.

some commands to set the keyboardmapping in an x terminal:

  • english: setxkbmap us
  • french: setxkbmap fr
  • german: setxkbmap de
  • italian: setxkbmap it
  • portuguese: setxkbmap pt
  • russian: setxkbmap ru
  • spanish: setxkbmap es
  • ...
  • onscreen keyboard: apt-get install matchbox-keyboard ; matchbox-keyboard alternatively: apt-get install onboard ; onboard
  • for console: loadkeys us (etc. like above)

to use all the space on your sd card, please run the following script as root after the first boot: "/scripts/extend-rootfs.sh"

more coming soon ...

system specific information

About

velvet os - simple script framework to build ubuntu 20.04 lts (focal), ubuntu 22.04 lts (jammy) and debian 11 (bullseye) bootable sd card images for some arm and intel devices


Languages

Language:Shell 93.6%Language:C 5.7%Language:Batchfile 0.7%