Re: New debian installation disk partition

2021-10-12 Thread Andrei POPESCU
On Ma, 12 oct 21, 00:02:50, David Christensen wrote:
> On 10/11/21 23:58, Andrei POPESCU wrote:
> > On Lu, 11 oct 21, 13:56:28, David Christensen wrote:
> > > On 10/11/21 13:39, Andrei POPESCU wrote:
> 
> > > > ZFS has native encryption now, any particular reason to prefer using a
> > > > LUKS container instead?
> > > 
> > > I use LUKS because ZFS native encryption was not available OOTB the last
> > > time I looked on Debian.  What version of d-i has ZFS native encryption?
> > 
> > I wasn't aware of any kind of support for ZFS in d-i.
> 
> If d-i does not have native support for ZFS encryption, then when I break my
> computer I will be unable to use the d-i media to access my disk(s).

The Debian Installer doesn't have support for ZFS at all, so it's use to 
rescue for root-on-ZFS systems is limited, at best, regardless of the 
encryption. 

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser


signature.asc
Description: PGP signature


Re: Capture d'écran avec wmctrl+import

2021-10-12 Thread Pierre ESTREM

Bonjour Etienne et le monde libre,

Exact ainsi ça devrait passer.
Ca explique pourquoi "import -window root image.png" fonctionne (la 
capture ne se fait que sur la fenêtre principale).


Il faut que j'adapte ton algorithme  à ma sauce.

Un truc que je ne comprends pas est que "wmctrl -d" ne me renvoie qu'UN 
desktop, alors que j'en attendais 4...


Merci

pierre estrem


Le 12/10/2021 à 22:09, Étienne Mollier a écrit :

Bonjour Pierre,

Pierre ESTREM, on 2021-10-12:

Sous Debian/XFCE je tente de
capturer l'écran d'un bureau qui n'a pas le focus pour le passer à la
moulinette de tesseract.

[…]

  import -window "$window" screenshot.png

Et j'obtiens l'erreur :

import: unable to read X window image `0x0563': Ressource temporairement
non disponible @ error/xwindow.c/XImportImage/5000.
import: missing an image filename `screenshot.png' @
error/import.c/ImportImageCommand/1293.

Où est mon erreur ?

C'est une limitation de "import", le programme ne prend pas en
charge la capture des fenêtres qui ne sont pas rendues à
l'écran.  Une manière de contourner ça serait de rapatrier la
fenêtre sur le bureau courant, le temps de la capture, puis de
la renvoyer à son bureau d'origine, une fois que c'est fini.
Aux fautes de frappe près, ça donnerait un script du genre :

#! /bin/sh
# Identification du firefox
window="$(wmctrl -l | grep -i firefox | cut -f1 -d" ")"
orig_desktop="$(wmctrl -l | grep -i firefox | cut -f3 -d" ")"
# Bureau en cours d'utilisation
cur_desktop="$(wmctrl -d | grep ' \+\* DG: ' | cut -f1 -d" ")"
# Transfert du firefox sur le bureau courant
wmctrl -i -r "$window" -t "$cur_desktop"
# Capture de la fenêtre du firefox
import -window "$window" screenshot.png
# Renvoi du firefox à son emplacement d'origine
wmctrl -i -r "$window" -t "$orig_desktop"
# Fin

D'après mes tests, la fenêtre du navigateur ne vole pas le focus
pendant la manœuvre, donc il ne devrait pas y avoir trop
d'interférences de ce côté là.  Le script n'est pas encore au
top niveau : si le firefox est iconifié, alors l'import va tout
de même planter, mais je crois que l'option -b de wmctrl
permettrait de faire les ajustements nécessaires, s'il y a
besoin de traiter ce cas de figure plus en détail.

Bonne soirée,  :)




Re: mail service

2021-10-12 Thread 황병희
deloptes  writes:

> fxkl47BF wrote:
>
>> no offense taken
>> i use expect_mkpasswd to generate passwords
>> decades ago i got tired of trying to come up with user names
>> i just use expect_mkpasswd to make a short unique name
>> today everyone is trying to glean all of the personal info they can
>> i try not give out any more than is necessary
>
> but we are still human and at least I prefer seeing a human like name and
> not some scribles, but ofcourse it is your choice how you appear in the
> public.

+1;

Sincerely, Byung-Hee from South Korea



Re: Building a package for ScummVM 2.5.0

2021-10-12 Thread Sven Joachim
On 2021-10-12 21:48 +0200, Christian Britz wrote:

> I am trying to build a Debian package for the latest ScummVM release
> for personal use and need help.
> I have no deep knowledge of Debian packaging, but in the past I had
> some success with applying dh_make to source trees.

I would probably rather start with the existing scummvm package in the
archive and adapt that to the new upstream release.

> This is what I have done in the source folder:
>
> dh_make -n -s -e a...@bbb.ccc
> fakeroot debian/rules binary
>
> Output:
>
> dh binary
>    dh_update_autotools_config
>    dh_autoreconf
>    dh_auto_configure
>     ./configure --build=x86_64-linux-gnu --prefix=/usr
> --includedir=\${prefix}/include --mandir=\${prefix}/share/man
> --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var
> --disable-option-checking --disable-silent-rules
> --libdir=\${prefix}/lib/x86_64-linux-gnu --runstatedir=/run
> --disable-maintainer-mode --disable-dependency-tracking
> Running ScummVM configure...
> error: unrecognized option: --disable-option-checking
> [...]
>
> The configure script seems to be unable to deal with the parameter
> --disable-option-checking. Where is this set? The debian sub directory
> does not contain that string.

It is passed by dh_auto_configure, see
/usr/share/perl5/Debian/Debhelper/Buildsystem/autoconf.pm.

> Running ./configure manually works fine.

That is what the Debian package does[1], because scummvm's configure
script is apparently not produced by autoconf.

Cheers,
   Sven


1. https://sources.debian.org/src/scummvm/2.2.0+dfsg1-4/debian/rules/#L37



Re: Capture d'écran avec wmctrl+import

2021-10-12 Thread didier gaumet



Le mardi 12 octobre 2021 à 03:52 +0200, Pierre ESTREM a écrit :
> Bonjour,
> 
> Sous Debian/XFCE je tente de
> capturer l'écran d'un bureau qui n'a pas le focus pour le passer à la
> moulinette de tesseract.
> Par exemple dans celui-ci j'ai une instance de firefox.
> 
> Mon script :
> 
> #!/bin/bash
> 
> # window est l'ID de la fenêtre
> window="$(wmctrl -l | grep -i "firefox" | cut -f1 -d" ")"
> 
> # Capture de l'image
>   import -window "$window" screenshot.png
> 
> Et j'obtiens l'erreur :
> 
> import: unable to read X window image `0x0563': Ressource 
> temporairement non disponible @ error/xwindow.c/XImportImage/5000.
> import: missing an image filename `screenshot.png' @ 
> error/import.c/ImportImageCommand/1293.
> 
> Où est mon erreur ?
> 
> Merci
> pierre estrem

En exécutant ces mêmes commandes en interactif ça marche mais pas en
les collant dans un fichier exécutable. Ce qui m'a fait me demander si
il ne fallait pas spécifier le chemin d'accès: en spécifiant par
exemple ~/screenshot.png au lieu de screenshot.png, chez moi ça
marche...




Re: Buster to bullseye upgrade: Worth it or not?

2021-10-12 Thread local10
Oct 12, 2021, 13:40 by deb...@david.palacio.io:

> I run Bullseye and I find it very solid and trouble free. Though I didn't 
> upgrade from Buster but instead used to run unstable and switched to stable 
> when it released. Bullseye's KDE is very good and I have no issues with it 
> other than I don't recommend you to run a Wayland session of it, you should 
> stick with X11 for the time being. There exists unofficial repositories by a 
> Debian/KDE packager if you wish to get more recent KDE software releases 
> built for Bullseye.
>


Glad to hear that everything is well with KDE in bullseye, I'm running X11 too.

Thanks to everyone who responded.



Building a package for ScummVM 2.5.0

2021-10-12 Thread Christian Britz

Hello,

I am trying to build a Debian package for the latest ScummVM release for 
personal use and need help.
I have no deep knowledge of Debian packaging, but in the past I had some 
success with applying dh_make to source trees.


This is what I have done in the source folder:

dh_make -n -s -e a...@bbb.ccc
fakeroot debian/rules binary

Output:

dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
    ./configure --build=x86_64-linux-gnu --prefix=/usr 
--includedir=\${prefix}/include --mandir=\${prefix}/share/man 
--infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var 
--disable-option-checking --disable-silent-rules 
--libdir=\${prefix}/lib/x86_64-linux-gnu --runstatedir=/run 
--disable-maintainer-mode --disable-dependency-tracking

Running ScummVM configure...
error: unrecognized option: --disable-option-checking
[...]

The configure script seems to be unable to deal with the parameter 
--disable-option-checking. Where is this set? The debian sub directory 
does not contain that string.


Running ./configure manually works fine.

I also played with the checkinstall tool without success, it seems to be 
irritated by faulty git files.


Regards,
Christian



Re: Mouse left button acts really strange

2021-10-12 Thread Andreas Ronnquist
On Sat, 9 Oct 2021 20:52:25 +0200,
sp...@caiway.net wrote:

>I really like Logitech mouses (fast scrolling!), but when used often
>they break each one/two year.
>Sometimes wire most of the time left button.
>I buy them per 3. 
>

Indeed - I just replaced the faulty one with a new one of the same
model - the problem has gone away.

It was the hardware.

Thank you to everybody who has helped or tried to help.

best
-- Andreas Rönnquist
mailingli...@gusnan.se
andr...@ronnquist.net



Re: runlevel

2021-10-12 Thread Felix Miata
Pierre Frenkiel composed on 2021-10-12 13:05 (UTC-0400):

> I found today that my runlevel is set to 5, but I have no idea where it
> comes from.
> in /etc/inittab, it is set to 2, but I saw that this file is no more used.
> So, can anybody tell where it is set? 
> 


In installations using systemd, targets have replaced runlevels. Selected 
runlevel
numbers are aliased to selected targets. e.g. 3 equates roughly to
multi-user.target, and 5 equates to graphical.target, when used on a kernel
command line or the telinit alias to systemctl:

# ll /sbin/init
lrwxrwxrwx 1 root root 20 Jul 13 13:29 /sbin/init -> /lib/systemd/systemd
# ll /sbin/telinit
lrwxrwxrwx 1 root root 14 Jul 13 13:29 /sbin/telinit -> /bin/systemctl


-- 
Evolution as taught in public schools is, like religion,
based on faith, not based on science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata



Re: override.jessie.main.gz file removed from http://deb.debian.org/debian/indices/

2021-10-12 Thread Charles Curley
On Tue, 12 Oct 2021 20:24:32 +0530
Ibrahim Vanak  wrote:

> Can someone please help me with this? I am seeing this as a blocker
> for my work.

What are you trying to do? Perhaps someone here can suggest a
work-around.

Jessie is ancient history. Perhaps upgrading to or re-installing a more
modern version of Debian is in order?

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/



Re: Capture d'écran avec wmctrl+import

2021-10-12 Thread Pierre ESTREM

Bonsoir,

Ben non, ça ne passe pas.
Pourquoi compliquer avec 'awk' ?
Un bon vieux 'cut' fait l'affaire.

L'ID de la fenêtre s'obtient aussi facilement :

id="$(wmctrl -l | grep -i -G "firefox$" | cut -f1 -d" ")"

Et c'est la commande dessous qui échoue :

 import -window "$id" screenshot.png

Pas besoin du timestamp ; je n'en suis qu'aux tests.

pierre estrem


Le 12/10/2021 à 04:50, Bernard Schoenacker a écrit :

- Mail original -

De: "Pierre ESTREM"
À: "ML Debian User French"
Envoyé: Mardi 12 Octobre 2021 03:52:33
Objet: Capture d'écran avec wmctrl+import

Bonjour,

Sous Debian/XFCE je tente de
capturer l'écran d'un bureau qui n'a pas le focus pour le passer à la
moulinette de tesseract.
Par exemple dans celui-ci j'ai une instance de firefox.

Mon script :

#!/bin/bash

# window est l'ID de la fenêtre
window="$(wmctrl -l | grep -i "firefox" | cut -f1 -d" ")"

# Capture de l'image
   import -window "$window" screenshot.png

Et j'obtiens l'erreur :

import: unable to read X window image `0x0563': Ressource
temporairement non disponible @ error/xwindow.c/XImportImage/5000.
import: missing an image filename `screenshot.png' @
error/import.c/ImportImageCommand/1293.

Où est mon erreur ?

Merci
pierre estrem


Bonjour Pierre,


Pourrais-tu simplement essayer de corriger ton script du fait que tu as
2 occurrences qui se marchent dessus et je suis en train de déverminer ton
script  


En premier je fais un essai pour trouver firefox :

wmctrl -l |grep -i -w  "firefox"

j'obtiens un premier résultat convenable :

0x0480002c  4 antigen 16 exemples de commandes grep pour vous aider dans le 
monde réel - Mozilla Firefox

je continue de vérifier ton script :

wmctrl -l |grep -i -w  "firefox" | cut -f1


j'obtiens :

0x0480002c  4 antigen Zimbra: Répondre - Mozilla Firefox

Je reprends ton script à la base en évitant les erreurs :

wmctrl -l |grep -i -w  "firefox" |awk '{print $1}' |tail -1


et le résultat donne le PID de Firefox :
0x0480002c


Pourrais-tu essayer la commande ?

Ensuite, je t'invite à relire le fil de discussion concernant
tesseract et les documents PDF images qui doivent impérativement
être convertis au format Tiff et non au format png ...

window="$(wmctrl -l |grep -i -w  "firefox" |awk '{print $1}' |tail -1)"
  
import -window "$window" screenshot.png



en tout cas maintenant, c'est opérationnel pour obtenir une image png
maintenant, il te faudra convertir l'image png au format tiff :

convert screenshot.png screenshot.tiff


pour ma part je n'aime pas du tout cette façon de faire du fait qu'il me manque
un point qui peux devenir gênant en en donnant pas un "timestamp" de la capture
dans le nom du fichier

correction :
import -window "$window" screenshot-$(date +%Y-%m-%d-%H-%M).png
convert screenshot*.png  screenshot*.tiff


après il te suffira de passer à la moulinette via tesseract

Merci pour ton aimable attention

Bien à toi

Bernard





Re: runlevel

2021-10-12 Thread Georgi Naplatanov
On 10/12/21 20:05, Pierre Frenkiel wrote:
> hi,
> I found today that my runlevel is set to 5, but I have no idea where it
> comes from.
> in /etc/inittab, it is set to 2, but I saw that this file is no more used.
> So, can anybody tell where it is set?
> 

In systemd.

Kind regards
Georgi



Re: runlevel

2021-10-12 Thread Greg Wooledge
On Tue, Oct 12, 2021 at 07:05:31PM +0200, Pierre Frenkiel wrote:
> hi,
> I found today that my runlevel is set to 5, but I have no idea where it
> comes from.
> in /etc/inittab, it is set to 2, but I saw that this file is no more used.
> So, can anybody tell where it is set?

What version of Debian are you running?  (cat /etc/debian_version)

What init system are you using?  (ls -l /sbin/init)

If you're using systemd, be aware that the /etc/inittab file is not
used.  It's used by sysvinit.



runlevel

2021-10-12 Thread Pierre Frenkiel

hi,
I found today that my runlevel is set to 5, but I have no idea where it
comes from.
in /etc/inittab, it is set to 2, but I saw that this file is no more used.
So, can anybody tell where it is set?

best regards,
--
Pierre Frenkiel



Re: OpenLdap

2021-10-12 Thread Gokan Atmaca
> > The immediate reason for the failure should be found in the sshd logs in
> > /var. But the trick with LDAP for login authentication is this:

I'm probably making a mistake. I will try again from the beginning.
I'll pass the information.

Thanks.


On Tue, Oct 12, 2021 at 5:04 PM Henning Follmann
 wrote:
>
> On Mon, Oct 11, 2021 at 06:04:08PM -0500, Nicholas Geovanis wrote:
> > On Mon, Oct 11, 2021, 7:31 AM Gokan Atmaca  wrote:
> >
> > > Hello
> > >
> > > I am using openldap. I configured a different server as ldap client.
> > > When I say "id user", the information comes. I have two organized
> > > units. "people" and "groups". my test environment.  But I can't login.
> > > What could be causing the problem?
> > >
> >
> > The immediate reason for the failure should be found in the sshd logs in
> > /var. But the trick with LDAP for login authentication is this:
>
> why should this be in the sshd logs?
>
> Is he/she even try to ssh into that machine and using openldap as a
> passwort store? Or a local login, httpd, email...
>
> He/she might even try to just login into ldap, from the post
> it is not clear what he/she is actually trying.
>
> >
> > (1) Make sure the services file is stepping thru the authentication
> > databases in the order you believe is correct.
> > (2) make sure name resolution is doing what you think it's doing.
> > (3) Make sure that clock time is synchronized across all servers involved
> > in that login and authentication.
> >
> >
> > Example:
> > > $ id gokhan (ldap_user)
> > > uid=1(gokhan) gid=2000(ob) groups=2000(ob)
> > >
> > > Thanks.
> > >
> > >
> > > --
> > > ⢀⣴⠾⠻⢶⣦⠀
> > > ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
> > > ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
> > > ⠈⠳⣄
> > >
> > >
>
> --
> Henning Follmann   | hfollm...@itcfollmann.com
>



Re: Bash script last 4 folder delete

2021-10-12 Thread Gokan Atmaca
> unicorn:~$ mkdir /tmp/x && cd "$_"
> unicorn:/tmp/x$ mkdir 98 99 100 101 102 103 104
> unicorn:/tmp/x$ echo *
> 100 101 102 103 104 98 99

Hello Gred

Very thanks. Worked :)

Best regards...


On Tue, Oct 12, 2021 at 7:04 PM Greg Wooledge  wrote:
>
> On Tue, Oct 12, 2021 at 05:41:59PM +0300, Gokan Atmaca wrote:
> > I have directories created at different times. This last updated
> > directory is in the directory with a symbolic link named "last".
> > Directories are named from 100 to 110. what i want is to delete all
> > directories except the folder named "last" and 4 before it. How can I
> > do that?
> >
> > Exampe_folder_list:
> > 100
> > 101
> > 102
> > 103
> > 104
> > 105
> > 106
> > 107
> > 108
> > 109
> > 110
> > last -> /root/test1/110
>
> I have a serious problem with this example: it doesn't show what happens
> when the number of digits changes.  What if the first (oldest) directory
> were number 99 instead of 100?  Would it be named "99", or would it be
> named "099"?  When you get to directory number 1000, is there going to
> be another change in the number of digits?
>
> Because of this ambiguity, we have to assume the *worst* case, which is
> that the number of digits changes over time.  The directory names will
> be "99", "1000", and so on.  Not a fixed length.
>
> Why does this matter?  Because when you list the directory names and sort
> them by name, you will get a mangled sequence:
>
> unicorn:~$ mkdir /tmp/x && cd "$_"
> unicorn:/tmp/x$ mkdir 98 99 100 101 102 103 104
> unicorn:/tmp/x$ echo *
> 100 101 102 103 104 98 99
>
> The names are sorted lexicographically, not numerically.  So, the simplest
> approaches are NOT permitted.  They will fail.
>
> What does that leave?  Well, the more complicated approaches, of course.
>
> If we believe Gokan's assertion that the directory names will always be
> strictly numeric, or the word "last", then we can use "sort -n" to get
> them in sequence.
>
> unicorn:/tmp/x$ printf '%s\n' * | sort -n
> 98
> 99
> 100
> 101
> 102
> 103
> 104
>
> >From there, it becomes pretty straightforward.  We read these names into
> an array, and process all except the last 4.
>
> Here's one way to do that:
>
> unicorn:/tmp/x$ mapfile -t dirs < <(printf '%s\n' * | sort -n)
> unicorn:/tmp/x$ n=${#dirs[@]}
> unicorn:/tmp/x$ echo "${dirs[@]:0:n-4}"
> 98 99 100
>
> The dirs array holds all of the names.  We count how many there are, and
> then process "all but 4" of them, starting from element 0.  In my example,
> there are 7 directory names, so we process 3 of them.
>
> We also want to avoid processing "last", so we probably want a glob other
> than * for our input.  We could get fancy and use an extended glob like
> !(last) -- or we could simply use [0-9]* to match only the names that
> begin with a digit.  In the interest of simplicity, let's do the second
> thing.
>
> So, the script might look something like this:
>
>
> #!/bin/bash
> cd /wherever || exit 1
> mapfile -t dirs < <(printf '%s\n' [0-9]* | sort -n)
> n=${#dirs[@]}
> echo rm -rf "${dirs[@]:0:n-4}"
>
>
> This will *print* a command instead of running it.  If you test it and
> see that the command looks sensible, then change "echo rm" to "rm" and
> voila.
>



Re: LUKS encryption help

2021-10-12 Thread David Wright
On Tue 12 Oct 2021 at 01:12:21 (-0400), Cindy Sue Causey wrote:
> On 10/11/21, detr...@tuta.io  wrote:
> > Hello friends, I'm sending this last email to inform you that I have given
> > up on trying to recover the contents of my external hard drive and that I
> > formatted it.
> > Thank you to every single one of you who spared their time to try and help
> > me.
> > On one last note, I should I drag attention to what seemed to be a bug on
> > the boot screen that asked for my LUKS password: It considered backspaces as
> > a normal character. I type my password and it shows an asterisk on the
> > screen for every character I type - instead of deleting the asterisk, the
> > backspace key created one more asterisk each time I pressed it.
> 
> DISCLAIMER: Mine doesn't display the asterisks, but maybe this is
> still somehow what's occurring that causes that asterisks to appear
> where they aren't expected.
> 
> This sounds like a twist on something that's aggravating for me on the
> "console" reached via e.g. "CTRL+F3". It happens with my user name
> when I'm typing too fast ahead of the speed of my brain.
> 
> Mine occurs with a fairly basic debootstrapped XFCE4's "console". I'll
> type in my username then hit TAB the way I normally do via the initial
> GUI login screen. For those console logon instances, I should be
> hitting ENTER immediately after the username. If I backspace to
> eliminate the TAB's blank space addition to my username instead of
> attempting CTRL+C to start over, the logon attempt fails.
> 
> All I can figure is that it's treating both the TAB and backspace
> keyboard actions as necessary keystroke parts of the logon name. Since
> they're not, that's apparently why it fails. If that is by intentional
> design, repeated personal experience has been that... it works!

I don't know what a CTRL+F3 console is, and googling this only hints
that it might be   /xfwm4/custom/F3 workspace_3_key   and
/xfwm4/default/F3 workspace_3_key, whatever that is.

So my first step would be to find out what process it is that you're
typing into when all this occurs.

> Something similar also occurs for the password. I can backspace all I
> want in a GUI xfce4-terminal window, and it works fine after the
> proper password is eventually entered (e.g. for gaining root
> privileges). On that CTRL+F3 console, it appears to treat each
> corrective backspace action as a deliberate, additional keystroke part
> of the password instead of as a user correcting a typing error.

Ditto.

> It occurred to me to try the same thing to run "apt-get update" while
> over there in the CTRL+F3 console. The password works fine no matter
> how many TAB and backspace entries a user makes after one successfully
> logs in to get to that point of access.

Ditto, and what's asking for a password with apt-get?

Pinning down the exact process might not be straightforward or
particularly productive. My own attempt (an asterisk occurrence) was
fairly fruitless as the answer appeared to be udisksctl, which under
other circumstances emits no asterisks.

https://lists.debian.org/debian-user/2019/06/msg00585.html

Cheers,
David.



Re: Bash script last 4 folder delete

2021-10-12 Thread Greg Wooledge
On Tue, Oct 12, 2021 at 05:41:59PM +0300, Gokan Atmaca wrote:
> I have directories created at different times. This last updated
> directory is in the directory with a symbolic link named "last".
> Directories are named from 100 to 110. what i want is to delete all
> directories except the folder named "last" and 4 before it. How can I
> do that?
> 
> Exampe_folder_list:
> 100
> 101
> 102
> 103
> 104
> 105
> 106
> 107
> 108
> 109
> 110
> last -> /root/test1/110

I have a serious problem with this example: it doesn't show what happens
when the number of digits changes.  What if the first (oldest) directory
were number 99 instead of 100?  Would it be named "99", or would it be
named "099"?  When you get to directory number 1000, is there going to
be another change in the number of digits?

Because of this ambiguity, we have to assume the *worst* case, which is
that the number of digits changes over time.  The directory names will
be "99", "1000", and so on.  Not a fixed length.

Why does this matter?  Because when you list the directory names and sort
them by name, you will get a mangled sequence:

unicorn:~$ mkdir /tmp/x && cd "$_"
unicorn:/tmp/x$ mkdir 98 99 100 101 102 103 104
unicorn:/tmp/x$ echo *
100 101 102 103 104 98 99

The names are sorted lexicographically, not numerically.  So, the simplest
approaches are NOT permitted.  They will fail.

What does that leave?  Well, the more complicated approaches, of course.

If we believe Gokan's assertion that the directory names will always be
strictly numeric, or the word "last", then we can use "sort -n" to get
them in sequence.

unicorn:/tmp/x$ printf '%s\n' * | sort -n
98
99
100
101
102
103
104

>From there, it becomes pretty straightforward.  We read these names into
an array, and process all except the last 4.

Here's one way to do that:

unicorn:/tmp/x$ mapfile -t dirs < <(printf '%s\n' * | sort -n)
unicorn:/tmp/x$ n=${#dirs[@]}
unicorn:/tmp/x$ echo "${dirs[@]:0:n-4}"
98 99 100

The dirs array holds all of the names.  We count how many there are, and
then process "all but 4" of them, starting from element 0.  In my example,
there are 7 directory names, so we process 3 of them.

We also want to avoid processing "last", so we probably want a glob other
than * for our input.  We could get fancy and use an extended glob like
!(last) -- or we could simply use [0-9]* to match only the names that
begin with a digit.  In the interest of simplicity, let's do the second
thing.

So, the script might look something like this:


#!/bin/bash
cd /wherever || exit 1
mapfile -t dirs < <(printf '%s\n' [0-9]* | sort -n)
n=${#dirs[@]}
echo rm -rf "${dirs[@]:0:n-4}"


This will *print* a command instead of running it.  If you test it and
see that the command looks sensible, then change "echo rm" to "rm" and
voila.



Re: Bash script last 4 folder delete

2021-10-12 Thread David Wright
On Tue 12 Oct 2021 at 17:41:59 (+0300), Gokan Atmaca wrote:
> 
> I have directories created at different times. This last updated
> directory is in the directory with a symbolic link named "last".
> Directories are named from 100 to 110. what i want is to delete all
> directories except the folder named "last" and 4 before it. How can I
> do that?
> 
> Exampe_folder_list:
> 100
> 101
> 102
> 103
> 104
> 105
> 106
> 107
> 108
> 109
> 110
> last -> /root/test1/110
> 
> 
> How can I do that?

You could "find" the directories concerned, "sort" by some criteria
(name, or time etc), use "head --lines=-5" to drop the last five lines,
and "rmdir/rm" to remove any remaining in the list.

For fewer processes, you could do a similar set of operations in
shell by constructing an array, removing five elements, and using
any remaining elements to remove the directories (and their contained
files) in the same manner.

Remember to deal with the symlink in whatever manner you choose
(check it, ignore it, etc).

Before I actually used either method, I would test it with "echo"
or "mv -i" rather than removing anything, and before I attempted
the latter, I would refresh my recollections of these pages:

https://mywiki.wooledge.org/BashGuide/Arrays
https://www.tldp.org/LDP/abs/html/arrays.html

BTW your Subject line implies the opposite.

Cheers,
David.



Re: override.jessie.main.gz file removed from http://deb.debian.org/debian/indices/

2021-10-12 Thread Thomas Schmitt
Hi,

Ibrahim Vanak wrote:
> Can someone please help me with this? I am seeing this as a blocker for my
> work. 

Google found me at the end of its second result page an outdated mirror:

  http://debian.mirror.euserv.net/indices/override.jessie.main.gz

Downloading yields a file of 233790 bytes with SHA256
  a8cd51bfab6b79b6d51b516549f699d4b796ee619065036d67f0b635cde529f0

Uncompressed content looks like

  base-files  requiredadmin
  base-passwd requiredadmin
  debconf requiredadmin
  ...
  zope-mysqldaextra   zope
  zope-quotafolderextra   zope
  zope-replacesupport extra   zope

I'll keep it for a while. Just in case you cannot download.
Please report when you succeeded with downloading.

Now i wonder what this file is supposed to do. :))


Have a nice day :)

Thomas



Re: override.jessie.main.gz file removed from http://deb.debian.org/debian/indices/

2021-10-12 Thread Andrew M.A. Cater
On Tue, Oct 12, 2021 at 08:24:32PM +0530, Ibrahim Vanak wrote:
> Hello,
> 
> Can someone please help me with this? I am seeing this as a blocker for my
> work.
> 
> Thanks,
> Ibrahim
> 
> On Wed, Oct 6, 2021 at 7:56 PM Ibrahim Vanak 
> wrote:
> 
> > Hello,
> >
> > override.jessie.main.gz file is not available on
> > http://deb.debian.org/debian/indices/ . Can anyone please let us know why
> > and how we can make it available again. Is there maintenance going on for
> > http://deb.debian.org ?
> >
> > Thanks,
> > Ibrahim
> >

Hi Ibrahim,

Are you subscribed to the list?

I ask only because you asked this on the 6th and got some replies -
look at the thread from 
https://lists.debian.org/debian-user/2021/10/msg00282.html onwards

At this point, Jessie is supported only by the people running ELTS.

You might want to look at https://wiki.debian.org/LTS/Extended and then
contact Freexian who might be able to help. https://www.freexian.com/

Other than that: upgrade and move forwards in time, perhaps.

All the very best, as ever,

Andy Cater



Re: override.jessie.main.gz file removed from http://deb.debian.org/debian/indices/

2021-10-12 Thread Brian
On Tue 12 Oct 2021 at 20:24:32 +0530, Ibrahim Vanak wrote:

> Hello,
> 
> Can someone please help me with this? I am seeing this as a blocker for my
> work.

Any use?

  http://ftp.swin.edu.au/debian/indices/

-- 
Brian.



Re: override.jessie.main.gz file removed from http://deb.debian.org/debian/indices/

2021-10-12 Thread Ibrahim Vanak
Hello,

Can someone please help me with this? I am seeing this as a blocker for my
work.

Thanks,
Ibrahim

On Wed, Oct 6, 2021 at 7:56 PM Ibrahim Vanak 
wrote:

> Hello,
>
> override.jessie.main.gz file is not available on
> http://deb.debian.org/debian/indices/ . Can anyone please let us know why
> and how we can make it available again. Is there maintenance going on for
> http://deb.debian.org ?
>
> Thanks,
> Ibrahim
>


Re: How exactly do I create a Debian live USB?

2021-10-12 Thread Roy J. Tellason, Sr.
On Tuesday 12 October 2021 08:07:58 am Махно wrote:
> Hello. Your PC doesn't have a floppy drive, but you have /dev/fd0, and many
> things will try to use it. You can disable this message
> (blk_update_request: I/O error, dev fd0, sector 0 op).
> As root
> 
> # rmmod floppy
> # echo "blacklist floppy" | tee /etc/modprobe.d/blacklist-floppy.conf
> # dpkg-reconfigure initramfs-tools

My computer does have one,  but I don't use it at all.  Seeing similar error 
messaged,  I've copied and pasted these three lines into a terminal window.  
We'll see if those messages go away next time I boot...

-- 
Member of the toughest, meanest, deadliest, most unrelenting -- and
ablest -- form of life in this section of space,  a critter that can
be killed but can't be tamed.  --Robert A. Heinlein, "The Puppet Masters"
-
Information is more dangerous than cannon to a society ruled by lies. --James 
M Dakin



Bash script last 4 folder delete

2021-10-12 Thread Gokan Atmaca
Hello

I have directories created at different times. This last updated
directory is in the directory with a symbolic link named "last".
Directories are named from 100 to 110. what i want is to delete all
directories except the folder named "last" and 4 before it. How can I
do that?

Exampe_folder_list:
100
101
102
103
104
105
106
107
108
109
110
last -> /root/test1/110


How can I do that?

-- 
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄



Re: OpenLdap

2021-10-12 Thread Henning Follmann
On Mon, Oct 11, 2021 at 06:04:08PM -0500, Nicholas Geovanis wrote:
> On Mon, Oct 11, 2021, 7:31 AM Gokan Atmaca  wrote:
> 
> > Hello
> >
> > I am using openldap. I configured a different server as ldap client.
> > When I say "id user", the information comes. I have two organized
> > units. "people" and "groups". my test environment.  But I can't login.
> > What could be causing the problem?
> >
> 
> The immediate reason for the failure should be found in the sshd logs in
> /var. But the trick with LDAP for login authentication is this:

why should this be in the sshd logs?

Is he/she even try to ssh into that machine and using openldap as a
passwort store? Or a local login, httpd, email...

He/she might even try to just login into ldap, from the post
it is not clear what he/she is actually trying.

> 
> (1) Make sure the services file is stepping thru the authentication
> databases in the order you believe is correct.
> (2) make sure name resolution is doing what you think it's doing.
> (3) Make sure that clock time is synchronized across all servers involved
> in that login and authentication.
> 
> 
> Example:
> > $ id gokhan (ldap_user)
> > uid=1(gokhan) gid=2000(ob) groups=2000(ob)
> >
> > Thanks.
> >
> >
> > --
> > ⢀⣴⠾⠻⢶⣦⠀
> > ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
> > ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
> > ⠈⠳⣄
> >
> >

-- 
Henning Follmann   | hfollm...@itcfollmann.com



Re: Buster to bullseye upgrade: Worth it or not?

2021-10-12 Thread David Palacio
On Mon, Oct 11, 2021, at 7:59 AM, local10 wrote:
> Hi,
>
> Am considering upgrading from buster to bullseye and looking for some 
> feedback from those who have already done so. Was it worth it, in your 
> opinion? Anything you like in particular about bullseye? Any 
> problems/issues or degradation of performance/functionality/features, 
> especially related to the KDE and its apps?
>
> I'm asking this because something upgrading just isn't worth it, it's 
> better perhaps to wait for the next release, like for example when KDE 
> 3.5 was replaced with the initial KDE 4.x, that upgrade created so many 
> problems (for me) while adding very little in terms of benefits.
>
> Thanks

Hi,

I run Bullseye and I find it very solid and trouble free. Though I didn't 
upgrade from Buster but instead used to run unstable and switched to stable 
when it released. Bullseye's KDE is very good and I have no issues with it 
other than I don't recommend you to run a Wayland session of it, you should 
stick with X11 for the time being. There exists unofficial repositories by a 
Debian/KDE packager if you wish to get more recent KDE software releases built 
for Bullseye.



[HS] dhcps

2021-10-12 Thread David Martin
Bonjour à tous,

Nmap et le plugin broadcast-dhcp-discover me renvoi bien
l'identification du serveur dhcp de mon boulot.

Mais il me crache aussi 38 hotes avec ce type de ligne :

PORT   STATESERVICE
67/tcp filtered dhcps
MAC Address: 90:1B:0E:FD:B0:E3 (Fujitsu Technology Solutions GmbH)

Nmap scan report for 172.19.248.62
Host is up (0.0012s latency)

Ce sont des postes windows, quel est ce service ?  le service client de
microsoft ?
le service DHCP d'une multitude de serveur qui nous mettent la zizanie (ce
qui est le cas si c'est bien ça) ?

A votre avis ?



-- 
david martin


Re: Buster to bullseye upgrade: Worth it or not?

2021-10-12 Thread Махно
I think the upgrade is worth it. Debian ąą is rock solid. I didn't
notice practically any problems, except that libreoffice start up
longer than in Debian 10.


2021-10-11, pr, 19:40 Anssi Saari  rašė:

> local10  writes:
>
> > Am considering upgrading from buster to bullseye and looking for some
> > feedback from those who have already done so. Was it worth it, in your
> > opinion?
>
> Absolutely. I have a new video card in my desktop with no support in
> Buster. Not even in backports. Could've hacked support in but didn't
> want to and Bullseye release was close.
>
> Everything else works pretty much as before. Minor tweak was needed due
> to changes in newer org-mode. I actually cleaned up my system but didn't
> quite get it out of FrankenDebian state. Have Megasync and Spotify
> still. Also Debian Multimedia but I don't know if that's considered
> FrankenDebian.
>
> I don't run KDE in Debian, except for Konsole. The window manager on my
> desktop is called Awesome and it hasn't been updated in a while so
> obviously no change. Firefox, Thunderbird, mpv, also no change I
> noticed. Well, I don't actually run Debian's packaged Firefox due to a
> long standing issue. It's possible that has been fixed now so worth a
> look.
>
>


Re: How exactly do I create a Debian live USB?

2021-10-12 Thread Махно
Hello. Your PC doesn't have a floppy drive, but you have /dev/fd0, and many
things will try to use it. You can disable this message
(blk_update_request: I/O error, dev fd0, sector 0 op).
As root

# rmmod floppy
# echo "blacklist floppy" | tee /etc/modprobe.d/blacklist-floppy.conf
# dpkg-reconfigure initramfs-tools


2021-10-12, an, 03:30 Sean Behan  rašė:

> That cp command looks fine, but if you want to try using dd with
> offsets, try:
>
> sudo dd if=debian-live-11.0.0-amd64-standard.iso of=/dev/sdb bs=4M
>
> if is input file, of is output file, bs is blocksize which I set to 4MB
> which is a typical block size
>
> If that still doesn't work it's likely an issue with the USB flash drive
> you're using.
>
> ---
> Sean Behan
>
> On 2021-10-11 06:38, kaye n wrote:
> > Hello Friends!
> >
> > I did this and was able to boot my newly created Debian 11 live USB but
> was
> > stuck in a black terminal-like screen where it says, I/O error, etc.
> >
> > Using GParted, I created an MS-DOS partition table and formatted the USB
> > stick in fat32.
> >
> > Then I used these commands
> >
> > sudo cp  debian-live-11.0.0-amd64-standard.iso /dev/sdb
> > sync
> >
> > All seemed fine until I booted the live USB and got the error message as
> > stated above.
> >
> > Thank you for your time.
>
>


Re: New debian installation disk partition

2021-10-12 Thread Joe
On Mon, 11 Oct 2021 14:03:50 -0700
David Christensen  wrote:

> On 10/11/21 13:13, Joe wrote:
> > On Mon, 11 Oct 2021 12:29:48 -0700
> > David Christensen  wrote:
> > 
> >   
> >> I must detach e-mail attachments and save them on the server  
> > 
> > You could run an IMAP server on your server, set up an account in
> > your email client with a suitable directory structure and drag and
> > drop old email into archives, complete with attachments, so
> > everything remains online. Many email clients can do this fairly
> > automatically.
> > 
> > It's easier still if you run a full MTA on the server, and don't use
> > local email accounts at all, but many people don't want the (very
> > minimal) maintenance needs.  
> 
> 
> I hosted WWW and NWN servers at my home many years ago.  Bad idea.
> 
> 
> I have domain hosting through he.net, and prefer their professionally 
> managed e-mail.
> 
>
Yes, I would never consider running a public web server, I know just
enough about web security to know that I don't know anything like
enough to keep it secure. 

But I don't expose the IMAP server, either, it's internal only. I get
to it by ssh or vpn while away from home. It's less convenient, but
less to worry about.

-- 
Joe



Re: Sai

2021-10-12 Thread Narcis Garcia
Jo et puc ajudar en programes que no estiguin ben integrats amb Systemd.
Com ho tens ara a Debian 11?


Narcis Garcia

__
I'm using this dedicated address because personal addresses aren't
masked enough at this mail public archive. Public archive administrator
should fix this against automated addresses collectors.
El 11/10/21 a les 17:15, Jordi ha escrit:
> Bon dia, Quan tenia el debian 10, em va costar força configurar el Sai
> i trobar-li el controlador adequat, però finalment vaig aconseguir que
> funcionés bé. De fet el systemd no aconseguia comunicar mai amb el
> controlador per això l'engego amb un script amb contingut: 
> 
>  /lib/nut/upsd
> sleep 20
> /lib/nut/nutdrv_qx -a Sai
> sleep 10
> /lib/nut/upsmon start
> 
> Amb debian 11 però, el sai no parava de pitar i no aconseguia connectar
> amb el controlador. Després de remanar els cables sembla que es va
> ficar bé.
> 
> L'altre dia, durant la aturada protesta, vaig parar la llum i
> l'ordinador es va parar d'immediat, ho va fer però, correctament amb un
> shutdown i amb la bateria al 100%.
> 
> Avui he fet una prova i he deshabilitat les entrades 
> /sbin/upsmon -c fsd
> 
> que tinc en un executable que envia missatges al correu local i extern
> i en determinades situacions hauria d'aturar l'ordinador.
> He estat pendent per tornar la llum abans de que la bateria arribés a
> un nivell crític, però quan ha arribat a LOW, l'ordinador s'ha aturat
> per la meva sorpresa amb un shutdown.
> 
> En principi si tinc: NOTIFYCMD /usr/local/bin/ups-control.sh al
> upsmon.conf no hauria de fer res el upssched, però no tinc idea d'on ha
> sortit el senyal per aturar l'ordinador.
> 
> Algú em pot orientar ?
> 
> Salutacions
> 
> Jordi.
> 



Re: krijg logitech p710e niet aan de praat als microfoon

2021-10-12 Thread Wouter Verhelst
On Tue, Sep 28, 2021 at 02:42:37PM +0200, Dennis van Dok wrote:
> On 28-09-2021 13:06, Wouter Verhelst wrote:
> 
> > --- /etc/bluetooth/main.conf2021-09-08 19:15:10.893458634 +0200
> > +++ /etc/bluetooth/main.conf.dpkg-dist  2021-08-25 10:33:39.0 +0200
> > @@ -57,7 +57,7 @@
> >  # or both Multiple Profiles Single Device (MPSD) and Multiple Profiles 
> > Multiple
> >  # Devices (MPMD) configurations.
> >  # Possible values: "off", "single", "multiple"
> > -MultiProfile = multiple
> > +#MultiProfile = off
> >  
> >  # Permanently enables the Fast Connectable setting for adapters that
> >  # support it. When enabled other devices can connect faster to us,
> > 
> > Misschien is dat waarom het bij mij wel werkt?
> 
> Ik kan dat eens proberen (heb het apparaat nu niet hier natuurlijk...)
> 
> Wat ik wel vreemd vind is dat mijn Bose headset het wel gewoon 'doet' met 
> beide profielen.
> 
> Ik ga nog wel even dieper duiken in de fantastische wereld van bluetooth. 
> Misschien
> heeft het wel iets te maken met de versie van bluetooth die het apparaat 
> ondersteund.

Ondertussen heb ik het zelfde probleem ook voorgehad. Vreemd.

Ik heb wat terug opgezocht, en dan gevonden dat die "MultiProfile"
setting daar inderdaad voor was -- maar dat werkt dus niet bij iedereen.

In mijn geval leek het opgelost te raken door pulseaudio te herstarten
als mijn headset verbonden was:

systemctl --user restart pulseaudio.service

-- 
 w@uter.{be,co.za}
wouter@{grep.be,fosdem.org,debian.org}



Re: New debian installation disk partition

2021-10-12 Thread David Christensen

On 10/11/21 23:58, Andrei POPESCU wrote:

On Lu, 11 oct 21, 13:56:28, David Christensen wrote:

On 10/11/21 13:39, Andrei POPESCU wrote:



ZFS has native encryption now, any particular reason to prefer using a
LUKS container instead?


I use LUKS because ZFS native encryption was not available OOTB the last
time I looked on Debian.  What version of d-i has ZFS native encryption?


I wasn't aware of any kind of support for ZFS in d-i.





If d-i does not have native support for ZFS encryption, then when I 
break my computer I will be unable to use the d-i media to access my 
disk(s).



Therefore, I prefer a LUKS container.


David



Re: New debian installation disk partition

2021-10-12 Thread Andrei POPESCU
On Lu, 11 oct 21, 13:56:28, David Christensen wrote:
> On 10/11/21 13:39, Andrei POPESCU wrote:
> > On Lu, 11 oct 21, 12:29:48, David Christensen wrote:
> > > 
> > > Once Debian is running, I suggest that you connect the HDD, partition the
> > > HDD using GPT, create one partition using 95% of available space, 
> > > initialize
> > > a LUKS container inside the partition, and create a ZFS pool with name
> > > "data" and with option "copies=2" using the encrypted mapper node.  The
> > > zpool will be mounted at "/data", will be able to store ~237 GB, and ZFS
> > > will be able to survive "one or a few" sectors going bad without any data
> > > loss (it is wise to scrub periodically).
> > 
> > ZFS has native encryption now, any particular reason to prefer using a
> > LUKS container instead?
> 
> I use LUKS because ZFS native encryption was not available OOTB the last
> time I looked on Debian.  What version of d-i has ZFS native encryption?

I wasn't aware of any kind of support for ZFS in d-i.

The Debian ZFS wiki page doesn't mention root-on-ZFS at all and the 
official upstream instructions (for buster) are using debootstrap from a 
live image for installation.

https://wiki.debian.org/ZFS
https://openzfs.github.io/openzfs-docs/Getting%20Started/Debian/Debian%20Buster%20Root%20on%20ZFS.html

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser


signature.asc
Description: PGP signature


Re: How exactly do I create a Debian live USB?

2021-10-12 Thread Andrei POPESCU
On Ma, 12 oct 21, 06:07:20, kaye n wrote:
> On Tue, Oct 12, 2021, 00:26 Andrei POPESCU, 
> wrote:
> 
> > On Lu, 11 oct 21, 21:20:25, kaye n wrote:
> > >
> > > Do I choose xfce, kde, mate, etc. ?
> >
> > My personal choice, even for faster machines is LXDE. It might seem a
> > bit spartan, especially if you compare with Gnome or KDE, but it is also
> > lightning fast, and all basic functionality is there.
> 
> Sorry forgot about the ram. It's 3GB.

That's more than enough for LXDE and LXQt.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser


signature.asc
Description: PGP signature