[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debian wiki, /usr, ...Re: Virtual meetup this Sunday 2020-08-09; own mini-project



Oops ... that was supposed to go to list ... anyway ...

From: "Michael Paoli" <Michael.Paoli@cal.berkeley.edu>
Subject: Debian wiki, /usr, ...Re: Virtual meetup this Sunday 2020-08-09; own mini-project
Date: Tue, 11 Aug 2020 06:20:55 -0700

From: goossbears <acohen36@gmail.com>
Subject: Re: Virtual meetup this Sunday 2020-08-09; own mini-project
Date: Mon, 10 Aug 2020 09:25:05 -0700 (PDT)

* Note: contrary to the Debian wiki's instructions
for changing the LightDM greeter background at
https://wiki.debian.org/LightDM#Change_the_greeter.27s_background

Hey, it's a wiki - you can update/correct what's on the wiki!  :-)

I found that I actually had to edit the 01_debian.conf file
in the /usr/share/lightdm/lightdm-gtk-greeter.conf.d

Per FHS
https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html#theUsrHierarchy
and Debian Policy
https://www.debian.org/doc/debian-policy/ch-opersys.html#file-system-hierarchy
https://www.debian.org/doc/debian-policy/ch-files.html#location
under /usr wouldn't be the correct place to make such a change.
There's likely an override location in /etc ... might possibly have
to create it, though (e.g. it may default to what's configured in /usr
if it doesn't find corresponding overrides at appropriate location(s)
under /etc).
Changing it under /usr rather than /etc would also violate the
Principle of least surprise/astonishment
https://en.wikipedia.org/wiki/Principle_of_least_astonishment

And, yep, found it:
/etc/lightdm/lightdm-gtk-greeter.conf
Change it there to override ...
I added this in the [greeter] section ... might not all be needed:
#background=/usr/share/images/desktop-base/login-background.svg
background=/usr/share/icons/Adwaita/scalable/status/user-offline-symbolic.svg
... mostly just copied background from
/usr/share/lightdm/lightdm-gtk-greeter.conf.d/01_debian.conf
as a base and added it to existing [greeter] section,
and the SVG file, I just selected randomly from .svg files
found under /usr (for proof-of-concept), and restarted
# systemctl restart lightdm.service
(under systemd - adjust accordingly for other init),
and the background was changed as specified in that file under /etc.

directory to change the greeter background instead :-\

And also handy saving lots of redundant downloads, e.g.:
From: "Michael Paoli" <Michael.Paoli@cal.berkeley.edu>
Subject: caching Debian packages (notably .deb files): Re: Virtual meetup this Sunday 2020-08-09; own mini-project
Date: Mon, 10 Aug 2020 21:42:47 -0700

For doing multiple installs - or even reinstalling some of same
packages, can be much faster (and less load on Debian
servers and mirrors) to cache the relevant Debian files (most
notably .deb files).

Once-upon-a-time I saw an excellent bit on it on some Debian
posting/list ... looked for it, but wasn't able to find it
again ... may have been
Debian Project/Weekly News
https://www.debian.org/News/weekly/
... notably about some various tools Debian has for doing such
caching and/or sharing among Debian hosts, etc.

I've also got some of my own semi-manual/semi-automated methods.
At least in part typically involves:
o saving "cached" to /var/local/cache/
o deduplicating from the above what I have on ISOs
o using --print-uris with apt-get(8)
o using matched files from /var/local/cache/ and ISOs to pre-seed
  /var/cache/apt/archives/
o some of the "tools" (programs) I use on that:
  uris2f
  uris2find
  rmdebdup
  dedupcache
  and of course stuff like ssh, scp, tar, ...
  Have a peek around:
  http://www.mpaoli.net/~michael/bin/
  http://www.mpaoli.net/~root/bin/

e.g.:
$ ssh -ax -l michael 192.168.55.254 'cd /var/cache/apt/archives/.f/ && du -sh .'
4.0K    .
$ scp -pq $(ssh -ax -l michael 192.168.55.254 'apt-get -y --print-uris install lightdm' | uris2find) michael@192.168.55.254:/var/cache/apt/archives/.f/ 2>>/dev/null $ ssh -ax -l michael 192.168.55.254 'cd /var/cache/apt/archives/.f/ && du -sh .'
87M     .
$

# pwd -P
/var/cache/apt/archives/.f
# chown 0:0 *.deb && chmod 644 *.deb && mv -n *.deb ../
# ls -A
#

$ scp -pq $(ssh -ax -l michael 192.168.55.254 'apt-get -y --print-uris install xterm' | uris2find) michael@192.168.55.254:/var/cache/apt/archives/.f/ 2>>/dev/null

# pwd -P
/var/cache/apt/archives/.f
# chown 0:0 *.deb && chmod 644 *.deb && mv -n *.deb ../
# ls -A
#
etc.

--
You received this message because you are subscribed to the Google Groups "BerkeleyLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to berkeleylug+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/berkeleylug/20200811074226.181530crcrogzzi8%40webmail.rawbw.com.