Minimal text-only live build?

New to Puppy and have questions? Start here

Moderator: Forum moderators

Post Reply
eml-deb
Posts: 5
Joined: Sat Oct 19, 2024 2:40 pm
Has thanked: 2 times

Minimal text-only live build?

Post by eml-deb »

I'm just about to try a Woof-CE build, but I'd like to make sure that I'm not re-inventing the wheel first.

Is there already a recipe for a text-only live build? All I need is a boot to a shell, with no graphics. I don't care which distro, or whether it's 32- or 64-bit. It needs to have a UEFI boot (I think I'm right in saying that some motherboards no longer support legacy boot). This will be used to install another image from the net, so it basically just needs wget/gunzip/dd, and some disk stuff (fdisk/lsblk/etc). Thanks.

eml-deb
Posts: 5
Joined: Sat Oct 19, 2024 2:40 pm
Has thanked: 2 times

Re: Minimal text-only live build?

Post by eml-deb »

And a question: if I'm building locally (I don't want to use github) do I need a real partition to do the build in, or can I just build in a directory?

User avatar
rockedge
Site Admin
Posts: 6507
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2716 times
Been thanked: 2604 times
Contact:

Re: Minimal text-only live build?

Post by rockedge »

eml-deb wrote: Sat Oct 19, 2024 3:00 pm

And a question: if I'm building locally (I don't want to use github) do I need a real partition to do the build in, or can I just build in a directory?

Yes, you should be able to do it in a directory.

There might be a recipe for a console only version. Which type of system are you planning on generating?

eml-deb
Posts: 5
Joined: Sat Oct 19, 2024 2:40 pm
Has thanked: 2 times

Re: Minimal text-only live build?

Post by eml-deb »

Thanks - I'll give a directory build a go. The image can be anything at all, as long as it can fetch a remote image and dd it to a disk. It would be nice if it was a recent Debian, but it doesn't really matter.

User avatar
peebee
Posts: 1628
Joined: Mon Jul 13, 2020 10:54 am
Location: Worcestershire, UK
Has thanked: 157 times
Been thanked: 713 times
Contact:

Re: Minimal text-only live build?

Post by peebee »

Woof-CE works at the package level - not at the "image" level..... Woof-CE builds the .sfs components of a "frugal install" and an .iso.....

If you want 64-bit build maybe start with:
https://github.com/puppylinux-woof-CE/w ... bookworm64

and cut it down to your requirements:
PKGS_SPECS_TABLE in:
https://github.com/puppylinux-woof-CE/w ... n-bookworm

PETBUILDS in:
https://github.com/puppylinux-woof-CE/w ... build.conf

Builder of LxPups, SPups, UPup32s, VoidPups; LXDE, LXQt, Xfce addons; Chromium, Firefox etc. sfs; & Kernels

williwaw
Posts: 1914
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 169 times
Been thanked: 357 times

Re: Minimal text-only live build?

Post by williwaw »

eml-deb wrote: Sat Oct 19, 2024 3:56 pm

Thanks - I'll give a directory build a go. The image can be anything at all, as long as it can fetch a remote image and dd it to a disk. It would be nice if it was a recent Debian, but it doesn't really matter.

most puppys are built with configurations that are not that friendly for use at the console, and not being familer with woof-ce, I cannot advise how to build for an optomized console runlevel.

hope you can share your results and/or recipe should you choose bookworm

hikohan
Posts: 16
Joined: Wed Mar 13, 2024 12:08 am
Has thanked: 1 time
Been thanked: 4 times

Re: Minimal text-only live build?

Post by hikohan »

MOST Puppy Linux support text mode,

Bootup with pfix=nox in kernel option.

Zimpler
Posts: 10
Joined: Thu Oct 24, 2024 9:23 pm
Has thanked: 16 times
Been thanked: 2 times

Re: Minimal text-only live build?

Post by Zimpler »

Just a side note - if your text in that mode is really small, make it super nice if running bookwormpup via apt with these two packages:

fonts-terminus
console-setup

run:
dpkg-reconfigure console-setup

For my usage, and especially because I like larger fonts at the cli, (and even in VT's) in the menu I select these three:

UTF-8
Guess Optimal Character Set
TerminusBold 16x32

dimkr
Posts: 2407
Joined: Wed Dec 30, 2020 6:14 pm
Has thanked: 53 times
Been thanked: 1191 times

Re: Minimal text-only live build?

Post by dimkr »

It should be very easy to build a text-only "Puppy" using https://github.com/vanilla-dpup/woof-CE. If follow the instructions but first delete from this line to this line plus remove all graphical applications from here, what's left is a text-only distro.

If you want something stable and very similar to today's Puppy, then this is not a good option. Everything is in development and it uses Debian testing packages.

eml-deb
Posts: 5
Joined: Sat Oct 19, 2024 2:40 pm
Has thanked: 2 times

Re: Minimal text-only live build?

Post by eml-deb »

Sorry, been trying to make a living for the past couple of weeks, but back on the job now.

I've just tried dimkr's instructions (thanks) for vanilla-dpup, if only because they seem comprehensive, and I have to start somewhere.

However, I'm not actually running on Puppy Linux (and I'm not using Github). I think (correct me if I'm wrong) that I can run woof-CE from any suitable environment, and I'd like to give that a go. So, I've spun up a Ubuntu 24.01 VM, and cloned vanilla-dpup/woof-CE.

I don't really need to build a kernel, but I'd like to get the procedure working. The kernel build fails because it can't find bc, even though bc is installed. After some thought it seems to me that the Kbuild makefile must be running in a chroot jail, with no /usr/bin/bc.

Is this correct? If the kernel build is running under chroot, what tools are actually in the jail, and how did they get there? Is there an easy way to run 'bare', since I'm in a VM anyway, and there's nothing to break? Thanks.

dimkr
Posts: 2407
Joined: Wed Dec 30, 2020 6:14 pm
Has thanked: 53 times
Been thanked: 1191 times

Re: Minimal text-only live build?

Post by dimkr »

eml-deb wrote: Sun Nov 03, 2024 8:42 pm

the kernel build fails because it can't find bc, even though bc is installed.

My woof-CE fork has only one dependency (debootstrap) and everything else, including the kernel build process, is done inside a chroot environment.

The build should succeed as long as the package list contains everything needed to build the kernel. It doesn't matter if you don't have bc on the host OS, as long as the list of packages to include in the build contains bc.

eml-deb
Posts: 5
Joined: Sat Oct 19, 2024 2:40 pm
Has thanked: 2 times

Re: Minimal text-only live build?

Post by eml-deb »

Thanks - that was it. I've added bc at line 189 in the trixie deps file you referenced (it's needed to create include/generated/timeconst.h; see the Kbuild file). I've left the build running - I'm guessing it'll take a couple of hours.

The 1download step produces an error:

/usr/sbin/mkinitramfs: 122: cannot open /sys/module/firmware_class/parameters/path: No such file

however, I don't think this matters, as it's in the Jenkins log for a recent Debian build.

Post Reply

Return to “Beginners Help”