browser-linux icon indicating copy to clipboard operation
browser-linux copied to clipboard

Apply for Alpine Linux

Open qaqland opened this issue 2 years ago • 6 comments

Thank you for your work!

Alpine Linux is also small and a lot of people use it.

qaqland avatar Mar 14 '23 14:03 qaqland

Alpine Linux is currently a work in progress. The biggest issues is speed and size.

If you want alpine right now you can always create a chroot in the main image.

To start, download the mini root filesystem from the downloads page. After the download is complete you need to upload the file into browser linux. I would copy it into your home directory as it will upload to /home

After that is completed you need to decompress the image with tar and gz. You can do it will the following commands:

mkdir alpine
cp alpine.tar.gz alpine
cd alpine
gz -d alpine.tar.gz
tar -xf alpine.tar

After that its just a matter of chroot

If you have any ideas for how to package a alpine image please let me know

Darin755 avatar Mar 15 '23 00:03 Darin755

I'm sorry I don't know much about it.

Looking forward to your progress :D

qaqland avatar Mar 16 '23 14:03 qaqland

@Darin755 As far as I understand, this rootfs can be used as an initramfs, for example, as described here: https://gist.github.com/gdamjan/1f260b58eb9fb1ba62d2234958582405

I found one implementation (https://github.com/xming/alpine-v86), but it uses an old version. Most likely, the kernel without modules (CONFIG_MODULES=n) is used here, although I did not find the kernel config.

SuperMaxusa avatar Mar 20 '23 21:03 SuperMaxusa

Hello,

Thanks for your reply. I am currently working on a buildroot config that boots into a alpine chroot/container. I have made some progress but the hardest part is getting it to boot within 20 sec

Darin755 avatar Mar 21 '23 02:03 Darin755

Update: I've started work on this again and I am using docker to launch a alpine image. Docker isn't working in my buildroot but I think that's due to the custom kernel.

I think I might be close

Darin755 avatar Apr 25 '23 23:04 Darin755

Never mind, I kind if gave up. You can still get a alpine chroot by downloading the rootfs from the alpine website and then uploading it. You will need to decompress it and then setup the mount points. Once that's done you be able to chroot.

For networking you may need to set custom DNS.

Darin755 avatar Jan 29 '24 15:01 Darin755

I am closing this as not planned

Darin755 avatar Aug 16 '24 17:08 Darin755