Home
sysctlmibinfo2 2.0.1
sysctlmibinfo2 version 2.0.1 is out!
The sysctlmibinfo2 library provides an API to explore the FreeBSD sysctl MIB and to get the properties of an object, so it is useful to handle an object correctly or/and to build a sysctl-like utility; it is used by sysctlview, nsysctl, sysctl-mib-html and mixertui.
Read more
sysctlview 2.1
sysctlview 2.1 is out!
sysctlview is a graphical sysctl MIB explorer for FreeBSD, each object represents a parameter of the kernel, sysctlview can show the properties of an object and get or set its value.
Read more
nsysctl 2.0
nsysctl version 2.0 is out!
The nsysctl utility can get or set the state of the FreeBSD kernel at runtime. The system exposes the available parameters as objects of a “Management Information Base” (MIB), nsysctl can explore the MIB, print the properties of an object, get or set its value and show the output in human and machine readable formats.
Read more
Tutorial nsysctl version 2
The nsysctl utility can get or set the state of the FreeBSD kernel at runtime. The system exposes the available parameters as objects of a “Management Information Base” (MIB), nsysctl can explore the MIB, print the properties of an object, get or set its value and show the output in human and machine readable formats.
Read more
Manual nsysctl version 2
The nsysctl utility can get or set the FreeBSD kernel state at runtime, this is the manual; a tutorial is available, too.
Read more
sysctlbyname-improved 20210223
sysctlbyname-improved version 20210223 is out!
The FreeBSD Operating System maintains a Management Information Base (“MIB”) where an object represents a parameter of the system, the sysctl system call explores the MIB to find an object by its Object Identifier (“OID”) to get or set the value of the parameter.
Read more
sysctlinfo 20210222
sysctlinfo version 20210222 is out!
The FreeBSD kernel maintains a Management Information Base (“MIB”) where an object represents a parameter of the system. The sysctl system call explores the MIB to find an object by its OID then calls its handler to get or set the value of the parameter. It is often necessary to find an object not to call its handler but to get its info (description, type, OID by name, next object, and so on).
Read more
Restore a FreeBSD Command
Some time ago I a found an interesting question about FreeBSD on https://www.reddit.com/r/freebsd/: “How can I restore the ls command?”
The comments gave several solutions: copy/use the statically linked ‘ls’ in the /rescue directory, download base.txz from ftp.freebsd.org for extracting ‘ls’, install the port of ‘GNU ls’, and so on.
Read more
Adding comments to Hakyll
This blog is a static site generated by Hakyll and is hosted on GitLab Pages, so it cannot rely on any dynamic server-side processing support to store comments. Usually a static site addresses this problem by using an external service, I chose utteranc.es, it is opensource, fast and easy to customize, other features are described later.
Read more
FreeBSD System Calls Table
A system call is the “tool” used by a software in the userspace to request a “service” to the kernel, the FreeBSD Operating System provides over 400 system calls. They are defined in syscalls.master, this file is processed by makesyscalls.sh or makesyscalls.lua to create init_sysent.c, syscall.h, and so on.
Read more
FreeBSD second status report 2020
The second FreeBSD quarterly status report 2020 is online!
My contribution is MixerTUI, a volume mixer with a Terminal User Interface built on the FreeBSD sound system: https://www.freebsd.org/status/report-2020-04-2020-06.html#MixerTUI
Disable sysctl ANYBODY flag
The FreeBSD Operating System provides the sysctl system call and a wrapper utility to get or set the state of the kernel at run time (the handbook shows some useful example). Every user can get the value of a parameter:
% sysctl kern.maxprocperuid kern.maxprocperuid: 6656
but, only the root user can usually set a value.
Read more
BSDCan 2020
BSDCan is an annual technical conference for people working on and with 4.4BSD based operating systems and related projects.
I had the honor of being a speaker this year, my talk was: “sysctlinfo: a new interface to visit the FreeBSD sysctl MIB and to pass the object info to userland” (video, slides and paper are available online).
MixerTUI 1.1
MixerTUI 1.1 is out!
MixerTUI is an audio mixer with a Terminal User Interface for FreeBSD, the new features of this version are: -d -h -m -v options and TAB to switch view mode.
Read more
FreeBSD first status report 2020
The first FreeBSD quarterly status report 2020 is online!
My contribution is sysctlmibinfo2, a library to explore the sysctl MIB and to get the properties of an object: https://www.freebsd.org/status/report-2020-01-2020-03.html#sysctlmibinfo2-API