You are not logged in.
^ Perhaps I worded my response incorrectly. What I meant was I want to be able to easily use xscreensaver on my system and call bl-lock from bl-exit so that I have to login using xscreensaver. I used the default technique briefly this week when rebuilding my desktop and I despise the technique; no offense (hopefully) to the developers.
The problem with copying the script to ~/bin is when scripts drastically change, as has happened with the bl-exit, and maybe the bl-lock, script. That technique was suggested once before to me by johnraff, but I kind of glossed over it and decided to be a glutton for punishment and change the bl-exit and bl-lock scripts every time bl-utilities is updated. I'll give the copying the scripts to ~/bin since you've brought it up again and see how it goes.
As always, thank you for chiming in. I frequently learn from you when you chime in.
Last edited by KrunchTime (2017-05-23 08:12:04)
Offline
Whatever you do, please keep the script so that it can be modded by users to lock the system when suspending if desired. I use xscreensaver and mod bl-exit to call bl-lock when suspending.
May I ask, just for my understanding, is it about locking the screen before suspend? I'm just wondering why to choose this way, hence there is a password requirement after waking up from suspend (at least as far as I can remember).
Offline
Hi,
why not use obsession package in bunsenlabs? Here manually run :
https://www.youtube.com/watch?v=lnxTht1 … e=youtu.be
or merged in menu.xml :
<item label="Exit">
<action name="Execute">
<command>
<!-- bl-exit -->
obsession-logout
</command>
</action>
</item>
https://www.youtube.com/watch?v=U48SA4D … e=youtu.be
Last edited by thierrybo (2017-11-12 14:38:30)
Offline
^ Hi!
why not use obsession package in bunsenlabs?
First of all: what a lovely package, thanks for the heads-up, I am now using that in my live image
However, /usr/bin/obsession-logout is a binary executable whereas bl-exit is a (python) script and I personally think that the latter is better suited to BunsenLabs because it is easier for users to hack around and change.
Offline
I see your point. But it can be an easy workaround for non systemd users like me !
Offline
it can be an easy workaround for non systemd users
The bl-exit script was designed to work with other init systems
I have found it to work with SysVinit (but not openrc-init).
How did you switch away from systemd and what are you using in it's place?
Last edited by Head_on_a_Stick (2017-11-12 22:52:18)
Offline
... an easy workaround for non systemd users like me !
This is a perfect opportunity to post a tutorial...
https://forums.bunsenlabs.org/viewforum.php?id=9
We encourage this kind of input in all aspects of our community-driven Debian derivative. For me, customization is the second best thing about Linux (first is Debian's stability, security, that's a good one, a non-insane update/upgrade path and that whole non-profit/open source/free software foundation thing).
No, he can't sleep on the floor. What do you think I'm yelling for?!!!
Offline
Hi,
why not use obsession package in bunsenlabs? Here manually run :
https://www.youtube.com/watch?v=lnxTht1 … e=youtu.be
or merged in menu.xml :
<item label="Exit"> <action name="Execute"> <command> <!-- bl-exit --> obsession-logout </command> </action> </item>
Added to my "check this out" list.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
How did you switch away from systemd and what are you using in it's place?
Well just installed minimal Devuan (without X), added bunsenlabs repositories, then bunsen-meta-all.
Offline
^ Does everything work thierrybo? Are any of the meta packages reliant on systemd?
Offline
just installed minimal Devuan (without X), added bunsenlabs repositories, then bunsen-meta-all.
Ah, I see, it's a shame bl-exit doesn't work on a Devuan base but I can't say I'm surprised.
Thanks for the suggestion anyway.
Offline
^ Does everything work thierrybo? Are any of the meta packages reliant on systemd?
Not speaking about bl-exit, so far all what I need is working fine excepting network-manager, but I don't care, I have no laptop, just a wired desktop. But there are surely plenty of different cases. If you think about something special I can test ...
But as Devuan is no just Debian without systemd, they removed some systemd dependencies from some core packages, it is much easier to just use Debian without systemd. Check these three packages dependencies :
devuan@devuan:~$ apt-cache depends policykit-1
policykit-1
Dépend: libc6
Dépend: libglib2.0-0
Dépend: libpam0g
Dépend: libpolkit-agent-1-0
Dépend: libpolkit-backend-1-0
Dépend: libpolkit-gobject-1-0
Dépend: consolekit
Dépend: dbus
Casse: gdm3
debian@debian:~$ apt-cache depends policykit-1
policykit-1
Dépend: libc6
Dépend: libglib2.0-0
Dépend: libpam0g
Dépend: libpolkit-agent-1-0
Dépend: libpolkit-backend-1-0
Dépend: libpolkit-gobject-1-0
Dépend: libpam-systemd
Dépend: dbus
Casse: gdm3
devuan@devuan:~$ apt-cache depends libpolkit-backend-1-0
libpolkit-backend-1-0
Dépend: libc6
Dépend: libexpat1
Dépend: libglib2.0-0
Dépend: libpolkit-gobject-1-0
Pré-Dépend: multiarch-support
Casse: policykit-1
debian@debian:~$ apt-cache depends libpolkit-backend-1-0
libpolkit-backend-1-0
Dépend: libc6
Dépend: libexpat1
Dépend: libglib2.0-0
Dépend: libpolkit-gobject-1-0
Dépend: libsystemd0
Pré-Dépend: multiarch-support
Casse: policykit-1
devuan@devuan:~$ apt-cache depends dbus
dbus
Dépend: libaudit1
Dépend: libc6
Dépend: libcap-ng0
Dépend: libdbus-1-3
Dépend: libexpat1
Dépend: libselinux1
Dépend: adduser
Dépend: lsb-base
Suggère: dbus-x11
debian@debian:~$ apt-cache depends dbus
dbus
Dépend: libaudit1
Dépend: libc6
Dépend: libcap-ng0
Dépend: libdbus-1-3
Dépend: libexpat1
Dépend: libselinux1
Dépend: libsystemd0
Dépend: adduser
Dépend: lsb-base
Suggère: dbus-x11
Also my setup is all about APT::Install-Recommends "false";, so I have not exactly the same standard Bunsenlabs setup (I dit not installed bunsen-meta-all package but all recommends individually)
Last edited by thierrybo (2017-11-13 21:19:40)
Offline
Needed patch to bl-welcome (for now apt target name is jessie both in Debian and Devuan, thinks will be a little bit more complicated next time ... :
--- /usr/lib/bunsen/welcome/check-repos
+++ /usr/lib/bunsen/welcome/check-repos-devuan
@@ -1,13 +1,13 @@
# check for missing 'contrib non-free' in apt sources
haveSources() {
- grep -qP "^deb +(?=.*debian)$mirror_regex +jessie(?=.*main)(?=.*contrib)(?=.*non-free)( +[a-z-]+){1,3} *$" /etc/apt/sources.list
+ grep -qP "^deb +(?=.*devuan)$mirror_regex +jessie(?=.*main)(?=.*contrib)(?=.*non-free)( +[a-z-]+){1,3} *$" /etc/apt/sources.list
}
addSources() {
local bkp_list=/etc/apt/sources.list~bl-welcome-$(date +%y%m%dT%T)~
sudo cp /etc/apt/sources.list "$bkp_list"
- sed -r "/debian/ s/(${mirror_regex//\//\\/} +jessie(|\/updates|-updates))( +[a-z-]+){0,3} *\$/\1 main contrib non-free/" "$bkp_list" | sudo tee /etc/apt/sources.list >/dev/null
+ sed -r "/devuan/ s/(${mirror_regex//\//\\/} +jessie(|\/updates|-updates))( +[a-z-]+){0,3} *\$/\1 main contrib non-free/" "$bkp_list" | sudo tee /etc/apt/sources.list >/dev/null
}
setupPage $"Check Repositories" $"Checking apt sources list for possible missing components..."
@@ -16,7 +16,7 @@
then
say $"OK - all components found."
else
- say $"A normal BunsenLabs setup uses the 'contrib' and 'non-free' components of the Debian repositories,\
+ say $"A normal BunsenLabs setup uses the 'contrib' and 'non-free' components of the Devuan repositories,\
but they seem to be missing from your apt sources list. Without them you will be unable to install some packages,\
for example the Flash Plugins. Would you like to add 'contrib' and 'non-free' to your sources list?"$'\n'
if prompt 'enable "contrib" and "non-free"?' Y
--- /usr/lib/bunsen/welcome/add-debian-backports
+++ /usr/lib/bunsen/welcome/add-devuan-backports
@@ -1,22 +1,22 @@
-ADD_BACKPORTS_TITLE=$"Debian Backports"
-ADD_BACKPORTS_TEXT=$"Debian backports are packages taken from the next Debian release (called \"testing\"), adjusted and recompiled for usage on Debian stable.\
- If you enable this repository you will be able to upgrade some programs to newer versions, or install some programs not available in Debian stable.
+ADD_BACKPORTS_TITLE=$"Devuan Backports"
+ADD_BACKPORTS_TEXT=$"Devuan backports are packages taken from the next Devuan release (called \"testing\"), adjusted and recompiled for usage on Devuan stable.\
+ If you enable this repository you will be able to upgrade some programs to newer versions, or install some programs not available in Devuan stable.
-However, backports cannot be tested as extensively as Debian stable, and are provided on an as-is basis, with risk of incompatibilities with other components in Debian stable.\
+However, backports cannot be tested as extensively as Devuan stable, and are provided on an as-is basis, with risk of incompatibilities with other components in Devuan stable.\
It is therefore recommended to only select single backported packages that fit your needs, and not use all available backports.
This will add the line:
deb $default_mirror jessie-backports main contrib non-free
-to /etc/apt/sources.list.d/debian-jessie-backports.list,
+to /etc/apt/sources.list.d/devuan-jessie-backports.list,
allowing you to upgrade or install packages using that repository."
-ADD_BACKPORTS_PROMPT=$"Would you like to enable the Debian Backports repositories?"
+ADD_BACKPORTS_PROMPT=$"Would you like to enable the Devuan Backports repositories?"
ADD_BACKPORTS_EXTRA_ARG='N'
haveDebianBackports() {
shopt -s nullglob # in case there is nothing in sources.list.d/
- grep -Pq '^deb +(?!.*bunsenlabs\.org)(?=.*debian)'"$mirror_regex"' +jessie-backports(?=.*main)(?=.*contrib)(?=.*non-free)( +[a-z-]+){1,3} *$' /etc/apt/sources.list{,.d/*}
+ grep -Pq '^deb +(?!.*bunsenlabs\.org)(?=.*devuan)'"$mirror_regex"' +jessie-backports(?=.*main)(?=.*contrib)(?=.*non-free)( +[a-z-]+){1,3} *$' /etc/apt/sources.list{,.d/*}
local retval=$?
shopt -u nullglob
return $retval
@@ -24,17 +24,17 @@
addDebianBackports() {
if haveDebianBackports
then
- say 'Debian backports have already been added to apt sources.' 2
+ say 'Devuan backports have already been added to apt sources.' 2
else
- say $'\nAdding Debian backports to apt sources...\n' 1
+ say $'\nAdding Devuan backports to apt sources...\n' 1
local bp_repo="# added by bl-welcome
-# Debian backports
+# Devuan backports
deb $default_mirror jessie-backports main contrib non-free
"
- cat <<< "$bp_repo" | sudo tee /etc/apt/sources.list.d/debian-jessie-backports.list >/dev/null
- grep -q "^deb $default_mirror jessie-backports main contrib non-free\$" /etc/apt/sources.list.d/debian-jessie-backports.list || {
- say 'Failed to add Debian backports to apt sources.' pause >&2
+ cat <<< "$bp_repo" | sudo tee /etc/apt/sources.list.d/devuan-jessie-backports.list >/dev/null
+ grep -q "^deb $default_mirror jessie-backports main contrib non-free\$" /etc/apt/sources.list.d/devuan-jessie-backports.list || {
+ say 'Failed to add Devuan backports to apt sources.' pause >&2
return 1
}
if grep -q 'jessie-backports' /etc/apt/sources.list
@@ -51,12 +51,12 @@
if haveDebianBackports
then
- setupPage "$ADD_BACKPORTS_TITLE" $"Debian backports have already been added to apt sources."
+ setupPage "$ADD_BACKPORTS_TITLE" $"Devuan backports have already been added to apt sources."
else
if setupPage "$ADD_BACKPORTS_TITLE" "$ADD_BACKPORTS_TEXT" "$ADD_BACKPORTS_PROMPT" "$ADD_BACKPORTS_EXTRA_ARG"; then
if addDebianBackports
then
- say "Successfully added Debian backports.\
+ say "Successfully added Devuan backports.\
You can add or upgrade packages with the command:
sudo apt-get install -t jessie-backports <packagename>" pause
else
--- </usr/bin/bl-welcome
+++ /usr/bin/bl-welcome-devuan
@@ -14,7 +14,7 @@
fi
# default url for added Debian backports etc.
-default_mirror='http://deb.debian.org/debian'
+default_mirror='http://auto.mirror.devuan.org/merged'
# matches most mirrors
# add (?=.*debian) at beginning to insist on 'debian' somewhere (needs PCRE)
Last edited by thierrybo (2017-11-29 19:01:05)
Offline