Re: Taming the "lsblk" command

2019-01-09 Thread Richard Hector
On 9/01/19 6:04 PM, Jude DaShiell wrote:
> lsblk -l -o name,label | sort | script

lsblk -ln -o name,label |sort | 

/etc/network/interfaces and IPv6

2019-01-09 Thread Rainer Dorsch
Hello,

I am just wondering why ipv6 gets configured for enp1s0, even though I do not 
request that in /etc/network/interfaces (?).

I suspect NetworkManager takes care of that, but I always thought, network 
manager does not touch interfaces mentioned in /etc/network/interface?

System is stretch.

[   17.057438] r8169 :01:00.0 enp1s0: link down 
[   17.057440] r8169 :01:00.0 enp1s0: link down 
[   17.057546] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready 
[   28.782440] r8169 :01:00.0 enp1s0: link up 
[   28.782473] IPv6: ADDRCONF(NETDEV_CHANGE): enp1s0: link becomes ready


root@gigabyte:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

auto enp1s0
allow-hotplug enp1s0
iface enp1s0 inet dhcp
#iface eno1.7 inet6 auto
root@gigabyte:~# ip addr show
1: lo:  mtu 65536 qdisc noqueue state UNKNOWN group 
default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
   valid_lft forever preferred_lft forever
inet6 ::1/128 scope host 
   valid_lft forever preferred_lft forever
2: enp1s0:  mtu 1500 qdisc pfifo_fast state UP 
group default qlen 1000
link/ether 74:d4:35:7b:0d:d8 brd ff:ff:ff:ff:ff:ff
inet 192.168.7.201/24 brd 192.168.7.255 scope global enp1s0
   valid_lft forever preferred_lft forever
inet6 2a02:8070:898f:e4fc:76d4:35ff:fe7b:dd8/64 scope global mngtmpaddr 
dynamic 
   valid_lft 14307sec preferred_lft 14307sec
inet6 fe80::76d4:35ff:fe7b:dd8/64 scope link 
   valid_lft forever preferred_lft forever
root@gigabyte:~# 

Many thanks
Rainer

-- 
Rainer Dorsch
http://bokomoko.de/




Debian booting into initramfs shell

2019-01-09 Thread Thomas Schweikle
Hi!

Since latest upgrades debian boots into initramfs shell:

Gave up Waiting for suspend/resum device
Gave up waiting for root file system device. Gommon problems:
...

ALERT! UUID=c92b... does not exist.
Dropping to a shell!

Looking at devices, none exist: /dev/sda* are all missing.
Looking at loaded drivers/modules: all required are loaded.

Booting into rescue mode with the very same kernel/initrd works:
devices are there, modules are loaded, file systems are accessible.

Any idea how to solve this problem, when none of the kernels available
boots into multiuser? And only the rescue system is working?


-- 
Thomas



Re: /etc/network/interfaces and IPv6

2019-01-09 Thread Reco
Hi.

On Wed, Jan 09, 2019 at 10:42:27AM +0100, Rainer Dorsch wrote:
> Hello,
> 
> I am just wondering why ipv6 gets configured for enp1s0, even though I do not 
> request that in /etc/network/interfaces (?).
 
> 2: enp1s0:  mtu 1500 qdisc pfifo_fast state 
> UP 
> group default qlen 1000
> link/ether 74:d4:35:7b:0d:d8 brd ff:ff:ff:ff:ff:ff
> inet6 2a02:8070:898f:e4fc:76d4:35ff:fe7b:dd8/64 scope global mngtmpaddr 
> dynamic 
>valid_lft 14307sec preferred_lft 14307sec

You've got your IPv6 address via Router Advertisement (mngtmpaddr
dynamic, limited address lifetime).
And you don't need anything but a Linux kernel to get it.

If you don't need IPv6 on that interface for some reason - add the
following to your /etc/network/interfaces:

iface enp1s0 inet6 auto
accept_ra 0

Reco



Re: Taming the "lsblk" command

2019-01-09 Thread Jude DaShiell
On Wed, 9 Jan 2019, Felix Miata wrote:

> Date: Wed, 9 Jan 2019 01:47:24
> From: Felix Miata 
> To: debian-user@lists.debian.org
> Subject: Re: Taming the "lsblk" command
> Resent-Date: Wed,  9 Jan 2019 06:47:41 + (UTC)
> Resent-From: debian-user@lists.debian.org
>
> Jude DaShiell composed on 2019-01-09 00:04 (UTC-0500):
>
> > lsblk -l -o name,label | sort | script
>
> I tried exactly that on Buster multiple times, and always get the following:
>
> root@gb250:~# NAME  LABEL
> bash: NAME: command not found
> root@gb250:~# sda
> bash: sda: command not found
> root@gb250:~# sda10 k25p10deb10
> bash: sda10: command not found
> root@gb250:~# sda11 k25p11deb10fat
> bash: sda11: command not found
> root@gb250:~# sda12 k25p12Ubionic
> bash: sda12: command not found
> root@gb250:~# sda13
> bash: sda13: command not found
> root@gb250:~# sda14
> bash: sda14: command not found
> root@gb250:~# sda15
> bash: sda15: command not found
> root@gb250:~# sda16
> bash: sda16: command not found
> root@gb250:~# sda1  K25P01ESP
> bash: sda1: command not found
> root@gb250:~# sda2  k25p02swap
> bash: sda2: command not found
> root@gb250:~# sda3  k25p03res
> bash: sda3: command not found
> root@gb250:~# sda4  k25p04usrlcl
> bash: sda4: command not found
> root@gb250:~# sda5  k25p05home
> bash: sda5: command not found
> root@gb250:~# sda6  k25p06pub
> bash: sda6: command not found
> root@gb250:~# sda7  k25p07stw
> bash: sda7: command not found
> root@gb250:~# sda8  k25p08s150
> bash: sda8: command not found
> root@gb250:~# sda9  k25p09s151
> bash: sda9: command not found
> root@gb250:~# sr0
> bash: sr0: command not found
> root@gb250:~# exit
>
That can happen if bash doesn't find sort in its default binary
directory.  Could be pointing bash directly at sort will clear the
command not found error out of the output.

-- 



Re: Taming the "lsblk" command

2019-01-09 Thread Felix Miata
Jude DaShiell composed on 2019-01-09 06:48 (UTC-0500):

> Felix Miata wrote:

>> Jude DaShiell composed on 2019-01-09 00:04 (UTC-0500):

>>> lsblk -l -o name,label | sort | script

>> I tried exactly that on Buster multiple times, and always get the following:

>> root@gb250:~# NAME  LABEL
>> bash: NAME: command not found
>> root@gb250:~# sda
>> bash: sda: command not found
>> root@gb250:~# sda10 k25p10deb10
>> bash: sda10: command not found
>> root@gb250:~# sda11 k25p11deb10fat
>> bash: sda11: command not found
...
>> root@gb250:~# sda8  k25p08s150
>> bash: sda8: command not found
>> root@gb250:~# sda9  k25p09s151
>> bash: sda9: command not found
>> root@gb250:~# sr0
>> bash: sr0: command not found
>> root@gb250:~# exit

> That can happen if bash doesn't find sort in its default binary
> directory.  Could be pointing bash directly at sort will clear the
> command not found error out of the output.

# cat /etc/debian_version
buster/sid
# which sort
/usr/bin/sort
# which script
/usr/bin/script

Same result from:

lsblk -l -o name,label | /usr/bin/sort | /usr/bin/script
-- 
Evolution as taught in public schools is religion, not science.

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

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



Re: Debian booting into initramfs shell

2019-01-09 Thread songbird
Thomas Schweikle wrote:
> Hi!
>
> Since latest upgrades debian boots into initramfs shell:
>
> Gave up Waiting for suspend/resum device
> Gave up waiting for root file system device. Gommon problems:
> ...
>
> ALERT! UUID=c92b... does not exist.
> Dropping to a shell!
>
> Looking at devices, none exist: /dev/sda* are all missing.
> Looking at loaded drivers/modules: all required are loaded.
>
> Booting into rescue mode with the very same kernel/initrd works:
> devices are there, modules are loaded, file systems are accessible.
>
> Any idea how to solve this problem, when none of the kernels available
> boots into multiuser? And only the rescue system is working?

  Debian stable, testing or unstable or ?
and what hardware setup?


  songbird



Re: Taming the "lsblk" command

2019-01-09 Thread rhkramer
On Wednesday, January 09, 2019 03:01:42 AM Richard Hector wrote:
> On 9/01/19 6:04 PM, Jude DaShiell wrote:
> > lsblk -l -o name,label | sort | script
> 
> lsblk -ln -o name,label |sort | 

Re: Taming the "lsblk" command

2019-01-09 Thread Curt
On 2019-01-09, rhkra...@gmail.com  wrote:
> On Wednesday, January 09, 2019 03:01:42 AM Richard Hector wrote:
>> On 9/01/19 6:04 PM, Jude DaShiell wrote:
>> > lsblk -l -o name,label | sort | script
>> 
>> lsblk -ln -o name,label |sort | 

Looking for advice on tools (or libraries) for unsupervised, bulk symmetric encryption/decryption of files

2019-01-09 Thread Kynn Jones
I am looking for software to symmetric-encrypt large numbers of files on
disk (terabytes' worth of data), and would appreciate some advice.

My basic requirements:

   - It should be open source and no-cost (though, since I'm asking this
   question here, this goes without saying);
   - I should be able to program scripts (shell, Python, Perl, or Ruby) to
   run this software without human intervention; this rules out tools that are
   designed for interactive use.
   - It should be stable; I should be able to decrypt encrypted files that
   were encrypted several years earlier; (how much earlier?  hard to say;
   let's say 10 years, as a rough ballpark)

In addition, the following would be nice:

   - good documentation;
   - good performance;
   - bindings for a high-level language (preferably Python).

The only encryption tool I have used for encrypting files on my hard drive
is gpg2, which I have used for small, interactive encryption tasks
(half-dozen files, at most).

Therefore, my initial attempt was to use gpg2 for this new bulk-encryption
task, but I found myself constantly fighting with it, and finally had to
recognize that I was trying to use gpg2 for something it is not primarily
designed for.  (I am also a bit concerned with gpg2's future stability.
AFAICT, It's design has varied significantly over the years, and as a
result there's a lot of confusion on its use.  That has been my experience,
in any case.)

So I am back to square one.

I stress that I am interested only in symmetric encryption.  The issues
that asymmetric encryption addresses are not at all part of the problem I
am dealing with, and therefore I don't want to have to deal with the
complexities of asymmetric encryption.

What Debian packages would you recommend?

Many thanks in advance!

kj


Using mercurial with kdevelop

2019-01-09 Thread Sébastien Kalt
Hi,

I was using emacs and mercurial from the command line to develop small
scripts in python.

I'm trying KDevelop, and I'd like to use mercurial directly from KDevelop.

It seems to be possible, as said here : https://www.kdevelop.org/features

There's a small * explaining "*Items marked with * might require an extra
package to be installed on a Linux system. On Windows and in the Linux
AppImage we provide, they are included and enabled by default."*

Ok, I need an extra package, but where do I get it and how do I install it ?

I found nothing in Kdevelop doc, nothing on kde.org.

Does anyone on this list have KDevelop and mercurial working together ?

Sébastien


Mediatek 802.11ac USB devices in kernel 4.19

2019-01-09 Thread Miguel A. Vallejo
Hello.

Some time ago I read the kernel 4.19 include support for some Mediatek
802.11ac USB devices. When I saw the kernel 4.19 arrived into
unstable/testing I ordered one of these devices.

The device arrived but it does not work at all. A quick look at the kernel
configuration shows those modules are not compiled in the Debian kernel:

grep -i mt76x /boot/config-4.19.0-1-amd64

# CONFIG_MT76x0U is not set
# CONFIG_MT76x2E is not set
# CONFIG_MT76x2U is not set

I noticed there is an open bug about this:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=918331

Meanwhile, is there a quick way to compile only those modules and install
them in a working kernel?

Thank you.


Re: Taming the "lsblk" command

2019-01-09 Thread David Wright
On Wed 09 Jan 2019 at 13:54:45 (+), Curt wrote:
> On 2019-01-09, rhkra...@gmail.com  wrote:
> > On Wednesday, January 09, 2019 03:01:42 AM Richard Hector wrote:
> >> On 9/01/19 6:04 PM, Jude DaShiell wrote:
> >> > lsblk -l -o name,label | sort | script
> >> 
> >> lsblk -ln -o name,label |sort | 

Re: Debian booting into initramfs shell

2019-01-09 Thread Stefan Krusche
Am Mittwoch, 9. Januar 2019 schrieb Thomas Schweikle:
> Hi!
>
> Since latest upgrades debian boots into initramfs shell:
>
> Gave up Waiting for suspend/resum device
> Gave up waiting for root file system device. Gommon problems:
> ...
>
> ALERT! UUID=c92b... does not exist.
> Dropping to a shell!

Have you checked your grub configuration for "UUID=c92b..." ?

Kind regards,
Stefan



Mediatek 802.11ac USB devices in kernel 4.19

2019-01-09 Thread Miguel A. Vallejo
Hello.

Some time ago I read the kernel 4.19 include support for some Mediatek
802.11ac USB devices. When I saw the kernel 4.19 arrived into
unstable/testing I ordered one of these devices.

The device arrived but it does not work at all. A quick look at the
kernel configuration shows those modules are not compiled in the
Debian kernel:

grep -i mt76x /boot/config-4.19.0-1-amd64

# CONFIG_MT76x0U is not set
# CONFIG_MT76x2E is not set
# CONFIG_MT76x2U is not set

I noticed there is an open bug about this:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=918331

Meanwhile, is there a quick way to compile only those modules and
install them in a working kernel?

Thank you.



Re: Taming the "lsblk" command

2019-01-09 Thread David Wright
On Wed 09 Jan 2019 at 07:51:31 (-0500), Felix Miata wrote:
> Jude DaShiell composed on 2019-01-09 06:48 (UTC-0500):
> 
> > Felix Miata wrote:
> 
> >> Jude DaShiell composed on 2019-01-09 00:04 (UTC-0500):
> 
> >>> lsblk -l -o name,label | sort | script
> 
> >> I tried exactly that on Buster multiple times, and always get the 
> >> following:
> 
> >> root@gb250:~# NAME  LABEL
> >> bash: NAME: command not found
> >> root@gb250:~# sda
> >> bash: sda: command not found
> >> root@gb250:~# sda10 k25p10deb10
> >> bash: sda10: command not found
> >> root@gb250:~# sda11 k25p11deb10fat
> >> bash: sda11: command not found
> ...
> >> root@gb250:~# sda8  k25p08s150
> >> bash: sda8: command not found
> >> root@gb250:~# sda9  k25p09s151
> >> bash: sda9: command not found
> >> root@gb250:~# sr0
> >> bash: sr0: command not found
> >> root@gb250:~# exit
> 
> > That can happen if bash doesn't find sort in its default binary
> > directory.  Could be pointing bash directly at sort will clear the
> > command not found error out of the output.
> 
> # cat /etc/debian_version
> buster/sid
> # which sort
> /usr/bin/sort
> # which script
> /usr/bin/script
> 
> Same result from:
> 
>   lsblk -l -o name,label | /usr/bin/sort | /usr/bin/script

You've attempted to run a shell using the output of lsblk as a series
of commands for it to execute.

Cheers,
David.



re: taming lsblk command

2019-01-09 Thread Jude DaShiell
what works over here:
lsblk -n < /usr/bin/sort


-- 



Re: taming lsblk command

2019-01-09 Thread Jochen Spieker
Jude DaShiell:
> what works over here:
> lsblk -n < /usr/bin/sort

This command feeds the content of the file /usr/bin/sort into stdin of
lsblk. That does not make sense and I guess lsblk is just ignoring this
input.

J.
-- 
I enjoy shopping, eating, sex and doing jigsaw puzzles of idealised
landscapes.
[Agree]   [Disagree]
 


signature.asc
Description: PGP signature


Re: taming lsblk command

2019-01-09 Thread Jude DaShiell
It would if you had entered it backward.  Now I'm going to have to do a
typescript for you.
On Wed, 9 Jan 2019, Jochen Spieker wrote:

> Date: Wed, 9 Jan 2019 10:17:50
> From: Jochen Spieker 
> To: debian-user@lists.debian.org
> Subject: Re: taming lsblk command
>
> Jude DaShiell:
> > what works over here:
> > lsblk -n < /usr/bin/sort
>
> This command feeds the content of the file /usr/bin/sort into stdin of
> lsblk. That does not make sense and I guess lsblk is just ignoring this
> input.
>
> J.
>

-- 



Re: taming lsblk command

2019-01-09 Thread Jude DaShiell
On Wed, 9 Jan 2019, Jochen Spieker wrote:

> Date: Wed, 9 Jan 2019 10:17:50
> From: Jochen Spieker 
> To: debian-user@lists.debian.org
> Subject: Re: taming lsblk command
>
> Jude DaShiell:
> > what works over here:
> > lsblk -n < /usr/bin/sort
>
> This command feeds the content of the file /usr/bin/sort into stdin of
> lsblk. That does not make sense and I guess lsblk is just ignoring this
> input.
>
> J.
>
Script started on Wed 09 Jan 2019 10:30:00 AM EST
jude[~]$ lsblk -n < /usr/bin/sort
sda  8:00 111.8G  0 disk
??sda1   8:10 111.8G  0 part /
??sda2   8:20  32.5M  0 part [SWAP]
sdb  8:16   0  55.9G  0 disk
??sdb1   8:17   055G  0 part
sr0 11:01  1024M  0 rom
jude[~]$ exit
exit

Script done on Wed 09 Jan 2019 10:30:50 AM EST
-- 



Re: Taming the "lsblk" command

2019-01-09 Thread Richard Owlett

On 01/09/2019 08:14 AM, David Wright wrote:

On Wed 09 Jan 2019 at 13:54:45 (+), Curt wrote:

On 2019-01-09, rhkra...@gmail.com  wrote:

On Wednesday, January 09, 2019 03:01:42 AM Richard Hector wrote:

On 9/01/19 6:04 PM, Jude DaShiell wrote:

lsblk -l -o name,label | sort | script


lsblk -ln -o name,label |sort | 

Re: taming lsblk command

2019-01-09 Thread Greg Wooledge
On Wed, Jan 09, 2019 at 10:31:46AM -0500, Jude DaShiell wrote:
> jude[~]$ lsblk -n < /usr/bin/sort
> sda  8:00 111.8G  0 disk
> ??sda1   8:10 111.8G  0 part /
> ??sda2   8:20  32.5M  0 part [SWAP]
> sdb  8:16   0  55.9G  0 disk
> ??sdb1   8:17   055G  0 part
> sr0 11:01  1024M  0 rom

root@wooledg:/home/wooledg# lsblk -n 

Re: taming lsblk command

2019-01-09 Thread tomas
On Wed, Jan 09, 2019 at 10:31:46AM -0500, Jude DaShiell wrote:
> On Wed, 9 Jan 2019, Jochen Spieker wrote:
> 
> > Date: Wed, 9 Jan 2019 10:17:50
> > From: Jochen Spieker 
> > To: debian-user@lists.debian.org
> > Subject: Re: taming lsblk command
> >
> > Jude DaShiell:
> > > what works over here:
> > > lsblk -n < /usr/bin/sort
> >
> > This command feeds the content of the file /usr/bin/sort into stdin of
> > lsblk. That does not make sense and I guess lsblk is just ignoring this
> > input.
> >
> > J.
> >
> Script started on Wed 09 Jan 2019 10:30:00 AM EST
> jude[~]$ lsblk -n < /usr/bin/sort
> sda  8:00 111.8G  0 disk
> ??sda1   8:10 111.8G  0 part /
> ??sda2   8:20  32.5M  0 part [SWAP]
> sdb  8:16   0  55.9G  0 disk
> ??sdb1   8:17   055G  0 part
> sr0 11:01  1024M  0 rom
> jude[~]$ exit
> exit
> 
> Script done on Wed 09 Jan 2019 10:30:50 AM EST

Still, I agree with Jochen here.

Lsblk just ignores its standard input (lucky you! -- who knows what
lurking bugs this unexpected input might tickle!). Your command
would do just the same without the < /usr/bin/sort.

With

  lsblk -n < /usr/bin/sort

you are feeding the contents of the /usr/bin/sort binary program to
lsblk's standard input.

Rather do:

  lsblk  | /usr/bin/sort 

or, typically:

  lsblk  | sort 

since /usr/bin *is* in your PATH (is it not? Complain to your sysadmin)
or (attention, bashism ahead!):

  sort <(lsblk)

(whitespaces matter here!), which will only work if your shell is bash,
but is the next resemblance to your command line above I could come
up with.

Cheers
-- tomás


signature.asc
Description: Digital signature


Re: Using mercurial with kdevelop

2019-01-09 Thread Michael Wagner
On Jan 09, 2019 at 15:06:57, Sébastien Kalt wrote:
 
> I'm trying KDevelop, and I'd like to use mercurial directly from KDevelop.
> 
> It seems to be possible, as said here : https://www.kdevelop.org/features
> 
> There's a small * explaining "Items marked with * might require an extra
> package to be installed on a Linux system. On Windows and in the Linux 
> AppImage
> we provide, they are included and enabled by default."
> 
> Ok, I need an extra package, but where do I get it and how do I install it ?

Hello Sébastien,

I don't use kdevelop neither mercurial, but google gave me this

https://github.com/KDE/kdev-mercurial

Hth Michael

-- 
Russian Express Card motto: Don't leave home!


signature.asc
Description: PGP signature


Re: Taming the "lsblk" command

2019-01-09 Thread mick crane

On 2019-01-09 14:14, David Wright wrote:

On Wed 09 Jan 2019 at 13:54:45 (+), Curt wrote:

On 2019-01-09, rhkra...@gmail.com  wrote:
> On Wednesday, January 09, 2019 03:01:42 AM Richard Hector wrote:
>> On 9/01/19 6:04 PM, Jude DaShiell wrote:
>> > lsblk -l -o name,label | sort | script
>>
>> lsblk -ln -o name,label |sort | 

Re: Debian booting into initramfs shell

2019-01-09 Thread Thomas Schweikle
On 09.01.2019 15:20, Stefan Krusche wrote:
> Am Mittwoch, 9. Januar 2019 schrieb Thomas Schweikle:
>> Hi!
>>
>> Since latest upgrades debian boots into initramfs shell:
>>
>> Gave up Waiting for suspend/resum device
>> Gave up waiting for root file system device. Gommon problems:
>> ...
>>
>> ALERT! UUID=c92b... does not exist.
>> Dropping to a shell!
> 
> Have you checked your grub configuration for "UUID=c92b..." ?

Did you read my post? /dev/sd* are missing, but modules are loaded!

Looks like /dev/sd* entries are not created.


-- 
Thomas



Re: Debian booting into initramfs shell

2019-01-09 Thread Thomas Schweikle
On 09.01.2019 14:00, songbird wrote:
> Thomas Schweikle wrote:
>> Hi!
>>
>> Since latest upgrades debian boots into initramfs shell:
>>
>> Gave up Waiting for suspend/resum device
>> Gave up waiting for root file system device. Gommon problems:
>> ...
>>
>> ALERT! UUID=c92b... does not exist.
>> Dropping to a shell!
>>
>> Looking at devices, none exist: /dev/sda* are all missing.
>> Looking at loaded drivers/modules: all required are loaded.
>>
>> Booting into rescue mode with the very same kernel/initrd works:
>> devices are there, modules are loaded, file systems are accessible.
>>
>> Any idea how to solve this problem, when none of the kernels available
>> boots into multiuser? And only the rescue system is working?
> 
>   Debian stable, testing or unstable or ?
> and what hardware setup?

testing, then checked unstable -- same.
stable does work as expected.


-- 
Thomas



Re: Taming the "lsblk" command

2019-01-09 Thread Curt
On 2019-01-09, Richard Owlett  wrote:
> On 01/09/2019 08:14 AM, David Wright wrote:
>> On Wed 09 Jan 2019 at 13:54:45 (+), Curt wrote:
>>> On 2019-01-09, rhkra...@gmail.com  wrote:
 On Wednesday, January 09, 2019 03:01:42 AM Richard Hector wrote:
> On 9/01/19 6:04 PM, Jude DaShiell wrote:
>> lsblk -l -o name,label | sort | script
>
> lsblk -ln -o name,label |sort | 

Re: Mediatek 802.11ac USB devices in kernel 4.19

2019-01-09 Thread deloptes
Miguel A. Vallejo wrote:

> Some time ago I read the kernel 4.19 include support for some Mediatek
> 802.11ac USB devices. When I saw the kernel 4.19 arrived into
> unstable/testing I ordered one of these devices.
> 
> The device arrived but it does not work at all. A quick look at the
> kernel configuration shows those modules are not compiled in the
> Debian kernel:
> 
> grep -i mt76x /boot/config-4.19.0-1-amd64
> 
> # CONFIG_MT76x0U is not set
> # CONFIG_MT76x2E is not set
> # CONFIG_MT76x2U is not set
> 
> I noticed there is an open bug about this:
> 
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=918331
> 
> Meanwhile, is there a quick way to compile only those modules and
> install them in a working kernel?

I don't know for sure - it depends, but I do make deb-pkg after
configuration and install the packages. You have the source download and
compile - depends on pc speed may take some time.


regards



Re: Debian booting into initramfs shell

2019-01-09 Thread Michael Wagner
On Jan 09, 2019 at 16:56:05, Thomas Schweikle wrote:
> On 09.01.2019 14:00, songbird wrote:
> > Thomas Schweikle wrote:
> >>
> >> Since latest upgrades debian boots into initramfs shell:
> >>
> >> Gave up Waiting for suspend/resum device
> >> Gave up waiting for root file system device. Gommon problems:
> >> ...
> >>
> >> ALERT! UUID=c92b... does not exist.
> >> Dropping to a shell!
> >>
> >> Looking at devices, none exist: /dev/sda* are all missing.
> >> Looking at loaded drivers/modules: all required are loaded.
> >>
> >> Booting into rescue mode with the very same kernel/initrd works:
> >> devices are there, modules are loaded, file systems are accessible.
> >>
> >> Any idea how to solve this problem, when none of the kernels available
> >> boots into multiuser? And only the rescue system is working?
> > 
> >   Debian stable, testing or unstable or ?
> > and what hardware setup?
> 
> testing, then checked unstable -- same.
> stable does work as expected.

Look here:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=908796

Hth Michael

-- 
Procrastination: The art of keeping up with yesterday.


signature.asc
Description: PGP signature


Re: Debian booting into initramfs shell

2019-01-09 Thread deloptes
Thomas Schweikle wrote:

> Did you read my post? /dev/sd* are missing, but modules are loaded!
> 
you mean modules for the disks?

> Looks like /dev/sd* entries are not created.

is udev OK?






Re: Looking for advice on tools (or libraries) for unsupervised, bulk symmetric encryption/decryption of files

2019-01-09 Thread David Christensen

On 1/9/19 6:05 AM, Kynn Jones wrote:

I am looking for software to symmetric-encrypt large numbers of files on
disk (terabytes' worth of data), and would appreciate some advice.

My basic requirements:

- It should be open source and no-cost (though, since I'm asking this
question here, this goes without saying);
- I should be able to program scripts (shell, Python, Perl, or Ruby) to
run this software without human intervention; this rules out tools that are
designed for interactive use.
- It should be stable; I should be able to decrypt encrypted files that
were encrypted several years earlier; (how much earlier?  hard to say;
let's say 10 years, as a rough ballpark)

In addition, the following would be nice:

- good documentation;
- good performance;
- bindings for a high-level language (preferably Python).

The only encryption tool I have used for encrypting files on my hard drive
is gpg2, which I have used for small, interactive encryption tasks
(half-dozen files, at most).

Therefore, my initial attempt was to use gpg2 for this new bulk-encryption
task, but I found myself constantly fighting with it, and finally had to
recognize that I was trying to use gpg2 for something it is not primarily
designed for.  (I am also a bit concerned with gpg2's future stability.
AFAICT, It's design has varied significantly over the years, and as a
result there's a lot of confusion on its use.  That has been my experience,
in any case.)

So I am back to square one.

I stress that I am interested only in symmetric encryption.  The issues
that asymmetric encryption addresses are not at all part of the problem I
am dealing with, and therefore I don't want to have to deal with the
complexities of asymmetric encryption.

What Debian packages would you recommend?

Many thanks in advance!

kj


I use the ccrypt(1) suite for encrypting files using only a password 
(e.g. not PKI).  I wrap the CLI tools with Bash and/or Perl scripts to 
automate repetitive tasks (Python, Ruby, and other scripting languages 
should also work).  It is available via the Debian package 'ccrypt'.


http://ccrypt.sourceforge.net/


David



Re: Why choose Debian on server

2019-01-09 Thread David Wright
On Mon 07 Jan 2019 at 23:51:36 (+), Brian wrote:
> On Mon 07 Jan 2019 at 14:37:30 -0600, David Wright wrote:
> > On Mon 07 Jan 2019 at 18:21:07 (+), Brian wrote:
> > > On Sun 06 Jan 2019 at 18:13:58 -0600, David Wright wrote:
> > > 
> > > [...]
> > > 
> > > > BTW if this Screenshot method is meant to yield a "printable"
> > > > document, I haven't yet figured out how to print it sensibly.
> > > > $ lp -d PDF very-long-image.png   gives me the image on one page,
> > > > and looks, as it happens, like the sort of output that FF sometimes
> > > > gives when printing articles: a narrow column of minute text.
> > > 
> > > To nitpick, the claim was that the Raspberry Pi Stack Exchange page
> > > was printable. Whether the marks on paper satisfied a user in all
> > > regards wasn't touched on until now.
> > 
> > I think it's reasonable to demand a certain level of legibility.
> 
> Indeed. That is why I am looking at printouts from Firefox and lp which
> nobody with reasonable eyesight would have any trouble reading.
> 
> > > For me, printing the screen image obtained from my chosen page from
> > > the Print Preview of FireFox gave an acceptable output with a Custom
> > > Scale. It helped to choose Landscape mode.

I think I see what you're doing now: you take the snapshot in FF, then
open the snapshot in FF again and then use Print Preview to set the
scaling factor before you print it.

> > The landscape mode changes the output from a very tall image printed
> > on a portrait page to the same image printed across it instead,
> > reducing the scale by the golden proportion.
> > 
> > > 'lp -d.' benefits from fiddling with the scaling= option and from
> > > orientation-requested=4.
> > 
> > This gets very involved. Having tried feeding convert with the image,
> > I see that it can produce a pretty faithful PDF which suffers only
> > from the usual problem of being overtall.
> 
> Printing from Firefox is hardly involved. Basically, choose the scaling.
> Forget about lp; most people never use it directly.

Well, I couldn't see any scaling options in lp except fit-to-page
which would be fighting what one is trying to do.

> > If I was going to indulge in this very often (which I'm not) I think
> > it would be worth writing a script to run convert on page-size slices
> > of the image, outputting them as PDFs, and collate them into a
> > conventional multipage document with pdftk. It would be fairly simple
> > to compute the y-size by ratioing the x-size according to the paper
> > regime, and even allow for some overlap between pages (because one
> > doesn't know where to slice in between lines of text).
> 
> Sounds more involved than using lp.

I've found that the package posterazor can split the FF image and,
trying it out, it seemed to be able to fit-to-width. It can also
yield overlapping pages so you don't get lines of print split across
pages as with your method.

But again, if I were having to do this regularly, I would prefer to
write a script rather than have to go through its 5-step interactive
dialogue on each occasion. Most of the degrees of freedom given by
posterazor are unnecessary because the values can all be computed.

Cheers,
David.



Re: Taming the "lsblk" command

2019-01-09 Thread David Wright
On Wed 09 Jan 2019 at 16:13:19 (+), mick crane wrote:
> On 2019-01-09 14:14, David Wright wrote:
> > On Wed 09 Jan 2019 at 13:54:45 (+), Curt wrote:
> > > On 2019-01-09, rhkra...@gmail.com  wrote:
> > > > On Wednesday, January 09, 2019 03:01:42 AM Richard Hector wrote:
> > > >> On 9/01/19 6:04 PM, Jude DaShiell wrote:
> > > >> > lsblk -l -o name,label | sort | script
> > > >>
> > > >> lsblk -ln -o name,label |sort | 

Re: Help figuring out what is causing this log entry

2019-01-09 Thread Kelvin Jones
Thank you for your response. I cannot find anything on how to fix “deref”, so i 
can get rid of these log entries. Anyone have an answer on this?

Kelvin

> On Jan 7, 2019, at 2:57 PM, Dan Ritter  wrote:
> 
> Kelvin Jones wrote: 
>> My syslog is being filled up with 
>> 
>> Jan  7 00:10:06 magpie slapd[9168]: slap_global_control: unrecognized 
>> control: 1.3.6.1.4.1.4203.666.5.16
>> Jan  7 00:10:06 magpie slapd[9168]: slap_global_control: unrecognized 
>> control: 1.3.6.1.4.1.4203.666.5.16
>> Jan  7 00:10:06 magpie slapd[9168]: slap_global_control: unrecognized 
>> control: 1.3.6.1.4.1.4203.666.5.16
>> Jan  7 00:10:06 magpie slapd[9168]: slap_global_control: unrecognized 
>> control: 1.3.6.1.4.1.4203.666.5.16
>> 
>> What is causing this? I have googled this log entry a number of times but 
>> have found no solution. We are running Debian nine.
>> 
> 
> slapd is an LDAP directory/authentication server. 
> 
> 1.3.6.1.4.1.4203.666.5.16 is the identifier for a control called
> "deref".
> 
> slapd is probably looking for an overlay called slapo-deref.
> 
> I don't know much more than that.
> 
> -dsr-



Re: Why choose Debian on server

2019-01-09 Thread Brian
On Wed 09 Jan 2019 at 12:47:42 -0600, David Wright wrote:

> On Mon 07 Jan 2019 at 23:51:36 (+), Brian wrote:
> > On Mon 07 Jan 2019 at 14:37:30 -0600, David Wright wrote:
> > > On Mon 07 Jan 2019 at 18:21:07 (+), Brian wrote:
> > > > On Sun 06 Jan 2019 at 18:13:58 -0600, David Wright wrote:
> > > > 
> > > > [...]
> > > > 
> > > > > BTW if this Screenshot method is meant to yield a "printable"
> > > > > document, I haven't yet figured out how to print it sensibly.
> > > > > $ lp -d PDF very-long-image.png   gives me the image on one page,
> > > > > and looks, as it happens, like the sort of output that FF sometimes
> > > > > gives when printing articles: a narrow column of minute text.
> > > > 
> > > > To nitpick, the claim was that the Raspberry Pi Stack Exchange page
> > > > was printable. Whether the marks on paper satisfied a user in all
> > > > regards wasn't touched on until now.
> > > 
> > > I think it's reasonable to demand a certain level of legibility.
> > 
> > Indeed. That is why I am looking at printouts from Firefox and lp which
> > nobody with reasonable eyesight would have any trouble reading.
> > 
> > > > For me, printing the screen image obtained from my chosen page from
> > > > the Print Preview of FireFox gave an acceptable output with a Custom
> > > > Scale. It helped to choose Landscape mode.
> 
> I think I see what you're doing now: you take the snapshot in FF, then
> open the snapshot in FF again and then use Print Preview to set the
> scaling factor before you print it.

That's spot-on, but do not think I am wedded to this technique. If I had
a desperate to print a one-off (like the originator of this sub-thread)
I would use it but would be cogniscent of its limitations. Manipulating
images within the printing system is fraught as far as I am concerned.

Curt informatively posted:

  https://lists.debian.org/debian-user/2019/01/msg00447.html

A twist with the page he refers to is that getting the whole page with a
right click is not possible at this site.
 
> > > The landscape mode changes the output from a very tall image printed
> > > on a portrait page to the same image printed across it instead,
> > > reducing the scale by the golden proportion.
> > > 
> > > > 'lp -d.' benefits from fiddling with the scaling= option and from
> > > > orientation-requested=4.
> > > 
> > > This gets very involved. Having tried feeding convert with the image,
> > > I see that it can produce a pretty faithful PDF which suffers only
> > > from the usual problem of being overtall.
> > 
> > Printing from Firefox is hardly involved. Basically, choose the scaling.
> > Forget about lp; most people never use it directly.
> 
> Well, I couldn't see any scaling options in lp except fit-to-page
> which would be fighting what one is trying to do.

CUPS itself has removed or deprecated such options:

  https://github.com/apple/cups/issues/4010

It is cups-filters which carries the flag now.

> > > If I was going to indulge in this very often (which I'm not) I think
> > > it would be worth writing a script to run convert on page-size slices
> > > of the image, outputting them as PDFs, and collate them into a
> > > conventional multipage document with pdftk. It would be fairly simple
> > > to compute the y-size by ratioing the x-size according to the paper
> > > regime, and even allow for some overlap between pages (because one
> > > doesn't know where to slice in between lines of text).
> > 
> > Sounds more involved than using lp.
> 
> I've found that the package posterazor can split the FF image and,
> trying it out, it seemed to be able to fit-to-width. It can also
> yield overlapping pages so you don't get lines of print split across
> pages as with your method.
> 
> But again, if I were having to do this regularly, I would prefer to
> write a script rather than have to go through its 5-step interactive
> dialogue on each occasion. Most of the degrees of freedom given by
> posterazor are unnecessary because the values can all be computed

An ordinary user shouldn't have to do this. OTOH, an ordinary user
should not feel it is acceptable to impute motives and spread false
information. A skilled user (such as the starter of this sub-thread)
could have copied and pasted or used 'lynx -dump ." to get what
was wanted.

It's a pain, But needs must on occasion.

-- 
Brian.



SSD TRIM software raid (mdadm)

2019-01-09 Thread basti
Hello,
I have create a software raid level 1 with mdadm.

One drive is a "classic" HDD.
The 2'nd drive is a SSD with option "write-mostly".

Over the raid I have create and LVM with all the partitions (root,swap
and qemu/KVM VM's).

When I understand mdadm the hole space is marked as used.
So my question is how useful is fstrim on /dev/mdx and would it relay
trim the SSD?

Best Regards,



Re: Taming the "lsblk" command

2019-01-09 Thread Michael Stone

On Wed, Jan 09, 2019 at 12:45:02PM -0600, David Wright wrote:

But returning to lsblk, I can't figure out why the OP's lsblk -l
appears in such an odd order. Does it differ from that given by
lsblk with no arguments?

I've checked the unsorted order of my /sys/dev/block, which is
essentially random, as is the order of block devices in the output
of mount, yet lsblk gives me a nice sorted lists:


Without -x it's sorting in device major:minor order, which happens to be 
alphabetical in your install purely by chance.




Re: /etc/network/interfaces and IPv6

2019-01-09 Thread Rainer Dorsch
Hi Reco,

many thanks, your answer worked well.

Rainer

Am Mittwoch, 9. Januar 2019, 11:23:46 CET schrieb Reco:
>   Hi.
> 
> On Wed, Jan 09, 2019 at 10:42:27AM +0100, Rainer Dorsch wrote:
> > Hello,
> > 
> > I am just wondering why ipv6 gets configured for enp1s0, even though I do
> > not request that in /etc/network/interfaces (?).
> 
> 
> 
> > 2: enp1s0:  mtu 1500 qdisc pfifo_fast
> > state UP group default qlen 1000
> > 
> > link/ether 74:d4:35:7b:0d:d8 brd ff:ff:ff:ff:ff:ff
> > inet6 2a02:8070:898f:e4fc:76d4:35ff:fe7b:dd8/64 scope global
> > mngtmpaddr dynamic> 
> >valid_lft 14307sec preferred_lft 14307sec
> 
> You've got your IPv6 address via Router Advertisement (mngtmpaddr
> dynamic, limited address lifetime).
> And you don't need anything but a Linux kernel to get it.
> 
> If you don't need IPv6 on that interface for some reason - add the
> following to your /etc/network/interfaces:
> 
> iface enp1s0 inet6 auto
>   accept_ra 0
> 
> Reco


-- 
Rainer Dorsch
http://bokomoko.de/




/etc/network/interfaces with multiple network interfaces

2019-01-09 Thread Rainer Dorsch
Hi,

I have a system with two network interfaces, connecting to two subnets. 

For some reason the default route is going through eth0.3, I would want to 
have it through eth0.7.

Is the default route determined by the order in /etc/network/interface of the 
interfaces or is there another algorithm behind?

rd@master:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

auto eno1
allow-hotplug eno1
#iface eno1 inet dhcp
iface eno1 inet6 auto
  accept_ra 0

# cam
auto eno1.3
allow-hotplug eno1.3
iface eno1.3 inet dhcp
iface eno1.3 inet6 auto
  accept_ra 0

# data
auto eno1.7
allow-hotplug eno1.7
iface eno1.7 inet dhcp
iface eno1.7 inet6 auto
  accept_ra 0
rd@master:~$ ip a show
1: lo:  mtu 65536 qdisc noqueue state UNKNOWN group 
default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
   valid_lft forever preferred_lft forever
inet6 ::1/128 scope host 
   valid_lft forever preferred_lft forever
2: eno1:  mtu 1500 qdisc pfifo_fast state UP 
group default qlen 1000
link/ether 18:66:da:20:6f:2d brd ff:ff:ff:ff:ff:ff
inet6 fe80::1a66:daff:fe20:6f2d/64 scope link 
   valid_lft forever preferred_lft forever
3: eno1.3@eno1:  mtu 1500 qdisc noqueue state 
UP group default qlen 1000
link/ether 18:66:da:20:6f:2d brd ff:ff:ff:ff:ff:ff
inet 192.168.3.2/24 brd 192.168.3.255 scope global eno1.3
   valid_lft forever preferred_lft forever
inet6 fe80::1a66:daff:fe20:6f2d/64 scope link 
   valid_lft forever preferred_lft forever
4: eno1.7@eno1:  mtu 1500 qdisc noqueue state 
UP group default qlen 1000
link/ether 18:66:da:20:6f:2d brd ff:ff:ff:ff:ff:ff
inet 192.168.7.2/24 brd 192.168.7.255 scope global eno1.7
   valid_lft forever preferred_lft forever
inet6 fe80::1a66:daff:fe20:6f2d/64 scope link 
   valid_lft forever preferred_lft forever
rd@master:~$ ip r
default via 192.168.3.1 dev eno1.3 
192.168.3.0/24 dev eno1.3 proto kernel scope link src 192.168.3.2 
192.168.7.0/24 dev eno1.7 proto kernel scope link src 192.168.7.2 
rd@master:~$ 


Thanks
Rainer
-- 
Rainer Dorsch
http://bokomoko.de/




is it possible to use wheezy CD to rescue stretch

2019-01-09 Thread Long Wind
i have stretch, but can't boot it, i think its grub is bad, i want to boot into 
it so that i can run grub-install to fix it.
i have wheezy CD, it has rescue option, is it possible to use it to boot 
stretch? in early Debian CD, it's possible. Thanks! 


Re: is it possible to use wheezy CD to rescue stretch

2019-01-09 Thread Roberto C . Sánchez
On Wed, Jan 09, 2019 at 10:26:51PM +, Long Wind wrote:
>i have stretch, but can't boot it, i think its grub is bad, i want to boot
>into it so that i can run grub-install to fix it.
>i have wheezy CD, it has rescue option, is it possible to use it to boot
>stretch? in early Debian CD, it's possible. Thanks!

Yes, that should be possible.  If the tools available in the wheezy
installer environment are insufficient, then you chroot into the broken
jessie environment to issue whatever grub commands you need to restore
your installation to working order.

Regards,

-Roberto

-- 
Roberto C. Sánchez



Re: Debian booting into initramfs shell

2019-01-09 Thread Pascal Hambourg

Le 09/01/2019 à 10:29, Thomas Schweikle a écrit :


Since latest upgrades debian boots into initramfs shell:

(...)

Booting into rescue mode with the very same kernel/initrd works:


Consistently ? AFAIK, the only difference between normal and rescue mode 
which may affect the initramfs process is the presence or absence of the 
option "quiet" in the kernel command line which displays more or less 
messages. Could you test the normal mode without "quiet" and the rescue 
mode with "quiet" ?




Re: /etc/network/interfaces with multiple network interfaces

2019-01-09 Thread Lee
On 1/9/19, Rainer Dorsch  wrote:
> Hi,
>
> I have a system with two network interfaces, connecting to two subnets.
>
> For some reason the default route is going through eth0.3, I would want to
> have it through eth0.7.

further down you've got:
rd@master:~$ ip r
default via 192.168.3.1 dev eno1.3
192.168.3.0/24 dev eno1.3 proto kernel scope link src 192.168.3.2
192.168.7.0/24 dev eno1.7 proto kernel scope link src 192.168.7.2

Just a guess, but the default gateway is 192.168.3.1 & eno1.3 is
directly connected to that subnet so that's the best route.

Change your default gateway to 192.168.7.1 (or whatever the router is
on that subnet) & it should pick eno1.7 for the default route.

Regards,
Lee

>
> Is the default route determined by the order in /etc/network/interface of
> the
> interfaces or is there another algorithm behind?
>
> rd@master:~$ cat /etc/network/interfaces
> # This file describes the network interfaces available on your system
> # and how to activate them. For more information, see interfaces(5).
>
> source /etc/network/interfaces.d/*
>
> # The loopback network interface
> auto lo
> iface lo inet loopback
>
> auto eno1
> allow-hotplug eno1
> #iface eno1 inet dhcp
> iface eno1 inet6 auto
>   accept_ra 0
>
> # cam
> auto eno1.3
> allow-hotplug eno1.3
> iface eno1.3 inet dhcp
> iface eno1.3 inet6 auto
>   accept_ra 0
>
> # data
> auto eno1.7
> allow-hotplug eno1.7
> iface eno1.7 inet dhcp
> iface eno1.7 inet6 auto
>   accept_ra 0
> rd@master:~$ ip a show
> 1: lo:  mtu 65536 qdisc noqueue state UNKNOWN group
> default qlen 1
> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
> inet 127.0.0.1/8 scope host lo
>valid_lft forever preferred_lft forever
> inet6 ::1/128 scope host
>valid_lft forever preferred_lft forever
> 2: eno1:  mtu 1500 qdisc pfifo_fast state
> UP
> group default qlen 1000
> link/ether 18:66:da:20:6f:2d brd ff:ff:ff:ff:ff:ff
> inet6 fe80::1a66:daff:fe20:6f2d/64 scope link
>valid_lft forever preferred_lft forever
> 3: eno1.3@eno1:  mtu 1500 qdisc noqueue
> state
> UP group default qlen 1000
> link/ether 18:66:da:20:6f:2d brd ff:ff:ff:ff:ff:ff
> inet 192.168.3.2/24 brd 192.168.3.255 scope global eno1.3
>valid_lft forever preferred_lft forever
> inet6 fe80::1a66:daff:fe20:6f2d/64 scope link
>valid_lft forever preferred_lft forever
> 4: eno1.7@eno1:  mtu 1500 qdisc noqueue
> state
> UP group default qlen 1000
> link/ether 18:66:da:20:6f:2d brd ff:ff:ff:ff:ff:ff
> inet 192.168.7.2/24 brd 192.168.7.255 scope global eno1.7
>valid_lft forever preferred_lft forever
> inet6 fe80::1a66:daff:fe20:6f2d/64 scope link
>valid_lft forever preferred_lft forever
> rd@master:~$ ip r
> default via 192.168.3.1 dev eno1.3
> 192.168.3.0/24 dev eno1.3 proto kernel scope link src 192.168.3.2
> 192.168.7.0/24 dev eno1.7 proto kernel scope link src 192.168.7.2
> rd@master:~$
>
>
> Thanks
> Rainer
> --
> Rainer Dorsch
> http://bokomoko.de/
>
>
>



Re: Looking for advice on tools (or libraries) for unsupervised, bulk symmetric encryption/decryption of files

2019-01-09 Thread Linux-Fan

Kynn Jones writes:

I am looking for software to symmetric-encrypt large numbers of files on disk  
(terabytes' worth of data), and would appreciate some advice.


My basic requirements:

• It should be open source and no-cost (though, since I'm asking this  
question here, this goes without saying);


• I should be able to program scripts (shell, Python, Perl, or Ruby) to run  
this software without human intervention; this rules out tools that are  
designed for interactive use.


• It should be stable; I should be able to decrypt encrypted files that were  
encrypted several years earlier; (how much earlier?  hard to say; let's say  
10 years, as a rough ballpark)

In addition, the following would be nice:

• good documentation;

• good performance;

• bindings for a high-level language (preferably Python).

The only encryption tool I have used for encrypting files on my hard drive is  
gpg2, which I have used for small, interactive encryption tasks (half-dozen  
files, at most).


[...]


What Debian packages would you recommend?


I actually tend to use 7-Zip for symmetric file encryption a lot because it  
ensures cross-platform compatibility and many users have 7-Zip already  
installed (I am always afraid that one day decryption software might not be  
available because then data would be close to being lost). The Debian  
package is `p7zip-full`.


Another program which I like is AESCrypt. Unfortunately it seems it is not  
included in Debian, but one might be able to install it via PIP (I have only  
ever used the Java and C version). I have actually read the Java  
implementation (which is also available as a very minimalistic commandline  
utility) and found the code understandable which is always a bonus when it  
comes to security :) Additionally, it was simple to adapt the library to  
provide a slightly different API and the result is still compatible with the  
AESCrypt commandline. As a result, you can use the API to automatically  
process data and the commandline utility to manually extract the data should  
something go wrong with the automatism. AESCrypt also seems to have Python  
bindings (but I have not used them). See https://www.aescrypt.com.


HTH
Linux-Fan


pgpXbZBrkpsDQ.pgp
Description: PGP signature


Re: SSD TRIM software raid (mdadm)

2019-01-09 Thread Pascal Hambourg

Le 09/01/2019 à 22:22, basti a écrit :

I have create a software raid level 1 with mdadm.

One drive is a "classic" HDD.
The 2'nd drive is a SSD with option "write-mostly".


Why did you flag the SSD as write-mostly ? I would have expected the 
opposite.



Over the raid I have create and LVM with all the partitions (root,swap
and qemu/KVM VM's).

When I understand mdadm the hole space is marked as used.


I don't understand what you mean.


So my question is how useful is fstrim on /dev/mdx and would it relay
trim the SSD?


RAID 1 supports TRIM since kernel 3.7. Since the HDD does not support 
TRIM, it will make discarded bloc contents inconsistent between the SSD 
and the HDD but it does not matter.


However you wrote that the RAID device is used by LVM, so you cannot run 
fstrim on it directly. You must enable TRIM/discard in LVM (see 
lvm.conf) and run fstrim on LVs which contain mounted filesystems 
supporting TRIM/discard.




Re: is it possible to use wheezy CD to rescue stretch

2019-01-09 Thread Pascal Hambourg

Le 09/01/2019 à 23:26, Long Wind a écrit :

i have wheezy CD, it has rescue option, is it possible to use it to boot 
stretch?


Not always. Wheezy's kernel and e2fsprogs tools do not support newer 
ext4 features such as csum_metadata which are enabled by default on ext4 
filesystems created by Stretch's tools.




Re: allocating disk space (was: Upgrade Problem)

2019-01-09 Thread David Wright
On Fri 04 Jan 2019 at 19:36:42 (-0500), Felix Miata wrote:
> David Wright composed on 2019-01-04 14:27 (UTC-0600):
> > On Fri 04 Jan 2019 at 13:41:33 (-0500), Felix Miata wrote:
> >> David Wright composed on 2019-01-04 10:19 (UTC-0600):
> >> > On Fri 04 Jan 2019 at 04:30:00 (-0500), Felix Miata wrote:
> 
> >> >>> This partitioning scheme seems really odd and unwieldy.  
> 
> >> >> Indeed. Considering the absence of a sysadmin,
> 
> >> > What's so unusual about that?
> 
> >> Standing alone, absolutely nothing, but it wasn't standing alone
> 
> > (The OP is standing alone, leaving us aside.)
> 
> > By snipping the rhetorical question that introduces my paragraph, it
> > now appears that "unusual" refers to the partitioning scheme. It
> > doesn't.
> 
> It wasn't intended to.
> 
> > It refers to the absence of a sysadmin. 
> 
> Intended.
> 
> >> >> absence of 2 possible primary partitions on sda,
> >> 
> >> > If the OP partitioned an MBR disk intending to subdivide the
> >> > filesystem, then it might be expected that they create an extended
> >> > partition. Why bother with holding off until you've got two
> >> > primary partitions set up first?
> 
> >> Off the top of my head:
> 
> >> 1-trivial I know, but avoiding seeing fdisk report "Partition table 
> >> entries are not in disk order"
> 
> >> 2-less trivial: partitions not being in disk order
> 
> > I don't understand. The time sequence would be
> 
> > sda1=primary [ free 
> >  ]
> 
> > sda1=primary [  "sda2"=extended 
> >  ]
> 
> > sda1=primary [ sda5=logicalfree 
> >  ]
> 
> > sda1=primary [ sda5=logical sda6=logical   free 
> >  ]
> 
> > sda1=primary [ sda5=logical sda6=logical sda7=logical   free
> >  ]
> 
> > sda1=primary [ sda5=logical sda6=logical sda7=logical sda8=logical 
> > possibly-free ]
> 
> > What's out of order?
> 
> This looks like it's assuming reference to the OP's disk state, which is not 
> what I was writing
> about. AFAIK, when entries /are/ out of order, far more steps had to have 
> been involved than those
> you listed.
> 
> >> 3-potential to have a primary partition added following a logical, thereby 
> >> making following
> >> freespace unavailable for one or more added logicals (disappearing 
> >> freespace).
> 
> > With the scenario above, it would be usual to fill the disk with the
> > extended partition, so there's no possibility of adding another primary.
> 
> Yes, when filling the disk at the outset. With the escalation of disk sizes 
> over the years, it's
> become more common not to allocate 100% at the outset. In non-ancient memory 
> I only ever fully
> allocated with my own disks at the outset with data disks, until small SDDs 
> became cheap.

I don't understand the reasoning.

> Some partitioning tools are better than others at allowing oneself to shoot 
> oneself in the foot.
> 
> > Here's the partition table of this laptop. Care to guess it's
> > evolution?
> 
> > Number  Start (sector)End (sector)  Size
> >12048 2050047   1000.0 MiB
> >2 2050048 2582527   260.0 MiB
> >3 2582528 4630527   1000.0 MiB
> >4 4630528 4892671   128.0 MiB
> >5 4892672   347348991   163.3 GiB
> >6   347348992   429268991   39.1 GiB /
> >7   429268992   511188991   39.1 GiB
> >8   511188992   883275775   177.4 GiB/home
> >9   883275776   883292159   8.0 MiB
> >   10   883292160   892084223   4.2 GiB  swap
> >   11   892086272   892803071   350.0 MiB
> >   12   892803072   894900223   1024.0 MiB
> >   13   894900224   947329023   25.0 GiB
> >   14   947329024   976773119   14.0 GiB
> 
> > Constrained by an inability to repartition the disk, how would
> > you distribute a Debian system across it while wasting the
> > least space?
> 
> That's a bit sketchy.

Worse then that: I don't have a clue what most of the original
partitions were for, and still don't. I just don't touch them.

Here's what I inherited:

/dev/sda1   2048   2050047   2048000 1000M Windows recovery environment
/dev/sda22050048   2582527532480  260M EFI System
/dev/sda32582528   4630527   2048000 1000M Lenovo boot partition
/dev/sda44630528   4892671262144  128M Microsoft reserved
/dev/sda54892672 892086271 887193600  423G Microsoft basic data
/dev/sda6  892086272 892803071716800  350M Windows recovery environment
/dev/sda7  892803072 894900223   20971521G Microsoft basic data
/dev/sda8  894900224 947329023  52428800   25G Microsoft basic data
/dev/sda9  947329024 976773119  29444096   14G Windows recovery environment

I have no idea why there are three recovery partitions of vastly
differing sizes, a manufacturer's boot partition,

Re: is it possible to use wheezy CD to rescue stretch

2019-01-09 Thread Long Wind
Thanks, i browse Help of wheezy CD, i don't know what rescue it can do
its advanced option allows you to specify boot option before boot,vmlinuz, 
initrd, root=/dev/sda2 ...
(my stretch is installed at sda2)
but initrd on CD is intended for install, not for my purpose
no luck, i may have to find other way


 

On Thursday, January 10, 2019 8:01 AM, Pascal Hambourg 
 wrote:
 

 Le 09/01/2019 à 23:26, Long Wind a écrit :
> i have wheezy CD, it has rescue option, is it possible to use it to boot 
> stretch?

Not always. Wheezy's kernel and e2fsprogs tools do not support newer 
ext4 features such as csum_metadata which are enabled by default on ext4 
filesystems created by Stretch's tools.



   

Re: Taming the "lsblk" command

2019-01-09 Thread David Wright
On Wed 09 Jan 2019 at 16:36:16 (-0500), Michael Stone wrote:
> On Wed, Jan 09, 2019 at 12:45:02PM -0600, David Wright wrote:
> > But returning to lsblk, I can't figure out why the OP's lsblk -l
> > appears in such an odd order. Does it differ from that given by
> > lsblk with no arguments?
> > 
> > I've checked the unsorted order of my /sys/dev/block, which is
> > essentially random, as is the order of block devices in the output
> > of mount, yet lsblk gives me a nice sorted lists:
> 
> Without -x it's sorting in device major:minor order, which happens to
> be alphabetical in your install purely by chance.

So, looking at the OP, is the order of sdc a temporary state of
affairs, produced by adding partitions to sdc while sde is plugged in
and blocking the sequence? (I've never seen one letter split.)

Or is it quite normal when you reach fifteen partitions? I can
understand that the devices seem to be assigned in blocks of sixteen,
but I slightly surprised that they would be assigned in a broken
sequence when they all present at boot time.

And surely sr0, sitting there in the middle, has a completely
different major number from sdX.

OP's report:

However when I do
 > lsblk -l -o name,label
I get
 > sdc14 good-fvwm
 > sdc15 tst_mysql
 > sde
 > sde1  debian-2-go
 > sr0
 > sdc16 tst_mariadb
 > sdc17 dummy
 > sdc18 target

Cheers,
David.



Re: SSD TRIM software raid (mdadm)

2019-01-09 Thread David Christensen

On 1/9/19 1:22 PM, basti wrote:

Hello, I have create a software raid level 1 with mdadm.

One drive is a "classic" HDD. The 2'nd drive is a SSD with option 
"write-mostly".


Over the raid I have create and LVM with all the partitions 
(root,swap and qemu/KVM VM's).


When I understand mdadm the hole space is marked as used. So my 
question is how useful is fstrim on /dev/mdx and would it relay trim 
the SSD?


Best Regards,


On 1/9/19 3:51 PM, Pascal Hambourg wrote:
Why did you flag the SSD as write-mostly ? I would have expected the 
opposite.


+1  RTFM mdadm(8), --write-mostly would make more sense on the HDD.


But, one SSD and one HDD in an MD mirror seems strange.  If mirroring is 
not required, I would:


1.  Partition the SSD with boot, swap, root, and VM partitions.  Give 
each VM a small virtual drive image file for its system drive.


2.  Put one large partition on the HDD.  Give each VM a virtual drive 
image file, sized as required, for its data drive.



If you can install an additional SSD, mirror the two SSD's.  Similarly 
so for an additional HDD.



In any case:

1.  Try to characterize your I/O workload -- synchronous vs. 
asynchronous, read vs. write, sequential vs. random, small vs. large.


2.  Configure things to use asynchronous I/O, where possible.

3.  Install plenty of RAM.

4.  Try multiple configurations and benchmark each, preferably with 
realistic workloads.



David



Re: Looking for advice on tools (or libraries) for unsupervised, bulk symmetric encryption/decryption of files

2019-01-09 Thread Celejar
On Wed, 9 Jan 2019 09:05:32 -0500
Kynn Jones  wrote:

> I am looking for software to symmetric-encrypt large numbers of files on
> disk (terabytes' worth of data), and would appreciate some advice.
> 
> My basic requirements:
> 
>- It should be open source and no-cost (though, since I'm asking this
>question here, this goes without saying);
>- I should be able to program scripts (shell, Python, Perl, or Ruby) to
>run this software without human intervention; this rules out tools that are
>designed for interactive use.
>- It should be stable; I should be able to decrypt encrypted files that
>were encrypted several years earlier; (how much earlier?  hard to say;
>let's say 10 years, as a rough ballpark)
> 
> In addition, the following would be nice:
> 
>- good documentation;
>- good performance;
>- bindings for a high-level language (preferably Python).

The standard encryption technology for linux is LUKS. It works on the
block device level, not the file level. [I may be using the terminology
inaccurately.] You'll find the best compatibility, stability, and
documentation with LUKS, but you don't use it to create encrypted
copies of files - rather, you create a LUKS encrypted device, and
copy / move your files there. The LUKS tools (cryptsetup) are only
necessary for the creation and management of the encrypted volume; once
it's set up, you use the ondinary filesystem tools (cp, mv, ls, etc.)
to access files and move them to and from encrypted storage.

I believe that the most commonly used software for file level
encryption is EncFS. I haven't really used it much, and can't speak to
its long term stablity.



Celejar



Re: /etc/network/interfaces with multiple network interfaces

2019-01-09 Thread Reco
Hi.

On Wed, Jan 09, 2019 at 11:09:58PM +0100, Rainer Dorsch wrote:
> Hi,
> 
> I have a system with two network interfaces, connecting to two subnets. 
> 
> For some reason the default route is going through eth0.3, I would want to 
> have it through eth0.7.

Both of your VLANs are configured by DHCP, and have the same metric (0
by default).


> Is the default route determined by the order in /etc/network/interface of the 
> interfaces or is there another algorithm behind?

What really happens is one default route get replaced by another.
Whichever happens to be getting the lease last - wins.


If you need the default route on eno1.7 to appear and to be used -
assign lower metric to it. Like this (32 and 64 are arbitrary):

# cam
auto eno1.3
allow-hotplug eno1.3
iface eno1.3 inet dhcp
metric 64
iface eno1.3 inet6 auto
accept_ra 0

# data
auto eno1.7
allow-hotplug eno1.7
iface eno1.7 inet dhcp
metric 32
iface eno1.7 inet6 auto
accept_ra 0

Reco



Re: Looking for advice on tools (or libraries) for unsupervised, bulk symmetric encryption/decryption of files

2019-01-09 Thread Ben Caradoc-Davies

On 10/01/2019 03:05, Kynn Jones wrote:

The only encryption tool I have used for encrypting files on my hard drive
is gpg2, which I have used for small, interactive encryption tasks
(half-dozen files, at most).
Therefore, my initial attempt was to use gpg2 for this new bulk-encryption
task, but I found myself constantly fighting with it, and finally had to
recognize that I was trying to use gpg2 for something it is not primarily
designed for.  (I am also a bit concerned with gpg2's future stability.
AFAICT, It's design has varied significantly over the years, and as a
result there's a lot of confusion on its use.  That has been my experience,
in any case.)


I use a pipe with gpg2 as one component for symmetric encryption:

gpg --batch --symmetric --cipher-algo AES256 --s2k-digest-algo SHA512 
--compress-algo none --passphrase-file $PASSPHRASE_FILE


My pipe input is usually a tar file gzipped with pigz for parallel 
compression, hence the "--compress-algo none". I then add another "pigz 
-0" wrapper to get a cryptographically weak checksum to allow testing 
for media failures without the passphrase. I like tar because it 
preserves file metadata and filesystem structure and is a very stable 
format. Other formats may be better for random access.


Recently I used gpg2 to decrypt files that were encrypted over 15 years 
ago; note that these were much smaller files and a simpler invocation of 
gpg1 (the then default cipher was CAST5 IIRC). The gpg file format seems 
well-documented and stable. Regular decryption tests are prudent to 
catch problems after gpg upgrade. Yes, the new interactive predilections 
of gpg2 were a pain at first when compared to gpg1, but "--batch" and 
"--passphrase-file" seem sufficient for batch symmetric encryption, if 
you do not mind your passphrase being in plain text on your filesystem.


Kind regards,

--
Ben Caradoc-Davies 
Director
Transient Software Limited 
New Zealand



Re: is it possible to use wheezy CD to rescue stretch

2019-01-09 Thread Pascal Hambourg

Le 10/01/2019 à 01:21, Long Wind a écrit :

Thanks, i browse Help of wheezy CD, i don't know what rescue it can do
its advanced option allows you to specify boot option before boot,vmlinuz, 
initrd, root=/dev/sda2 ...
(my stretch is installed at sda2)
but initrd on CD is intended for install, not for my purpose


The rescue mode will ask you to select the root filesystem and start a 
shell on it (with chroot). You can also start a shell in the installer 
(initramfs).




Re: is it possible to use wheezy CD to rescue stretch

2019-01-09 Thread songbird
Long Wind wrote:
...
> but initrd on CD is intended for install, not for my purpose
> no luck, i may have to find other way

  can you download and create a USB stick with the
relevant netinst image on it?

  that has a rescue aspect which should be compatible.


  songbird



Multitasking, using a Multi-User Operating System

2019-01-09 Thread Kenneth Parker
Hello,

This is a General Post about using Debian.  But it refers to a thread I
started, when I jumped to a crazy conclusion, based on insufficient testing
before requesting help.

The original thread is  here:
https://lists.debian.org/debian-user/2019/01/msg00328.html

I am a Computer Consultant, who freely volunteers to help people, mainly on
the Support side.  When somebody asks me about a Program or Package I don't
know, I often will install it on my system to check it out.  Since these
Packages may not fit in to my own Philosophy, I often create special
Usernames, to test them with.  For example, I created separate User Names,
for KDE and Gnome.

Right from the start, with Yggdrasil Plug and Play Linux, was the fact that
you got Six Virtual Text Sessions, that you could, instantly switch
between.  I would even arrange them.

And, even when I embraced a Desktop (Gnome 2), I would switch back to my
Text Terminals, mainly because I liked to run Server Apps Interactively,
and be able to switch to the screen where their Messages were coming out.
Like, for instance, Alt-F1 would be for System Messages.  And yes, on
Alt-F5, I might be Playing Mahler's Third Symphony or a Chopin Piano piece.

And here's what is so great:  All of this can occur at once.
Multitasking.

So what is occurring now?   I hope I'm not supposed to "Dumb Myself Down".

What does it mean to be a Debian-User?

Thank you.

Kenneth Parker   http://eyeblinkuniverse.com (An Open Source Universe).



Now, I want