Re: Installer can't find network interface on Intel NUC BOXNUC8i3BEH1

2019-02-13 Thread Rick Thomas



> On Feb 13, 2019, at 6:51 PM, Rick Thomas  wrote:
> 
> 
> 
>> On Feb 13, 2019, at 5:47 PM, Ben Hutchings  wrote:
>> 
>> On Wed, 2019-02-13 at 16:17 -0500, Laurent Dumont wrote:
>>> I'm not sure if it's the exact same case but I had the same issue with a
>>> more recent motherboard. Debian failed to detect the network card with the
>>> E1000 drivers.
>>> 
>>> I tried an iso with the non free repo without success.
>>> 
>>> A base Ubuntu iso install was able to detect and configure the network
>>> driver.
>>> 
>>> I'll see if I can find the adapter version. It was an Intel based adapter.
>> [...]
>> 
>> Unfortunately the various chips supported by e1000e are all subtly
>> different and each new chip seems to need extra code in the driver. 
>> Debian 9 still has Linux 4.9 and we haven't backported those driver
>> changes.
>> 
>> There is supposed to be an optional installer build that uses a newer
>> kernel version, but that hasn't officially happened yet.
>> 
>> At this point you might be better off using the alpha release of the
>> installer for Debian 10 "buster".
>> 
>> Ben.
>> 
>> -- 
>> Ben Hutchings
>> When in doubt, use brute force. - Ken Thompson
> 
> Thanks, Ben!
> 
> I’ll give that a try!
> Rick

That works!  I used the amd64 “alpha5” image. I had to install the non-free 
firmware to get the wifi to work, but I probably would have done that anyway!

Thanks for your help!
Rick



Re: Swap space choice on a SSD <- Current best practice on?

2019-02-13 Thread Pascal Hambourg

Le 14/02/2019 à 03:14, Curt Howland a écrit :


I also put in ramdisk options for /tmp in /etc/fstab
You mean tmpfs, not ramdisk. Nobody sane would prefer ramdisk over tmpfs 
for /tmp.




Re: Swap space choice on a SSD <- Current best practice on?

2019-02-13 Thread David Christensen

On 2/13/19 1:28 PM, Andy Smith wrote:

On Wed, Feb 13, 2019 at 01:14:36PM -0800, David Christensen wrote:

A swap partition is faster than a swap file.


Has something changed in this regard since kernel version 2.6 then?

http://lkml.iu.edu/hypermail/linux/kernel/0507.0/1690.html


I do not follow Linux kernel development.  Apparently, people wanted 
faster swap files badly enough to implement optimizations in kernel 2.6. 
 I can only wonder how much complexity and KLOC are required (overall 
and per file system), if all Linux file systems support it, and are 
there benchmarks?



David



Re: Swap space choice on a SSD <- Current best practice on?

2019-02-13 Thread David Christensen

On 2/13/19 1:23 PM, Dan Ritter wrote:

David Christensen wrote:

On 2/13/19 6:11 AM, Dan Ritter wrote:

If you want maximum SSD longevity, increase the amount of space that
the SSD can use for remapping by never writing to some amount of
space. Easiest is to not fill the disk with partitions -- leave 5-10%
empty.


AFAIK over-provisioning has no effect on longevity -- longevity is
proportional to total number of cells times rated erase/ write cycles
per cell divided by write throughput.


But, over-provisioning can improve write performance:

https://en.wikipedia.org/wiki/Write_amplification#Over-provisioning


Effective longevity depends on the number of times a block is
erased and written to. You can reduce that over the course of an
SSD's lifetime by limiting the space you think you have
available.

From the article you cited:

"Over-provisioning often takes away from user capacity, either
temporarily or permanently, but it gives back reduced write
amplification, increased endurance, and increased performance."

Increased endurance is increased longevity.


SSD manufacturers taking away part of the capacity and then telling us 
the drive has increased endurance measured against the reduced size is 
marketing speak.  (Similar rant for kB, MB, GB, etc..)



I use the term "over-provisioning" in the context of this mailing list 
-- e.g. what we can do as Debian users (and system administrators):


"Furthermore, if any SSD is set up with an overall partitioning layout 
smaller than 100% of the available space, that unpartitioned space will 
be automatically used by the SSD as over-provisioning as well."



Whether you partition the first 90% of an SSD and write X blocks at 
random intervals over some time period T, or partition 100% and do the 
same, the number of Program/ Erase (P/E) cycles will be the same.  (But 
the timing/ performance of clustered writes may differ.)  When X gets 
large enough, the drive will eventually fail.  I would call that X the 
endurance of the drive.  (Intel converts it to a MTBF of 1,200,000 hours 
for my Series 520 SSD's.)



So, over-provisioning *by Debian users* has no effect on longevity.


David



Re: Installer can't find network interface on Intel NUC BOXNUC8i3BEH1

2019-02-13 Thread Rick Thomas



> On Feb 13, 2019, at 5:47 PM, Ben Hutchings  wrote:
> 
> On Wed, 2019-02-13 at 16:17 -0500, Laurent Dumont wrote:
>> I'm not sure if it's the exact same case but I had the same issue with a
>> more recent motherboard. Debian failed to detect the network card with the
>> E1000 drivers.
>> 
>> I tried an iso with the non free repo without success.
>> 
>> A base Ubuntu iso install was able to detect and configure the network
>> driver.
>> 
>> I'll see if I can find the adapter version. It was an Intel based adapter.
> [...]
> 
> Unfortunately the various chips supported by e1000e are all subtly
> different and each new chip seems to need extra code in the driver. 
> Debian 9 still has Linux 4.9 and we haven't backported those driver
> changes.
> 
> There is supposed to be an optional installer build that uses a newer
> kernel version, but that hasn't officially happened yet.
> 
> At this point you might be better off using the alpha release of the
> installer for Debian 10 "buster".
> 
> Ben.
> 
> -- 
> Ben Hutchings
> When in doubt, use brute force. - Ken Thompson

Thanks, Ben!

I’ll give that a try!
Rick



Re: Swap space choice on a SSD <- Current best practice on?

2019-02-13 Thread Curt Howland
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256


One of the things I do with an SSD is turn down "swappiness" to a 
minimum.

In /etc/sysctl.d/custom.conf

I put the following lines:

vm.swappiness = 0
vm.vfs_cache_pressure = 40
vm.dirty_background_ratio = 10
vm.dirty_ratio = 40

There are also a bunch of networking defaults for IPv4 and v6 for 
security and simplicity, but this is about SSD wear and swap space. A 
swap partition that is simply never written to never wears out.

I also put in ramdisk options for /tmp in /etc/fstab in order to 
reduce disk writes.

Curt-

- -- 
You may my glories and my state dispose,
But not my griefs; still am I king of those.
 --- William Shakespeare, "Richard II"

-BEGIN PGP SIGNATURE-

iHUEAREIAB0WIQTaYVhJsIalt8scIDa2T1fo1pHhqQUCXGTPAgAKCRC2T1fo1pHh
qd6BAP9S86HeF/lA69fSHACF1dPFLRRbM2rKMZUQkcVslWcCRgEAiBXnP41B+hUS
d/01FE0tUlqFFxh7z9axEEjGfOyMv6o=
=visj
-END PGP SIGNATURE-



Re: Installer can't find network interface on Intel NUC BOXNUC8i3BEH1

2019-02-13 Thread Ben Hutchings
On Wed, 2019-02-13 at 16:17 -0500, Laurent Dumont wrote:
> I'm not sure if it's the exact same case but I had the same issue with a
> more recent motherboard. Debian failed to detect the network card with the
> E1000 drivers.
> 
> I tried an iso with the non free repo without success.
> 
> A base Ubuntu iso install was able to detect and configure the network
> driver.
> 
> I'll see if I can find the adapter version. It was an Intel based adapter.
[...]

Unfortunately the various chips supported by e1000e are all subtly
different and each new chip seems to need extra code in the driver. 
Debian 9 still has Linux 4.9 and we haven't backported those driver
changes.

There is supposed to be an optional installer build that uses a newer
kernel version, but that hasn't officially happened yet.

At this point you might be better off using the alpha release of the
installer for Debian 10 "buster".

Ben.

-- 
Ben Hutchings
When in doubt, use brute force. - Ken Thompson




signature.asc
Description: This is a digitally signed message part


Re: editores html encontrados em pesquisa

2019-02-13 Thread Sinval Júnior
Daniel, não sei qual sua intenção com os editores. A verdade que para
desenvolviemto ninguém usa mais esses geradores de HTML para todo mundo
acaba sempre usando um Framework CSS, tipo Bootstrap [1], Semantic [2].





1 - https://getbootstrap.com/
2 - https://semantic-ui.com/



Ao encaminhar esta mensagem, por favor:
1 - Apague meu endereço eletrônico;
2 - Encaminhe como Cópia Oculta (Cco ou BCc) aos seus destinatários.
Dificulte assim a disseminação de vírus, spams e banners.

#=+
#!/usr/bin/env python
nome = 'Sinval Júnior'
email = 'sinvalju arroba gmail ponto com'
print nome
print email
#==+


Em qua, 13 de fev de 2019 às 10:32, Daniel Roma <
vendedor.softwareli...@gmail.com> escreveu:

> ola pessoal.
>
> fiz uma pesquisa no portal software livre, do wikipedia, e encontrei
> alguns poucos editores de html, a mairoria deles em inglês.:
>
> https://en.wikipedia.org/wiki/Category:Free_HTML_editors
>
> não sabia que existiam tantos,o universo de software livre é novo para
> mim. vou instalar o Bluefish  no momento, para aprender a mexer no codigo
> em html.
>
> com o tempo vou olhar os outros no link acima, e ler, tambem me ajuda no
> aprendizado do ingles.
>
> obrigado
>
>


Re: OT: Current_Pending_Sector on /dev/sd?

2019-02-13 Thread Pascal Hambourg

Le 13/02/2019 à 15:01, Alexander V. Makartsev a écrit :



IMO, it's ok for disk devices to develop unreadable blocks (bad blocks),


No it's not ok. Unreadable blocks means lost data.


Internal firmware of the disk takes care of bad blocks, marks them
internally and reallocates them. (makes sure that next read\write
request to that bad block will be redirected to a safe block)


The next *successful* read/write.

At least this is how things should work. But in my experience, bad 
blocks are not reallocated so easily.




Re: OT: Current_Pending_Sector on /dev/sd?

2019-02-13 Thread Pascal Hambourg

Le 13/02/2019 à 14:59, Dan Ritter a écrit :

basti wrote:

hello,
I have a raid6 with 4 disks. 2 of them show Current_Pending_Sector 1.

(...)

A small number in CPS is fine.


No it's not fine. It means that the the host requested to read 
unreadable data, so useful data has been lost.


"Offline uncorrectable" also means that some data are unreadable, but 
the host did not request to read them yet so no useful data may have 
been lost.



If it starts going up, or the
reallocated sector count starts increasing


Reallocated sectors are fine. It means that data could be moved to spare 
sectors. No data have been lost.




Re: Swap space choice on a SSD <- Current best practice on?

2019-02-13 Thread Andy Smith
Hello,

On Wed, Feb 13, 2019 at 04:23:56PM -0500, Dan Ritter wrote:
> "Over-provisioning often takes away from user capacity, either
> temporarily or permanently, but it gives back reduced write
> amplification, increased endurance, and increased performance."
> 
> Increased endurance is increased longevity.

That is also my understanding and matches many articles advising how to
choose the best enterprise SSD for a particular workload. However, I
know that SSDs are a lot more "black box" than your typical HDD so I
think especially with consumer devices it could be hard to generalise
and reason about. At that level the device specs often do not specify
numbers for "terabytes written" or "drive writes per day".

It can also be surprising sometimes how little is written. For example,
I have some servers with flash memory for their operating system
install, with data on other storage:

https://www.supermicro.com/products/nfo/SATADOM.cfm

At the 16GB capacity these offer only 17TB of writes over 5 years and I
was a bit worried, so I was thinking of spending some effort making sure
that things which are regularly doing writes do so to a RAM disk
instead.

Luckily there's a SMART attribute (241) you can use to tell how much has
been written to the drive to date and when I checked that I found the
servers were typically writing only ~14GiB per month. So that would take
about 100 years to reach 17TB! Of course, the 5 year warranty covers
other factors too.

It all depends on use case, as clearly there are uses that are
write-intensive which would burn through 17TB in a matter of hours. I do
not put swap on these devices. Measuring is still essential in my view,
but things are indeed a lot easier than they were a decade ago.

Cheers,
Andy

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



Re: Widevine werkt niet meer in Firefox-esr

2019-02-13 Thread Dirk Ruijne
Dag Paul,

Paul van der Vlis schreef op di 12-02-2019 om 01:14 [+0100]:
> Op 06-02-19 om 09:46 schreef Paul van der Vlis:
> > Hoi,
> > 
> > Onlangs melde ik dat npostart.nl niet meer functioneerde.
> > 
> > In de tussentijd is er een nieuwe versie van Firefox-esr gekomen in
> > Debian, en er is wat veranderd. Nu wordt er een poging gedaan
> > Widevine
> > te installeren (gele balk boven), maar dit duurt eindeloos en lukt
> > niet.
> > 
Ik kreeg deze gele balk ook. Maar blijkbaar is het bij mij wel gelukt.
De gele balk is verdwenen en NPOstart doet het weer.

Groeten,

Dirk



Re: Swap space choice on a SSD <- Current best practice on?

2019-02-13 Thread Michael Stone

On Wed, Feb 13, 2019 at 01:14:36PM -0800, David Christensen wrote:

AFAIK over-provisioning has no effect on longevity -- longevity is
proportional to total number of cells times rated erase/ write cycles
per cell divided by write throughput.


In the absence of trim, restricting the logical capacity of the drive 
ensures a larger pool of cells known to the drive to be unused and 
available for wear leveling. Otherwise, if you write to a cell the drive 
has to always preserve the data in that cell even if you later erase the 
file you wrote there (because the drive doesn't know it was erased).  
This is essentially what the drive manufacturers do: they build a drive 
with capacity N but sell it as N-S where S is the amount of spare 
capacity held in reserve for wear leveling and to allow for cells to be 
removed from service as they reach end of life. In general, the more 
expensive the drive, the more it is overprovisioned to increase the 
longevity of the device.


On modern SSDs in light duty the difference is probably negligeable, 
especially if you occasionally fstrim to communicate how much of the 
drive is actually unused.




Re: Swap space choice on a SSD <- Current best practice on?

2019-02-13 Thread Andy Smith
Hello,

On Wed, Feb 13, 2019 at 01:14:36PM -0800, David Christensen wrote:
> A swap partition is faster than a swap file.

Has something changed in this regard since kernel version 2.6 then?

http://lkml.iu.edu/hypermail/linux/kernel/0507.0/1690.html

Cheers,
Andy

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



Re: Swap space choice on a SSD <- Current best practice on?

2019-02-13 Thread Dan Ritter
David Christensen wrote: 
> On 2/13/19 6:11 AM, Dan Ritter wrote:
> > If you want maximum SSD longevity, increase the amount of space that
> > the SSD can use for remapping by never writing to some amount of
> > space. Easiest is to not fill the disk with partitions -- leave 5-10%
> > empty.
> 
> AFAIK over-provisioning has no effect on longevity -- longevity is
> proportional to total number of cells times rated erase/ write cycles
> per cell divided by write throughput.
> 
> 
> But, over-provisioning can improve write performance:
> 
> https://en.wikipedia.org/wiki/Write_amplification#Over-provisioning

Effective longevity depends on the number of times a block is
erased and written to. You can reduce that over the course of an
SSD's lifetime by limiting the space you think you have
available.

>From the article you cited:

"Over-provisioning often takes away from user capacity, either
temporarily or permanently, but it gives back reduced write
amplification, increased endurance, and increased performance."

Increased endurance is increased longevity.

-dsr-



Re: Installer can't find network interface on Intel NUC BOXNUC8i3BEH1

2019-02-13 Thread Laurent Dumont
I'm not sure if it's the exact same case but I had the same issue with a
more recent motherboard. Debian failed to detect the network card with the
E1000 drivers.

I tried an iso with the non free repo without success.

A base Ubuntu iso install was able to detect and configure the network
driver.

I'll see if I can find the adapter version. It was an Intel based adapter.

On Wed, Feb 13, 2019, 4:12 PM Rick Thomas  I recently bought an intel NUC BOXNUC8i3BEH1.  You can see a description
> of the product at Newegg:
> https://www.newegg.com/Product/Product.aspx?Item=N82E16856102213
>
> I’m trying to install Debian Stretch on it
> debian-9.7.0-amd64-DVD-1.iso
> and (later)
> firmware-9.6.0-amd64-DVD-1.iso
>
> I made a bootable USB stick the usual way with dd to copy the iso to the
> stick.  It boots fine and loads some preliminary stuff.  When it gets to
> trying to identify the network interface, it fails at that task and drops
> into a screen with a long list of network drivers for me to choose from.
>
> I didn’t know what driver to load (the Newegg description says it uses an
> Intel networking chip, but I didn’t know which driver was needed by that
> chip)  So I aborted the installation.  On a hunch, I then tried to install
> Ubuntu (ubuntu-mate-18.04-desktop-amd64.iso) and that works fine.  The
> network comes up automatically.
>
> So, on Ubuntu, I typed “lspci -v” and searched the output for the network
> interface.  It says that the driver installed for that interface is
> “e1000e”.  A quick check on a working Stretch system shows that the e1000e
> driver *is* available in Debian.  So, I think to myself, “Problem solved —
> all I have to do is specify the e1000e driver and all will be well!”
>
> Not so fast…  I boot the Debian “firmware-9.6…” stick and it gets to the
> list of drivers.  I pick e1000e (with is there, along with a bunch of other
> Intel drivers) and go back to see if it now can see the interface.   Nope!
>  It still isn’t seeing the network.
>
>
> What am I missing?  What is Ubuntu doing to make this work that Debian
> doesn’t?
>
>
> Anybody got any suggestions???
>
> Thanks in advance,
> Rick
>
>


Re: Swap space choice on a SSD <- Current best practice on?

2019-02-13 Thread David Christensen

On 2/13/19 5:41 AM, deb wrote:

Again -- fussing with a full (not from a live .iso) 9.7 install; the
Debian GUI installer is suggesting a Swap partition on a Kingston
SSD.

#1 Given that it's not great to pound the same area of a SSD with 
writes; is it indeed still best practice to go with a swap partition

on a SSD rather than a swap FILE?

(Or is this a legacy spinning hard disk install suggestion?)


On 2/13/19 5:46 AM, Michael Stone wrote:

That's not a thing: the SSD will balance writes physically across
the drive regardless of where they are logically.


+1

https://en.wikipedia.org/wiki/Wear_leveling


On 2/13/19 5:41 AM, deb wrote:

#2 How DO you get the installer to go with a Swap FILE?

Just delete that recommended Swap partition during the install?

I looked; but did not run across any best practice docs for Swap on
SSD.


On 2/13/19 6:11 AM, Dan Ritter wrote:

The installer doesn't have that option...


+1 AFAIK


A swap partition is faster than a swap file.


Backing up, archiving, imaging, restoring, etc., swap files is
wasteful, but modifying those operations to exclude/ regenerate swap
files adds complexity (and risk).


In my SOHO environment, all my machines have a single system drive and
my bulk data is in a file server.  When I first started using SSD's and
USB flash drives as system drives, I was worried about swap wearing out
the drive.  So, I tried running without swap.  This worked until
memory got low, then the machines crashed.  So, I added memory and
reinstalled with 1 GB swap partitions.


On 2/13/19 6:11 AM, Dan Ritter wrote:

If you want maximum SSD longevity, increase the amount of space that
the SSD can use for remapping by never writing to some amount of
space. Easiest is to not fill the disk with partitions -- leave 5-10%
empty.


AFAIK over-provisioning has no effect on longevity -- longevity is
proportional to total number of cells times rated erase/ write cycles
per cell divided by write throughput.


But, over-provisioning can improve write performance:

https://en.wikipedia.org/wiki/Write_amplification#Over-provisioning


Other SSD considerations include choice of file system, mount options,
kernel tuning, etc.:

https://btrfs.wiki.kernel.org/index.php/FAQ

https://en.wikipedia.org/wiki/Trim_(computing)

mount(8)

https://cromwell-intl.com/open-source/performance-tuning/disks.html


David



Installer can't find network interface on Intel NUC BOXNUC8i3BEH1

2019-02-13 Thread Rick Thomas
I recently bought an intel NUC BOXNUC8i3BEH1.  You can see a description of the 
product at Newegg:
https://www.newegg.com/Product/Product.aspx?Item=N82E16856102213

I’m trying to install Debian Stretch on it
debian-9.7.0-amd64-DVD-1.iso
and (later)
firmware-9.6.0-amd64-DVD-1.iso

I made a bootable USB stick the usual way with dd to copy the iso to the stick. 
 It boots fine and loads some preliminary stuff.  When it gets to trying to 
identify the network interface, it fails at that task and drops into a screen 
with a long list of network drivers for me to choose from.

I didn’t know what driver to load (the Newegg description says it uses an Intel 
networking chip, but I didn’t know which driver was needed by that chip)  So I 
aborted the installation.  On a hunch, I then tried to install Ubuntu 
(ubuntu-mate-18.04-desktop-amd64.iso) and that works fine.  The network comes 
up automatically.

So, on Ubuntu, I typed “lspci -v” and searched the output for the network 
interface.  It says that the driver installed for that interface is “e1000e”.  
A quick check on a working Stretch system shows that the e1000e driver *is* 
available in Debian.  So, I think to myself, “Problem solved — all I have to do 
is specify the e1000e driver and all will be well!”

Not so fast…  I boot the Debian “firmware-9.6…” stick and it gets to the list 
of drivers.  I pick e1000e (with is there, along with a bunch of other Intel 
drivers) and go back to see if it now can see the interface.   Nope!   It still 
isn’t seeing the network.


What am I missing?  What is Ubuntu doing to make this work that Debian doesn’t?


Anybody got any suggestions???

Thanks in advance,
Rick



Re: How to Restart Networking in stretch

2019-02-13 Thread Kent West
On Wed, Feb 13, 2019 at 2:25 PM Greg Wooledge  wrote:

> On Wed, Feb 13, 2019 at 02:13:52PM -0600, Kent West wrote:
> > But, that leaves my second question unanswered:
> >
> > 2) What is the canonical current method in 2019 to [semi-]manually
> > configure networking in stretch? And is it documented anywhere? (My two
> > days of searching leads me to think "no". Or my google-fu really sucks.)
> >
> > I *thought* "/etc/network/interfaces" was being phased out (perhaps as
> part
> > of systemd or Network-Manager?). Then the web provides this answer then
> > that answer - "service...", "systemctl...", "ip...", "ifup...", "if
> up...",
> > and I'm confident some of these are deprecated or not preferred or apply
> in
> > Case X but not Case Y, etc. With "The Handbook" being out of date, is
> there
> > a definitive explanation/guide out there?
>
> It's not being phased out, at least to my knowledge.
>
> There are, unfortunately, at least three competing ways to configure
> network interfaces in Debian: /etc/network/interfaces, NetworkManager,
> and systemd-networkd.
>
> I know nothing about systemd-networkd, except that it is disabled by
> default, so I won't discuss that.  Someone else may feel free to talk
> about it.
>
> The other two are able to work in tandem.  Any interface definition
> in the /etc/network/interfaces file is authoritative and exclusive.
> NetworkManager will not touch that interface.
>
> If NetworkManager isn't installed, then other interfaces not mentioned
> in /e/n/i will simply be left unconfigured.  If NM is installed, then
> it will take control of any interfaces not configured by /e/n/i.
>
> NM is not installed by default with just the "Standard" task, but it
> *is* installed as a dependency of some, or perhaps all, of the desktop
> environment tasks.
>
> As far as I know, this is not new behavior; Debian has worked this way
> for at least a few releases.  You may think the handbook is "out of date",
> and perhaps it is for some things, but not for this one.
>
>
Thank you! That's a pretty good explanation. Had your explanation been in
the Handbook (unless I just missed it), I wouldn't have been so ready to
call a version 8 handbook "out of date" for a version 9.7 product.

-- 
Kent West<")))><
Westing Peacefully - http://kentwest.blogspot.com


Re: How to Restart Networking in stretch

2019-02-13 Thread Kent West
On Wed, Feb 13, 2019 at 12:08 PM David Wright 
wrote:

> On Tue 12 Feb 2019 at 22:49:13 (-0600), Kent West wrote:
> > stretch, 9.7
> >
> > I've duckduckgo'd for two days, but there seems to be no definitive
> answer
> > as to how networking is supposed to be configured in stretch. debian.org
> 's
> > link to "The Debian Administrator's Handbook" is for version 8, and talks
> > about deprecated tools like ifup/down, which aren't even installed by
> > default on stretch.
>
> Perhaps they spell deprecate differently, but I can only find one
> occurrence of the word, on page 224, referring to SSL.
>
> I can only find three references to ifupdown (pp. 150, 383, 396),
> none making any judgment on its use.
>

No, "The [out-of-date] Handbook" doesn't say that. But places like
https://linuxconfig.org/how-to-install-missing-ifconfig-command-on-debian-linux
say:

>
> The ifconfig command has been deprecated and thus missing by default on
> Debian Linux, starting from Debian stretch
>

As Greg Wooledge points out, I had confused "ifconfig" with "ifupdown".


> It's interesting that many people seem to think that networking
> behaves like a daemon, where you can just change the configuration
> file and then signal the daemon to reread the new file.
>

Probably because many people, including myself, don't know how networking
works.

> btw, NetworkManager (network-manager) is not installed.
>
> Same here. I think the installer gives you that when you install
> a Desktop Environment.
>
>
That's kind of my thinking also.

It is my understanding that NetworkManager doesn't try to manage interfaces
that are configured in /etc/network/interfaces. I think I kind of took that
to mean that "interfaces" was deprecated, just as the init-script system is
usable with systemd although deprecated.

Following that [wrong?] thinking, I'd think that the "canonical" tools for
network configuration would be NetworkManagerDE (NM) everywhere, but I
think I'm learning that it's ifupdown if you're not running X/, NM
otherwise.

> So, two questions:
> >
> > 1) Why can't I restore my networking after I stop it? How do I restore
> > networking?
>
> See above (when it works for you).
>
> Thanks! Greg helped me past this part.

> 2) What is the canonical current method in 2019 to [semi-]manually
> > configure networking in stretch? And is it documented anywhere? (My two
> > days of searching leads me to think "no". Or my google-fu really sucks.)
>
> I don't think you can have a "canonical" method because it depends on
> what sort of system you're installing.
>
> For a server, you probably want nothing more than the ifupdown that
> the d-i installs by default. Most people running a DE will likely take
> what's given to them; isn't that the point of a DE: why fight it.
> In between are people like me who prefer the lightest tools where
> possible, and so I use wicd (-curses) as a matter of course. It works
> well on the road where it's essential, but it also can be useful at
> home when I move machines around (altering whether they're wired
> or wireless'd).
>

Which, as pointed out above, is kind of the conclusion I'm coming to. I was
just hoping there was some documentation that explains this, instead of the
learner having to piece a correct piece of info from a 7-year old post with
an incorrect piece from a 11-year old post except if Condition A exists,
but not on Thursdays.


> Cheers,
> David.
>
>
Thanks! It's a complex thing, and every little bit helps.

-- 
Kent West<")))><
Westing Peacefully - http://kentwest.blogspot.com


Re: How to Restart Networking in stretch

2019-02-13 Thread Greg Wooledge
On Wed, Feb 13, 2019 at 02:13:52PM -0600, Kent West wrote:
> But, that leaves my second question unanswered:
> 
> 2) What is the canonical current method in 2019 to [semi-]manually
> configure networking in stretch? And is it documented anywhere? (My two
> days of searching leads me to think "no". Or my google-fu really sucks.)
> 
> I *thought* "/etc/network/interfaces" was being phased out (perhaps as part
> of systemd or Network-Manager?). Then the web provides this answer then
> that answer - "service...", "systemctl...", "ip...", "ifup...", "if up...",
> and I'm confident some of these are deprecated or not preferred or apply in
> Case X but not Case Y, etc. With "The Handbook" being out of date, is there
> a definitive explanation/guide out there?

It's not being phased out, at least to my knowledge.

There are, unfortunately, at least three competing ways to configure
network interfaces in Debian: /etc/network/interfaces, NetworkManager,
and systemd-networkd.

I know nothing about systemd-networkd, except that it is disabled by
default, so I won't discuss that.  Someone else may feel free to talk
about it.

The other two are able to work in tandem.  Any interface definition
in the /etc/network/interfaces file is authoritative and exclusive.
NetworkManager will not touch that interface.

If NetworkManager isn't installed, then other interfaces not mentioned
in /e/n/i will simply be left unconfigured.  If NM is installed, then
it will take control of any interfaces not configured by /e/n/i.

NM is not installed by default with just the "Standard" task, but it
*is* installed as a dependency of some, or perhaps all, of the desktop
environment tasks.

As far as I know, this is not new behavior; Debian has worked this way
for at least a few releases.  You may think the handbook is "out of date",
and perhaps it is for some things, but not for this one.



Re: How to Restart Networking in stretch

2019-02-13 Thread Kent West
On Wed, Feb 13, 2019 at 8:10 AM Greg Wooledge  wrote:

> On Tue, Feb 12, 2019 at 10:49:13PM -0600, Kent West wrote:
> > "The Debian Administrator's Handbook" is for version 8, and talks
> > about deprecated tools like ifup/down, which aren't even installed by
> > default on stretch.
>
> The ifupdown package has priority "important" and, as far as I know, it
> is installed by default.
>
> You might be confusing it with "ifconfig", which is in the net-tools
> package, which is *not* installed by default in stretch (a departure from
> previous releases).
>

"ifupdown" is indeed installed:

root@server-1:~# apt list ifupdown
Listing... Done
ifupdown/stable,now 0.8.19 amd64 [installed]

So you're right; I must've been confusing that package with "ifconfig".



> > But in trying to convert to a static address (by editing
> > /etc/network/interfaces), and then try to restart the network ("ip link
> set
> > dev enp0s3 down", then "...up")
>
> OK, let's back up a second.
>
> What was in the /etc/network/interfaces file *before* you edited it?  Was
> it configured for DHCP?  If so, you should bring the interface down
> *before*
> you edit the file, so that ifdown knows there is a DHCP client daemon
> running associated with this interface, that it should kill.
>
If you're currently configured for DHCP, and you edit the file before
> bringing down the interface, the DHCP client daemon will continue running
> (ifdown doesn't know about it, because you changed the file that would
> have told it).  Which means you would have to kill the DHCP client daemon
> yourself, either manually, or by rebooting.
>

I think this must've been my problem; I must've edited the interfaces file
before downing the interface, which confused the system. It works as
expected when I do it in the sequence you present below:


> So, the proper sequence is:
>
> 1) ifdown interfacename
> 2) edit /etc/network/interfaces
> 3) ifup interfacename
>



> What's in the /etc/network/interfaces file now?
>

roo@server-1:~# 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

# The primary network interface
allow-hotplug enp0s31f6
iface enp0s31f6 inet dhcp

But, as mentioned, if I "ifdown enp0s3", then make the above change, then
"ifup enpos3", I have working network. So this method you provide works;
thanks! (The other troubleshooting questions you asked, I'm bypassing, as
the basic problem has been solved.)

But, that leaves my second question unanswered:

2) What is the canonical current method in 2019 to [semi-]manually
configure networking in stretch? And is it documented anywhere? (My two
days of searching leads me to think "no". Or my google-fu really sucks.)

I *thought* "/etc/network/interfaces" was being phased out (perhaps as part
of systemd or Network-Manager?). Then the web provides this answer then
that answer - "service...", "systemctl...", "ip...", "ifup...", "if up...",
and I'm confident some of these are deprecated or not preferred or apply in
Case X but not Case Y, etc. With "The Handbook" being out of date, is there
a definitive explanation/guide out there?

Again, thanks for getting me beyond my snag!


-- 
Kent West<")))><
Westing Peacefully - http://kentwest.blogspot.com


Re: what are you using instead of bind9?

2019-02-13 Thread Lee
On 2/12/19, Andy Smith  wrote:
> Hi,
>
> On Tue, Feb 12, 2019 at 06:40:01PM -0500, Lee wrote:
>> What are people using these days to
>> 1. have dnssec enabled lookups
>> 2. filter external dns answers
>
> I use Unbound for resolvers.
>
> I understand that Unbound can do some RPZ-like things with its
> local-data and local-zone directives, but I've never played with RPZ so
> don't know if it can cover your use case.
>
> PowerDNS Recursor is another popular recursor. I have never used it,
> only the Auth server version, but I've found that to be high quality
> software so I'd certainly be willing to look at their Recursor product
> if I wasn't happy with Unbound. It seems to have RPZ support:

Assuming I'm looking at the correct graph
 - https://qa.debian.org/popcon.php?package=pdns-recursor
PowerDNS is trending down at ~400 users now.  Throw in an additional
filter for it's available on BSD, Linux & Windows and it looks like a
toss-up between bind & unbound.

Since I already know bind I'll stay with that.

Thanks for the info
Lee



Re: OT: Current_Pending_Sector on /dev/sd?

2019-02-13 Thread Claudio Kuenzler
On Wed, Feb 13, 2019 at 2:22 PM basti  wrote:

> hello,
> I have a raid6 with 4 disks. 2 of them show Current_Pending_Sector 1.
>

Hi Basti

are you using mdadm for the raid-6 or a hardware raid controller?


> The disks has warranty till Apr. 2019 so I decide to replace them.
>

If there's only 1 current pending sector it could be difficult to get a
full replacement. HDD's have spare sectors which are used in such events
and are (*should*) be capable to handle a few defect sectors. It doesn't
mean (yet) that the drive is defect.


>
> After I change the disk and install it on an other computer to overwrite
> with zero it the Current_Pending_Sector is gone.
>

Yes, I've seen this too a couple of months ago on a remote NAS server. I
probably had the same reaction as you: I couldn't believe it. Especially as
the Current_Pending_Sector went to 0 and Reallocated_Sectors and
Offline_Uncorrectable staid at the same value as before, too.


>
> What should I do? Whats our experience?
>

Continuously monitor your drive's SMART values and (if possible) store the
results in a database (RRD, Timeseries DB, you name it) to create graphs
from the values. You can use the check_smart.pl monitoring plugin as an
examle. This will show you if the number of defect sectors increase or if
they stay steady. If the bad sectors increase, it's just a matter of time
until the drive physically fails. You can see an example of such a graph
(rrd in this case) with increasing bad sectors over 5 weeks here:
https://www.claudiokuenzler.com/blog/469/multiple-several-ways-monitor-physical-hard-drive-disk

As helpful as SMART is, never rely 100% on it, as drives may also fail
without any bad values in SMART.


Re: Bug with soft raid?

2019-02-13 Thread Claudio Kuenzler
Hello Steve,

As some of the other responders already said, check your drives' SMART
values.
But a disk may fail without any indication in the SMART table. I've seen
this a couple of years ago and documented it here:
https://www.claudiokuenzler.com/blog/301/disk-failure-not-detected-by-smart-ata1-failed-command
The errors you've seen are also kind of similar as the ones I saw (although
there are a couple of years in between, so Kernel messages might be a bit
different now).

Long story short: It was indeed a defect hard drive causing the problems
(and log entries).

On Wed, Feb 13, 2019 at 7:20 PM David Christensen 
wrote:

> On 2/12/19 12:48 PM, David Christensen wrote:
> > I had a Linux md RAID0 (mirror) ...
>
> Correction -- RAID1 is mirror.
>
>
> David
>
>


Re: firefox does not redirect to login page

2019-02-13 Thread Charlie Gibbs

On Wed, 13 Feb 2019 06:39:14 -0800
Charlie Kravetz  wrote:

> On Wed, 13 Feb 2019 15:24:43 +0100
> Flo  wrote:
>
>> I have an old laptop which I set up yesterday. And since it's
>> old I only install the packages I need.
>>
>> Today I realized that I cannot login into an public hotspot.
>>
>> Up to now it worked in a way that I got redirected to the login page
>> where I had to click on the connect button. This does not happen now.
>>
>> It just says it cannot find the webpage.
>>
>> What package is necessary to make firefox able to redirect me to the
>> login page? What do I need to install?
>
> I had that issue with the latest firefox this weekend. I stayed at a
> hotel, and firefox would not redirect. I finally had to enter the
> url for the hotel login myself. Then firefox allowed the login.

A captive portal cannot redirect HTTPS requests.  I went around this
merry-go-round for some time before I figured it out.  What you need
is to go to a URL that won't redirect to HTTPS.  When I'm trying to
use a public hotspot, I go to a URL that I know won't redirect.
The captive portal kicks in, I do my login, and away I go.

A motel I stayed in last week actually had a note in their information
package telling Apple users to go to the motel's own home page (which
doesn't use HTTPS) before trying to do anything else.  So it's a known
problem - and one which the Evil Empire's browsers apparently manage
to circumvent somehow.

I'm using Seamonkey, BTW.

--
/~\  cgibbs@kltpzyxm.invalid (Charlie Gibbs)
\ /  I'm really at ac.dekanfrus if you read it the right way.
 X   Top-posted messages will probably be ignored.  See RFC1855.
/ \  HTML will DEFINITELY be ignored.  Join the ASCII ribbon campaign!



Re: Bug with soft raid?

2019-02-13 Thread David Christensen

On 2/12/19 12:48 PM, David Christensen wrote:

I had a Linux md RAID0 (mirror) ...


Correction -- RAID1 is mirror.


David



Re: How to Restart Networking in stretch

2019-02-13 Thread David Wright
On Tue 12 Feb 2019 at 22:49:13 (-0600), Kent West wrote:
> stretch, 9.7
> 
> I've duckduckgo'd for two days, but there seems to be no definitive answer
> as to how networking is supposed to be configured in stretch. debian.org's
> link to "The Debian Administrator's Handbook" is for version 8, and talks
> about deprecated tools like ifup/down, which aren't even installed by
> default on stretch.

Perhaps they spell deprecate differently, but I can only find one
occurrence of the word, on page 224, referring to SSL.

I can only find three references to ifupdown (pp. 150, 383, 396),
none making any judgment on its use.

> I've got a very minimal install of stretch. I used the network install
> .iso, and when I got to the "tasksel"-equivalent screen, I unchecked
> everything except the bottom-most "Standard system tools" (or whatever it
> says).

> When I boot into my system, it works as expected; I can ping google.com and
> 8.8.8.8, apt install more packages, etc.
> 
> But in trying to convert to a static address (by editing
> /etc/network/interfaces), and then try to restart the network ("ip link set
> dev enp0s3 down", then "...up") subsequent networking results in name
> resolution complaints or "network not available" complaints. Nor do any of
> the other methods I've tried work - "service network restart", "systemctl
> restart networking", "systemctl restart systemd-networkd",
> "/etc/init.d/networkng stop" then "...start".

It's interesting that many people seem to think that networking
behaves like a daemon, where you can just change the configuration
file and then signal the daemon to reread the new file.

Perhaps there's something to be said for ifup copying more of its
state, eg the file contents, into /run/network so that ifdown
knows what ifup did.

> I try a reboot. Still no go.
> 
> So I restore my interfaces file to DHCP, and reboot, and all is well.
> Until... I try to stop/start networking just to see if I can, using any of
> the methods above. A simple "if ... down" followed immediately by an "if
> ... up", without changing a thing between the two, results in the same
> error messages I had earlier, until I reboot.

Just so that you have a pattern against which to measure your own
network, here's what I see:

# 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

# The primary network interface
allow-hotplug enp2s0
iface enp2s0 inet dhcp
# 
# ifdown -v enp2s0
ifdown: configuring interface enp2s0=enp2s0 (inet)
/bin/run-parts --verbose /etc/network/if-down.d
run-parts: executing /etc/network/if-down.d/resolvconf
run-parts: executing /etc/network/if-down.d/upstart
run-parts: executing /etc/network/if-down.d/wpasupplicant
/sbin/dhclient -4 -v -r -pf /run/dhclient.enp2s0.pid -lf 
/var/lib/dhcp/dhclient.enp2s0.leases -I -df 
/var/lib/dhcp/dhclient6.enp2s0.leases enp2s0
Killed old client process
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/enp2s0/00:99:99:83:0e:66
Sending on   LPF/enp2s0/00:99:99:83:0e:66
Sending on   Socket/fallback
DHCPRELEASE on enp2s0 to 192.168.1.1 port 67
/bin/ip link set dev enp2s0 down
/bin/run-parts --verbose /etc/network/if-post-down.d
run-parts: executing /etc/network/if-post-down.d/avahi-daemon
run-parts: executing /etc/network/if-post-down.d/wireless-tools
run-parts: executing /etc/network/if-post-down.d/wpasupplicant

# 
# ifup -v enp2s0

ifup: configuring interface enp2s0=enp2s0 (inet)
/bin/run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/wireless-tools
run-parts: executing /etc/network/if-pre-up.d/wpasupplicant

/sbin/dhclient -4 -v -pf /run/dhclient.enp2s0.pid -lf 
/var/lib/dhcp/dhclient.enp2s0.leases -I -df 
/var/lib/dhcp/dhclient6.enp2s0.leases enp2s0
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/enp2s0/00:99:99:83:0e:66
Sending on   LPF/enp2s0/00:99:99:83:0e:66
Sending on   Socket/fallback
DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 19
DHCPREQUEST of 192.168.1.19 on enp2s0 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.19 from 192.168.1.1
DHCPACK of 192.168.1.19 from 192.168.1.1
bound to 192.168.1.19 -- renewal in 34116 seconds.
/bin/run-parts --exit-on-error --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
run-parts: executing /etc/network/if-up.d/avahi-daemon
run-parts: executing /etc/network/if-up.d/openssh-server
run-parts: executing /etc/network/if-up.d/upstart
run-parts: executing 

Re: firefox does not redirect to login page

2019-02-13 Thread Steve Kemp
> > > 
> > > Try going to http://192.168.1.1
> > 
> > I don't think one can assume that that's the correct address.
> 
> It's better if that is *not* a correct address. What we want is
> for the browser to make a request that won't be https, so that
> the router can hijack it to redirect to the login hotspot.

  http://neverssl.com/

  Is one site I have bookmarked.  To be honest any "big" site you've
 not visitted before is probably OK.  (i.e. So you don't have a cached
 HST setting, which would make a redirect to the TLS-version.)

Steve
-- 
https://steve.fi/



Re: WiFi without Network Manager

2019-02-13 Thread Ric Moore

On 2/13/19 9:14 AM, John Hasler wrote:
s better not to post "Thanks" to a busy mailing list.  If you must do

so please put "Thanks" in the subject line.


OR "solved", which is much more useful for the next guy. No need for 
"thanks" as "solved" is the ultimate goal for posterity. It's what I 
look for in a google search to click on. Ric




kmail - just a little problem

2019-02-13 Thread Hans
Hi folks, 

I am running into a little problem with kmail in plasma.

The problem is, that the column on the very left side (the one where the 
folders like "kmail-folder" are shown)  with the the definition "name" is very, 
very big (more than 4000 pixels wide). But I can not get it smaller, and there 
appeared a scrollbar below. 

I found no way to get rid of this and get the column smaller. It cannot be 
shifted in any way. If I add the other columns like "unread", "size" and 
"general", those can be made smaller and wider.

Any idea, how this behaviour appeared and how I can get rid of this?

Thank you for reading this message and for any help.

Best regards

Hans 




Re: firefox does not redirect to login page

2019-02-13 Thread Dan Ritter
David Wright wrote: 
> On Wed 13 Feb 2019 at 09:44:49 (-0500), Dan Ritter wrote:
> > Flo wrote: 
> > > Dear All,
> > > 
> > > I have an old laptop which I set up yesterday. And since it's old I only
> > > install the packages I need.
> > > 
> > > Today I realized that I cannot login into an public hotspot.
> > > 
> > > Up to now it worked in a way that I got redirected to the login page
> > > where I had to click on the connect button. This does not happen now.
> > > 
> > > It just says it cannot find the webpage.
> > > 
> > > What package is necessary to make firefox able to redirect me to the
> > > login page? What do I need to install?
> > > 
> > 
> > Try going to http://192.168.1.1
> 
> I don't think one can assume that that's the correct address.
> You're better off trying to connect to the router, so look
> at the output of   ip r   for the appropriate address (default).

It's better if that is *not* a correct address. What we want is
for the browser to make a request that won't be https, so that
the router can hijack it to redirect to the login hotspot.

-dsr-



Re: firefox does not redirect to login page

2019-02-13 Thread David Wright
On Wed 13 Feb 2019 at 09:44:49 (-0500), Dan Ritter wrote:
> Flo wrote: 
> > Dear All,
> > 
> > I have an old laptop which I set up yesterday. And since it's old I only
> > install the packages I need.
> > 
> > Today I realized that I cannot login into an public hotspot.
> > 
> > Up to now it worked in a way that I got redirected to the login page
> > where I had to click on the connect button. This does not happen now.
> > 
> > It just says it cannot find the webpage.
> > 
> > What package is necessary to make firefox able to redirect me to the
> > login page? What do I need to install?
> > 
> 
> Try going to http://192.168.1.1

I don't think one can assume that that's the correct address.
You're better off trying to connect to the router, so look
at the output of   ip r   for the appropriate address (default).

> It's not your browser; it's the public hotspot, which is trying
> to subvert https, and no longer can.

Cheers,
David.



Re: Conseils sur la mise à jour d'application maison développée avec Django

2019-02-13 Thread Daniel Caillibaud
Le 12/02/19 à 14:34, Olivier  a écrit :
> Avez-vous des conseils pour que les changements de version s'opèrent en
> douceur ?

Si tu prévois des évolutions du schéma de données, il faut impérativement
gérer des scripts d'updates.

Tu peux faire
- tu coupes
- tu passe ton script de mise à jour de la structure et déploie tes fichiers
- tu redémarres avec la nouvelle version

Mais souvent on coupe pas et ça se fait au démarrage de l'application :
- déployer les nouveaux fichiers de l'application
- lancer un reload qui devra gérer les étapes suivantes :

- je regarde dans la base de données quelle est le dernier update appliqué
- je regarde dans le dossier d'updates si y'en a un plus récent à appliquer
- si oui je le lance et quand il a fini je repars au début
- sinon je démarre vraiment l'application et je peux commencer à répondre
  aux requêtes 

Pour limiter les coupures sur des applis avec de grosses bases, on peut
gérer la notion de mises à jour non bloquantes (par ex un update qui va
ajouter un champ calculé, mais dont l'absence ne plante pas l'appli), tu
peux gérer cet aspect bloquant / non bloquant dans les étapes décrites
ci-dessus (si tous les updates qui restent à appliquer sont non-bloquants
tu peux démarrer quand même et les lancer en tâche de fond, mais en
séquentiel).

Pour la mise à jour sans modif de schéma, en général c'est rsync puis
redémarrage du serveur applicatif. Je suppose que django ne relit les
fichiers qu'au démarrage ou à leur premier appel et que ça pose pas de pb
si le rsync dure qq secondes.

-- 
Daniel

Moi, je ne me pose jamais aucune question. 
Je me demande d'ailleurs bien pourquoi…



Re: firefox does not redirect to login page

2019-02-13 Thread Charlie Kravetz
On Wed, 13 Feb 2019 15:24:43 +0100
Flo  wrote:

>Dear All,
>
>I have an old laptop which I set up yesterday. And since it's old I only
>install the packages I need.
>
>Today I realized that I cannot login into an public hotspot.
>
>Up to now it worked in a way that I got redirected to the login page
>where I had to click on the connect button. This does not happen now.
>
>It just says it cannot find the webpage.
>
>What package is necessary to make firefox able to redirect me to the
>login page? What do I need to install?
>
>Any help is appreciated.
>
>Thanks a lot.
>
>Regards,
>Flo
>

I had that issue with the latest firefox this weekend. I stayed at a
hotel, and firefox would not redirect. I finally had to enter the
url for the hotel login myself. Then firefox allowed the login.

-- 
Charlie Kravetz
Linux Registered User Number 425914
[http://linuxcounter.net/user/425914.html]
Never let anyone steal your DREAM.   [http://keepingdreams.com]



Re: (Alexander) Re: (Stuck! Fresh 9.6 install) iwlwifi-8625-26.ucode <- Can not find/what is it? Spot of help please?

2019-02-13 Thread Richard Hector
On 14/02/19 2:30 AM, deb wrote:
> Thank you Alexander.
> 
> I kinda like the idea of pulling the Intel wifi and just going with a
> Think Penguin free software wifi.
> 
> https://www.thinkpenguin.com/gnu-linux/penguin-wireless-n-usb-adapter-gnu-linux-tpe-n150usb
> 
> 
The one that says: "Debian 7, 8, & 9 require the installation of
firmware. See our support documentation for details."?

Looks like it needs non-free firmware (firmware-atheros) - until buster.

https://wiki.debian.org/ath9k_htc

Richard





signature.asc
Description: OpenPGP digital signature


Re: firefox does not redirect to login page

2019-02-13 Thread Dan Ritter
Flo wrote: 
> Dear All,
> 
> I have an old laptop which I set up yesterday. And since it's old I only
> install the packages I need.
> 
> Today I realized that I cannot login into an public hotspot.
> 
> Up to now it worked in a way that I got redirected to the login page
> where I had to click on the connect button. This does not happen now.
> 
> It just says it cannot find the webpage.
> 
> What package is necessary to make firefox able to redirect me to the
> login page? What do I need to install?
> 

Try going to http://192.168.1.1

It's not your browser; it's the public hotspot, which is trying
to subvert https, and no longer can.

-dsr-



Re: P2V Debian 9 with VMware Converter

2019-02-13 Thread Adam Weremczuk
Forgot to mention the source server was up and running the entire time, 
no down time.



On 13/02/19 14:06, Alexandre GRIVEAUX wrote:

It's hard to beat 20-30 seconds it takes to click and type into VMware
Converter and leave it running.
It works well for Debian 7, probably 8 as well but not 9 :(




Thanks Dan. Re: Swap space choice on a SSD <- Current best practice on?

2019-02-13 Thread deb

Thank you.

On 2/13/2019 9:11 AM, Dan Ritter wrote:

deb wrote:

On 2/13/2019 8:46 AM, Michael Stone wrote:

On Wed, Feb 13, 2019 at 08:41:33AM -0500, deb wrote:

#1 Given that it's not great to pound the same area of a SSD with
writes; is it indeed still best practice to go with a swap partition
on a SSD rather than a swap FILE?

That's not a thing: the SSD will balance writes physically across the
drive regardless of where they are logically.



OK, that's interesting.

I though the partition might physically lock a section of writes.

Is there a link that goes into that *partitions are not a boundary on
physical SSD writes* further?

For a spinning disk, your OS generally has control of what will
go where*. For an SSD, the incentive to not rewrite a sector
until absolutely necessary is so high that the geometry of the
disk is completely mythical. The SSD controller will pretend
that there are contiguous sectors for partitions to be in, but
they can all be remapped anywhere at any time.

If you want maximum SSD longevity, increase the amount of space
that the SSD can use for remapping by never writing to some
amount of space. Easiest is to not fill the disk with partitions
-- leave 5-10% empty.

*The disk may remap a known bad sector to a pool of reserve
sectors without the OS being told about it. Or not.


If I'm sure, I'll just let Debian partition for Swap.

... I'm still curious how to get the installer to go with a swap FILE rather
than a swap PARTITION though.

The installer doesn't have that option, but if you tell it to go
ahead without a swap partition, you can create a swapfile
later. Or multiple swapfiles. Or use the swapspace package,
which will create and destroy swapfiles as memory requirements
dictate.

-dsr-






firefox does not redirect to login page

2019-02-13 Thread Flo
Dear All,

I have an old laptop which I set up yesterday. And since it's old I only
install the packages I need.

Today I realized that I cannot login into an public hotspot.

Up to now it worked in a way that I got redirected to the login page
where I had to click on the connect button. This does not happen now.

It just says it cannot find the webpage.

What package is necessary to make firefox able to redirect me to the
login page? What do I need to install?

Any help is appreciated.

Thanks a lot.

Regards,
Flo



Re: OT: Current_Pending_Sector on /dev/sd?

2019-02-13 Thread Dan Ritter
Alexander V. Makartsev wrote: 
> On 13.02.2019 18:22, basti wrote:
> 
> Most hardware RAID controllers perform automatic full surface scans to
> ensure data consistency (also could be called "patrol scans") and mark
> HDDs as "Expected to Fail Soon" to warn user.
> You have to backup your data regularly and in case of large RAID5/6
> level arrays you should have at least one Hot Spare drive available in
> your enclosure at all times.
> Precautions are almost the same for software RAID, but more difficult to
> setup.

Not really more difficult: Debian's default mdadm configuration
includes a weekly run of checkarray.

-dsr-



Re: P2V Debian 9 with VMware Converter

2019-02-13 Thread Adam Weremczuk
Short answer - because it will take significantly longer and potentially 
lead to more errors.
Especially if I have a number of servers with different structures and 
purposes.


It's hard to beat 20-30 seconds it takes to click and type into VMware 
Converter and leave it running.

It works well for Debian 7, probably 8 as well but not 9 :(


On 13/02/19 13:09, Alexandre GRIVEAUX wrote:

Hello,

Why did you use a vmware converter instead configuring a VM and copy 
your data ?


Regards,





Re: WiFi without Network Manager

2019-02-13 Thread John Hasler
 deb wrote:
> note: this is why I think top-posting is best.  People don't have to
> scroll through tons of crap to get to "Thanks" :-)

When I open a message on a mailing list or newsgroup and see nothing but
quoted text I usually just move on to the next message.  On the other
hand I find top-posted responses that remain cryptic until I've scrolled
through a hundred lines of mostly-irrelevant quoted text a bit
irritating too.

It's better not to post "Thanks" to a busy mailing list.  If you must do
so please put "Thanks" in the subject line.

rhkramer writes:
> I vary the use of top-posting and "bottom"-posting depending on
> circumstances.
> ...
> On lists that prefer "bottom"-posting, I try to ususally comply, with
> exceptions.

> In either case, I advocate quite extensive eliding of irrelevant parts
> of a post.

I elide as required and interleave my response.  I recall only one
instance of someone objecting (on Usenet many years ago.)
-- 
John Hasler 
jhas...@newsguy.com
Elmwood, WI USA



Re: Swap space choice on a SSD <- Current best practice on?

2019-02-13 Thread Dan Ritter
deb wrote: 
> 
> On 2/13/2019 8:46 AM, Michael Stone wrote:
> > On Wed, Feb 13, 2019 at 08:41:33AM -0500, deb wrote:
> > > #1 Given that it's not great to pound the same area of a SSD with
> > > writes; is it indeed still best practice to go with a swap partition
> > > on a SSD rather than a swap FILE?
> > 
> > That's not a thing: the SSD will balance writes physically across the
> > drive regardless of where they are logically.
> > 
> > 
> OK, that's interesting.
> 
> I though the partition might physically lock a section of writes.
> 
> Is there a link that goes into that *partitions are not a boundary on
> physical SSD writes* further?

For a spinning disk, your OS generally has control of what will
go where*. For an SSD, the incentive to not rewrite a sector
until absolutely necessary is so high that the geometry of the
disk is completely mythical. The SSD controller will pretend
that there are contiguous sectors for partitions to be in, but
they can all be remapped anywhere at any time.

If you want maximum SSD longevity, increase the amount of space
that the SSD can use for remapping by never writing to some
amount of space. Easiest is to not fill the disk with partitions
-- leave 5-10% empty.

*The disk may remap a known bad sector to a pool of reserve
sectors without the OS being told about it. Or not.

> If I'm sure, I'll just let Debian partition for Swap.
> 
> ... I'm still curious how to get the installer to go with a swap FILE rather
> than a swap PARTITION though.

The installer doesn't have that option, but if you tell it to go
ahead without a swap partition, you can create a swapfile
later. Or multiple swapfiles. Or use the swapspace package, 
which will create and destroy swapfiles as memory requirements
dictate. 

-dsr-



Re: How to Restart Networking in stretch

2019-02-13 Thread Greg Wooledge
On Tue, Feb 12, 2019 at 10:49:13PM -0600, Kent West wrote:
> "The Debian Administrator's Handbook" is for version 8, and talks
> about deprecated tools like ifup/down, which aren't even installed by
> default on stretch.

The ifupdown package has priority "important" and, as far as I know, it
is installed by default.

You might be confusing it with "ifconfig", which is in the net-tools
package, which is *not* installed by default in stretch (a departure from
previous releases).

> But in trying to convert to a static address (by editing
> /etc/network/interfaces), and then try to restart the network ("ip link set
> dev enp0s3 down", then "...up")

OK, let's back up a second.

What was in the /etc/network/interfaces file *before* you edited it?  Was
it configured for DHCP?  If so, you should bring the interface down *before*
you edit the file, so that ifdown knows there is a DHCP client daemon
running associated with this interface, that it should kill.

If you're currently configured for DHCP, and you edit the file before
bringing down the interface, the DHCP client daemon will continue running
(ifdown doesn't know about it, because you changed the file that would
have told it).  Which means you would have to kill the DHCP client daemon
yourself, either manually, or by rebooting.

So, the proper sequence is:

1) ifdown interfacename
2) edit /etc/network/interfaces
3) ifup interfacename

> subsequent networking results in name
> resolution complaints or "network not available" complaints. Nor do any of
> the other methods I've tried work - "service network restart", "systemctl
> restart networking", "systemctl restart systemd-networkd",
> "/etc/init.d/networkng stop" then "...start".
> 
> I try a reboot. Still no go.

What's in the /etc/network/interfaces file now?

What do "ip link" and "ip addr" tell you?

Are there any relevant errors in dmesg?

What output (if any) do you get from "ifup interfacename"?

Are there any useful messages in "systemctl status networking.service"
or in "journalctl -u networking.service"?



Re: P2V Debian 9 with VMware Converter

2019-02-13 Thread Alexandre GRIVEAUX

Le 2019-02-13 14:58, Adam Weremczuk a écrit :

Short answer - because it will take significantly longer and
potentially lead to more errors.
Especially if I have a number of servers with different structures and 
purposes.


It's hard to beat 20-30 seconds it takes to click and type into VMware
Converter and leave it running.
It works well for Debian 7, probably 8 as well but not 9 :(


On 13/02/19 13:09, Alexandre GRIVEAUX wrote:

Hello,

Why did you use a vmware converter instead configuring a VM and copy 
your data ?


Regards,


Hello,

Maybe you can do dd HDD clonning of Pysical to Virtual HDD and correct 
udev rules inside /etc/rules.d/ for the network card.


Regards.



Re: OT: Current_Pending_Sector on /dev/sd?

2019-02-13 Thread Alexander V. Makartsev
On 13.02.2019 18:22, basti wrote:
> hello,
> I have a raid6 with 4 disks. 2 of them show Current_Pending_Sector 1.
> The disks has warranty till Apr. 2019 so I decide to replace them.
>
> After I change the disk and install it on an other computer to overwrite
> with zero it the Current_Pending_Sector is gone.
>
> What should I do? Whats our experience?
>
> Best Regards,
>
IMO, it's ok for disk devices to develop unreadable blocks (bad blocks),
as long as they don't progress.
Internal firmware of the disk takes care of bad blocks, marks them
internally and reallocates them. (makes sure that next read\write
request to that bad block will be redirected to a safe block)
When internal list of bad blocks and reallocations will be full,
firmware will mark HDD as failed in SMART.

As capacity of modern HDDs gets bigger and surface density of blocks
increases, so does margin for error of faulty blocks. It is rare for a
large disk to not have them, despite the fact that every disk was
scanned and faulty regions remapped beforehand during manufacturing
process at the factory.
HDDs that developed bad blocks should be monitored for progression and
replaced if bad blocks began to appear frequently. You can get one bad
block in 5 years or 30 in a few days and there is no guarantee that
brand new drive won't have bad blocks.

Most hardware RAID controllers perform automatic full surface scans to
ensure data consistency (also could be called "patrol scans") and mark
HDDs as "Expected to Fail Soon" to warn user.
You have to backup your data regularly and in case of large RAID5/6
level arrays you should have at least one Hot Spare drive available in
your enclosure at all times.
Precautions are almost the same for software RAID, but more difficult to
setup.

-- 
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀ 
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄ 



Re: OT: Current_Pending_Sector on /dev/sd?

2019-02-13 Thread Dan Ritter
basti wrote: 
> hello,
> I have a raid6 with 4 disks. 2 of them show Current_Pending_Sector 1.
> The disks has warranty till Apr. 2019 so I decide to replace them.
> 
> After I change the disk and install it on an other computer to overwrite
> with zero it the Current_Pending_Sector is gone.
> 
> What should I do? Whats our experience?

Sometimes disk sectors go bad. When the disk detects that, it
reads whatever it can and writes it somewhere else.

You can expect the number to be reset to zero either on repair
or after a power-cycle.

A small number in CPS is fine. If it starts going up, or the
reallocated sector count starts increasing, you might have an 
impending disaster.

-dsr-



Re: WiFi without Network Manager

2019-02-13 Thread mick crane

On 2019-02-13 13:32, deb wrote:

note: this is why I think top-posting is best.

People don't have to scroll through tons of crap to get to "Thanks" :-)



A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

--
Key ID4BFEBB31



Re: Swap space choice on a SSD <- Current best practice on?

2019-02-13 Thread deb



On 2/13/2019 8:46 AM, Michael Stone wrote:

On Wed, Feb 13, 2019 at 08:41:33AM -0500, deb wrote:
#1 Given that it's not great to pound the same area of a SSD with 
writes; is it indeed still best practice to go with a swap partition 
on a SSD rather than a swap FILE?


That's not a thing: the SSD will balance writes physically across the 
drive regardless of where they are logically.




OK, that's interesting.

I though the partition might physically lock a section of writes.

Is there a link that goes into that *partitions are not a boundary on 
physical SSD writes* further?


If I'm sure, I'll just let Debian partition for Swap.


... I'm still curious how to get the installer to go with a swap FILE 
rather than a swap PARTITION though.



Thanks




Re: WiFi without Network Manager

2019-02-13 Thread rhkramer
On Wednesday, February 13, 2019 08:32:22 AM deb wrote:
> note: this is why I think top-posting is best.
> 
> People don't have to scroll through tons of crap to get to "Thanks" :-)

I vary the use of top-posting and "bottom"-posting depending on circumstances.

For thanks and similar, top posting works very well.  In dealing with some 
other groups or "types" of people, top-posting works well (because, in many 
cases, it is what they expect or are used to).

On lists that prefer "bottom"-posting, I try to ususally comply, with 
exceptions.

In either case, I advocate quite extensive eliding of irrelevant parts of a 
post.



Re: Swap space choice on a SSD <- Current best practice on?

2019-02-13 Thread Michael Stone

On Wed, Feb 13, 2019 at 08:41:33AM -0500, deb wrote:
#1 Given that it's not great to pound the same area of a SSD with 
writes; is it indeed still best practice to go with a swap partition 
on a SSD rather than a swap FILE?


That's not a thing: the SSD will balance writes physically across the 
drive regardless of where they are logically.




Swap space choice on a SSD <- Current best practice on?

2019-02-13 Thread deb

Hello folks:

Again -- fussing with a full (not from a live .iso) 9.7 install; the 
Debian GUI installer is suggesting a Swap partition on a Kingston SSD.



#1 Given that it's not great to pound the same area of a SSD with 
writes; is it indeed still best practice to go with a swap partition on 
a SSD rather than a swap FILE?


(Or is this a legacy spinning hard disk install suggestion?)


#2 How DO you get the installer to go with a Swap FILE?

Just delete that recommended Swap partition during the install?


I looked; but did not run across any best practice docs for Swap on SSD.


Thank you




Re: WiFi without Network Manager

2019-02-13 Thread deb

note: this is why I think top-posting is best.

People don't have to scroll through tons of crap to get to "Thanks" :-)


On 2/12/2019 3:07 PM, ghe wrote:

On 2/12/19 9:15 AM, deb wrote:


Glenn, thanks for this!

More than welcome.

For your amazement, here's the comcastRoutes.sh from my laptop, running
Buster. This is run just after the WiFi interface has been brought up
and Comcast has scribbled all over my IP files. It looks like maybe I'm
removing the default the twice on the WiFi...

#! /bin/bash

echo 'Adding Comcast routes'
route del default
route add default gw 

# Debian mirrors:
# picosecond
route add -host 184.105.204.138 gw 10.0.0.1 wlan0
# U-CHICAGO
route add -host 128.135.10.29 gw 10.0.0.1 wlan0
# MIT
route add -host 128.30.2.26 gw 10.0.0.1 wlan0
# Georgia Tech
route add -host 128.61.240.89 gw 10.0.0.1 wlan0
# Wikimedia
route add -host 208.80.154.15 gw 10.0.0.1 wlan0

route del default wlan0
route del -net 10.0.0.0 netmask 255.255.255.0

cp -a /etc/resolv.conf.sls /etc/resolv.conf



Thank you!

I'll give that a crack!





(Alexander) Re: (Stuck! Fresh 9.6 install) iwlwifi-8625-26.ucode <- Can not find/what is it? Spot of help please?

2019-02-13 Thread deb



On 2/12/2019 3:25 PM, Alexander V. Makartsev wrote:

In response to that painful "(still installing 9.7 ...)".
You can also use these official and unofficial at the same time images
to install Debian. [1]
As a last resort you can disassemble laptop and physically remove Intel
WiFi NIC before installation and put it back after installation is
successful.
Depending on the model of laptop that procedure could be a matter of
unplugging battery and unscrewing a few screws to remove plastic cover.
But if you are not feeling comfortable doing that then skip this suggestion.

[1]
https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/



Thank you Alexander.

I kinda like the idea of pulling the Intel wifi and just going with a 
Think Penguin free software wifi.


https://www.thinkpenguin.com/gnu-linux/penguin-wireless-n-usb-adapter-gnu-linux-tpe-n150usb


I hear you on this:


https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/


But I kind of want to know what all Debian is indeed pulling in, 
non-free wise.


(I may need to go the full non-free CD route though; if I can't find 
those files elsewhere).



Thank you!





Re: iptables issue with ASP.Net Core Port 5000

2019-02-13 Thread Igor Cicimov
On Wed, 13 Feb 2019 11:30 pm Igor Cicimov  On Wed, 13 Feb 2019 9:44 pm Patrick Kirk 
>> Hi all,
>>
>> I have a simple asp.net core site that runs with Postgres which works
>> fine if I login as root and set it to run on port 80.  SSL is done by
>> cloudflare.  I would prefer to use nginx or at least have an iptable
>> rule to redirect the port 80 traffic.  Both have the same failure so for
>> now I am trying with iptables.
>>
>> I don't believe this is an issue with asp.net but the line I use to set
>> ports is:
>>
>> public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
>> WebHost.CreateDefaultBuilder(args).UseUrls("http://localhost:5000;,
>> "http://*:80;)
>> .UseStartup();
>>
>> To run the program on port 80, I have to run as root which I want to get
>> away from.  So I remove the port 80 from Program.cs and then run the
>> program.  Output of nmap is:
>>
>> Starting Nmap 7.40 ( https://nmap.org ) at 2019-02-13 10:35 UTC
>> Nmap scan report for localhost (127.0.0.1)
>> Host is up (0.080s latency).
>> Not shown: 997 closed ports
>> PORT STATE SERVICE
>> 22/tcp   open  ssh
>> 5000/tcp open  upnp
>> 5432/tcp open  postgresql
>>
>> If I try the iptables route the command I use is:
>>
>>   iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port
>> 5000
>>
>> This works fine for Lynx http://localhost but for my url I get
>>
>> "Alert!: HTTP/1.1 521 Origin Down"
>>
>> If I try to use nginx, which I believe is configured correctly, I get
>> the exact same issue.
>>
>> Has anyone any idea what's wrong with my setup?
>>
>> Patrick
>
>
Actually for routing to the localhost interface you need this one:

$ sudo sysctl -w net.ipv4.conf.eth0.route_localnet=1

assuming eth0 is your interface receiving the traffic.

>


Re: P2V Debian 9 with VMware Converter

2019-02-13 Thread Alexandre GRIVEAUX

Le 2019-02-13 10:14, Adam Weremczuk a écrit :

Hi all,

I persistently get "The destination does not support EFI firmware" .

Apparently the latest Converter doesn't support Debian 9 (yet?).

More details on my issue here: 
https://communities.vmware.com/message/2837600


Has anybody had success tricking Converter to perform a migration?

Any other P2V tools you would recommend?

Thanks,
Adam

Hello,

Why did you use a vmware converter instead configuring a VM and copy 
your data ?


Regards,



OT: Current_Pending_Sector on /dev/sd?

2019-02-13 Thread basti
hello,
I have a raid6 with 4 disks. 2 of them show Current_Pending_Sector 1.
The disks has warranty till Apr. 2019 so I decide to replace them.

After I change the disk and install it on an other computer to overwrite
with zero it the Current_Pending_Sector is gone.

What should I do? Whats our experience?

Best Regards,



Re: iptables issue with ASP.Net Core Port 5000

2019-02-13 Thread Alexandre GRIVEAUX

Le 2019-02-13 11:43, Patrick Kirk a écrit :

Hi all,

I have a simple asp.net core site that runs with Postgres which works
fine if I login as root and set it to run on port 80.  SSL is done by
cloudflare.  I would prefer to use nginx or at least have an iptable
rule to redirect the port 80 traffic.  Both have the same failure so
for now I am trying with iptables.

I don't believe this is an issue with asp.net but the line I use to
set ports is:

public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args).UseUrls("http://localhost:5000;,
"http://*:80;)
.UseStartup();

To run the program on port 80, I have to run as root which I want to
get away from.  So I remove the port 80 from Program.cs and then run
the program.  Output of nmap is:

Starting Nmap 7.40 ( https://nmap.org ) at 2019-02-13 10:35 UTC
Nmap scan report for localhost (127.0.0.1)
Host is up (0.080s latency).
Not shown: 997 closed ports
PORT STATE SERVICE
22/tcp   open  ssh
5000/tcp open  upnp
5432/tcp open  postgresql

If I try the iptables route the command I use is:

 iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 
5000


This works fine for Lynx http://localhost but for my url I get

"Alert!: HTTP/1.1 521 Origin Down"

If I try to use nginx, which I believe is configured correctly, I get
the exact same issue.

Has anyone any idea what's wrong with my setup?

Patrick


Hello,

Did you want ASP.net and apache or nginx to use the same 80 port ?

Regards,



Re: ati display driver problem with stretch

2019-02-13 Thread Long Wind
is crt or lcd relevant here?hp, using ati, is connected to lcd while lenovo, 
using intel is connected to crt
i've tried switching monitor, hp seems better after switchingthis is 
unbelievable, but i'm not sure, more testing is needed

my hardware is old, but my computing job isn't 
demanding, lenovo, which seem ok, is also very old
 

On Wednesday, February 13, 2019 8:54 PM, Long Wind  
wrote:
 

 inxi -V
inxi 2.3.5-00 (2016-12-02) inxi -c0 -GxxmSMSystem:Host: debian Kernel: 
4.9.0-7-686-pae i686 (32 bit gcc: 6.3.0) Console: tty 1
   Distro: Debian GNU/Linux 9 (stretch)
Machine:   Device: desktop System: Hewlett-Packard product: HP dx5150 MT 
Chassis: type: 3
   Mobo: MSI model: 09AC BIOS: Phoenix v: 1.19 date: 03/08/2007
Memory:Using dmidecode: you must be root to run dmidecode
Graphics:  Card: Advanced Micro Devices [AMD/ATI] RS480 [Radeon Xpress 200 
Series]
   bus-ID: 01:05.0 chip-ID: 1002:5954
   Display Server: X.org 1.19.2 driver: N/A tty size: 170x48 Advanced 
Data: N/A out of X 

On Wednesday, February 13, 2019 8:06 PM, Felix Miata 
 wrote:
 

 Long Wind composed on 2019-02-13 08:45 (UTC):

> sorry! the output is in color, 
> i don't know how to display them in one color

> [1;34mGraphics: [0;37m [1;34mCard:[0;37m Advanced Micro Devices [AMD/ATI] 
> RS480 [Radeon Xpress 200 Series][0;37m
> [1;34m  [0;37m [1;34mbus-ID:[0;37m 01:05.0 [1;34mchip-ID:[0;37m 
> 1002:5954[0;37m
> [1;34m  [0;37m [1;34mDisplay Server:[0;37m X.Org 1.19.2 
> [1;34mdriver:[0;37m N/A[0;37m
> [1;34m  [0;37m [1;34mResolution:[0;37m 1366x768@59.79hz[0;37m
> [1;34m  [0;37m [1;34mGLX Renderer:[0;37m Gallium 0.4 on ATI 
> RS480[0;37m
> [1;34m  [0;37m [1;34mGLX Version:[0;37m 2.1 Mesa 13.0.6 [1;34mDirect 
> Rendering:[0;37mYes[0;37m
> [0m 
Please try this instead:

    inxi -c0 -GxxmSM
    inxi -V

Please paste only the first output line from inxi -V.

I don't see anything suspicious in your Xorg.0.log, but your hardware is very 
old and may be
responsible.
-- 
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/



   

   

editores html encontrados em pesquisa

2019-02-13 Thread Daniel Roma
ola pessoal.

fiz uma pesquisa no portal software livre, do wikipedia, e encontrei alguns
poucos editores de html, a mairoria deles em inglês.:

https://en.wikipedia.org/wiki/Category:Free_HTML_editors

não sabia que existiam tantos,o universo de software livre é novo para mim.
vou instalar o Bluefish  no momento, para aprender a mexer no codigo em
html.

com o tempo vou olhar os outros no link acima, e ler, tambem me ajuda no
aprendizado do ingles.

obrigado


Re: iptables issue with ASP.Net Core Port 5000

2019-02-13 Thread Igor Cicimov
On Wed, 13 Feb 2019 9:44 pm Patrick Kirk  Hi all,
>
> I have a simple asp.net core site that runs with Postgres which works
> fine if I login as root and set it to run on port 80.  SSL is done by
> cloudflare.  I would prefer to use nginx or at least have an iptable
> rule to redirect the port 80 traffic.  Both have the same failure so for
> now I am trying with iptables.
>
> I don't believe this is an issue with asp.net but the line I use to set
> ports is:
>
> public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
> WebHost.CreateDefaultBuilder(args).UseUrls("http://localhost:5000;,
> "http://*:80;)
> .UseStartup();
>
> To run the program on port 80, I have to run as root which I want to get
> away from.  So I remove the port 80 from Program.cs and then run the
> program.  Output of nmap is:
>
> Starting Nmap 7.40 ( https://nmap.org ) at 2019-02-13 10:35 UTC
> Nmap scan report for localhost (127.0.0.1)
> Host is up (0.080s latency).
> Not shown: 997 closed ports
> PORT STATE SERVICE
> 22/tcp   open  ssh
> 5000/tcp open  upnp
> 5432/tcp open  postgresql
>
> If I try the iptables route the command I use is:
>
>   iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port
> 5000
>
> This works fine for Lynx http://localhost but for my url I get
>
> "Alert!: HTTP/1.1 521 Origin Down"
>
> If I try to use nginx, which I believe is configured correctly, I get
> the exact same issue.
>
> Has anyone any idea what's wrong with my setup?
>
> Patrick


Run:

$ sudo sysctl -w net.ipv4.ip_forward=1


Re: ati display driver problem with stretch

2019-02-13 Thread Felix Miata
Long Wind composed on 2019-02-13 08:45 (UTC):

> sorry! the output is in color, 
> i don't know how to display them in one color

> [1;34mGraphics: [0;37m [1;34mCard:[0;37m Advanced Micro Devices [AMD/ATI] 
> RS480 [Radeon Xpress 200 Series][0;37m
> [1;34m  [0;37m [1;34mbus-ID:[0;37m 01:05.0 [1;34mchip-ID:[0;37m 
> 1002:5954[0;37m
> [1;34m  [0;37m [1;34mDisplay Server:[0;37m X.Org 1.19.2 
> [1;34mdriver:[0;37m N/A[0;37m
> [1;34m  [0;37m [1;34mResolution:[0;37m 1366x768@59.79hz[0;37m
> [1;34m  [0;37m [1;34mGLX Renderer:[0;37m Gallium 0.4 on ATI 
> RS480[0;37m
> [1;34m  [0;37m [1;34mGLX Version:[0;37m 2.1 Mesa 13.0.6 [1;34mDirect 
> Rendering:[0;37mYes[0;37m
> [0m 
Please try this instead:

inxi -c0 -GxxmSM
inxi -V

Please paste only the first output line from inxi -V.

I don't see anything suspicious in your Xorg.0.log, but your hardware is very 
old and may be
responsible.
-- 
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: Réseau hertzien et Debian

2019-02-13 Thread Daniel Huhardeaux

Le 13/02/2019 à 11:28, kaliderus a écrit :

Le bonjour la liste,


Bonjour



Je cogite sur comment mettre en oeuvre une liaison entre 2 habitations
sur réseau hertzien.
La distance point à point est d'environs 1,3km avec obstacles (arbres,
et quelques maisons).
Connaissez vous des équipements ad-hoc qui permettent cette topologie ?

Ce n'est pas un amplificateur wifi que je recherche mais une solution
autonome professionnelle,


En WIFI il existe des solutions professionnelles qui permettent d'aller 
à + de 15Km à un tarif abordable. Ce ne sont pas des amplificateurs. 
J'utilise des Ubiquiti Loco M5 qui ont une portée de 10km.


[...]

--
Daniel



Re: install-parties a escoles, qui s'anima?!

2019-02-13 Thread Roger
Hola bones, soc nou per aqui, de fet m'he subscrit per comentar aquest
tema i també perque soc usuari de Debian des de ja fa forces anys.

Respecte aquest tema, doncs ho trobo molt bona idea i a la meva zona,
Valls i l'Alt Camp, trobariem forces escoles interessades. De fet, ja
fa temps que col·laboro amb un grup de Programari Lliure de Valls
(Hacklabvalls), i fem installs partys de forma periòdica amb un èxit
raonable (sobretot en les primeres edicions). A més, actualment hem
recuperat varies torres i portàtils (molt vells) amb Linkat i Linkat
lleugera per a una escola propera. Doncs bé, estic i estem oberts o
col·laborar amb el que convingui :-) També tenim força material
recuperat per revifar maquines velles (Ram, pci's, processadors, fonts,
discs, etc), ho comento per si algú pot necessitar quelcom..

Ja he vist que per la llista de Caliu, han comentat de que aquest tema
el mouran a través del CRP's, doncs bé estaré atent a lo que diguin...

Percert gent de Salou, no crec que ens coneguem, però estaria bé potser
algun dia trobar-nos, o qui sap si fer quelcom conjunt ;-)

Salut,

roger

El dl 11 de 02 de 2019 a les 12:47 +0100, en/na RAMON MONTRAVETA ROIG
va escriure:
> Benvolguts,
> 
> Jo fa anys que estic en el tema educatiu + programari lliure.
> Personalment he "transformat" uns quants centres de secundària i de
> primaria.
> 
> Ara mateix, estic intentant d'impulsar, a nivell de l'Urgell, un
> projecte adreçat a tota la comunicat educativa (famílies, mestres,
> professors, alumnes,...) de "punt de suport al programari lliure", on
> la idea seria:
> 
> 1-  Instal·lació de linkat 18.04 als pc's que els usuaris portin al
> CRP
> 2-  Suport als usuaris en dubtes, problemes i altres varis
> 3- Mini sessions de formació específiques: edició de vídeo, edició de
> textos, edició fotos-imatges,... loquesigui que la comunitat
> necessiti.
> 4- Donar suport presencial als que s'animin a fer el canvi en horari
> setmanal dels divendres, de 16:00 a 19:00.
> 
> Si algú de la zona s'anima i em dona un cop de mà, serà MOLT
> benvingut.
> 
> Ara estic ultimant com donar forma organitzativa a aquest "bolet",
> però bàsicament seria una interacció amb el Pla educatiu d'entorn...
> 
> ... de fet, ja vaig "enredar-vos" a Tàrrega a fer una de les
> múltiples presentacions de Ubuntu 18-04 :-)
> 
> 
> Salut i programari lliure!
> 
> Ramon Montraveta Roig
> CRP l´Urgell
> Departament d'Educació
> 
> Av. Ondara, 3 |  25300 | Tàrrega |  973 31 23 18
> rmont...@xtec.cat | http://serveiseducatius.xtec.cat/urgell/
> 
> 
> Missatge de Joan Baptista  del dia dg., 10 de
> febr. 2019 a les 8:51:
> > Volia dir que per aquí a Salou els nostres intents de difondre el
> > programari lliure NO han arribat mai massa lluny, disculpeu. M'he
> > menjar el NO per error :-(
> > 
> > Aprofito per passar-li copia oculta al meu amic "debianita" Pep,
> > que no estic segur si te temps de llegir TOT el que es diu a
> > aquesta llista de correu.
> > 
> > Joan Baptista
> > joanbapti...@gmail.com
> > Tel. 665 245 561
> > 
> > 
> > Missatge de Joan Baptista  del dia dg., 10
> > de febr. 2019 a les 8:41:
> > > Bon dia.
> > > 
> > > A mi la idea del Àlex també em sembla meravellosa, tot i que aquí
> > > a Salou cap de les coses que hem intentat els "2 o 3 debianites"
> > > del Camp de Tarragona han arribat massa lluny. La meva parella es
> > > professora en una escola aquí a Salou i encara que m'encantaria
> > > poder-hi fer alguna cosa semblant, sembla ser que no es possible.
> > > 
> > > Igualment voldria col·laborar i com el meu amic debianita m'ha
> > > regalat un pc hp tipus mini-torre del any 2003 i l'he ampliat una
> > > mica, però no el necessito, voldria saber si l'Àlex i/o algú dels
> > > que doneu suport al projecte de promocionar el programari lliure
> > > a les escoles podríeu venir a recollir aquest pc (la meva parella
> > > també dona un monitor TFT Phillips 19" amb altaveus incorporats)
> > > ja sigui a Salou, Reus, Cambrils, La Pineda, Vila-Seca o a la
> > > ciutat de Tarragona:
> > > 
> > > El pc + monitor ja els he provat i funcionen força be; porta
> > > llicència Windows XP Pro legal, per tant, si voleu, en pocs dies
> > > el poc entregar amb només el últim Debian 9.7, amb només Win XP
> > > Pro SP3 o, com jo proposo, tots dos (perquè els nens i nenes
> > > pugui veure que el programari lliure funciona millor i mes ràpid
> > > que el programari privatiu/de pagament al mateix ordinador).
> > > 
> > > Ara mateix el HP dc330 del 2003 es un Pentium 4 HT a 2,4 Ghz
> > > (HT=simula un dual core) amb 2 GB RAM, grabadora de DVD, disc
> > > SATA de 500 GB i lector de targetes multimèdia (targetes SD i
> > > altres + port usb frontal) intern.
> > > 
> > > Joan Baptista
> > > joanbaptista@gmail.comcessito
> > > Tel. 665 245 561
> > > 
> > > 
> > > Missatge de Àlex  del dia dc., 6 de febr. 2019
> > > a les 12:35:
> > > > Bon dia a tothom,
> > > > 
> > > > us volia proposar una cosa que potser és una anada d'olla meva:
> > > > 
> > > >    (-si 

iptables issue with ASP.Net Core Port 5000

2019-02-13 Thread Patrick Kirk

Hi all,

I have a simple asp.net core site that runs with Postgres which works 
fine if I login as root and set it to run on port 80.  SSL is done by 
cloudflare.  I would prefer to use nginx or at least have an iptable 
rule to redirect the port 80 traffic.  Both have the same failure so for 
now I am trying with iptables.


I don't believe this is an issue with asp.net but the line I use to set 
ports is:


public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args).UseUrls("http://localhost:5000;, 
"http://*:80;)

.UseStartup();

To run the program on port 80, I have to run as root which I want to get 
away from.  So I remove the port 80 from Program.cs and then run the 
program.  Output of nmap is:


Starting Nmap 7.40 ( https://nmap.org ) at 2019-02-13 10:35 UTC
Nmap scan report for localhost (127.0.0.1)
Host is up (0.080s latency).
Not shown: 997 closed ports
PORT STATE SERVICE
22/tcp   open  ssh
5000/tcp open  upnp
5432/tcp open  postgresql

If I try the iptables route the command I use is:

 iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 5000

This works fine for Lynx http://localhost but for my url I get

"Alert!: HTTP/1.1 521 Origin Down"

If I try to use nginx, which I believe is configured correctly, I get 
the exact same issue.


Has anyone any idea what's wrong with my setup?

Patrick



Réseau hertzien et Debian

2019-02-13 Thread kaliderus
Le bonjour la liste,

Je cogite sur comment mettre en oeuvre une liaison entre 2 habitations
sur réseau hertzien.
La distance point à point est d'environs 1,3km avec obstacles (arbres,
et quelques maisons).
Connaissez vous des équipements ad-hoc qui permettent cette topologie ?

Ce n'est pas un amplificateur wifi que je recherche mais une solution
autonome professionnelle, qui me permette entre autres de chiffrer les
échanges (et qui  demande une licence à l'ANFR).

Si vous avez quelques références j'apprécierai.

Merci la liste.



Re: No ifconfig

2019-02-13 Thread Jonathan de Boyne Pollard

 *

   https://lists.debian.org/debian-user/2017/08/msg01613.html

 *

   https://news.ycombinator.com/item?id=17152738

 *

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

 * https://news.ycombinator.com/item?id=17151922

Since I needed an |ifconfig| with a more BSD-like interface /anyway/ so 
that I didn't have to maintain highly divergent scripts, you are going 
to gain in the future.


|ifconfig| from GNU inetutils 
:


   jdebp % inetutils-ifconfig -l
   enp14s0 enp15s0 lo
   jdebp % inetutils-ifconfig lo
   loLink encap:Local Loopback
  inet addr:127.0.0.1  Bcast:0.0.0.0  Mask:255.0.0.0
  UP LOOPBACK RUNNING  MTU:65536  Metric:1
  RX packets:9087 errors:0 dropped:0 overruns:0 frame:0
  TX packets:9087 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:51214341  TX bytes:51214341

   jdebp %

|ifconfig| from NET-3 net-tools 
:


   jdebp % ifconfig -l
   ifconfig: option `-l' not recognised.
   ifconfig: `--help' gives usage information.
   jdebp % ifconfig lo
   lo: flags=73  mtu 65536
inet 127.0.0.1  netmask 255.0.0.0
inet6 ::1  prefixlen 128  scopeid 0x10
inet6 ::2  prefixlen 128  scopeid 0x80
loop  txqueuelen 1000  (Local Loopback)
RX packets 9087  bytes 51214341 (48.8 MiB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 9087  bytes 51214341 (48.8 MiB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

   jdebp %

|ifconfig| from an unreleased version of the nosh toolset 
:


   jdebp % ifconfig -l
   enp14s0 enp15s0 lo
   jdebp % ifconfig lo
   lo
link up loopback running
link address 00:00:00:00:00:00 bdaddr 00:00:00:00:00:00
inet4 address 127.0.0.1 prefixlen 8 bdaddr 127.0.0.1
inet4 address 127.53.0.1 prefixlen 32 bdaddr 127.53.0.1
inet6 address ::2 scope 0 prefixlen 128
inet6 address ::1 scope 0 prefixlen 128
   jdebp %

FreeBSD |ifconfig| (on a different system) for comparison:

   JdeBP % ifconfig lo0
   lo0: 
flags=ffde8149
 metric 0 mtu 16384
options=63
inet6 ::2 prefixlen 128
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff00
inet 127.53.0.1 netmask 0xff00
nd6 options=61
   JdeBP %

The |ifconfig| from an unreleased version of the nosh toolset 
 on that other system:


   JdeBP % ifconfig lo0
   lo0
link up loopback drv_running running promisc multicast ppromisc monitor 
staticarp renaming
nd6 performnud auto_linklocal noradr
 rxcsum txcsum hwcsum rxcsum_ipv6 txcsum_ipv6
link address lo0 metric 0 mtu 16384
type 24 linkstate 0 physical 0 baudrate 0
inet6 address ::2 scope 0 prefixlen 128
inet6 address ::1 scope 0 prefixlen 128 bdaddr ::1 scope 0
inet6 address fe80::1 scope 3 prefixlen 64
inet4 address 127.0.0.1 prefixlen 8 bdaddr 127.0.0.1
inet4 address 127.53.0.1 prefixlen 8 bdaddr 127.53.0.1
   JdeBP %



P2V Debian 9 with VMware Converter

2019-02-13 Thread Adam Weremczuk

Hi all,

I persistently get "The destination does not support EFI firmware" .

Apparently the latest Converter doesn't support Debian 9 (yet?).

More details on my issue here: 
https://communities.vmware.com/message/2837600


Has anybody had success tricking Converter to perform a migration?

Any other P2V tools you would recommend?

Thanks,
Adam



Re: ati display driver problem with stretch

2019-02-13 Thread Felix Miata
Long Wind composed on 2019-02-13 08:24 (UTC):

> inxi: command not found
> which package should i install?? 

sudo apt install inxi

or get the latest version directly from:
https://github.com/smxi/inxi

It's only a 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: ati display driver problem with stretch

2019-02-13 Thread Felix Miata
Long Wind composed on 2019-02-13 08:05 (UTC):

> hp dx5150 has many problem with debianjessie and wheezy fail to run on 
> itearly stretch seems
> OKi've just installed 9.7, hoping it perform betterbut it's worse, X 
> Window(which use ati video
> driver) is very slowat first i think the problem is with firefoxlater i 
> remove 9.7 disk to
> another pc, which use intel video driverthe display problem is gone (though 
> firefox has minor
> problem) i've tried non-free amd driver(firmware?), it doesn't helpgui often 
> becomes
> unresponsive, cpu seems doing something impossible, it's very slow i'm 
> seriously considering
> opensuse

What is output from

$ inxi -Gxx

run from an Xterm (inside Xorg)?
-- 
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/