Posts
4661
Following
319
Followers
484
Linux kernel hacker and maintainer etc.

OpenPGP: 3AB05486C7752FE1

Jarkko Sakkinen

Edited 1 year ago

After reading #Ueber’s post about their use of #Zig, I tried it to random C and C++ projects:

export CC="zig cc"
export CXX="zig c++"
make

At least for relatively small projects such as nnn this seems to result working results. Still quite impressive. Next iteration would to replace Makefile with build.rs.

Also one tool that I like, ncdu, has successfully executed such conversion: https://dev.yorhel.nl/ncdu

I think I’ll try Linux with tinyconfig next by using this hacky script as basis next:

#!/usr/bin/env bash

set -e

make defconfig
scripts/config --set-str CONFIG_INITRAMFS_SOURCE "initramfs.txt"
yes '' | make oldconfig

cat > initramfs.txt << EOF
dir /dev 755 0 0
nod /dev/console 644 0 0 c 5 1
nod /dev/loop0 644 0 0 b 7 0
dir /bin 755 1000 1000
slink /bin/sh busybox 777 0 0
file /bin/busybox initramfs/busybox 755 0 0
dir /proc 755 0 0
dir /sys 755 0 0
dir /mnt 755 0 0
file /init initramfs/init.sh 755 0 0
EOF

mkdir initramfs

curl -sSf https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/busybox-static-1.36.1-r25.apk | tar zx --strip-components 1
cp busybox.static initramfs/busybox

cat > initramfs/init.sh << EOF
#!/bin/sh
mount -t proc none /proc
mount -t sysfs none /sys
sh
EOF

It is from my old’ish post: https://social.kernel.org/notice/AgzHqrYFGplZuYr3gG

0
0
0
@jwz ah ok u would probably know i guess :-) thanks for the rectification!
1
0
0

PipeWire 1.2 Released With Async Processing, Explicit Sync & Other Features

PipeWire 1.2 was christened today as the latest major feature update to this solution common to the modern Linux desktop for managing audio/video streams...
https://www.phoronix.com/news/PipeWire-1.2-Released

0
2
1

Jarkko Sakkinen

another classic piece of software with *uncluttered* Tk GUI: #gitk :-) #git
0
0
0

Jarkko Sakkinen

Edited 1 year ago
@gnubyte @pid_eins It's actually pretty good. I've tried it for my test VM's running archlinux while testing some kernel patch sets. My Fedora 40 host installation does not have it yet (at version 255).

In addition, it's a pretty nice stick for knocking the ice when testing various configurations related to polkit and PAM.

I've only recently moved my kernel QA from dusty old busybox to systemd (because I noticed that in some kernel features I was lagging over two years of user space progress), and it is definitely one of the more useful features of systemd for my work.

You can also pretty much use anything you want in the foreseeable future. In the end of the day, all of these are roughly front-ends configuring privileged access based on PAM, PolKit, MAC and DAC in varying levels of detail. There's also some other similar tools such as "really".
0
0
0

Jarkko Sakkinen

#Python #IDLE is still rockin' :-) Always have it open as my calculator (and doing binary analysis and whatnot).
0
2
1
@chexum ... and cannot really get more trustworthy than this: self-compiled binary from Affero GPL source 🐭
0
0
1
@chexum yea very possible! thanks for insight.

was not something i was suspicious, just was wondering why is it required :-) does wayland still use xscreensaver? my desktop knowledge is lacking..
1
0
1

Jarkko Sakkinen

Edited 1 year ago
rpm -qpR signal-desktop-7.13.0.aarch64.rpm 
/bin/sh
/bin/sh
at-spi2-core
gtk3
libXScrnSaver
libXtst
libnotify
libuuid
nss
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1
xdg-utils

I don’t get the #xscreensaver dependency that #Signal has…

2
0
0
@liw yeah i thought first thought that it was a cheap set of random tools either from clas ohlson or discount basket of lidl ;-)
0
0
1
@popey [and MacBook Pro seeing earlier pic, it has been *only* for calling meetings, it is from my current workplace]
0
0
0
@popey yep, my mac mini has been 90% brick if i don't use a DAW ;-) absolutely hate writing a single line of code in that environment... and VM does not compare to a host system really...
1
0
1
@ikkeT joo siis mulla on macOS vaan musahommia varten käytössä, tietty jää :-) ei macOS ole kelvollinen koodaamiseen millään tasolla. oon vaan odottanut et toi tuotteistuu tarpeeksi et voi hypätä vmwaresta...
0
0
1

Jarkko Sakkinen

Edited 1 year ago
@ikkeT thanks yleensä vaan noi no starchin kirjat on hyvää luettavaa, paras kustantaja. eli tosta käsitteet ja sitten ehkä podman in action :-) ne ikäänkuin lukee huvikseen...
0
0
1
@ikkeT joo pistin päivityksen kirjanmerkkeihin jos tulee joskus tarvetta, kaikki vinkit otetaan aina kiitollisena vastaan, kun ei tiedä koskaan :-) distrobox oli tuttu, mutta toolbx ei.
0
0
0

Jarkko Sakkinen

Edited 1 year ago
@ikkeT mä haluisin itseasiassa oppia kunnolla quadletit ihan raaka-podmanilla. Parempi investointi pidemmän päälle. tilasin sitä varten ihan kirjankin: "DevOps for the Desperate" ;-)
https://nostarch.com/devops-desperate
0
0
1

Jarkko Sakkinen

Edited 1 year ago

Just an observation but if considering testing ARM64-Linux, Apple is actually a “budget choice” compared to:

  1. Low-volume Linux ARM64 laptops (few available).
  2. ARM64 server racks.

Especially if you take -1 gen Apple hardware, which you can get for bargain prices pre/post the next WWDC ;-) The laptop seen in previous screenshot is M1 Pro, and it is quite nice and fast , and that is even -2 gen.

#arm64 #linux #hardware

1
3
4
aika harvoin teen muuta "käyttäjätilan" (toi lienee oikea suomennos) koodia kuin jotain joka suoraan tai epäsuoraan liittyy kernelimuutosten testaukseen :-) sen takia qemu ja libvirt hoitaa homman aika paljon paremmin kuin kontit...
0
0
1

Jarkko Sakkinen

Edited 1 year ago
@ikkeT tässä on oleellista on https://asahilinux.org/ sinänsä mulle käy mikä vaan, kunhan on systemd eikä ubuntu :-)

applehan on deskaritason (ja siitä ylöspäin) arm64-raudassa budjettivaihtoehto. muut vaihtoehdot on ylihintaiset linux-laptop-valmistajien tuotteet tai monen tonnin serveriräkki :-)
0
0
0
Show older