site  contact  subhomenews

Puppy Linux version 8.0 released

April 06, 2019 — BarryK

Fantastic! I would like to congratulate Peter and Phil (peebee and 666philb in the Puppy Forum) --and everyone else involved-- for the release of Puppy 8.0 "BionicPup". Distrowatch annoncement here:

https://distrowatch.com/?newsid=10501

Project announcement here:

http://blog.puppylinux.com/bionicpup-32-bit-and-64-bit-released

img1

...great wallpaper!

This is great, as the last official release on Distrowatch was version 7.5 in December 2017.

Forum discussion for the 64-bit release, coordinated by 666philb:

http://murga-linux.com/puppy/viewtopic.php?t=114311

Forum discussion for the 32-bit release, coordinated by peebee:

http://murga-linux.com/puppy/viewtopic.php?t=113244 

Tags: linux

Notes for porting UltraSNS to Puppy Linux

February 21, 2019 — BarryK

Or some other Puppy-derivative. UltraSNS has debuted in the latest EasyOS, version 1.0.8, see post yesterday:

http://bkhome.org/news/201902/easyos-x8664-version-108-released.html

And a post about UltraSNS and minibase-network utilities:

http://bkhome.org/news/201902/ultrasns-based-on-minibase-utilities.html

Minibase, created by Alex Suykov, can be obtained from the project page and compiled, see post:

http://bkhome.org/news/201902/minibase-super-tiny-static-system.html

I have two PETs. The utilities are statically-linked and will work in any distribution (38KB, 10KB, 41KB):

http://distro.ibiblio.org/easyos/amd64/packages/pet/pet_packages-pyro/minibase-net-20190218-p1-amd64.pet

http://distro.ibiblio.org/easyos/amd64/packages/pet/pet_packages-pyro/minibase-net_DOC-20190218-p1-amd64.pet

http://distro.ibiblio.org/easyos/aarch64/packages/pet/pet_packages-pyro/minibase-net-20190218-p1-aarch64.pet

...notice the size!

In WoofE, the build system for EasyOS, in folder 'rootfs-skeleton', can be found the files for UltraSNS. The latest WoofE (94MB):

http://distro.ibiblio.org/easyos/project/woof/woof-project-20190221.tar.gz

In rootfs-skeleton/usr/local/UltraSNS are these new scripts:

usr/local/UltraSNS/rc.network
usr/local/UltraSNS/usns

Also new, are scripts in etc/net, that are called by the minibase daemons:

conf-cancel  conf-request  dhcp-gw   identify  mode-wifi
conf-renew   dhcp-dns      dhcp-ntp  mode-lan  wifi-wpa

In rootfs-skeleton, all of these scripts have been modified:

usr/local/apps/Connect/AppRun
usr/sbin/network_default_connect
usr/sbin/connectwizard
usr/sbin/networkdisconnect
usr/sbin/connectwizard_2nd

EasyOS specific, handling EasyContainers:

usr/local/easy_containers/stop-container
usr/local/easy_containers/ec-chroot

This is new:

sbin/dhcp-delayed

usr/local/defaultconnect now has this at first bootup (instead of "connectwizard"):

#!/bin/sh
exec usns

At bootup, etc/rc.d/rc.sysinit calls usr/sbin/network_default_connect, which reads 'defaultconnect' and as it contains "usns", calls usr/local/UltraSNS/rc.network, which launches the minibase daemons 'ifmon' and 'wsupp'.
From then on, network handling is automatic, though wifi will need a password first-time, by clicking on the "connect" icon on desktop, which launched the GUI, usr/local/UltraSNS/usns

The above should be enough info for porting.  One thing to look out for, make sure that 'dhcpcd' or 'udhcpc' are not run anywhere, as they will conflict with minibase's 'dhcp' DHCP client. 

Tags: linux

Minibase, super-tiny static system

February 04, 2019 — BarryK

Thanks to sc0ttman on the Puppy Forum who discovered this, see post:

http://murga-linux.com/puppy/viewtopic.php?t=115255

Here is the Minibase project page:

https://github.com/arsv/minibase

I compiled like this:

# ./configure
# make
# make install

...and it compiled in, well, it seemed like a few seconds!

Installation is into folder 'out'. The utilities are statically-linked ...and wow, they are small!

Minibase is a complete Linux system, and can be used with Buildroot to compile an X desktop. I downloaded a ready-made image from here:

https://github.com/arsv/minibase-br/

...file 'sys-1-plain.tar.xz' is only 17.7MB, what kind of desktop can that possibly be?

I expanded 'sys-1-plain.tar.gz' and inside is 'whole.img' which I wrote to a USB stick. It actually booted to a desktop, on my HP midi-tower PC, and I couldn't believe how fast -- under 5 seconds.

Nothing much on the desktop, just Fluxbox and urxvt. But hey, this is brilliant.

Xorg, fluxbox, urxvt etc., were compiled in Buildroot, using musl, and it should be possible to add more apps, such as a browser.

I have a particular fascination for minimalist systems like this. Also, I am interested in some of the utilities, for possible use in Easy. 

Tags: linux

Super Grub2 CD not so super

December 01, 2018 — BarryK

This looks interesting, detects the operating systems installed on a PC, creates a boot menu:

https://www.supergrubdisk.org/super-grub2-disk/

Downloaded version 2.02s10 hybrid iso, tried it on my "new" Compaq Presario...

Initial menu, chose "Detect and show boot methods"
...got blank screen, had to reboot.

Initial menu, chose "Enable all native disk drivers *experimental*"
...came back to initial menu, keyboard dead, had to press power button to reboot.

Initial menu, chose "Boot manually...", then "Operating systems"
...got blank screen, had to reboot.

Hmmm.  

Tags: linux

fbwhiptail, whiptail for the framebuffer

September 26, 2018 — BarryK

I have posted recently about tools to create GUIs that run on the Linux framebuffer:

http://bkhome.org/news/201808/gui-creation-for-the-linux-framebuffer.html

http://bkhome.org/news/201808/considering-ugfx.html

http://bkhome.org/news/201808/littlevgl-evaluation-part-3.html

Today, I was reading the latest blog post at the Purism site (the guys who are developing the Librem 5 phone):

https://puri.sm/posts/the-librem-key-makes-tamper-detection-easy/

Where they mentioned "fbwhiptail", which is whiptail modified to run on the Linux framebuffer. Whiptail is like 'dialog', a tool to popup GUI windows from shell scripts. They both create "text mode" GUIs, dialog uses 'ncurses' and whiptail uses 'newt'.

Interesting, fbwhiptail compiles to 'fbwhiptail' and 'gtkwhiptail', so will also work with cairo and gtk. Here is the project page:

https://source.puri.sm/coreboot/fbwhiptail/

The same developer also has it on github:

https://github.com/kakaroto/fbwhiptail

I have tested it... there is a lot of functionality missing, compared with whiptail.  Most of the dialogs are not yet implemented. I tested a simple "--msgbox" and "--yesno". There does not seem to be any automatic text wrap, the <height> and <width> parameters seem to do nothing, text-input only, my mouse did not work. There seems to be a fixed theme.

Conclusion: in it's current state, it probably suits their simple need, however, for me LittlevGL is way ahead -- just need to solve the non-functional evdev keyboard input.

EDIT 20180927:
Oh wow! I posted an "issue" to the fbwhiptail github page, and the developer, Youness, posted a very detailed reply:

https://github.com/kakaroto/fbwhiptail/issues/1

...yes, I see that fbwhiptail is tailored to their particular need. The extra info is good too, for anyone who might like to use it.

Tags: linux

Low-level container how-tos

September 25, 2018 — BarryK

I have accumulated some links with information about containers at a low-level. Some are very grass-roots, DIY, tutorials, some are simple implementations. These are in no particular order:

http://cesarvr.github.io/post/2018-05-22-create-containers/

https://blog.lizzie.io/linux-containers-in-500-loc.html

https://github.com/p8952/bocker

https://ericchiang.github.io/post/containers-from-scratch/

https://dev.to/napicellatwit/containers-from-scratch-in-18-lines-of-code-3pmn

https://www.brighttalk.com/webcast/15077/253233/containers-from-scratch

https://wvi.cz/diyC/

http://blog.z3bra.org/2016/03/hand-crafted-containers.html

https://github.com/arachsys/containers

http://doger.io/

https://github.com/ghedo/pflask

https://github.com/xemul/libct

https://github.com/subgraph/oz

The above are NOT about using Docker, LXC, LXD, or any of the mainstream container implementations! Also, I stayed away from implementions in languages other than C or shell script -- there are some sites with low-level code in Go for example.

Tags: linux

Linux containers in 580 lines of C

September 23, 2018 — BarryK

'contained' is an executable written in C, for chrooting into a filesystem, with maximum security:

https://blog.lizzie.io/linux-containers-in-500-loc.html

...as the author states, it did grow a bit beyond 500 lines! Here is the C code:

https://blog.lizzie.io/linux-containers-in-500-loc/contained.c

Using the 4.14.71 kernel, with cgroups support now enabled, I got 'contained' to work. Was able to "chroot" into a rootfs, and it is very locked down. Too locked down to actually do anything useful.

However, it is very educational to study. It has given me an introduction how cgroups can be used, and the intention is to apply cgroups to EasyContainers.


Tags: linux