Re: multiple network interfaces...and a ghost

2022-07-11 Thread Tixy
On Mon, 2022-07-11 at 19:51 -0700, Peter Ehlert wrote:
[...]
> 
> I decided to try a fresh netinstall alongside and Boom:
> 
> ===
> multiple network interfaces
> 
> eno1: Intel Corporation Ethernet Connection (2) I218-LM
> enp5s0: Intel Corporation 1210 Gigabit Network Connection
> enx00e04c534458: Unknown Interface
> ===
> 
[...]
> what about this mystery "Unknown"?
> do I have a pending hardware failure?

Looking up the MAC address in the name of that last interface the name
says it's from Realtek Semiconductor Corp so it seems unrelated to the
other Intel devices. Try looking at the output of 'dmesg' and look for
'Realtek' in the kernal log for a clue.

Do you have any other network devices plugged in, perhaps in USB port?
Possibly a wifi dongle. Also, a long shot, something could be
automagically configuring something like a phone or bluetooth device
for network use.

-- 
Tixy



multiple network interfaces...and a ghost

2022-07-11 Thread Peter Ehlert

after a system update and a new kernel I rebooted.

all seemed fine but the network would not connect...
Debian Mate, network install, it just works and I never have messed with 
the settings.

not a clue what was going on.

long story short, messing around a live USB did log in fine.

I decided to try a fresh netinstall alongside and Boom:

===
multiple network interfaces

eno1: Intel Corporation Ethernet Connection (2) I218-LM
enp5s0: Intel Corporation 1210 Gigabit Network Connection
enx00e04c534458: Unknown Interface
===

the first two are old hat, I use eno1 and it just works.

bottom line I opened the Network Connections tool, found those three, 
none were selected.

I selected eno1 and all is good.

what about this mystery "Unknown"?
do I have a pending hardware failure?





Re: Debian 11: How to disable IPv6

2022-07-11 Thread rhkramer
On Sunday, July 10, 2022 06:48:10 PM Andy Smith wrote:
>   Otherwise I'm afraid your claims about IPv6 so far have been quite
>   bizarre, on the level of "IPv6 ate my homework" or "my father was
>   killed by a 128-bit integer", and can't be taken seriously.

From the peanut gallery: I disabled IPv6 quite some time ago.  I don't recall 
how I did it, but I might have that information in my notes, somewhere.

The reason that I disabled it (which might not be totally logical) is that in 
IPv4, I have always had my computers (and LAN) behind a NAT device.  

I could not find (in the searching I did) equivalent functionality for IPv6, so 
I disabled IPv6 in hopes of keeping my systems (fairly) secure.

I'm not sure that makes a lot of sense, and I'm sure [some | many | most | 
maybe almost all] will disagree, especially based on the 128(?)-bit address 
space in IPv6, but that was the reason I disabled IPv6.

-- 
rhk

If you reply: snip, snip, and snip again; leave attributions; avoid top 
posting; and keep it "on list".  (Oxford comma included at no charge.)  If you 
change topics, change the Subject: line. 

A picture is worth a thousand words -- divide by 10 for each minute of video 
(or audio) or create a transcript and edit it to 10% of the original.



Re: Does Debian supports backticks in the Makefile?

2022-07-11 Thread Igor Korot
Hi,
All this can now be put to rest.

Gentoo is at fault and I am going to talk to Gentoo people

Thank you to everyone who helped.

Thank you.

On Mon, Jul 11, 2022 at 12:23 PM  wrote:
>
> On Mon, Jul 11, 2022 at 08:50:47AM -0500, Igor Korot wrote:
> > And hi i Debian afe  fiing he innclde line:
> >
> > [code]
> > igor@debian:~/dbhandler/Debug/libpostgres$ make clean && make V=1
> > test -z "libpostgres.la" || rm -f libpostgres.la
> > rm -f ./so_locations
> > rm -rf .libs _libs
> > rm -f *.o
> > rm -f *.lo
>
> OK let's take this one apart.
>
> > /bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
> > -I. -I../../libpostgres -I..-D__WXGTK__ -I../../dbinterface
> > `pg_config --includedir`  -g -O0 -MT
>
>-I.
># search includes in current dir
>-I../../libpostgres
># search includes in some local postgres lib around. This looks
># fishy (it isn't at the error's root, but might indicate
># some misunderstanding between your build system and you)
># note that this might be one difference to the Gentoo install.
>-I..
># search includes one level up
>-D__WXTTK
># pre-define something for the compiler
>-I../../dbinterface
># search includes there, too
>`pg_config --includedir?
># This is definitely wrong. It should have an '-I' in front.
>
> I think Thomas is right.
>
> Cheers
> --
> t



Re: nft newbie

2022-07-11 Thread Gareth Evans
On Sun 10 Jul 2022, at 06:25, Gareth Evans  wrote:

> Thanks Roger, that also suggests "policy drop" in its nftables examples.

As someone on firewalld-users kindly pointed out, there is

> table inet firewalld {
> chain filter_INPUT {
[...]
> reject with icmpx admin-prohibited   <--- catch-all reject
> }

which seems equivalent to ufw's qualified "policy drop".

Panic over.
G



[Résolu] Déplacer une debian sur un disque plus petit avec clonezilla

2022-07-11 Thread benoit






Envoyé avec la messagerie sécurisée Proton Mail.

--- Original Message ---
Le lundi 11 juillet 2022 à 22:49, benoit  a écrit :


>
>
>
>
> --- Original Message ---
> Le lundi 11 juillet 2022 à 21:43, Th.A.C rai...@free.fr a écrit :
>
> > Bonjour,
> >
> > malheureusement non, c'est marqué dans la FAQ:
> > https://drbl.org/fine-print.php?path=./faq/2_System/25_restore_larger_disk_to_smaller_one.faq#25_restore_larger_disk_to_smaller_one.faq
> >
> > Clonezilla ne travaille pas au niveau du fichier mais des blocs utilisés
> > (ou pas)
> >
> > Sinon, tu peux essayer de retailler les partitions du disque d'origine
> > pour que ça rentre dans le nouveau disque.
>
>
> Ah ben oui, c'est une bonne idée ça !
>
> Bon je met comme résolu, j'aurais du y penser... ;-)
>
> Merci !
>
> --
> Benoit



Re: Déplacer une debian sur un disque plus petit avec clonezilla

2022-07-11 Thread benoit






--- Original Message ---
Le lundi 11 juillet 2022 à 21:43, Th.A.C  a écrit :
>
> Bonjour,
>
> malheureusement non, c'est marqué dans la FAQ:
> https://drbl.org/fine-print.php?path=./faq/2_System/25_restore_larger_disk_to_smaller_one.faq#25_restore_larger_disk_to_smaller_one.faq
>
> Clonezilla ne travaille pas au niveau du fichier mais des blocs utilisés
> (ou pas)
>
> Sinon, tu peux essayer de retailler les partitions du disque d'origine
> pour que ça rentre dans le nouveau disque.

Ah ben oui, c'est une bonne idée ça !

Bon je met comme résolu, j'aurais du y penser... ;-)

Merci !

--
Benoit



Re: Verwisseling sda en sdb

2022-07-11 Thread Paul van der Vlis

Op 11-07-2022 om 18:59 schreef Sjoerd:

Martijn van de Streek:

Diederik de Haas:

Paul van der Vlis:


tune2fs -l /dev/sdb8 | grep UUID


lsblk -o +UUID


blkid


Niettemin, als sda en sdb tijdens het opstarten zijn verwisseld,
is dat bij al deze drie methoden eveneens het geval.


Nee, het zou altijd goed moeten zijn. Tenminste, als /dev/sdb8 correct 
is op het moment dat bovenstaand commando wordt uitgevoerd.


De bedoeling is dus dat in /etc/fstab het UUID van het correcte 
filesysteem staat voor b.v. root.


Verder is het uiteraard niet bedoeling dat er twee grub's zijn 
geïnstalleerd, in elk geval niet die verschillende dingen doen.


Groet,
Paul


--
Paul van der Vlis Linux systeembeheer Groningen
https://vandervlis.nl/



Re: Twice load - rndc.key ?

2022-07-11 Thread Andy Smith
Hello,

On Mon, Jul 11, 2022 at 09:39:27PM +0200, Maurizio Caloro wrote:
> but why i have now so meny querry-errors, and REFUSED?
> 
> 11-Jul-2022 21:37:08.587 query-errors: info: client @0x7f22c342c254 ip#61640
> (redirector.googlevideo.com): query failed (REFUSED) for
> redirector.googlevideo.com/IN/ at query.c:5498

If you expose a DNS server on port 53 then it's normal for bots out
on the Internet to scan to see if they can use it to resolve things.
Your DNS resolver is correctly set to disallow queries from
elsewhere.

Are you actually experiencing any breakage? If so, what?

Cheers,
Andy

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



Re: Twice load - rndc.key ?

2022-07-11 Thread Maurizio Caloro



Am 11.07.2022 um 21:40 schrieb Charles Curley:

On Mon, 11 Jul 2022 21:01:48 +0200
Maurizio Caloro  wrote:

why this will load the rndc.key twice ?

The log snippet below doesn't say it is loading the key twice. It
indicates that it attempting to configure two separate command
channels.


Jul 11 20:56:47 Star named[3129]: command channel listening on 127.0.0.1#953
Jul 11 20:56:47 Star named[3129]: couldn't add command channel ::1#953: 
address not available


True, one time loading for IPv4/IPv6, thanks!



Re: Déplacer une debian sur un disque plus petit avec clonezilla

2022-07-11 Thread Th.A.C



Le 11/07/2022 à 21:13, benoit a écrit :

Bonjour à toutes et tous,



Est-il possible de créer l'image d'un disque avec clonezilla et la 
restaurer sur un disque plus petit ? Il va de soit que le volume de 
données à restaurer est inférieure à la taille du disque cible.


Merci d'avance,

Benoit

Envoyé avec la messagerie sécurisée Proton Mail .


Bonjour,

malheureusement non, c'est marqué dans la FAQ:
https://drbl.org/fine-print.php?path=./faq/2_System/25_restore_larger_disk_to_smaller_one.faq#25_restore_larger_disk_to_smaller_one.faq

Clonezilla ne travaille pas au niveau du fichier mais des blocs utilisés 
(ou pas)


Sinon, tu peux essayer de retailler les partitions du disque d'origine 
pour que ça rentre dans le nouveau disque.


FOG fait comme ça:
il réduit les partitions au mini, sauvegarde le disque puis remet les 
partitions à leur taille d'origine.




Re: Twice load - rndc.key ?

2022-07-11 Thread Charles Curley
On Mon, 11 Jul 2022 21:01:48 +0200
Maurizio Caloro  wrote:

> why this will load the rndc.key twice ?

The log snippet below doesn't say it is loading the key twice. It
indicates that it attempting to configure two separate command
channels.

> 
> # cat /lib/systemd/system/named.service


> 
> [Service]
> EnvironmentFile=-/etc/default/named
> ExecStart=/usr/sbin/named -f $OPTIONS
> # ExecReload=/usr/sbin/rndc reload
> # ExecStop=/usr/sbin/rndc stop

First mistake: you should not be editing files in /lib/systemd/.
Instead copy the file to edit into /etc/systemd/, and edit it there. I
believe there is a systemd command that will do that for you if
necessary. The reason is that when an upgrade comes along, it will
stomp on any changes you have made in /lib/systemd/.

> 
> --
> 
> Jul 11 20:56:47 Star named[3129]: *configuring command channel from 
> '/etc/bind/rndc.key'*
> Jul 11 20:56:47 Star named[3129]: command channel listening on
> 127.0.0.1#953 Jul 11 20:56:47 Star named[3129]: *configuring command
> channel from '/etc/bind/rndc.key'*
> Jul 11 20:56:47 Star named[3129]: couldn't add command channel
> ::1#953: address not available
> 

It looks like it is successfully configuring its command channel on
IPv4 (127.0.0.1#953), and unsuccessfully on IPv6 (::1#953). If you
don't care about IPv6, you can probably ignore that.

I don't see all of those messages on my bind9 installation's log. I am
running bind9   1:9.16.27-1~deb11u1



-- 
Does anybody read signatures any more?

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



Re: Twice load - rndc.key ?

2022-07-11 Thread Maurizio Caloro

but why i have now so meny querry-errors, and REFUSED?

11-Jul-2022 21:37:08.587 query-errors: info: client @0x7f22c342c254 
ip#61640 (redirector.googlevideo.com): query failed (REFUSED) for 
redirector.googlevideo.com/IN/ at query.c:5498


Am 11.07.2022 um 21:27 schrieb Maurizio Caloro:


after add -4 this will load only one time ;-)






Re: Twice load - rndc.key ?

2022-07-11 Thread Maurizio Caloro

after add -4 this will load only one time ;-)

Am 11.07.2022 um 21:01 schrieb Maurizio Caloro:


why this will load the rndc.key twice ?

# cat /lib/systemd/system/named.service
[Unit]
Description=BIND Domain Name Server
Documentation=man:named(8)
After=network.target
Wants=nss-lookup.target
Before=nss-lookup.target

[Service]
EnvironmentFile=-/etc/default/named
ExecStart=/usr/sbin/named -f $OPTIONS
# ExecReload=/usr/sbin/rndc reload
# ExecStop=/usr/sbin/rndc stop
Restart=on-failure

[Install]
WantedBy=multi-user.target
Alias=bind9.service

--

Jul 11 20:56:47 Star named[3129]: *configuring command channel from 
'/etc/bind/rndc.key'*
Jul 11 20:56:47 Star named[3129]: command channel listening on 
127.0.0.1#953
Jul 11 20:56:47 Star named[3129]: *configuring command channel from 
'/etc/bind/rndc.key'*
Jul 11 20:56:47 Star named[3129]: couldn't add command channel 
::1#953: address not available


--

key "rndc-key" {
    algorithm hmac-sha256;
    secret "lala !";
};




Re: Twice load - rndc.key ?

2022-07-11 Thread Greg Wooledge
On Mon, Jul 11, 2022 at 09:01:48PM +0200, Maurizio Caloro wrote:
> why this will load the rndc.key twice ?

> Jul 11 20:56:47 Star named[3129]: *configuring command channel from
> '/etc/bind/rndc.key'*
> Jul 11 20:56:47 Star named[3129]: command channel listening on 127.0.0.1#953
> Jul 11 20:56:47 Star named[3129]: *configuring command channel from
> '/etc/bind/rndc.key'*
> Jul 11 20:56:47 Star named[3129]: couldn't add command channel ::1#953:
> address not available

Looks like once for IPv4 and once for IPv6.  Does it matter?



Déplacer une debian sur un disque plus petit avec clonezilla

2022-07-11 Thread benoit
Bonjour à toutes et tous,

Est-il possible de créer l'image d'un disque avec clonezilla et la restaurer 
sur un disque plus petit ? Il va de soit que le volume de données à restaurer 
est inférieure à la taille du disque cible.

Merci d'avance,

Benoit

Envoyé avec la messagerie sécurisée [Proton Mail](https://proton.me/).

Twice load - rndc.key ?

2022-07-11 Thread Maurizio Caloro

why this will load the rndc.key twice ?

# cat /lib/systemd/system/named.service
[Unit]
Description=BIND Domain Name Server
Documentation=man:named(8)
After=network.target
Wants=nss-lookup.target
Before=nss-lookup.target

[Service]
EnvironmentFile=-/etc/default/named
ExecStart=/usr/sbin/named -f $OPTIONS
# ExecReload=/usr/sbin/rndc reload
# ExecStop=/usr/sbin/rndc stop
Restart=on-failure

[Install]
WantedBy=multi-user.target
Alias=bind9.service

--

Jul 11 20:56:47 Star named[3129]: *configuring command channel from 
'/etc/bind/rndc.key'*

Jul 11 20:56:47 Star named[3129]: command channel listening on 127.0.0.1#953
Jul 11 20:56:47 Star named[3129]: *configuring command channel from 
'/etc/bind/rndc.key'*
Jul 11 20:56:47 Star named[3129]: couldn't add command channel ::1#953: 
address not available


--

key "rndc-key" {
    algorithm hmac-sha256;
    secret "lala !";
};




Re: Problem mounting encrypted blu-ray disc or image

2022-07-11 Thread Nicolas George
to...@tuxteam.de (12022-07-10):
> But then, always doing sync twice looks like a very mild measure, and
> far cheaper than seeing a therapist. Especially given that the second
> sync will typically be very quick. If it's working, I'd go with that :)
> 
> Since writing to USBs for me mostly involves copying whole images
> (with exception of my backup, which is an rsync: there I do use
> sync, but just once), I do use sync much less these days after
> having discovered dd's oflag=sync.

On Linux, a process that writes to a device that is not currently
mounted and therefore has no page cache will go into D state when
closing the associated file descriptor.

You can check for with this kind of command:

strace -ftttT sh -c "( dd if=/dev/urandom bs=1M count=0 seek=32000; cat 
/tmp/file ) > /dev/disk/by-label/CIGAES_R64"

where /tmp/file was obtained with the opposite dd command:

[pid 3708814] 1657561091.466910 write(1, 
"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"...,
 131072) = 131072 <0.000233>
[pid 3708814] 1657561091.467280 read(3, "", 131072) = 0 <0.000106>
[pid 3708814] 1657561091.467527 munmap(0x7f14a2f0e000, 139264) = 0 <0.62>
[pid 3708814] 1657561091.467658 close(3) = 0 <0.18>
[pid 3708814] 1657561091.467755 close(1) = 0 <161.011040>
[pid 3708814] 1657561252.478904 close(2) = 0 <0.19>
[pid 3708814] 1657561252.479045 exit_group(0) = ?
[pid 3708814] 1657561252.479252 +++ exited with 0 +++
1657561252.479286 <... wait4 resumed>[{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 
0, NULL) = 3708814 <288.273781>
1657561252.479345 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, 
si_pid=3708814, si_uid=1000, si_status=0, si_utime=1, si_stime=168} ---
1657561252.479383 rt_sigreturn({mask=[]}) = 3708814 <0.11>
1657561252.479433 wait4(-1, 0x7ffee8b3cc5c, WNOHANG, NULL) = -1 ECHILD (No 
child processes) <0.11>
1657561252.479510 exit_group(0) = ?
1657561252.479624 +++ exited with 0 +++

Notice the time taken by the close(1).

If you naively run strace on cat itself, then you do not see anything,
because then strace itself is holding a copy of the file descriptor, and
it is strace that will go into D state.

I do not know where this behavior is documented, but I suspect it is
somewhere.

Regards,

-- 
  Nicolas George


signature.asc
Description: PGP signature


Re: Partición /datos compartida

2022-07-11 Thread JavierDebian



El 10/7/22 a las 20:22, Simeón Ignacio Martirén escribió:

Hola Lista Debian. Pido ayuda.
Soy usuario pero no experto.
Estoy usando Debian Buster y Lubuntu jammy al que le agregué Cinnamon.
Además mi técnico de confianza siempre me entrega la máquina con un Win 
instalado, yo lo dejo pero no lo uso salvo software de dispositivos que 
me obliguen.
Mi intensión es dejar de usar un pendrive como partición segura para mis 
documentos. Entonces he decidido reinstalar los sistemas operativos 
desde las ISO, pero haciendo que los documentos queden en una partición 
aparte, ya que generalmente me gusta probar cosas en mis O.S. (que 
muchas veces terminan malogrando todo y teniendo que volver a instalar 
desde la ISO).


Estoy viendo en FSTAB(5) algo sobre cómo compartir la partición. Me 
quedan dudas. Por ejemplo,
¿Podría instalar un Bulleye desde la ISO con una partición aparte para 
/DATOS y luego en el segunto (LUBUNTU Jammy)editar el archivo fstab para 
que acceda a la partición /DATOS de Bulleye siempre al arrancar?
Por ejemplo, en este momento escribo desde Lubuntu jammy y tengo las 
siguientes líneas del fstab:
UUID=aca6de29-faed-4eea-aed9-26f256e3dda1 /              ext4   
  defaults   0 1
/swapfile                                 swap           swap   
  defaults   0 0


rompo algo si agrego una línea como la que sigue para acceder a los 
datos compartiendo con Bulleye?
UUID=5d822baa-bba7-4466-a9e5-96020024ac1f /datos          ext4   
  defaults   0 2


(aclaro: este último UUID lo saqué de otra máquina, sólo es a modo de 
ejemplo)

Gracias desde ya.


--
*/_Ignacio_/*
*/_
_/*
*/_
_/*


Sí, se hace así.
Una sola recomendación para facilitar la tarea:
En las distintas instalaciones, el usuario que acceda a los datos, debe 
tener el mismo nombre de usuario y mismo UID (Número de Identificación 
de Usuario).
Si no lo haces así, no es imposible acceder a los datos, pero trae 
dolores de cabeza.


Salvo que la partición "DATOS" esté en formato NTFS (Windows), la cual 
es intrínsicamente insegura e inestable desde Linux.


¡Saludos!

JAP



Re: Does Debian supports backticks in the Makefile?

2022-07-11 Thread tomas
On Mon, Jul 11, 2022 at 08:50:47AM -0500, Igor Korot wrote:
> And hi i Debian afe  fiing he innclde line:
> 
> [code]
> igor@debian:~/dbhandler/Debug/libpostgres$ make clean && make V=1
> test -z "libpostgres.la" || rm -f libpostgres.la
> rm -f ./so_locations
> rm -rf .libs _libs
> rm -f *.o
> rm -f *.lo

OK let's take this one apart.

> /bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
> -I. -I../../libpostgres -I..-D__WXGTK__ -I../../dbinterface
> `pg_config --includedir`  -g -O0 -MT

   -I.
   # search includes in current dir
   -I../../libpostgres
   # search includes in some local postgres lib around. This looks
   # fishy (it isn't at the error's root, but might indicate
   # some misunderstanding between your build system and you)
   # note that this might be one difference to the Gentoo install.
   -I..
   # search includes one level up
   -D__WXTTK
   # pre-define something for the compiler
   -I../../dbinterface
   # search includes there, too
   `pg_config --includedir?
   # This is definitely wrong. It should have an '-I' in front.

I think Thomas is right.

Cheers
-- 
t


signature.asc
Description: PGP signature


Re: Verwisseling sda en sdb

2022-07-11 Thread Sjoerd
Martijn van de Streek:
> Diederik de Haas:
> > Paul van der Vlis:
> > >
> > > tune2fs -l /dev/sdb8 | grep UUID
> > 
> > lsblk -o +UUID
> 
> blkid

Niettemin, als sda en sdb tijdens het opstarten zijn verwisseld,
is dat bij al deze drie methoden eveneens het geval.



avahi-daemon allow/deny interfaces question

2022-07-11 Thread Ram Ramesh

Experts,

  I have a firewall machine built recently and it runs debian bullseye 
(v11). It has two ethernet interfaces - one internal ($intf) and one 
external ($extf). My external port runs dhclient to get its IP address 
and internal port runs dnsmasq to provide DNS service to 
internal/protected hosts. Usual iptables rules are established to 
prevent attack/entry into internal net from external net and allow 
proper internet access to internal net hosts.


  I had this system working fine (on an older machine) since debian 
5.0.7. I have not upgraded that machine as it is working fine. However 
that hardware is too old (10+ years) and I wanted to replace it with 
something more modern running latest OS and that is why I built the 
above machine.


 My old machine does not seem have avahi-daemon. So, it runs fine. 
However, my new machine has this daemon running which notices that 
$extif does not have much activity and disables it after some timeout 
idle time. I initially thought my firewall rules are suspect and was 
banging my head for a while adding extra rules for DHCPDISCOVER/REQUEST 
etc thinking that those are blocked. Today I noticed that my $extif is 
vanishing and /var/log/daemon.log shows some avahi-daemon messages about 
that interface being disabled/withdrawn or some such thing.


As a next step, I want to tell avahi-daemon that it should not work on 
that interface as it is not meant to be fooled around.  Do I use 
deny-interface $extif or allow-interface $intif only? Which is proper? 
Will doing one of these solve my problem of $extif vanishing from ifconfig?


If you think there is something else that I can do that is better, 
please let me know that too.


Much appreciate any help.

Please let me know if you need anything else that will help to resolve 
this problem.


Regards
Ramesh



Re: Verwisseling sda en sdb

2022-07-11 Thread Martijn van de Streek
Diederik de Haas schreef op ma 11-07-2022 om 17:00 [+0200]:
> On Monday, 11 July 2022 16:23:28 CEST Paul van der Vlis wrote:
> > Als je ext4 gebruikt, dan kun je achter het UUID komen met iets
> > als:
> > tune2fs -l /dev/sdb8 | grep UUID
> 
> of ``lsblk -o +UUID``
> 
> Met '+UUID' voeg je die kolom toe aan de standaard output.
> Je kan ook andere kolommen toevoegen of helemaal zelf de output
> kolommen 
> bepalen door geen '+' te gebruiken.

Je kunt ook "blkid" gebruiken. Die laat UUIDs en labels van alle
filesystems die het kan vinden zien.

-- 
Martijn



Re: Does Debian supports backticks in the Makefile?

2022-07-11 Thread gene heskett

On 7/11/22 10:24, Greg Wooledge wrote:

On Mon, Jul 11, 2022 at 08:55:20AM -0500, Igor Korot wrote:

This is what Gentoo generates:
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.
-I/home/igor/dbhandler/libpostgres -I..-D__WXGTK__
-I../../dbinterface `pg_config --includedir`  -g -O0 -MT
libpostgres_la-database_postgres.lo -MD -MP -MF
.deps/libpostgres_la-database_postgres.Tpo -c -o
libpostgres_la-database_postgres.lo `test -f 'database_postgres.cpp'
|| echo '/home/igor/dbhandler/libpostgres/'`database_postgres.cpp

OK.  I see that you have the same "I forgot -I" bug in your Makefile.


libtool: compile:  g++ -DHAVE_CONFIG_H -I.
-I/home/igor/dbhandler/libpostgres -I.. -D__WXGTK__
-I../../dbinterface /usr/include/postgresql-14 -g -O0 -MT
libpostgres_la-database_postgres.lo -MD -MP -MF
.deps/libpostgres_la-database_postgres.Tpo -c
/home/igor/dbhandler/libpostgres/database_postgres.cpp  -fPIC -DPIC -o
.libs/libpostgres_la-database_postgres.o

And there's the expanded command.  As you can see, it is wrong.


g++: warning: /usr/include/postgresql-14: linker input file unused
because linking not done

And you got a warning for the wrongness.

So, you are wondering why it actually compiled correctly.  Best guess:
on Gentoo, you have the libpq-fe.h file in a different directory, which
is in the C++ compiler's search list.  Maybe there's a symlink.  In any
case, the -I/usr/include/postgresql-14 argument isn't needed on Gentoo.

If you really want to dig into it, start with something like
"locate libpq-fe.h" and see all of the places it appears.  Then see what
directories are in the compiler's search list, etc.

.
As a reminder, locate's database might be stale, so it is probably a 
good idea
to sudo updatedb before running locate, assuring then that it has an 
uptodate

database.  I think it does a weekly update, but if Igor is installing stuff
from the error messages, that is probably something he should be doing after
installing something missing.

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: Verwisseling sda en sdb

2022-07-11 Thread Diederik de Haas
On Monday, 11 July 2022 16:23:28 CEST Paul van der Vlis wrote:
> Als je ext4 gebruikt, dan kun je achter het UUID komen met iets als:
> tune2fs -l /dev/sdb8 | grep UUID

of ``lsblk -o +UUID``

Met '+UUID' voeg je die kolom toe aan de standaard output.
Je kan ook andere kolommen toevoegen of helemaal zelf de output kolommen 
bepalen door geen '+' te gebruiken.

signature.asc
Description: This is a digitally signed message part.


Re: Converting an old Chromebook to pure Debian, was: OT, Recommendation for low cost laptop

2022-07-11 Thread Timothy M Butterworth
On Mon, Jul 11, 2022 at 7:36 AM Dan Ritter  wrote:

> Ottavio Caruso wrote:
> > On 11/07/2022 08:32, john doe wrote:
> >
> > > I'm looking for something cheap (max would be around 300 bucks), do you
> > > have any suggestions/ideas?
> >
> >
> > My local Cash-Converter/Generator(s) have plenty of old-ish Chromebooks
> for
> > £50 or less.
> >
> > I know it's possible to run some sort of Linux with trickeries like
> Crouton
> > or similar. I wonder if it's just possible to nuke all Google related
> junk
> > and install native Debian or is it not technically possible?
>

ChromeOS has support to run Debian 10 Apps. They are installed using apt
just like a standard debian install.


> On some of them, yes. The process is to flash a new BIOS, after
> which the Chromebook is just a laptop.
>
> https://github.com/MrChromebox/SeaBIOS
>
> I don't recommend this approach for general use machines: chromebooks
> are generally sold with tiny flash disks, often unreplaceable. A 16 or
> 32GB flash disk will limit you severely.
>
> As a limited use machine, though, it shouldn't be bad.
>
> -dsr-
>
>

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


Re: Verwisseling sda en sdb

2022-07-11 Thread Paul van der Vlis




Op 10-07-2022 om 19:45 schreef Sjoerd:

Geert Stappers:

Uit het oorspronkelijke bericht:
  In fstab worden alle partities die gemount worden, aangeduid met 'UUID=...'.

Het 'UUID=...' gebeuren is juist om verwisseling te voorkomen.


Ik herinner me dat ik ooit met die UUID's ben begonnen omdat het opstarten al
helemaal vastliep. Na een tweede of derde poging lukte het dan wel. Dat 
verschijnsel
was hiermee verholpen.
Maar als ik in /dev/disk/by-uuid kijk, dan zie ik dat de UUID's ook daar net 
naar de
verkeerde partities linken, bijvoorbeeld naar sda8 i.p.v. sdb8. Wanneer het een 
keer
wel goed gaat, dan kloppen die links ook weer.


Normaal gebruik je in /etc/fstab geen UUID's van disks volgens mij.
Maar UUID's van filesystemen.

Het maakt dan niet uit welke disk het is.

Als je ext4 gebruikt, dan kun je achter het UUID komen met iets als:
tune2fs -l /dev/sdb8 | grep UUID

Groet,
Paul



--
Paul van der Vlis Linux systeembeheer Groningen
https://vandervlis.nl/



Re: Does Debian supports backticks in the Makefile?

2022-07-11 Thread Greg Wooledge
On Mon, Jul 11, 2022 at 08:55:20AM -0500, Igor Korot wrote:
> This is what Gentoo generates:

> /bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.
> -I/home/igor/dbhandler/libpostgres -I..-D__WXGTK__
> -I../../dbinterface `pg_config --includedir`  -g -O0 -MT
> libpostgres_la-database_postgres.lo -MD -MP -MF
> .deps/libpostgres_la-database_postgres.Tpo -c -o
> libpostgres_la-database_postgres.lo `test -f 'database_postgres.cpp'
> || echo '/home/igor/dbhandler/libpostgres/'`database_postgres.cpp

OK.  I see that you have the same "I forgot -I" bug in your Makefile.

> libtool: compile:  g++ -DHAVE_CONFIG_H -I.
> -I/home/igor/dbhandler/libpostgres -I.. -D__WXGTK__
> -I../../dbinterface /usr/include/postgresql-14 -g -O0 -MT
> libpostgres_la-database_postgres.lo -MD -MP -MF
> .deps/libpostgres_la-database_postgres.Tpo -c
> /home/igor/dbhandler/libpostgres/database_postgres.cpp  -fPIC -DPIC -o
> .libs/libpostgres_la-database_postgres.o

And there's the expanded command.  As you can see, it is wrong.

> g++: warning: /usr/include/postgresql-14: linker input file unused
> because linking not done

And you got a warning for the wrongness.

So, you are wondering why it actually compiled correctly.  Best guess:
on Gentoo, you have the libpq-fe.h file in a different directory, which
is in the C++ compiler's search list.  Maybe there's a symlink.  In any
case, the -I/usr/include/postgresql-14 argument isn't needed on Gentoo.

If you really want to dig into it, start with something like
"locate libpq-fe.h" and see all of the places it appears.  Then see what
directories are in the compiler's search list, etc.



Re: Does Debian supports backticks in the Makefile?

2022-07-11 Thread Thomas Schmitt
Hi,

Igor Korot wrote:
> This is what Gentoo generates:
> ...
> /bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.
> -I/home/igor/dbhandler/libpostgres -I..-D__WXGTK__
> -I../../dbinterface `pg_config --includedir`  -g -O0 -MT
> ...
> libtool: compile:  g++ -DHAVE_CONFIG_H -I.
> -I/home/igor/dbhandler/libpostgres -I.. -D__WXGTK__
> -I../../dbinterface /usr/include/postgresql-14 -g -O0 -MT
> ...
> g++: warning: /usr/include/postgresql-14: linker input file unused
> because linking not done

I looks like `pg_config --includedir` expanded to /usr/include/postgresql-14
and the compiler takes it for a linker file. (I assume it's a directory.)


> And hi i Debian afe  fiing he innclde line:
> ...
> /bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
> -I. -I../../libpostgres -I..-D__WXGTK__ -I../../dbinterface
> `pg_config --includedir`  -g -O0 -MT
> ...
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../libpostgres -I..
> -D__WXGTK__ -I../../dbinterface /usr/include/postgresql -g -O0 -MT
> ...
> ../../libpostgres/database_postgres.cpp:22:10: fatal error:
> libpq-fe.h: No such file or directory

So the lists of include directories generated by libtool differ.
On Gentoo:
  .
  /home/igor/dbhandler/libpostgres
  ..
  ../../dbinterface
On Debian
  .
  ../../libpostgres
  ..
  ../../dbinterface

On both the output of pg_config is not properly marked by -I.

Can it be that on Gentoo there is a file
  /home/igor/dbhandler/libpostgres/libpq-fe.h
?

--

Whatever, try to fix your Makefile.am by adding "-I". Like in

  libpostgres_la_CXXFLAGS = -D__WXGTK__ \
  -I../../dbinterface \
  -I`pg_config \
  --includedir`


Have a nice day :)

Thomas



Re: Does Debian supports backticks in the Makefile?

2022-07-11 Thread Igor Korot
code]And this is also Gentoo:

[code]
igor@IgorReinCloud ~/dbhandler/Debug/libpostgres $ pg_config --includedir
/usr/include/postgresql-14
igor@IgorReinCloud ~/dbhandler/Debug/libpostgres $
[/code]

No "-I" involved.

Thank you.

On Mon, Jul 11, 2022 at 8:57 AM Thomas Schmitt  wrote:
>
> Hi,
>
> Greg Wooledge wrote:
> > You're misunderstanding my conclusions.  The backticks *do* work in the
> > end, since they're passed through to the shell, and the shell interprets
> > them the way the OP seems to want.
>
> Oops. I probably should have read on after having been interrupted by
> the real world.
>
>
> > The missing -I is probably it.
>
> At least i can reproduce the symptoms by a simple gcc run.
> But the reverse riddle stays. Why did it work otherwhere ?
>
>
> Have a nice day :)
>
> Thomas
>



Re: Does Debian supports backticks in the Makefile?

2022-07-11 Thread The Wanderer
On 2022-07-11 at 09:57, Thomas Schmitt wrote:

> Hi,
> 
> Greg Wooledge wrote:
>> You're misunderstanding my conclusions.  The backticks *do* work in
>> the end, since they're passed through to the shell, and the shell
>> interprets them the way the OP seems to want.
> 
> Oops. I probably should have read on after having been interrupted
> by the real world.
> 
> 
>> The missing -I is probably it.
> 
> At least i can reproduce the symptoms by a simple gcc run. But the
> reverse riddle stays. Why did it work otherwhere ?

Based on the skimming I've done of this thread, my guess would be that
either the tooling in that environment behaves differently, or the
configuration in that environment (e.g. autotools output) has already
been run and on the Debian side the necessary commands to run it aren't
being issued.

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man. -- George Bernard Shaw



signature.asc
Description: OpenPGP digital signature


Re: Does Debian supports backticks in the Makefile?

2022-07-11 Thread Thomas Schmitt
Hi,

Greg Wooledge wrote:
> You're misunderstanding my conclusions.  The backticks *do* work in the
> end, since they're passed through to the shell, and the shell interprets
> them the way the OP seems to want.

Oops. I probably should have read on after having been interrupted by
the real world.


> The missing -I is probably it.

At least i can reproduce the symptoms by a simple gcc run.
But the reverse riddle stays. Why did it work otherwhere ?


Have a nice day :)

Thomas



Re: Does Debian supports backticks in the Makefile?

2022-07-11 Thread Igor Korot
And hi i Debian afe  fiing he innclde line:

[code]
igor@debian:~/dbhandler/Debug/libpostgres$ make clean && make V=1
test -z "libpostgres.la" || rm -f libpostgres.la
rm -f ./so_locations
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../../libpostgres -I..-D__WXGTK__ -I../../dbinterface
`pg_config --includedir`  -g -O0 -MT
libpostgres_la-database_postgres.lo -MD -MP -MF
.deps/libpostgres_la-database_postgres.Tpo -c -o
libpostgres_la-database_postgres.lo `test -f 'database_postgres.cpp'
|| echo '../../libpostgres/'`database_postgres.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../libpostgres -I..
-D__WXGTK__ -I../../dbinterface /usr/include/postgresql -g -O0 -MT
libpostgres_la-database_postgres.lo -MD -MP -MF
.deps/libpostgres_la-database_postgres.Tpo -c
../../libpostgres/database_postgres.cpp  -fPIC -DPIC -o
.libs/libpostgres_la-database_postgres.o
../../libpostgres/database_postgres.cpp:22:10: fatal error:
libpq-fe.h: No such file or directory
   22 | #include 
  |  ^~~~
compilation terminated.
make: *** [Makefile:507: libpostgres_la-database_postgres.lo] Error 1
igor@debian:~/dbhandler/Debug/libpostgres$

[/codee]

On Mon, Jul 11, 2022 at 8:21 AM The Wanderer  wrote:
>
> On 2022-07-11 at 09:12, Greg Wooledge wrote:
>
> > On Mon, Jul 11, 2022 at 02:20:18PM +0200, Thomas Schmitt wrote:
> >
> >> Hi,
> >>
> >> i wrote:
>
>  It appears that an argument -I is missing before
>  /usr/include/postgresql.
> >>
> >>> This is a very good theory.
> >>
> >> Together with Greg Wooledge's observation that "make"'s macro
> >> definition does not interpret `...` as output of shell commands we
> >> already have two reasons why that part of the Makefile should not
> >> work.
> >>
> >> The riddle grows why it appears to work on Gentoo.
> >
> > You're misunderstanding my conclusions.  The backticks *do* work in
> > the end, since they're passed through to the shell, and the shell
> > interprets them the way the OP seems to want.
> >
> > The missing -I is probably it.  It's interesting that pkg-config
> > --cflags and pg_config --includedir deviate in this way.
>
> Note that pg_config does also support a --cflags option (there doesn't
> appear to be a man page, at least not in Debian under the obvious name,
> but see 'pg_config --help'); however, it's documented as providing not
> the flags necessary to compile programs against the installed PostgreSQL
> but rather the "CFLAGS value used when [the installed version of]
> PostgreSQL was built".
>
> In some cases those two things will be the same, but not necessarily in
> all - and I fail to see how the latter is useful information to know,
> except in a "trying to debug the installed PostgreSQL instance" sort of
> scenario, which hardly seems like what pg_config would intuitively be
> intended for.
>
> --
>The Wanderer
>
> The reasonable man adapts himself to the world; the unreasonable one
> persists in trying to adapt the world to himself. Therefore all
> progress depends on the unreasonable man. -- George Bernard Shaw
>



Re: Does Debian supports backticks in the Makefile?

2022-07-11 Thread Igor Korot
Hi guys,

This is what Gentoo generates:

[code]
igor@IgorReinCloud ~/dbhandler/Debug/libpostgres $ make clean && make V=1
test -z "libpostgres.la" || rm -f libpostgres.la
rm -f ./so_locations
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.
-I/home/igor/dbhandler/libpostgres -I..-D__WXGTK__
-I../../dbinterface `pg_config --includedir`  -g -O0 -MT
libpostgres_la-database_postgres.lo -MD -MP -MF
.deps/libpostgres_la-database_postgres.Tpo -c -o
libpostgres_la-database_postgres.lo `test -f 'database_postgres.cpp'
|| echo '/home/igor/dbhandler/libpostgres/'`database_postgres.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I.
-I/home/igor/dbhandler/libpostgres -I.. -D__WXGTK__
-I../../dbinterface /usr/include/postgresql-14 -g -O0 -MT
libpostgres_la-database_postgres.lo -MD -MP -MF
.deps/libpostgres_la-database_postgres.Tpo -c
/home/igor/dbhandler/libpostgres/database_postgres.cpp  -fPIC -DPIC -o
.libs/libpostgres_la-database_postgres.o
g++: warning: /usr/include/postgresql-14: linker input file unused
because linking not done
libtool: compile:  g++ -DHAVE_CONFIG_H -I.
-I/home/igor/dbhandler/libpostgres -I.. -D__WXGTK__
-I../../dbinterface /usr/include/postgresql-14 -g -O0 -MT
libpostgres_la-database_postgres.lo -MD -MP -MF
.deps/libpostgres_la-database_postgres.Tpo -c
/home/igor/dbhandler/libpostgres/database_postgres.cpp -o
libpostgres_la-database_postgres.o >/dev/null 2>&1
mv -f .deps/libpostgres_la-database_postgres.Tpo
.deps/libpostgres_la-database_postgres.Plo
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.
-I/home/igor/dbhandler/libpostgres -I..-D__WXGTK__
-I../../dbinterface `pg_config --includedir`  -g -O0 -MT
libpostgres_la-postgres.lo -MD -MP -MF
.deps/libpostgres_la-postgres.Tpo -c -o libpostgres_la-postgres.lo
`test -f 'postgres.cpp' || echo
'/home/igor/dbhandler/libpostgres/'`postgres.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I.
-I/home/igor/dbhandler/libpostgres -I.. -D__WXGTK__
-I../../dbinterface /usr/include/postgresql-14 -g -O0 -MT
libpostgres_la-postgres.lo -MD -MP -MF
.deps/libpostgres_la-postgres.Tpo -c
/home/igor/dbhandler/libpostgres/postgres.cpp  -fPIC -DPIC -o
.libs/libpostgres_la-postgres.o
g++: warning: /usr/include/postgresql-14: linker input file unused
because linking not done
libtool: compile:  g++ -DHAVE_CONFIG_H -I.
-I/home/igor/dbhandler/libpostgres -I.. -D__WXGTK__
-I../../dbinterface /usr/include/postgresql-14 -g -O0 -MT
libpostgres_la-postgres.lo -MD -MP -MF
.deps/libpostgres_la-postgres.Tpo -c
/home/igor/dbhandler/libpostgres/postgres.cpp -o
libpostgres_la-postgres.o >/dev/null 2>&1
mv -f .deps/libpostgres_la-postgres.Tpo .deps/libpostgres_la-postgres.Plo
/bin/sh ../libtool  --tag=CXX   --mode=link g++ -D__WXGTK__
-I../../dbinterface `pg_config --includedir`  -g -O0 -L../dbinterface
-ldbinterface `pg_config --libdir` -lpq   -o libpostgres.la -rpath
/usr/local/lib libpostgres_la-database_postgres.lo
libpostgres_la-postgres.lo
libtool: link: g++  -fPIC -DPIC -shared -nostdlib
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/crtbeginS.o
.libs/libpostgres_la-database_postgres.o
.libs/libpostgres_la-postgres.o   -L../dbinterface -ldbinterface -lpq
-L/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0
-L/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64
-L/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/lib
-L/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../.. -lstdc++ -lm -lc
-lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/crtendS.o
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../lib64/crtn.o  -g
-O0   -Wl,-soname -Wl,libpostgres.so.0 -o .libs/libpostgres.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libpostgres.so.0" && ln -s
"libpostgres.so.0.0.0" "libpostgres.so.0")
libtool: link: (cd ".libs" && rm -f "libpostgres.so" && ln -s
"libpostgres.so.0.0.0" "libpostgres.so")
libtool: link: ar cru .libs/libpostgres.a
libpostgres_la-database_postgres.o libpostgres_la-postgres.o
libtool: link: ranlib .libs/libpostgres.a
libtool: link: ( cd ".libs" && rm -f "libpostgres.la" && ln -s
"../libpostgres.la" "libpostgres.la" )
igor@IgorReinCloud ~/dbhandler/Debug/libpostgres $
[/code[

Thank you.

On Mon, Jul 11, 2022 at 8:21 AM The Wanderer  wrote:
>
> On 2022-07-11 at 09:12, Greg Wooledge wrote:
>
> > On Mon, Jul 11, 2022 at 02:20:18PM +0200, Thomas Schmitt wrote:
> >
> >> Hi,
> >>
> >> i wrote:
>
>  It appears that an argument -I is missing before
>  /usr/include/postgresql.
> >>
> >>> This is a very good theory.
> >>
> >> Together with Greg Wooledge's observation that "make"'s macro
> >> definition does not interpret `...` as output of shell commands we
> >> already have two reasons why that part of the Makefile should not
> >> work.
> >>
> >> The riddle grows why it appears to work on Gentoo.
> >
> > You're misunderstanding my conclusions.  The backticks *do* work in
> > the end, 

Re: macbook pro e debian 11 - problema no teclado

2022-07-11 Thread Paulo Alexandre A.P. de Oliveira

Eu tenho num mac air de 2011

Abraço,

Paulo.

On 11/07/22 12:19, Caio Ferreira wrote:

lista

Recentemente eu instalei o Debian 11 em um Apple MacBook Pro e tudo 
está funcionando às mil maravilhas exceto a acentuaćão, se cedilha, do 
teclado. Alguém por acaso teria algum texto para indicar de como 
resolver o problema?


desde já agradeço pela atenção


 .''`.   Caio Abreu Ferreira
: :'  : abreuf...@gmail.com
`. `'`   Debian User
  `-


--
Paulo Oliveira
Eng. Tec. Informático
Tlm: 912887324


Re: macbook pro e debian 11 - problema no teclado

2022-07-11 Thread Yuri Musachio
Caio, bom dia!

Tive esse mesmo problema com um teclado que comprei que possui layout Mac... 
Até tentei usar algun programas de remap de tecla mas não funcionou como eu 
gostaria. :confused:
De qualquer forma, usa o layout "English (US, intl., with dead keys)" e ai pra 
usar o "Ç" você usa as teclas "Option"+"<".
O layout correto pra ele deveria ser o "English (US, international PC)", mas 
aparentemente esse layout não existe.

Best,
On Jul 11 2022, at 9:19 am, Caio Ferreira  wrote:
> lista
>
> Recentemente eu instalei o Debian 11 em um Apple MacBook Pro e tudo está 
> funcionando às mil maravilhas exceto a acentuaćão, se cedilha, do teclado. 
> Alguém por acaso teria algum texto para indicar de como resolver o problema?
>
> desde já agradeço pela atenção
>
>
> .''`. Caio Abreu Ferreira
> : :' : abreuf...@gmail.com 
> (https://link.getmailspring.com/link/ae54c95a-08b3-428f-a2a2-e7f20215a...@getmailspring.com/0?redirect=mailto%3Aabreuferr%40gmail.com=ZGViaWFuLXVzZXItcG9ydHVndWVzZUBsaXN0cy5kZWJpYW4ub3Jn)
> `. `'` Debian User
> `-
>
>
>
>



Re: Does Debian supports backticks in the Makefile?

2022-07-11 Thread The Wanderer
On 2022-07-11 at 09:12, Greg Wooledge wrote:

> On Mon, Jul 11, 2022 at 02:20:18PM +0200, Thomas Schmitt wrote:
> 
>> Hi,
>> 
>> i wrote:

 It appears that an argument -I is missing before
 /usr/include/postgresql.
>> 
>>> This is a very good theory.
>> 
>> Together with Greg Wooledge's observation that "make"'s macro
>> definition does not interpret `...` as output of shell commands we
>> already have two reasons why that part of the Makefile should not
>> work.
>> 
>> The riddle grows why it appears to work on Gentoo.
> 
> You're misunderstanding my conclusions.  The backticks *do* work in
> the end, since they're passed through to the shell, and the shell
> interprets them the way the OP seems to want.
> 
> The missing -I is probably it.  It's interesting that pkg-config
> --cflags and pg_config --includedir deviate in this way.

Note that pg_config does also support a --cflags option (there doesn't
appear to be a man page, at least not in Debian under the obvious name,
but see 'pg_config --help'); however, it's documented as providing not
the flags necessary to compile programs against the installed PostgreSQL
but rather the "CFLAGS value used when [the installed version of]
PostgreSQL was built".

In some cases those two things will be the same, but not necessarily in
all - and I fail to see how the latter is useful information to know,
except in a "trying to debug the installed PostgreSQL instance" sort of
scenario, which hardly seems like what pg_config would intuitively be
intended for.

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man. -- George Bernard Shaw



signature.asc
Description: OpenPGP digital signature


Re: Does Debian supports backticks in the Makefile?

2022-07-11 Thread Greg Wooledge
On Mon, Jul 11, 2022 at 02:20:18PM +0200, Thomas Schmitt wrote:
> Hi,
> 
> i wrote:
> > > It appears that an argument -I is missing before /usr/include/postgresql.
> 
> > This is a very good theory.
> 
> Together with Greg Wooledge's observation that "make"'s macro definition
> does not interpret `...` as output of shell commands we already have
> two reasons why that part of the Makefile should not work.
> 
> The riddle grows why it appears to work on Gentoo.

You're misunderstanding my conclusions.  The backticks *do* work in the
end, since they're passed through to the shell, and the shell interprets
them the way the OP seems to want.

The missing -I is probably it.  It's interesting that pkg-config --cflags
and pg_config --includedir deviate in this way.



Re: macbook pro e debian 11 - problema no teclado

2022-07-11 Thread Caio Abreu Ferreira

    Vinicius

    Melhor ainda, é um notebook de 2011 e esta funcionando super bem.

 .''`.   Caio Abreu Ferreira
: :'  : abreuf...@gmail.com
`. `'`   Debian User
  `-

On 7/11/22 09:47, Vinicius Ferreira wrote:

Isso é o que eu chamo de ato de rebeldia! Gostei!

Em seg., 11 de jul. de 2022 9:19 AM, Caio Ferreira 
 escreveu:


lista

Recentemente eu instalei o Debian 11 em um Apple MacBook Pro e
tudo está funcionando às mil maravilhas exceto a acentuaćão, se
cedilha, do teclado. Alguém por acaso teria algum texto para
indicar de como resolver o problema?

desde já agradeço pela atenção


 .''`.   Caio Abreu Ferreira
: :'  : abreuf...@gmail.com
`. `'`   Debian User
  `-


Re: OT, Recommendation for low cost laptop

2022-07-11 Thread Charles Curley
On Mon, 11 Jul 2022 09:32:49 +0200
john doe  wrote:

> I'm comtemplating buying a Pinebook pro but I'm not sure if this is
> better then buying a Windows laptop and putting linux on it.
> 
> I'm looking for something cheap (max would be around 300 bucks), do
> you have any suggestions/ideas?

Newegg (and likely other on-line vendors) offers reburbished used
computers. I've had good results with the Lenovo T series from there.

You didn't mention which flavor of bucks you had in mind. US, Canadian,
Australian, etc. I doubt you meant Zimbabwean, though.

-- 
Does anybody read signatures any more?

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



Re: Partición /datos compartida

2022-07-11 Thread Simeón Ignacio Martirén
Muchas gracias. Veremos cómo me va.


El lun, 11 jul 2022 a las 3:01, Camaleón () escribió:

> El 2022-07-10 a las 20:22 -0300, Simeón Ignacio Martirén escribió:
>
> > Hola Lista Debian. Pido ayuda.
>
> Hola :-)
>
> (...)
>
> > ¿Podría instalar un Bulleye desde la ISO con una partición aparte para
> > /DATOS y luego en el segunto (LUBUNTU Jammy)editar el archivo fstab para
> > que acceda a la partición /DATOS de Bulleye siempre al arrancar?
>
> Sí, claro.
> Yo lo tengo así, aunque no con una partición sino con discos completos
> decicados a datos.
>
> sm01@stt008:~$ mount | grep data
> systemd-1 on /data/backup2 type autofs
> (rw,relatime,fd=27,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=1341)
> systemd-1 on /data/backup3 type autofs
> (rw,relatime,fd=37,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=9370)
> /dev/sdb1 on /data/backup1 type ext3 (rw,relatime,data=ordered)
>
> sm01@stt008:~$ cat /etc/fstab
> # /etc/fstab: static file system information.
> #
> # Use 'blkid' to print the universally unique identifier for a
> # device; this may be used with UUID= as a more robust way to name devices
> # that works even if disks are added and removed. See fstab(5).
> #
> #
> # / was on /dev/sda3 during installation
> UUID=521fe2d5-7d87-4117-b136-e1e68f11d2bc /   xfs
>  defaults0   0
> # swap was on /dev/sda1 during installation
> UUID=6abe498c-a75f-4ff3-abc9-c281a6316ff2 noneswapsw
> 0   0
> /dev/sr0/media/cdrom0   udf,iso9660 user,noauto 0   0
> # 500 GiB hd / sdb1
> UUID=8ab7cc61-8d69-42d6-bfb8-112f0e0f8a40 /data/backup1 ext3
> acl,user_xattr 1 2
> # 500 GiB part / sdc2
> UUID=a0bce6f8-7f08-4ead-a647-de4f6e16be87 /data/backup2 ext3
> acl,user_xattr,noauto,nofail,x-systemd.automount,x-systemd.device-timeout=1
> 1 2
> # 500 GiB part / sdc1
> UUID=2151d682-7969-4684-848a-72a401e59604 /data/backup3 ext3
> acl,user_xattr,noauto,nofail,x-systemd.automount,x-systemd.device-timeout=1
> 1 2
>
> > Por ejemplo, en este momento escribo desde Lubuntu jammy y tengo las
> > siguientes líneas del fstab:
> > UUID=aca6de29-faed-4eea-aed9-26f256e3dda1 /  ext4
> defaults 0 1
> > /swapfile swap   swap
> defaults 0 0
> >
> > rompo algo si agrego una línea como la que sigue para acceder a los datos
> > compartiendo con Bulleye?
> > UUID=5d822baa-bba7-4466-a9e5-96020024ac1f /datos  ext4
> defaults   0 2
> >
> > (aclaro: este último UUID lo saqué de otra máquina, sólo es a modo de
> > ejemplo)
> > Gracias desde ya.
>
> No pasa nada, puedes probar a montar la partición antes de reiniciar,
> para ver si se monta bien y con los permisos adecuados.
>
> Eso sí, si vas a compartir la partición entre dos sistemas operativos
> distintos, asegúrate de que la montas con los permisos apropiados para
> que puedas acceder, eliminar, escribir... sin problemas desde Debian y
> Lubuntu, ya que serán usuarios distintos los que accedan/guarden/elimen
> los mismos archivos.
>
> Saludos,
>
> --
> Camaleón
>
>

-- 
*  Ignacio*


Re: Does Debian supports backticks in the Makefile?

2022-07-11 Thread Thomas Schmitt
Hi,

i wrote:
> > It appears that an argument -I is missing before /usr/include/postgresql.

> This is a very good theory.

Together with Greg Wooledge's observation that "make"'s macro definition
does not interpret `...` as output of shell commands we already have
two reasons why that part of the Makefile should not work.

The riddle grows why it appears to work on Gentoo.

--

  info make
shows a "MAKE(P) POSIX Programmer's Manual" which explains that what i
perceive as variables are indeed macros. No mentioning is to see of any
shell-like properties.

The web has workarounds with GNU make:
  
https://stackoverflow.com/questions/10024279/how-to-use-shell-commands-in-makefile
This is confirmed by
  https://www.gnu.org/software/make/manual/html_node/Shell-Function.html

Alternatively i would try to hand over the "-I..." argument by an
environment variable.

But i guess the autotools way is to insert the desired arguments at
latest when ./configure creates Makefile from Makefile.in.
(Now we could need hearsay about how this is to be done ...)


Have a nice day :)

Thomas



macbook pro e debian 11 - problema no teclado

2022-07-11 Thread Caio Ferreira
lista

Recentemente eu instalei o Debian 11 em um Apple MacBook Pro e tudo está
funcionando às mil maravilhas exceto a acentuaćão, se cedilha, do teclado.
Alguém por acaso teria algum texto para indicar de como resolver o problema?

desde já agradeço pela atenção


 .''`.   Caio Abreu Ferreira
: :'  :  abreuf...@gmail.com
`. `'`   Debian User
  `-


Re: libpq-dev package

2022-07-11 Thread Eduardo M KALINOWSKI

On 10/07/2022 21:30, Igor Korot wrote:

Apparently the package name is exactly libpq-dev. ;-)

Naming convention sucks sometimes... ;-)
It can, but I don't think this is one such case. The library is libpq5, 
and its development headers is libpq-dev. postgresql-client is the user 
tool to connect to a PostgreSQL instance and issue SQL commands. It 
depends on libpq5.



--
In the Halls of Justice the only justice is in the halls.
-- Lenny Bruce

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: Debian 11: MTA Exim4 not listening to fetchmail

2022-07-11 Thread Roger Price

On Sun, 10 Jul 2022 17:12:18 +0100, Gareth Evans  wrote:

On Sun 10 Jul 2022, at 15:38, Roger Price  wrote:
[...]

I removed the ipv6.disable=1 and rebooted, but this made no difference.


I'm not sure if there may be other issues here too, but did you update-grub 
before rebooting?


No, I forgot. I am ashamed. I ran update-grub and command grep ipv6 
/boot/grub/grub.cfg | wc -l now returns 0.  No more mention of ipv6.


I re-booted and fetchmail now talks to exim4 correctly. Command ss -lnt | grep 
:25 now reports


   LISTEN 0   20  127.0.0.1:25 0.0.0.0:*
   LISTEN 0   20  [::1]:25[::]:*

I can now read my mail on my Debian 11 machine. Many thanks to Gareth and all 
those who commented.


Roger



Re: debian-user-digest Digest V2022 #584

2022-07-11 Thread John ff


⁣Get TypeApp for Android ​

On 11 Jul 2022, 01:31, at 01:31, debian-user-digest-requ...@lists.debian.org 
wrote:
>Subject: (No subject)
>
>debian-user-digest Digest  Volume 2022 : Issue 584
>
>Today's Topics:
>Re: Debian 11: MTA Exim4 not listeni  [ "Gareth Evans"
>Re: Debian 11: MTA Exim4 not listeni  [ Greg Wooledge
> ]
>Re: apt won't remove/ purge installe  [ Tom Browder
> ]
>  How can I find out why apt-get is ke  [ L L  ]
>Re: apt won't remove/ purge installe  [ Morgan Read
> ]
>What package I can find aclocal in?   [ Igor Korot 
>]
>Re: apt won't remove/ purge installe  [ Morgan Read
> ]
>Re: Debian 11: How to disable IPv6[ Andy Smith
> ]
>Re: Debian 11: How to disable IPv6[ Andy Smith
> ]
>Re: What package I can find aclocal   [ Greg Wooledge
> ]
>Re: What package I can find aclocal   [ Andy Smith
> ]
>Re: What package I can find aclocal   [ Igor Korot 
>]
>Re: What package I can find aclocal   [ Igor Korot 
>]
>Re: What package I can find aclocal   [ Andy Smith
> ]
>Re: What package I can find aclocal   [ Igor Korot 
>]
>libpq-dev package [ Igor Korot 
>]
>Re: libpq-dev package [ Andy Smith
> ]
>
>
>
>
>From: Gareth Evans 
>To: debian-user@lists.debian.org
>Sent: Sun Jul 10 22:57:40 GMT+01:00 2022
>Subject: Re: Debian 11: MTA Exim4 not listening to fetchmail
>
>On Sun 10 Jul 2022, at 18:28, Greg Wooledge  wrote:
>
>> Mine contains these lines:
>>
>> unicorn:~$ grep ::1 /etc/hosts
>> ::1 localhost ip6-localhost ip6-loopback
>> ff02::1 ip6-allnodes
>>
>> They were put there by Debian.  I didn't touch them.
>
>[I got the ::1 and localhost the wrong way around in my earlier reply.]
>
>
>$ sudo fuser 25/tcp
>25/tcp:   3778
>
>$ ps -p 3778 -o comm=
>exim4
>
>$ cat /etc/hosts
>127.0.0.1  localhost
>127.0.0.1  hostname
>::1localhost ip6-localhost ip6-loopback
>ff02::1ip6-allnodes
>ff02::2ip6-allrouters
>
>$ telnet localhost 25
>Trying ::1...
>Connected to localhost.
>
>$ sudo ss -lnt | grep :25
>LISTEN 0  20 127.0.0.1:25 0.0.0.0:*
>LISTEN 0  20 [::1]:25[::]:*
>
>
>$ sudo reboot
>- set boot arg ipv6.disable=1
>- NB ipv6 addresses still in /etc/hosts
>
>$ telnet localhost 25
>Trying 127.0.0.1...
>Trying ::1...
>telnet: Unable to connect to remote host: Address family not supported
>by protocol
>   
>$ sudo ss -lnt | grep :25
>$
>
>
>Just out of interest:
>
>Now, comment out ipv6 in /etc/hosts
>
>$ cat /etc/hosts
>127.0.0.1  localhost
>127.0.0.1  hostname
>#::1   localhost ip6-localhost ip6-loopback
>#ff02::1   ip6-allnodes
>#ff02::2   ip6-allrouters
>
>
>$ sudo reboot
>- set boot arg ipv6.disable=1
>
>$ telnet localhost 25
>Trying 127.0.0.1...
>telnet: Unable to connect to remote host: Connection refused
>  ^^ ???
>$ sudo nft list ruleset
>$
>
>$ ss -lnt | grep :25
>$
>
>$ ps -aux | grep exim
>gives only "grep exim" - exim4 is not running
>
>Does exim4 require ipv6?
>
>I can't find any obvious such config with
>
>sudo grep -Ri ipv6 /etc/exim4
>sudo grep -Ri ip6 /etc/exim4
>etc. etc.
>
>
>In Roger's case, telnet seems to be outputting the same error as exim4
>is panic logging, which occurs when ipv6 is disabled and "::1 ..."
>exists in /etc/hosts.  Coincidence?
>
>"When certain serious errors occur, Exim writes entries to its panic
>log. If the error is sufficiently disastrous, Exim bombs out
>afterwards"
>https://www.exim.org/exim-html-current/doc/html/spec_html/ch-log_files.html
>
>This suggests exim4 may not be listening having written to the panic
>log even if my ipv6 requirement is the result of some oddity.
>
>Again:
>
>On Sun 10 Jul 2022, at 15:38, Roger Price 
>wrote:
>> I removed the ipv6.disable=1 and rebooted, but this made no
>difference.
>
>IIUC, without a
>
>$ sudo update-grub
>
>before reboot, ipv6 is still disabled, assuming Roger described exactly
>what he did there.
>
>Does this seem a reasonable assessment?
>
>Best wishes,
>Gareth
>
>
>
>
>From: Greg Wooledge 
>To: debian-user@lists.debian.org
>Sent: Sun Jul 10 23:05:45 GMT+01:00 2022
>Subject: Re: Debian 11: MTA Exim4 not listening to fetchmail
>
>On Sun, Jul 10, 2022 at 10:57:40PM +0100, Gareth Evans wrote:
>> $ sudo reboot
>> - set boot arg ipv6.disable=1
>> - NB ipv6 addresses still in /etc/hosts
>>
>> $ telnet localhost 25
>> Trying 127.0.0.1...
>> Trying ::1...
>> telnet: Unable to connect to remote host: Address family not
>supported by protocol
>>
>
>> $ sudo ss -lnt | grep :25
>> $
>
>> Does exim4 require ipv6?
>
>Check its log file to be sure.  The snippet you posted earlier seems
>to say that it 

Re: Does Debian supports backticks in the Makefile?

2022-07-11 Thread tomas
On Mon, Jul 11, 2022 at 01:04:14PM +0200, Thomas Schmitt wrote:
> Hi,
> 
> how about this theory:
> 
>   https://gcc.gnu.org/onlinedocs/cpp/Invocation.html#Invocation
> says
> 
>   "-I dir
>  Add the directory dir to the list of directories to be searched
>  for header files during preprocessing."
> 
> Note the the singular "dir", not "dirs".
> 
> In Igor Korot's Makefile.am we see
> 
>   libpostgres_la_CXXFLAGS = -D__WXGTK__ \
>   -I../../dbinterface \
>   `pg_config \
>   --includedir`
> 
> which is supposed to a set the variable libpostgres_la_CXXFLAGS to
> 
>   -D__WXGTK__ -I../../dbinterface /usr/include/postgresql
> 
> It appears that an argument -I is missing before /usr/include/postgresql.

This is a very good theory. It has to be "-I foo -I bar ...", AFAIR. The
current manual [1] is very clear on this, too.

Sharp eye :)

Note that this wouldn't happen with the very similar `pkg-config'. This
one prepends the `-I' to its output. o figure ;-)

Cheers

[1] 
https://gcc.gnu.org/onlinedocs/gcc-12.1.0/gcc/Directory-Options.html#Directory-Options
-- 
t


signature.asc
Description: PGP signature


Re: Converting an old Chromebook to pure Debian, was: OT, Recommendation for low cost laptop

2022-07-11 Thread Dan Ritter
Ottavio Caruso wrote: 
> On 11/07/2022 08:32, john doe wrote:
> 
> > I'm looking for something cheap (max would be around 300 bucks), do you
> > have any suggestions/ideas?
> 
> 
> My local Cash-Converter/Generator(s) have plenty of old-ish Chromebooks for
> £50 or less.
> 
> I know it's possible to run some sort of Linux with trickeries like Crouton
> or similar. I wonder if it's just possible to nuke all Google related junk
> and install native Debian or is it not technically possible?

On some of them, yes. The process is to flash a new BIOS, after
which the Chromebook is just a laptop. 

https://github.com/MrChromebox/SeaBIOS

I don't recommend this approach for general use machines: chromebooks
are generally sold with tiny flash disks, often unreplaceable. A 16 or
32GB flash disk will limit you severely.

As a limited use machine, though, it shouldn't be bad.

-dsr-



Re: Does Debian supports backticks in the Makefile?

2022-07-11 Thread Greg Wooledge
On Sun, Jul 10, 2022 at 11:13:45PM -0500, Igor Korot wrote:
> libpostgres_la_CXXFLAGS = -D__WXGTK__ \
> -I../../dbinterface \
> `pg_config \
> --includedir`

You're asking whether this works in a variable definition inside a
Makefile.  I'm assuming you're using GNU make.

Well, let's TEST IT AND SEE.  Shsh.


unicorn:~$ cd tmp
unicorn:~/tmp$ vi Makefile
unicorn:~/tmp$ cat Makefile
foo = abc `echo def` ghi

bar = jkl \
`echo \
mno` \
pqr

one:
echo $(foo)

two:
echo $(bar)
unicorn:~/tmp$ make one
echo abc `echo def` ghi
abc def ghi
unicorn:~/tmp$ make two
echo jkl `echo mno` pqr
jkl mno pqr
unicorn:~/tmp$ make --version | head -n1
GNU Make 4.3


So, what do we conclude from this?  The backticks are not expanded when
the make variable is defined.  They're included literally in the variable's
contents.  They get passed to the shell command that make executes, and
the shell interprets them as a command substitution.

On a personal note, I find this construction extremely ugly:

`pg_config \
--includedir`

I can't see any sensible reason why you would write a command
substitution this way, with the command's single argument on a separate
line from the command itself.  That's part of the reason why I tested it
separately in my demonstration.  The other part is that I thought,
perhaps, the command substitution might have been handled by make itself,
during the variable definition.  And if that were the case, then perhaps
splitting it across lines might have confused make, and caused it not to
work.

But as we saw in the test, it works the same either way.



Re: Does Debian supports backticks in the Makefile?

2022-07-11 Thread Thomas Schmitt
Hi,

how about this theory:

  https://gcc.gnu.org/onlinedocs/cpp/Invocation.html#Invocation
says

  "-I dir
 Add the directory dir to the list of directories to be searched
 for header files during preprocessing."

Note the the singular "dir", not "dirs".

In Igor Korot's Makefile.am we see

  libpostgres_la_CXXFLAGS = -D__WXGTK__ \
  -I../../dbinterface \
  `pg_config \
  --includedir`

which is supposed to a set the variable libpostgres_la_CXXFLAGS to

  -D__WXGTK__ -I../../dbinterface /usr/include/postgresql

It appears that an argument -I is missing before /usr/include/postgresql.



I tested with a small dummy program which does:
  #include "test1.h"
  #include "test2.h"
There are dummy header files:
  test/include/test_2_dir/test1.h
  test/include/test_2_dir/test2.h

Then i try
  cc -g -Itest/include/test_1_dir test/include/test_2_dir -o t t.c
which complains
  t.c:19:19: fatal error: test2.h: No such file or directory
   #include "test2.h"
 ^
  compilation terminated.
I.e. it does not mention the surplus argument test/include/test_2_dir
before it ends.

This run succeeds:
  cc -g -Itest/include/test_1_dir -Itest/include/test_2_dir -o t t.c



If my theory is right, then the question arises why it works with
Igor Korot's Gentoo installation.
man gcc proposes as suspects:

   CPATH
   C_INCLUDE_PATH
   CPLUS_INCLUDE_PATH
   OBJC_INCLUDE_PATH
   Each variable's value is a list of directories separated by a
   special character, much like PATH, in which to look for header
   files.


Have a nice day :)

Thomas



Re: Does Debian supports backticks in the Makefile?

2022-07-11 Thread tomas
On Mon, Jul 11, 2022 at 11:50:59AM +0200, Thomas Schmitt wrote:
> Hi,
> 
> to...@tuxteam.de wrote:
> > Still, I insist it should be called  unless you /know/ you
> > want to supply your own header file.
> 
> Question is what Igor Korot is trying to compile.
> If it is postgres itself or one of its helpers, then libpq-fe.h would
> probably be one of the "header files of your own program".

If I understood him correctly it's "just" an app using the distro
provided libpq.

[...]

> I wrote:
> > > What does this command put out:
> 
> > Yes, we're now all curious :-)
> 
> We should rather look at the original post. ~:o)
> 
> Igor Korot wrote:
> > > > igor@debian:~/dbhandler/Debug/libpostgres$ pg_config --includedir
> > > > /usr/include/postgresql
> 
> So the question is whether there is
>   /usr/include/postgresql/libpq-fe.h
> as should be if libpq-dev is installed (says apt-file).
> 
> If it is there, then the question is why it isn't found.
> Besides the suspicion of Igor Korot, that `pg_config --includedir` would
> not work, there is the possibility that libpostgres/Makefile.am was
> not porperly converted to libpostgres/Makefile.in and then to
> libpostgres/Makefile .

Yep. That's why I think it makes sense to bisect the problem at the
`pg_config' point: is it delivering the correct compile flags? If
yes, look into the rest of configury, if not, try to fix pg_config.

Many possibilities there: wrong pg_config in $PATH, left over from
some attempt to self-compile PostgreSQL could be one. We just don't
know :)

> This is normally done by a script which calls autoconf and automake
> to create Makefile.in. Later ./configure creates Makefile from Makefile.in.
> In libisoburn the script has the name ./bootstrap and contains:
>   aclocal -I .
>   libtoolize --copy --force
>   autoconf
>   automake --foreign --add-missing --copy --include-deps
> Don't ask me why. I inherited it in 2006 in the course of the libburn fork.
> autotools usage worldwide is nearly completely driven by hearsay.

There is some amount of cargo-cult in there. But it pays to try to
understand it (I didn't succeed completely, mind you, but still...)

> @ Igor Korot:
> It would be interesting to see the effective compiler options (which the
> make run seems to hide from the user) and whether the usage-ready
> Makefile contains the lines

I think the compile line must be visible (in its expanded form) in the
build logs. I'd urge Igor to look out for it. And tell us, of course :)

Cheers
-- 
t


signature.asc
Description: PGP signature


Re: Does Debian supports backticks in the Makefile?

2022-07-11 Thread Thomas Schmitt
Hi,

to...@tuxteam.de wrote:
> Still, I insist it should be called  unless you /know/ you
> want to supply your own header file.

Question is what Igor Korot is trying to compile.
If it is postgres itself or one of its helpers, then libpq-fe.h would
probably be one of the "header files of your own program".


I wrote:
> > What does this command put out:

> Yes, we're now all curious :-)

We should rather look at the original post. ~:o)

Igor Korot wrote:
> > > igor@debian:~/dbhandler/Debug/libpostgres$ pg_config --includedir
> > > /usr/include/postgresql

So the question is whether there is
  /usr/include/postgresql/libpq-fe.h
as should be if libpq-dev is installed (says apt-file).

If it is there, then the question is why it isn't found.
Besides the suspicion of Igor Korot, that `pg_config --includedir` would
not work, there is the possibility that libpostgres/Makefile.am was
not porperly converted to libpostgres/Makefile.in and then to
libpostgres/Makefile .

This is normally done by a script which calls autoconf and automake
to create Makefile.in. Later ./configure creates Makefile from Makefile.in.
In libisoburn the script has the name ./bootstrap and contains:
  aclocal -I .
  libtoolize --copy --force
  autoconf
  automake --foreign --add-missing --copy --include-deps
Don't ask me why. I inherited it in 2006 in the course of the libburn fork.
autotools usage worldwide is nearly completely driven by hearsay.


@ Igor Korot:
It would be interesting to see the effective compiler options (which the
make run seems to hide from the user) and whether the usage-ready
Makefile contains the lines

  libpostgres_la_CXXFLAGS = -D__WXGTK__ \
  -I../../dbinterface \
  `pg_config \
  --includedir`


Have a nice day :)

Thomas



Re: Does Debian supports backticks in the Makefile?

2022-07-11 Thread tomas
On Mon, Jul 11, 2022 at 10:28:39AM +0200, Thomas Schmitt wrote:
> Hi,
> 
> https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html
> 
>   #include 
>   This variant is used for system header files. It searches for a file
>   named file in a standard list of system directories. You can prepend
>   directories to this list with the -I option (see Invocation).
> 
>   #include "file"
>   This variant is used for header files of your own program. It searches
>   for a file named file first in the directory containing the current file,
>   then in the quote directories and then the same directories used for
>   . You can prepend directories to the list of quote directories
>   with the -iquote option.
> 
> So "libpq-fe.h" has a wider search range than  and cannot
> be to blame for not finding the file.

Yes, you're right. Thanks for the correction.

Still, I insist it should be called  unless you /know/ you
want to supply your own header file.

[...]

> What does this command put out:
> 
>   pg_config --includedir

Yes, we're now all curious :-)

Cheers
-- 
t


signature.asc
Description: PGP signature


Re: Does Debian supports backticks in the Makefile?

2022-07-11 Thread Thomas Schmitt
Hi,

https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html

  #include 
  This variant is used for system header files. It searches for a file
  named file in a standard list of system directories. You can prepend
  directories to this list with the -I option (see Invocation).

  #include "file"
  This variant is used for header files of your own program. It searches
  for a file named file first in the directory containing the current file,
  then in the quote directories and then the same directories used for
  . You can prepend directories to the list of quote directories
  with the -iquote option.

So "libpq-fe.h" has a wider search range than  and cannot
be to blame for not finding the file.

It looks like this gesture in Makefile.am shall add the directory with
this file to the list of include directories:

  libpostgres_la_CXXFLAGS = -D__WXGTK__ \
-I../../dbinterface \
`pg_config \
--includedir`

What does this command put out:

  pg_config --includedir

I understand pg_config belongs to package libpq-dev. Its purpose is told by:
  https://www.postgresql.org/docs/current/app-pgconfig.html


Have a nice day :)

Thomas



Re: Problem mounting encrypted blu-ray disc or image

2022-07-11 Thread Thomas Schmitt
Hi,

B.M. wrote:
> Do I understand correctly, you say that this Pioneer drive doesn't work well
> with Verbatim BD-RE, i.e. their rewriteable BDs.

Yes. The problem is with the high reading speed of the drive and with
a physical flaw of Verbatim BD-RE (CMCMAG/CN2/0).
The flaw is that there are letters engraved in the transparent area around
the inner hole, which reach to the thickened ring around the hole.
This ring is obviously essential for physical stability and the letters
weaken it enough so that 10 to 20 full read runs on my Pioneer BDR-209
are enough to produce a radial crack at the hole. This crack grows towards
the rim in a few more full speed reads. As soon as the dye is reached, the
medium is unreadable.

Writing is no problem, because it happens at most at 2.0x speed.
Older Verbatim BD-RE (VERBAT/IM0/0) are no problem. But one cannot buy
them any more.
Reading the new Verbatim BD-RE media is no problem on Optiarc BD RW BD-5300S,
LG BD-RE BH16NS40, and ASUS BW-16D1HT. And of course not with the old LG
drives like BD-RE GGW-H20L which read (and write) BD-RE at 2.3x speed.


> Since I only use BD-R, it
> doesn't matter for me and my use case, but thank you nevertheless.

I tested about 50 reads with RITEK/BR3/0 and Verbatim CMCMAG/BA5/0
BD-R media. No problems. (And no engraved letters to see around the
inner hole.)
The media which you inspected by dvd+rw-medianinfo are CMCMAG/BA5
(dunno what dvd+rw-medianinfo did to the "/0" part of the name).


I am still curious whether the decryption problems are caused by
not closing the /dev/mapper device.


Have a nice day :)

Thomas



Re: OT, Recommendation for low cost laptop

2022-07-11 Thread tomas
On Mon, Jul 11, 2022 at 05:45:38PM +1000, David wrote:
> On Mon, 11 Jul 2022 09:32:49 +0200
> john doe  wrote:
> 
> > Debians,
> > 
> > I'm comtemplating buying a Pinebook pro but I'm not sure if this is
> > better then buying a Windows laptop and putting linux on it.
> > 
> > I'm looking for something cheap (max would be around 300 bucks), do you
> > have any suggestions/ideas?
> 
> See the local computer recyclers.

I can vouch for that. I got mine (a Lenovo X230) from a store specialised
on that. I topped it up to 16G RAM (that's why it cost 400EUR instead of
the "standard" 200 for 8G). It has given me five years of service and is
still going strong.

Cheers
-- 
t


signature.asc
Description: PGP signature


Re: OT, Recommendation for low cost laptop

2022-07-11 Thread Timothy M Butterworth
On Mon, Jul 11, 2022 at 3:33 AM john doe  wrote:

> Debians,
>
> I'm comtemplating buying a Pinebook pro but I'm not sure if this is
> better then buying a Windows laptop and putting linux on it.
>
> I'm looking for something cheap (max would be around 300 bucks), do you
> have any suggestions/ideas?
>
> I have a Asus x200ca notebook that works well you can pick one up from
Amazon for $200.
https://www.amazon.com/Asus-X200CA-HCL1104G-Celeraon-processor-Windows/dp/B00GWVNK8A


> --
> John Doe
>
>

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


Re: Problem mounting encrypted blu-ray disc or image

2022-07-11 Thread B.M.
> Good questions. Make some experiments. :))
> At least the manual intervention is a good suspect because it occurs exactly
> when you get undecryptable images.

Will do later.

> I see in your script:
>
> umount /mnt/BDbackup
> cryptsetup luksClose /dev/mapper/BDbackup
> losetup -d $IMGLOOP
>
>
> #
> # Step 5: Burn to BD-R
> #
>
> and would expect that the three lines are there for a reason.

Well, I'm a thorough guy ;-) If I do losetup, luskOpen, mount before copying
files, I do umount, luksClose, losetup afterwards as well.

> Do i understand correctly that the overflow happens in line 173
> with the tar run ?
>
>  tar cf - -C "`dirname "$line"`" "`basename "$line"`" | plzip >
> "$zipfilename1"

Exactly.

> If so: What happens next ? Does the script abort without cleaning up ?
> (I.e. no unmounting, closing, and de-looping by the script ?)

It tries for all remaining folders, all of them immediately fail because of
disk full and then it waits for input at step 4, i.e. no automatic cleaning up
but if I continue (what I do) it will do the cleanup before burning.


> > >   dvd+rw-mediainfo /dev/dvd
> >
> > INQUIRY:[PIONEER ][BD-RW   BDR-209D][1.30]
>
> That's the killer of Verbatim BD-RE. (If you buy BD-RE, then take any other
> brand, which will probably be made by Ritek.)

Do I understand correctly, you say that this Pioneer drive doesn't work well
with Verbatim BD-RE, i.e. their rewriteable BDs. Since I only use BD-R, it
doesn't matter for me and my use case, but thank you nevertheless.

> There would still be 100 MB free for another session.
> (But don't mess with good backups which are not intended as multi-session.)

For backup reasons, I use each BD disc once, no overwriting, no multi-session,
just write and forget (OK, I should have tested them for readability
afterwards, not just randomly but all of them - lesson learned)  ;-)

Best,
Bernd




Re: OT, Recommendation for low cost laptop

2022-07-11 Thread David
On Mon, 11 Jul 2022 09:32:49 +0200
john doe  wrote:

> Debians,
> 
> I'm comtemplating buying a Pinebook pro but I'm not sure if this is
> better then buying a Windows laptop and putting linux on it.
> 
> I'm looking for something cheap (max would be around 300 bucks), do you
> have any suggestions/ideas?

See the local computer recyclers.
Preferably the ones who handle the government throw-outs.
Government departments, in order to boost their budget allocation, replace as
much of their stock as possible, each year, so some good deals are in the
works.
A good recycler checks everything out, will upgrade the size of drive and
amount of RAM, on request, and deliver on an economical deal with some form
of guarantee.

Off to one side, I have an ACER Travelmate I got in 2017 (2016 model) that
has been as solid as a rock since I bought it. Never missed a beat, costing
me $300 Australian.

It's how I get all my stuff.

Cheers!



Re: Does Debian supports backticks in the Makefile?

2022-07-11 Thread tomas
On Mon, Jul 11, 2022 at 12:24:48AM -0500, Igor Korot wrote:
> Hi,
> 
> On Mon, Jul 11, 2022 at 12:10 AM  wrote:
> >
> > On Sun, Jul 10, 2022 at 11:13:45PM -0500, Igor Korot wrote:
> > > Hi, ALL,
> > > [code]
> > >   CXX  libpostgres_la-database_postgres.lo
> > > ../../libpostgres/database_postgres.cpp:22:10: fatal error:
> > > libpq-fe.h: No such file or directory
> > >22 | #include "libpq-fe.h"
> >
> > Ah, at last you show your C code, though indirectly.
> >
> > This is only going to work if the libpq-fe.h is in the directory
> > you are compiling from.
> >
> > You are copy-pasting C code out of its context.
> >
> > Usually, you would write
> >
> >   #include 
> 
> Doesn't make a difference.

Perhaps you don't see it at the moment, but believe me,
it does :)

> > and make sure /usr/include/postgresql (that's the place where libpq-fe.h
> > goes typically) is in the compiler's list of include paths to search
> > for (i.e. the -I option).
> 
> Well it is as shown by the other output.

Now to debug that, you should try to locate the line in the log
where the C compiler is called to actually compile the program.

There you should find what options it is actually called with (esp.
the -I is interesting). If /usr/include/postgresql is in there, I'd
double check that /usr/include/postgresql/libpq-fe.h is there and
readable.

OTOH, if that's missing, I'd make sure your configury is working
properly. Among other things, I'd double-check what pg_config:

  pg_config --includedir

is saying. Perhaps it's lying? Perhaps you're picking the wrong
one?

That kind of stuff.

Cheers
-- 
t


signature.asc
Description: PGP signature


OT, Recommendation for low cost laptop

2022-07-11 Thread john doe

Debians,

I'm comtemplating buying a Pinebook pro but I'm not sure if this is
better then buying a Windows laptop and putting linux on it.

I'm looking for something cheap (max would be around 300 bucks), do you
have any suggestions/ideas?

--
John Doe



Re: Does Debian supports backticks in the Makefile?

2022-07-11 Thread Tom Furie
On Mon, Jul 11, 2022 at 12:24:48AM -0500, Igor Korot wrote:
> >   #include 
> 
> Doesn't make a difference.

Do you have libpq-dev installed?

Cheers,
Tom

-- 
A farmer is a man outstanding in his field.


signature.asc
Description: PGP signature


Re: How can I find out why apt-get is keeping a package back?

2022-07-11 Thread Cindy Sue Causey
On 7/10/22, David Wright  wrote:
> On Sun 10 Jul 2022 at 15:24:11 (-0700), L L wrote:
>> How can I find out why apt-get is keeping a package back?
>
> I usually look at the output of  apt-cache show .

I accidentally stumbled upon that I can "apt-get upgrade "
and see what is likely the trigger for held packages. For me, it
always hesitates and waits for approval. Most often, packages I've
seen are being held back because of an upgrade to the next versioning
plateau or because completely brand new packages are being installed
along with.

Being able to "-s" simulate with apt-get is something I always forget
exists. I just test drove it, and it worked for upgrade in general:

apt-get upgrade -s

There wasn't anything held back this time so I can only assume that
simulate would additionally work for:

apt-get upgrade  -s

That can be run just like that, as regular User instead of root.

Simulation doesn't give the 100% full picture. It might not generate
enough focus on the held package to answer why it's being held. May be
why I don't remember to use it. I played with simulation a couple
times, and it's a cute trick. At the end of the day, though, I just go
straight for the real upgrade. For me so far, that route has been
informative and has worked safely #1 because it doesn't continue until
I hit the ENTER key again. :)

Cindy :)
-- 
Talking Rock, Pickens County, Georgia, USA
* runs with birdseed *



Re: Partición /datos compartida

2022-07-11 Thread Camaleón
El 2022-07-10 a las 20:22 -0300, Simeón Ignacio Martirén escribió:

> Hola Lista Debian. Pido ayuda.

Hola :-)

(...)

> ¿Podría instalar un Bulleye desde la ISO con una partición aparte para
> /DATOS y luego en el segunto (LUBUNTU Jammy)editar el archivo fstab para
> que acceda a la partición /DATOS de Bulleye siempre al arrancar?

Sí, claro. 
Yo lo tengo así, aunque no con una partición sino con discos completos 
decicados a datos.

sm01@stt008:~$ mount | grep data
systemd-1 on /data/backup2 type autofs 
(rw,relatime,fd=27,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=1341)
systemd-1 on /data/backup3 type autofs 
(rw,relatime,fd=37,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=9370)
/dev/sdb1 on /data/backup1 type ext3 (rw,relatime,data=ordered)

sm01@stt008:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
#
# / was on /dev/sda3 during installation
UUID=521fe2d5-7d87-4117-b136-e1e68f11d2bc /   xfs defaults  
  0   0
# swap was on /dev/sda1 during installation
UUID=6abe498c-a75f-4ff3-abc9-c281a6316ff2 noneswapsw
  0   0
/dev/sr0/media/cdrom0   udf,iso9660 user,noauto 0   0
# 500 GiB hd / sdb1
UUID=8ab7cc61-8d69-42d6-bfb8-112f0e0f8a40 /data/backup1 ext3 acl,user_xattr 1 2
# 500 GiB part / sdc2
UUID=a0bce6f8-7f08-4ead-a647-de4f6e16be87 /data/backup2 ext3 
acl,user_xattr,noauto,nofail,x-systemd.automount,x-systemd.device-timeout=1 1 2
# 500 GiB part / sdc1
UUID=2151d682-7969-4684-848a-72a401e59604 /data/backup3 ext3 
acl,user_xattr,noauto,nofail,x-systemd.automount,x-systemd.device-timeout=1 1 2

> Por ejemplo, en este momento escribo desde Lubuntu jammy y tengo las
> siguientes líneas del fstab:
> UUID=aca6de29-faed-4eea-aed9-26f256e3dda1 /  ext4defaults 0 1
> /swapfile swap   swapdefaults 0 0
> 
> rompo algo si agrego una línea como la que sigue para acceder a los datos
> compartiendo con Bulleye?
> UUID=5d822baa-bba7-4466-a9e5-96020024ac1f /datos  ext4defaults   
> 0 2
> 
> (aclaro: este último UUID lo saqué de otra máquina, sólo es a modo de
> ejemplo)
> Gracias desde ya.

No pasa nada, puedes probar a montar la partición antes de reiniciar, 
para ver si se monta bien y con los permisos adecuados.

Eso sí, si vas a compartir la partición entre dos sistemas operativos 
distintos, asegúrate de que la montas con los permisos apropiados para 
que puedas acceder, eliminar, escribir... sin problemas desde Debian y 
Lubuntu, ya que serán usuarios distintos los que accedan/guarden/elimen 
los mismos archivos.

Saludos,

-- 
Camaleón