Updating as a regular user
Re: Updating as a regular user
... The ability of updating for a regular user is interesting, but mostly for the web browsers, openoffice, the security patches, etc ... but not recommended for a grub update, or a kernel update for example.
Pour les nouveaux utilisateurs: Alt+F1 pour le manuel, ou FAQS, MX MANUEL, et Conseils Debian - Info. système “quick-system-info-mx” (QSI) ... Ici: System: MX-19_x64 & antiX19_x32
Re: Updating as a regular user
EDIT: Some wit said "In theory there is no difference between practice and theory; in practise there is."
This doesn't work! (Guess I should have tested first). I'll look at it again soonish. Right now the Long Island Iced Tea my wife gave me precludes any further investigation.
---
Thank you for all the help.
Four points, and I'm OK to mark this a SOLVED (it is for me). [See the EDIT, above]
ONE
That said, I don't really want to end up here (because I've been there): https://forums.linuxmint.com/viewtopic.php?t=233882.
TWO
Reading https://wiki.archlinux.org/index.php/Polkit and https://doc.opensuse.org/documentation/ ... cykit.html brought me to the following insights:
THREE
The ArchWiki source above speaks of their package called polkit-explorer, a GUI to the whole thing. That seems like a better idea than this kind of mucking around. Given how structured those files are and that this need exists, it should not be too great a hurdle to port / do the same.
FOUR
It would also be useful to look at how /usr/share/polkit-1/rules.d/ is used.
---
8-)
John
This doesn't work! (Guess I should have tested first). I'll look at it again soonish. Right now the Long Island Iced Tea my wife gave me precludes any further investigation.
---
Thank you for all the help.
Four points, and I'm OK to mark this a SOLVED (it is for me). [See the EDIT, above]
ONE
Indeed. That's where I think Mint's idea of update levels is probably a Good Thing.
That said, I don't really want to end up here (because I've been there): https://forums.linuxmint.com/viewtopic.php?t=233882.
TWO
Reading https://wiki.archlinux.org/index.php/Polkit and https://doc.opensuse.org/documentation/ ... cykit.html brought me to the following insights:
- Local authorisation rules should be placed in /etc/polkit-1/rules.d/ to preclude updates from clobbering them.
- The sed script should be amended not to change the authorisation requirements for <allow_any> or <allow_inactive>.
Code: Select all
#!/bin/bash
SDIR=/usr/share/polkit-1/actions
DDIR=/etc/polkit-1/rules.d
TDIR=`mktemp -d`
if [ ! -d $DDIR ]; then
sudo mkdir -p $DDIR
fi
for sf in\
$SDIR/org.mxlinux.pkexec*\
$SDIR/com.ubuntu.pkexec.synaptic.policy\
$SDIR/org.freedesktop.timedate1.policy
do
df=`basename $sf`
sudo sed "s/<allow_active>auth_admin/<allow_active>auth_self/g" $sf >$TDIR/$df
done
sudo /bin/mv $TDIR/* $DDIR/.
rmdir $TDIR
The ArchWiki source above speaks of their package called polkit-explorer, a GUI to the whole thing. That seems like a better idea than this kind of mucking around. Given how structured those files are and that this need exists, it should not be too great a hurdle to port / do the same.
FOUR
It would also be useful to look at how /usr/share/polkit-1/rules.d/ is used.
---
8-)
John
Last edited by b3ta on Sun May 19, 2019 12:01 pm, edited 1 time in total.
- Head_on_a_Stick
- Posts: 919
- Joined: Sun Mar 17, 2019 3:37 pm
Re: Updating as a regular user
Debian buster has unattended-upgrades enabled by default so I'm not sure if that's true.
FWIW our family laptop runs Debian stable with unattended-upgrades enabled for all the repositories and it's been fine for several years now, including many kernel & GRUB updates.
But perhaps things would be different under MX.
mod note: Signature removed, please read the forum rules
Re: Updating as a regular user
Isn't Unattended Upgrades the setting in MX-Updater that manyroads and I mentioned? You can enable it in MX-Updater for your family's MX-installed computers.Head_on_a_Stick wrote: ↑Sun May 19, 2019 11:56 am
Debian buster has unattended-upgrades enabled by default so I'm not sure if that's true.
FWIW our family laptop runs Debian stable with unattended-upgrades enabled for all the repositories and it's been fine for several years now, including many kernel & GRUB updates.
But perhaps things would be different under MX.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400
- Head_on_a_Stick
- Posts: 919
- Joined: Sun Mar 17, 2019 3:37 pm
Re: Updating as a regular user
I'm not sure, does that setting install and configure the unattended-upgrades package?
Erm, full disclosure: I don't use MX
I hope the community doesn't mind, I'm just here to help out where I can.
mod note: Signature removed, please read the forum rules
Re: Updating as a regular user
Sometime, the systeme ask some questions (to keep or not the existing config, to install grub into MBR ou PBR etc) ... so cross the fingers, until now, the answers given by your family was always the good one. ;-)Head_on_a_Stick wrote: ↑Sun May 19, 2019 11:56 amDebian buster has unattended-upgrades enabled by default so I'm not sure if that's true.
FWIW our family laptop runs Debian stable with unattended-upgrades enabled for all the repositories and it's been fine for several years now, including many kernel & GRUB updates.
But perhaps things would be different under MX.
In an other hand, for an update for some basic tools as regular user, the alternative is to use the appimages, flatpak ,etc ...
Pour les nouveaux utilisateurs: Alt+F1 pour le manuel, ou FAQS, MX MANUEL, et Conseils Debian - Info. système “quick-system-info-mx” (QSI) ... Ici: System: MX-19_x64 & antiX19_x32
Re: Updating as a regular user
Which is why I check things every 5+/- weeks. My recommendation to my father & sister is to just say 'yes'. I know Nancy Reagan is turning in her grave... but this has worked 100% so far for me.
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken
- Head_on_a_Stick
- Posts: 919
- Joined: Sun Mar 17, 2019 3:37 pm
Re: Updating as a regular user
That doesn't happen in Debian stable, those questions would only be asked for an upgrade between releases.
@OP: sorry for the diversion.
mod note: Signature removed, please read the forum rules
Re: Updating as a regular user
Unattended-Upgrades is enabled/disabled by the 'Auto-update' setting in the MX Updater preferences dialog. (btw I'm not crazy about the 'Auto-update' name for that setting, I would have preferred to stick with the 'Unattended Upgrades' wording.).Head_on_a_Stick wrote: ↑Sun May 19, 2019 12:34 pmI'm not sure, does that setting install and configure the unattended-upgrades package?
Unattended-upgrades (the .deb package) is installed by default (the apt-notifier package has it as a dependency), but unattended-upgrades aren't enabled by default. The MX Updater preference enables (or disables) them. i.e. APT::Periodic::Unattended-Upgrade "1"; (enabled) / APT::Periodic::Unattended-Upgrade "0"; (disabled)
As far as I know Unattended Upgrades will hold back upgrades if they would require answering config questions during the upgrade.Head_on_a_Stick wrote: ↑Sun May 19, 2019 1:12 pmThat doesn't happen in Debian stable, those questions would only be asked for an upgrade between releases.
@OP: sorry for the diversion.
Re: Updating as a regular user
@HOAS,
Personally, I find your posts enlightening, in the main. You bring a point of view that helps keep us aligned with MX's focus on adapting and/or changing Debians defaults to this very useful result which I've been using since April 2014.
Stable, with backports, lots of time-saving utilities in the MXTools and the antiX/Refracta Snapshot plus all the antiX & MX improvements. All good stuff for lazy users who haven't the time or inclination to build their own.
It's been a few years since I used Debian, mainly testing in the past, as a daily ride, although I do take a look at new releases in Vbox. It is the base of the most useful distros I have used.
Thanks for your opinions.
Personally, I find your posts enlightening, in the main. You bring a point of view that helps keep us aligned with MX's focus on adapting and/or changing Debians defaults to this very useful result which I've been using since April 2014.
Stable, with backports, lots of time-saving utilities in the MXTools and the antiX/Refracta Snapshot plus all the antiX & MX improvements. All good stuff for lazy users who haven't the time or inclination to build their own.
It's been a few years since I used Debian, mainly testing in the past, as a daily ride, although I do take a look at new releases in Vbox. It is the base of the most useful distros I have used.
Thanks for your opinions.
Thinkpad T430 & Dell Latitude E7450, both with MX-21.3.1
kernal 5.10.0-26-amd64 x86_64; Xfce-4.18.0; 8 GB RAM
Intel Core i5-3380M, Graphics, Audio, Video; & SSDs.
kernal 5.10.0-26-amd64 x86_64; Xfce-4.18.0; 8 GB RAM
Intel Core i5-3380M, Graphics, Audio, Video; & SSDs.