Re: shell script: test for graphical session

2019-10-29 Thread John Crawley

On 2019-10-29 22:38, Vincent Lefevre wrote:

On 2019-10-29 14:32:39 +0900, John Crawley wrote:

A (bash) script wants to put up a GUI (yad) if it can, or otherwise try to
interact with the user on the terminal.

>> ---

loginctl show-session -p Type $XDG_SESSION_ID
and looking for 'Type=x11' or 'Type=wayland'

>> ---

I've replaced the test with
[[ -n $DISPLAY || -n $WAYLAND_DISPLAY ]] && 
but environment variables are a bit fragile and I was wondering if there
might be a better way.


Actually they seem better as you can switch the X11 display
(or disable it) by changing the value of $DISPLAY, and the
GUI will probably honor this choice.


Thanks everybody for the feedback!
I'll continue with the envvar test.

--
John



Alerta de Seguridad

2019-10-29 Thread Ing . Miguel B .
Buen día, soy el Ing. Miguel Basto, me pasaron este email porque podría 
interesarle participar en un evento internacional para aprender a ser un HACKER 
EXPERTO en seguridad Informática, guiado por el CIO de la empresa encargada de 
la seguridad de empresas como eBay, Amazon y Coca Cola.

Le pido solamente confirme su interés respondiéndome con sus datos para que le 
envíe el PDF con el temario y los detalles en este momento.

Nombre:  Teléfono:   Email:   

Un saludo y que tenga excelente día.
Ing. Miguel Basto


Installing Debian 10 Buster With Custom LUKS Options

2019-10-29 Thread encrypt10n
Dear Debian Family,

Hope you are good. I have a LUKS project on Debian but i don't know
exactly how can i do this. Let me explain the details.

I watched a video (https://www.youtube.com/watch?v=cchdw75WKXQ) and he
was explaining how to install Kubuntu with custom LUKS options with
detached header in a USB thumb drive and i liked that project and i
wanted to do this on Debian 10 but i don't have enough knowledge about
that. My questions:

1) How can i use detached header on UEFI computer?
2) How can i use Serpent instead of AES on Debian?

The most important question (in short) how can i adapt this project to
Debian 10 Buster?

My goal is installing Debian 10 Buster like this project.

Thanks in advance.

Best Regards.



Conexión WiFi Debian 10 i386

2019-10-29 Thread Club Animal
Hola!

Aabo de instalar exitosamente Debian 10 en un portatil bastante antiguo, un
Lanix (Intel Celeron). Durante la instalación me ha dado el mensaje de que
faltaba el firmware rt73.bin de modo que he instalado el paquete de
firmware non-free al terminar la instalación, con lo que me detecta
correctamente el WiFi, sin embargo no logra establecer la conexion.

Los últimos logs de dmesg me muestran esto:

[ 1387.073427] wlx0019db08ab7a: authenticate with 84:aa:9c:4f:ba:a0
[ 1387.109000] wlx0019db08ab7a: send auth to 84:aa:9c:4f:ba:a0 (try 1/3)
[ 1387.111000] wlx0019db08ab7a: authenticated
[ 1392.114261] wlx0019db08ab7a: aborting authentication with
84:aa:9c:4f:ba:a0 by local choice (Reason: 3=DEAUTH_LEAVING)
[ 1403.431760] wlx0019db08ab7a: authenticate with 84:aa:9c:4f:ba:a0
[ 1403.493880] wlx0019db08ab7a: send auth to 84:aa:9c:4f:ba:a0 (try 1/3)
[ 1403.495646] wlx0019db08ab7a: authenticated
[ 1408.499118] wlx0019db08ab7a: aborting authentication with
84:aa:9c:4f:ba:a0 by local choice (Reason: 3=DEAUTH_LEAVING)
[ 1412.025007] IPv6: ADDRCONF(NETDEV_UP): wlx0019db08ab7a: link is not ready
[ 1412.213320] IPv6: ADDRCONF(NETDEV_UP): wlx0019db08ab7a: link is not ready
[ 1737.189000] IPv6: ADDRCONF(NETDEV_UP): wlx0019db08ab7a: link is not ready
[ 1851.773221] perf: interrupt took too long (2511 > 2500), lowering
kernel.perf_event_max_sample_rate to 79500
[ 2052.196973] IPv6: ADDRCONF(NETDEV_UP): wlx0019db08ab7a: link is not ready

Agradezco la ayuda que me puedan prestar.

Saludos!


Re: Accessing a host with variable IP addresses / connection types

2019-10-29 Thread Celejar
On Sat, 26 Oct 2019 00:04:17 +0200
deloptes  wrote:

> Celejar wrote:
> 
> > I don't get it - IIUC, this sort of thing will work if a given system
> > is always available via a remote connection. In such a case, we can set
> > up the routes so that clients on the local network know to route
> > packets to the given system through the VPN server. But in my case, the
> > given system is sometimes available locally and sometimes remotely -
> > how will the local systems know when to send packets locally and when
> > to send them through the gateway?
> 
> OK, understood finally!
> What prevents you using the same IP over the VPN IP - you would have two IPs
> when connected over VPN. I have not tested this, but could think it should
> work. Still need to add a route on the machine in the home network that
> needs to send to the same IP to find this IP in the VPN.

I suppose that this is another idea worth looking into - thanks.

Celejar



Re: Bootable USB Buster System

2019-10-29 Thread Pascal Hambourg

Le 29/10/2019 à 20:37, Jimmy Johnson a écrit :
the file system you use matters, some file systems only use uefi and 
will give you no legacy support.


Utter nonsense.



Re: Bootable USB Buster System

2019-10-29 Thread deloptes
Joe wrote:

> That's OK, so will I when an OS version of Access exists. I'm not
> holding my breath.

The business enforces is, we can not do anything against. I don't mind using
the crap if they pay the license and they pay me for using it.

I used to have one linux pc before, but now I have to use a cygwin shell to
do meaningful work :|

thats life.




Re: Bootable USB Buster System

2019-10-29 Thread Joe
On Tue, 29 Oct 2019 13:10:04 -0700
Jimmy Johnson  wrote:

> On 10/29/19 12:07 PM, Joe wrote:
> 
> > No, it doesn't do legacy. There is no 'legacy' on any BIOS screen.
> > It's an Aspire ES1-132. But Stretch installed in EFI easily and
> > even gave me a dual-boot with Win10, which didn't interest me at
> > the time, but does now. I'm doing a bit of Access work for the
> > first time in years.  
> 
> Sorry Joe, I retired in 2012 and don't do windows anymore and every
> time I wipe a new computers win10 I celebrate!
> 

That's OK, so will I when an OS version of Access exists. I'm not
holding my breath.

-- 
Joe



Re: Bootable USB Buster System

2019-10-29 Thread Jimmy Johnson

On 10/29/19 12:07 PM, Joe wrote:


No, it doesn't do legacy. There is no 'legacy' on any BIOS screen. It's
an Aspire ES1-132. But Stretch installed in EFI easily and even gave me
a dual-boot with Win10, which didn't interest me at the time, but does
now. I'm doing a bit of Access work for the first time in years.


Sorry Joe, I retired in 2012 and don't do windows anymore and every time 
I wipe a new computers win10 I celebrate!




Re: Bootable USB Buster System

2019-10-29 Thread Jimmy Johnson

On 10/29/19 12:22 PM, Pascal Hambourg wrote:

HP UEFI firmwares were among the most broken ones, ignoring EFI boot 
entries created for GRUB.


I swear those new hp's are broken by design just like our main 
stream(cough) linux. But if you find the right system, using the right 
kernel you can get around it and I think you already know that.




Re: Bootable USB Buster System

2019-10-29 Thread Jimmy Johnson

On 10/29/19 9:23 AM, deloptes wrote:

Jimmy Johnson wrote:


My acer aspire one is not having a problem and another acer with 17 inch
screen, hdmi and ddr3 is not having a problem, I can't get at the model
right now. You may have to fiddle with your bios, on a samsung I have to
go to bios at boot, to boot device where I find what I want is at the
top of the list and hit f10 and it then boots what I want.



I personally do not see a reason why I should mess up with the bios to
switch back and fort to legacy and not legacy - the one HP I have does not
support legacy too.
Well if you don't tell the computer you want to use legacy then you will 
get uefi every time. On a new hp using ddr4 you're going to get uefi 
every time unless you use the bios boot menu no matter what you do. Also 
the file system you use matters, some file systems only use uefi and 
will give you no legacy support.


Good luck.



Re: Bootable USB Buster System

2019-10-29 Thread Pascal Hambourg

Le 29/10/2019 à 17:23, deloptes a écrit :

Jimmy Johnson wrote:

I personally do not see a reason why I should mess up with the bios to
switch back and fort to legacy and not legacy


Because some (many ?) UEFI firmwares are defective and having them boot 
a GNU/Linux system in EFI mode can be a real pain. All the UEFI 
firmwares I have used had boot bugs. Legacy boot is usually much easier 
to achieve.



- the one HP I have does not support legacy too.


HP UEFI firmwares were among the most broken ones, ignoring EFI boot 
entries created for GRUB.




Re: Bootable USB Buster System

2019-10-29 Thread Joe
On Tue, 29 Oct 2019 02:45:56 -0700
Jimmy Johnson  wrote:

> On 10/29/19 1:56 AM, Joe wrote:
> > On Tue, 29 Oct 2019 01:21:52 -0700
> > Jimmy Johnson  wrote:
> >   
> >> On 10/27/19 10:38 AM, Peter Ehlert wrote:  
> >>>
> >>> On 10/26/19 5:41 PM, songbird wrote:  
>  Peter Ehlert wrote:  
> > I have tried it, several times, but was unable to get Grub
> > properly installed... not able to boot.
> > I too would like such a tool  
>      hmm, i have a booting USB stick of stable (before recent
>  release so i'm actually one stable back now :) ).  no issues
>  at all booting from it and i don't recall installing GRUB
>  to it.
> 
>      i use UEFI booting most of the time via refind so i don't
>  bios boot often, but it does work.  
> >>  
> >>> I don't use UEFI, perhaps that is the difference.  
> >>
> >> Keep doing a legacy install it's the best bet, most all computers
> >> will do a legacy boot from the bios boot menu, even the new
> >> computers built for windows 10.  
> 
> 
> > Not mine, Acer netbook about a year old.  
> 
> My acer aspire one is not having a problem and another acer with 17
> inch screen, hdmi and ddr3 is not having a problem, I can't get at
> the model right now. You may have to fiddle with your bios, on a
> samsung I have to go to bios at boot, to boot device where I find
> what I want is at the top of the list and hit f10 and it then boots
> what I want.
> 
> Good luck.
> 

No, it doesn't do legacy. There is no 'legacy' on any BIOS screen. It's
an Aspire ES1-132. But Stretch installed in EFI easily and even gave me
a dual-boot with Win10, which didn't interest me at the time, but does
now. I'm doing a bit of Access work for the first time in years.

-- 
Joe



Re: Help debug : DNS failed when recover from suspend

2019-10-29 Thread Prunk Dump
Le lun. 28 oct. 2019 à 16:49, Andrei POPESCU  a
écrit :

> On Mi, 18 sep 19, 14:40:29, Prunk Dump wrote:
> >
> > -> Maybe a bug in the systemd configuration files that awake service
> > in wrong order ? ( I will do soon a not related bug report to Debian,
> > puppet.service does not contain any "After=" line )
> >
> > -> Maybe a bug in network-manager when the host receive a response
> > from the dhcp server. As the ip can change maybe this make DNS failed.
> > But NACK is not often sent. So it can't explain the problem
> > completely. The problem appear even if the IP does not change.
>
> Network Manager seems to be overkill for your needs. You might want to
> try systemd-networkd and systemd-resolved.
>
> See /usr/share/doc/systemd/README.Debian for how to enable them. There
> is also a sample config that should be enough for your use-case.
>
>
> Kind regards,
> Andrei
> --
> http://wiki.debian.org/FAQsFromDebianUser
>

Thanks !

I have nearly found the bug origin. The problem is that when the computer
suspend the isc DHCP client’s timer is not updated.

So the client wait too long before renew the lease and keep a expired one.

But I don’t now where to bug report.
-> I don’t if know if it’s a dhclient bug that don’t support suspend

-> or a systemd bug that don’t close dhclient before suspend bug

-> or a network manager bug that don’t update the dhclient timer

I have asked to isc DHCP users but no one give me a tips actually :
https://lists.isc.org/pipermail/dhcp-users/2019-October/021886.html

Thanks for your help !

Baptiste


Re: Bootable USB Buster System

2019-10-29 Thread deloptes
Jimmy Johnson wrote:

> My acer aspire one is not having a problem and another acer with 17 inch
> screen, hdmi and ddr3 is not having a problem, I can't get at the model
> right now. You may have to fiddle with your bios, on a samsung I have to
> go to bios at boot, to boot device where I find what I want is at the
> top of the list and hit f10 and it then boots what I want.

I personally do not see a reason why I should mess up with the bios to
switch back and fort to legacy and not legacy - the one HP I have does not
support legacy too.






Re: Buscador de paquetes: estén fuera de la distribución y o el upstream este muerto

2019-10-29 Thread Miguel de Dios Matias
El mar., 29 oct. 2019 a las 15:41, Paynalton () escribió:
>
>
> Si un ave no rompe su huevo morirá antes de nacer.
> Nosotros somos el ave y el mundo es nuestro huevo.
> POR LA REVOLUCIÓN DEL MUNDO
>
> Ciudad de México
>
>
> El mar., 29 oct. 2019 a las 5:18, Debian () 
> escribió:
>>
>> El 28/10/19 a las 19:49, Miguel de Dios Matias escribió:
>> > Buenas.
>> >
>> > Es más por curiosidad y ver como se gestiona las situaciones.
>> >
>> > TL;DR, ¿Existe algún servicio web de Debian que busque paquetes
>> > eliminados de la última versión? ¿Existe alguna forma de ver que
>> > paquetes ya no tienen upstream?
>> >
>
>
> Puedes hacer lo siguiente:
>
> Primero:
>
> apt update
>
> apt-cache search . > repo1

Oye pues la idea es simple pero yo creo que puede funcionar muy bien,
voy a ver si puedo afinar para sacar los paquetes por arquitectura y
tal. Gracias.

Me queda la otra duda, de como sacar los paquetes que "están activos"
en Debian pese a que haya muerto el proyecto original...porque me
huelo que hay muchos...

>
> Luego cambia tu sources.list a otro repositorio y repite los mismos pasos 
> para crear un archivo por cada repositorio que quieras revisar.
>
> Por último usa DIFF para comparar los archivos y ver las diferencias entre 
> ellos.
>
>>
>> > He estado buscando por la web algún buscador o listado de los paquetes
>> > que se han sacado de los repositorios, porque recuerdo en Debian Woody
>> > había un par de juegos hechos con una librería llamada clanlib, no
>> > recuerdo el nombre.
>> >
>> > He intentado meter en el source.list debian woody de
>> > archive.debian.org pero falla porque en esos años no había la
>> > arquitectura amd64.
>> >
>> > Ahora estoy bajando las isos de cd de aquella época y las voy a poner
>> > en una maquina virtual.
>> >
>> > Saludos.
>> >
>>
>>
>> ¿Esto te sirve?
>>
>> Debian Package Tracking System
>>
>> https://packages.qa.debian.org/common/index.html
>>
>>
>> JAP
>>



Re: can not update/upgrade Debian 10 when using apt-cacher-ng

2019-10-29 Thread tomas
On Tue, Oct 29, 2019 at 03:58:04PM +0100, john doe wrote:
> On 10/29/2019 2:01 PM, to...@tuxteam.de wrote:
> > On Tue, Oct 29, 2019 at 01:36:35PM +0100, john doe wrote:
> >> On 10/29/2019 12:50 PM, Charles Curley wrote:
> >>> On Tue, 29 Oct 2019 11:45:02 +0100
> >>> john doe  wrote:
> >>>
>  /etc/apt/sources.list:
> 
>  http://HOSTNAME-APT-CACHER-NG>:3142/debian-security buster/updates

[...]

> Yes, the hostname is not the one I use.

Phew :-)

> For now, method 2 is used when '/etc/apt/sources.list' is created by the
> Debian installer, so method 1 is not an option.

Not clear why, but... let's assume that.

> Everything else is working but not downloading the upgrade through
> apg-cacher-ng.
> 
> Is anyone using a proxy to download the upgrade(s) and what format is to
> be used in '/etc/apt/sources.list'?

I have used that in the past, but I do prefer the cache specification
in apt config these days.

What happens when you point your browser at your cache instance?

What do the cache log files say? (Find them typically in
/var/log/apt-cacher-ng/apt-cacher.err and ...log).

Cheers
-- t


signature.asc
Description: Digital signature


Re: Upgrade Adventure Stretch-to-Buster

2019-10-29 Thread Andrei POPESCU
On Ma, 24 sep 19, 22:28:59, Mark Fletcher wrote:
> 
> In the end I think my problems were caused by previously having the 
> deb-multimedia repositories in use and trying to move away from them 
> at the same time as upgrading.

Most likely, which is why the Release Notes specifically advise to 
remove and non-Debian packages before the upgrade.

> I don't know if there's a way to get away from deb-multimedia once 
> items have been installed from it, but now I know that way is NOT to 
> try to upgrade to the next Debian release, not including 
> deb-multimedia...

Sure it's possible, just uninstall the packages.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser


signature.asc
Description: PGP signature


Re: can not update/upgrade Debian 10 when using apt-cacher-ng

2019-10-29 Thread john doe
On 10/29/2019 2:01 PM, to...@tuxteam.de wrote:
> On Tue, Oct 29, 2019 at 01:36:35PM +0100, john doe wrote:
>> On 10/29/2019 12:50 PM, Charles Curley wrote:
>>> On Tue, 29 Oct 2019 11:45:02 +0100
>>> john doe  wrote:
>>>
 /etc/apt/sources.list:

 http://HOSTNAME-APT-CACHER-NG>:3142/debian-security buster/updates
>>>^
>>>
>>> That greater than character looks problematic; is it correct?
>>>
>>
>> It is a typo, thanks for spotting, the line I'm currently using is:
>>
>> http://HOSTNAME-APT-CACHER-NG:3142/debian-security buster/updates main
>>
>>> Also, I find that setup puts a file, apt.conf, in your /etc/apt
>>> directory, with the apt-cacher redirection in it:
>>>
>>> Acquire::http::Proxy "http://aptcacherdeb.localdomain:3142;;
>>>
>>
>> I'm installing from a preseed file, if possible, I'd like to keep the
>> file as created by d-i.
>>
>>
>>> If that file exists, you don't need the redirection in sources.list.
>>> All you need is the provided sources.list, e.g.:
>>>
>>> deb http://security.debian.org/debian-security buster/updates main contrib 
>>> non-free
>>> # deb-src http://security.debian.org/debian-security buster/updates main 
>>> contrib non-free
>>>
>>
>> Actually, that is my question why can't the above line be redirected to
>> my proxy?
>
> No. *EITHER* you set the proxy once-and-for-all in your APT conf (I have
> something like:
>
> Acquire::http::proxy "http://localhost:3142;;
>
> (replace localhost and 3142 by values making sense in your context)
> in a file named "/etc/apt/apt.conf.d/02cache", for example) *OR* you
> prefix the cache to each entry in your sources.list which you want to
> go through the cache (you might want some repos to be fetched directly,
> or via another cache, for example).
>
> Furthermore I'm assuming you have something meaningful instead of
> that funny looking "HOSTNAME-APT-CACHER-NG" (or that this actually
> resolves to a host in your setup). Otherwise it won't work...
>

Yes, the hostname is not the one I use.

According to (1), there are two methods to use a proxy apg-cacher-ng in
this case:
- "• Specify the caching machine as HTTP Proxy for your download client.
This can be usually done
- "• Replace all mirror hostnames with cachinghost/hostname in
sources.list, ..."


For now, method 2 is used when '/etc/apt/sources.list' is created by the
Debian installer, so method 1 is not an option.


Everything else is working but not downloading the upgrade through
apg-cacher-ng.

Is anyone using a proxy to download the upgrade(s) and what format is to
be used in '/etc/apt/sources.list'?

I'm clearly missing something here! :)

1)
https://www.unix-ag.uni-kl.de/~bloch/acng/html/config-servquick.html#config-client


--
John Doe



Re: Stretch Backports Kernel

2019-10-29 Thread Andrei POPESCU
On Lu, 23 sep 19, 07:23:05, Karolis Pabijanskas wrote:
> Hey Everyone!
> 
> `stretch-backports` kernel seems to have broken dependencies since a 
> few days ago. In particular this package: 
> https://packages.debian.org/stretch-backports/linux-image-amd64 seems 
> to have a broken dependency for linux-image-4.19.0-0.bpo.6-amd64, 
> which does not seem to exist in the repositories (rather older 
> linux-image-4.19.0-0.bpo.5-amd64 exists). `linux-headers-amd64` is 
> fine and has correct dependencies.
> 
> Is this a known issue?

Such issues can happen when a particular package is not built (yet).

For the next time something like this happens, you might want to check 
tracker.debian.org, (source) package 'linux'.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser


signature.asc
Description: PGP signature


Re: Buscador de paquetes: estén fuera de la distribución y o el upstream este muerto

2019-10-29 Thread Paynalton
Si un ave no rompe su huevo morirá antes de nacer.
Nosotros somos el ave y el mundo es nuestro huevo.
POR LA REVOLUCIÓN DEL MUNDO

Ciudad de México


El mar., 29 oct. 2019 a las 5:18, Debian ()
escribió:

> El 28/10/19 a las 19:49, Miguel de Dios Matias escribió:
> > Buenas.
> >
> > Es más por curiosidad y ver como se gestiona las situaciones.
> >
> > TL;DR, ¿Existe algún servicio web de Debian que busque paquetes
> > eliminados de la última versión? ¿Existe alguna forma de ver que
> > paquetes ya no tienen upstream?
> >
>

Puedes hacer lo siguiente:

Primero:

apt update

apt-cache search . > repo1

Luego cambia tu sources.list a otro repositorio y repite los mismos pasos
para crear un archivo por cada repositorio que quieras revisar.

Por último usa DIFF para comparar los archivos y ver las diferencias entre
ellos.


> > He estado buscando por la web algún buscador o listado de los paquetes
> > que se han sacado de los repositorios, porque recuerdo en Debian Woody
> > había un par de juegos hechos con una librería llamada clanlib, no
> > recuerdo el nombre.
> >
> > He intentado meter en el source.list debian woody de
> > archive.debian.org pero falla porque en esos años no había la
> > arquitectura amd64.
> >
> > Ahora estoy bajando las isos de cd de aquella época y las voy a poner
> > en una maquina virtual.
> >
> > Saludos.
> >
>
>
> ¿Esto te sirve?
>
> Debian Package Tracking System
>
> https://packages.qa.debian.org/common/index.html
>
>
> JAP
>
>


Wheezy: problem: system tray disappeared from panel

2019-10-29 Thread rhkramer
My everyday driver is Wheezy.

Something happened (maybe I fat fingered something, but I don't think so) and 
the system tray (if that is the correct name -- the thing that holds things 
like the klipper and volume control icon) disappeared from my panel.

Any thoughts on an easy way to restore it?  I've played around with clicking 
on various parts of the panel, I see how to add widgets, but either klipper 
and other things that were on / in the system tray are not widgets, or they 
are still on / in the system tray but the system tray is in limbo.

The long way around (which I prefer not to do) is to create a new default 
panel and then customize it as I had it before.



Re: Some Bash Alias Statements Work, Others Don't.

2019-10-29 Thread Stephen P. Molnar

Thanks for the note.

Please see my comments interspaced below:

On 10/29/2019 08:50 AM, The Wanderer wrote:

On 2019-10-29 at 07:14, Stephen P. Molnar wrote:


The subject line tells it all!? Debian Stretch (64bit).

(A bit more literally than might have been expected. I've trimmed the
Subject line back down, as it contained a verbatim copy of the entire
message body except for the newlines being replaced by ',,'. That was
purely ridiculous; if you don't know how how it happened, please look
into it, and if you did it on purpose, please keep Subject lines to a
vaguely reasonable length in the future.)

Yes, I do know. A bit of in attention on my part;  Sorry about that



Without warning, or any other indications, some of the alias
statements in my user .bashrc are no longer working!.

The strange thing is that some still are working. Also, if I enter
the complete path to an executable whose alias is NOT working, the
executable works  Reentering the alias statement in .bashrc does
not restore the function.

If I enter the alias statement in a terminal the alias works for that
session of the terminal.

Can you give some examples of aliases which work and which don't? By
which I mean, paste in the alias-definition line for each one.

At first blush from the given description, my guess would be that bash
is now for some reason not actually reading your .bashrc, but is instead
getting its alias definitions from somewhere else, which happens to
include some but not all of the definitions your own file specifies. If
that's correct, then the aliases which work will be those defined in the
other file, and the most likely ones to keep working are generic ones
like those defined in /etc/skel/.bashrc.

One way to help confirm or refute this would be to add a non-silent
command to your .bashrc - an echo statement, or an invocation of
fortune, or something along those lines; preferably one prior to the
alias definitions, and another after them. If that command's output
appears in a suitably-invoked new shell, then this is the wrong avenue;
if it doesn't, then you might want to start hunting for other files
which contain alias definitions, and try to find out why bash is looking
there instead of where you expect.

The problem, was that, somehow, the permission s of  the directory 
containing the executable were changed to root root. I should have 
checked that in the beginning and saved the band with.


Please accept my apologies.

--
Stephen P. Molnar, Ph.D.
www.molecular-modeling.net
614.312.7528 (c)
Skype:  smolnar1



swap filled, but still much free memory - Slab issue

2019-10-29 Thread Vincent Lefevre
My Debian 10 (buster) server swaps (it became indeed very slow)
while there is still much free memory:

joooj:~> free
  totalusedfree  shared  buff/cache   available
Mem: 489260  2162527704  24  265304  257188
Swap:360376  360316  60

joooj:~> vmstat
procs ---memory-- ---swap-- -io -system-- --cpu-
 r  b   swpd   free   buff  cache   si   sobibo   in   cs us sy id wa st
 3  2 359612   4800464 267648   41   38   19593   116  1  1 95  3  0

And what atop says:

MEM | tot   477.8M | free4.6M | cache   7.0M | buff0.1M | slab  329.3M 
|  shmem   0.0M | shrss   0.0M | vmbal   0.0M | hptot   0.0M | hpuse   0.0M |
SWP | tot   351.9M | free   26.9M |  |  |  
|   |  |  | vmcom   1.1G | vmlim 590.8M |
PAG | scan 27756e4 | steal 1538e5 | stall  0 |  |  
|   |  |  | swin 30856e3 | swout 2884e4 |

I can see some contradiction concerning the "wasted" part:
* With "free", buff/cache takes 265304 KB.
* With "vmstat", this is cache (267648) rather than buff (464).
* With "atop", both cache and buff values are small!
  But there is slab.

"cat /proc/meminfo" is similar to "atop":
MemTotal: 489260 kB
MemFree:7180 kB
MemAvailable: 256072 kB
Buffers: 216 kB
Cached: 8256 kB
SwapCached: 2368 kB
[...]
SwapTotal:360376 kB
SwapFree:  22096 kB
[...]
Slab: 336436 kB
SReclaimable: 255844 kB
SUnreclaim:80592 kB
[...]

It could potentially be this issue:

  
https://cloudlinux.zendesk.com/hc/en-us/articles/115004738025-What-to-do-if-Slab-cache-grows-and-overall-server-performance-is-bad

Indeed, I had a partition that became full for a short period, but
this is no longer the case. "vm.vfs_cache_min_ratio" does not seem
to exist. And I have "vm.vfs_cache_pressure = 100" in my case (the
default).

"slabtop -s c" outputs:

 Active / Total Objects (% used): 664331 / 773696 (85.9%)
 Active / Total Slabs (% used)  : 52106 / 52106 (100.0%)
 Active / Total Caches (% used) : 89 / 116 (76.7%)
 Active / Total Size (% used)   : 253351.05K / 305750.80K (82.9%)
 Minimum / Average / Maximum Object : 0.01K / 0.39K / 8.00K

  OBJS ACTIVE  USE OBJ SIZE  SLABS OBJ/SLAB CACHE SIZE NAME   
137466 121185  88%1.05K  35409   30   1133088K ext4_inode_cache
171948 134691  78%0.19K   4866   42 38928K dentry
 66612  20516  30%0.57K   2379   28 38064K radix_tree_node
 37170  37170 100%0.38K917   42 14672K kmem_cache
  3752   3752 100%2.00K378   16 12096K kmalloc-2048
  2081   2081 100%4.00K3738 11936K kmalloc-4096
[...]

but 1133088K is much larger than 253351.05K. How can this be possible?

In "cat /proc/meminfo" output, SReclaimable has 255844 kB, so why
hasn't it been reclaimed when needed?

Note that "sync; echo 3 > /proc/sys/vm/drop_caches" has no effect
on Slab.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Re: shell script: test for graphical session

2019-10-29 Thread Vincent Lefevre
On 2019-10-29 14:32:39 +0900, John Crawley wrote:
> A (bash) script wants to put up a GUI (yad) if it can, or otherwise try to
> interact with the user on the terminal.
> 
> Previously I was using loginctl:
> loginctl show-session -p Type $XDG_SESSION_ID
> and looking for 'Type=x11' or 'Type=wayland'
> 
> However, if a user logs in on a tty and then runs 'startx' (I don't know if
> Wayland has an equivalent) then the above command returns 'Type=tty' even
> when X is running.
> ($XDG_SESSION_TYPE gives the same results.)

One also gets Type=tty after SSH with X forwarding (ssh -X).

> I've replaced the test with
> [[ -n $DISPLAY || -n $WAYLAND_DISPLAY ]] && 
> but environment variables are a bit fragile and I was wondering if there
> might be a better way.

Actually they seem better as you can switch the X11 display
(or disable it) by changing the value of $DISPLAY, and the
GUI will probably honor this choice.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Re: Some Bash Alias Statements Work, Others Don't.

2019-10-29 Thread Greg Wooledge
On Tue, Oct 29, 2019 at 08:50:05AM -0400, The Wanderer wrote:
> Can you give some examples of aliases which work and which don't? By
> which I mean, paste in the alias-definition line for each one.

Even better, paste an actual terminal session showing your prompts,
the commands you are typing, and their output.

For example,

wooledg:~$ type cls
cls is aliased to `tput clear; tput cup 99 0'
wooledg:~$ type clearscreen
bash: type: clearscreen: not found
wooledg:~$ clearscreen
bash: clearscreen: command not found

That level of detail is the bare minimum starting point.

> At first blush from the given description, my guess would be that bash
> is now for some reason not actually reading your .bashrc, but is instead
> getting its alias definitions from somewhere else, which happens to
> include some but not all of the definitions your own file specifies.

Yup.  In addition to seeing the commands and their output, we need
to know some background information:

1) How did you log in?
2) How did you open this terminal?
3) Show your basic dot files.

For example, when answering #1, you might say "this is a virtual machine
running Debian under a Windows 10 host, and I access it by ssh to
localhost".  Or, "I'm running GNOME/Wayland, and I login via gdm3".
Or, "I login on a text console and run startx".

When answering #2, it might be helpful to show the actual command line
of your terminal.  For example,

wooledg:~$ ps -fp $PPID
UIDPID  PPID  C STIME TTY  TIME CMD
wooledg   1502  1280  1 09:03 tty1 00:00:00 rxvt -font 7x13

What we *really* want to know is whether your shell is a login shell,
or a nonlogin shell, because that determines which dot files it reads.
So, showing the shell's command line is also helpful.

wooledg:~$ ps -fp $$
UIDPID  PPID  C STIME TTY  TIME CMD
wooledg   1511  1502  0 09:03 pts/26   00:00:00 bash

For #3, you kinda need to know the names of the basic dot files of
your shell.  These are in the documentation, but most people never
read the documentation.

For bash, what we want is:

ls -ld ~/.bash* ~/.profile /etc/profile /etc/bash.bashrc

wooledg:~$ ls -ld ~/.bash* ~/.profile /etc/profile /etc/bash.bashrc
-rw-r--r-- 1 rootroot 1994 Jan 24  2019 /etc/bash.bashrc
-rw-r--r-- 1 rootroot  805 May 23 11:55 /etc/profile
-rw--- 1 wooledg voice   38416 Oct 24 15:59 /home/wooledg/.bash_history
-rw-r--r-- 1 wooledg wooledg62 Apr 28  2014 /home/wooledg/.bash_logout
-rw-r--r-- 1 wooledg wooledg  3760 Sep 13 14:17 /home/wooledg/.bashrc
-rw-r--r-- 1 wooledg wooledg  1090 Sep 16 11:14 /home/wooledg/.profile

Again, this is the *minimum* acceptable level of detail.  Once we
know which dot files are going to be used, then we might ask to see
one of them.

In my example, I showed a nonlogin bash shell running in a traditional
X terminal emulator.  So, in my case, the shell in that terminal will
have read /etc/bash.bashrc and ~/.bashrc *only*.  It will not have read
/etc/profile or ~/.profile because nonlogin shells don't read those.

In the case of someone running a login shell (either because they're
ssh-ing in, or because their window manager is configured to run a
terminal that asks for a login shell, e.g. "xterm -ls"), the shell
would read /etc/profile and one of (~/.bash_profile or ~/.bash_login
or ~/.profile).  The end user is expected to ensure that their ~/.bashrc
file is sourced by their profile.

It may also be helpful to approach the problem from the other direction.
For example,

"I placed two aliases for `foo' and `bar' in my ~/.bash_aliases file.
Why aren't they being used?"

Then we can answer that ("Bash does not read that file.  If you would
like it to do so, you need to source it from ~/.bashrc which is what
it actually reads.")

In any case, some basic competence in the field of revealing the
relevant details of one's problem is required.



Re: can not update/upgrade Debian 10 when using apt-cacher-ng

2019-10-29 Thread tomas
On Tue, Oct 29, 2019 at 01:36:35PM +0100, john doe wrote:
> On 10/29/2019 12:50 PM, Charles Curley wrote:
> > On Tue, 29 Oct 2019 11:45:02 +0100
> > john doe  wrote:
> >
> >> /etc/apt/sources.list:
> >>
> >> http://HOSTNAME-APT-CACHER-NG>:3142/debian-security buster/updates
> >^
> >
> > That greater than character looks problematic; is it correct?
> >
> 
> It is a typo, thanks for spotting, the line I'm currently using is:
> 
> http://HOSTNAME-APT-CACHER-NG:3142/debian-security buster/updates main
> 
> > Also, I find that setup puts a file, apt.conf, in your /etc/apt
> > directory, with the apt-cacher redirection in it:
> >
> > Acquire::http::Proxy "http://aptcacherdeb.localdomain:3142;;
> >
> 
> I'm installing from a preseed file, if possible, I'd like to keep the
> file as created by d-i.
> 
> 
> > If that file exists, you don't need the redirection in sources.list.
> > All you need is the provided sources.list, e.g.:
> >
> > deb http://security.debian.org/debian-security buster/updates main contrib 
> > non-free
> > # deb-src http://security.debian.org/debian-security buster/updates main 
> > contrib non-free
> >
> 
> Actually, that is my question why can't the above line be redirected to
> my proxy?

No. *EITHER* you set the proxy once-and-for-all in your APT conf (I have
something like:

Acquire::http::proxy "http://localhost:3142;;

(replace localhost and 3142 by values making sense in your context)
in a file named "/etc/apt/apt.conf.d/02cache", for example) *OR* you
prefix the cache to each entry in your sources.list which you want to
go through the cache (you might want some repos to be fetched directly,
or via another cache, for example).

Furthermore I'm assuming you have something meaningful instead of
that funny looking "HOSTNAME-APT-CACHER-NG" (or that this actually
resolves to a host in your setup). Otherwise it won't work...

Cheers
-- t


signature.asc
Description: Digital signature


Re: Some Bash Alias Statements Work, Others Don't.

2019-10-29 Thread The Wanderer
On 2019-10-29 at 07:14, Stephen P. Molnar wrote:

> The subject line tells it all!? Debian Stretch (64bit).

(A bit more literally than might have been expected. I've trimmed the
Subject line back down, as it contained a verbatim copy of the entire
message body except for the newlines being replaced by ',,'. That was
purely ridiculous; if you don't know how how it happened, please look
into it, and if you did it on purpose, please keep Subject lines to a
vaguely reasonable length in the future.)

> Without warning, or any other indications, some of the alias
> statements in my user .bashrc are no longer working!.
> 
> The strange thing is that some still are working. Also, if I enter
> the complete path to an executable whose alias is NOT working, the
> executable works  Reentering the alias statement in .bashrc does
> not restore the function.
> 
> If I enter the alias statement in a terminal the alias works for that
> session of the terminal.

Can you give some examples of aliases which work and which don't? By
which I mean, paste in the alias-definition line for each one.

At first blush from the given description, my guess would be that bash
is now for some reason not actually reading your .bashrc, but is instead
getting its alias definitions from somewhere else, which happens to
include some but not all of the definitions your own file specifies. If
that's correct, then the aliases which work will be those defined in the
other file, and the most likely ones to keep working are generic ones
like those defined in /etc/skel/.bashrc.

One way to help confirm or refute this would be to add a non-silent
command to your .bashrc - an echo statement, or an invocation of
fortune, or something along those lines; preferably one prior to the
alias definitions, and another after them. If that command's output
appears in a suitably-invoked new shell, then this is the wrong avenue;
if it doesn't, then you might want to start hunting for other files
which contain alias definitions, and try to find out why bash is looking
there instead of where you expect.

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man. -- George Bernard Shaw



signature.asc
Description: OpenPGP digital signature


Re: shell script: test for graphical session

2019-10-29 Thread Greg Wooledge
On Tue, Oct 29, 2019 at 02:32:39PM +0900, John Crawley wrote:
> I've replaced the test with
> [[ -n $DISPLAY || -n $WAYLAND_DISPLAY ]] && 
> but environment variables are a bit fragile and I was wondering if there
> might be a better way.

Nope.  This is it.

If your user sets the DISPLAY variable by hand, and the software fails,
then it's the user's fault.  That's the beauty of Unix: if the end user
screws something up, you get to blame them for their mistakes instead
of having to coddle them and work around their foolishness.



Re: can not update/upgrade Debian 10 when using apt-cacher-ng

2019-10-29 Thread john doe
On 10/29/2019 12:50 PM, Charles Curley wrote:
> On Tue, 29 Oct 2019 11:45:02 +0100
> john doe  wrote:
>
>> /etc/apt/sources.list:
>>
>> http://HOSTNAME-APT-CACHER-NG>:3142/debian-security buster/updates
>^
>
> That greater than character looks problematic; is it correct?
>

It is a typo, thanks for spotting, the line I'm currently using is:

http://HOSTNAME-APT-CACHER-NG:3142/debian-security buster/updates main

> Also, I find that setup puts a file, apt.conf, in your /etc/apt
> directory, with the apt-cacher redirection in it:
>
> Acquire::http::Proxy "http://aptcacherdeb.localdomain:3142;;
>

I'm installing from a preseed file, if possible, I'd like to keep the
file as created by d-i.


> If that file exists, you don't need the redirection in sources.list.
> All you need is the provided sources.list, e.g.:
>
> deb http://security.debian.org/debian-security buster/updates main contrib 
> non-free
> # deb-src http://security.debian.org/debian-security buster/updates main 
> contrib non-free
>

Actually, that is my question why can't the above line be redirected to
my proxy?


In other words, can 'http://security.debian.org/debian-security
buster/updates main' be changed.

--
John Doe



Re: Some Bash Alias Statements Work, Others Don't.The subject line tells it all!? Debian Stretch (64bit).,,Without warning, or any other indications, some of the alias statements in my user .bashrc ar

2019-10-29 Thread Stephen P. Molnar

Thanks for the reply.

There doesn't seem to be any such demarcation.

On 10/29/2019 07:24 AM, Dan Purgert wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Stephen P. Molnar wrote:

The subject line tells it all!? Debian Stretch (64bit).

Without warning, or any other indications, some of the alias statements
in my user .bashrc are no longer working!.

The strange thing is that some still are working. Also, if I enter the
complete path to an executable whose alias is NOT working, the
executable works  Reentering the alias statement in .bashrc does not
restore the function.

Going out on a limb here -- is there specific point in your alias list
where things stop working (e.g. the 5th alias is OK, everything after
stops), or is it that aliases 1,3,7,and 9 all work, but 2,4,5,6,8 are
non-working?

-BEGIN PGP SIGNATURE-

iQEzBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAl24IXAACgkQjhHd8xJ5
ooEe4Qf+IrPAmTwjIm3Vd5kFJvLg1W2YR5spP3SJfaYqNip42MiYK+uHCDjWJhhb
uV9giwL2mjAkdLHCjm49crTEO1UBJuoRyj+hfZ1+ZS2jDZtsz3pLocTNHRTko4/z
8mb1sW8ddI5xt9VdRow+5/FlPOkqd39HnicKXLCGQ7hO+/px9LQ7dGyyFhdcmd/h
mAnCFfZKkOAOI2l3SCPE3bAnrJSgEg/+VLk1ZzOTvQ3Xu2bxdOO2qKT+gdJP7nr3
RW/PCS188GB9rV+mllKkEmzEymtvs3MjgLF0x+CTZY8zIpQZ8K9y6vxOsmH/czGe
tMy2VsTDXN4LScu5x2/ahpqqqaQRvQ==
=crfS
-END PGP SIGNATURE-



--
Stephen P. Molnar, Ph.D.
www.molecular-modeling.net
614.312.7528 (c)
Skype:  smolnar1



Re: can not update/upgrade Debian 10 when using apt-cacher-ng

2019-10-29 Thread Charles Curley
On Tue, 29 Oct 2019 11:45:02 +0100
john doe  wrote:

> /etc/apt/sources.list:
> 
> http://HOSTNAME-APT-CACHER-NG>:3142/debian-security buster/updates
   ^

That greater than character looks problematic; is it correct?

Also, I find that setup puts a file, apt.conf, in your /etc/apt
directory, with the apt-cacher redirection in it:

Acquire::http::Proxy "http://aptcacherdeb.localdomain:3142;;

If that file exists, you don't need the redirection in sources.list.
All you need is the provided sources.list, e.g.:

deb http://security.debian.org/debian-security buster/updates main contrib 
non-free
# deb-src http://security.debian.org/debian-security buster/updates main 
contrib non-free



-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/



Re: How to download email messages from Yahoo Groups in Debian?

2019-10-29 Thread Gerardo Ballabio
Thank you Jeremy and Curt. It worked!
Finding the T and Y cookies was indeed simpler than I feared.

Gerardo




Il giorno dom 27 ott 2019 alle ore 01:35 Gerardo Ballabio
 ha scritto:
>
> Thank you, but I need some more help.
>
> I've downloaded the script, but the README says that I need to supply
> "the T and Y cookie" and that I should be able to extract them from my
> browser.
>
> My browser is Firefox. I've checked and it doesn't seem to provide a
> way to extract cookies. Apparently that requires installing an
> extension, and I don't know whether Debian provides that (I'd rather
> avoid installing random extensions from the Internet).
>
> Furthermore I don't know what "the T and Y cookie" are and how to find
> them among other cookies.
>
> Any help will be much appreciated.
>
> Thanks
> Gerardo
>
> Il giorno mar 22 ott 2019 alle ore 22:12 Dan Ritter
>  ha scritto:
> >
> > Gerardo Ballabio wrote:
> > > Hello all,
> > > I've learned that Yahoo Groups is going to drop most of its
> > > functionality, in particular it won't host any user contents any more,
> > > including the email archive.
> > >
> > > I'm a member of a private group, we have an archive of several
> > > thousands email messages that we don't want to lose.
> > >
> > > May I please ask for suggestions on how to mass-download the email
> > > archive from a Debian (Buster) machine?
> > >
> > > I'm not subscribed to this list, please keep me Cc:'d.
> >
> > This
> >
> > https://github.com/nsapa/yahoo-group-archiver
> >
> > should work on Debian without much fussing.
> >
> > -dsr-



Re: Some Bash Alias Statements Work, Others Don't.The subject line tells it all!? Debian Stretch (64bit).,,Without warning, or any other indications, some of the alias statements in my user .bashrc

2019-10-29 Thread Dan Purgert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Stephen P. Molnar wrote:
> The subject line tells it all!? Debian Stretch (64bit).
>
> Without warning, or any other indications, some of the alias statements 
> in my user .bashrc are no longer working!.
>
> The strange thing is that some still are working. Also, if I enter the 
> complete path to an executable whose alias is NOT working, the 
> executable works  Reentering the alias statement in .bashrc does not 
> restore the function.

Going out on a limb here -- is there specific point in your alias list
where things stop working (e.g. the 5th alias is OK, everything after
stops), or is it that aliases 1,3,7,and 9 all work, but 2,4,5,6,8 are
non-working?

-BEGIN PGP SIGNATURE-

iQEzBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAl24IXAACgkQjhHd8xJ5
ooEe4Qf+IrPAmTwjIm3Vd5kFJvLg1W2YR5spP3SJfaYqNip42MiYK+uHCDjWJhhb
uV9giwL2mjAkdLHCjm49crTEO1UBJuoRyj+hfZ1+ZS2jDZtsz3pLocTNHRTko4/z
8mb1sW8ddI5xt9VdRow+5/FlPOkqd39HnicKXLCGQ7hO+/px9LQ7dGyyFhdcmd/h
mAnCFfZKkOAOI2l3SCPE3bAnrJSgEg/+VLk1ZzOTvQ3Xu2bxdOO2qKT+gdJP7nr3
RW/PCS188GB9rV+mllKkEmzEymtvs3MjgLF0x+CTZY8zIpQZ8K9y6vxOsmH/czGe
tMy2VsTDXN4LScu5x2/ahpqqqaQRvQ==
=crfS
-END PGP SIGNATURE-

-- 
|_|O|_| 
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5  4AEE 8E11 DDF3 1279 A281



Re: Buscador de paquetes: estén fuera de la distribución y o el upstream este muerto

2019-10-29 Thread Debian

El 28/10/19 a las 19:49, Miguel de Dios Matias escribió:

Buenas.

Es más por curiosidad y ver como se gestiona las situaciones.

TL;DR, ¿Existe algún servicio web de Debian que busque paquetes
eliminados de la última versión? ¿Existe alguna forma de ver que
paquetes ya no tienen upstream?

He estado buscando por la web algún buscador o listado de los paquetes
que se han sacado de los repositorios, porque recuerdo en Debian Woody
había un par de juegos hechos con una librería llamada clanlib, no
recuerdo el nombre.

He intentado meter en el source.list debian woody de
archive.debian.org pero falla porque en esos años no había la
arquitectura amd64.

Ahora estoy bajando las isos de cd de aquella época y las voy a poner
en una maquina virtual.

Saludos.




¿Esto te sirve?

Debian Package Tracking System

https://packages.qa.debian.org/common/index.html


JAP



Some Bash Alias Statements Work, Others Don't.The subject line tells it all!? Debian Stretch (64bit).,,Without warning, or any other indications, some of the alias statements in my user .bashrc are no

2019-10-29 Thread Stephen P. Molnar

The subject line tells it all!? Debian Stretch (64bit).

Without warning, or any other indications, some of the alias statements 
in my user .bashrc are no longer working!.


The strange thing is that some still are working. Also, if I enter the 
complete path to an executable whose alias is NOT working, the 
executable works  Reentering the alias statement in .bashrc does not 
restore the function.


If I enter the alias statement in a terminal the alias works for that 
session of the terminal.


The only thing that Google has yielded is when all of the alias 
statements stop working.


This is inconvenient and very annoying. AS solution to the problem will 
be much appreciated.


Thanks in advance.

--
Stephen P. Molnar, Ph.D.
www.molecular-modeling.net
614.312.7528 (c)
Skype:  smolnar1



can not update/upgrade Debian 10 when using apt-cacher-ng

2019-10-29 Thread john doe
Hi,

I'm playing with apt-cacher-ng, it works fine when installing debian but
I get the following errors when trying to 'apt-get update'
(apt-cacher-ng's log):

|dists/buster/updates/InRelease [HTTP error, code: 503]
|debrep/dists/buster-updates/InRelease

The below URL makes the above error:

/etc/apt/sources.list:

http://HOSTNAME-APT-CACHER-NG>:3142/debian-security buster/updates main


I didn't modify the config of apt-cacher-ng on Debian Buster (10) from
the moment I installed it.


In other words, how can I update/upgrade Debian through apt-cacher-ng.


Any help is appriciated.

--
John Doe



Re: Hard disks auto-spinning-down

2019-10-29 Thread Alex Mestiashvili
On 10/29/19 12:59 AM, Mark Fletcher wrote:
> On Mon, Oct 28, 2019 at 07:44:48PM +0200, Andrei POPESCU wrote:
>> On Ma, 01 oct 19, 15:49:57, Alex Mestiashvili wrote:
>>>
>>> You may want to try hd-idle, it is not yet available in stable, but one
>>> can install it from testing (it is not advisable in general, but the
>>> divergence between buster and testing is not that big right now)
>>> wget it from
>>> http://ftp.de.debian.org/debian/pool/main/h/hd-idle/hd-idle_1.05+ds-2_amd64.deb
>>> or any other Debian mirror and edit /etc/default/hd-idle in order to
>>> start the daemon.
>>> See man hd-idle for the details.
>>
>> One could also write to debian-backports, CC: the maintainer and ask 
>> nicely for a backport ;)

It had been sitting in the backport queue at the moment of writing the
email above as far as I remember. I just didn't know how long would it
take until it is approved :)

>>
> Thanks for all this help, guys. Does anyone have any thoughts on why one 
> generation of an external disk cage wouldn't require this and just spun 
> down the disks automatically when idle, but the new one does require 
> incantations to do so? Bearing in mind that a Mac-using friend of mine 
> reports the same (new) model of cage does spin down the disks when 
> connected to a Mac without him having to have made any settings, so the 
> cage isn't against spinning down the disks or anything weird... There's 
> no reference at all to spinning down the disks in the cage's manual, but 
> there wasn't in the old generation's manual either.

That's a complicated question, there are too many things which can
influence a disk. See this answer:

 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930796#42

It would be actually pretty cool if you could test the workarounds and
post the results here.

Best,
Alex



Cold backup option at boot

2019-10-29 Thread Marek Mosiewicz
Hello,

Thread about installing Debian on USB stick brought me idea about
backuping/cloning Debian PC.

Backuping living system is difficult task as backup can be application
dependant (e.g. sql database). In fact you need to know how each
application operates on disk and be sure that you will not catch up
during some inconsistent state or you need to use application tool to
backup data. That can be demanding task.

It is quite oposite when you have cold system. Then backup can be just
as simple just dd-ing your disk(s) block device(s).

That brings me idea about installer option to add special partition
which could launch application to clone you disks to backup drive.

In simplest option it would be just dd whole disk to another disk
having exactly same system ready to work.

Cheers,
   Marek Mosiewicz
   http://marekmosiewicz.pl




Re: Bootable USB Buster System

2019-10-29 Thread Jimmy Johnson

On 10/29/19 1:56 AM, Joe wrote:

On Tue, 29 Oct 2019 01:21:52 -0700
Jimmy Johnson  wrote:


On 10/27/19 10:38 AM, Peter Ehlert wrote:


On 10/26/19 5:41 PM, songbird wrote:

Peter Ehlert wrote:

I have tried it, several times, but was unable to get Grub
properly installed... not able to boot.
I too would like such a tool

    hmm, i have a booting USB stick of stable (before recent
release so i'm actually one stable back now :) ).  no issues
at all booting from it and i don't recall installing GRUB
to it.

    i use UEFI booting most of the time via refind so i don't
bios boot often, but it does work.



I don't use UEFI, perhaps that is the difference.


Keep doing a legacy install it's the best bet, most all computers
will do a legacy boot from the bios boot menu, even the new computers
built for windows 10.




Not mine, Acer netbook about a year old.


My acer aspire one is not having a problem and another acer with 17 inch 
screen, hdmi and ddr3 is not having a problem, I can't get at the model 
right now. You may have to fiddle with your bios, on a samsung I have to 
go to bios at boot, to boot device where I find what I want is at the 
top of the list and hit f10 and it then boots what I want.


Good luck.



Re: shell script: test for graphical session

2019-10-29 Thread tomas
On Tue, Oct 29, 2019 at 02:32:39PM +0900, John Crawley wrote:
> A (bash) script wants to put up a GUI (yad) if it can, or otherwise
> try to interact with the user on the terminal.
> 
> Previously I was using loginctl:
> loginctl show-session -p Type $XDG_SESSION_ID
> and looking for 'Type=x11' or 'Type=wayland'
> 
> However, if a user logs in on a tty and then runs 'startx' (I don't
> know if Wayland has an equivalent) then the above command returns
> 'Type=tty' even when X is running.
> ($XDG_SESSION_TYPE gives the same results.)
> 
> I've replaced the test with
> [[ -n $DISPLAY || -n $WAYLAND_DISPLAY ]] && 
> but environment variables are a bit fragile and I was wondering if
> there might be a better way.

What is fragile about the environment?

First you'll have to find out what you are after. Note that there
may be several X sessions around in your box, that the X server
may be a remote one, that your application may be displaying things
on several X displays at once (I know, Gtk is, or used to be,
particularly buggy about that -- but we ain't going to go Microsoft's
way [1] about this, are we?

So yes, in the general case, there may be (way) more than one
graphical session to choose from: if you're looking for a criterion
to pick "the obvious one", then you'll have to specify your
criterion yourself.

Thus, environment is just about the right tool: a process inherits
its ancestor's environment -- and somewhere up the chain there is
the process "representing" the session (embodied in X by all that
Xsession stuff, where the variables are set).

The "startx" thing you mention is particularly misleading: the
shell where you'd issue "startx" from is *not" "in" the session!

Cheers

[1] declaring darkness as industry standard

https://www.barrypopik.com/index.php/new_york_city/entry/how_many_microsoft_engineers_does_it_take

-- tomás


signature.asc
Description: Digital signature


Re: Bootable USB Buster System

2019-10-29 Thread Joe
On Tue, 29 Oct 2019 01:21:52 -0700
Jimmy Johnson  wrote:

> On 10/27/19 10:38 AM, Peter Ehlert wrote:
> > 
> > On 10/26/19 5:41 PM, songbird wrote:  
> >> Peter Ehlert wrote:  
> >>> I have tried it, several times, but was unable to get Grub
> >>> properly installed... not able to boot.
> >>> I too would like such a tool  
> >>    hmm, i have a booting USB stick of stable (before recent
> >> release so i'm actually one stable back now :) ).  no issues
> >> at all booting from it and i don't recall installing GRUB
> >> to it.
> >>
> >>    i use UEFI booting most of the time via refind so i don't
> >> bios boot often, but it does work.  
> 
> > I don't use UEFI, perhaps that is the difference.  
> 
> Keep doing a legacy install it's the best bet, most all computers
> will do a legacy boot from the bios boot menu, even the new computers
> built for windows 10.
> 

Not mine, Acer netbook about a year old.

-- 
Joe



Re: Bootable USB Buster System

2019-10-29 Thread Jimmy Johnson

On 10/27/19 10:38 AM, Peter Ehlert wrote:


On 10/26/19 5:41 PM, songbird wrote:

Peter Ehlert wrote:

I have tried it, several times, but was unable to get Grub properly
installed... not able to boot.
I too would like such a tool

   hmm, i have a booting USB stick of stable (before recent
release so i'm actually one stable back now :) ).  no issues
at all booting from it and i don't recall installing GRUB
to it.

   i use UEFI booting most of the time via refind so i don't
bios boot often, but it does work.



I don't use UEFI, perhaps that is the difference.


Keep doing a legacy install it's the best bet, most all computers will 
do a legacy boot from the bios boot menu, even the new computers built 
for windows 10.


I've done this with many systems, having firmware and drivers installed 
is the only consideration I can think of and installing a usb wireless 
can help if needed when you get stuck. I have one that looks like a pin 
drive called 'proster' and seems to work on all kinds of computer systems.


Good luck.



Creo que puede interesarte: Propuesta de Colaboración

2019-10-29 Thread Jaime Sánchez



Hola de nuevo, ¿cómo estás? 

Hace unos días os envié una propuesta de colaboración. No sé si le habéis 
podido echar un ojo todavía. Pero me gustaría que trabajásemos juntos y 
llegásemos a algún tipo de acuerdo. 

Os vuelvo a adjuntar el contenido del email anterior un poquito más abajo. 

Muchísimas gracias, 

 
Buenos días, ¿qué tal? 

Mi nombre es Jaime Sánchez Nielfa y os escribo desde la plataforma de marketing 
móvil de Tu-App.net. Somos una plataforma que permite crear aplicaciones 
móviles sin necesidad de tener conocimientos de programación. 

Habitualmente navego por la red buscando información relacionada con nuestro 
sector para estar al día de todas las novedades y la verdad que muchas veces 
doy con contenidos vuestros que están muy bien. Son varias las ocasiones en que 
he encontrado artículos muy interesantes. Así que me he animado a contactar con 
vosotros. 

Me gustaría saber si ofrecéis algún tipo de colaboración, si podría publicar 
algún post en vuestro blog y establecer así una estrategia win-win con 
vosotros, o qué tipo de acuerdos lleváis a cabo con otras páginas. 

Nada más. Muchísimas gracias. 

Un saludo!  
 
 Jaime 

S.Nielfa

 
SEO Specialist 
 mailto:jaimesanc...@tu-app.net jaimesanc...@tu-app.net 
 tel:+34 626 678 789  +34 656 646 677 [ tel:+34 626 678 789 ]
 tel:+34 917 372 067  +34 910 780 554 [ tel:+34 917 372 067 ]
 https://www.tu-app.net/  https://www.tu-app.net/  
  https://www.tu-app.net  
 
  https://www.facebook.com/tuapp.net   https://twitter.com/tuappnet   
https://www.instagram.com/tuapp_net/   https://www.youtube.com/tuappnet 




--
This email was sent by jaimesanc...@tu-app.net to 
debian-user-portuguese@lists.debian.org

Not interested?Unsubscribe - 
https://dwum.maillist-manage.com/ua/optout?od=2d5a885a69b60a972f430ce0bbaf644e41185630859ca1fd0=11fdd7c405ff67a9=11fdd7c405ed780f=11699e4c125aa88

Update profile -  
https://dwum.maillist-manage.com/ua/upc?upd=11fdd7c405f1f1c4=11fdd7c405ff67a9=11699e4c125aa88=2d5a885a69b60a972f430ce0bbaf644e41185630859ca1fd0
   



Tu-App.Net | C/ Ana Mariscal 5 (Madrid) 



Our Privacy Policy [  ] and Terms of Use. [  ] 


Re: Bootable USB Buster System

2019-10-29 Thread deloptes
Kenneth Parker wrote:

> Background:  One of my "volunteer activities" is to "Rehabilitate" really
> old Hardware, to keep it off our Landfills, and to have it available to
> people with Extremely Low finances.  I was part of an organization in
> Seattle, doing this, but I am not finding others, at least so far, here in
> North Carolina.

Given the power consumption of older hardware and the productivity, I
wouldn't do it for the sake of the planet. So no wonder. On the other
hand - the microsoft/apple mentality to obsolete the hardware after 2-5y is
also extremely bad. I guess the truth is somewhere in the middle.

For example I installed ubuntu or debian to few older notebooks and desktops
and gave them to few elderly people 10y ago. This year I started replacing
them.

regards



Re: Bootable USB Buster System

2019-10-29 Thread deloptes
Kenneth Parker wrote:

> Here I am.  And yes, I have run installs on USB Drives, on one system, and
> then tried to boot it on another.  Things that go wrong include different
> naming conventions for Ethernet, sound woes, and even (at least once) only
> getting into Text Mode, due to wildly different Video hardware.  So what I
> was trying to figure out was, what's involved in booting a Live DVD (or
> USB) iso system, and if anybody had figured out how to populate the file
> systems, yet do Hardware Tests, during the booting process.

All you described is expected and there is nothing wrong with it. When you
do a USB boot, you have to prepare the USB to support as much hardware as
possible before you boot. Also you do not, I repeat, you do not configure
network or other stuff - you keep the customizations to a minimum.