EditorsAbout the SiteComes vs. MicrosoftUsing This Web SiteSite ArchivesCredibility IndexOOXMLOpenDocumentPatentsNovellNews DigestSite NewsRSS


The Computer Anybody Can Edit

Posted in FSF, GNU/Linux at 7:34 am by Guest Editorial Team

2020 figosdev


Sound board
Chapter 10: The Computer Anybody Can Edit

Summary: “Without rebuilding and recompiling all of the packages on a large distribution, it is possible to “remaster” an ISO and get a different system — even before you install it.”

The goal of Free Software is for all software to be Free as in Freedom — for you to be free to Use, Study, Change and Share the software.

Editing Wikipedia is as simple as clicking Edit and changing the text.

“Without rebuilding and recompiling all of the packages on a large distribution, it is possible to “remaster” an ISO and get a different system — even before you install it.”Installing a different operating system is sometimes as simple as downloading a file, writing it to a CD, DVD or USB, booting the computer with that and then using it to write the same to the computer itself.

Ideally, changing that download would be as easy to edit as Wikipedia.

Some will argue that it already is that easy, but that isn’t entirely true. While I don’t believe that you (or by extension, anybody else) are obligated to work with other people on a project, ideally we would facilitate both working on projects as groups or as individuals, at their option.

Besides, just because what I’m talking about is partially implemented, doesn’t mean you can just download Debian for example, click “Edit” and have a new bootable ISO.

“You wouldn’t want to remaster and install an ISO just to add leafpad to your system, of course.”The ISO is not the only way to install GNU/Linux, but it is the way to get it onto a CD or DVD that you can use to do installation. Without rebuilding and recompiling all of the packages on a large distribution, it is possible to “remaster” an ISO and get a different system — even before you install it.

“To edit Wikipedia, not only do you have to get past a lot of politics to create edits, you need to learn the code — the wiki syntax in particular.”Distros conventionally arrange software into “packages” — a package is a group of files, and installing software in a modular way typically pulls in a handful of support packages which are needed to make the software work. For example, to install Leafpad in Debian you would just say:

    sudo apt-get install leafpad

Why are there three commands instead of one? Let’s look at the way this works:

“sudo” – this lets you run things that need root/administrator privileges from a user-level prompt. Typically it will ask for a root password when you run it.

“apt-get” – this is the actual package manager command. It tells the computer what you want to install.

“install” – this is a superfluous “parameter” or option for the apt-get command. If there were a command called apt-get-install (or just “install”) then you wouldn’t need this; the only reason you need it is because that’s how the apt-get authors designed it.

There are good arguments to be made for not calling a command something as generic as “install”, but it would be ideal if the command were apt-install or aptinstall rather than apt-get install. Obviously, this is a quibble. But apt-get install is the most common usage of apt that most people know.

“leafpad” – while this is the name of the program you wanted, specifically it is the name of the package you want to download and install to the operating system.

You wouldn’t want to remaster and install an ISO just to add leafpad to your system, of course. You want the option of installing new programs to an already-installed OS. But you you don’t just want the freedom to use, study, change and share individual programs. Ideally, you would be able to do the same thing with distros. Technically this is possible, but what it isn’t is easy.

“If you don’t like a change it makes, you can just remove those lines. Editing an operating system is like editing a wiki!”To edit Wikipedia, not only do you have to get past a lot of politics to create edits, you need to learn the code — the wiki syntax in particular. Wiki syntax was originally created to make it easier to edit the HTML code in Web pages.

Instead of 4 angle brackets, quotes and repeating the name of the closing tag with a /, you can just say [[article name]] to create a link to another page for example. For a single link these are small savings, but for editing an encyclopedia the difference in convenience and readability is substantial.

It would be cool if you could simply open a file, change a few things you wanted to be different in your GNU/Linux distro, and run a command to create a different ISO. Existing remastering tools tend to fall into two categories: serious developer tools that can do nearly anything, and toy remastering utilities that give you a taste of real power, but make it tedious (and manual) to do lots of work.

Distro-libre was my own effort to make toys that can do anything. I started by creating a toy programming language, with fewer than 100 commands. While this language is very simple, it translates automatically to Python code that you can run on almost any GNU/Linux system.

The language can also run shell code, so I had it call code to open an ISO, decompress the filesystem, make changes and zip it back up. Syslinux has a tool called isohybrid that turns your bootable ISO into one you can write to a USB with a single command: dd if=name-of-iso of=/dev/sdx, where sdx is the device you are writing to. Lots of distros offer hybrid ISOs that can be written to USB, but distro-libre runs isohybrid for you.

The goal here was to make the ISO itself optional. An ISO is a large file — sometimes more than 1 GB (that’s a lot for an amateur to host — Devuan for example, doesn’t even archive its older versions). With distro-libre, instead of making a few changes to an ISO and then uploading and hosting a gigabyte or half of one for people to download, you can simply download a text file written in a wiki-like programming language and run THAT instead.

What this accomplishes is that if you are remastering say, Debian 9 — it can download the Debian 9 ISO, automatically open / decompress / change / compress / write the ISO / hybridise it and spit it out into a new ISO, all automatically.

It is automatic, though you are in complete control of it — because it is a single file that has one or a few lines for every single change.

“After creating my own ISO based more exclusively on Refracta, I set out to remaster more distros, and used Distro-libre to remove systemd from both Trisquel 8 and Debian 9 — to show it could be done by an automatic remastering tool.”If you don’t like a change it makes, you can just remove those lines. Editing an operating system is like editing a wiki!

There are a few things to note about this system — one is that I never wanted the job of remastering distros. I was hoping Debian would always be true enough to itself and to free software to take care of that for us. I only started remastering after Debian and Devuan failed to be projects I could rely on, and I never thought Debian would become unreliable or corrupt as a project.

I didn’t even set out to remaster distros, I was writing a toy/demo program (it’s the truth) to analyse the contents of ISO files. Eventually I realised how close it was to a remastering program and I added the features needed to make it one.

My first distro was created with my own programming language — one of the drawbacks of most (not all) remastering programs is they are specific to the distro family they are created for. Instead of a family-specific remaster tool, I wanted something that could (in theory, and hopefully in practice) remaster any distro. I adapted it to remaster Puppy, Refracta, Debian, Trisquel, Void, Tiny Core and others.

Once I was able to remaster, I set out to mix two distributions into a single ISO — Puppy Linux and Refracta. I still didn’t plan on more than experimenting with mixing ISOs together.

After creating my own ISO based more exclusively on Refracta, I set out to remaster more distros, and used Distro-libre to remove systemd from both Trisquel 8 and Debian 9 — to show it could be done by an automatic remastering tool.

Although I wasn’t sure of this at first, I didn’t create the first automatic remaster tool for the purpose of making a new distro from an existing one — OLPC has created a similar tool to make an OLPC software platform from Ubuntu

To give you an idea of how this works in practice, an author can take some code that is designed to add or remove Leafpad to an existing iso, and put some code around it like this:

    function add_leafpad



The “function” and “next” commands mark the start and end of the section of code that install leafpad. So you can have one or several lines of code there, then you can have another section of code (say at the bottom) which says things like:

    now add_leafpad
    now remove_systemd
    now add_sysvinit
    now delete_icons # saves space!
    now remove_langsupport
    now add_en_gb

The “now” command isn’t a command, it is actually a variable name. If you prefer, you could just use a single letter, like p:

    p add_leafpad
    p remove_systemd
    p add_sysvinit
    p delete_icons # saves space!
    p remove_langsupport
    p add_en_gb

Fig (the language this is written in) is a simple, educational general-purpose language. Suppose you don’t want distro-libre to be a bunch of functions, you would rather turn fig into a language designed specifically for writing remastering scripts. I support this! Fig is language implemented in Python (it also works in PyPy) and it translates fig code to Python. Adding functions is easier than most language (I’ve modified far more complicated ones)

I started calling the collection of remaster routines in my remaster script “distro-libre” because I thought it would be ideal if we used it to make fully-free versions of EVERY DISTRO.

Since there are only hundreds, and many are ones that people don’t care about at all, and making one work with distro-libre (it usually took a day or two, maybe a few days to work distro-libre into something that could remaster a new type of distro) gives you access to several others in the same family-

I figured instead of working so hard to make a few “fully free” distros we could just do as many as people cared about. The one thing they would lack is a libre kernel, and if people cared enough to remove the non-free software from every distro, we could probably get enough people interested in replacing the kernel as well.

So what happened? A few things. Unsurprisingly, I didn’t find enough people interested in making this happen. One of the Devuan maintainers actually attacked me for my idea of automated remaster scripts, and it’s very difficult to get any sort of idea going within the Devuan project, their wagons are just as circled as Debian’s are.

I do think Denis Roio, the leader of Devuan (as well as Dyne.org) is a good guy, I even considered him as someone who could take over for rms someday. But the project itself has a number of problems that I doubt they will ever fix. Dyne is probably still the sort of organisation I would be willing to give money to, but Dyne:bolic (which Roio created) was a better project than Devuan in many ways.

Finding a community interested in distro-libre isn’t really even the biggest problem though. The biggest problem is the direction GNU/Linux itself is headed in, and that’s just one more reason why Hyperbola is setting such a great example for all other free software distros.

This chapter will stop here, though I want to mention that there are two things these chapters are not designed to do, which you would be well justified in suspecting anyway.

“…Hyperbola happens to be the only one taking several threats seriously that I consider relevant to the demise of Free software.”The purpose of this book, I promise — is NOT to promote HyperbolaBSD. It may do so, because out of hundreds of distros (and a dozen “fully free” ones) Hyperbola happens to be the only one taking several threats seriously that I consider relevant to the demise of Free software. I have some criticisms for Hyperbola as well (nothing is perfect — I don’t even use Hyperbola, though I would be very interested in trying it).

The reason I keep “plugging” Hyperbola and saying nice things about it is very simply credit-where-credit is due. I’ve never even used their distro — I downloaded it and had a look at how it is put together, before they switched to BSD I think. I AM interested in libre versions of BSD, for reasons this book will hopefully explain at the right time…

The other thing this book is not deliberately doing, is teasing you about other chapters that I haven’t even (as of this writing) written yet. In other words, I’m not going that to try to create suspense or interest. If it achieves that effect, great! But its honestly not intentional. Rather, I can only introduce so many things at the same time, and I’m trying to lay a foundation as much as possible.
After writing the first 9 chapters of this book, I went through nearly 100 freely-licensed articles I’ve written to decide which topic was best to cover next.

This particular chapter is inspired by part 7 of the book this is intended to bring up to date-

Guarding and Rescuing the FSF Titanic: Distro-libre and feature-schema

That book (along with another book I wrote, in better detail) predicted the ousting of rms from the FSF, and was written based on the idea that we could save the FSF from itself — like a fleet of lifeboats running alongside the Titanic, which didn’t bother including a sufficient number of them.

Since that was written, I no longer think the FSF can be saved — but I do think Free Software is still important. Many of the problems ahead are what to do about the Linux kernel and Microsoft GitHub. I still think distro-libre is a good idea, but sadly there are problems now that are so foundational that remixing all distros into fully free ones brings up some related issues that have to be addressed.

Licence: Creative Commons CC0 1.0 (public domain)

Share in other sites/networks: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Reddit
  • email
  • Slashdot

If you liked this post, consider subscribing to the RSS feed or join us now at the IRC channels.

Pages that cross-reference this one

What Else is New

  1. “If I'm the Father of Open Source, It Was Done by Artificial Insemination With Stolen Sperm”

    The father of the Free software movement, Richard Stallman, is being wrongly compared to some patron of an “open source” ‘movement’ (an early effort to cancel Stallman and the FSF), which is basically a hostile corporations-led ploy these days

  2. IRC Proceedings: Wednesday, September 23, 2020

    IRC logs for Wednesday, September 23, 2020

  3. The Second Wave (of Free/Libre Software)

    Despite some major setbacks and new threats to digital freedom (autonomy is perhaps a more suitable term), progress is being made and activism must adapt to tackle newer trends

  4. Exploring the Relationship Between Red Hat and Microsoft: They're Barely Even Rivals Anymore

    The ‘older Microsoft’ (serial monopolist IBM) bought Red Hat, but evidence shows that one would be wrong to assume Red Hat really competes against Microsoft (any more than Novell did; there’s a strong relationship)

  5. Microsoft Lost More Than 15 Million Web Domains in One Month!

    Microsoft's presence on the Web is being reduced to ridiculously low levels; sooner or later Microsoft will turn from 'king' of parked (unused) domains to master of nothing

  6. Links 23/9/2020: Lenovo's Deeper GNU/Linux Dive and Tor Browser 10/Tails 4.10

    Links for the day

  7. IRC Proceedings: Tuesday, September 22, 2020

    IRC logs for Tuesday, September 22, 2020

  8. The Latest Greenwashing Campaign by the EPO is Just 'Chinese Propaganda'

    When the EPO speaks of “innovation” and “clean energy transition” it means nothing but patents on batteries, in effect monopolies being granted in Europe (to a lot of Asian — not European — companies)

  9. Links 23/9/2020: Librem 14 Shipping in December, Linux Journal Returns, Istio 1.6.10 Released, Release Candidate 3 of LLVM 11.0

    Links for the day

  10. Welcome Back, Linux Journal!

    Linux Journal is coming back under the ownership/umbrella of Slashdot folks, who are sadly preoccupied and obsessed with Microsoft talking points and PR campaigns

  11. What the Efforts to Remove Dr. Stallman Reveal About the Agenda of Large Corporations (Looking to Absorb the Competition, Remove Freedom, Spread Proprietary Software in 'Open' Clothing)

    Richard Stallman's (RMS) positions and foresight are usually correct; at the moment we're losing access to key people whose leadership positions are essential for the independence of cornerstone projects

  12. Links 22/9/2020: Tails 4.11, Linux Lite 5.2 RC1

    Links for the day

  13. Minimalism for Maximisation of Productivity and Clutter Mitigation

    Unfortunately, GNU/Linux (especially the latter, Linux) embraces bloat and anti-features in pursuit of sales (appeasing large corporations, not users’ needs), reducing the modularity, reliability and productivity of computer systems in the name of helping “dumb” users (they keep telling us people are very dumb and those who disagree are “elitist” and “extremist” or even “neckbeards” — in effect insulting every person out there)

  14. IRC Proceedings: Monday, September 21, 2020

    IRC logs for Monday, September 21, 2020

  15. Post-Coronavirus Linux.com Became Nothing But a SPAM Site

    As per the Linux Foundation‘s very own brochure, scripted and fake ‘interviews’ are to be produced and then edited/negotiated (before publication) with the sponsor… in Linux.com as the platform. This is corruption (or marketing, one might call them de facto ads presented as fake ‘articles’).

  16. Erosion of Free Speech and Tolerance of Opposing Viewpoints in Free Software Communities

    The concept of free speech is being reinvented by oversensitive people who nowadays expand the list of exclusions/exemptions (from scope of 'permissible' speech) to politics and criticism of large and highly abusive corporations

  17. Links 21/9/2020: PlasmaShell With Vulkan, Plasma Beta Review Day, OpenMediaVault 5.5.11

    Links for the day

  18. Guest Post: The Worrying State of Political Judgement in Free Software Communities

    A look at what Mozilla has become and what that teaches us about the Web and about software

  19. Links 21/9/2020: KTechLab 0.50.0, Linux 5.9 RC6

    Links for the day

  20. IRC Proceedings: Sunday, September 20, 2020

    IRC logs for Sunday, September 20, 2020

  21. Git is Free Software, GitHub is Proprietary Trap

    More and more people all around the world understand that putting their fruit of labour in Microsoft's proprietary (but 'free') prison is misguided; the only vault they have is for human beings, not code

  22. Daniel Pocock on Codes of Conduct and Their Potential Dangers in Practice

    In Debian we’ve already witnessed several examples where Codes of Conduct, if put in the wrong hands (in the Linux Foundation it’s corporate hands), can achieve the very opposite of their intended goal and its a true shame as well as a travesty for legitimate victims of real abuse

  23. Links 20/9/2020: Flameshot Screenshot Tool 0.8, Okular Improvements and More

    Links for the day

  24. Reminder: Vice Chair of the Linux Foundation's Board is an Oracle Executive Who Used to Work for Microsoft

    The Linux Foundation issued statements to the effect of opposing Donald Trump, but its current leadership (people from companies like Oracle, Microsoft and IBM) is a strong proponent of doing as much business as possible with Trump (even in violation of international law)

  25. [Meme] How to Hijack Linux and Free Software to Make Them Proprietary and Microsoft-Controlled

    Intel keeps outsourcing almost everything (that's not proprietary with back doors, e.g. ME) to Microsoft's proprietary software prison, known as GitHub; to make matters worse, Intel now uses the Microsoft-hosted Rust to develop in Microsoft servers, along with Microsoft, code that promotes Microsoft proprietary software (e.g. Hyper-V) and non-standard 'extensions'.

  26. DDOS Attacks Against Us Lately

    (Distributed) Denial-of-service attacks or DDOS attacks have slowed down the site, but we treat that as evidence of suppression and fear (of what's to come and what was recently published), or accuracy (in reporting) rather than inaccuracy

  27. [Meme] Windows as Dead Man Walking (Patches Accelerate the Death)

    Microsoft is squeezing whatever life is left in its “burning platform” (which is already exceeded in terms of market share by Android) that has a "burning" (bricked) WSL with barely any users and plenty of critical problems

  28. We Let Them Get Away With Murder, But They Make up for It by Banning Words

    The Microsoft propaganda machines (notably ZDNet this weekend) are busy portraying Microsoft as a “good company” for censoring words, never mind the actual, meaningful, substantial actions of Microsoft, which is boosting authoritarian people who imprison even babies (for the ‘crime’ of being on the ‘wrong’ side of the border)

  29. High-Profile and Invalid (Invalidated) European Patents Harm the Presumption of Validity of European Patents

    The EPO's 'printing machine' (over-producing patent monopolies) is harming the legal certainty associated with such patents, helping nobody but deep-pocketed monopolists and law firms

  30. Epitaph for (Death of) Patent-Centric Media: Litigation Giant Bird & Bird Nowadays Doing Ads as 'Podcasts' in Think Tank Site 'Managing IP'

    Publishers don't hesitate and openly revel in taking bribes as if it's a badge of honour or importance, allowing themselves to be profoundly corrupted in pursuit of quick cash; we discuss what's happening in sites that pretend to cover patent news (but actually drive agenda of litigation giants, to the detriment of actual innovators)

RSS 64x64RSS Feed: subscribe to the RSS feed for regular updates

Home iconSite Wiki: You can improve this site by helping the extension of the site's content

Home iconSite Home: Background about the site and some key features in the front page

Chat iconIRC Channel: Come and chat with us in real time

Recent Posts