Re: Icedove calendar not syncing to google calendar

2017-01-08 Thread didier gaumet

Hello, I do not know for Stretch and Sid, but the Jessie version of the
calendar-google-provider package is not the last stable from upstream.
In my case, deinstalling the debian package and installing the upstream
thunderbird extension solves the problem. YMMV...



Little question grep

2017-01-08 Thread Hans
Hi all, 

I have a little problem with using grep.

The problem: 

I have a wordlist with 3,5 Mio words in ASCII. No I want filter out all words 
with 5,6, 
7, 8, 9 and 10 signs in seperate lists. The wordlist contains all sort of 
signs, like 
alphanumeric, control signs like "^", "]" and others.
So it must be same, whatever sign grep reads. I found this:

grep -o -w -E '^[[:alnum:]]{5}' file1


But it looks like it is only grepping text. I read the manual of grep, and I 
see, there 
are more options to chose. But I did not completely understand, if I have to 
chose 
every option in addition or if is there an option,which covers every kind of 
sign.

Would be nice, if someone could make this a little bit brighter for me.

Thank you for any hints.

Best regards

Hans




Re: Little question grep

2017-01-08 Thread Reco
Hi.

On Sun, 08 Jan 2017 10:11:26 +0100
Hans  wrote:

> Hi all, 
> 
> I have a little problem with using grep.
> 
> The problem: 
> 
> I have a wordlist with 3,5 Mio words in ASCII. No I want filter out all words 
> with 5,6, 
> 7, 8, 9 and 10 signs in seperate lists. The wordlist contains all sort of 
> signs, like 
> alphanumeric, control signs like "^", "]" and others.
> So it must be same, whatever sign grep reads. I found this:
> 
> grep -o -w -E '^[[:alnum:]]{5}' file1
> 
> 
> But it looks like it is only grepping text. I read the manual of grep, and I 
> see, there 
> are more options to chose. But I did not completely understand, if I have to 
> chose 
> every option in addition or if is there an option,which covers every kind of 
> sign.

As it should be. regex(7) specifies that character classes are defined
in wctype(3), which states that '[[:alnum:]]' merely implements isalnum
(3), which, in turn is defined as (isalpha(c) || isdigit(c)).

So, what you really need is for five characters only (note final '$'):

egrep '^.{5}$' file1

or, if you need whole words (i.e. need to exclude spaces):

egrep '^[^ ]$' file1

Reco



Re: Little question grep

2017-01-08 Thread Reco
On Sun, 8 Jan 2017 12:40:34 +0300
Reco  wrote:

> or, if you need whole words (i.e. need to exclude spaces):
> 
> egrep '^[^ ]$' file1

Self-edit. Of course it's:

egrep '^[^ ]{5}$' file1

Reco



More info, still urgent :-) [was: Re: Urgent help needed - Debian boot hangs]

2017-01-08 Thread hans
Hi, 

I've found a monitor which was able to display the Grub menu. In the
"Advanced options for Debian GNU/Linux" I found the entries: 

Debian GNU/Linux with Linux 3.16.0-4-amd64
Debian GNU/Linux with Linux 3.16.0-4-amd64 (sysvinit)
Debian GNU/Linux with Linux 3.16.0-4-amd64 (recovery mode)
Debian GNU/Linux with Linux 3.2.0-4-amd64
Debian GNU/Linux with Linux 3.2.0-4-amd64 (sysvinit)
Debian GNU/Linux with Linux 3.2.0-4-amd64 (recovery mode) 

Each of them insists on starting the network. Is there any remedy? 

The boot & root FS is on an Adaptec 6405E HW raid controller. When I
boot from a Debian live DVD
I get the disks reported as "LVM2 Physical Volume".
I installed lvm2 via "sudo apt-get install lvm2". But when I try to
mount them I get the error
"Not able to mount a LVM2_member" (from memory; the wording cound be a
bit different). 

How do I mount the LVM2 volumes from a current Debian Live DVD? 

Kind regards,
Hans

Re: More info, still urgent :-) [was: Re: Urgent help needed - Debian boot hangs]

2017-01-08 Thread deloptes
h...@hanswkraus.com wrote:

> How do I mount the LVM2 volumes from a current Debian Live DVD?

to activate all volumes
vgchange -ay

to activate specific one
vgchange -ay VOLGROUP



Re: Little question grep

2017-01-08 Thread John L. Ries
That strikes me as being just a touch too complex for grep.  It may well
be doable, but you'll probably have an easier time using AWK (possibly not
what you wanted to hear, but it's well worth learning).  The object of the
game would be to count the number of signs on each line and print only
those with the specified number.  Then in a shell script (my preferred
poison is ksh) set up a loop like so:

#Not guaranteed to be syntactically correct
for ((i=5; i<=10; i++)); do
  awk -f ctsign.awk N=$i biglist.txt >${i}signs.txt
  done

Or one can use such scripting languages as Perl or Python to do the whole
job.

Hope it helps...

--|
John L. Ries  |
Salford Systems   |
Phone: (619)543-8880 x107 |
or (435)867-8885  |
--|


On Sun, 8 Jan 2017, Hans wrote:

>
> Hi all,
>
>
>
> I have a little problem with using grep.
>
>
>
> The problem:
>
>
>
> I have a wordlist with 3,5 Mio words in ASCII. No I want filter out all
> words with 5,6, 7, 8, 9 and 10 signs in seperate lists. The wordlist
> contains all sort of signs, like alphanumeric, control signs like "^", "]"
> and others.
>
> So it must be same, whatever sign grep reads. I found this:
>
>
>
> grep -o -w -E '^[[:alnum:]]{5}' file1
>
>
>
> But it looks like it is only grepping text. I read the manual of grep, and I
> see, there are more options to chose. But I did not completely understand,
> if I have to chose every option in addition or if is there an option,which
> covers every kind of sign.
>
>
>
> Would be nice, if someone could make this a little bit brighter for me.
>
>
>
> Thank you for any hints.
>
>
>
> Best regards
>
>
>
> Hans
>
>
>
>
>
>
>



Re: python time module

2017-01-08 Thread Michael Lange
Hi,

On Sat, 07 Jan 2017 20:29:05 -0700
Joe Pfeiffer  wrote:

(...)
> (2) More seriously, I'm getting the following error and traceback trying
> to run my very first script:
> 
> nowball:13$ python box1.py 
> Traceback (most recent call last):
>   File "box1.py", line 1, in 
> from OCC.Display.SimpleGui import init_display
>   File
> "/home/joseph/python/lib/python2.7/site-packages/OCC/Display/SimpleGui.py",
> line 20, in  import logging File
> "/usr/lib/python2.7/logging/__init__.py", line 26, in  import
> sys, os, time, cStringIO, traceback, warnings, weakref, collections
> ImportError: No module named time
> 
> >From everything I'm finding, it looks like both the logging and time
> modules should be installed by default with python; what do I need to
> install that is missing at present to get the time module?

not sure what happens there, are you building your own version of Python
within /home/joseph ? Then maybe this failed to build the time module.
Normally when you use the debian package the time module should be there
ootb.

Regards

Michael


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

Space: the final frontier.  These are the voyages of the starship
Enterprise. Its five-year mission: to explore strange new worlds; to seek
out new life and new civilizations; to boldly go where no man has gone
before.
-- Captain James T. Kirk



Re: More info, still urgent :-) [was: Re: Urgent help needed - Debian boot hangs]

2017-01-08 Thread Lisi Reisz
On Sunday 08 January 2017 09:56:34 h...@hanswkraus.com wrote:
> Hi,
>
> I've found a monitor which was able to display the Grub menu. In the
> "Advanced options for Debian GNU/Linux" I found the entries:
>
> Debian GNU/Linux with Linux 3.16.0-4-amd64
> Debian GNU/Linux with Linux 3.16.0-4-amd64 (sysvinit)
> Debian GNU/Linux with Linux 3.16.0-4-amd64 (recovery mode)
> Debian GNU/Linux with Linux 3.2.0-4-amd64
> Debian GNU/Linux with Linux 3.2.0-4-amd64 (sysvinit)
> Debian GNU/Linux with Linux 3.2.0-4-amd64 (recovery mode)
>
> Each of them insists on starting the network. Is there any remedy?

sysvinit should start without the network eventually if there is a problem 
with the network (after a short delay), and recovery mode ought not to start 
the network. So are you quite sure that they all insist on starting the 
network?  By which I take it that you still mean that it won't start without 
it.

Lisi



> The boot & root FS is on an Adaptec 6405E HW raid controller. When I
> boot from a Debian live DVD
> I get the disks reported as "LVM2 Physical Volume".
> I installed lvm2 via "sudo apt-get install lvm2". But when I try to
> mount them I get the error
> "Not able to mount a LVM2_member" (from memory; the wording cound be a
> bit different).
>
> How do I mount the LVM2 volumes from a current Debian Live DVD?
>
> Kind regards,
> Hans



Re: Icedove calendar not syncing to google calendar

2017-01-08 Thread Tom Ashley


On 01/08/2017 03:59 AM, didier gaumet wrote:

Hello, I do not know for Stretch and Sid, but the Jessie version of the
calendar-google-provider package is not the last stable from upstream.
In my case, deinstalling the debian package and installing the upstream
thunderbird extension solves the problem. YMMV...



If you haven't already tried it, you may want to install the "Provider 
for Google Calendar" extension from Icedove Tools->Add-ons->Extensions.  
This worked for me to solve a similar problem.


HTH

Tom Ashley



[´Solved] Re: More info, still urgent :-) [was: Re: Urgent help needed - Debian boot hangs]

2017-01-08 Thread Lisi Reisz
I received the following private reply.  Since it says "and all others" I am 
sending it to the list!  (with the subject header taken from my private 
reply)

Glad you got it solved, Hans.

Lisi
--
Hi Lisi & all others,

Am 08.01.2017 um 13:09 schrieb Lisi Reisz:
> On Sunday 08 January 2017 09:56:34 h...@hanswkraus.com wrote:
>> Hi,
>>
>> I've found a monitor which was able to display the Grub menu. In the
>> "Advanced options for Debian GNU/Linux" I found the entries:
>>
>> Debian GNU/Linux with Linux 3.16.0-4-amd64
>> Debian GNU/Linux with Linux 3.16.0-4-amd64 (sysvinit)
>> Debian GNU/Linux with Linux 3.16.0-4-amd64 (recovery mode)
>> Debian GNU/Linux with Linux 3.2.0-4-amd64
>> Debian GNU/Linux with Linux 3.2.0-4-amd64 (sysvinit)
>> Debian GNU/Linux with Linux 3.2.0-4-amd64 (recovery mode)
>>
>> Each of them insists on starting the network. Is there any remedy?
>
> sysvinit should start without the network eventually if there is a problem
> with the network (after a short delay), and recovery mode ought not to start
> the network. So are you quite sure that they all insist on starting the
> network?  By which I take it that you still mean that it won't start without
> it.
>
> Lisi

Yes, I am sure. I waited for both the the sysvinit and recovery mode for
approximately half an hour. Both got stuck at the network part.

I found the problem: I added the line: "iface eth0 inet6 dhcp" to
/etc/network/interfaces (I found somewhare on the net that this is a
good idea and my router has an IPV6 address). This gave all the
troubles.

The troublesome stanza:
--
# The primary network interface
auto eth0
iface eth0 inet dhcp
iface eth0 inet6 dhcp
# iface eth0 inet static
#   address 192.168.1.100
#   netmask 255.255.255.0
#   gateway 192.168.1.20
#   # dns-* options are implemented by the resolvconf package, if 
installed
--
After correcting it to:
--
# The primary network interface
auto eth0
iface eth0 inet dhcp
# iface eth0 inet6 dhcp
# iface eth0 inet static
#   address 192.168.1.100
#   netmask 255.255.255.0
#   gateway 192.168.1.20
#   # dns-* options are implemented by the resolvconf package, if 
installed
--
The system works again.

To do this I booted the system via a Debian Jessie Live-DVD, added
lvm2 and started it (the root system is on an Adaptec HW Raid), mounted
the root and editet '/etc/network/interfaces'.

Many thanks to all who have helped & kind regards,
Hans



Systemd: no error but "maintenance mode"

2017-01-08 Thread Steffen Dettmer
Hi,

What happened before:
I had issue with a Debian server SATA bus [1]. I noticed because
apt-get upgrade hung, because initramfs updater calls "sync" which
hang because of [1]. All operations accessing a certain (backup) disk
blocked. Shutdown over network. It was reported server power LED still
up, so probably shutdown hang, too. Server was powered off and disk
pulled.

Then server did not come up. Now I went to its location with monitor
and keyboard. I saw a screen full of boot messages, each line prefixed
with green "[OK]". On bottom, I got asked for root password. I though
Debian does not use root passwords? I'm old fashioned so fortunately I
set one, so I could log in.

I noticed /var/log/syslog had not been updated recently. Obviously
logging is not running / working. All file systems are correctly
mounted read-write.

What happens? Why is however dropping me only a shell when everything
from booting worked fine?
What is this for a bad idea to spawn a LOCAL shell on a server? Or is
Debian nowadays desktop only? I know ubuntu-server, is there also some
debian-server?

Any hint appreciated.

Steffen



[1]
task kworker/u8:0:27432 blocked for more than 120 seconds
Workqueue: writeback bdi_writeback_workfn (flush-8:48)
[] ? io_schedule+0x99/0x120
...



systemd requires "plymouth" on server? (was: Systemd: no error but "maintenance mode")

2017-01-08 Thread Steffen Dettmer
Hi,

I think I found some more information.

In short:
"Failed at step exec spawning /bin/plymouth: no such file or directory"
but I have no clue why it is suddenly missing or suddenly required.
I found postings in the internet that simply installing plymouth seems
not to solve this issue.

What can I do about this?
Any hints appreciated.

In detail:
Google suggested "systemctl status". This shows "State: maintenance",
"Jobs: 0 queued", "Failed: 0 units" and some output looking like
pstree which tells me nothing.
Why "maintenance" when there are no fails?
Is it true that logging, debugging and troubleshooting still is not
implemented correctly in systemd?

"systemctl --failed" shows "0 loaded units listed". According to man
page the command is supposed to list failed units, not loaded units,
so I'm not sure what is true. 0 fails would be good, 0 loaded probably
be bad. It could explain why I don't get syslog messages.

I also found the command "journalctl -p 3 -xb". man page tells
something about a so-called "system journal". Man page references some
desktop stuff (freedesktop.org) and seems to be related to systemd as
well (seems all my recent issues are systemd issues -  hope it dies as
fast as upstart). Man page of systemd-journald.service suggests
systemd invented an own wheel called syslog which does not write to
/var/log? Man page mentions /var/log/journal/ files, but no such
directory exists.

"journalctl -p 3 -xb" shows some information in red color, in reverse
order assuming the later the more important:
1) "r8169 firmware: failed to load rtl_nic/rtl8168g-2.fw"
but eth0 is state UP, so should be fine. At least I should get a
normal local login prompt.

2) "Failed at step exec spawning /bin/plymouth: no such file or directory"
Google suggest this is some graphical whatever, so I think it would be
a bug if found on a server

3) "Dependency failed for local file systems"
sounds bad, but all file systems are there?

4) "Depencency failed for /mnt/grace"
/mnt/grace was used to mount a USB disk and of course the system must
not depend on it

5) "TImed out waiting to device dev-disk-by-\x2dlabel-Grace.device
I guess "\x2d" is just a funny systemd way to write "-".
This probably is the cause for 4) and 5).
I have no idea why systemd waits for this disk at all. As it noticed
it is not even connected. I assume this is systemds replacement of USB
automouter and that it is safe to ignore it.

So only problem I can see is missing /bin/plymouth. Could it got lost
during apt-get ugrade? Shall I install it? I hope I don't need
graphical whatever, can it be disabled?

Steffen



Re: Icedove calendar not syncing to google calendar

2017-01-08 Thread Boyan Penkov
This is not the same as the debian package for “google-calendar-provider” ?

Cheers
--
Boyan Penkov
www.boyanpenkov.com

> On Jan 8, 2017, at 7:10 AM, Tom Ashley  wrote:
> 
> 
> On 01/08/2017 03:59 AM, didier gaumet wrote:
>> Hello, I do not know for Stretch and Sid, but the Jessie version of the
>> calendar-google-provider package is not the last stable from upstream.
>> In my case, deinstalling the debian package and installing the upstream
>> thunderbird extension solves the problem. YMMV...
>> 
> 
> If you haven't already tried it, you may want to install the "Provider for 
> Google Calendar" extension from Icedove Tools->Add-ons->Extensions.  This 
> worked for me to solve a similar problem.
> 
> HTH
> 
> Tom Ashley
> 



Re: Icedove calendar not syncing to google calendar

2017-01-08 Thread Boyan Penkov
Super, good point — I am on stretch, and the relevant versions are

icedove: 1:45.5.1-1
calendar-google-provider: 1:45.5.-1-1

Would the extension be more up to date?

Cheers!
--
Boyan Penkov
www.boyanpenkov.com

> On Jan 8, 2017, at 3:59 AM, didier gaumet  wrote:
> 
> 
> Hello, I do not know for Stretch and Sid, but the Jessie version of the
> calendar-google-provider package is not the last stable from upstream.
> In my case, deinstalling the debian package and installing the upstream
> thunderbird extension solves the problem. YMMV...
> 



Missing linux-headers-4.7.8-1~bpo8+1

2017-01-08 Thread Graham McNeil-Watson
I'm having trouble getting VirtualBox to work on Debian on my laptop:
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: UX305CA
Version: 1.0

| $ VirtualBox
| WARNING: The character device /dev/vboxdrv does not exist.
| Please install the virtualbox-dkms package and the appropriate
| headers, most likely linux-headers-amd64.
|
| You will not be able to start VMs until this problem is fixed.
| Gtk-Message: Failed to load module "canberra-gtk-module"

I've searched this and it seems to be caused by missing kernel headers. So
I've tried:

| $ sudo apt-get install linux-headers-generic
| Reading package lists... Done
| Building dependency tree
| Reading state information... Done
| Package linux-headers-generic is not available, but is referred to by
another package.
| This may mean that the package is missing, has been obsoleted, or
is only available from another source
|
| E: Package 'linux-headers-generic' has no installation candidate

I believe this is likely related to the fact I'm using a backported 4.x
kernel to support my wifi::

| $ uname -a
| Linux redacted 4.7.0-0.bpo.1-amd64 #1 SMP Debian 4.7.8-1~bpo8+1
(2016-10-19) x86_64 GNU/Linux

| $ apt-cache policy linux-image-4.7.0-0.bpo.1-amd64-unsigned
| linux-image-4.7.0-0.bpo.1-amd64-unsigned:
|   Installed: 4.7.8-1~bpo8+1
|   Candidate: 4.7.8-1~bpo8+1
|   Version table:
|  *** 4.7.8-1~bpo8+1 0
| 100 /var/lib/dpkg/status

However I cannot find the corresponding headers e.g.:

| $ apt-cache search linux-headers-4.7
| linux-headers-4.7.0-1-common-grsec - Common header files for Linux
4.7.0-1-grsec
| linux-headers-4.7.0-1-grsec-amd64 - Header files for Linux
4.7.0-1-grsec-amd64

neither of which look like the right version. This is my
/etc/apt/sources.list:

| # deb http://ftp.uk.debian.org/debian/ jessie main
|
| deb http://ftp.uk.debian.org/debian/ jessie main non-free contrib
| deb-src http://ftp.uk.debian.org/debian/ jessie main non-free contrib
|
| deb http://security.debian.org/ jessie/updates main contrib non-free
| deb-src http://security.debian.org/ jessie/updates main contrib non-free
|
| # jessie-updates, previously known as 'volatile'
| deb http://ftp.uk.debian.org/debian/ jessie-updates main contrib non-free
| deb-src http://ftp.uk.debian.org/debian/ jessie-updates main contrib
non-free
|
| # for 4.x kernel
| deb http://ftp.de.debian.org/debian experimental main
| deb-src http://ftp.de.debian.org/debian experimental main
|
| deb http://ftp.debian.org/debian jessie-backports main
| deb-src http://ftp.debian.org/debian jessie-backports main
|
| #deb http://security.debian.org testing/updates main

Searching on debian.org for linux-headers-4.7 didn't return anything
either. Can anyone shed any light on why I can find the kernel image but
not the sources for this version? (I've not used a backport before so not
very familiar with how the versioning works.)

Many thanks,

--
Graham


Fwd: installation problem

2017-01-08 Thread Filippo Faldetta
Hi,



i've got the error message NMI watchdog: BUG: soft lockup - CPU#2 stuck for
23s! [plymouthd:305] on the startup of my system (even live-cd).
My pc is a dell inspiron 7559 with intel graphic and nvidia.
please help me...i don't want to use windows anymore.



Greetings

Filippo Faldetta


Re: systemd requires "plymouth" on server? (was: Systemd: no error but "maintenance mode")

2017-01-08 Thread Steffen Dettmer
Hi,

main problem was the disk indeed! Apparently there was a typo in
fstab, probably leading to a parse error (which isn't shown
unfortunately) then the value "0" in the "pass" row for fsck
apparently is ignored and "1" is assumed instead, BUT systemd does not
call fsck! fsck parsed the line as intended (pass=0 -> no check), so
is all fine. I tested with pass=1, then fsck has correct error
behavior and logs a clear error message. But systemd tries to do
things itself and then the chain of bugs and odds start. Maybe systemd
should be dropped until properly implemented (or superseeded).

I think actually this is the main bug: systemd uses /etc/fstab like
fsck and friends do, but wrongly (differently). This even seems to be
a known issue (google found quite a lot of related rants).

Does it make sense to submit a bug report at least for the most
important bugs? Probably not, because the issues seem to be known
already?

Steffen


On Sun, Jan 8, 2017 at 2:56 PM, Steffen Dettmer
 wrote:
> Hi,
>
> I think I found some more information.
>
> In short:
> "Failed at step exec spawning /bin/plymouth: no such file or directory"
> but I have no clue why it is suddenly missing or suddenly required.
> I found postings in the internet that simply installing plymouth seems
> not to solve this issue.
>
> What can I do about this?
> Any hints appreciated.
>
> In detail:
> Google suggested "systemctl status". This shows "State: maintenance",
> "Jobs: 0 queued", "Failed: 0 units" and some output looking like
> pstree which tells me nothing.
> Why "maintenance" when there are no fails?
> Is it true that logging, debugging and troubleshooting still is not
> implemented correctly in systemd?
>
> "systemctl --failed" shows "0 loaded units listed". According to man
> page the command is supposed to list failed units, not loaded units,
> so I'm not sure what is true. 0 fails would be good, 0 loaded probably
> be bad. It could explain why I don't get syslog messages.
>
> I also found the command "journalctl -p 3 -xb". man page tells
> something about a so-called "system journal". Man page references some
> desktop stuff (freedesktop.org) and seems to be related to systemd as
> well (seems all my recent issues are systemd issues -  hope it dies as
> fast as upstart). Man page of systemd-journald.service suggests
> systemd invented an own wheel called syslog which does not write to
> /var/log? Man page mentions /var/log/journal/ files, but no such
> directory exists.
>
> "journalctl -p 3 -xb" shows some information in red color, in reverse
> order assuming the later the more important:
> 1) "r8169 firmware: failed to load rtl_nic/rtl8168g-2.fw"
> but eth0 is state UP, so should be fine. At least I should get a
> normal local login prompt.
>
> 2) "Failed at step exec spawning /bin/plymouth: no such file or directory"
> Google suggest this is some graphical whatever, so I think it would be
> a bug if found on a server
>
> 3) "Dependency failed for local file systems"
> sounds bad, but all file systems are there?
>
> 4) "Depencency failed for /mnt/grace"
> /mnt/grace was used to mount a USB disk and of course the system must
> not depend on it
>
> 5) "TImed out waiting to device dev-disk-by-\x2dlabel-Grace.device
> I guess "\x2d" is just a funny systemd way to write "-".
> This probably is the cause for 4) and 5).
> I have no idea why systemd waits for this disk at all. As it noticed
> it is not even connected. I assume this is systemds replacement of USB
> automouter and that it is safe to ignore it.
>
> So only problem I can see is missing /bin/plymouth. Could it got lost
> during apt-get ugrade? Shall I install it? I hope I don't need
> graphical whatever, can it be disabled?
>
> Steffen



Re: Missing linux-headers-4.7.8-1~bpo8+1

2017-01-08 Thread Pascal Hambourg

Le 08/01/2017 à 15:32, Graham McNeil-Watson a écrit :


| $ sudo apt-get install linux-headers-generic

(...)

| Package linux-headers-generic is not available, but is referred to by
another package.
| This may mean that the package is missing, has been obsoleted, or
is only available from another source


AFAIK linux-*-generic packages are from Ubuntu, not Debian.


| $ apt-cache policy linux-image-4.7.0-0.bpo.1-amd64-unsigned
| linux-image-4.7.0-0.bpo.1-amd64-unsigned:
|   Installed: 4.7.8-1~bpo8+1
|   Candidate: 4.7.8-1~bpo8+1
|   Version table:
|  *** 4.7.8-1~bpo8+1 0
| 100 /var/lib/dpkg/status

However I cannot find the corresponding headers e.g.:

(...)

Searching on debian.org for linux-headers-4.7 didn't return anything
either. Can anyone shed any light on why I can find the kernel image but
not the sources for this version?


Linux 4.7 packages and have been superseded by 4.8 and removed from 
stretch and jessie-backports.


You can see the linux-image-4.7 only because it is still installed on 
your system. As you can see from apt-cache policy above, it is no longer 
available in the Debian repository, just as any other linux-*-4.7 packages.


I guess you can get linux-headers-4.7 packages from the snapshot 
repository, or you can upgrade to Linux 4.8.




Re: hotpluggable member of a bridge

2017-01-08 Thread Pascal Hambourg

Le 05/01/2017 à 22:36, Reco a écrit :


Pascal Hambourg  wrote:


Bridged interfaces retain their MACs, so they would get different IPv6
ULAs, which are provided by radvd from the different host.


Not if they are bridged before they are brought UP


I'm not that familiar with openvswitch to make claims about the order
in which an interface brought up and bridged.

If you have such knowledge then feel free to share it with the list
please.


Actually I had in mind the behaviour of Linux bridge, not openvswitch. I 
have no knowledge nor experience with openvswitch. However, I can see 
that the openvswitch package adds a script in /etc/network/if-pre-up.d, 
so it is likely that the interface is bridged before it is brought up.




Re: hotpluggable member of a bridge

2017-01-08 Thread Pascal Hambourg

Le 06/01/2017 à 13:15, Reco a écrit :


DHCP is L4, IP is L3 and openvswitch cares about L2
mostly.


Self-correction. DHCP is L7.


Why ? DHCP deals with IP configuration, so I'd rather classify it as 
part of layer 3, with IP and ICMP. AFAIK, it does not provide any 
service to any application but to the IP layer itself, just like ICMP.




Re: hotpluggable member of a bridge

2017-01-08 Thread Reco
Hi.

On Sun, 8 Jan 2017 16:59:39 +0100
Pascal Hambourg  wrote:

> Le 06/01/2017 à 13:15, Reco a écrit :
> >>
> >> DHCP is L4, IP is L3 and openvswitch cares about L2
> >> mostly.
> >
> > Self-correction. DHCP is L7.
> 
> Why ? DHCP deals with IP configuration, so I'd rather classify it as 
> part of layer 3, with IP and ICMP. AFAIK, it does not provide any 
> service to any application but to the IP layer itself, just like ICMP.

[1] lists is as an application level protocol. My original thought was
UDP, hence L4. 

Furthermore, there are lots of dhcp options (ntp-server,
local-proxy-config to name a few that are actually used) that deal with
client's configuration that's not related to IP configuration directly. 

Reco

[1] https://en.wikipedia.org/wiki/DHCP



Re: hotpluggable member of a bridge

2017-01-08 Thread Reco
Hi.

On Sun, 8 Jan 2017 16:48:02 +0100
Pascal Hambourg  wrote:

> Le 05/01/2017 à 22:36, Reco a écrit :
> >
> > Pascal Hambourg  wrote:
> >
> >>> Bridged interfaces retain their MACs, so they would get different IPv6
> >>> ULAs, which are provided by radvd from the different host.
> >>
> >> Not if they are bridged before they are brought UP
> >
> > I'm not that familiar with openvswitch to make claims about the order
> > in which an interface brought up and bridged.
> >
> > If you have such knowledge then feel free to share it with the list
> > please.
> 
> Actually I had in mind the behaviour of Linux bridge, not openvswitch. I 
> have no knowledge nor experience with openvswitch. However, I can see 
> that the openvswitch package adds a script in /etc/network/if-pre-up.d, 
> so it is likely that the interface is bridged before it is brought up.

Seems to be the case with openvswitch indeed. I conclude that from
(failed) experiment involving openvswitch bridge, hostapd, wireless
interface and a plain ethernet one. hostapd was unoperational unless I
forced the bugger to start up first, and add an interface to the
bridge second. 

Reco



Re: hotpluggable member of a bridge

2017-01-08 Thread Reco
On Sun, 8 Jan 2017 19:10:31 +0300
Reco  wrote:

> Furthermore, there are lots of dhcp options (ntp-server,
> local-proxy-config to name a few that are actually used) that deal with
> client's configuration that's not related to IP configuration directly. 

And dns-servers, of course. Should not forget about that one.

Reco



Re: hotpluggable member of a bridge

2017-01-08 Thread Pascal Hambourg

Le 08/01/2017 à 17:10, Reco a écrit :


Pascal Hambourg  wrote:


Le 06/01/2017 à 13:15, Reco a écrit :


DHCP is L4, IP is L3 and openvswitch cares about L2
mostly.


Self-correction. DHCP is L7.


Why ? DHCP deals with IP configuration, so I'd rather classify it as
part of layer 3, with IP and ICMP. AFAIK, it does not provide any
service to any application but to the IP layer itself, just like ICMP.


[1] lists is as an application level protocol.


Wikipedia is not an authoritative source.
However RFC1122 lists BOOTP, the predecessor of DHCP, among the support 
protocols of the application layer. So be it...



My original thought was UDP, hence L4.


Common mistake. A protocol layer is defined by the service it provides, 
not the protocol layer it is based upon. For example NDP is based on 
ICMPv6 (network layer), itself based on IPv6 (also network layer) but is 
in the link layer.



Furthermore, there are lots of dhcp options (ntp-server,
local-proxy-config to name a few that are actually used) that deal with
client's configuration that's not related to IP configuration directly.


Agreed.



Re: hotpluggable member of a bridge

2017-01-08 Thread Pascal Hambourg

Le 08/01/2017 à 17:15, Reco a écrit :


Pascal Hambourg  wrote:


Actually I had in mind the behaviour of Linux bridge, not openvswitch. I
have no knowledge nor experience with openvswitch. However, I can see
that the openvswitch package adds a script in /etc/network/if-pre-up.d,
so it is likely that the interface is bridged before it is brought up.


Seems to be the case with openvswitch indeed. I conclude that from
(failed) experiment involving openvswitch bridge, hostapd, wireless
interface and a plain ethernet one. hostapd was unoperational unless I
forced the bugger to start up first, and add an interface to the
bridge second.


That reminds me of my own experiments with hostapd and the Linux bridge.
Hostapd needed an extra parameter to declare the bridge, and the Linux 
bridge refused to add the wireless interface until the interface mode 
was changed to master mode (AP), so hostapd had to be started first.




Re: Icedove calendar not syncing to google calendar

2017-01-08 Thread didier gaumet
Le 08/01/2017 à 15:39, Boyan Penkov a écrit :
> Super, good point — I am on stretch, and the relevant versions are
> 
> icedove: 1:45.5.1-1
> calendar-google-provider: 1:45.5.-1-1
> 
> Would the extension be more up to date?

no, that is the same version as in Jessie, I think that is version 2.6
of the extension (last stable is 3.1):
 
https://addons.mozilla.org/en-US/thunderbird/addon/provider-for-google-calendar/versions/



$spam_score value change in exim + spamassassin

2017-01-08 Thread Mark Copper
Would anyone know offhand what might be changing the value of variable
$spam_score in the acl/40_exim4-config_check_data section of the exim4
configuration file exim4.conf.template?

It's an idle question but I'm curious why I would be getting a header like this:

X-Spam_score: 10.8
X-Spam_score_int: 108
X-Spam_bar: ++

Subject: ***SPAM (score:8.3)*** Is Donald Trump Headed For A Heart Attack?

when the text of the config file looks like this:

warn
   spam = Debian-exim:true
   add_header = X-Spam_score: $spam_score\n\
 X-Spam_score_int: $spam_score_int\n\
 X-Spam_bar: $spam_bar\n\
 X-Spam_report: $spam_report
# add second subject line with *SPAM* marker when message
# is over threshold
  warn  spam = nobody
  add_header = Subject: ***SPAM (score:$spam_score)*** $h_Subject:

So something changes the value of $spam_score between the two
warnings. How does that happen?

Thanks for looking.

Mark



Re: python time module

2017-01-08 Thread lists


re 2: time is in the Python standard library; you should have it. 


re 1: It's not a bad thing to use a separate package manager for your
Python projects if you're getting into development with Python. More or
less, users simply maintaining a system that uses Python should be OK
with installs from the repo. If developing in Python, a package manager
that integrates with virtual environments will help because it isolates
dependencies for each specific project (which you would develop in its
own environment). I'm sorry I can't answer you about conda, but this
setup is general practice with PyPI; with that you make and activate a
virtual environment for your project, then install packages with the
command `pip` (no backticks, but I'm not sure how best to note inline
code on a mailing list). Then, for instance, if a different project
requires a different package version, your other project depending on
another version won't break. If then you want that Python sript/module
running on your main system, you can do the desired dependency installs
from the Debian repo.

On Sat, Jan 07, 2017 at 08:29:05PM -0700, Joe Pfeiffer wrote:

I'm starting to try to learn pythonOCC (a wrapper on the OpenCascade 3d
modeling library) as an excuse to learn python itself, and am running
into some problems right off the bat.

(1) pythonOCC wants to be installed using a package manager called
   conda (see http://www.pythonocc.org/download/ and
   https://www.continuum.io/).  Is there a reasonably standard way to
   integrate conda with apt (in the same sense that alien will let me
   install an RPM), or do I just sort of have to expect to use a
   different system for it?  Yes, I can download from source instead,
   and may end up taking that approach, but would rather not if I can
   avoid it.

(2) More seriously, I'm getting the following error and traceback trying
   to run my very first script:

nowball:13$ python box1.py
Traceback (most recent call last):
 File "box1.py", line 1, in 
   from OCC.Display.SimpleGui import init_display
 File "/home/joseph/python/lib/python2.7/site-packages/OCC/Display/SimpleGui.py", 
line 20, in 
   import logging
 File "/usr/lib/python2.7/logging/__init__.py", line 26, in 
   import sys, os, time, cStringIO, traceback, warnings, weakref, collections
ImportError: No module named time


From everything I'm finding, it looks like both the logging and time

modules should be installed by default with python; what do I need to
install that is missing at present to get the time module?



--
Rick Valenzuela
Videojournalist
Shanghai, China

+86 185 0177 0138
r...@rickv.com

GPG: 0x054124ADD5644029



Re: Systemd: no error but "maintenance mode"

2017-01-08 Thread Joe
On Sun, 8 Jan 2017 14:28:09 +0100
Steffen Dettmer  wrote:

> Hi,
> 
> What happened before:
> I had issue with a Debian server SATA bus [1]. I noticed because
> apt-get upgrade hung, because initramfs updater calls "sync" which
> hang because of [1]. All operations accessing a certain (backup) disk
> blocked. Shutdown over network. It was reported server power LED still
> up, so probably shutdown hang, too. Server was powered off and disk
> pulled.
> 
> Then server did not come up. Now I went to its location with monitor
> and keyboard. I saw a screen full of boot messages, each line prefixed
> with green "[OK]". On bottom, I got asked for root password. I though
> Debian does not use root passwords? I'm old fashioned so fortunately I
> set one, so I could log in.
> 
> I noticed /var/log/syslog had not been updated recently. Obviously
> logging is not running / working. All file systems are correctly
> mounted read-write.
> 
> What happens? Why is however dropping me only a shell when everything
> from booting worked fine?
> What is this for a bad idea to spawn a LOCAL shell on a server? Or is
> Debian nowadays desktop only? I know ubuntu-server, is there also some
> debian-server?
> 
> Any hint appreciated.
> 
> Steffen
> 
> 
> 
> [1]
> task kworker/u8:0:27432 blocked for more than 120 seconds
> Workqueue: writeback bdi_writeback_workfn (flush-8:48)
> [] ? io_schedule+0x99/0x120
> ...
> 



Re: Systemd: no error but "maintenance mode"

2017-01-08 Thread Joe
On Sun, 8 Jan 2017 14:28:09 +0100
Steffen Dettmer  wrote:

> Hi,
> 
> What happened before:
> I had issue with a Debian server SATA bus [1]. I noticed because
> apt-get upgrade hung, because initramfs updater calls "sync" which
> hang because of [1]. All operations accessing a certain (backup) disk
> blocked. Shutdown over network. It was reported server power LED still
> up, so probably shutdown hang, too. Server was powered off and disk
> pulled.

The disc you removed: did it have an entry in /etc/fstab? Does this
server use systemd? If yes to both, comment the /etc/fstab entry or
give it an extra option 'noauto'. Systemd assumes that any local drive
listed in /etc/fstab without 'noauto' is essential for booting, and will
drop you to maintenance mode if the drive cannot be found.
> 
> Then server did not come up. Now I went to its location with monitor
> and keyboard. I saw a screen full of boot messages, each line prefixed
> with green "[OK]". On bottom, I got asked for root password. I though
> Debian does not use root passwords? I'm old fashioned so fortunately I
> set one, so I could log in.
> 

Yes, a plain Debian installation will ask you to set a root password.

> Or is Debian nowadays desktop only? I know ubuntu-server, is there
> also some debian-server?

No, there is no special server variant, Debian Stable would normally be
used, with whatever additional software the user wishes.

-- 
Joe



autofs config

2017-01-08 Thread Harry Putnam
,
| NOTE: A similar post was accidently posted to gentoo list but was
|   intended to be posted here
`
Setup: Running Debian jessie-stable


I've never used autofs and am trying to get it setup.
Following the debian wiki and an Ubuntu howto.
Also this site:

  http://www.linuxtechi.com/automount-nfs-share-in-linux-using-autofs/

I've installed the pkg:

  aptitude search ^autofs|grep ^i
  i   autofs  - kernel-based automounter for  Linux


  created mount point: mkdir /projects-nfs

I've edited /etc/auto.master by adding this line:

  /projects-nfs /etc/auto.master.d/prj-nfs.autofs --timeout=180

Created the directory `mkdir /etc/auto.master.d'

created /etc/auto.master.d/prj-nfs.autofs like so (as suggested in
auto.master):

  d0 --fstype=nfs4,rw,soft,intr191.168.1.42:/projects/d0
  dv --fstype=nfs4,rw,soft,intr191.168.1.42:/projects/dv

Those directories on that host are available.
They reside on an solaris (x86) host and set to be available to nfs.

They can be mounted manually:
  mount -t nfs 2x:/projects/dv /nfs/dv

Checking /nfs/dv... I find it is mounted.

So umounting /nfs/dv
And starting autofs with:
  /etc/init.d/autofs start

However when I chk status I get [asterisks added for clarity]:

/etc/init.d/autofs status
  ● autofs.service - LSB: Automounts filesystems on demand
 Loaded: loaded (/etc/init.d/autofs)
 Active: active (running) since Sun 2017-01-08 13:40:45 EST; 4s ago
Process: 3638 ExecStop=/etc/init.d/autofs stop (code=exited, 
status=0/SUCCESS)
Process: 3671 ExecStart=/etc/init.d/autofs start (code=exited, 
status=0/SUCCESS)
 CGroup: /system.slice/autofs.service
 └─3676 /usr/sbin/automount --pid-file /var/run/autofs.pid

 Jan 08 13:40:45 d0 systemd[1]: Starting LSB: Automounts filesystems on 
demand...
***  Jan 08 13:40:45 d0 automount[3676]: syntax error in map near
 [ d0 --fstype=nfs4,rw,soft,intr191.168.1.42: ]
***  Jan 08 13:40:45 d0 automount[3676]: syntax error in map near [ projects ]
 Jan 08 13:40:45 d0 autofs[3671]: Starting automount
 Jan 08 13:40:45 d0 systemd[1]: Started LSB: Automounts filesystems on 
demand.

No way to tell what the syntax error is.
I thought it might be spaces instead of tabs so when back and made
sure the whitspaces are tabs.

The above sited URL shows the entries for map file are to include:

   
And gives the example:
   db_backup  -fstype=nfs,rw,soft,intr  192.168.1.21:/db_backup

I'm not seeing what the `syntax error' is in my file.



Re: autofs config

2017-01-08 Thread Reco
Hi.

On Sun, 08 Jan 2017 13:37:32 -0500
Harry Putnam  wrote:

> I've edited /etc/auto.master by adding this line:
> 
>   /projects-nfs /etc/auto.master.d/prj-nfs.autofs --timeout=180

And it gone haywire from here.

Autofs has a concept of master map ( auto.master(5) ) which can contain
lines referring to either direct or indirect maps ( autofs(5) ).

/etc/auto.master.d is intended for extending master map, and the files
inside it should contain master map entries, not indirect ones like you
did below.


> Created the directory `mkdir /etc/auto.master.d'
> 
> created /etc/auto.master.d/prj-nfs.autofs like so (as suggested in
> auto.master):
> 
>   d0 --fstype=nfs4,rw,soft,intr191.168.1.42:/projects/d0
>   dv --fstype=nfs4,rw,soft,intr191.168.1.42:/projects/dv

Note that it be simplified to:

* --fstype=nfs4,rw,soft,intr191.168.1.42:/projects/&


Also please note that they give you /etc/auto.net just for your case
(i.e. mounting nfs).


> ***  Jan 08 13:40:45 d0 automount[3676]: syntax error in map near
> [ d0 --fstype=nfs4,rw,soft,intr191.168.1.42: ]
> ***  Jan 08 13:40:45 d0 automount[3676]: syntax error in map near
> [ projects ]

So, what you need to do instead is:

# /etc/auto.master

/projects-nfs /etc/auto.nfs --timeout=180

# /etc/auto.nfs

d0 --fstype=nfs4,rw,soft,intr191.168.1.42:/projects/d0
dv --fstype=nfs4,rw,soft,intr191.168.1.42:/projects/dv


And since you're using Debian stable you might consider ditch autofs
altogether as well and use systemd automounting as described in [1].

Reco

[1] http://blog.tomecek.net/post/automount-with-systemd/



Re: cannot register @forum

2017-01-08 Thread sweethome
cannot register in debian forum, whenever I am trying to register after 
filling the form , i am getting a message " your ip is black listed " 
without doing anything wrong with the website.!!! how to register, 
please let me know.




Re: python time module

2017-01-08 Thread Rick Valenzuela

On Sat, Jan 07, 2017 at 08:29:05PM -0700, Joe Pfeiffer wrote:

(2) More seriously, I'm getting the following error and traceback trying
  to run my very first script:

nowball:13$ python box1.py
Traceback (most recent call last):
File "box1.py", line 1, in 
  from OCC.Display.SimpleGui import init_display
File "/home/joseph/python/lib/python2.7/site-packages/OCC/Display/SimpleGui.py", line 
20, in 
  import logging
File "/usr/lib/python2.7/logging/__init__.py", line 26, in 
  import sys, os, time, cStringIO, traceback, warnings, weakref, collections
ImportError: No module named time


From everything I'm finding, it looks like both the logging and time

modules should be installed by default with python; what do I need to
install that is missing at present to get the time module?



Going from the first line in the traceback, does box1.py have a line
that says `import time`? To save space in your project, not all things
in the standard library are pulled in to every project. You have to
declare you need it.

And I'm sorry for top-posting before.

--
Rick Valenzuela
Videojournalist
Shanghai, China



offlineimap is slow so I tried mbsync but got an IMAP store error...

2017-01-08 Thread Michael Fothergill
Dear Folks,

I tried running mbsync with following mbsyncrc file:

IMAPAccount gmail
# Address to connect to
Host imap.gmail.com
User usern...@gmail.com
Pass ***
# To store the password in an encrypted file use PassCmd instead of Pass
# PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.mailpass.gpg"
#
# Use SSL
SSLType IMAPS
# The following line should work. If get certificate errors, uncomment the
two following lines and read the "Troubleshooting" section.
CertificateFile /etc/ssl/certs/ca-certificates.crt
#CertificateFile ~/.cert/imap.gmail.com.pem
#CertificateFile ~/.cert/Equifax_Secure_CA.pem

IMAPStore gmail-remote
Account gmail

MaildirStore gmail-local
# The trailing "/" is important
Path ~/.mail/gmail/
Inbox ~/.mail/gmail/Inbox

Channel gmail
Master :gmail-remote:
Slave :gmail-local:
# Exclude everything under the internal [Gmail] folder, except the
interesting folders
Patterns * ![Gmail]* "[Gmail]/Sent Mail" "[Gmail]/Starred" "[Gmail]/All
Mail"
# Or include everything
#Patterns *
# Automatically create missing mailboxes, both locally and on the server
Create Both
# Save the synchronization state files in the relevant directory
SyncState *

I set up the relevant mail folder directories and installed isync etc.

I got an XOAUTH error and added Port 993 which cured the problem but then I
got another error:

"IMAP store has both account and account-specific options"

What sort of problem is this error pointing to here?

Comments appreciated

Regards

Michael Fothergill

PS I will post up how much faster mbsync is in my case cf offlineimap when
I get it running.


Re: autofs config

2017-01-08 Thread Sven Hartge
Reco  wrote:

> [1] http://blog.tomecek.net/post/automount-with-systemd/

Note: this only works with static mounts.

If you want to use any kind of automatic mapping you can't do this with
systemd.

Grüße,
S°

-- 
Sigmentation fault. Core dumped.



Re: python time module

2017-01-08 Thread Nicolas George
Le nonidi 19 nivôse, an CCXXV, li...@rickv.com a écrit :
> re 1: It's not a bad thing to use a separate package manager for your
> Python projects if you're getting into development with Python.

Actually, it is a bad thing. Package managers specialized for one
language are convenient for the developers heavily involved in that
language, but for everybody else they are a terrible thing.

For one, they do not integrate with the system package manager and its
security updates. People usually remember to do the security updates,
but they never remember to update the programs installed separately, and
even more so the libraries that were installed automatically.

Second, and this is more insidious: by giving developers too much
control over the versions of the libraries, they lead them to be
careless with compatibility. That means they will easily depend on a
very bleeding-edge version of a library, or on an older one that is no
longer maintained for security. In both cases, it is very annoying for
the end users.

The language-specific package systems came to exist because of a flaw in
most distros: it is impossible to install specific packages as simple
users, nor without risking to break the whole system. But they are a bad
solution to a real problem.

Unfortunately, now they exist. And unfortunately, Debian still suffers
from the flaw. That means sometimes using the language-specific package
systems is unavoidable. But developers need to be aware of the issue to
try and mitigate its consequences. In particular, whenever possible,
they should use the libraries present as real packages in stable.

Regards,

-- 
  Nicolas George


signature.asc
Description: Digital signature


kworker eats 45% from first cpu

2017-01-08 Thread deloptes
Hi community,
I moved my system to an SSD two days ago. I applied recommendation to
use "discard" when I noticed that one kworker is using exactly 45% of the
first cpu.
I tried to find out some solution in google already, but nothing alike my
issue. It seems it is tricky to find out what exactly is using the queue
and causing the higher load.

Has someone of you dealt with this problem, or have some useful idea how to
debug it?

The kernel is (i just build and installed) 4.9.1 with jessie. I also tried
using systemv init, but it is still there.

thanks in advance




Re: kworker eats 45% from first cpu

2017-01-08 Thread Jochen Spieker
deloptes:
>
> I moved my system to an SSD two days ago. I applied recommendation to
> use "discard"

What do you mean by that? If you are talking about the mount
option, discard it. (Sorry for the pun.) Use a weekly cron job with
'fstrim -a' instead. If you are using LVM, set issue_discards=1 in
/etc/lvm/lvm.conf.

J.
-- 
Whenever I hear the word 'art' I reach for my visa card.
[Agree]   [Disagree]
 


signature.asc
Description: Digital signature


Re: kworker eats 45% from first cpu

2017-01-08 Thread Jochen Spieker
Jochen Spieker:
> deloptes:
>> 
>> I moved my system to an SSD two days ago. I applied recommendation to
>> use "discard"
> 
> What do you mean by that? If you are talking about the mount
> option, discard it. (Sorry for the pun.) Use a weekly cron job with
> 'fstrim -a' instead. If you are using LVM, set issue_discards=1 in
> /etc/lvm/lvm.conf.

BTW, mount(8):

 discard
Disable/enable  the  discard mount option.  The discard function issues
frequent commands to let the block device reclaim space  freed  by  the
filesystem.   This  is  useful for SSD devices, thinly provisioned LUNs
and virtual machine images, but  may  have  a  significant  performance
impact.   (The fstrim command is also available to initiate batch trims
from userspace.)

J.
-- 
Every year I wonder what a tinsel-making machine looks like. And what it
does in summer.
[Agree]   [Disagree]
 


signature.asc
Description: Digital signature


Re: python time module

2017-01-08 Thread lists

On Sun, Jan 08, 2017 at 09:49:24PM +0100, Nicolas George wrote:

Le nonidi 19 nivôse, an CCXXV, li...@rickv.com a écrit :

re 1: It's not a bad thing to use a separate package manager for your
Python projects if you're getting into development with Python.


Actually, it is a bad thing. Package managers specialized for one
language are convenient for the developers heavily involved in that
language, but for everybody else they are a terrible thing.



Oh, I can see your point from your reasoning. I can amend my comment to
'It doesn't have to be a bad thing to use a separate package manager.'

It all depends on the use case and the goals. If the scope of these are
on a stable Debian system, you're totally right. If the OP, or any other
Debian user, is developing to contribute primarily to Python users and
the Python community, pip makes more sense. Whether a developer is
maintaining good update habits from there is largely a matter of how
they learned. 


Best regards,
Rick

--
Rick Valenzuela
Videojournalist
Shanghai, China



Re: cannot register @forum

2017-01-08 Thread Joel Rees
On Mon, Jan 9, 2017 at 4:07 AM, sweethome  wrote:
> cannot register in debian forum,

forums.debian.net is, I believe, a separate organization.

> whenever I am trying to register after
> filling the form , i am getting a message " your ip is black listed "
> without doing anything wrong with the website.!!! how to register, please
> let me know.

Searching the web for "debian forum blacklist" found this post in the
archives of the debian-www mailing list:

   https://lists.debian.org/debian-www/2015/01/msg00026.html

but that was last year, so the contact list Paul gives there may be old..

Looking at http://forums.debian.net, I find the topic or whatever,
"forum stuff and feedback":

   http://forums.debian.net/viewforum.php?f=12

You might find a useful post in there, or maybe a way to contact the
forum admins if you have a problem of any kind.

Or you could subscribe to this list at

   https://lists.debian.org/debian-user/

if you haven't already, and post your questions here via e-mail
instead of at the web forum.

It's a little different from a web forum, but your mail seems to get
through okay. And we can probably answer some of your questions or
point you to places you can get the answers.

-- 
Joel Rees

I'm imagining I'm a novelist:
http://reiisi.blogspot.jp/p/novels-i-am-writing.html



Re: kworker eats 45% from first cpu

2017-01-08 Thread deloptes
Jochen Spieker wrote:

> Jochen Spieker:
>> deloptes:
>>> 
>>> I moved my system to an SSD two days ago. I applied recommendation to
>>> use "discard"
>> 
>> What do you mean by that? If you are talking about the mount
>> option, discard it. (Sorry for the pun.) Use a weekly cron job with
>> 'fstrim -a' instead. If you are using LVM, set issue_discards=1 in
>> /etc/lvm/lvm.conf.
> 
> BTW, mount(8):
> 
>  discard
> Disable/enable  the  discard mount option.  The discard function
> issues
> frequent commands to let the block device reclaim space  freed  by
>  the
> filesystem.   This  is  useful for SSD devices, thinly provisioned
> LUNs
> and virtual machine images, but  may  have  a  significant 
> performance
> impact.   (The fstrim command is also available to initiate batch
> trims from userspace.)
> 
> J.

Thank you Jochen. Yes I mean the discard option as you mentioned above, but
I do not think it is related. I configured it by the book
(https://wiki.debian.org/SSDOptimization)

I read in another forum it is not recommended to use discard in /etc/fstab.
I took the cronjob/weekly option.

I just mentioned it for completeness. Nohting else was changed on the system
and this issue was not there before the problem observed (before moving to
the ssd).

I think it might be something hanging on boot. Could be that something was
broken when moving the system - I used the classical tar cf - | (cd ...;
tar xf -) method. I can't imagine it is something wrong with it.

thank you in advance



Re: NFS 4 id mapping does not work on auto mount

2017-01-08 Thread Mini Trader
So for whatever reason. It seems that there is a slight delay after boot
for the ids to be pulled. They come after around 10 minutes or so.

Issuing nfsidmap -c will cause them to be loaded immediately.

On Sat, Jan 7, 2017 at 2:40 PM Mini Trader  wrote:

> Hello all,
>
> I am having some issues with ID mapping.
>
> The behavior that I notice is as follows.
>
> 1. If I mount via /etc/fstab when automount is enabled, then I have no id
> mapping
> 2. If I mount after boot via mount -a (fstab contains noauto entry) my id
> mapping is correct
>
> Client is running:
>
> Linux backup 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19)
> x86_64 GNU/Linux
>
> Any thoughts on what this might be?  Something with timing or order.
>
> Thanks.
>
>
>
>
>
>
>
>


Re: cannot register @forum

2017-01-08 Thread Keith Bainbridge
Oliver, sweethome


On the face of it, you have registered.  I doubt I'd have seen your notes
if you weren't.



Keith Bainbridge

0447667468

keithrbaugro...@gmail.com

Sent from my APad

On 9 Jan 2017 06:30, "sweethome"  wrote:

> cannot register in debian forum, whenever I am trying to register after
> filling the form , i am getting a message " your ip is black listed "
> without doing anything wrong with the website.!!! how to register, please
> let me know.
>
>


Re: systemd requires "plymouth" on server? (was: Systemd: no error but "maintenance mode")

2017-01-08 Thread David Wright
On Sun 08 Jan 2017 at 15:56:36 (+0100), Steffen Dettmer wrote:
> Hi,
> 
> main problem was the disk indeed! Apparently there was a typo in
> fstab, probably leading to a parse error (which isn't shown
> unfortunately) then the value "0" in the "pass" row for fsck
> apparently is ignored and "1" is assumed instead, BUT systemd does not
> call fsck! fsck parsed the line as intended (pass=0 -> no check), so
> is all fine.

Why would fsck parse /etc/fstab?

> I tested with pass=1, then fsck has correct error
> behavior and logs a clear error message. But systemd tries to do
> things itself and then the chain of bugs and odds start. Maybe systemd
> should be dropped until properly implemented (or superseeded).
> 
> I think actually this is the main bug: systemd uses /etc/fstab like
> fsck and friends do, but wrongly (differently). This even seems to be
> a known issue (google found quite a lot of related rants).
> 
> Does it make sense to submit a bug report at least for the most
> important bugs? Probably not, because the issues seem to be known
> already?

man fstab   in jessie is pretty long in the tooth (from the days of
lenny) and might have some clarification of how systemd scans it,
which does seem to differ from sysvinit's approach.

Similarly, both   man fstab   and   man mount   could benefit from
more gloss on (no)auto and nofail. Compare the terse "nofail"
entry with the following one on "relatime" which discusses
kernel versions.

How essential it was to read §5.6.1 in jessie's release notes!
I think they might usefully have added here a recommendation to
check /etc/fstab thoroughly for non-compliance with the stricter
behaviour of systemd. I got caught out by systemd's acting upon
cruft that sysv happily ignored as redundant.

A bug report would involve an explanation of exactly what you
think the bug is, without the words "apparently", "probably",
"assumed", "intended", "do things itself", etc.

> On Sun, Jan 8, 2017 at 2:56 PM, Steffen Dettmer
>  wrote:
> > Hi,
> >
> > I think I found some more information.
> >
> > In short:
> > "Failed at step exec spawning /bin/plymouth: no such file or directory"
> > but I have no clue why it is suddenly missing or suddenly required.
> > I found postings in the internet that simply installing plymouth seems
> > not to solve this issue.
> >
> > What can I do about this?
> > Any hints appreciated.
> >
> > In detail:
> > Google suggested "systemctl status". This shows "State: maintenance",
> > "Jobs: 0 queued", "Failed: 0 units" and some output looking like
> > pstree which tells me nothing.
> > Why "maintenance" when there are no fails?
> > Is it true that logging, debugging and troubleshooting still is not
> > implemented correctly in systemd?
> >
> > "systemctl --failed" shows "0 loaded units listed". According to man
> > page the command is supposed to list failed units, not loaded units,
> > so I'm not sure what is true. 0 fails would be good, 0 loaded probably
> > be bad. It could explain why I don't get syslog messages.
> >
> > I also found the command "journalctl -p 3 -xb". man page tells
> > something about a so-called "system journal". Man page references some
> > desktop stuff (freedesktop.org) and seems to be related to systemd as
> > well (seems all my recent issues are systemd issues -  hope it dies as
> > fast as upstart). Man page of systemd-journald.service suggests
> > systemd invented an own wheel called syslog which does not write to
> > /var/log? Man page mentions /var/log/journal/ files, but no such
> > directory exists.
> >
> > "journalctl -p 3 -xb" shows some information in red color, in reverse
> > order assuming the later the more important:
> > 1) "r8169 firmware: failed to load rtl_nic/rtl8168g-2.fw"
> > but eth0 is state UP, so should be fine. At least I should get a
> > normal local login prompt.
> >
> > 2) "Failed at step exec spawning /bin/plymouth: no such file or directory"
> > Google suggest this is some graphical whatever, so I think it would be
> > a bug if found on a server
> >
> > 3) "Dependency failed for local file systems"
> > sounds bad, but all file systems are there?
> >
> > 4) "Depencency failed for /mnt/grace"
> > /mnt/grace was used to mount a USB disk and of course the system must
> > not depend on it
> >
> > 5) "TImed out waiting to device dev-disk-by-\x2dlabel-Grace.device
> > I guess "\x2d" is just a funny systemd way to write "-".
> > This probably is the cause for 4) and 5).
> > I have no idea why systemd waits for this disk at all. As it noticed
> > it is not even connected. I assume this is systemds replacement of USB
> > automouter and that it is safe to ignore it.
> >
> > So only problem I can see is missing /bin/plymouth. Could it got lost
> > during apt-get ugrade? Shall I install it? I hope I don't need
> > graphical whatever, can it be disabled?
> >
> > Steffen
> 

Cheers,
David.



Re: Monitor switched off after resume from hibernation

2017-01-08 Thread David Wright
On Sun 08 Jan 2017 at 07:59:39 (+0100), solitone wrote:
> On Saturday, January 7, 2017 1:35:07 PM CET David Wright wrote:
> > you could go on to combine it with the
> > hibernation process to make sure that the monitor was on just before
> > hibernation started. (There might be some sort of serialisation
> > required to make sure the two actions occur in the right order. You
> > don't want a race.)
> 
> What sort of serialisation are you referring to? I tried with the following 
> script, but won't work:
> 
> $cat /usr/lib/systemd/system-sleep/screen_hack_hibernate
> 
> if [ "$2" = "hibernate" ]; then
> case "$1" in
> pre)
> xset -display :0 dpms force on
> ;;
> esac
> fi
> 
> I thought it would be run just before hibernate (it's the same technique I 
> use 
> to unload the driver of my wifi adapter before hibernate, to prevent some 
> other 
> network issues I had) , but it doesn't.

I can only answer you in the vaguest terms. I thought you might add a
service that has to run before hibernate, and it would contain a
Before= (or hibernate an After= ) line to make sure that turning on
the monitor preceeded the hibernation.

If you manage this, perhaps with others' help, you'll be ahead of me
on the systemd learning curve.

BTW I haven't bothered to respond to Stefan Monnier's contribution.
I can imagine scenarios that might cause power consumption when a
machine is off (like network cards running to watch for magic WoL
packets, and things like that), but a machine in hibernation should
cope with a power cut. In any case, I support your expectation that
using sleep/hibernate should not involve compromising monitors'
power-saving behaviour.

Cheers,
David.



GNU C Library version

2017-01-08 Thread Mike

Hi,

Firstly thanks to everyone for their time and effort in coming up with 
and maintaining  these fantastic alternatives to Windows, its very much 
appreciated. I have been using Ubuntu and other Linux based operating 
systems for number of years now, and will never return to Windowsno 
way !
My knowledge of Linux is quite limited, I am more of a open the box and 
plug and play type user ( maybe I should learn more ) !
I write to you in the hope that you can explain to me ( in plain English 
please ) the unstable issue in the enclosed attachment   C Library  GNU 
C Library version ( Ubuntu GLIBC 2.24-3 Ubuntu 2 ) 2.24 ( unstable )
I suppose my question is ..if this is unstable why is it been released 
as part of the download for the current version of Ubuntu ?


Sincere thanks for your time.

Kind regards

Mike.
Title: HardInfo (0.5.1) System Report


ComputerOperating System
Version
KernelLinux 4.8.0-32-generic (x86_64)
Compiled#34-Ubuntu SMP Tue Dec 13 14:30:43 UTC 2016
C LibraryGNU C Library version (Ubuntu GLIBC 2.24-3ubuntu2) 2.24 (unstable)
Default C CompilerGNU C Compiler version 6.2.0 20161005 (Ubuntu 6.2.0-5ubuntu12) 
DistributionUbuntu 16.10
Current Session
Computer Namemike-MS-7693
User Namemike (Mike)
Home Directory/home/mike
Desktop EnvironmentUnity (ubuntu)
Misc
Uptime2 hours, 54 minutes
Load Average0.86, 0.51, 0.52


Re: GNU C Library version

2017-01-08 Thread David Wright
On Mon 09 Jan 2017 at 01:05:35 (+), Mike wrote:
> Hi,
> 
> Firstly thanks to everyone for their time and effort in coming up
> with and maintaining  these fantastic alternatives to Windows, its
> very much appreciated. I have been using Ubuntu and other Linux
> based operating systems for number of years now, and will never
> return to Windowsno way !
> My knowledge of Linux is quite limited, I am more of a open the box
> and plug and play type user ( maybe I should learn more ) !
> I write to you in the hope that you can explain to me ( in plain
> English please ) the unstable issue in the enclosed attachment   C
> Library  GNU C Library version ( Ubuntu GLIBC 2.24-3 Ubuntu 2 ) 2.24
> ( unstable )I suppose my question is ..if this is unstable why
> is it been released as part of the download for the current version
> of Ubuntu ?

The fact that you write "if this is unstable" rather than "if this is
in 'unstable' " might suggest a misunderstanding of "unstable" in
Debian parlance. Take a look at
https://www.debian.org/releases/
where you'll see that "unstable" is a label, not a state of
instability. 2.19 is the version in stable=jessie because that was
the version around when jessie went through the testing→frozen→stable
release process.

> Sincere thanks for your time.

No problem. Note that some people might not like answering ubuntu
questions here. Come back if I've misunderstood your question.

Cheers,
David.



Re: NTP insecure defaults

2017-01-08 Thread Celejar
On Sat, 7 Jan 2017 09:30:55 -0200
Henrique de Moraes Holschuh  wrote:

...

> For client-only, openntpd is likely a better choice, yes.  Better yet,
> use "chrony", which is optimized for desktop/laptops (which get
> disconnected/powered off/suspended often).
> 
> ntp - time servers, high-precision time clients.
> opentpd - always-on medium-precision time clients.
> chrony - everything else.

Huh - I had given up on chrony about 8 years ago, due to the breakage
caused by bug #463518, but it looks like that got fixed (after a couple
of years of being broken), so I'm going to give it another whirl.

Celejar



Fresh install gives no graphical login

2017-01-08 Thread Tama McGlinn
Dear Debian volunteers,

I hope you can help me with a problem I've been experiencing since Debian
Jessie; After doing a new installation, debian boots, but only presents me
with a tty1 login screen, and no graphical session started. Here's what
I've tried so far:

-Different versions of debian: netinstall vs full CD, with and without
live, with and without nonfree, amd64 or i386 (it's an i7 I'm trying to
install to; I've done lots of googling and found many people asking how to
tell architecture type, but no real answers, so I'm going to stick with my
guess that amd64 is for 64 bit computers, and i386 is for 32 bit computers,
and all the rest are for uncommon architectures that I will never need.) -
that gives 16 possibilities, of which I have tried about half but every
option gives the same result.

-Different Methods of putting the iso on the usb stick: using `dd
if=isofile.iso of=/dev/sdc; sync` (after checking that's the one with
gparted or fdisk -l) ; right clicking the isofile and choosing "open with
disk image writer" and "restoring" to the usb stick ; using mkusb(-dus).
I'm doing this because my previous way, using unetbootin, is said to be
obsolete for the latest version of debian, and because it wasn't working.
(the error message led me to the article or question where I found it was
obsolete)

-Searching for other people with this problem; just a few results: Tried
`startx` and `xstart` - programs don't exist. `grep EE /var/log/Xorg.0.log`
that file does not exist on the fresh install, it does on all my other
debian jessie installs which do work.

-Tried with 2 usb sticks, these have been used in the past to install
debian jessie to the same computer, (both of them - I install often) so I
don't know what is different but it's very unlikely both usb sticks have
become faulty.

I have a current workaround, which is to dd my current installation onto
the new harddisk, but I really want to have a clean install, which should
go through the installer.

I hope someone here can help me; the documentation is not very clear on how
to "write the iso to usb" and I suspect that is what I have done
incorrectly in this case.

Kind regards,
Tama


Failure searching forfile known to exist

2017-01-08 Thread Richard Owlett

Environment: Jessie with Mate DE
Background: Doing an atypical install of SeaMonkey using the 
generic Linux version.


I could not remember where "profiles.ini" was stored. As my 
reference information was on another system, it appeared easier 
to use the search function of the file manager.


I chose "file system" as starting point and entered 
"profiles.ini" in the search bar.

No success whether logged in as a normal user or as root.

The file DOES exist.
the complete path is
/home/richard/.mozilla/seamonkey/profiles.ini

A little experimentation demonstrated that the apparent trigger 
was that the target file was in a "hidden" folder.
As the file manager preferences were set to display hidden files 
and folders, I expected search to actually SEARCH!


Is this a bug or a "feature"?
Is there a work-around?

TIA



Re: Fresh install gives no graphical login

2017-01-08 Thread Richard Owlett

On 1/8/2017 10:10 PM, Tama McGlinn wrote:

Dear Debian volunteers,

I hope you can help me with a problem I've been experiencing since Debian
Jessie; After doing a new installation, debian boots, but only presents me
with a tty1 login screen, and no graphical session started. Here's what
I've tried so far:

-Different versions of debian: netinstall vs full CD, with and without
live, with and without nonfree, amd64 or i386 (it's an i7 I'm trying to
install to; I've done lots of googling and found many people asking how to
tell architecture type, but no real answers, so I'm going to stick with my
guess that amd64 is for 64 bit computers, and i386 is for 32 bit computers,
and all the rest are for uncommon architectures that I will never need.) -
that gives 16 possibilities, of which I have tried about half but every
option gives the same result.

-Different Methods of putting the iso on the usb stick: using `dd
if=isofile.iso of=/dev/sdc; sync` (after checking that's the one with
gparted or fdisk -l) ; right clicking the isofile and choosing "open with
disk image writer" and "restoring" to the usb stick ; using mkusb(-dus).
I'm doing this because my previous way, using unetbootin, is said to be
obsolete for the latest version of debian, and because it wasn't working.
(the error message led me to the article or question where I found it was
obsolete)

-Searching for other people with this problem; just a few results: Tried
`startx` and `xstart` - programs don't exist. `grep EE /var/log/Xorg.0.log`
that file does not exist on the fresh install, it does on all my other
debian jessie installs which do work.

-Tried with 2 usb sticks, these have been used in the past to install
debian jessie to the same computer, (both of them - I install often) so I
don't know what is different but it's very unlikely both usb sticks have
become faulty.

I have a current workaround, which is to dd my current installation onto
the new harddisk, but I really want to have a clean install, which should
go through the installer.

I hope someone here can help me; the documentation is not very clear on how
to "write the iso to usb" and I suspect that is what I have done
incorrectly in this case.

Kind regards,
Tama



Due to bandwidth limitations I purchase DVD sets rather than 
downloading files.
However your description resembles I problem I had several years 
ago when ordering a live DVD. The description was unclear and I 
had erroneously assumed that all desktops were available on a 
single Live DVD. Of course the one I got hadn't specified a 
specific desktop as it was the CLI DVD ;)


What file did you download? from where?
Have you tried downloading by clicking on the box in upper right 
corner of

https://www.debian.org ?
HTH




Re: NTP insecure defaults

2017-01-08 Thread Mart van de Wege
Michael Luecke  writes:

> On 01/07/2017 09:33 AM, Mart van de Wege wrote:
>> Turns out the Debian default is indeed to provide time service if you
>> install NTP. Shouldn't that be limited to localhost only, so that an
>> admin must deliberately open up the service if they want to provide NTP
>> service to the outside world?
>
> Did you install any package that suggested or depended on the ntp
> package? Because on my system, the ntp package is not installed. ntp
> is handled by systemd-timesyncd. So the current Debian installer does
> not install the ntp by default in my opinion.
>
While I like systemd and its related projects, I have not yet switched
to systemd-timesyncd.

And I was not implying Debian installs ntp by default, merely that the
package comes with IMO insecure defaults.

> I downloaded the ntp_4.2.6.p5+dfsg-7+deb8u2_amd64 package and looked
> into the /etc/ntp.conf and it is restricted to 127.0.0.1 and ::1 by
> default.
>
>> I thought of opening a bug, but I'd like a second opinion
>> first. Thoughts anyone?
>
> I think you should give us a little more details before filing a bug
> report (what did you install, which files did you change, ...).
>
See, that's why I asked for a second opinion.

I explicitly installed the ntp package, and mine came with this as
default:

# By default, exchange time with everybody, but don't allow configuration.
restrict -4 default kod notrap nomodify nopeer noquery limited
restrict -6 default kod notrap nomodify nopeer noquery limited

I commented these out, and left the next stanza, which *is* a
restriction to localhost.

Mart

-- 
"We will need a longer wall when the revolution comes."
--- AJS, quoting an uncertain source.



Aw: Bash different behaviour of read / strings in jessie versus stretch (regression?)

2017-01-08 Thread foo fighter
Hi,

there is further different behaviour (error exit in jessie, no exit in 
stretch), I posted in debian-devel.

https://lists.debian.org/debian-devel/2017/01/msg00331.html

Yours lopiuh



Re: NTP insecure defaults

2017-01-08 Thread Mart van de Wege
Henrique de Moraes Holschuh  writes:

>
> For client-only, openntpd is likely a better choice, yes.  Better yet,
> use "chrony", which is optimized for desktop/laptops (which get
> disconnected/powered off/suspended often).
>
> ntp - time servers, high-precision time clients.
> opentpd - always-on medium-precision time clients.
> chrony - everything else.
>
This is good to know. I fixed the open configuration myself, but next
time I know to install a different package if I want only to sync my
local time and not provide time service myself.

Mart

-- 
"We will need a longer wall when the revolution comes."
--- AJS, quoting an uncertain source.