[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
- To: BerkeleyLUG <berkeleylug@googlegroups.com>
- Subject: Re: Debian wiki, /usr, ...Re: Virtual meetup this Sunday 2020-08-09; own mini-project
- From: "Michael Paoli" <Michael.Paoli@cal.berkeley.edu>
- Date: Tue, 11 Aug 2020 07:42:26 -0700
- Arc-authentication-results: i=2; gmr-mx.google.com; spf=neutral (google.com: 198.144.192.42 is neither permitted nor denied by best guess record for domain of michael.paoli@cal.berkeley.edu) smtp.mailfrom=Michael.Paoli@cal.berkeley.edu
- Arc-authentication-results: i=1; gmr-mx.google.com; spf=neutral (google.com: 198.144.192.42 is neither permitted nor denied by best guess record for domain of michael.paoli@cal.berkeley.edu) smtp.mailfrom=Michael.Paoli@cal.berkeley.edu
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:user-agent :content-disposition:mime-version:in-reply-to:references:subject:to :from:date:message-id:sender:dkim-signature; bh=/qAfx62K8p31vrl46Vb+lVLLyfeJ0oBo1uPP1cRFRDE=; b=0H34TA10JY0f9wSi60E+QUXL1SupPTcmARX+fVkpy3zQHmGmSu7H5WN/qpEhxiwBc5 KvWh82USfLxwwJOS2Bkh6L6dPGyPNGYYr6QHSZDu2r6iy7neVEoDSuB29iedBzHN3BLQ cGX/ey3qCkfTCEF+UDZ2dtUbKvJshpg6Oc29joVxPac0SlDUJ0EymIdNPFnqOUedNH0u K35wq+aAEq9L4ecVeaPqYDbK3V2rXz6QPk0LkMQPQ83Mhw+pQnkNMmCJEmoWvyGdDAjh +jYSjzZN45VO76Dr6qh99dLp/zPdPHDFpFUpNwVzvvf9+DlDQ7o1dg7VWZBcwskc3UhJ O4Eg==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:content-transfer-encoding:content-disposition :mime-version:in-reply-to:references:subject:to:from:date:message-id; bh=cLl1qb8yMjzorp+nfpQaI8tSRWKFdFiIXH/uMMieoYQ=; b=IwEctaUGZtkZHZsovOX80dzX5e9tEDazg3vFgvVhl/NwE/bGvcpRAHGFVbz9iWdxz2 0KwLn8xgQl0HiRVYB5+APxIehGsJPgnOZILD8JxUKLDLWuLZ3aPYMXIJNRZKSJMk1qvL 3sllX4cHbdu5PKN4fsdnFFL/ffliR6TL35ff8kK/WnT0Q4O2Dk7SDXSq2fqDGmV4AhO0 AdIcjptSO+iKFuoGYYRw2rcjtDU1crDlgHd/Ts8Sg0GdEtUwu19/0w7G7epvtkahG/fm ln2xMxPoL5dBL5rnUuA0IO6S5NF64+elRDuKWALFl1iBXcz+rxq+zzpXcB6OzlzwACv+ tT+g==
- Arc-seal: i=2; a=rsa-sha256; t=1597156948; cv=pass; d=google.com; s=arc-20160816; b=nYxIzBwy+hR1dpMuONwe+kApbo+/pkVXxES+nXUo6QlJw7u/ql45bDdIhyGfTl7tGF Nza1JQrOokN8Cgzak6EJw2NJteUFHrPIFcrAczj7BMLtTAGtmsFMJ1AKvT3zmFHFi0rR bryqvxxL4jSBWCpXAIJVN3mQz8zyrjDzGQaT38FyCu2eQMvnqS4f2nTI1G7rjuajT1o4 oQRhJbMxMklmKodOCx+Dy+7O3buB/FHcOTNwI2Eo/dCJS8uCqp7NmEAl90Qw5VSDwhNA dGUBxSTf07Iv2PZMNy0+pDjnN4WzPy5jbKg7zcevAOpj6fWX/cPXTo7DlgAPEHThqr+q UHyw==
- Arc-seal: i=1; a=rsa-sha256; t=1597156947; cv=none; d=google.com; s=arc-20160816; b=rcMDBwew7qbxKhmdSrVV+PosRBTVjJF1BdsEqHA/re/fB7A+QS0oWIJN0b9Gvtdsab IMkqFwGfdHir4AVCtb4UA15eVC61pLAQX+hYLfk2TWZoqNcMjNhLeAytGFEoeFZpeLfV LRMyEOtN6JzWb+yI7RS7BsdN9cA0n+7b6c/raT3cSDnp6hS1E4GsZyfucb7RSngCepbG P2+7K+HnBytQ47/VboDFkeMJVIKIS7qzefr5CWe9DEcZ/+QcDGlhgALIv35jaT5O0wvQ P/7XZTyeVck/LOSkhBtjU9UFNmvIW+aTjFFtb7+814CzSxv+561G3gcck/n2nETKDBP0 gLZQ==
- Delivered-to: historian@entropia.netisland.net
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:message-id:date:from:to:subject:references:in-reply-to :mime-version:content-disposition:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=/qAfx62K8p31vrl46Vb+lVLLyfeJ0oBo1uPP1cRFRDE=; b=n9pxdbyW+xou3uThvSsPpN7MT82G9VjnrgoaRyxoLXNGAQQrbx3I+tpSgjob7Om10U mLNZfDT5vZm1vI8A1Jtu8WD3zq9jZO7dclNzK+imbO1Y4mCW5Z14KRvTPbBKCl3GCPZL vra4mzluaNpzRpQ1Yz34xEMOgttRUk0LB7sxhzzLChdmc7zG7l5wTlJosbtmmrQBm9lI 5zNKlQd7NA1rK92Wi98ja8gOGBkpwBY0MR4f8tW6RHFOiW0NAsN8aYwmvnW9GOBIOSCb RitT6yBzRJAAb9HiX0VXb/VsjHpGZjEHSv3mSznMvJsQ3lU5zHjxR2yB348HMGn0E8IJ kKRw==
- In-reply-to: <20200811062055.10904rjvaeaol4sg@webmail.rawbw.com>
- List-archive: <https://groups.google.com/group/berkeleylu>
- List-help: <https://groups.google.com/support/>, <mailto:berkeleylug+help@googlegroups.com>
- List-id: <berkeleylug.googlegroups.com>
- List-post: <https://groups.google.com/group/berkeleylug/post>, <mailto:berkeleylug@googlegroups.com>
- List-subscribe: <https://groups.google.com/group/berkeleylug/subscribe>, <mailto:berkeleylug+subscribe@googlegroups.com>
- List-unsubscribe: <mailto:googlegroups-manage+61884646931+unsubscribe@googlegroups.com>, <https://groups.google.com/group/berkeleylug/subscribe>
- Mailing-list: list berkeleylug@googlegroups.com; contact berkeleylug+owners@googlegroups.com
- References: <f21f6249-2040-41fa-81ea-507cf5e23621o@googlegroups.com> <646715289.1160310.1596837397984@mail.yahoo.com> <CAGpvfsp3eMiEMPs=t6RkM4FFgAYeO4LFv=01Cm-QcH9odKmsNQ@mail.gmail.com> <bbad4015-aff5-4067-8ea8-08814f9e3907o@googlegroups.com> <20200809174918.GA29756@linuxmafia.com> <85623481-8178-4ac2-abf0-d63477c2e924o@googlegroups.com> <20200811062055.10904rjvaeaol4sg@webmail.rawbw.com>
- Reply-to: berkeleylug@googlegroups.com
- Sender: berkeleylug@googlegroups.com
- User-agent: Internet Messaging Program (IMP) H3 (4.2.1-RC1)
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.