Re: Language of applications are not translated if the default language is changed

2017-12-23 Thread Teemu Likonen
john doe [2017-12-23 19:21:32+01] wrote:

> How can I add support for those new languages so all applications will
> be translated in the desired language (using command line is
> prefered)?

As root user:

localectl set-locale LANG=xx_YY.UTF-8

where xx_YY.UTF-8 is locale's name. You can add more locale variables to
the command line. You can also set default keymaps with localectl
command. See its manual page for more info.

-- 
/// Teemu Likonen   - .-..    //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///


signature.asc
Description: PGP signature


Re: Language of applications are not translated if the default language is changed

2017-12-23 Thread Andre Majorel
On 2017-12-23 19:21 +0100, john doe wrote:

> I have install Debian 9 using as the default language 'C'.
> I want to add some new languages, and for this I do 'dpkg-reconfigure
> locales'.
> I'm currently using Gnome and Mate.
> 
> How can I add support for those new languages so all
> applications will be translated in the desired language (using
> command line is prefered)?

Have you tried setting LC_ALL appropriately (eg LC_ALL=fr_FR) in
your .profile then logging out & in again ?

-- 
André Majorel 
Report a bug in Debian and win a life time supply of free spam !



Re: Youtube - newbie guidance

2017-12-23 Thread Richard Owlett

On 12/23/2017 08:31 PM, Celejar wrote:

On Fri, 22 Dec 2017 15:10:27 -0600
Kent West  wrote:


On Fri, Dec 22, 2017 at 3:04 PM, Richard Owlett  wrote:


...


I've never used youtube before.
I received a link to a youtube video  which played fine.

I did not have time to watch the whole video.
How can I download and save it?



# apt-get install youtube-dl
# youtube-dl 
#  


Just one additional trick: as I learned from this list a while back,
mpv has a convenient hook script that invokes youtube-dl itself,
letting you just do something like:

$ mpv https://www.youtube.com/watch?v=QjlCUN975C0

Celejar




Thank you.





Re: Debian 8 and Debian 9 Dual Boot

2017-12-23 Thread Felix Miata
Dan Norton composed on 2017-12-23 19:15 (UTC-0500):

> Felix Miata wrote:

> The menu inside the box is:
> Debian GNU/Linux
> Advanced options for Debian GNU/Linux
> Debian GNU/Linux 8 (jessie) (on /dev/mapper/vol1-root)
> Advanced options for Debian GNU/Linux 8 (jessie) (on /dev/mapper/vol1-root)
> Debian GNU/Linux buster/sid (on /dev/mapper/vol3-root)
> Advanced options for Debian GNU/Linux buster/sid (on /dev/mapper/vol3-root)

> The first two boot stretch, so they will eventually have "9 (stretch) 
> (on /dev/mapper/vol2-root)" appended, once the timeout is under control.  
> 

Based on what I see and what you say, it seems you are modifying the timeout for
Stretch (/etc/default/grub on vol2), but actually booting Stretch from Jessie's
grub.cfg (/etc/default/grub on vol1), which remains configured to 3 seconds.

Is there more than one directory in /boot/efi/EFI/? If not, it's likely time for
you to explore using /etc/default/grub's GRUB_DISTRIBUTOR= option. I need to
(only one Debian, but 3 openSUSEs installed), but have been putting it off,
using Stretch's menu for all.
-- 
"Wisdom is supreme; therefore get wisdom. Whatever else you
get, get wisdom." Proverbs 4:7 (New Living Translation)

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

Felix Miata  ***  http://fm.no-ip.com/



enigmail et gpg-agent

2017-12-23 Thread hamster
Hello.

Je suis sous jessie / mate.

Depuis plusieurs mois, enigmail me fait des misères. Mon problème est
très bien décrit la :
https://www.zenzla.com/astuces/1266-erreur-de-communication-avec-gpg-agent.html

J'ai essayé tout ce qui est sur cette page, et aussi ce qui est la :
https://wiki.gnupg.org/GnomeKeyring
https://blog.josefsson.org/2015/01/02/openpgp-smartcards-and-gnome/
http://www.gniibe.org/memo/notebook/gnome3-gpg-settings.html
et aussi ce que j'ai trouvé dans /usr/share/doc/gnome-keyring/README.Debian

J'ai essayé de reinstaller thunderbird, enigmail, gnupg et gpg-agent.

Rien n'y fait. J'ai toujours le meme blocage dans enigmail, et toujours
la meme réponse pour la variable :
echo $GPG_AGENT_INFO
/run/user/1000/keyring/gpg:0:1

J'ai essayé de supprimer gnome-keyring. La ca fait quelque chose. La
variable GPG_AGENT_INFO reste vide, enigmail me demande ma clef dans une
fenetre différente de celle dont j'ai l'habitude et qui s'appelle
"pinentry", mais… ne reconnais plus ma phrase de passe.

Si quelqu'un a une idée…



Optimized VM setup

2017-12-23 Thread Rusi Mody
I teach programming.
Students of my class have their own laptops required to have (some recent) 
linux.
And this time (for the first time?) I saw that majority of the class were 
running Linux (usually but not always Ubuntu) on a VM on a Windows — typically 
Windows-10

This made those machines markedly sluggish.

I was wondering if its possible to have a setup in which Linux is installed
(probably on a separate NTFS partition) such that one can choose
- Boot to Windows, start VM, start Linux
OR
- Boot to (native) Linux

Note: This option only makes sense if the Linux booted is the SAME one
Otherwise its trivial and useless



Re: Can't mount non-/ partition using Thunar because of grsecurity patched 4.9.65-2 amd64 linux kernel

2017-12-23 Thread TemTem
I am going to unsubscribe from this mailing list, to avoid filling up my 
mailbox. If you're going to discuss this thread further but not reply to me 
directly, don't forget to CC me.

Re: Youtube - newbie guidance

2017-12-23 Thread Celejar
On Fri, 22 Dec 2017 15:10:27 -0600
Kent West  wrote:

> On Fri, Dec 22, 2017 at 3:04 PM, Richard Owlett  wrote:

...

> > I've never used youtube before.
> > I received a link to a youtube video  > ?v=82_bPWyrPFc> which played fine.
> >
> > I did not have time to watch the whole video.
> > How can I download and save it?
> >
> 
> # apt-get install youtube-dl
> # youtube-dl 
> #  

Just one additional trick: as I learned from this list a while back,
mpv has a convenient hook script that invokes youtube-dl itself,
letting you just do something like:

$ mpv https://www.youtube.com/watch?v=QjlCUN975C0

Celejar



Re: Youtube - newbie guidance

2017-12-23 Thread The Wanderer
On 2017-12-23 at 20:47, Jude DaShiell wrote:

> Correction on that software package, it's called cclive and it
> downloads youtube videos and is a command line app for those that can
> handle the command line.

(Why did you post that _after_ the '-- ' signature-delimiter line? That
makes it unnecessarily hard to quote your post, at least in mail clients
which respect the signature delimiter.)

cclive used to be a better and more versatile option than youtube-dl,
but last I'd checked, it had been essentially abandoned some years ago;
the most recent post to its development mailing list by the person who
appears to have been its active developer was in November of 2013.

It's based on libquvi, which is similarly abandoned; the most recent
post indicating meaningful activity on its development mailing list was
in July of 2015.

Given how frequently some of the sites supported by quvi (including,
especially, YouTube) change their formats, and how many times quvi's
YouTube support got broken that way even while it was being actively
developed, I would be exceedingly surprised if cclive actually still
worked for more than a subset of YouTube videos nowadays.

I used to use cclive by preference over youtube-dl, but since quvi
development / maintenance effectively ceased, I've migrated over to
youtube-dl and have had no reason to regret the switch.

-- 
   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: Youtube - newbie guidance

2017-12-23 Thread Jude DaShiell

On Sat, 23 Dec 2017, songbird wrote:


Date: Sat, 23 Dec 2017 08:48:53
From: songbird 
To: debian-user@lists.debian.org
Subject: Re: Youtube - newbie guidance
Resent-Date: Sat, 23 Dec 2017 14:06:55 + (UTC)
Resent-From: debian-user@lists.debian.org

Carl Fink wrote:

On 12/22/2017 05:57 PM, songbird wrote:

...

   there is a pause button, just don't close the
tab.  :)


This is incorrect. Google/Alphabet is not stupid. If you pause a video
you can then close the tab, the browser, turn off the computer. If
you were logged into your YouTube (Google) account, you can then log in
on another device and navigate to that video, and it will start from
just before where you paused it. It's actually quite convenient.


 one big assumption there...  i've never logged into
youtube.


 songbird




--

Correction on that software package, it's called cclive and it downloads 
youtube videos and is a command line app for those that can handle the 
command line.





Re: Debian 8 and Debian 9 Dual Boot

2017-12-23 Thread Dan Norton

On 12/23/2017 04:35 PM, Felix Miata wrote:


Dan Norton composed on 2017-12-23 15:12 (UTC-0500):


Felix Miata wrote:

[...]
It's not so easy to figure out when POST is over with UEFI. Here, it seems
efibootmgr -t provides extra delay beyond what the BIOS defines for you to make
a selection from its own boot device selection menu, which requires an F12
keystroke here to see.
The timeout after appearance of Grub's menu is supposed to be controlled by
/etc/default/grub's GRUB_TIMEOUT=, which shows up here in Stretch's grub.cfg
first on line 86, a few lines before "### END /etc/grub.d/00_header ###".

Edited /etc/default/grub to change GRUB_TIMEOUT to 11:
root@BR914:/etc/default# nano grub
Observed "If you change this file, run 'update-grub' afterwards..." :
root@BR914:/etc/default# update-grub
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.16.0-4-amd64
Found initrd image: /boot/initrd.img-3.16.0-4-amd64
Found Debian GNU/Linux (9.3) on /dev/mapper/vol2-root
Found Debian GNU/Linux (buster/sid) on /dev/mapper/vol3-root
done
Looking at /boot/grub/grub.cfg, timeout is mentioned as follows:
if [ "${recordfail}" = 1 ] ; then
    set timeout=-1
else
    if [ x$feature_timeout_style = xy ] ; then
      set timeout_style=menu
      set timeout=11
    # Fallback normal timeout code in case the timeout_style feature is
    # unavailable.
    else
      set timeout=11
    fi
fi
...but there is no effect. The timeout when rebooting is still 3
seconds. I'm no shell expert so I don't know how to interpret the above.

What exactly is on the screen during those 3 seconds?



The menu inside the box is:
Debian GNU/Linux
Advanced options for Debian GNU/Linux
Debian GNU/Linux 8 (jessie) (on /dev/mapper/vol1-root)
Advanced options for Debian GNU/Linux 8 (jessie) (on /dev/mapper/vol1-root)
Debian GNU/Linux buster/sid (on /dev/mapper/vol3-root)
Advanced options for Debian GNU/Linux buster/sid (on /dev/mapper/vol3-root)

The first two boot stretch, so they will eventually have "9 (stretch) 
(on /dev/mapper/vol2-root)" appended, once the timeout is under control.


[...]


Re: Youtube - newbie guidance

2017-12-23 Thread Charlie Gibbs

On 23/12/17 02:02 AM, Richard Owlett wrote:


On 12/22/2017 04:06 PM, Ben Finney wrote:


Richard Owlett  writes:


I've never used youtube before.


One thing to note explicitly: YouTube is deliberately designed to
thwart downloading videos.

YouTube's owner (Google, Alphabet, whatever they call themselves next
year) have chosen a business model [0] that benefits when more people
keep watching videos *via the site* [1]. So downloading videos from
the site works directly against the business model they have chosen.


I personally consider Google goal is to be as obnoxious as possible.
I avoid them whenever physically possible.


I consider their goal to own every piece of data that exists in 
machine-readable form (with the exception of music, which they've agreed 
to let iTunes have).  This includes your personal data, which explains 
why they are setting up a surveillance network that puts Orwell's 
telescreens to shame.


This is why I use DuckDuckGo (https://duckduckgo.com) instead of Google 
for my search engine, MapQuest or zoom.earth for maps and satellite 
views, etc.


As for YouTube, if you do a search for (I don't say "google for" for 
reasons mentioned above) "youtube to mp3", you'll find a number of web 
pages into which you can paste a YouTube URL and it will convert the 
sound to an MP3 file which you can then download.  Great for getting a 
piece of music to practise with, for instance.  For that matter, some 
sites will convert to MP4 and you can download the video.


One of my favourite sites has disappeared, but lots remain.

--
cgi...@surfnaked.ca (Charlie Gibbs)



Re: Noms partitions /dev/sdaX modifiés en /dev/sdcX

2017-12-23 Thread hamster
Le 23/12/2017 à 23:28, Pascal Hambourg a écrit :
>> J'ai peut-être trouvé la solution par cette simple commande :
>> # mv sdc1 à 8 sda1 à 8
>
> /dev étant un devtmpfs peuplé dynamiquement, cela ne persistera pas au
> reboot.

+1, tu peux trifouiller tant que tu veux dans /dev, le noyau effacera
tout et recommancera a zero comme bon lui chante au prochain reboot.

Et il n'y a meme pas besoin d'attendre le prochain reboot. Il suffit de
débrancher le disque et le rebrancher. Quand on débranche, le fichier
bloc est détruit, quand on rebranche le noyau refait un autre fichier
bloc comme bon lui chante. Il est courant qu'après débranchage /
rebranchage le fichier bloc n'ait plus le meme nom. Par exemple un
disque qui etait nommé sda, on débranche / rebranche et pouf, il est
nommé sdc. On n'a aucune maitrise sur la facon dont le noyau nomme les
fichiers bloc.



Re: Noms partitions /dev/sdaX modifiés en /dev/sdcX

2017-12-23 Thread hamster
Le 23/12/2017 à 16:10, andre_deb...@numericable.fr a écrit :
> tant que je n'aurais pas dans le rép /dev,
> sda1 à sda8, je peux pas faire grand chose.

Je pense que c'est la la source de l'incompréhension. On arrive pas a se
faire une idée de ce qui te bloque, de ce qui t'oblige a avoir tes
partoches nomées sda, de ce qui t'empeche de faire quoi que ce soit tant
qu'elles sont pas nommées comme ca. Et tu ne nous donne aucun indice.
Nous, de notre coté, on ne connait pas de cas ou c'est bloquant, mais
sans doute est-tu dans un cas particulier qu'on connait pas… et qu'on
arrivera pas a deviner tant que tu nous en dira pas plus.



Re: Noms partitions /dev/sdaX modifiés en /dev/sdcX

2017-12-23 Thread Pascal Hambourg

Le 23/12/2017 à 23:06, andre_deb...@numericable.fr a écrit :

On Saturday 23 December 2017 19:17:05 Pascal Hambourg wrote:

Le 23/12/2017 à 16:10, andre_deb...@numericable.fr a écrit :

Au risque d'un tsunami, tant que je n'aurais pas dans le rép /dev,
sda1 à sda8, je peux pas faire grand chose.



Tu peux faire tout ce que tu veux quelquesoit le nom du disque :

Et comment donc ?


En utilisant /dev/sdc au lieu de /dev/sda.


J'ai peut-être trouvé la solution par cette simple commande :
# mv sdc1 à 8 sda1 à 8


/dev étant un devtmpfs peuplé dynamiquement, cela ne persistera pas au 
reboot.



L'UUID est préservé (blkid /dev/sdaX).
Ensuite, modifier sdcX en sdaX dans les rép de /dev/disk/ :
by-id  by-label  by-path  by-uuid.


Etc. etc.
Il aurait été plus simple de créer des liens symboliques /dev/sda* 
pointant vers /dev/sdc*.




Re: Systemtap out of date and not working

2017-12-23 Thread Reco
Hi.

On Sat, Dec 23, 2017 at 04:09:56PM -0500, Farhan Khan wrote:
> Hi all,
> 
> SystemTap on Debian is version 2.9/0.165.

Not unless you're running pre-stretch testing.
stretch's current is 3.1.

>The current version is 3.2.

Maybe.

> SystemTap works by compiling a custom kernel module against the source and
> installing it.

If you want to do it the hard way - sure.
Installing linux-image-$(uname -r)-dbg and linux-headers-$(uname -r) is
sufficient for us mere mortals.

> However, the kernel structure has since updated and
> Systemtap 2.9 will not compile against newer kernels. As a result,
> SystemTap DOES NOT WORK.

It does for me:

# stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}'
Pass 1: parsed user script and 465 library scripts using 
113916virt/46508res/6236shr/40564data kb, in 170usr/30sys/330real ms.
Pass 2: analyzed script: 1 probe, 1 function, 7 embeds, 0 globals using 
272244virt/206636res/7848shr/198892data kb, in 1790usr/350sy s/5811real ms.
Pass 3: translated to C into
"/tmp/stapT5s2PF/stap_de69e8c4da8ac792e5b3974a3cb63db7_2549_src.c" using 
272244virt/206832res/8044shr/1 98892data kb, in 0usr/0sys/4real ms.
Pass 4: compiled C into "stap_de69e8c4da8ac792e5b3974a3cb63db7_2549.ko" in 
9050usr/480sys/11001real ms.
Pass 5: starting run.
read performed
Pass 5: run completed in 0usr/20sys/367real ms.

# uname -a
Linux stretch 4.9.0-4-amd64 #1 SMP Debian 4.9.65-3+deb9u1 (2017-12-23) x86_64 
GNU/Linux

> This can only be resolved except by updating to a
> newer version of systemtap.

'apt-get update && apt-get upgrade' solves this for me usually.
Consider trying it.

Reco



Re: Noms partitions /dev/sdaX modifiés en /dev/sdcX

2017-12-23 Thread andre_debian
On Saturday 23 December 2017 19:17:05 Pascal Hambourg wrote:
> Le 23/12/2017 à 16:10, andre_deb...@numericable.fr a écrit :
> > Au risque d'un tsunami, tant que je n'aurais pas dans le rép /dev,
> > sda1 à sda8, je peux pas faire grand chose.

> Tu peux faire tout ce que tu veux quelquesoit le nom du disque :
Et comment donc ?

> C'est  juste que tu ne veux pas :
Remarque acerbe, surtout après ce que j'ai écrit :
> "tant que je n'aurais pas dans /dev, sda1 à sda8, je peux pas faire grand 
chose".

J'ai peut-être trouvé la solution par cette simple commande :
# mv sdc1 à 8 sda1 à 8
L'UUID est préservé (blkid /dev/sdaX).
Ensuite, modifier sdcX en sdaX dans les rép de /dev/disk/ :
by-id  by-label  by-path  by-uuid.

Je tiens au courant la ML du résultat, car je dois être prudent 
lors du reboot, c'est un serveur.

André




Re: Youtube - newbie guidance

2017-12-23 Thread davidson

On Sat, 23 Dec 2017, Brian wrote:


On Sat 23 Dec 2017 at 05:21:33 -0600, Richard Owlett wrote:


On 12/23/2017 04:55 AM, Brian wrote:

On Sat 23 Dec 2017 at 04:10:00 -0600, Richard Owlett wrote:


On 12/22/2017 09:00 PM, Jude DaShiell wrote:

cliget or youtube-viewer or youtube-dl can do that, but cliget
does it with least complexity.


Neither cliget nor youtube-viewer appear to be in Debian
repository.


youtube-viewer depends on youtube-dl, so it looks like a bells and
whistles provider.

Download a Debian package from

 https://www.ubuntuupdates.org/package/webupd8/artful/main/base/youtube-viewer



*WHY?* It does not appear to offer any appear to offer me any
additional functionality, having installed youtube-dl.


You remarked that youtube-viewer was not in the Debian archives; this
is correct. I provided a way for users to get and install it.

This is a mailing list, not a help-line for one user. You judge it not
to offer you anything (which you could have determined before writing
the mail with your cliget and youtube-viewer remark) but others might
be of a different opinion. Please refrain from having an expectation of
responses tailored exactly to your mode of thinking and over-emphasised
queries.


I concur with the gist of this final paragraph of Brian's.  Solutions
proposed on this list in response to clearly formulated queries might
benefit many subsequent readers besides an OP, and it rings a sour
note (for me, at any rate) whenever an OP seems not to recognise this.

However, it is worth noting that thread's subject includes the
qualifier "newbie guidance".[1]

The advice of Brian's above which OP (and deloptes) objected to is
cautioned against here, and rightly so:

 DontBreakDebian - Debian Wiki # Don't make a FrankenDebian
 https://wiki.debian.org/DontBreakDebian#Don.27t_make_a_FrankenDebian

Forcibly installing an ubuntu package on a debian system is bad advice
for someone new to debian.

Following such advice would tend to sabotage the great care that
debian invests in package management. Were a conflict to arise due to
a foreign package's installation, the frustrated new user might never
learn that their own actions, and not debian, were wholly to blame.

NOTE

1. I admit it is likely OP meant only to inform us of their
inexperience with YouTube, and not with debian. The many experiments
and investigations of Richard's, documented on this list, disqualify
him from debian newbie-hood. But subsequent readers of this thread
might easily miss that distinction.



Re: Migrate an old debian to a new machine

2017-12-23 Thread Patrick Bartek
On Sat, 23 Dec 2017 10:31:16 +0100 Markus Grunwald 
wrote:

> Hello,
> 
> For 10 Years, I've been working with my trusted old T61 (still with
> "IBM" logo...). Now I'm waiting for a new T570.
> 
> The last migrations of my Debian installations were just dd'ing a full
> disk image from machine OLD to NEW and then resize the partitions with
> gparted (I hate new installations... something's lost every time.)

Your old method with all the changes made to hardware just won't work
anymore.  You'll be lucky if the machine even boots.  A clean install
whether you like it or not is the most reliable solution. And still
there are hoops to jump through.

> These migrations were always done on BIOS machines. I have almost no
> experience with UEFI. Now my question is: will this work with the new
> machine as well? Or do I have to do something else because of UEFI (or
> something else that's different on a modern T570)?

You don't have to use UEFI if "Legacy" mode, that is CSM, Computer
Support Module, is available.  If you want to dual boot with Windows
10, you'll have to use UEFI.  You can't mix-n-match. Then there's
Fastboot  which no Linux distro including Debian support.  Less we
forget Secureboot, too, which the vast majority of distros don't support
either. Some do: Red Hat, Ubuntu, SUSE, a few others. Requires distro
developer to purchase a key only available from Microsoft that
"unlocks" computer to boot. Both can be disabled (so far), but hoops
jumping through needed to do so.

I suggest you find and read everything you can about installing Debian
on a contemporary laptop.

FWIW, Thinkpads are pretty Linux compliant. And Lenovo supports Linux,
too.

B



Re: OT: AOL fees (Re: Youtube - newbie guidance)

2017-12-23 Thread Cindy-Sue Causey
On 12/23/17, Michael Stone  wrote:
> On Sat, Dec 23, 2017 at 03:50:34PM -0500, rhkra...@gmail.com wrote:
>>This is OT, but I remember AOL as being expensive, but I didn't think it
>> was
>>hundreds per month.
>
> It really depended on how much self control you had--in the early 90s it
> was like $6/hr.


*Self-control* was the word I was looking for in my response. One bill
like whatever ours was that time, and we never used close to an hour
again ever after..

I don't know who we used.. Or maybe the kids stayed up all night.. Or
worse yet, they just walked away and left it connected or something.
The bill we had was LARGE and became the beginning of the end of how
he became an ex, lol...

In hindsight, I can't imagine what the whole bunch of us did to spend
that much time online. Studebaker is always my fall back example.
There were only 300 references to Studebaker TOTAL circa 1998, 1999.
That number has slightly increased since then.

Today, anyone with a phone where they're sick at their stomach having
to monitor the data usage has a taste of what it was like back
then :)

Cindy :)
-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* runs with duct tape *



Re: Debian 8 and Debian 9 Dual Boot

2017-12-23 Thread Felix Miata
Dan Norton composed on 2017-12-23 15:12 (UTC-0500):

> Felix Miata wrote:

>> [...]
>> It's not so easy to figure out when POST is over with UEFI. Here, it seems
>> efibootmgr -t provides extra delay beyond what the BIOS defines for you to 
>> make
>> a selection from its own boot device selection menu, which requires an F12
>> keystroke here to see.

>> The timeout after appearance of Grub's menu is supposed to be controlled by
>> /etc/default/grub's GRUB_TIMEOUT=, which shows up here in Stretch's grub.cfg
>> first on line 86, a few lines before "### END /etc/grub.d/00_header ###".

> Edited /etc/default/grub to change GRUB_TIMEOUT to 11:
> root@BR914:/etc/default# nano grub

> Observed "If you change this file, run 'update-grub' afterwards..." :
> root@BR914:/etc/default# update-grub
> Generating grub configuration file ...
> Found background image: /usr/share/images/desktop-base/desktop-grub.png
> Found linux image: /boot/vmlinuz-3.16.0-4-amd64
> Found initrd image: /boot/initrd.img-3.16.0-4-amd64
> Found Debian GNU/Linux (9.3) on /dev/mapper/vol2-root
> Found Debian GNU/Linux (buster/sid) on /dev/mapper/vol3-root
> done

> Looking at /boot/grub/grub.cfg, timeout is mentioned as follows:
> if [ "${recordfail}" = 1 ] ; then
>    set timeout=-1
> else
>    if [ x$feature_timeout_style = xy ] ; then
>      set timeout_style=menu
>      set timeout=11
>    # Fallback normal timeout code in case the timeout_style feature is
>    # unavailable.
>    else
>      set timeout=11
>    fi
> fi

> ...but there is no effect. The timeout when rebooting is still 3 
> seconds. I'm no shell expert so I don't know how to interpret the above.

What exactly is on the screen during those 3 seconds?

NAICT, the first "if" is setting the timeout to infinite if there is nothing
found that could be booted. The next "if" is using 11 if some sort of optional
timeout indication feature is enabled. Otherwise, 11 is used as Grub's own
standard (invisible) timeout "indication".

Do you still have only Jessie installed? If so, maybe its grub-efi is broken,
and going ahead and installing Stretch will replace Jessie's with a working one.
Stretch's is working as expected here. Jessie's I've never had occasion to use.

Another thought is that if there is but one valid Grub stanza, the timeout
setting might be ignored.
-- 
"Wisdom is supreme; therefore get wisdom. Whatever else you
get, get wisdom." Proverbs 4:7 (New Living Translation)

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

Felix Miata  ***  http://fm.no-ip.com/



Systemtap out of date and not working

2017-12-23 Thread Farhan Khan
Hi all,

SystemTap on Debian is version 2.9/0.165. The current version is 3.2.

SystemTap works by compiling a custom kernel module against the source and
installing it. However, the kernel structure has since updated and
Systemtap 2.9 will not compile against newer kernels. As a result,
SystemTap DOES NOT WORK. This can only be resolved except by updating to a
newer version of systemtap.

What is the process to have this updated?

Thanks
--
Farhan Khan
PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE


Re: OT: AOL fees (Re: Youtube - newbie guidance)

2017-12-23 Thread Cindy-Sue Causey
On 12/23/17, rhkra...@gmail.com  wrote:
> On Saturday, December 23, 2017 03:31:31 PM Ric Moore wrote:
>> Bob's your uncle. BTW, Google is no where as obnoxious as AOL during the
>> old days when you could be paying hundreds a month for access to the web
>> and email. I'll take Google any day and thank them for the huge
>> freebies. Ric
>
> This is OT, but I remember AOL as being expensive, but I didn't think it was
>
> hundreds per month.


I don't remember who my ex-boyfriend was using back circa ~1994, but
we got something like one single hour then paid by each single
minute thereafter..

His daughter and her boyfriend ran up the bill one time, and he wanted
MY bank account to pay for it. I don't remember the amount now, but it
was no petty $10... or even $50. :)

Cindy :)
-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* runs with duct tape *



Re: OT: AOL fees (Re: Youtube - newbie guidance)

2017-12-23 Thread Michael Stone

On Sat, Dec 23, 2017 at 03:50:34PM -0500, rhkra...@gmail.com wrote:

This is OT, but I remember AOL as being expensive, but I didn't think it was
hundreds per month.


It really depended on how much self control you had--in the early 90s it 
was like $6/hr.




OT: AOL fees (Re: Youtube - newbie guidance)

2017-12-23 Thread rhkramer
On Saturday, December 23, 2017 03:31:31 PM Ric Moore wrote:
> Bob's your uncle. BTW, Google is no where as obnoxious as AOL during the
> old days when you could be paying hundreds a month for access to the web
> and email. I'll take Google any day and thank them for the huge
> freebies. Ric

This is OT, but I remember AOL as being expensive, but I didn't think it was 
hundreds per month.



Re: Package for Kernel Bug?

2017-12-23 Thread Erwan David
Le 12/23/17 à 20:53, Mason Dean Kukosky a écrit :
> I'm trying to send a bug report with reportbug, and It's asking for
> the package name. What do I put under package name if it's a bug with
> the Linux kernel?
>
>
> Sent with ProtonMail  Secure Email.
>

That's linux-image- eg linux-image-amd64



Re: Youtube - newbie guidance

2017-12-23 Thread Ric Moore

On 12/23/2017 05:02 AM, Richard Owlett wrote:

On 12/22/2017 04:06 PM, Ben Finney wrote:

Richard Owlett  writes:


I've never used youtube before.


One thing to note explicitly: YouTube is deliberately designed to
thwart downloading videos.

YouTube's owner (Google, Alphabet, whatever they call themselves next
year) have chosen a business model [0] that benefits when more people
keep watching videos *via the site* [1]. So downloading videos from
the site works directly against the business model they have chosen.


I personally consider Google goal is to be as obnoxious as possible.
I avoid them whenever physically possible.


Just use youtube-dl on the command line while being in the directory you 
wish to save the video in. The copy the video url and use it like this:

>youtube-dl 
Every once in awhile use this to update it
>sudo youtube-dl -U


Bob's your uncle. BTW, Google is no where as obnoxious as AOL during the 
old days when you could be paying hundreds a month for access to the web 
and email. I'll take Google any day and thank them for the huge 
freebies. Ric



--
My father, Victor Moore (Vic) used to say:
"There are two Great Sins in the world...
..the Sin of Ignorance, and the Sin of Stupidity.
Only the former may be overcome." R.I.P. Dad.
http://linuxcounter.net/user/44256.html



Re: Debian 8 and Debian 9 Dual Boot

2017-12-23 Thread Dan Norton

On 12/21/2017 05:13 PM, Felix Miata wrote:

[...]
It's not so easy to figure out when POST is over with UEFI. Here, it seems
efibootmgr -t provides extra delay beyond what the BIOS defines for you to make
a selection from its own boot device selection menu, which requires an F12
keystroke here to see.

The timeout after appearance of Grub's menu is supposed to be controlled by
/etc/default/grub's GRUB_TIMEOUT=, which shows up here in Stretch's grub.cfg
first on line 86, a few lines before "### END /etc/grub.d/00_header ###".


Edited /etc/default/grub to change GRUB_TIMEOUT to 11:
root@BR914:/etc/default# nano grub

Observed "If you change this file, run 'update-grub' afterwards..." :
root@BR914:/etc/default# update-grub
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.16.0-4-amd64
Found initrd image: /boot/initrd.img-3.16.0-4-amd64
Found Debian GNU/Linux (9.3) on /dev/mapper/vol2-root
Found Debian GNU/Linux (buster/sid) on /dev/mapper/vol3-root
done

Looking at /boot/grub/grub.cfg, timeout is mentioned as follows:
if [ "${recordfail}" = 1 ] ; then
  set timeout=-1
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=11
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=11
  fi
fi

...but there is no effect. The timeout when rebooting is still 3 
seconds. I'm no shell expert so I don't know how to interpret the above.




Package for Kernel Bug?

2017-12-23 Thread Mason Dean Kukosky
I'm trying to send a bug report with reportbug, and It's asking for the package 
name. What do I put under package name if it's a bug with the Linux kernel?

Sent with [ProtonMail](https://protonmail.com) Secure Email.

Re: aplay fails on amd64 laptop

2017-12-23 Thread deloptes
Pierre Frenkiel wrote:

> do you think that "find yourself" matches this definition?

It might surprise you but yes :)

If you have read man aplay to the end you would have found following

aplay -c 1 -t raw -r 22050 -f mu_law foobar
  will play the raw file "foobar" as a 22050-Hz, mono, 8-bit,
Mu-Law .au file.

Adjusting it a bit to my setup (-Ddefault) produces following with sound

$ aplay -Ddefault -c 1 -t raw -r 22050 -f
mu_law /usr/share/sounds/alsa/Side_Left.wav
Warning: format is changed to S16_LE
Playing WAVE '/usr/share/sounds/alsa/Side_Left.wav' : Signed 16 bit Little
Endian, Rate 48000 Hz, Mono

I use default because pulseaudio is hooked at the alsa device

regards



Re: strawman [was: LUKS password gets printed as stars]

2017-12-23 Thread Brian
On Sat 23 Dec 2017 at 18:43:38 +0100, to...@tuxteam.de wrote:

> On Sat, Dec 23, 2017 at 03:14:25PM +, Curt wrote:
> > On 2017-12-23, Hans  wrote:
> 
> [...]
> 
> > > And I suppose, guessing 15 digits will cause a loong time [...]
> 
> > (Assuming all 95 printable ascii characters) link to % time savings:
> 
> [...]
> 
> >  An interesting mathematical quirk about this ratio of the number of 
> > passwords
> >  shorter than n [...]
> 
> It's interesting how threads among us geeks can be totally derailed
> by a simple strawman (i.e. no-stars >= stars "because of security"),
> while the OP's motivation was rather "familiarity" (at least (s)he
> didn't say anything about security), which in itself is legitimate
> enough.
> 
> And watch this thread wander off to the woods on whether no-stars
> is more secure than stars, and whether significantly so.
> 
> Fascinating :-)

Motivation is in

 
http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/2017-December/016347.html

  There are mainly 2 reasons behind this proposal:
  1. Security by obscurity (hiding the length of pass-phrase)
  2. consistency

-- 
Brian.



Language of applications are not translated if the default language is changed

2017-12-23 Thread john doe

Hi,

I have install Debian 9 using as the default language 'C'.
I want to add some new languages, and for this I do 'dpkg-reconfigure 
locales'.

I'm currently using Gnome and Mate.

How can I add support for those new languages so all applications will 
be translated in the desired language (using command line is prefered)?


--
John Doe



Re: Noms partitions /dev/sdaX modifiés en /dev/sdcX

2017-12-23 Thread Pascal Hambourg

Le 23/12/2017 à 16:10, andre_deb...@numericable.fr a écrit :


Au risque d'un tsunami, tant que je n'aurais pas dans le rép /dev,
sda1 à sda8, je peux pas faire grand chose.


Tu peux faire tout ce que tu veux quel que soit le nom du disque. C'est 
juste que tu ne veux pas.




Re: Migrate an old debian to a new machine

2017-12-23 Thread Pascal Hambourg

Le 23/12/2017 à 16:08, Dan Norton a écrit :

On 12/23/2017 07:21 AM, Pascal Hambourg wrote:


Le 23/12/2017 à 12:10, Georgi Naplatanov a écrit :


  - connect new disk to old computer and boot from your old disk
  - partition your new disk with your favorite program. I like cgdisk
from gdisk package


gdisk and cgdisk handle only GPT. For DOS/MBR, you'll need another 
program such as fdisk or (g)parted.


How about partitioning a new disk using the installer itself - would 
that work?


Well, yes, but the point of this thread is to not reinstall but transfer 
the existing system to the new disk. The installer in rescue mode is 
used to boot on the new UEFI machine only after the transfer and install 
the GRUB EFI boot loader, which cannot be done on the old non-UEFI 
machine (actually it could, if installing GRUB into the removable media 
path).




strawman [was: LUKS password gets printed as stars]

2017-12-23 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sat, Dec 23, 2017 at 03:14:25PM +, Curt wrote:
> On 2017-12-23, Hans  wrote:

[...]

> > And I suppose, guessing 15 digits will cause a loong time [...]

> (Assuming all 95 printable ascii characters) link to % time savings:

[...]

>  An interesting mathematical quirk about this ratio of the number of passwords
>  shorter than n [...]

It's interesting how threads among us geeks can be totally derailed
by a simple strawman (i.e. no-stars >= stars "because of security"),
while the OP's motivation was rather "familiarity" (at least (s)he
didn't say anything about security), which in itself is legitimate
enough.

And watch this thread wander off to the woods on whether no-stars
is more secure than stars, and whether significantly so.

Fascinating :-)

Cheers
- -- t
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlo+lcoACgkQBcgs9XrR2kY/MACeOf6uPfzI3qSlzcqwR5cCSw43
avwAn0PNRC7dabhyHdGHbNEjFbuyJUai
=o6R9
-END PGP SIGNATURE-



Re: Problems making a bootable DVD

2017-12-23 Thread didier gaumet
You seem to use Windows 7 and from this OS on, Micosoft includes an iso
burner:
 https://technet.microsoft.com/en-us/library/dd451080.aspx



Re: Youtube - newbie guidance

2017-12-23 Thread Curt
On 2017-12-23, Gene Heskett  wrote:
>>
>> ... why I'd *never* *ever* be "logged into" any of the YT or Google
>> accounts. It's enough to make trackability easier for them whithin
>> a session, but across sessions? Disgusting.
>>
>> > on another device and navigate to that video [...]
>>
>> And then, across devices? Pfft. No way. Not for me.
>>
>> Cheers
>> -- t
> Its nor paranoia, if they really are out to get you.

We are familiar with his opinion of G. because he
repeats it at every opportunity. 

> Cheers, Gene Heskett


-- 
"An autobiography is only to be trusted when it reveals something disgraceful.
A man who gives a good account of himself is probably lying, since any life
when viewed from the inside is simply a series of defeats."
— George Orwell



Compilar módulo con DKMS

2017-12-23 Thread Josu Lazkano
Buenos dias,

Estoy intentando compilar este módulo para mi servidor:
https://github.com/fetzerch/hp-n54l-drivers

He seguido los pasos:

# git clone git://github.com/fetzerch/hp-n54l-drivers.git
# mv hp-n54l-drivers/ /usr/src/
# dkms add -m hp-n54l -v drivers/

Pero en este punto me falla:

# dkms build -m hp-n54l -v drivers

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...(bad exit status: 2)
make -j2 KERNELRELEASE=4.9.0-4-amd64 KVER=4.9.0-4-amd64
src=/var/lib/dkms/hp-n54l/0.1.0/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.9.0-4-amd64 (x86_64)
Consult /var/lib/dkms/hp-n54l/drivers/build/make.log for more information.

Aquí está el make.log: http://paste.debian.net/1002136/

¿Alguien me puede ayudar? Estoy un poco perdido con el dkms.

Gracias y un saludo.

-- 
Josu Lazkano



Re: LUKS password gets printed as stars

2017-12-23 Thread Curt
On 2017-12-23, Hans  wrote:
>
> But 1 percent longer for each added digit sounds not much. However, when it 
> comes to more digits, let's say 16 (WPA2 often uses 16 digits with only 
> letters and numbers), then the time to crack will increase rapidely.
>
> If I understood you correct, and please correct me if I am wrong, this is 1 
> percent of the time for trying all combinations with one lesser digit.
>
> And I suppose, guessing 15 digits will cause a loong time, and 1 percent 
> of this long time plus another much more looong time will result in a 
> very looong time. So, the more unnecessary digits, the better.

(Assuming all 95 printable ascii characters) link to % time savings:
 
http://www.wolframalpha.com/input/?i=%28sum%20from%20n%3D1%20to%20n%3D16%20of%2095%5En%20%29%20%2F%2095%5E17==Submit

Quote:

 An interesting mathematical quirk about this ratio of the number of passwords
 shorter than n, over the number of passwords of length n, is that it doesn't
 really depend on n. This is because we're already very close to the asymptote
 of 1/95 = 0.0105. So an attacker gets the same relative, or percentage, time
 savings from this trick regardless of the length of your password; it's always
 between 1% - 2%. Though, of course, the absolute time that it takes grows
 orders of magnitude with each new character that you add.

https://security.stackexchange.com/questions/92233/how-critical-is-it-to-keep-your-password-length-secret


-- 
"An autobiography is only to be trusted when it reveals something disgraceful.
A man who gives a good account of himself is probably lying, since any life
when viewed from the inside is simply a series of defeats."
— George Orwell



Re: Noms partitions /dev/sdaX modifiés en /dev/sdcX

2017-12-23 Thread andre_debian
On Saturday 23 December 2017 05:56:34 Comendatore wrote:
> Si ta machine est une machine hébergée par un prestataire, n'y aurait-il pas 
> du RAID ? En principe, tout bon hébergeur met d'office du RAID actuellement.
> Pour le savoir, dans le cas d'un RAID hardware : lspci -vv | grep -i raid, 
> pour un RAID software : cat /proc/mdstat et pour avoir des info completes : 
> mdadm -D /dev/md[X]
> De mémoire, il m'est déjà arrivé un truc du genre, où le RAID était 
> complètement inactif suite à des pannes sur des disques. 
> Ça vaut peut-être le coup de checker ça ;-)
> Rooty

Merci, c'était une bonne piste :

# lspci -vv | grep -i raid , ne donne pas de réponse.

# cat /proc/mdstat , idem

# /sbin/./mdadm -D /dev/md0 ,  "/dev/mda: No such file"

Pas de RAID installé, semble t-il...

Au risque d'un tsunami, tant que je n'aurais pas dans le rép /dev,
sda1 à sda8, je peux pas faire grand chose.

André



Re: Youtube - newbie guidance

2017-12-23 Thread Carl Fink

On 12/23/2017 08:48 AM, songbird wrote:

Carl Fink wrote:

On 12/22/2017 05:57 PM, songbird wrote:

...

there is a pause button, just don't close the
tab.  :)

This is incorrect. Google/Alphabet is not stupid. If you pause a video
you can then close the tab, the browser, turn off the computer. If
you were logged into your YouTube (Google) account, you can then log in
on another device and navigate to that video, and it will start from
just before where you paused it. It's actually quite convenient.

   one big assumption there...  i've never logged into
youtube.


No, the feature exists whether you use it or not.

--
Carl Fink  c...@finknetwork.com
Thinking and logic and stuff at Reasonably Literate
http://reasonablyliterate.com



Re: Migrate an old debian to a new machine

2017-12-23 Thread Dan Norton

On 12/23/2017 07:21 AM, Pascal Hambourg wrote:


Le 23/12/2017 à 12:10, Georgi Naplatanov a écrit :


  - connect new disk to old computer and boot from your old disk
  - partition your new disk with your favorite program. I like cgdisk
from gdisk package


gdisk and cgdisk handle only GPT. For DOS/MBR, you'll need another 
program such as fdisk or (g)parted.


How about partitioning a new disk using the installer itself - would 
that work?




Re: Youtube - newbie guidance

2017-12-23 Thread Gene Heskett
On Saturday 23 December 2017 05:19:48 to...@tuxteam.de wrote:

> On Fri, Dec 22, 2017 at 07:40:56PM -0500, Carl Fink wrote:
>
> [...]
>
> > This is incorrect. Google/Alphabet is not stupid [...]
>
> That's *exactly* the reason...
>
> > [...] If you were logged into your YouTube (Google) account [...]
>
> ... why I'd *never* *ever* be "logged into" any of the YT or Google
> accounts. It's enough to make trackability easier for them whithin
> a session, but across sessions? Disgusting.
>
> > on another device and navigate to that video [...]
>
> And then, across devices? Pfft. No way. Not for me.
>
> Cheers
> -- t
Its nor paranoia, if they really are out to get you.

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)
Genes Web page 



Re: Youtube - newbie guidance

2017-12-23 Thread songbird
Carl Fink wrote:
> On 12/22/2017 05:57 PM, songbird wrote:
...
>>there is a pause button, just don't close the
>> tab.  :)
>
> This is incorrect. Google/Alphabet is not stupid. If you pause a video
> you can then close the tab, the browser, turn off the computer. If
> you were logged into your YouTube (Google) account, you can then log in
> on another device and navigate to that video, and it will start from
> just before where you paused it. It's actually quite convenient.

  one big assumption there...  i've never logged into
youtube.


  songbird



Re: LUKS password gets printed as stars

2017-12-23 Thread Hans
Am Samstag, 23. Dezember 2017, 13:57:59 CET schrieb Anders Andersson:
Hi Anders, 

this is an interesting point, you showed. I suppose, 10 digits will be mostly 
be used by poeple, maybe less.

But 1 percent longer for each added digit sounds not much. However, when it 
comes to more digits, let's say 16 (WPA2 often uses 16 digits with only 
letters and numbers), then the time to crack will increase rapidely.

If I understood you correct, and please correct me if I am wrong, this is 1 
percent of the time for trying all combinations with one lesser digit.

And I suppose, guessing 15 digits will cause a loong time, and 1 percent 
of this long time plus another much more looong time will result in a 
very looong time. So, the more unnecessary digits, the better.

Anders, is there an error in my thoughts?

For all people, reading this: However, going back to the original theme: IMO 
showing stars for the password is worse (although typing could be heard and 
finger moves can be counted) than not to be shown. I remember in kdm or other 
login managers, it could be chosen, if there are 1 star/letter,  3 stars/
letter or none. 

Maybe this option should be added, so any operator can decide (after encodinng 
the drives), which option he prefers: 1, 3 or none.

Have a happy christmas

Best 

Hans

> No. I've been facepalming myself through this thread but I can't
> really keep my mouth shut anymore.
> 
> All this is very misguided. Knowing the length of your password means
> that it takes about 1-2% less time to brute-force it, no matter how
> many characters you use.
> 
> This is because every extra character multiplies the difficulty by
> about 50-100 depending on what type of characters you pick from.
> 
> Let's say you use a 10 letter password, from a pool of 100 characters
> for each letter and someone is brute-forcing it. If they *know* that
> you have 10 letters in your password, they will have to try on average
> 100^10/2 = 5000 times before they find the right
> password.
> 
> Now, what happens if they *don't* know? They will have to start
> testing all possible 1-letter passwords, then 2-letter, 3-letter etc:
> (100^1 + 100^2 + 100^3...)/2 = 50505050505050505050. Wow, to
> brute-force without known the number requires 1.01% more calculations.




Re: regex en bash

2017-12-23 Thread Daniel Caillibaud
Le 23/12/17 à 09:50, Andre Majorel  a écrit :
AM> Même si ça rentre probablement dans votre catégorie "assez
AM> idiot", je tiens à signaler l'existence de la commande expr(1)

Merci pour le rappel, tu as raison c'est plus portable.

AM> qui a l'avantage de fonctionner sur tout Unix. Contrairement à
AM> quelque solution reposant sur Bash, Zsh ou l'option -E de sed
AM> qui non seulement n'est pas standard mais n'est même pas
AM> documentée. 

Si, justement, -E est la version portable et documentée. J'utilisais
toujours -r et j'ai pris le pli de remplacer par -E car man sed dit :

   -E, -r, --regexp-extended

  use extended regular expressions in the script (for
  portability use POSIX -E).

-- 
Daniel

Les champignons poussent dans les endroits humides. C'est 
pourquoi ils ont la forme d'un parapluie.
Alphonse Allais



Re: LUKS password gets printed as stars

2017-12-23 Thread Anders Andersson
On Fri, Dec 22, 2017 at 10:25 PM, Richard Hector  wrote:
> On 21/12/17 22:16, Curt wrote:
>> On 2017-12-20, Richard Hector  wrote:
>>>
>>> On 21/12/17 02:02, Curt wrote:
 Also, I'm uncertain whether suppression of the asterisk-echo qualifies
 as "security by obscurity"
>>>
>>> I think most people accept that obscurity is quite reasonable for
>>> passwords ...
>>>
>>> Richard
>>>
>>
>> Wonderful, Dick, however, I was referring to the specific expression
>> "security by (or through) obscurity," which denotes something else.
>>
>> https://en.wikipedia.org/wiki/Security_through_obscurity
>
> I'm aware of that concept. But making it harder to see the length of the
> password makes it harder to guess the password, no? Which has got to be
> good?

No. I've been facepalming myself through this thread but I can't
really keep my mouth shut anymore.

All this is very misguided. Knowing the length of your password means
that it takes about 1-2% less time to brute-force it, no matter how
many characters you use.

This is because every extra character multiplies the difficulty by
about 50-100 depending on what type of characters you pick from.

Let's say you use a 10 letter password, from a pool of 100 characters
for each letter and someone is brute-forcing it. If they *know* that
you have 10 letters in your password, they will have to try on average
100^10/2 = 5000 times before they find the right
password.

Now, what happens if they *don't* know? They will have to start
testing all possible 1-letter passwords, then 2-letter, 3-letter etc:
(100^1 + 100^2 + 100^3...)/2 = 50505050505050505050. Wow, to
brute-force without known the number requires 1.01% more calculations.



Re: Noms partitions /dev/sdaX modifiés en /dev/sdcX

2017-12-23 Thread Pascal Hambourg

Le 23/12/2017 à 12:23, Daniel Caillibaud a écrit :


Juste une remarque pour compléter toutes les autres déjà faites (mettre des
uuid ou des labels dans le fstab), lvm permet aussi de s'affranchir de ces
pbs (outre le fait de pouvoir redimensionner ses partitions ou les changer
de disque sans rien avoir à modifier dans /etc)


Je ne peux que recommander LVM aussi, mais pas pour les mauvaises 
raisons. On peut aussi bien redimensionner ou déplacer une partition 
classique sans modifier /etc/fstab si celle-ci y est identifiée par son 
UUID ou LABEL.



Avec lvm les partitions restent toujours /dev/nomVG/nomLV


Volumes logiques, pas partitions.

Attention, il y a en parallèle un autre schéma de nommage : 
/dev/mapper/nomVG-nomLV (les éventuels tirets dans les noms de VG et LV 
sont doublés, il vaut donc mieux les éviter). Cette forme est celle 
utilisée par l'installateur pour identifier les volumes logiques dans 
/etc/fstab, et par l'initramfs pour détecter qu'il s'agit d'un volume 
logique afin de l'activer. A noter que ces deux formes sont en fait des 
liens symboliques qui pointent vers le "vrai" nom (canonique) de 
périphérique /dev/dm-N, comme tous les périphériques créés par le device 
mapper. Ce nom canonique peut être visible par exemple dans 
/proc/partitions et /proc/mounts.



Attention, avec lvm si on redimensionne une partition il me semble que le
uuid change (mais pas si sûr, juste un doute)


Non. Aucune raison pour que ce soit le cas. L'UUID est un attribut du 
contenant, pas du contenu.




Re: Youtube - newbie guidance

2017-12-23 Thread Curt
On 2017-12-23, Brian  wrote:
>> 
>> That did very nicely. The Debian package includes "mpv Media Player".
>
> Really?
>

It's a total rec.

-- 
"An autobiography is only to be trusted when it reveals something disgraceful.
A man who gives a good account of himself is probably lying, since any life
when viewed from the inside is simply a series of defeats."
— George Orwell



Re: Youtube - newbie guidance

2017-12-23 Thread Brian
On Sat 23 Dec 2017 at 12:55:05 +0100, deloptes wrote:

> Brian wrote:
> 
> > You remarked that youtube-viewer was not in the Debian archives; this
> > is correct. I provided a way for users to get and install it.
> 
> this is bad advise - you can not do this here on the list - IMO you should
> take it off next time

None of the advice I give here is bad :). Sub-optimal at times perhaps.
Incomplete - maybe. Contentious - adds spice to life.

Compile the program from source. Preferable? I wasn't prepared to test
this, whereas I did test (and felt I could advise) installing the
Debian package.

-- 
Brian.



Re: Migrate an old debian to a new machine

2017-12-23 Thread Pascal Hambourg

Le 23/12/2017 à 12:10, Georgi Naplatanov a écrit :


  - connect new disk to old computer and boot from your old disk
  - partition your new disk with your favorite program. I like cgdisk
from gdisk package


gdisk and cgdisk handle only GPT. For DOS/MBR, you'll need another 
program such as fdisk or (g)parted.



and in case of UEFI don't forget to use GPT partition table.


GPT is not mandatory with UEFI. MBR/DOS should work too. But of course 
GPT is better.



 - in case of UEFI you have to create EFI boot partition. I don't
remember how big it should be but I make it 1GB which is large enough.


The partition must be large enough to contain GRUB EFI core image, which 
is less than 1 MB. However I have seen one UEFI firmware misbehaviour 
with a small (~less than 10 MB) EFI partition.


- In case of legacy (BIOS) boot from a GPT disk, a "BIOS boot" partition 
(1MB unformatted) is recommended for GRUB.



EFI boot partition should be formatted with

# mkfs.vfat -F 32 /dev/xxx


My experience is that it is better to let mkfs.vfat decide what is the 
best FAT format. The same UEFI firmware as above seemed to ignore a 
small EFI partition formated as FAT32, and used it when it was formated 
as FAT12 or FAT16.



# grub-install /dev/sda


For an EFI target, grub-install does not need and ignores the device 
argument.




Re: aplay fails on amd64 laptop

2017-12-23 Thread Pierre Frenkiel

On Sat, 23 Dec 2017, deloptes wrote:


you know there are two types of help: feed the hungry or teach them make
food themselves - I prefer the 2nd one - you the 1st one - no reason to get
personal


  from wikipedia:
 A teacher is a person who helps others to acquire knowledge, competences
 or values.

  do you think that "find yourself" matches this definition?

  FYI, I tried all -f options, and no one worked.



Re: Youtube - newbie guidance

2017-12-23 Thread deloptes
Brian wrote:

> You remarked that youtube-viewer was not in the Debian archives; this
> is correct. I provided a way for users to get and install it.

this is bad advise - you can not do this here on the list - IMO you should
take it off next time

regards



Re: aplay fails on amd64 laptop

2017-12-23 Thread deloptes
Pierre Frenkiel wrote:

> It's a strange way to help people to say them "find yourself"
> Generally, when people ask for help, it's that there are, like me,
> too stupid to find themselves.
> I suggest to avoid useless posts

but I told you also about plughw - no?

a brief look into man aplay tells you the -f option could be used example -f
cd (I think it was 44100Hz)

no idea why you are so resistant to getting the knowledge yourself - the man
page is even not that long and you should start reading yourself.

you know there are two types of help: feed the hungry or teach them make
food themselves - I prefer the 2nd one - you the 1st one - no reason to get
personal

regards



Re: Youtube - newbie guidance

2017-12-23 Thread Brian
On Sat 23 Dec 2017 at 05:21:33 -0600, Richard Owlett wrote:

> On 12/23/2017 04:55 AM, Brian wrote:
> > On Sat 23 Dec 2017 at 04:10:00 -0600, Richard Owlett wrote:
> > 
> > > On 12/22/2017 09:00 PM, Jude DaShiell wrote:
> > > > cliget or youtube-viewer or youtube-dl can do that, but cliget does it
> > > > with least complexity.
> > > > 
> > > 
> > > Neither cliget nor youtube-viewer appear to be in Debian repository.
> > 
> > youtube-viewer depends on youtube-dl, so it looks like a bells and
> > whistles provider.
> > 
> > Download a Debian package from
> > 
> >  
> > https://www.ubuntuupdates.org/package/webupd8/artful/main/base/youtube-viewer
> > 
> 
> *WHY?* It does not appear to offer any appear to offer me any additional
> functionality, having installed youtube-dl.

You remarked that youtube-viewer was not in the Debian archives; this
is correct. I provided a way for users to get and install it.

This is a mailing list, not a help-line for one user. You judge it not
to offer you anything (which you could have determined before writing
the mail with your cliget and youtube-viewer remark) but others might
be of a different opinion. Please refrain from having an expectation of
responses tailored exactly to your mode of thinking and over-emphasised
queries.

-- 
Brian.



Re: Youtube - newbie guidance

2017-12-23 Thread Brian
On Sat 23 Dec 2017 at 05:39:46 -0600, Richard Owlett wrote:

> On 12/22/2017 03:10 PM, Kent West wrote:
> > On Fri, Dec 22, 2017 at 3:04 PM, Richard Owlett  wrote:
> > 
> > > I use User agent: Mozilla/5.0 (X11; Linux i686; rv:51.0) Gecko/20100101
> > > Firefox/51.0 SeaMonkey/2.48 on a Debian Stretch machine with the MATE
> > > desktop.
> > > 
> > > I've never used youtube before.
> > > I received a link to a youtube video  > > ?v=82_bPWyrPFc> which played fine.
> > > 
> > > I did not have time to watch the whole video.
> > > How can I download and save it?
> > > 
> > 
> > # apt-get install youtube-dl
> > # youtube-dl 
> > #  
> > 
> 
> That did very nicely. The Debian package includes "mpv Media Player".

Really?

-- 
Brian.



Re: Youtube - newbie guidance

2017-12-23 Thread Richard Owlett

On 12/22/2017 03:10 PM, Kent West wrote:

On Fri, Dec 22, 2017 at 3:04 PM, Richard Owlett  wrote:


I use User agent: Mozilla/5.0 (X11; Linux i686; rv:51.0) Gecko/20100101
Firefox/51.0 SeaMonkey/2.48 on a Debian Stretch machine with the MATE
desktop.

I've never used youtube before.
I received a link to a youtube video  which played fine.

I did not have time to watch the whole video.
How can I download and save it?



# apt-get install youtube-dl
# youtube-dl 
#  



That did very nicely. The Debian package includes "mpv Media Player".

Now all I have to do is get an external speaker in order to get 
comfortable volume. Would mpv be able to send the audio to a bluetooth? 
Saw a convenient size speaker sometime back at a local computer store.






Re: aplay fails on amd64 laptop

2017-12-23 Thread Pierre Frenkiel

On Sat, 23 Dec 2017, deloptes wrote:


Pierre Frenkiel wrote:


aplay -D hw:1,0

this also gives
aplay: set_params:1299: Sample format non available


you could also set the sample format ;-) - I was hoping you try to find out
the way yourself.


  1/ I don't see why I should loose time with hw:1,0, when the
 plughw syntax works perfectly

  2/ It's a strange way to help people to say them "find yourself"
 Generally, when people ask for help, it's that there are, like me,
 too stupid to find themselves.
 I suggest to avoid useless posts

best regards,
--
Pierre Frenkiel



Re: Noms partitions /dev/sdaX modifiés en /dev/sdcX

2017-12-23 Thread Daniel Caillibaud
Le 19/12/17 à 17:45, andre_deb...@numericable.fr a écrit :
AF> Bonjour,
AF> 
AF> Je ne  sais par quelle opération,
AF> les noms des partitions de mon serveur sont
AF> passés de /dev/sdaX à /dev/sdcX,
AF> soit 8 partitions /dev/sda1 à 8 => /dev/sdc1 à 8.

Juste une remarque pour compléter toutes les autres déjà faites (mettre des
uuid ou des labels dans le fstab), lvm permet aussi de s'affranchir de ces
pbs (outre le fait de pouvoir redimensionner ses partitions ou les changer
de disque sans rien avoir à modifier dans /etc)

Avec lvm les partitions restent toujours /dev/nomVG/nomLV

Attention, avec lvm si on redimensionne une partition il me semble que le
uuid change (mais pas si sûr, juste un doute)

-- 
Daniel

Toute technique est mise au point, utilisée, importante, obsolète,
standardisée puis comprise.



Re: Youtube - newbie guidance

2017-12-23 Thread Richard Owlett

On 12/23/2017 04:55 AM, Brian wrote:

On Sat 23 Dec 2017 at 04:10:00 -0600, Richard Owlett wrote:


On 12/22/2017 09:00 PM, Jude DaShiell wrote:

cliget or youtube-viewer or youtube-dl can do that, but cliget does it
with least complexity.



Neither cliget nor youtube-viewer appear to be in Debian repository.


youtube-viewer depends on youtube-dl, so it looks like a bells and
whistles provider.

Download a Debian package from

 https://www.ubuntuupdates.org/package/webupd8/artful/main/base/youtube-viewer



*WHY?* It does not appear to offer any appear to offer me any additional 
functionality, having installed youtube-dl.






Re: Migrate an old debian to a new machine

2017-12-23 Thread Georgi Naplatanov
On 12/23/2017 11:31 AM, Markus Grunwald wrote:
> Hello,
> 
> For 10 Years, I've been working with my trusted old T61 (still with
> "IBM" logo...). Now I'm waiting for a new T570.
> 
> The last migrations of my Debian installations were just dd'ing a full
> disk image from machine OLD to NEW and then resize the partitions with
> gparted (I hate new installations... something's lost every time.)
> 
> These migrations were always done on BIOS machines. I have almost no
> experience with UEFI. Now my question is: will this work with the new
> machine as well? Or do I have to do something else because of UEFI (or
> something else that's different on a modern T570)?
> 

Hi Markus,

I'll tell you what I do when I have to change my HDDs. I'm not sure that
what I do will be applicable to you because new HDD(s) and old have to
be connected to same computer. These are steps I usually do.

 - connect new disk to old computer and boot from your old disk
 - partition your new disk with your favorite program. I like cgdisk
from gdisk package and in case of UEFI don't forget to use GPT partition
table.
 - in case of UEFI you have to create EFI boot partition. I don't
remember how big it should be but I make it 1GB which is large enough.
- create other partition on new disk - /, /home, swap etc.
- format newly created partitions. Filesystem types on new HDD don't
have to match to old. For example you can migrate old ext3 to new ext4,
XFS or whatever you want. EFI boot partition should be formatted with

# mkfs.vfat -F 32 /dev/xxx

 - mount root partition (in /mnt folder for example) and copy files with
# cp -dpRx / /mnt
if you have other filesystems mount and copy files from them as well

 - connect your new disk to your new computer and disconnect old disks
 - boot with netinstall Debian ISO in rescue mode. We are going to
(re-)install and configure grub
 - mount your root partition and chroot into it
 - change /etc/fstab accordingly your new device names
 - mount your EFI boot partition in /boot/efi
 - install grub-efi-amd64 package
 - run following commands
# modprobe efivars
# grub-mkdevicemap
# update-initramfs -u
# grub-install /dev/sda
# update-grub
 - unmount /boot/efi
 - exit from shell go to installer's menu
 - reboot the system and enjoy your new hardware.

HTH

Kind regards
Georgi



Problems making a bootable DVD

2017-12-23 Thread Thomas Schmitt
Hi,

Zack Shelby wrote:
> I first tried to use 7Zip to burn the DVD, but the result was not bootable,

7Zip burns media images to DVD ?
To my knowledge it packs up and unpacks archives or images.


>   https://www.debian.org/CD/faq/#record-windows
> Unfortunately, for the freeware programs, these links are either broken, or
> the attempted download caused my anti-virus software to go into high-alert

These proposals are probably based on hearsay from users.
The people in charge of correcting it can be reached at
  debian...@lists.debian.org

It would be helpful if you could report the particular problems you see
with each list item. (I see that the URL for "ISO Recorder" should be
changed to http://isorecorder.alexfeinman.com )


> I am currently experimenting with another program

You need to convice it to burn the ISO flatly onto the medium. No further
filesystem must be wrapped around it and no boot equipment must be added.


Have a nice day :)

Thomas



Re: Youtube - newbie guidance

2017-12-23 Thread Brian
On Sat 23 Dec 2017 at 04:10:00 -0600, Richard Owlett wrote:

> On 12/22/2017 09:00 PM, Jude DaShiell wrote:
> > cliget or youtube-viewer or youtube-dl can do that, but cliget does it
> > with least complexity.
> > 
> 
> Neither cliget nor youtube-viewer appear to be in Debian repository.

youtube-viewer depends on youtube-dl, so it looks like a bells and
whistles provider.

Download a Debian package from

 https://www.ubuntuupdates.org/package/webupd8/artful/main/base/youtube-viewer

All indications are that it will install successfully (on unstable
at least) with 'dpkg -i' and 'apt -f install'.

-- 
Brian.



Problems making a bootable DVD

2017-12-23 Thread Zack Shelby
Thought you might want to know...

I recently downloaded the debian-live-9.3.0-i386-gnome.iso image hoping to 
create a bootable DVD for "test-driving" the new Debian OS.
I first tried to use 7Zip to burn the DVD, but the result was not bootable, 
which is a shame as this would have been the perfect workable solution.  So 
then I tried some of the links suggested at

https://www.debian.org/CD/faq/#record-windows

Unfortunately, for the freeware programs, these links are either broken, or the 
attempted download caused my anti-virus software to go into high-alert mode and 
immediately pounce on and delete the files as I tried to download them.  (This 
applies to the links for 'ImgBurn', 'CDBurnerXP Pro' and 'ISO Recorder').

I am currently experimenting with another program that I remember using with 
some success on a previous occasion (from www.isobuster.com) and hoping I can 
eventually get a bootable DVD so I can finally check out the new Debian.

I thought I would let you know the above in case you wanted to take action to 
save other prospective new Debian users from a similar fate - wasting their 
time turning to the above software to try and get a bootable DVD and maybe 
ending up with a virus on their system for their troubles as well.

Best regards (and seasons greetings)!



Re: Youtube - newbie guidance

2017-12-23 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, Dec 22, 2017 at 07:40:56PM -0500, Carl Fink wrote:

[...]

> This is incorrect. Google/Alphabet is not stupid [...]

That's *exactly* the reason...

> [...] If you were logged into your YouTube (Google) account [...]

... why I'd *never* *ever* be "logged into" any of the YT or Google
accounts. It's enough to make trackability easier for them whithin
a session, but across sessions? Disgusting.

> on another device and navigate to that video [...]

And then, across devices? Pfft. No way. Not for me.

Cheers
- -- t
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlo+LcQACgkQBcgs9XrR2kYTnACfcJhBY+AQzEXKovw568JEi53N
kjsAnjyObTtuU9UyFD03iNjyu3HsA40E
=xNtP
-END PGP SIGNATURE-



Re: Youtube - newbie guidance

2017-12-23 Thread Richard Owlett

On 12/22/2017 09:00 PM, Jude DaShiell wrote:

cliget or youtube-viewer or youtube-dl can do that, but cliget does it
with least complexity.




Neither cliget nor youtube-viewer appear to be in Debian repository.




Re: Youtube - newbie guidance

2017-12-23 Thread Richard Owlett

On 12/22/2017 04:06 PM, Ben Finney wrote:

Richard Owlett  writes:


I've never used youtube before.


One thing to note explicitly: YouTube is deliberately designed to
thwart downloading videos.

YouTube's owner (Google, Alphabet, whatever they call themselves next
year) have chosen a business model [0] that benefits when more people
keep watching videos *via the site* [1]. So downloading videos from
the site works directly against the business model they have chosen.


I personally consider Google goal is to be as obnoxious as possible.
I avoid them whenever physically possible.





Re: aplay fails on amd64 laptop

2017-12-23 Thread deloptes
Pierre Frenkiel wrote:

>> aplay -D hw:1,0
> this also gives
> aplay: set_params:1299: Sample format non available

you could also set the sample format ;-) - I was hoping you try to find out
the way yourself.

regards



Re: aplay fails on amd64 laptop

2017-12-23 Thread Pierre Frenkiel

On Sat, 23 Dec 2017, deloptes wrote:


man aplay

  the useful information is given by "aplay -L", which lists
  19 devices, among which 2 are working:
sysdefault:CARD=Generic
plughw:CARD=Generic,DEV=0


aplay -D hw:1,0

  this also gives
 aplay: set_params:1299: Sample format non available


or -Dplughw:1,0

  this works, and also  -Dplughw:Generic

  Actually, I found the plughw syntax by accident, when trying once
  aplay file.wav, which gave:

Playing WAVE 'file.wav' : Signed 16 bit Little Endian, Rate 11025 Hz, Stereo
Warning: rate is not accurate (requested = 11025Hz, got = 44100Hz)
 please, try the plug plugin (-Dplug:default)

I appreciate this  comment in the alsa doc:
It would be even nicer if the --help and man output of aplay would
define what NAME of "--device=NAME" should be set to. Then people
would not have to search the Internet to find out.

best regards,
--
Pierre Frenkiel



Migrate an old debian to a new machine

2017-12-23 Thread Markus Grunwald
Hello,

For 10 Years, I've been working with my trusted old T61 (still with
"IBM" logo...). Now I'm waiting for a new T570.

The last migrations of my Debian installations were just dd'ing a full
disk image from machine OLD to NEW and then resize the partitions with
gparted (I hate new installations... something's lost every time.)

These migrations were always done on BIOS machines. I have almost no
experience with UEFI. Now my question is: will this work with the new
machine as well? Or do I have to do something else because of UEFI (or
something else that's different on a modern T570)?

Thanks for your input,
-- 
Markus Grunwald
http://www.the-grue.de/~markus/markus_grunwald.gpg



signature.asc
Description: OpenPGP digital signature


Re: regex en bash

2017-12-23 Thread Andre Majorel
On 2017-12-21 18:13 +0100, Daniel Caillibaud wrote:

> Je sais que bash a un opérateur =~ pour les regex, mais j'ai
> du mal à faire ce que je veux avec et je continue avec sed /
> awk / grep,
> 
> Mais faire du 
>   [[ -z "$(echo $truc | sed -Ee 's/ma regex//')" ]]
> est assez idiot quand on pourrait faire du 
>   [[ "$truc" =~ 'ma regex' ]]

Même si ça rentre probablement dans votre catégorie "assez
idiot", je tiens à signaler l'existence de la commande expr(1)
qui a l'avantage de fonctionner sur tout Unix. Contrairement à
quelque solution reposant sur Bash, Zsh ou l'option -E de sed
qui non seulement n'est pas standard mais n'est même pas
documentée. Ce qui est, comme chacun sait, toujours un bon
signe. :->

Si la regexp commence par "^"

  expr "$truc" : 'ma_regexp' >/dev/null

sinon

  expr "$truc" : '.*ma_regexp' >/dev/null

-- 
André Majorel 
bugs.debian.org, an essential online resource for spammers.