Re: Error mounting LVM volume as root (SOLVED)

2020-10-11 Thread Stefan Monnier
>     '/dev/vgname/lvname' instead of '/dev/mapper/vgname-lvname'.

Indeed, I have found that `/dev//` doesn't work as argument to
`root=` on the kernel command line, whereas `/dev/mapper/-`
works fine.

Maybe it merits a bug report.  Maybe it'll be hard/inconvenient to make
the kernel accept the `/dev//` form, but if so scripts like
`upgrade-grub` could come to the rescue and either warn about the
problem or do the rewrite themselves.


Stefan



Re: Error mounting LVM volume as root (SOLVED)

2020-10-11 Thread Marc Shapiro



On 10/11/20 2:04 PM, Marc Shapiro wrote:

On 10/11/20 6:34 AM, Stefan Monnier wrote:

That did it.  I am assuming that the system was just in the process of
changing from the initrc to the actual running system?  But how do I 
get the
boot sequence to activate the LVs automatically each time before 
attempting

to mount the / filesystem?

AFAIK you don't need to do anything special for that.
>From what I can tell, the initramfs (tries to) activate the swap and
root LVs, and then the rest of the boot activates them all.

If that doesn't work for you, you're going to have to dig deeper,


 Stefan


The swap LV seems to be getting activated, but not the root LV, so it 
keeps trying to mount an LV that is not yet activated and eventually 
it times out and drops me into a shell.  From there, I can manually 
activate all LVs and exit the shell and the boot process continues 
successfully.


Marc


After more Googling, I found the following page:


https://serverfault.com/questions/199185/logical-volumes-are-inactive-at-boot-time


The last answer on the page suggests a mismatch in the way the LV is 
named in:


    /usr/share/initramfs-tools/scripts/local-top/lvm2

and

    fstab,

namely

    '/dev/vgname/lvname' instead of '/dev/mapper/vgname-lvname'.


Both of those files used '/dev/mapper/vgname-lvname', but /etc/lilo.conf 
was using '/dev/vgname/lvname'.  I changed /etc/lilo.conf to use the 
same format as the other two, re-ran lilo, rebooted, and it worked.  I 
then did the same thing for my Stretch partitions, and the system booted 
into Stretch with the LV mounted on / with no issues.


I had not thought that there was any real difference between the two 
formats, and this may well be the only instance where there is, but I'm 
going to use the '/dev/mapper/vgname-lvname' format in all locations 
from here on out.



Marc



Re: problemas con dd

2020-10-11 Thread Maicon
GNOME MultiWriter

Sent from ProtonMail mobile

 Original Message 
On Oct 11, 2020, 1:47 PM, Juan carlos Rebate wrote:

> gracias a todo por vuestra ayuda, os doy mas info que me hace pensar
> que dd no está hecho para eso.
> cuando lo intento hacer el disco esta vacio, sin particiones para
> poder escribir bien, tabla de particiones nueva, y no funciona pero si
> uso una simple iso dde zorin o de ubuntu y uso la utilidad creador de
> discos de arranque con la iso de debian funciona perfecto, sin
> errores, y carga de maravilla, no importa los comandos que me deis
> todos iran mal, no hay otra utilidad para hacerlo sin recurrir a zorin
> o ubuntu o cualquiera basada en ubuntu?
>
> El dom., 11 oct. 2020 a las 19:20, José Luis Durán Mujica
> () escribió:
>>
>> Usa esta linea a ver que tal...
>>
>> if=/home/jc/debian-10.4.0-amd64-DVD-1.iso of=/dev/sdb1
>>
>> *José Luis Durán*

Re: Ownerships in /var/log/.

2020-10-11 Thread Andy Smith
Hello,

On Sun, Oct 11, 2020 at 02:41:37PM -0700, pe...@easthope.ca wrote:
> All of the files and most of the directories in /var/log/ are owned 
> by root.  These are the exceptions.
> 
> root@joule:/var/log#   ls -ld {c*,ex*,s*}/
> drwxr-xr-x 2 _chrony _chrony  4096 Jul 22  2017 chrony/
> drwxr-s--- 2 Debian-exim adm  4096 Oct 11 00:00 exim4/
> drwxr-xr-x 2 stunnel4stunnel4 4096 Jul 16  2019 stunnel4/
> 
> Comments about the unusual ownerships?

These daemons don't run as root and so to allow them to still log
it's easier to just let their log files be owned by their non-root
user.

There's a few other ways this could have been achieved, but that's
probably the simplest.

> Most of the group ownerships are root or adm.  
>
> What determines adm or root?

adm isn't widely used, and is kind of historical, but is sometimes
used for log files that may contain private information. The
files/directories are left readable by group adm so that users and
tools in that group can read them. Other less sensitive log files
are often left group root but world readable.

See https://wiki.debian.org/SystemGroups for more info.

Cheers,
Andy

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



Re: Thunderbird 78.3 avec Enigmail ?

2020-10-11 Thread Jean Bernon
Je ne comprends pas toutes les subtilités d'openpgp. J'ai utilisé l'outil de 
migration d'Enigmail pour importer les clés dans Thunderbird et ensuite j'ai 
paramétré mon compte de messagerie. Le chiffrement fonctionne comme avec 
Enigmail. Je vois dans le dossier .thunderbird un fichier openpgp.sqlite et un 
autre fichier encrypted-openpgp-passphrase.txt. Mais ma clé personnelle ne 
s'affiche pas en clair dans openpgp.sqlite et le deuxième fichier est 
effectivement crypté. L'ensemble me semble sûr ?



Re: Thunderbird 78.3 avec Enigmail ?

2020-10-11 Thread Sébastien Dinot
Sébastien Dinot a écrit :
> Du coup, je suis preneur d'un pointeur consistant sur le sujet.

Vérification faite, les clés sont « protégées » (reste à savoir ce que
signifie exactement ce terme) par un mot de passe, mais :

* ce mot de passe est généré à la volée lors de l'import initial (le
  même étant utilisé pour toute clé ajoutée ultérieurement) ;

* ce mot de passe généré à la volée n'est lui-même protégé que si
  l'utilisateur protège l'ensemble des secrets stockés par Thunderbird
  par un « mot de passe maître ».

cf. 
https://support.mozilla.org/en-US/kb/openpgp-thunderbird-howto-and-faq#w_how-is-my-personal-key-protected

Le mot de passe maître déverrouillant les secrets pour toute la durée de
la session Thunderbird, ce choix me chagrine car nos clés
cryptographiques sont parmi nos secrets les plus précieux. À cette aune,
devoir saisir un mot de passe à chaque fois que nous voulons en utiliser
une me semble être une nuisance tout à fait supportable.

Et renoncer à utiliser la nouvelle version ESR de Thunderbird n'est
qu'une solution à court-terme. Tôt ou tard, la précédente ESR (68) ne
sera plus supportée ni par Mozilla, ni par les distributions.

Je vais sans doute finir par utiliser Mutt au boulot aussi ou me
féliciter de la lente agonie du mail...

Sébastien

-- 
Sébastien Dinot, sebastien.di...@free.fr
http://www.palabritudes.net/
Ne goûtez pas au logiciel libre, vous ne pourriez plus vous en passer !



Ownerships in /var/log/.

2020-10-11 Thread peter
All of the files and most of the directories in /var/log/ are owned 
by root.  These are the exceptions.

root@joule:/var/log#   ls -ld {c*,ex*,s*}/
drwxr-xr-x 2 _chrony _chrony  4096 Jul 22  2017 chrony/
drwxr-s--- 2 Debian-exim adm  4096 Oct 11 00:00 exim4/
drwxr-xr-x 2 stunnel4stunnel4 4096 Jul 16  2019 stunnel4/

Comments about the unusual ownerships?

Most of the group ownerships are root or adm.  

root@joule:/var/log# ls -ld *
-rw-r--r-- 1 rootroot 436 Oct 11 13:03 alternatives.log
drwxr-x--- 2 rootadm 4096 Oct 11 00:00 apache2
drwxr-xr-x 2 rootroot4096 Oct 11 13:03 apt
-rw-r--r-- 1 rootroot5831 Oct 11 13:03 aptitude
  ...
  
What determines adm or root?

Thanks,... P.


What determines whether a particular 
file or directory is 


-- 
Tel: +1 604 670 0140Bcc: peter at easthope. ca



Re: Thunderbird 78.3 avec Enigmail ?

2020-10-11 Thread Sébastien Dinot
Martin Vézina a écrit :
> les clés privés sont conservées sans encryptions dans il me semble un
> base de donnée SQLite dans le dossier ".thunderbird". C'est dangereux!

J'ai du mal à croire qu'un développeur de Thunderbird ait pu faire une
telle bêtise sans que personne ne s'en émeuve et ne remette en cause son
implantation de la gestion des clés cryptographiques. Je serais en effet
fort surpris qu'un tel projet ne compte pas parmi ses contributeurs
réguliers quelques personnes tâtillonnes sur la sécurité et la
cryptographie.

Du coup, je suis preneur d'un pointeur consistant sur le sujet.

Sébastien

-- 
Sébastien Dinot, sebastien.di...@free.fr
http://www.palabritudes.net/
Ne goûtez pas au logiciel libre, vous ne pourriez plus vous en passer !



Re: bash vs *sh dépendant du suffixe

2020-10-11 Thread Marc Chantreux
> > ln -s =rc(:A:h) ~/local/bin/9
> > du coup la commande 9/sed est le sed de 9base.
> Ah génial, merci beaucoup ! :)

avec plaisir!

j'ai oublié de préciser que ~/local/bin est dans mon $path.

marc



Re: Error mounting LVM volume as root

2020-10-11 Thread Marc Shapiro

On 10/11/20 6:34 AM, Stefan Monnier wrote:

That did it.  I am assuming that the system was just in the process of
changing from the initrc to the actual running system?  But how do I get the
boot sequence to activate the LVs automatically each time before attempting
to mount the / filesystem?

AFAIK you don't need to do anything special for that.
>From what I can tell, the initramfs (tries to) activate the swap and
root LVs, and then the rest of the boot activates them all.

If that doesn't work for you, you're going to have to dig deeper,


 Stefan


The swap LV seems to be getting activated, but not the root LV, so it 
keeps trying to mount an LV that is not yet activated and eventually it 
times out and drops me into a shell.  From there, I can manually 
activate all LVs and exit the shell and the boot process continues 
successfully.


Marc



Thunderbird 78.3 avec Enigmail ?

2020-10-11 Thread Martin Vézina
J'ai vue que l'intégration d'enigmail de Thunderbird 78.3 n'utilise plus
"pgpg" et les clés privés sont conservées sans encryptions dans il me
semble un base de donnée SQLite dans le dossier ".thunderbird". C'est
dangereux! Puisque la clé n'est plus crypté, il ne demande plus le mot
de passe pour une durée limité. Le retour en arrière n'est pas possible...

Je suis revenu à la version précédente avec un backup et j'ai figée la
version.

Il y as il un projet d'amélioration de prévus?





Re: bash vs *sh dépendant du suffixe

2020-10-11 Thread f6k
On Sun, Oct 11, 2020 at 09:11:39PM +0200, Marc Chantreux wrote:
> sous zsh, je fais:
> 
> # placer placer le repertoire qui contient rc en tete du path
> path=( =rc(:A:h) $path ) rc
> 
> ce qui donne en ksh:
> 
> PATH=$( dirname $( readlink -f $(which rc )))${PATH+:}${PATH:-} rc
> 
> > Peut-être avec des pré/suffixes ?
> 
> encore sous zsh:
> 
> setopt pathdirs
> ln -s =rc(:A:h) ~/local/bin/9
> 
> du coup la commande 9/sed est le sed de 9base.

Ah génial, merci beaucoup ! :)

-f6k

-- 
~{,_,"> indignus LabRat - ftp://shl.huld.re



Re: SSD and HDD

2020-10-11 Thread David Christensen

On 2020-10-11 09:45, mick crane wrote:
Bearing in mind I rarely do installs and when I do usually let the 
installer do its thing.
Got a PC that has SSD and a HDD. I see that you are supposed to avoid 
writes to SSD for longevity.
Is it a matter of putting entries in fstab for /swap /var /home to 
suitably formatted partitions on HDD ?

Or is there more to  it ?


First, backup any data you want to keep.


Then run the manufacturer diagnostics for both the SSD and the HDD.  Run 
all the tests.  Zero all the blocks on the HDD.  "Secure erase" the SSD. 
 If anything fails, run any repair functions and test, zero/erase 
again.  Recycle any device that fails or is questionable.



It would help if you told us how you plan to use the computer, and what 
kind of network it fits into.



I would do my typical install onto the SSD.  I believe the installer, 
boot loader, and/or kernel, etc., are now smart enough to detect the SSD 
and adjust accordingly.  For ordinary workloads, I would not worry about 
wearing out the SSD.



If you know that you will be running a workload that is going to do 
heavy I/O onto a particular filesystem, consider:


1.  Adding RAM and using tmpfs, as previously suggested.  This should 
provide excellent performance (best?).


2.  Add device(s) specifically made for heavy I/O (e.g. enterprise 
SSD's).  Monitor regularly.


3.  Pick sacrificial device(s) and monitor them frequently.


I use pairs of HDD's in ZFS mirrors for storage of bulk data.


I use single HDD's in shock-mounted mobile racks for backup/ archive media.


David



Re: bash vs *sh dépendant du suffixe

2020-10-11 Thread Marc Chantreux
salut,

> Oh pardon j'aurais dû préciser. Gemini est un (nouveau) protocol
> développé par des utilisateurs de Gopher, à cheval entre le protocol
> HTTP et Gopher, et qui reprend le meilleur des deux mondes. Plus
> d'informations sur le site de présentation ici, via un proxy web :
>   https://proxy.vulpes.one/gemini/gemini.circumlunar.space

ah cool. je vais regarder de ce coté.

> Je n'ai jamais poussé jusqu'à installer 9base sous Debian.
> D'ailleurs je me demande comment cohabite 9base avec les
> GNU coreutils

sous zsh, je fais:

# placer placer le repertoire qui contient rc en tete du path
path=( =rc(:A:h) $path ) rc

ce qui donne en ksh:

PATH=$( dirname $( readlink -f $(which rc )))${PATH+:}${PATH:-} rc

> Peut-être avec des pré/suffixes ?

encore sous zsh:

setopt pathdirs
ln -s =rc(:A:h) ~/local/bin/9

du coup la commande 9/sed est le sed de 9base.

cordialement,
marc



Re: problemas con dd

2020-10-11 Thread Juan carlos Rebate
gracias a todo por vuestra ayuda, os doy mas info que me hace pensar
que dd no está hecho para eso.
cuando lo intento hacer el disco esta vacio, sin particiones para
poder escribir bien, tabla de particiones nueva, y no funciona pero si
uso una simple iso dde zorin o de ubuntu y uso la utilidad creador de
discos de arranque con la iso de debian funciona perfecto, sin
errores, y carga de maravilla, no importa los comandos que me deis
todos iran mal, no hay otra utilidad para hacerlo sin recurrir a zorin
o ubuntu o cualquiera basada en ubuntu?

El dom., 11 oct. 2020 a las 19:20, José Luis Durán Mujica
() escribió:
>
> Usa esta linea a ver que tal...
>
> if=/home/jc/debian-10.4.0-amd64-DVD-1.iso of=/dev/sdb1
>
> *José Luis Durán*



Re: SSD and HDD

2020-10-11 Thread Jim Popovitch
On Sun, 2020-10-11 at 20:25 +0200, Sven Joachim wrote:
> On 2020-10-11 13:48 -0400, Jim Popovitch wrote:
> 
> > On Sun, 2020-10-11 at 19:47 +0200, Sven Joachim wrote:
> > > "Percentage Used Endurance Indicator"
> > 
> > Where do you see that?
> 
> For a SATA SSD:
> 
> # smartctl -l devstat $SSD
> 

+1 Thanks Sven.


-Jim P.



Re: SSD and HDD

2020-10-11 Thread Sven Joachim
On 2020-10-11 13:48 -0400, Jim Popovitch wrote:

> On Sun, 2020-10-11 at 19:47 +0200, Sven Joachim wrote:
>> "Percentage Used Endurance Indicator"
>
> Where do you see that?

For a SATA SSD:

# smartctl -l devstat $SSD

Cheers,
   Sven



Re: SSD and HDD

2020-10-11 Thread Darac Marjal

On 11/10/2020 18:48, Jim Popovitch wrote:
> On Sun, 2020-10-11 at 19:47 +0200, Sven Joachim wrote:
>> "Percentage Used Endurance Indicator"
> Where do you see that?

If you have an NVMe device, you can run "nvme smart-log
/dev/nvme" (or "nvme smart-log
/dev/nvmen" if you have multiple namespaces on a
controller).

The "percentage used" stat is what you're looking for.


>
> -Jim P.
>



signature.asc
Description: OpenPGP digital signature


Re: SSD and HDD

2020-10-11 Thread Andy Smith
Hello,

On Sun, Oct 11, 2020 at 01:48:48PM -0400, Jim Popovitch wrote:
> On Sun, 2020-10-11 at 19:47 +0200, Sven Joachim wrote:
> > "Percentage Used Endurance Indicator"
> 
> Where do you see that?

Usually a SMART attribute like "233 Media Wearout Indicator" or if
that isn't available devices often have "241 Total_LBAs_Written"
which can be compared¹ against published write endurance
specifications.

Sometimes the devices also have a proprietary tool for getting this
information, though in the majority of cases all this is doing is
parsing SMART attributes.

Cheers,
Andy

¹ Though with some care: devices vary on what they consider a
  logical block size to be; also due to internal merging and cell
  erasure, a logical write doesn't necessarily match to a flash
  write.

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



Problems with Opera browser

2020-10-11 Thread Mick Ab
In the last few days, a couple of problems have arisen with using the Opera
browser on a Debian Jessie system.

Firstly, black rectangles appear on many webpages.

Secondly, it is no longer possible to attach files to an email - nothing
happens when the Browse button is clicked to find the file that is required
to be attached to an email.

Opera version is 64.0.3417.73


Re: SSD and HDD

2020-10-11 Thread Andy Smith
Hi Mick,

On Sun, Oct 11, 2020 at 05:45:45PM +0100, mick crane wrote:
> Got a PC that has SSD and a HDD. I see that you are supposed to avoid writes
> to SSD for longevity.

Flash write endurance has come on leaps and bounds over the last
decade to the point where most people don't have to worry about
this.

You can look at "tune2fs -l" output or at SMART attributes to see
how much has been written to your current filesystems / devices over
their life times, to see how your use case matches up against the
write endurance advertised for your SSD.

I wouldn't recommend taking any special measures unless you have
some doubt that the SSD endurance is up to it.

With only a single SSD and a single HDD I'd rate device failure from
other problems as a higher risk than wearing out the SSD.

> Is it a matter of putting entries in fstab for /swap /var /home to suitably
> formatted partitions on HDD ?

If you still think you will have a problem then yes, that is one way
to go. Another is to leave some percentage of the SSD unpartitioned
and never used. That will increase its write endurance.

[ Leaving aside the fact that if I were doing this I'd have an extra
storage device for redundancy… ]

If I were in your position and still had concerns about write
endurance I'd probably put everything in LVM with a volume group on
the SSD and a volume group on the HDD. I'd then use separate logical
volumes for the filesystems that got a lot of writes. The use of LVM
like this would allow me to change my mind later and move LVs
between the SSD and HDD while the machine is online.

Plus any time you are thinking of doing multiple filesystems, LVM is
a good bet.

Plus you might be using LVM anyway for encryption.

But again I can't emphasise enough how you are probably over thinking
write endurance.

Cheers,
Andy

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



Re: SSD and HDD

2020-10-11 Thread Jim Popovitch
On Sun, 2020-10-11 at 19:47 +0200, Sven Joachim wrote:
> "Percentage Used Endurance Indicator"

Where do you see that?

-Jim P.



Re: SSD and HDD

2020-10-11 Thread Sven Joachim
On 2020-10-11 17:45 +0100, mick crane wrote:

> Bearing in mind I rarely do installs and when I do usually let the
> installer do its thing.
> Got a PC that has SSD and a HDD. I see that you are supposed to avoid
> writes to SSD for longevity.

No, you are not.  I put an SSD into my desktop computer almost four
years ago, and its "Percentage Used Endurance Indicator" is currently at
12%, so it probably will be good for another twenty years or longer.

> Is it a matter of putting entries in fstab for /swap /var /home to
> suitably formatted partitions on HDD ?
> Or is there more to  it ?

My advice would be to only use the HDD for big data files where speed is
no concern,  e.g. your music/picture/video collection and such.
Everything else can go onto the SSD.

Cheers,
   Sven



Re: SSD and HDD

2020-10-11 Thread Peter Ehlert
I don't use the automatic install, I don't like what it chooses. I use 
the manual method to set things up exactly as desired.


to answer your question you can install on any available drive, SSD or 
HDD... use or create some or all of your partitions wherever you like.
your new fstab will point to the correct locations without your 
intervention.


as far as SSD life, I am no expert but I do a lot of installs. I use SSD 
for everything that I want to run faster. Sometimes I move the 
partitions to a different drive because of Sace or preference.


In my experience the the SSD failure rate is the same or less than the 
HHD drives.


Back in the day SSDs were primitive and Expensive. I believe those 
gyrations are no longer necessary.


On 10/11/20 9:45 AM, mick crane wrote:
Bearing in mind I rarely do installs and when I do usually let the 
installer do its thing.
Got a PC that has SSD and a HDD. I see that you are supposed to avoid 
writes to SSD for longevity.
Is it a matter of putting entries in fstab for /swap /var /home to 
suitably formatted partitions on HDD ?

Or is there more to  it ?

mick





Re: SSD and HDD

2020-10-11 Thread Linux-Fan

mick crane writes:

Bearing in mind I rarely do installs and when I do usually let the installer  
do its thing.
Got a PC that has SSD and a HDD. I see that you are supposed to avoid writes  
to SSD for longevity.
Is it a matter of putting entries in fstab for /swap /var /home to suitably  
formatted partitions on HDD ?


You can add to /etc/fstab:

tmpfs  /tmptmpfs   defaults,size=6G,nr_inodes=1M  0  0

Change 6G to a size that suits you, 1/2 RAM could a good choice. This puts  
/tmp on a tmpfs such that writes to it no longer go to SSD.


Another common option is using the `relatime` mount option for SSDs, but I  
do not configure this explicitly on my systems.



Or is there more to  it ?


Depends on what exactly you want. In terms of "avoiding writes" all current  
SSDs do with typical OS workloads just fine by default and there is no /need/  
to configure anything. I personally like that periodic `trim` invocations be  
made and thus use a cronjob for it:

https://masysma.lima-city.de/32/ssd-optimization.xhtml

I am not sure whether this is the recommended approach to it as of today,  
though and: It does not reduce writes but tells the SSD controller which  
blocks are unused by the OS such that it can delete them etc. :)


For further optimization, if using virtual Windows machines, configure them  
correctly because otherwise Windows may start "defragmentation" -- a lot of  
unnecessary writes for any SSD.


HTH
Linux-Fan

öö


pgptrGTdxKPrd.pgp
Description: PGP signature


Re: Como usar jack directamente con alsa sin usar pulseaudio

2020-10-11 Thread Jorge Sanchez
El sáb., 10 oct. 2020 8:27, Camaleón  escribió:

> El 2020-10-09 a las 20:14 -, Jefferson Smith Pizarro Gutierrez
> escribió:
>
> > Hola borré pulseaudio solo tengo alsa y deseo correr al udio con Jack,
> veo que cuando uso el patchbay unas cuantas aplicaciones rutean
> automaticamente el audio a la salida pero el resto de aplicaciones como
> firefox o otros programas como skype etc no hacen eso automaticamente ni
> tampoco aparecen en el Patchage.
>
> > como podre configurar jacks con alsa y prescindir totalmetne de
> pulseaudio?
>
> Para otras aplicaciones quizá puedas configurarlo sin necesidad de PA,
> pero Firefox requiere PulseAudio desde hace unos años y si necesitas
> habilitarlo tendrás que compilarlo para que admita Jack :-(
>
> JACK, PulseAudio and Firefox: Enable JACK for firefox in the near
> future
> https://askubuntu.com/questions/923990/jack-pulseaudio-and-firefox-enabl
> e-jack-for-firefox-in-the-near-future
> 
>
> Para otras aplicaciones, lo desconozco. Revisa la wiki de

interesante

> ArchLinux que
> suele ser muy completa y te podrá dar alguna idea:
>
> JACK Audio Connection Kit
> https://wiki.archlinux.org/index.php/JACK_Audio_Connection_Kit
>
> Saludos,
>
> --
> Camaleón
>
>


SSD and HDD

2020-10-11 Thread mick crane
Bearing in mind I rarely do installs and when I do usually let the 
installer do its thing.
Got a PC that has SSD and a HDD. I see that you are supposed to avoid 
writes to SSD for longevity.
Is it a matter of putting entries in fstab for /swap /var /home to 
suitably formatted partitions on HDD ?

Or is there more to  it ?

mick

--
Key ID4BFEBB31



Re: [HS] Comment diffuser toutes les chaînes de la TNT sur réseau local de plus de 100 terminaux ?

2020-10-11 Thread Eric Laly




Le 11/10/2020 à 16:44, hamster a écrit :

Le 09/10/2020 à 09:05, Olivier a écrit :

Dans ce cadre, comment diffuser de façon optimale les 30 chaînes de la
TNT française à une centaine de boîtiers IPTV ?

Je vais sans doute dire une betise parce que je suis une bille dans ce
domaine. J'avais cru comprendre qu'a l'origine, diffuser du contenu sur
un réseau local, c'était la raison d'etre de VLC.

À l'époque il y avait VLS et VLC...






Re: problemas con dd

2020-10-11 Thread José Luis Triviño

On 11/10/20 1:45, Juan carlos Rebate wrote:

hola listeros, he seguido decenas de tutoriales pero creo que o son
obsoletos o a todos les faltan parámetros, stoy intentando copiar el
instalador de debia a una unidad usb, para eso hago esto dd
if=/home/jc/debian-10.4.0-amd64-DVD-1.iso of=/dev/sdb espero 5 minutos
y e dice el número de registros leidos, el número de registros
escritos y que fueron 3,68 gb copiados, saco la unidad y voy al equipo
donde quieo instalarlo, para mi sorpresa parece que no se copia bien
ya que no se copia el grub, apago el equipo y vuelvo al equipo donde
tengo el iso y conecto el uusb y abro gparted para ver si todo esta
bien, al abrirlo me encuentro que me salta un error que dice que el
descriptor del controlador informa que el tmaño del bloque es de 2048
bytes pero linux dice que es de 512, pulso cancelar y el sdb muestra
que no tiene particiones ni datos copiados pero dd informo que si se
copiaron, alguien me puede decir cuales son los parametros correctos
de dd para esto? muchisimas gracias


Hola,

Primero comprueba que la iso se ha descargado bien con md5sum. Luego, 
después de hacer dd y antes de extraer la unidad ejecuta el comando sync 
por si la cache no se estuviese vaciando correctamente.


Puedes probar a hacer fsck en ese momento de la unidad a ver si da error 
incluso antes de extraerla.


Saludos,




Re: [HS] Comment diffuser toutes les chaînes de la TNT sur réseau local de plus de 100 terminaux ?

2020-10-11 Thread hamster
Le 09/10/2020 à 09:05, Olivier a écrit :
> Dans ce cadre, comment diffuser de façon optimale les 30 chaînes de la
> TNT française à une centaine de boîtiers IPTV ?

Je vais sans doute dire une betise parce que je suis une bille dans ce
domaine. J'avais cru comprendre qu'a l'origine, diffuser du contenu sur
un réseau local, c'était la raison d'etre de VLC.



Re: [HS] Comment diffuser toutes les chaînes de la TNT sur réseau local de plus de 100 terminaux ?

2020-10-11 Thread Eric Laly



Le 09/10/2020 à 16:15, Olivier a écrit :



Le ven. 9 oct. 2020 à 12:34, Eric Laly > a écrit :


Bonjour,
En TNT, il y a 6 multiplex (dont 5 gratuits)
Donc 5 adaptateurs TNT (pci ou usb) permettent via tvheadend de
diffuser l'ensemble des chaînes gratuites sur des clients comme
Kodi (avec le plugin qui va bien par exemple) sans limitation
autre que le nombre de clients connectables sur le serveur.
Éric.


Info très intéressante !

1. Combien d'adaptateurs TNT, une seule instance de TVHeadend 
peut-elle gérer ?

Je n'en sais rien mais suffisamment je pense ;-)
Dans mon cas, elle gère deux Hauppauge WinTV Nova-T-500 (soit 4 
adaptateurs TNT).




2. Au niveau réseau, j'ai l'impression que 1 chaîne < 10 Mb/s soit 
pour 30 chaînes, un total inférieur au gigabit. Diffuser sur un réseau 
toutes les chaînes d'un multiplex est-il une opération "gourmande" en 
CPU ou en RAM ?

C'est plutôt <8Mb/s suivant les chaînes.
Ce n'est absolument pas gourmand en CPU ou RAM sur le serveur.

Éric.




Re: Error mounting LVM volume as root

2020-10-11 Thread Stefan Monnier
> That did it.  I am assuming that the system was just in the process of
> changing from the initrc to the actual running system?  But how do I get the
> boot sequence to activate the LVs automatically each time before attempting
> to mount the / filesystem?

AFAIK you don't need to do anything special for that.
>From what I can tell, the initramfs (tries to) activate the swap and
root LVs, and then the rest of the boot activates them all.

If that doesn't work for you, you're going to have to dig deeper,


Stefan



Re: bash vs *sh dépendant du suffixe

2020-10-11 Thread f6k
On Sun, Oct 11, 2020 at 01:57:50PM +0200, Marc Chantreux wrote:
> salut,
> 
> > Tiens c'est marrant, je suis justement tombé sur ce lien hier matin en
> > parcourant le serveur Gemini d'un aficionados de plan9. C'est
> > intéressant effectivement !
> 
> c'est quoi un serveur "Gemini"? c'est le nom de la machine?

Oh pardon j'aurais dû préciser. Gemini est un (nouveau) protocol
développé par des utilisateurs de Gopher, à cheval entre le protocol
HTTP et Gopher, et qui reprend le meilleur des deux mondes. Plus
d'informations sur le site de présentation ici, via un proxy web :

  https://proxy.vulpes.one/gemini/gemini.circumlunar.space

> Pour moi plan9 est a unix ce que haskell est pour les langages de
> programmation:
> 
> * j'ai découvert il y a longtemps
> * j'ai été bluffé de voir que c'était déjà vieux
> * je ne pratique que rarement et donc j'ai un niveau de chevre
> * par contre ca a changé ma façon de comprendre et d'utiliser tout le reste
> 
> Sous debian tu as le paquet 9base (wow! une phrase du thread qui soit
> pas off-topic) qui me fournit rc et mk (c'est déjà cool) mais c'est
> surtout la richesse des namespaces qui rend plan9 intéressant. le seul
> point noir de mémoire est leur UI qui nécessite absolument un usage
> permanent de la souris (et c'était "by design": je crois me souvenir
> qu'il y a un document quelque part sur cat-v qui rend compte de
> l'efficacité de l'usage de la souris... c'est une des parties de plan9
> que je n'apprécie pas).
> 
> Par contre je conseille vraiment à tous ceux qui ont un peu de temps à y
> consacrer de passer quelques jours sur plan9 et d'utiliser les outils
> des base, lire des les man et les papiers d'intro de cat-v.org:
> c'est fascinant.

Oui j'ai « découvert » plan9 aussi grâce à un copain il y a quelques
années. Mais je n'ai jamais plus creusé que cela la question ; je veux
dire j'ai utilisé un peu 9front dans une machine virtuelle pour le fun,
mais idem l'utilisation de la souris à tous les niveaux me gène,
surtout dans Acme d'ailleurs. Je crois que mon premier contact avec
cette manière de travailler était wily présent dans les dépôts Debian.
Sympa pour voir autre chose, mais inutilisable pour moi au quotidien
pour des questions d'ergonomie (je veux dire j'ai le choix avec autre
chose qui me convient mieux, donc je n'ai pas plus cherché que cela).

Je n'ai jamais poussé jusqu'à installer 9base sous Debian. D'ailleurs
je me demande comment cohabite 9base avec les GNU coreutils (mais ça
pourrait valoir aussi pour le paquet bsdmainutils présent dans les
dépôts qui propose des softwares avec des noms communs à ce qui se
trouve sur une distribution de base Debian (calendar, column, etc.). 
Peut-être avec des pré/suffixes ?

-f6k

-- 
~{,_,"> indignus LabRat - ftp://shl.huld.re



Re: bash vs *sh dépendant du suffixe

2020-10-11 Thread Marc Chantreux
salut,

> Tiens c'est marrant, je suis justement tombé sur ce lien hier matin en
> parcourant le serveur Gemini d'un aficionados de plan9. C'est
> intéressant effectivement !

c'est quoi un serveur "Gemini"? c'est le nom de la machine? Pour moi
plan9 est a unix ce que haskell est pour les langages de programmation:

* j'ai découvert il y a longtemps
* j'ai été bluffé de voir que c'était déjà vieux
* je ne pratique que rarement et donc j'ai un niveau de chevre
* par contre ca a changé ma façon de comprendre et d'utiliser tout le reste

Sous debian tu as le paquet 9base (wow! une phrase du thread qui soit
pas off-topic) qui me fournit rc et mk (c'est déjà cool) mais c'est
surtout la richesse des namespaces qui rend plan9 intéressant. le seul
point noir de mémoire est leur UI qui nécessite absolument un usage
permanent de la souris (et c'était "by design": je crois me souvenir
qu'il y a un document quelque part sur cat-v qui rend compte de
l'efficacité de l'usage de la souris... c'est une des parties de plan9
que je n'apprécie pas).

Par contre je conseille vraiment à tous ceux qui ont un peu de temps à y
consacrer de passer quelques jours sur plan9 et d'utiliser les outils
des base, lire des les man et les papiers d'intro de cat-v.org:
c'est fascinant.

cordialement,
marc



Re: bash vs *sh dépendant du suffixe

2020-10-11 Thread f6k
Bonjour

On Sat, Oct 10, 2020 at 11:31:27PM +0200, Marc Chantreux wrote:
> de mon coté quand je voulais faire du rc interactivement, je fais un
> rlwrap rc (parceque le vi mode :)).

Je ne connaissais pas. Je vais y jeter un coup d'oeil. Merci !


> a propos de rc: je trouve la syntaxe bien plus conviviale que dash et
> mksh: les tableaux, l'operateur de concatenation, le pipeline branching
> (cmp <{command 1} <{command 2}), la localisation facile des variables,
> et surtout la syntaxe des structures de controle.
> 
> txts=( *.txt )
> for (t in $txts)
> echo about $t: `{file $t}
> 
> tu trouves des exemples ici:
> http://doc.cat-v.org/plan_9/4th_edition/papers/rc

Tiens c'est marrant, je suis justement tombé sur ce lien hier matin en
parcourant le serveur Gemini d'un aficionados de plan9. C'est
intéressant effectivement !

-f6k

-- 
~{,_,"> indignus LabRat - ftp://shl.huld.re



PulseAudio is not working properly

2020-10-11 Thread BaBa
Hello,

I installed it with just 
sudo apt install pulseaudio
and without configuration.
In Firefox it uses Alsa instead of PulseAudio and in media players it does not 
work.

If I do
killall pulseaudio
pulseaudio --start
Works in Firefox and media players.
My user and pulse user are in the "audio" group.

sudo grep "pulseaudio" /var/log/syslog
Oct  7 10:09:32 debian systemd[669]: Not generating service for XDG autostart 
app-pulseaudio-autostart.service, startup phases are not supported.
Oct  7 10:10:20 debian pulseaudio[671]: E: [alsa-sink-ALC898 Analog] 
alsa-sink.c: Error opening PCM device front:0: Aucun fichier ou dossier de ce 
type
Oct  7 10:10:20 debian systemd[735]: Not generating service for XDG autostart 
app-pulseaudio-autostart.service, startup phases are not supported.
Oct  7 10:10:20 debian systemd[651]: pulseaudio.service: Succeeded.
Oct  7 10:10:22 debian pulseaudio[737]: W: [pulseaudio] authkey.c: Failed to 
open cookie file '/home/tupo/.config/pulse/cookie': Aucun fichier ou dossier de 
ce type
Oct  7 10:10:22 debian pulseaudio[737]: W: [pulseaudio] authkey.c: Failed to 
load authentication key '/home/tupo/.config/pulse/cookie': Aucun fichier ou 
dossier de ce type
Oct  7 10:10:30 debian systemd[651]: pulseaudio.socket: Succeeded.



Re: Trobada remota de tardor

2020-10-11 Thread Adrià
On Thu, Sep 17, 2020 at 06:58:01PM +, Adrià wrote:
> Hola,
> 
> vaig pensar que seria una bona idea fer una trobada en el que resta
> d'any, ho vaig comentar per la sala de Matrix i a priori la idea no va
> desagradar. Per tant, m'agradaria anunciar-la "oficialment" a la
> llista:
> 
> No hi ha res decidit més enllà que seria de forma remota, però he creat
> una pàgina a la wiki perquè qui vulgui participar-hi d'alguna manera 
> (des de proposar dates fins a activitats) ho pugui fer.
> 
> Es tractaria de fer unes xerrades que en funció dels participants
> serien més o menys tècniques, a decidir per qui hi col·labori.
> 
> Així que, a qui li pugui interessar només ha d'anar a [0] i fer-hi
> aportacions.
> 
> [0] https://wiki.debian.org/LocalGroups/DebianCat/2020TrobadaRemotaTardor

Hola de nou,

voldria fer un recordatori per animar a totes les persones que hi
puguin estar interessades d'una banda a seguir la pàgina wiki [0] per
tal de rebre notificacions de les actualitzacions (i així no fer 
soroll a la llista) [1], i d'altra banda, respondre l'enquesta per 
consensuar una data [2].

I ja posats a demanar, també recordar que qualsevol aportació és tan
necessària com benvinguda.

Apa, bon diumenge!

[0] https://wiki.debian.org/LocalGroups/DebianCat/2020TrobadaRemotaTardor
[1] 
https://wiki.debian.org/LocalGroups/DebianCat/2020TrobadaRemotaTardor?action=subscribe
[2] https://dudle.inf.tu-dresden.de/debiancat-tardor-2020/


signature.asc
Description: PGP signature


Re: problemas con dd

2020-10-11 Thread Camaleón
El 2020-10-11 a las 01:45 +0200, Juan carlos Rebate escribió:

> hola listeros, he seguido decenas de tutoriales pero creo que o son
> obsoletos o a todos les faltan parámetros, 

Yo siempre sigo a guía de instalación, así evito información 
desactualizada:

4.3.1. Preparing a USB stick using a hybrid CD or DVD image
https://www.debian.org/releases/stable/amd64/ch04s03.en.html

> estoy intentando copiar el
> instalador de debia a una unidad usb, para eso hago esto dd
> if=/home/jc/debian-10.4.0-amd64-DVD-1.iso of=/dev/sdb 

(...)

Sigue las instrucciones del manual, pero antes, comprueba que la imagen 
ISO que has descargado tenga la suma de verificación correcta, es 
decir, que no esté corrupta.

Luego intenta iniciar desde la unidad de disco USB, siempre y cuando tu 
BIOS/UEFI lo admita, el instalador de Debian debería iniciarse 
normalmente.

Saludos,

-- 
Camaleón 



Re: Error mounting LVM volume as root

2020-10-11 Thread Marc Shapiro



On 10/10/20 7:42 PM, Stefan Monnier wrote:

I am attempting to mount an LVM Logical Volume as root, but I am getting an
error in the boot sequence when it attempts to mount the root filesystem.
The error is saying that it can not find /dev/block/254:15, which is the LV
that I am trying to mount. Then it falls into a shell.

When I run 'ls /dev/block' it shows /dev/block/254:0, which is the swap
volume (in the same LVM Volume Group as /dev/block/254:15), but does not
show any of the other LVs.  If it can recognize the LVM swap volume, why
does it not see the other LVs in the group?

Any chance you're inside the initramfs while this problem shows up?
I'd assume it's because the initramfs has only activated the swap and
root partitions (root for the obvious reason and swap to check for
a hibernation image).

Try `vgchange -ay` to activate the other volumes.


 Stefan


That did it.  I am assuming that the system was just in the process of 
changing from the initrc to the actual running system? But how do I get 
the boot sequence to activate the LVs automatically each time before 
attempting to mount the / filesystem?  I don't want to have to manually 
activate them each time I boot the system.



Marc