XFCE4 without panels

2023-09-29 Thread paulf
Folks:

I'm trying to run XFCE4 with no (XFCE4) panels. I prefer polybar and
tint2. I've searched the internet high and low, and all the advice I
can find is old and doesn't work for the current (Debian 12) version.
Settings > Session and Startup etc. doesn't provide a way, and the
XFCE4 panel app won't allow you to delete the last (only) panel.

Anyone know how to start XFCE4 without the panels?

Paul

-- 
Paul M. Foster
Personal Blog: http://noferblatz.com
Company Site: http://quillandmouse.com
Software Projects: https://gitlab.com/paulmfoster



Re: naming a partition after the fact?

2023-09-29 Thread Max Nikulin

On 30/09/2023 02:54, gene heskett wrote:

On 9/29/23 15:17, Andy Smith wrote:

Probably, but adding a label to a *filesystem* is easy, so will
that suit your needs? "man e2label" for ext* filesystems.


That is what I couldn't remember Andy, thanks.


In the case of GPT, partitions may have names that are independent of 
filesystem labels. It is similar to partition UUID and filesystem UUID.



If not, what are you actually trying to achieve with partition
names? I can't think what use they have ever been to me in several
decades.


Non volatility. Partition names are permanent until changed, or the 
drive upchucks.  blkid's are quite a bit more volatile and have bitten 
me several times in now long past history.


Unless you figure out what you did wrong file system (or partition) 
UUIDs, you may be bitten by partition (or file system labels) more 
severely. Some variants:
- Blindly clone a disk without further steps to assign new UUIDs and 
accidentally plug both disks, so system may pick partition from any of 
them. E.g. sgdisk has -G, --randomize-guids (filesystem IDs are not 
affected however, so need to be changed separately)
- Random number generator is not properly initialized, so assigned UUIDs 
are not random (no real time clock, lack of entropy inside a VM or 
inside a container).





Re: naming a partition after the fact?

2023-09-29 Thread David Wright
On Fri 29 Sep 2023 at 20:32:23 (+), Andy Smith wrote:
> On Fri, Sep 29, 2023 at 10:14:59PM +0200, Michel Verdier wrote:
> > On 2023-09-29, Andy Smith wrote:
> > > If not, what are you actually trying to achieve with partition
> > > names? I can't think what use they have ever been to me in several
> > > decades.
> > 
> > I use label to mount different USB devices with one fstab entry.
> 
> Isn't that just a filesystem label not a partition label?
> 
> If you do mean a partition label, can you elaborate as to what the
> use case is and why a filesystem label doesn't work for it? I'm sure
> there must be one, it's just I haven't personally encountered it.

As well as the aforementioned case of finding encrypted partitions to
unlock, the d-i installer's partitioner displays PARTLABELs when set.

I've never got around to testing whether devices like cameras can
handle GPT SD cards, and whether PARTLABELs are more robust than
filesystem LABELs when a device suddenly decides to reformat the card.

As for the name, I think "Partition Name" is the commonest term,
though, as here, I usually write PARTLABEL because it seems the most
distinguishable from a filesystem LABEL. (See man fstab and man mount.)

Cheers,
David.



Re: swap-fle on arm64, need to disable, how?

2023-09-29 Thread Max Nikulin

On 30/09/2023 03:36, gene heskett wrote:

On 9/29/23 15:21, Andy Smith wrote:


On Fri, Sep 29, 2023 at 03:15:54PM -0400, gene heskett wrote:
I have SSD's for swap on an rpi4b, so to lessen the abuse of the u-sd 



cnc@rpi4:/etc$ sudo swapon -s
Filename    Type    Size 
Used    Priority
/dev/zram0  partition   1048572 
98304   100
/dev/sda2   partition   9859068 
0   -3


I need it to forget zram0 and use the swap on sda2


Out of curiosity, is zram0 really belongs to the SD card or it is 
compressed pages in RAM?


Besides fstab it might be configured through a systemd .mount target.

Accordingly to https://wiki.archlinux.org/title/Zram it requires more 
configuration however.




Re: naming a partition after the fact?

2023-09-29 Thread Andy Smith
Hello,

On Fri, Sep 29, 2023 at 06:01:09PM -0400, Stefan Monnier wrote:
> > If you do mean a partition label, can you elaborate as to what the
> > use case is and why a filesystem label doesn't work for it? I'm sure
> 
> FWIW, I use "partition" labels (more specifically LVM names) because
> they have the advantage of working the same no matter what the partition
> holds, so I don't need to remember which command to use for
> which filesystem.

Sorry, being familiar both with partition labels, and LVM, I don't
know what an "LVM name" is in relation to a partition label. Can you
elaborate?

In my understanding, an LVM name is just the name of an LVM device
like /dev/vgname/lvname whereas a partition label specifically is an
attribute of a GPT partition entry:

https://gparted.org/display-doc.php?name=help-manual#gparted-name-partition

So in my understanding, these things are not equivalent concepts.

As evidenced by this thread lots of people confuse partition
names/labels for filesystem labels, even though they are distinct
things, which was why I asked Gene if he really meant a partition
label when he wrote that.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Re: naming a partition after the fact?

2023-09-29 Thread Stefan Monnier
> If you do mean a partition label, can you elaborate as to what the
> use case is and why a filesystem label doesn't work for it? I'm sure

FWIW, I use "partition" labels (more specifically LVM names) because
they have the advantage of working the same no matter what the partition
holds, so I don't need to remember which command to use for
which filesystem.


Stefan



Re: Sunrise and Sunset from terminal

2023-09-29 Thread Karl Vogel
On Fri, Sep 29, 2023 at 12:48:56PM -0400, Bruno Kleinert wrote:
> Am Samstag, dem 23.09.2023 um 23:51 +0200 schrieb s...@gmx.com:
> > Is there a way to get sunrise and sunset time from command interpreter?
> > I want to use its output for a script!
> 
> in case you're looking for a possibility to execute commands at sunset
> and/or sunrise, I use remind for this (apt install remind) to trigger my
> roller blinds.  Pro: Does not rely on any external web service.

Remind is an incredibly useful program.  Give it your latitude and longitude,
and it can tell you sunrise and sunset times.  My coordinates:

  
https://www.google.com/search?q=dayton+ohio+latitude+longitude+degrees+minutes+seconds
  Dayton, OH, USA is located at GPS coordinates of
  39d 45m 32.2164s N and 84d 11m 29.7780s W.

Version of remind:

  me% remind -V 2>&1 | grep Copyright
  REMIND 04.02.04 (English version) Copyright 1992-2023 Dianne Skoll

Remind script:

  me% cat sunrise-sunset.rem
  ; Show sunrise/sunset
  SET $LatDeg  39
  SET $LatMin  45
  SET $LatSec  32
  SET $LongDeg 84
  SET $LongMin 11
  SET $LongSec 29
  MSG sunrise at [sunrise(trigdate())], sunset at [sunset(trigdate())]

Sunrise/sunset for today:

  me% remind -h sunrise-sunset.rem '*1' | sed -e '/^$/d'
  Reminders for Friday, 29th September, 2023 (today):
  sunrise at 07:30, sunset at 19:22

Sunrise/sunset for the next week:

  me% remind -h sunrise-sunset.rem '*7' | sed -e '/^$/d'
  Reminders for Friday, 29th September, 2023 (today):
  sunrise at 07:30, sunset at 19:22
  Reminders for Saturday, 30th September, 2023:
  sunrise at 07:31, sunset at 19:21
  Reminders for Sunday, 1st October, 2023:
  sunrise at 07:32, sunset at 19:19
  Reminders for Monday, 2nd October, 2023:
  sunrise at 07:33, sunset at 19:18
  Reminders for Tuesday, 3rd October, 2023:
  sunrise at 07:34, sunset at 19:15
  Reminders for Wednesday, 4th October, 2023:
  sunrise at 07:35, sunset at 19:15
  Reminders for Thursday, 5th October, 2023:
  sunrise at 07:36, sunset at 19:12

-- 
Karl Vogel  I don't speak for anyone but myself.

German: "Er hat da geparkt, wo ihm die Karre vom Arsch gefallen ist."
English: "He parked where the car fell off his ass."
--Reddit comment about stupid/illegal parking



Re: swap-fle on arm64, need to disable, how?

2023-09-29 Thread Andy Smith
Hello,

On Fri, Sep 29, 2023 at 04:36:04PM -0400, gene heskett wrote:
> On 9/29/23 15:21, Andy Smith wrote:
> > On Fri, Sep 29, 2023 at 03:15:54PM -0400, gene heskett wrote:
> > > I have SSD's for swap on an rpi4b, so to lessen the abuse of the u-sd 
> > > card I
> > > need to turn off the swap file, and swapon -a the SSD stuff.
> > 
> > Have you looked in /etc/fstab where as you know filesystem mounts
> > are described? If the swap file is listed in there, remove it and
> > add one that's on your SSD.

[…]

> Swap file is the last thing I want, much slower than a swap partition.

There has been no performance difference between swap files and
swap partitions for more than a decade.

> cnc@rpi4:/etc$ sudo swapon -s
> FilenameTypeSize Used
> Priority
> /dev/zram0  partition   1048572 98304
> 100
> /dev/sda2   partition   9859068 0
> -3
> 
> I need it to forget zram0 and use the swap on sda2

You didn't respond to the part about /etc/fstab so we have no idea
if you found the information you needed.

Assuming you did find the errant entry in /etc/fstab, a sequence of:

1. swapoff -a
2. edit /etc/fstab to be correct
3. swapon -a

should change things to how you want them.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Re: naming a partition after the fact?

2023-09-29 Thread Michel Verdier
On 2023-09-29, Andy Smith wrote:

> Isn't that just a filesystem label not a partition label?

Yes you're right I use fs label.

> If you do mean a partition label, can you elaborate as to what the
> use case is and why a filesystem label doesn't work for it? I'm sure
> there must be one, it's just I haven't personally encountered it.

Perhaps for doing the same but with crypt partition ? In this case I
suppose the fs label is not readable without decrypting partition.



Re: swap-fle on arm64, need to disable, how?

2023-09-29 Thread gene heskett

On 9/29/23 15:21, Andy Smith wrote:

Hello,

On Fri, Sep 29, 2023 at 03:15:54PM -0400, gene heskett wrote:

I have SSD's for swap on an rpi4b, so to lessen the abuse of the u-sd card I
need to turn off the swap file, and swapon -a the SSD stuff.


Have you looked in /etc/fstab where as you know filesystem mounts
are described? If the swap file is listed in there, remove it and
add one that's on your SSD.

If it's not in there, the situation is more of a mystery and I'd
suggest you paste the output of "swapon -s" so we can see what the
system, thinks it is currently swapping to.

I assume you don't need instruction on how to turn off an existing
swap source, and how to create a new swap file.


Swap file is the last thing I want, much slower than a swap partition.


Thanks,
Andy


cnc@rpi4:/etc$ sudo swapon -s
FilenameTypeSize 
UsedPriority
/dev/zram0  partition   1048572 
98304   100
/dev/sda2   partition   9859068 
0   -3


I need it to forget zram0 and use the swap on sda2, although I may try 
to move /tmp to sda4 & ext4 now that I know how to run gparted on wayland.


Whats in zram0 ATM is lose able as I just built linuxcnc debs, docs and 
all from a git clone.


Thanks Andy.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: naming a partition after the fact?

2023-09-29 Thread Andy Smith
Hi Michel,

On Fri, Sep 29, 2023 at 10:14:59PM +0200, Michel Verdier wrote:
> On 2023-09-29, Andy Smith wrote:
> > If not, what are you actually trying to achieve with partition
> > names? I can't think what use they have ever been to me in several
> > decades.
> 
> I use label to mount different USB devices with one fstab entry.

Isn't that just a filesystem label not a partition label?

If you do mean a partition label, can you elaborate as to what the
use case is and why a filesystem label doesn't work for it? I'm sure
there must be one, it's just I haven't personally encountered it.

(That's what I was asking Gene, which Gene now seems to have
clarified that he meant filesystem label)

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Re: naming a partition after the fact?

2023-09-29 Thread Michel Verdier
On 2023-09-29, Andy Smith wrote:

> If not, what are you actually trying to achieve with partition
> names? I can't think what use they have ever been to me in several
> decades.

I use label to mount different USB devices with one fstab entry.



Re: naming a partition after the fact?

2023-09-29 Thread Andy Smith
Hello,

On Fri, Sep 29, 2023 at 03:54:40PM -0400, gene heskett wrote:
> On 9/29/23 15:17, Andy Smith wrote:
> > If not, what are you actually trying to achieve with partition
> > names? I can't think what use they have ever been to me in several
> > decades.
> 
> Non volatility. Partition names are permanent until changed, or the drive
> upchucks.  blkid's are quite a bit more volatile and have bitten me several
> times in now long past history. I think they have gotten more stable since
> around wheezy, but... A matter of trust.

So nothing that isn't also gained by filesystem label or UUID, which
are what I've tended to use instead of partition names.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Re: naming a partition after the fact?

2023-09-29 Thread gene heskett

On 9/29/23 15:17, Andy Smith wrote:

Hello,

On Fri, Sep 29, 2023 at 02:50:23PM -0400, gene heskett wrote:

I recall something I haven't used in a decade or more, but we used to have a
journal something or other that could rename a partition, and I need
something like it.


Probably, but adding a label to a *filesystem* is easy, so will
that suit your needs? "man e2label" for ext* filesystems.


That is what I couldn't remember Andy, thanks.


If not, what are you actually trying to achieve with partition
names? I can't think what use they have ever been to me in several
decades.


Non volatility. Partition names are permanent until changed, or the 
drive upchucks.  blkid's are quite a bit more volatile and have bitten 
me several times in now long past history. I think they have gotten more 
stable since around wheezy, but... A matter of trust.


Thanks Andy


Thanks,
Andy



Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: swap-fle on arm64, need to disable, how?

2023-09-29 Thread Andy Smith
Hello,

On Fri, Sep 29, 2023 at 03:15:54PM -0400, gene heskett wrote:
> I have SSD's for swap on an rpi4b, so to lessen the abuse of the u-sd card I
> need to turn off the swap file, and swapon -a the SSD stuff.

Have you looked in /etc/fstab where as you know filesystem mounts
are described? If the swap file is listed in there, remove it and
add one that's on your SSD.

If it's noit in there, the situation is more of a mystery and I'd
suggest you paste the output of "swapon -s" so we can see what the
system, thinks it is currently swapping to.

I assume you don't need instruction on how to turn off an existing
swap source, and how to create a new swap file.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Re: naming a partition after the fact?

2023-09-29 Thread gene heskett

On 9/29/23 14:50, gene heskett wrote:

Greetings all;

I recall something I haven't used in a decade or more, but we used to 
have a journal something or other that could rename a partition, and I 
need something like it. debian 12 on an rpi4b and while a sudo -E 
gparted brings up gparted on the named device, the "name partition" is 
greyed out in the menu's.  Do we now have something that can LABEL a 
partition on debian arm64's w/o disturbing the data on it?



Nevermind, I found if it wasn't mounted, I could label it.


Tnx all.

Cheers, Gene Heskett.


Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: naming a partition after the fact?

2023-09-29 Thread Andy Smith
Hello,

On Fri, Sep 29, 2023 at 02:50:23PM -0400, gene heskett wrote:
> I recall something I haven't used in a decade or more, but we used to have a
> journal something or other that could rename a partition, and I need
> something like it.

Probably, but adding a label to a *filesystem* is easy, so will
that suit your needs? "man e2label" for ext* filesystems.

If not, what are you actually trying to achieve with partition
names? I can't think what use they have ever been to me in several
decades.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



swap-fle on arm64, need to disable, how?

2023-09-29 Thread gene heskett

Greetings all;

I have SSD's for swap on an rpi4b, so to lessen the abuse of the u-sd 
card I need to turn off the swap file, and swapon -a the SSD stuff.


How?

Thnaks all.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: Problèmes à l'installation si je ne veux pas refaire les partitions de swap

2023-09-29 Thread Eric DEGENETAIS
bonsoir,
Le ven. 29 sept. 2023 à 18:34, Basile Starynkevitch
 a écrit :
>
>
> Primo, il y-a-t-il besoin de beaucoup de swap? Si on a beaucoup de RAM, le 
> swap sert peu (sauf pour l'hibernation). Si on a peu de RAM, il servira 
> beaucoup.

Comme je le disais plus haut, je n'y tiens pas plus que ça. En gros,
le swap a pour but d'éviter de planter sèchement un processus  en cas
de pic (quand on a un IDE + une instance de test et un certain nombre
d'onglets de navigateur ouverts, un pic peut toujours arriver), rien
de plus, et le but est de s'en servir exceptionnellement. Quand à
l'hibernation, dans mon cas je n'y vois aucun intérêt. Malheureusement
l'installeur debian devient dingue quand on essaie de ne pas
paramétrer de swap...

> Sur un Debian (sid  ou testing) ou Ubuntu (22 ou 23) récent, on peut swaper 
> sur un "gros" fichier (à créer avec dd puis mkswap ; pour les détails voir 
> les pages de man). Ca sera théoriquement un peu plus lent, mais sur les 
> machines actuelles, la différence sera peu perceptible en fonctionnement 
> normal.

Ça j'y tiens peu. Je n'ai pas tant besoin de swap, et je préfère
séparer les utilisations.

>
> L'autre point, c'est est-ce que l'hibernation du système est importante pour 
> vous? (personnellement ça me sert peu).
Nope, voir plus haut.
>
> Librement
> -- Basile Starynkevitch  (only mine opinions / les 
> opinions sont miennes uniquement) 92340 Bourg-la-Reine, France web page: 
> starynkevitch.net/Basile/

Cordialement

Eric Dégenètais



naming a partition after the fact?

2023-09-29 Thread gene heskett

Greetings all;

I recall something I haven't used in a decade or more, but we used to 
have a journal something or other that could rename a partition, and I 
need something like it. debian 12 on an rpi4b and while a sudo -E 
gparted brings up gparted on the named device, the "name partition" is 
greyed out in the menu's.  Do we now have something that can LABEL a 
partition on debian arm64's w/o disturbing the data on it?


Tnx all.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: Sunrise and Sunset from terminal

2023-09-29 Thread Bruno Kleinert
Am Samstag, dem 23.09.2023 um 23:51 +0200 schrieb s...@gmx.com:
> Is there a way to get sunrise and sunset time from command interpreter?
> I want to use its output for a script!
> 

Hi,

in case you're looking for a possibility to execute commands at sunset
and/or sunrise, I use remind for this (apt install remind) to trigger
my roller blinds. Pro: Does not rely on any external web service.

Kind regards,
Bruno


Re: [OT] Mutt y Gmail

2023-09-29 Thread Luis Muñoz Fuente


El 28/9/23 a las 20:20, Camaleón escribió:

> Desde hace ¿años¹? Gmail ya no permite usar la contraseña que usas 
> cuando accedes desde el webmail o aplicaciones que admitan sistemas de 
> autentificación avanzados (OAuth2).

parece que desde mayo del 2022 no funciona.

> 
> Para usar una cuenta IMAP/POP3 al uso, necesitas generar un código 
> para la aplicación desde la configuración del panel web y usar ese 
> código en la aplicaión. El código lo genera Gmail y es bastante 
> inseguro, por cierto, sólo tiene letras en minúsculas :-O.
> 
> De momento, esa opción sigue funcionando (es como lo tengo configurado 
> desde hace ya varios años), pero si no recuerdo mal, para habilitar las 
> contarseñas de aplicación tienes que activar la autentificación de 
> doble factor (2FA) y si quieres acceder también desde el webmail, te 
> manda un SMS cada vez.

He leído la información de google y confirmo todo lo que dice Camaleón

https://support.google.com/accounts/answer/6010255?sjid=5554791994877234454-EU#zippy=%2Cif-less-secure-app-access-is-on-for-your-account%2Cif-less-secure-app-access-is-off-for-your-account


https://support.google.com/accounts/answer/185833?sjid=5554791994877234454-EU

Saludos



Re: On the uses of secure boot [was: Debian live boot corrupting secure boot]

2023-09-29 Thread Curt
On 2023-09-29,   wrote:
>
>
> On Fri, Sep 29, 2023 at 10:50:37AM +0100, Steve McIntyre wrote:
>> Stefan wrote:
>> >> With outdated keys secure boot does not protect you.
>> >
>> >Just to clarify: in 99.99% of the cases, SecureBoot does not protect you
>> >(and is not designed to protect you either).

>> Sigh. Lose the misinformation crap, please. It's getting tedious.

> He-said-she-said.
>

https://wiki.debian.org/SteveMcIntyre

 Steve McIntyre 

 Steve has been a DD since October 1996 and was Debian Project Leader from
 April 2008 to April 2010.
 He maintains quite a few packages, but is normally most active doing DebianCd
 or DebianInstaller or UEFI work. He's also an admin for this wiki!

https://wiki.debian.org/SecureBoot#What_is_UEFI_Secure_Boot.3F

 What is UEFI Secure Boot NOT?

 UEFI Secure Boot is not an attempt by Microsoft to lock Linux out of the PC
 market here; SB is a security measure to protect against malware during early
 system boot. Microsoft act as a Certification Authority (CA) for SB, and they
 will sign programs on behalf of other trusted organisations so that their
 programs will also run. There are certain identification requirements that
 organisations have to meet here, and code has to be audited for safety. But
 these are not too difficult to achieve.

 SB is also not meant to lock users out of controlling their own systems. Users
 can enroll extra keys into the system, allowing them to sign programs for their
 own systems. Many SB-enabled systems also allow users to remove the
 platform-provided keys altogether, forcing the firmware to only trust
 user-signed binaries. 

Get a life (or change those wikis to reflect *your* truth)!



Re: Problèmes à l'installation si je ne veux pas refaire les partitions de swap

2023-09-29 Thread Basile Starynkevitch


On 9/29/23 16:00, Eric DEGENETAIS wrote:

bonjour,
je suis confronté de manière récurrente à un problème qui m'agace
lorsque je souhaite installer une partition debian au moment de la
publication d'une nouvelle stable.
Voici le contexte : comme je ne souhaite pas compromettre
l'utilisation de la machine (poste de travail pro, ou PC qui sert à
toute la maisonnée et n'a donc "pas le droit" d'être en panne),
lorsque je monte de version j'installe généralement sur une partition
système fraîche, en parallèle de la version "de production" qui sert
au quotidien. Quand je me suis assuré que tout (devices, logiciels...)
fonctionne bien, je bascule le boot par défaut vers cette version (et
j'ajoute le montage automatique de la partition home, que j'omets
volontairement à l'installation).

Voici le problème : l'installeur me prend la tête avec les partitions de swap.
_ Soit il les refait, et je dois remettre à jour l'OS "de production"
pour éviter un délai au boot lié au fait que les UUID ne sont plus
bons.


Primo, il y-a-t-il besoin de beaucoup de swap? Si on a beaucoup de RAM, 
le swap sert peu (sauf pour l'hibernation). Si on a peu de RAM, il 
servira beaucoup.


En automne 2023, avec 16Goctets de RAM, le swap servira peu (sauf si on 
utilise des applications, par exemple codes de calculs numériques, ou 
même le compilateur GCC  avec des options telles 
que -flto -O2 pour compiler un /gros/ logiciel)


Dans certains cas, on peut se passer de swap.

Sur un Debian (sid  ou testing) ou Ubuntu (22 ou 23) récent, on peut 
swaper sur un "gros" fichier (à créer avec dd puis mkswap ; pour les 
détails voir les pages de man). Ca sera théoriquement un peu plus lent, 
mais sur les machines actuelles, la différence sera peu perceptible en 
fonctionnement normal.


La question importante, c'est quelle est l'usage du swap en charge 
forte. On peut utiliser les utilitaires top ou htop ou free ou xosview 
(graphique) pour en avoir une idée quantitative.


L'autre point, c'est est-ce que l'hibernation du système est importante 
pour vous? (personnellement ça me sert peu).


Librement

--
Basile Starynkevitch
(only mine opinions / les opinions sont miennes uniquement)
92340 Bourg-la-Reine, France
web page: starynkevitch.net/Basile/


Re: Problèmes à l'installation si je ne veux pas refaire les partitions de swap

2023-09-29 Thread Eric DEGENETAIS
>
> J'avais cru comprendre que vous utilisiez un espace swap par OS installé d'où 
> vos problèmes...
Nope, c'est justement ce que je ne veux PAS faire. Les partitions swap
ne sont là que pour ratttraper in-extremis une éventuelle surcharge,
pas la peine de les multiplier.
>> [...] je le fais dans le mode que j'appelle "suspend
>> to RAM".
> Cela suffit pour ne pas pouvoir partager la swap avec un autre OS car celle 
> ci contient toujours des données d'avant hibernation.
Dans ce mode AFAIK aucune donnée n'est mise en swap au moment du
suspend : le CPU est suspendu dans un mode basse consommation et les
périphériques désactivés, en revanche la mémoire vive reste alimentée,
et c'est elle qui conserve les données. Évidemment, si le swap se
trouve utilisé (ce que j'évite comme la peste car ça provoque un
effondrement des performances), les pages évincées sont dans le swap.
Cependant, en cas de reprise depuis ce mode, on ne change jamais d'OS,
le CPU reprend les traitements (je schématise, le processus exact est
probablement plus complexe avec le multi-core) et réactive les
périphériques qu'il avait désactivés. Ce n'est pas un reboot.

Éric



Re: Problèmes à l'installation si je ne veux pas refaire les partitions de swap

2023-09-29 Thread NoSpam


Le 29/09/2023 à 16:56, Eric DEGENETAIS a écrit :

Si les machines utilisent toutes LVM y compris la swap *et* que vous
Je ne suis pas sûr de saisir le rapport avec LVM. Ça facilite la
modification des partitions, mais je ne vois rien qui interdise de
réutiliser une partition de swap taillée à même le disque physique.
Vous pouvez développer ?
J'avais cru comprendre que vous utilisiez un espace swap par OS installé 
d'où vos problèmes...

n'hibernez pas vous pouvez partager une même partition swap pour toutes

[...] je le fais dans le mode que j'appelle "suspend
to RAM".
Cela suffit pour ne pas pouvoir partager la swap avec un autre OS car 
celle ci contient toujours des données d'avant hibernation.

Re: Problèmes à l'installation si je ne veux pas refaire les partitions de swap

2023-09-29 Thread Sébastien NOBILI

Le 2023-09-29 16:44, Eric DEGENETAIS a écrit :

bonjour, merci pour cette réponse qui m'intéresse. J'avais déjà croisé
ce nom, mais je ne suis pas sûr de savoir ce dont il s'agit. Pour moi
c'était surtout destiné à produire les installeurs ou des containers,
mais je vois que j'ai intérêt à m'y intéresser de plus près.


deboostrap permet d'installer un système Debian dans un dossier de ton
système de fichiers. Dans ton cas le dossier serait le point de montage
de ta partition cible.

Une fois ton système de base déployé tu peux basculer dedans avec
chroot (ou mieux schroot qui va t'automatiser tout plein de montages
nécessaires (/dev/, /proc/, etc.))


La seconde page mentionne l'usage de tasksel. Du coup je pourrai
bénéficier des pré-configurations (du genre installer un XFCE
pré-intégré) permises par l'installeur ?


Une fois dans ton système, il ne te reste plus qu'à y installer ce dont
tu as besoin (n'oublie pas le noyau).

Tu peux en effet utiliser tasksel mais tu peux aussi simplement 
installer

les paquets "task-*" correspondants :

aptitude search "^task-"

Sébastien



Re: Problèmes à l'installation si je ne veux pas refaire les partitions de swap

2023-09-29 Thread Eric DEGENETAIS
Le ven. 29 sept. 2023 à 16:14, NoSpam  a écrit :
>
> Bonjour
>

> Si les machines utilisent toutes LVM y compris la swap *et* que vous
Je ne suis pas sûr de saisir le rapport avec LVM. Ça facilite la
modification des partitions, mais je ne vois rien qui interdise de
réutiliser une partition de swap taillée à même le disque physique.
Vous pouvez développer ?
> n'hibernez pas vous pouvez partager une même partition swap pour toutes
De fait, je n'hiberne généralement pas. J'ai des machines fixes (ou
utilisées sur table, plus proche du desktop transportable que du
portable même si ce sont matériellement des "portables") avec des
quantités de RAM généreuses. La dernière fois que j'ai tenté
l'hibernation, je me suis retrouvé avec une machine en perdition,
comme si elle n'était retrouvée à la dernière limite de l'épuisement
de mémoire virtuelle, avec une pression d'IO de malade qui la rend
pratiquement inutilisable. Ça m'a vacciné. Depuis, quand je veux
suspendre une session, je le fais dans le mode que j'appelle "suspend
to RAM". Sinon, avec la vitesse de démarrage d'une machine sur SSD, je
ne suis pas trop convaincu dans mon cas de l'intérêt d'une
hibernation.
> les versions d'OS
>

Éric



Re: Plus de session graphique [résolu]

2023-09-29 Thread Jean Bernon
Les deux cartes graphiques sont faites pour utiliser la technologie Optimus de 
Nvidia
https://fr.wikipedia.org/wiki/Optimus_%28NVIDIA%29

En principe l'ordinateur tourne sur la carte de base Intel Haswell-ULT et, 
lorsque la sollicitation graphique augmente, il passe automatiquement sur la 
carte NVIDIA GeForce 840m. Sous Debian le kernel reconnaît bien les 2 cartes, 
mais je ne pense pas (?) que la carte 840m soit utilisée automatiquement. Il 
faut utiliser des commandes basées sur bumblebee pour l'activer, par exemple 
glxgears. Comme déjà dit, ce n'est pas trop mon souci et il est possible que ma 
carte nvidia ne soit en réalité jamais utilisée.

> De: "ajh-valmer" 

> ton ordinateur a donc 2 slots pour carte graphique,
> et que se passe t-il au boot pour le choix de la C. G.
> et quel est l'intérêt d'avoir 2 C.G. ?



Re: Problèmes à l'installation si je ne veux pas refaire les partitions de swap

2023-09-29 Thread Eric DEGENETAIS
Le ven. 29 sept. 2023 à 16:30, Sébastien NOBILI
 a écrit :

> Étant donné ton niveau de connaissance de Debian, tu pourrais peut-être
> t'en sortir plus efficacement avec debootstrap…

bonjour, merci pour cette réponse qui m'intéresse. J'avais déjà croisé
ce nom, mais je ne suis pas sûr de savoir ce dont il s'agit. Pour moi
c'était surtout destiné à produire les installeurs ou des containers,
mais je vois que j'ai intérêt à m'y intéresser de plus près.

Une recherche rapide me pointe là :
_ https://wiki.debian.org/fr/Debootstrap
_ https://www.debian.org/releases/stable/i386/apds03.fr.html

La seconde page mentionne l'usage de tasksel. Du coup je pourrai
bénéficier des pré-configurations (du genre installer un XFCE
pré-intégré) permises par l'installeur ?

> Sébastien
>

Éric



Re: Problèmes à l'installation si je ne veux pas refaire les partitions de swap

2023-09-29 Thread Sébastien NOBILI

Bonjour,

Le 2023-09-29 16:00, Eric DEGENETAIS a écrit :

Ma question : faut-il me résoudre à refaire les swap et corriger mon
OS debian préexistant, ou quelqu'un connaît-il un moyen de réutiliser
telles quelles les partitions de swap existantes ?


Étant donné ton niveau de connaissance de Debian, tu pourrais peut-être
t'en sortir plus efficacement avec debootstrap…

Sébastien



Re: Problèmes à l'installation si je ne veux pas refaire les partitions de swap

2023-09-29 Thread NoSpam

Bonjour

Le 29/09/2023 à 16:00, Eric DEGENETAIS a écrit :

[...]

Ma question : faut-il me résoudre à refaire les swap et corriger mon
OS debian préexistant, ou quelqu'un connaît-il un moyen de réutiliser
telles quelles les partitions de swap existantes ?
Si les machines utilisent toutes LVM y compris la swap *et* que vous 
n'hibernez pas vous pouvez partager une même partition swap pour toutes 
les versions d'OS




Re: Sunrise and Sunset from terminal

2023-09-29 Thread Sven Hoexter
On Wed, Sep 27, 2023 at 11:12:02AM +0100, Carles Pina i Estany wrote:
> 
> Hi,
> 
> sudo apt install python3-ephem
> 
> And in one line:
> 
> """
> (LATITUDE=51.5; LONGITUDE=0.12; python3 -c "import ephem; o=ephem.Observer(); 
> o.lat, o.lon = $LATITUDE, $LONGITUDE; print('Sunrise:', 
> o.next_rising(ephem.Sun()).datetime(), 'Sunset:', 
> o.next_setting(ephem.Sun()).datetime())")
> """
> 

Some more options for the fun of it:
python3-suntime / https://github.com/SatAgro/suntime

I converted that code into a Lua script [1] to run it
on OpenWrt based systems, in case someone is up for something to
run in more constrained environments.
https://git.sven.stormbind.net/?p=sven/scripts.git;a=blob_plain;f=weblogpro/suntime.lua;hb=HEAD

Cheers,
Sven




Problèmes à l'installation si je ne veux pas refaire les partitions de swap

2023-09-29 Thread Eric DEGENETAIS
bonjour,
je suis confronté de manière récurrente à un problème qui m'agace
lorsque je souhaite installer une partition debian au moment de la
publication d'une nouvelle stable.
Voici le contexte : comme je ne souhaite pas compromettre
l'utilisation de la machine (poste de travail pro, ou PC qui sert à
toute la maisonnée et n'a donc "pas le droit" d'être en panne),
lorsque je monte de version j'installe généralement sur une partition
système fraîche, en parallèle de la version "de production" qui sert
au quotidien. Quand je me suis assuré que tout (devices, logiciels...)
fonctionne bien, je bascule le boot par défaut vers cette version (et
j'ajoute le montage automatique de la partition home, que j'omets
volontairement à l'installation).

Voici le problème : l'installeur me prend la tête avec les partitions de swap.
_ Soit il les refait, et je dois remettre à jour l'OS "de production"
pour éviter un délai au boot lié au fait que les UUID ne sont plus
bons.
_ Soit j'essaie d'omettre la mise en place de partitions de swap (mes
machines ont généralement une taille de RAM confortable, donc ce n'est
pas forcément strictement nécessaire à mes yeux), quitte à recopier
ensuite les lignes fstab des partitions swap existantes. Dans ce cas,
l'installeur devient fou, me ramenant en boucle à la mise en place du
swap, et je termine avec une installation boiteuse qu'il faut
reprendre à la main.

Ce n'est qu'un détail agaçant, mais je serais plus satisfait d'une
solution dans laquelle l'installation n'est pas vrillée à la base.

Ma question : faut-il me résoudre à refaire les swap et corriger mon
OS debian préexistant, ou quelqu'un connaît-il un moyen de réutiliser
telles quelles les partitions de swap existantes ?

merci
__
Éric Dégenètais



Espero que estés disfrutando de un día excelente

2023-09-29 Thread Marco Alfonso V zquez
¿Quién habría pensado que algo así sería posible?
http://lepetitmanoirducasino.hemailing.com/fondness




Con aprecio⏩,Marco Alfonso V zquez


Re: Debian live boot corrupting secure boot

2023-09-29 Thread Steve McIntyre
valerio.va...@inwind.it wrote:
>On Wed, 27 Sep 2023 09:54:31 +0700 Max Nikulin  wrote:
>> I found the issue on latest versions of Clonezilla, but then I tried 
>> 
>>^^
>> 
>> with plain Debian live and the behavior is the same.
>> 
>> 
>> Does it mean that you can not boot your *old* Clonezilla live after booting 
>> a latest
>Clonezilla? If so, it is better to discuss the issue with shim or grub 
>developers.
>
>Yes. If I load a Clonezilla live newer than 3.1.0-11, then I cannot boot 
>anymore 2.8.1-12.
>
>> 
>> 1) Machine brand new: secure boot is active, Windows 10 shows it active, 
>> I can boot an
>old Clonezilla live (2.8.1-12) as many times as I want. 
>> 
>> An old image may be signed by a key later added to certificate revocation 
>> lists. If so,
>secure boot just works as it is supposed to do.
>
>I didn't consider that... But it makes sense.
>
>> 2) I boot from USB drive Debian Live 12
>>
>https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.1.0-amd64-kde.iso
>> 
>> 
>> If it can be reproduced with a contemporary Clonezilla or e.g. a Fedora 
>> image then it is not
>a Debian issue. If it is specific to namely Debian (I am unsure concerning 
>Ubuntu, Debian
>derivatives) then it is better to file a bug providing more details.
>
>As I said, the image that is not loaded anymore is older Clonezilla.
>The image that alters secure boot is newer Clonezilla, and then I found 
>that newer Debian does the same.
>I still haven't found an old version of Debian that cannot boot after 
>newer one (but I only tried 10 live, so far).

The newer images might be causing firmware key revocation updates to
be applied. This is part of the Secure Boot story - if you want to
stay secure, systems will need to be updated to stop older software
with known holes from being run.

-- 
Steve McIntyre, Cambridge, UK.st...@einval.com
Can't keep my eyes from the circling sky,
Tongue-tied & twisted, Just an earth-bound misfit, I...



Re: On the uses of secure boot [was: Debian live boot corrupting secure boot]

2023-09-29 Thread Max Nikulin

On 29/09/2023 17:16, to...@tuxteam.de wrote:

He-said-she-said.


Warning! Flammable!

Let's wait till Valerio's issue will be solved.

E.g. nobody has posted commands to get list of secure boot keys so far.




On the uses of secure boot [was: Debian live boot corrupting secure boot]

2023-09-29 Thread tomas
On Fri, Sep 29, 2023 at 10:50:37AM +0100, Steve McIntyre wrote:
> Stefan wrote:
> >> With outdated keys secure boot does not protect you.
> >
> >Just to clarify: in 99.99% of the cases, SecureBoot does not protect you
> >(and is not designed to protect you either).
> 
> Sigh. Lose the misinformation crap, please. It's getting tedious.

He-said-she-said.

JFTR. I don't know about the exact number, but I tend to agree with
Stefan here. But since we aren't exchanging arguments but just ready
made conclusions, the discussion doesn't lead anywhere.

One thing we can agree, though, may be that secure boot gives more
control of the platform to the hardware maker (who, after all is
the one choosing the TPM and the firmware going in and around there).

Whether the hardware maker is your ally, Microsoft's ally or Google's
ally (or Netflix or who-the-devil-knows) is another long and winding
discussion. I tend to think that Microsoft is higher up that list
than you & me.

Cheers
-- 
t


signature.asc
Description: PGP signature


Re: Debian live boot corrupting secure boot

2023-09-29 Thread Steve McIntyre
Stefan wrote:
>> With outdated keys secure boot does not protect you.
>
>Just to clarify: in 99.99% of the cases, SecureBoot does not protect you
>(and is not designed to protect you either).

Sigh. Lose the misinformation crap, please. It's getting tedious.

-- 
Steve McIntyre, Cambridge, UK.st...@einval.com
Can't keep my eyes from the circling sky,
Tongue-tied & twisted, Just an earth-bound misfit, I...



Re: Plus de session graphique [résolu]

2023-09-29 Thread elguero eric


Le vendredi 29 septembre 2023 à 11:24:31 UTC+2, ajh-valmer  
a écrit : 

>ton ordinateur a donc 2 slots pour carte graphique,
>et que se passe t-il au boot pour le choix de la C. G.
>et quel est l'intérêt d'avoir 2 C.G. ?

le mien aussi a deux cartes graphiques,
l'une est plus performante l'autre
consomme moins d'électricité. En
principe l'une ou l'autre est activée en
fontion de la charge de la machine.
Du moins sous Windows paraît-il, 
je ne suis pas sûr que ça fonctionne bien
sous Debian.

e.e.




Re: Plus de session graphique [résolu]

2023-09-29 Thread ajh-valmer
On Friday 29 September 2023 11:06:48 Jean Bernon wrote:
> Je n'ai pas créé le pilote nouveau. C'est ce qui est recommandé par défaut
> dans l'installation de Debian. Depuis Debian 11, je laisse faire
> l'installateur par défaut sans essayer d'installer nvidia et ça fonctionne
> bien. Avant je me souviens d'avoir essayé d'installer nvidia et d'avoir eu
> pas mal d'embrouilles d'installation entre les deux pilotes. J'ai un système
> avec deux cartes dont une carte nvidia Geforce 840m. Quand on utilise
> nouveau, bumblebee peut prendre en charge cette carte nvidia pour de
> meilleures performances vidéo, mais de toute façon je n'utilise guère les
> jeux vidéos. 

Merci.
J'avais oublié cette option d'installer le pilote nouveau
lors de l'installation de Debian, ce qui rend service
si le pilote ne fonctionne plus avec la version supérieure.
Encore une ignorance de ma part,
ton ordinateur a donc 2 slots pour carte graphique,
et que se passe t-il au boot pour le choix de la C. G.
et quel est l'intérêt d'avoir 2 C.G. ?

> > De: "ajh-valmer" 
> > Si possible, je serai désireux de savoir comment tu as
> > créé le pilote "nouveau" qui semble bien marcher.



Re: Plus de session graphique [résolu]

2023-09-29 Thread Michel Verdier
Le 29 septembre 2023 Jean Bernon a écrit :

> Avant je me souviens d'avoir essayé d'installer nvidia et d'avoir eu pas
> mal d'embrouilles d'installation entre les deux pilotes.

Oui il faut complètement supprimer nouveau si on veut utiliser le driver
propriétaire.

> J'ai un système avec
> deux cartes dont une carte nvidia Geforce 840m. Quand on utilise nouveau,
> bumblebee peut prendre en charge cette carte nvidia pour de meilleures
> performances vidéo

Apparemment bumblebee prend aussi en charge le driver propriétaire avec
le paquet bumblebee-nvidia. Est ce que quelqu'un l'a testé ?



Re: Plus de session graphique [résolu]

2023-09-29 Thread Jean Bernon
Je n'ai pas créé le pilote nouveau. C'est ce qui est recommandé par défaut dans 
l'installation de Debian. Depuis Debian 11, je laisse faire l'installateur par 
défaut sans essayer d'installer nvidia et ça fonctionne bien. Avant je me 
souviens d'avoir essayé d'installer nvidia et d'avoir eu pas mal d'embrouilles 
d'installation entre les deux pilotes. J'ai un système avec deux cartes dont 
une carte nvidia Geforce 840m. Quand on utilise nouveau, bumblebee peut prendre 
en charge cette carte nvidia pour de meilleures performances vidéo, mais de 
toute façon je n'utilise guère les jeux vidéos.

> De: "ajh-valmer" 
> Si possible, je serai désireux de savoir comment tu as
> créé le pilote "nouveau" qui semble bien marcher.



,

2023-09-29 Thread Jean Bernon
Je n'ai pas créé le pilote nouveau. C'est ce qui est recommandé par défaut dans 
l'installation de Debian. Depuis Debian 11, je laisse faire l'installateur par 
défaut sans essayer d'installer nvidia et ça fonctionne bien. Avant je me 
souviens d'avoir essayé d'installer nvidia et d'avoir eu pas mal d'embrouilles 
d'installation entre les deux pilotes. J'ai un système avec deux cartes dont 
une carte nvidia Geforce 840m. Quand on utilise nouveau, bumblebee peut prendre 
en charge cette carte nvidia pour de meilleures performances vidéo, mais de 
toute façon je n'utilise guère les jeux vidéos.

> De: "ajh-valmer" 
> Si possible, je serai désireux de savoir comment tu as
> créé le pilote "nouveau" qui semble bien marcher.



Re: Plus de session graphique [résolu]

2023-09-29 Thread ajh-valmer
Tant mieux.

Si possible, je serai désireux de savoir comment tu as
créé le pilote "nouveau" qui semble bien marcher.

Bonne journée.

andré Valmer