You are not logged in.

#1 2020-04-22 06:12:05

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 8,003
Website

Techy stuff for developers

A sort of techy version of "Cool Random Internet Stuff" but with the focus on Desktop development, Debian Installer, ISO building and the like. Short posts that don't justify a dedicated thread.

This is mainly stuff that would be of interest to BunsenLabs developers I guess, but there's no reason not to share it publicly here IMO.

First up:
debian preseed file
This is where you can set all kinds of tweaks for Debian-Installer when it goes about its work. There are some example files around the web, but they don't cover all the possibilities by far, partly because they keep changing and depend on the various bits of Debian Installer.

Anyway, today I ran into this post by Debian dev Steve McIntyre:
https://jack.einval.com/debian-preseed/
He's written a script to extract all the options, and here's an example reference for buster - amd64 - main:
https://jack.einval.com/debian-preseed/ … n-full.txt

Somebody with time on their hands might enjoy going over that list. smile

Last edited by johnraff (2020-05-18 02:20:47)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#2 2020-05-18 02:22:53

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 8,003
Website

Re: Techy stuff for developers

Debian Derivatives

The Debian Wiki has some guidelines for Derivatives:
https://wiki.debian.org/Derivatives/Guidelines

And keeping Lintian in the picture:
https://wiki.debian.org/Lintian/Vendors


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#3 2020-06-08 05:15:36

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 8,003
Website

Re: Techy stuff for developers

Where do lightdm and lightdm-gtk-greeter store session & locale?

Spent about half a day last week trying to find out where the lightdm login window was getting its default xsession and language choices from. Once a user has chosen something, it's really hard to undo...  neutral

I'm not sure if the priority goes like this, but user choices could be in any, or all, of these:

/home/<user>/.dmrc
/var/lib/AccountsService/users/<user>
/var/cache/lightdm/dmrc/<user>.dmrc
/var/lib/lightdm/.cache/lightdm-gtk-greeter/state

These system files have lower priority, but a default user-session might be set there:

/usr/share/lightdm/lightdm.conf.d/*
/etc/lightdm/lightdm.conf


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#4 2020-06-08 06:10:42

hhh
Meep!
Registered: 2015-09-17
Posts: 11,816
Website

Re: Techy stuff for developers

Installer theming. I forget the file paths, but when I was trying to decipher live-build for the first hydrogen build, I probably spent a month researching every mailing list for the info. Anyway, it's a banner image and a gtk2 theme once you know where to put them.

Still no fun, the Debian Live Manual. It's sparse...

https://live-team.pages.debian.net/live … ex.en.html

Offline

#5 2020-06-08 06:22:13

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 8,003
Website

Re: Techy stuff for developers

^Yes, although people associated with live-build seem now to be putting some time into improving it - at least correcting obsolete info and making some parts more comprehensible.

Debian mailing list:
https://lists.debian.org/debian-live/


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#6 2021-01-18 07:34:30

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 8,003
Website

Re: Techy stuff for developers

Debian Quick Image Baker pre-baked images

Downloadable images that can be run on QEMU:

https://people.debian.org/~gio/dqib/

I haven't tried any, but might be interesting, especially for unusual architectures.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#7 2021-01-18 07:35:26

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 8,003
Website

Re: Techy stuff for developers

Debian Glossary

explanations of a lot of those cryptic acronyms

https://wiki.debian.org/Glossary


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#8 2021-01-18 14:26:17

sleekmason
zoom
Registered: 2018-05-22
Posts: 584

Re: Techy stuff for developers

hhh wrote:

Installer theming. I forget the file paths, but when I was trying to decipher live-build for the first hydrogen build, I probably spent a month researching every mailing list for the info. Anyway, it's a banner image and a gtk2 theme once you know where to put them.

Still no fun, the Debian Live Manual. It's sparse...

https://live-team.pages.debian.net/live … ex.en.html

I know for the initial splash image, just change out the splash image in /config/bootloaders/isolinux/splash.svg with a .png 640x480 of your choosing. 

If you run across your notes, would love to know where these other two are.
Guessing your talking about the image displayed during the process itself?

Offline

#9 2021-01-19 06:27:47

ohnonot
...again
Registered: 2015-09-29
Posts: 5,482

Re: Techy stuff for developers

sleekmason wrote:

I know for the initial splash image, just change out the splash image in /config/bootloaders/isolinux/splash.svg with a .png 640x480 of your choosing.

Why not an .svg?


Give to COVAX! Here or here. (explanation)

Offline

#10 2021-01-19 13:48:19

sleekmason
zoom
Registered: 2018-05-22
Posts: 584

Re: Techy stuff for developers

ohnonot wrote:
sleekmason wrote:

I know for the initial splash image, just change out the splash image in /config/bootloaders/isolinux/splash.svg with a .png 640x480 of your choosing.

Why not an .svg?

Right?

When modifying one of the default themes, if you want to use a personalized background image that will be displayed together with the boot menu, add a splash.png picture of 640x480 pixels. Then, remove the splash.svg file.

https://live-team.pages.debian.net/live … ry.en.html

Guessing another .svg would work fine. Maybe just wanted people to know a .png would work as well.

Offline

#11 2021-01-28 16:28:38

sleekmason
zoom
Registered: 2018-05-22
Posts: 584

Re: Techy stuff for developers

Dconf settings.  Was trying to figure out how to save dconf settings for plank and the like.

After searching and finding only headaches, it occurred to me to simply copy the ~/.config/dconf from the live session.  This works!

Just make any changes to the app(s) in question in a live session, logout and back in to get your shiny new dconf file to add to the distro.

Was able to change plank positioning and transparency.  now to figure out everything that uses dconf for settings.

Offline

#12 2021-01-29 02:52:18

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 8,003
Website

Re: Techy stuff for developers

^Just copying the dconf binary data base does work, but it might break if copying to a different system, and all settings would be overwritten. There's a "proper" way, using the package dconf-cli. It comes with BL Lithium by default, as a dependency of bunsen-utilities, but you can install it if necessary.

The command is dconf, and as usual man dconf will give you the whole story.

'dconf dump /' to see all the stored data. (Note: the "directory path" is not a real directory, it's about the config data hierarchy.)
Other commands I've used: 'dconf load' and 'dconf reset'.

Basic save/restore flow (eg for mate-terminal):

dconf dump /org/mate/terminal/ > path/to/dconf-mateterm
# if data is missing it will just create an empty file

## then at restore time
dconf reset -f /org/mate/terminal/

dconf load /org/mate/terminal/ < path/to/dconf-mateterm

The "directory" paths you have to find out  - if the app is installed you can see it via 'dconf dump /'.

The BLOB utility does something like this to save and restore dconf data:
https://github.com/BunsenLabs/bunsen-ut … hemes#L689
https://github.com/BunsenLabs/bunsen-ut … emes#L1718


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#13 2021-01-29 03:34:55

sleekmason
zoom
Registered: 2018-05-22
Posts: 584

Re: Techy stuff for developers

johnraff wrote:

^Just copying the dconf binary data base does work, but it might break if copying to a different system, and all settings would be overwritten. There's a "proper" way, using the package dconf-cli. It comes with BL Lithium by default, as a dependency of bunsen-utilities, but you can install it if necessary.

The command is dconf, and as usual man dconf will give you the whole story.

'dconf dump /' to see all the stored data. (Note: the "directory path" is not a real directory, it's about the config data hierarchy.)
Other commands I've used: 'dconf load' and 'dconf reset'.

Basic save/restore flow (eg for mate-terminal):

dconf dump /org/mate/terminal/ > path/to/dconf-mateterm
# if data is missing it will just create an empty file

## then at restore time
dconf reset -f /org/mate/terminal/

dconf load /org/mate/terminal/ < path/to/dconf-mateterm

The "directory" paths you have to find out  - if the app is installed you can see it via 'dconf dump /'.

The BLOB utility does something like this to save and restore dconf data:
https://github.com/BunsenLabs/bunsen-ut … hemes#L689
https://github.com/BunsenLabs/bunsen-ut … emes#L1718

Really good info!  Thank you for posting the correct way.  Couldn't get it figured.

Offline

#14 2021-02-02 02:55:30

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 8,003
Website

Re: Techy stuff for developers

Debian Packaging: some detailed info from the horse's mouth. Seems to be up to date.

Debian New Maintainers' Guide
https://www.debian.org/doc/manuals/main … ex.en.html

Guide for Debian Maintainers
https://www.debian.org/doc/manuals/debm … ex.en.html
especially Chapter 5. Basics
https://www.debian.org/doc/manuals/debm … 05.en.html


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#15 2021-05-08 04:57:55

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 8,003
Website

Re: Techy stuff for developers

Reproducible Live images

This page tracks the progress on creating reproducible live images, using live-build from DebianLive

Some content here possibly of interest to people using live-build (@sleekmason?).

https://wiki.debian.org/ReproducibleInstalls/LiveImages


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#16 2021-05-09 19:30:53

sleekmason
zoom
Registered: 2018-05-22
Posts: 584

Re: Techy stuff for developers

johnraff wrote:

Reproducible Live images

This page tracks the progress on creating reproducible live images, using live-build from DebianLive

Some content here possibly of interest to people using live-build (@sleekmason?).

https://wiki.debian.org/ReproducibleInstalls/LiveImages

Looks interesting!  Thank you for posting the link.

Offline

Board footer

Powered by FluxBB