:: Re: [DNG] new freedesktop "standard…
Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Arnt Karlsen
Fecha:  
A: dng
Asunto: Re: [DNG] new freedesktop "standard": /etc/machine-id
On Sat, 9 Mar 2019 14:04:13 +0100, al3xu5 wrote in message
<20190309130422.386F8F60496@???>:

> Il giorno sabato 09/03/2019 13:25:29 +0100
> Alessandro Selli <alessandroselli@???> ha scritto:
>
> > [cut]
>
> > > Maybe your system is different to mine, but try compiling the
> > > below and find out for yourself:
> > >
> > > #include <stdio.h>
> > > #include <unistd.h>
> > >
> > > int main()
> > > {
> > > int id;
> > >
> > > id = gethostid();
> > >
> > > printf("my id is 0x%08x\n", id);
> > >
> > >   return 0;
> > > }    

> >
> > my id is 0x007f0101
> >
> > [...]
> >
> > my id is 0x007f0101
> >
> > [...]
> >
> > my id is 0x007f0101
> >
>
> using the `hostid` command, I have (Devuan ASCII):
>
> $ hostid
> 007f0101
>
> which is the same value!!!
>
> I wonder... is it a "fixed" id for all Devuan installation as it
> seems to be?


..yes and no and no etc, I have:
nb6:~# hostid #Devuan Jessie
007f0101
sda3:~# hostid #Devuan Ascii
007f0100
devuan:~# hostid #Devuan Ascii on rPi-1
007f0100
rir:~# hostid #Raspian Jessie
00000000
devuan@dvn:~$ hostid #Devuan Ascii Live usb
00000000

> And if it is so,is it correct that it is?
>
> Regards
>
>



--
..med vennlig hilsen = with Kind Regards from Arnt Karlsen
...with a number of polar bear hunters in his ancestry...
Scenarios always come in sets of three:
best case, worst case, and just in case.