Re: Ok so Now which backup should I use

2023-05-15 Thread Charles Kroeger
When you have things going your way, why not just image the whole disc and
sleep well.

I have used this for years. It is proprietary yes, and runs on an old
version of Linux.

https://www.terabyteunlimited.com/image-for-linux/

I have no interest in these people, I don't get a commission for
advertising them. 

If you duel boot you can also make an image of that other
OS too, keep them both on a single disc using their respective file systems
on two partitions named for the purpose.  GParted working from a bootable
disc or stick, works well for setting that up.  IFL you put on
something that can be booted first in case things are really screwed. It is
pretty straight forward with no surprises.

An image before a large dist-upgrade especially with the word nvidia in the
list of packages, I would do without hesitation. 

-- 
salve debian invictum



Re: How to run a command / script on startup automatically in linux?

2023-05-15 Thread Susmita/Rajib
From: Greg Wooledge 
Date: Mon, 15 May 2023 13:42:52 -0400
Message-id: <[🔎] zgjvhophrprym...@wooledge.org>

Date: Mon, 15 May 2023 21:37:29 +0200
Message-id: <[🔎] 20230515193729.go1694...@zira.vinc17.org>
Mail-followup-to: debian-user@lists.debian.org

From: Christoph Brinkhaus 
Date: Mon, 15 May 2023 20:06:49 +0200
Message-id: <[🔎] ZGJ0uYgwoLWV8GMw@lenovo.local>

From: 
Date: Mon, 15 May 2023 20:26:09 +0200
Message-id: <[🔎] zgj5qen53mxbo...@tuxteam.de>

From: Joe 
Date: Mon, 15 May 2023 20:30:56 +0100
Message-id: <[🔎] 20230515203056.47030...@jrenewsid.jretrading.com>

Thank you, leaders, for posting your replies to my post. I admire your
intent to support a perpetual novice.

Please once more check the two links that I had posted on the OP. If I
want to run a script named script.sh how should I set my system up,
like what should the supporting files look like, based on the OP? What
would the supporting files look like, if I wanted to run mousepad, a
GUI program, after lxsession begins?

[To Mr. Wooledge]:
Dear Mr. Wooledge,
I thank you for your two replies.
The essence has been noted:
"... Create a ~/.xsessionrc file ... starting your X session. ..."

Please inform as to where should I create this file.

You also said:
"... "mousepad" command ...  Does it (mousepad) self-background?   ...
   mousepad & ..."
Does self-background mean that if I click on another program, it
automatically runs in the background? In that case, yes it does.
Mousepad is a plain
text editor like the earlier leafpad. Other leaders have already informed you.

And yes, you have summarised succinctly when you separately said, "
...  I'm fairly certain the OP wants to run this "mousepad" program
automatically as part of their X or Wayland session. ..." and "...
OP's implied goal of running an X11 client program at user login. ..."


[To Mr. Charlie]:
Dear Mr. Charlie,
Thank you, Mr. Charlie, for your post. But I am afraid that I can't
agree to your comment, "... I think the OP is more interested in
learning things and was following a tutorial when the question came
up. ..."
Actually, I am trying to fulfil an objective.


[To Mr. Lefèvre]:
Dear Mr. Lefèvre,
Thank you for posting your comments.
I have noted your lines, particularly, "... The /etc/rc.local file is
provided by the initscripts package. I would suggest to either install
this package ..."
Yes, I have checked that if I go to Alt+Ctrl+F1 (or F2,3,4, etc) and
type init 3 the lxsession isn't killed. I can kill by the kill -9 `pidof
 ...` command. Then I can't get back to init 5 (runlevel5) by simply typing.
Some changes have happened over many releases.

You also mentioned, "... GUI applications like mousepad should not be
run from it. They should be run by the DE or WM. If this is not
possible, run them just before via a ".xsession" file ..."
WM is windows manager. DE is Desktop Environment. For those who will
read this post later on, a compact explanation is at
https://askubuntu.com/questions/18078/what-is-the-difference-between-a-desktop-environment-and-a-window-manager

Thank you, Mr. Lefèvre, for your inputs. Your amended input for your
lines, "... he can probably add it to XFCE's session manager.
Applications -> Settings -> Session and Startup -> Application
Autostart. ..."


[To Mr. Tomas]:
Dear Mr. Tomas,
Thank you, Mr. Tomas, for your inputs. Yes, you are absolutely right
about the mousepad program that I am using. I just want to have the
mousepad automatically launched whenever I begin my GUI session.


[To Mr. Brinkhaus]:
Dear Mr. Brinkhaus,
Thank you for your input. But owing to the situation clarified by the
comments received and summarised above, I will for the time being
pause my endeavour with systemd command. But I will get back to you
for your input and advice, particularly on "... Have you already
enabled your script with the systemd command?
This is from the first link you have provided:

Enable the service by running the following command "sudo systemctl
enable yourscriptname.service"

Start the service by running the following command "sudo systemctl
start yourscriptname.service"

If the service enabled and started please check the output of
systemctl --failed.
The command systemctl status yourscriptname.service should give information even
if the service is running. ..."


[To Mr. Joe]:
Dear Mr. Joe,
Thank you for your reply to Mr. Tomas with a little change: I use the
Debian lxde session, having it installed from the Official Debian
GNU/Linux Live 11.6.0 lxde 2022-12-17T11:46.

So to my tentative next step:
Following Mr. Wooledge's advice, I would  "... Create a ~/.xsessionrc
file ... starting your X session. ..." A little more tutiion on this,
Mr. Wooledge please.

Any advice on this, Mr. Lefèvre, particularly, on autostarting applications?

Leaders, any advice on this?

Also supposing that I would use my screensaver based on "xset dpms
force off" at the start of the lxsession, what would be my steps? How
should I proceed 

Editing /etc/rc.local [was: How to run a command / script on startup automatically in linux?]

2023-05-15 Thread tomas
Changed $SUBJECT, because already way off track.

On Mon, May 15, 2023 at 11:05:07PM +0200, Vincent Lefevre wrote:
> On 2023-05-15 15:56:17 -0400, Greg Wooledge wrote:

[editing /etc/rc.local is a bad idea]

> > That's incorrect.
> 
> It is correct, as shown by the following command:
> 
> zira:~> dlocate etc/rc.local
> initscripts: /etc/rc.local
> 
> Ditto with "apt-file search etc/rc.local".

I'm with Greg here. /etc/rc.local is package-provided, but it is
a conffile [1], [2]:

  tomas@trotzki:~$ dpkg --status initscripts
  Package: initscripts
  Status: install ok installed
  Priority: optional
  [...]
  Conffiles:
   /etc/default/devpts 725336081392e54776899acd2bff6e39
   [...]
   /etc/rc.local 12fe1992accd3a3977b4d8985ebeea9e
  [...]

It's there for you, the system administrator to edit and change.
The packaging system is explicitly designed to cope with that
situation (technically it keeps a fingerprint of the pristine
file and checks that on updates giving you, the sysadmin, the
chance to forward-port your changes).

Cheers

[1] https://www.debian.org/doc/manuals/maint-guide/dother.en.html#conffiles
[2] 
https://raphaelhertzog.com/2010/09/21/debian-conffile-configuration-file-managed-by-dpkg/
-- 
tomás


signature.asc
Description: PGP signature


Re: How to run a command / script on startup automatically in linux?

2023-05-15 Thread tomas
On Mon, May 15, 2023 at 02:51:10PM -0400, Greg Wooledge wrote:

[...]

> I'm fairly certain the OP wants to run this "mousepad" program
> automatically as part of their X or Wayland session.

[...]

This is my take, too.

Cheers
-- 
t


signature.asc
Description: PGP signature


Re: how to find out regdomain/country of wifi network

2023-05-15 Thread David Wright
On Mon 15 May 2023 at 16:38:29 (+0200), Vincent Lefevre wrote:
> On 2023-05-15 08:36:41 -0500, David Wright wrote:
> > On Mon 15 May 2023 at 12:51:55 (+0200), Vincent Lefevre wrote:
> > > Under Debian/unstable, i.e. more much recent than stretch:
> > > 
> > > zira:~> dpkg -s net-tools
> > > Package: net-tools
> > > Status: install ok installed
> > > Priority: important
> > > [...]
> > > 
> > > This is still priority important!
> > 
> > Not at all; AFAICT, the /internal/ Priority of the package has never
> > changed.
> 
> But this is what the user sees.
> 
> > (Just guessing: if you installed it, you need it, and better
> > hang on to it.)
> 
> Wrong. It got installed automatically. I suppose that this is because
> this was like that in the past, when I installed the machine in 2015,
> thus before stretch was out.

Of course, how stupid of me—I should have known that from your post
about a system running sid (quoted above in its entirety).

> I suspect that it wasn't removed because
> of the remaining "Recommends" from pbuilder:
> 
> zira:~> aptitude why net-tools
> i   pbuilder Recommends net-tools | iproute2
> 
> Note: iproute2 is installed too, but net-tools gets the preference.
> This "Recommends" is rather strange if iproute2 is supposed to be
> better!

That's a very odd recommendation: it's difficult to envisage someone
building packages on a system that doesn't have all the packages with
Priority important already installed.

And I haven't seen where any ranking should be understood from
the ordering of Recommends alternatives.

And AIUI   aptitude why   picks an arbitrary choice from equally
strong dependencies (sensu lato). There may be others present.

You say your system is pre-stretch, ie jessie. That means that you
will have had both iproute2 and net-tools installed, as in jessie
they are both ranked important. AFAICT iproute2 has never been
ranked lower than that, and its predecessor, iproute, was important
as far back as lenny. (Earlier than that, it could only be optional,
because you needed various options to have been compiled into the
kernel.)

As far as net-tools's survival is concerned, that's up to you.
Debian gives you some tools to help remove cruft, but aggressive
removal from systems could lead to scripts breaking and so on,
particularly where there are Recommends in play.

Cheers,
David.



Re: How to run a command / script on startup automatically in linux?

2023-05-15 Thread Max Nikulin

On 16/05/2023 00:54, Charles Curley wrote:

On Mon, 15 May 2023 22:44:37 +0530
"Susmita/Rajib" wrote:


ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
ExecStart=mousepad


The fact that you have two ExecStart lines in there might have
something to do with it.


Charles, ExecStart commands are accumulated, see systemd.service(5). To 
clear earlier specified value (e.g. in an override config snippet) use 
the directive with no command


ExecStart=

Back to the original topic. Anyway it was a bad idea to abuse 
rc-local.service. Unless it was a GUI application, it would be better to 
create a new .service to be able start, check status, disable the unit 
independently.


For mousepad, keywords are most likely "XDG autostart". "No DE" users 
usually aware what file should be edited for their window managers.




Re: No space left on device ...

2023-05-15 Thread Albretch Mueller
> Has this ever worked in the past? It is my understanding that the Linux NTFS 
> driver is read-only.
> Mounting how exactly? And what is the contents of /proc/mounts? Maybe
> you mounted the partition read only?

 Well, actually, yes. This is how I have been mounting the Windows
NTFS of my laptop and my employer's as well without any problems
whatsoever. I just open the file browser/viewer and click the drive to
mount it in order to unmount, eject it you right click on it. It
works.

>> $ cp "No space left on device" > No_space_left_on_device.txt
>> bash: No_space_left_on_device.txt: No space left on device

>That *shouldn't* work. I get:

 my mistake I meant: echo "No space left on device" >
No_space_left_on_device.txt

> Does anybody read signatures any more?

 Apparently, some of us do. ;-) My obfuscation of the path didn't
relate to the error.

> First thing to try is to boot back into Windows and see if there is a
message about the drive. If so, let Windows 'fix' it. I've had cases
where the drive was not cleanly unmounted and Linux has mounted it
read-only. Windows was able to repair it, whatever the problem was.

 THis is the second thing I did. I booted into the BIOS and run an
exhaustive test/diagnostic on every physical part of it twice. It all
tested fine, including the hard drive.

 Then something spooky happened. I couldn't care less about Windows,
but then "'the BIOS' 'told me'" it would fix my laptop and it effing
did without messing with any of my data!!! Then I could boot into
windows again ... once I checked everything was fine I went back to my
Debian live ways.

 Every electronic thing I use has a mind of its own, that makes your
life so much more enjoyable! ;-)

> Did you disable the Fast Boot feature in Windows?

 Yes, I did. I had to reset the BIOS to "factory settings" which also
changed the clock time which then I couldn't change with hwclock ...
but when I booted the laptop with a network access at the library. It
did reset the clock apparently using WIndows time servers.

 That fix took me like four hours (dealing with the nonsense of the
installation ...), but at the end of th eday I was able to go back to
my do, do, do, ... mode.

 Thank you,
 lbrtchx



Re: Ok so Now which backup should I use

2023-05-15 Thread Jeremy Ardley



On 16/5/23 09:11, pa...@quillandmouse.com wrote:

I'd suggest backing up /etc, since that's where your system settings
are. I also back up /var, since that's typically where your logs and
mail are.


There is a lot relevant of stuff in /usr/local

For instance some programs use /usr/local/etc rather than /etc

and your custom installed fonts amongst lots of other stuff are in

/usr/local/share


--
Jeremy
(Lists)



Re: Ok so Now which backup should I use

2023-05-15 Thread paulf
On Mon, 15 May 2023 20:17:48 -0400
Maureen L Thomas  wrote:

> I have everything I need including a third HDD.  There are so many 
> backup programs I have to wonder which one will work for my needs.  I 
> just need to make a backup of my home directory so if I do something 
> stupid like play with /var and have no idea how to fix it.  Is there 
> something else I need to back up besides /home? I appreciate your
> help.
> 
> Moe

I'd suggest backing up /etc, since that's where your system settings
are. I also back up /var, since that's typically where your logs and
mail are.

Which backup program you use depends on features, like whether you want
it to fire off at the same time every day. Like whether you want a GUI
or terminal program. Etc. Personally, I wrote my own backup script
using rsync, which fires off each day at about 7:38.

Paul


-- 
Paul M. Foster
Personal Blog: http://noferblatz.com
Company Site: http://quillandmouse.com
Software Projects: https://gitlab.com/paulmfoster



Re: Bookworm soft lockup

2023-05-15 Thread Timothy M Butterworth
On Mon, May 15, 2023 at 4:31 AM David  wrote:

> On Mon, 2023-05-15 at 11:17 +0300, Anssi Saari wrote:
> > Christian Gelinek  writes:
> >
> > > Is anyone else seeing a similar problem? What can I do to avoid
> > > this?
> > > Do we need anything else to narrow it down further?
> >
> > Only time I've seen a soft lockup was from a bad CPU. There were a
> > bunch
> > of them and eventually the computer hung. Going back to the slow
> > plodding Celeron fixed all issues. Except CPU performance of course.
>
> It's happened to me a couple of times, but only since I switched from
> stable to testing, over the last month.
> As I don't think everybody is running a Dell 980 desktop, or the same
> desktop environment, it's probably not a hardware/software mismatch.
> We'd be looking at strictly software, I suspect.
> Cheers!
>

I am also running Bookworm. I am not having the problems you describe. I
have KDE Plasma installed. I do have an issue with CrossOver Office locking
up when exiting TES IV Oblivion. I have to switch terminals and manually
kill the Oblivion processes to get access to the GUI back.


>
> --
> A Kiwi in Australia,
> doing my bit toward raising the national standard.
>
>

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


Re: CUPS on Bullseye and Bookworm

2023-05-15 Thread Timothy M Butterworth
On Sun, May 14, 2023 at 1:30 PM Charles Curley <
charlescur...@charlescurley.com> wrote:

> I have an HP HP_LaserJet_MFP_M234sdw_C0FB67_USB_, one of those modern
> "no driver" multifunction printers. It works fine on Bullseye. I have
> the printer hooked up via USB to a server, hawk, and it prints just
> fine.
>
> I have a client, ideapc, which sees the printer and prints to it just
> fine.
>
> I also have an ancient i386 IBM R51 running Bookworm, dragon. On dragon,
> using system-config-printer, I can see the printer automagically
> discovered. I can open up the queue window for the printer, and request
> a test page.
>

If you are trying to run Bullseye on an actual i386 CPU you will have
strange problems as the minimum hardware version is i686 Pentium II. That
change took place in Debian quite a while ago. The arch still says i386 due
to the large number of dependencies it did not make sense to try to change
it to i686.



> Alas, I see the test page in the queue briefly. The queue window says
> "processing - not connected?", then "Printer error". Then the print job
> disappears, leaving no error message. (This is a change in behavior from
> Bullseye. I do not like it.)
>
> The printer does come awake and report an error when I ask for the test
> page. I don't see anything in the printer's logs.
>
> Logging on both machines shows no errors. I am running firewalld on
> dragon, and did enable logging for unicast. firewalld-cmd reports the
> following, among other things:
>
>services: ipp ipp-client mdns samba-client smtp ssh
>
> --
> Does anybody read signatures any more?
>
> https://charlescurley.com
> https://charlescurley.com/blog/
>
>

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


Re: video issue following latest bullseye update

2023-05-15 Thread Timothy M Butterworth
On Mon, May 15, 2023 at 11:49 AM D. R. Evans  wrote:

> Following an update this morning to one of my bullseye systems, an
> irritating
> video problem has surfaced. The best way I can think of to describe the
> problem is that if one has a line of black text on what is supposed to be
> a
> white background, to the right of the text a clear, short tail of even
> whiter
> background is visible (the tail is maybe an inch or so long).
>
> The update was to:
>Linux 5.10.0-23-amd64 #1 SMP Debian 5.10.179-1 (2023-05-12) x86_64
> GNU/Linux
>
> I suspect that this is due to a driver issue related to the update. (I
> have
> tried a couple of different desktops, KDE and TDE, but they both exhibit
> the
> problem, so I don't think it can be caused by the desktop software. The
> problem did not exist prior to this morning's update.)
>

Try booting an older kernel version. You should have three kernels
installed unless you manually removed all old kernels.


So I'm wondering if someone can walk me through how to figure out what
> video
> driver I am using, and what other drivers might be available to try?
>
>Doc
>
> --
> Web:  http://enginehousebooks.com/drevans
>
>

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


Ok so Now which backup should I use

2023-05-15 Thread Maureen L Thomas
I have everything I need including a third HDD.  There are so many 
backup programs I have to wonder which one will work for my needs.  I 
just need to make a backup of my home directory so if I do something 
stupid like play with /var and have no idea how to fix it.  Is there 
something else I need to back up besides /home? I appreciate your help.


Moe


Re: How to run a command / script on startup automatically in linux?

2023-05-15 Thread Vincent Lefevre
On 2023-05-15 15:56:17 -0400, Greg Wooledge wrote:
> On Mon, May 15, 2023 at 09:37:29PM +0200, Vincent Lefevre wrote:
> > On 2023-05-15 13:42:52 -0400, Greg Wooledge wrote:
> > > On Mon, May 15, 2023 at 10:44:37PM +0530, Susmita/Rajib wrote:
> > > > 
> > > > I saved a file at "/etc/systemd/system/" named "rc-local.service" with
> > > > the following lines:
> > > > 
> > > 
> > > There's no need to do that.  Debian already ships an rc-local.service.
> > > 
> > > All you need to do is create an /etc/rc.local file, make it executable,
> > > and make sure it's a valid shell script (with a shebang and all that).
> > 
> > This is a bad idea. The /etc/rc.local file is provided by the
> > initscripts package. I would suggest to either install this
> > package and use it in the way it is intended or create your
> > own service.
> 
> That's incorrect.

It is correct, as shown by the following command:

zira:~> dlocate etc/rc.local
initscripts: /etc/rc.local

Ditto with "apt-file search etc/rc.local".

> You can claim that using rc.local is a bad practice,

This is not what I'm saying. I'm saying that using it in a way that
it incompatible with initscripts (which provides the file) is a bad
idea. Note that the user might want to install later a package that
would depend on it, and things could break in obscure ways.

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



Re: Mouse trouble on sid

2023-05-15 Thread Kent West
On Mon, May 15, 2023 at 2:16 PM Joe  wrote:

> On Mon, 15 May 2023 13:26:06 -0500
> Kent West  wrote:
>
> > On 5/15/23 11:57, Joe wrote:
> > > Hi,
> > >
> > > Upgraded sid two days ago for the first time for a week or so. Today
> > > have serious mouse problems. Xfce on AMD. First thing tried of
> > > course was another mouse, just the same.
> > >
> > > The computer is barely usable in this state. There were too many
> > > packages upgraded, including the kernel, to be able to narrow down
> > > the culprit or attempt a rollback, well over 100. Google tells me
> > > various things about making the mouse do things, but they all seem
> > > to involve some extra mouse tweak package, none of which I have
> > > installed.
> >
> >
> > I would boot into the CMOS/BIOS/System Setup, and make sure the mouse
> > works properly there (assuming your hardware has such a setup).
>
> No mouse pointer there.
> >
> > I would try a different (new) user.
>
> Exactly the same.
> >
> > I would try in console-mode only (may have to install 'gpm').
>
> Yes, mouse pointer present in console with gpm running, but I can't
> tell if there's any misbehaviour, it doesn't actually do much. It
> selects in mc, but not in aptitude.
> >
> > Then go from there.
> >
> Not much to go on so far. Thanks for your suggestions. This looks like
> a bug in an upgrade, but I can't see evidence of anyone else seeing it.
>
> This is the real problem with running sid: not that things break, but
> that they only break for me.
>
> --
> Joe
>
>
Do you have a new lamp on your computer desk that's putting out EM?

Is your mouse wireless or wired? Try a different USB port?

-- 
Kent West<")))><
IT Support / Client Support
Abilene Christian University
Westing Peacefully - http://kentwest.blogspot.com


Re: AW: EPSON ET M 1120 new printer: If You can read this, you are using the wrong driver

2023-05-15 Thread Andrew M.A. Cater
On Mon, May 15, 2023 at 08:46:22AM +, Schwibinger Michael wrote:
> Good morning
> 
> Thank You.
> 
> EPSON said
> EPSON only works with WIN.
> 
> Regards
> Sophie
> 
> 

Dear Sophie,

Epson do not formally support Linux for many of their printers.
They do provide some uofficial Linux packages. Among these are ones for 
your printer.

I only understand a little German. I am installing a Debian Linux 11 virtual
machine in German in order to help you better.

http://download.ebz.epson.net/dsc/search/01/search/ - the Epson web site.

If you put M1120 into the search box, do not put anything into operating system
and press Enter, you get 20 results.

Follow the links for the Epson printer driver for Linux - accept the license
conditions.

Download - epson-printer-utility_1.1.1-1lsb3.2_amd64.deb

Also run the command that they suggest (as root or by using sudo):

apt install lsb

Install the supporting library for Epson printers from Debian

apt install escputil 

Now follow the tutorial page. Install escputil first, then the Epson printer
driver.

If this fails - tell us *exactly* what fails, error messages and so on.

All the very best, as ever,

Andy Cater

> 
> 
> Von: Brian 
> Gesendet: Sonntag, 7. Mai 2023 22:57
> An: debian-user@lists.debian.org 
> Betreff: Re: EPSON ET M 1120 new printer: If You can read this, you are using 
> the wrong driver
> 
> On Sun 07 May 2023 at 20:27:53 +, Andrew M.A. Cater wrote:
> 
> I offer the following in the interest of correctness and just in case 
> Schwibinger
> Michael gets even more confused or disheartened and considers going away :).
> 
> > From looking on Epson's website:
> >
> > 1. They do not support this printer under Linux officially
> 
>   http://download.ebz.epson.net/dsc/search/01/search/searchModule
> 
> Or, for a direct download
> 
>   https://download3.ebz.epson.net/dsc/f/03/00/14/48/15/1d37501ad39bd2b5753 \
> 
> > 2. The printer is listed as a printer supported only under Windows - lots
> > of variants.
> 
> brian@test-new:~$ /usr/sbin/lpinfo -m | grep -i ET-M1120
> escpr:0/cups/model/epson-inkjet-printer-escpr/Epson-ET-M1120_Series-epson-escpr-en.ppd
>  \
> EPSON ET-M1120 Series , Epson Inkjet Printer Driver (ESC/P-R) for Linux
> 
> --
> Briana.
> 



Re: Mouse trouble on sid

2023-05-15 Thread Kent West
On Mon, May 15, 2023 at 2:16 PM Joe  wrote:

> On Mon, 15 May 2023 13:26:06 -0500
> Kent West  wrote:
>
> > On 5/15/23 11:57, Joe wrote:
> > > Hi,
> > >
> > > Upgraded sid two days ago for the first time for a week or so. Today
> > > have serious mouse problems. Xfce on AMD. First thing tried of
> > > course was another mouse, just the same.
> > >
> > > The computer is barely usable in this state. There were too many
> > > packages upgraded, including the kernel, to be able to narrow down
> > > the culprit or attempt a rollback, well over 100. Google tells me
> > > various things about making the mouse do things, but they all seem
> > > to involve some extra mouse tweak package, none of which I have
> > > installed.
> >
> >
> > I would boot into the CMOS/BIOS/System Setup, and make sure the mouse
> > works properly there (assuming your hardware has such a setup).
>
> No mouse pointer there.
> >
> > I would try a different (new) user.
>
> Exactly the same.
> >
> > I would try in console-mode only (may have to install 'gpm').
>
> Yes, mouse pointer present in console with gpm running, but I can't
> tell if there's any misbehaviour, it doesn't actually do much. It
> selects in mc, but not in aptitude.
> >
> > Then go from there.
> >
> Not much to go on so far. Thanks for your suggestions. This looks like
> a bug in an upgrade, but I can't see evidence of anyone else seeing it.
>
> This is the real problem with running sid: not that things break, but
> that they only break for me.
>
> --
> Joe
>
>
I should have also suggested a different window manager:

# taskselect

Another console-based app in which the mouse should function is links2.

-- 
Kent West<")))><
IT Support / Client Support
Abilene Christian University
Westing Peacefully - http://kentwest.blogspot.com


Re: Mouse trouble on sid

2023-05-15 Thread Stefan Monnier
> It's just the problems I get don't seem to happen to anyone else. But
> then I suppose, like Land Rovers, there's no two identical sid
> installations anywhere.

That's indeed a downside of Debian's package management where the set of
packages (and their versions) installed just before an upgrade can have
a vast impact on the set of packages you end up with.

In systems like Guix/Nix the set of packages you end up with is uniquely
determined by the "specification" of your system.  In such a system,
upgrading just computes the new set of packages that should be present
(regardless of those currently installed) and then figures out how to
change the current system to get there.


Stefan



Re: Mouse trouble on sid

2023-05-15 Thread Christoph Brinkhaus
Am Mon, May 15, 2023 at 08:57:38PM +0100 schrieb Joe:

Hello Joe,

> On Mon, 15 May 2023 19:35:23 +
> "Andrew M.A. Cater"  wrote:
> 
> > On Mon, May 15, 2023 at 08:15:42PM +0100, Joe wrote:
> > > On Mon, 15 May 2023 13:26:06 -0500
> > > Kent West  wrote:
> > >   
> > > > On 5/15/23 11:57, Joe wrote:  
> > > > > Hi,
> > > > >  
> > > > 
> > > > Then go from there.
> > > >   
> > > Not much to go on so far. Thanks for your suggestions. This looks
> > > like a bug in an upgrade, but I can't see evidence of anyone else
> > > seeing it.
> > > 
> > > This is the real problem with running sid: not that things break,
> > > but that they only break for me.
> > >   
> > 
> > If you run sid, you are absolutely expected to be able to resolve any
> > problems you encounter. If it breaks, you get to keep both pieces.
> > That's the contract with sid, more than with the other tranches of
> > Debian (which comes with no overall warranty).
> > 
> > If you want increased stability and less shiny new stuff, you run
> > stable or, if you feel able to help debug and develop it, testing.
> > 
> > Them's the breaks: and, as ever, DontBreakDebian by mixing different
> > suites.
> > 
> 
> Yes, I know all that, I've been running sid since sarge was stable, and
> only had to reinstall twice in that time.

One idea is to try a minimalistic window manager as twm to find out if
the issue is related to xfce.

The second idea could be to run apt-get autoremove - but I am not sure
if this is a good idea for a non standard Debian installation. For the
standard installations it is recommended to get rid of outdated
libraries. But since you seem to be a long time Debian user I do not
tell you anything new.

> It's just the problems I get don't seem to happen to anyone else. But
> then I suppose, like Land Rovers, there's no two identical sid
> installations anywhere.

I like that image.
Land Rovers are the world best car for their purpose!
They are legends forever.

Kind regards,
Christoph
-- 
Ist die Katze gesund
schmeckt sie dem Hund.


signature.asc
Description: PGP signature


Re: how to find out regdomain/country of wifi network

2023-05-15 Thread Celejar
On Sat, 13 May 2023 20:29:11 +0200
 wrote:

> On Sat, May 13, 2023 at 01:01:27PM -0500, Nicholas Geovanis wrote:
> > On Sat, May 13, 2023, 5:23 AM Jeremy Ardley  wrote:
> > 
> > >
> > > On 13/5/23 18:17, Nicolas George wrote:
> > > > This is your interpretation, not an official stance. It might as well be
> > > > that they considered polluting the completion namespace of users with a
> > > > command they rarely need was less convenient.
> > >
> > > The actual reason is they have deprecated it in favour of the ip command
> > > but left it available for now with a bit of searching.
> > >
> > 
> > Ifconfig has been deprecated in Debian for some years.
> 
> It is *not* deprecated. It is just optional, not essential. As is the
> Gnu C compiler or Lua or... you name it. If you need it, you install
> it. It is in stable (version 1.60), coming in testing (v 2.10) and is
> in unstable. It is not going away, folks!

We can quibble about the term "deprecated," but the official Debian
Reference Manual repeatedly calls it "obsolete":

https://www.debian.org/doc/manuals/debian-reference/ch05.en.html

-- 
Celejar



Re: How to run a command / script on startup automatically in linux?

2023-05-15 Thread Greg Wooledge
On Mon, May 15, 2023 at 09:37:29PM +0200, Vincent Lefevre wrote:
> On 2023-05-15 13:42:52 -0400, Greg Wooledge wrote:
> > On Mon, May 15, 2023 at 10:44:37PM +0530, Susmita/Rajib wrote:
> > > 
> > > I saved a file at "/etc/systemd/system/" named "rc-local.service" with
> > > the following lines:
> > > 
> > 
> > There's no need to do that.  Debian already ships an rc-local.service.
> > 
> > All you need to do is create an /etc/rc.local file, make it executable,
> > and make sure it's a valid shell script (with a shebang and all that).
> 
> This is a bad idea. The /etc/rc.local file is provided by the
> initscripts package. I would suggest to either install this
> package and use it in the way it is intended or create your
> own service.

That's incorrect.

===
unicorn:~$ systemctl cat rc-local.service | cat
# /lib/systemd/system/rc-local.service
#  SPDX-License-Identifier: LGPL-2.1-or-later
#
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

# This unit gets pulled automatically into multi-user.target by
# systemd-rc-local-generator if /etc/rc.local is executable.
[Unit]
Description=/etc/rc.local Compatibility
Documentation=man:systemd-rc-local-generator(8)
ConditionFileIsExecutable=/etc/rc.local
After=network.target

[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
RemainAfterExit=yes
GuessMainPID=no

# /lib/systemd/system/rc-local.service.d/debian.conf
[Unit]
# not specified by LSB, but has been behaving that way in Debian under SysV
# init and upstart
After=network-online.target

# Often contains status messages which users expect to see on the console
# during boot
[Service]
StandardOutput=journal+console
StandardError=journal+console
===

You can claim that using rc.local is a bad practice, and I won't argue
against you.  But this unit *is* provided by Debian (including Debian's
own little patch, which you can see at the end of the output above), and
if you want to use rc.local at all, this is how it's done.

Of course, this is all irrelevant to the OP's implied goal of running
an X11 client program at user login.



Re: How to download source package using only console?

2023-05-15 Thread Alexander V. Makartsev

On 15.05.2023 15:19, Vincent Lefevre wrote:

On 2023-05-15 10:25:45 +0500, Alexander V. Makartsev wrote:


I see. That explains why I can request source package
"golang-github-xenolf-lego/testing" directly and get the right one.
So, in my case, I won't be able to reliably get a source package(-s) from
"testing" if I don't add "deb" part of "testing" to "sources.list", which
could be a different can of worms...
Is this something for me to just be aware of and leave it as is now, or is
there more elegant solution?

Well, if you don't want the "deb" part, you need to provide the
name of the source package directly to "apt source". If you do that
frequently, you can write a script. There are 2 solutions:
* A remote request, e.g. with rmadison.
* Something based of "apt cache show". From that, you can get the
   source package, then call "apt source" with the source package.
   But note that this is only a heuristic; if the name of the source
   package has changed from stable to testing, this won't work.

Note that adding the "deb" part shouldn't be much an issue (except
noise, e.g. with "apt cache show", which would give output for both
stable and testing). If you want to make sure that a package from
testing won't be installed by mistake (by apt), I suppose that you
can use apt preferences with a negative priority for testing to
prevent such an installation:

Package: *
Pin: release a=testing
Pin-Priority: -1

(not tried). See the apt_preferences(5) man page for details.

It looks like adding the "deb" part with apt pinning is the best option.
Even with pinning in effect, packages from "testing" still could be 
installed, but only if they were manually requested.

Now the command "$ apt source lego/testing" is working properly.
Thanks for suggestions, Vincent.

--
With kindest regards, Alexander.

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

Re: How to run a command / script on startup automatically in linux?

2023-05-15 Thread Vincent Lefevre
On 2023-05-15 13:42:52 -0400, Greg Wooledge wrote:
> On Mon, May 15, 2023 at 10:44:37PM +0530, Susmita/Rajib wrote:
> > 
> > I saved a file at "/etc/systemd/system/" named "rc-local.service" with
> > the following lines:
> > 
> 
> There's no need to do that.  Debian already ships an rc-local.service.
> 
> All you need to do is create an /etc/rc.local file, make it executable,
> and make sure it's a valid shell script (with a shebang and all that).

This is a bad idea. The /etc/rc.local file is provided by the
initscripts package. I would suggest to either install this
package and use it in the way it is intended or create your
own service.

> A GUI-related program has to be run after you launch your GUI session.
> Traditionally, this is accomplished by adding it to your .xsession file,
> if you wrote your own .xsession file.  But most Desktop Environment
> users don't do that.  They don't have a personal .xsession file at all.

The .xsession file entirely replaces the desktop environment or
window manager. See /etc/X11/Xsession.d/50x11-common_determine-startup
and the Xsession(5) man page. This is useful to run configuration
utilities before explicitly running the window manager at the end.

> Debian created another file called .xsessionrc which you can use instead,
> even if your don't use an .xsession file.

But note that programs run from .xsessionrc may be run too soon
(before other settings from /etc/X11/Xsession.d). The .xsessionrc
file should only be used to set up environment variables and things
like that.

> So, here's what I'd suggest:
> 
> 1) Get rid of your /etc/systemd/system/rc-local.service file.  It's not
>needed, and will just cause confusion.

Agreed.

> 2) Create a ~/.xsessionrc file containing the commands you want to run
>while starting your X session.

This depends on the commands. GUI applications like mousepad should
not be run from it. They should be run by the DE or WM. If this is
not possible, run them just before via a ".xsession" file.

> 3) Double-check that this "mousepad" command can be run in the way you're
>running it.  Does it self-background?  If not, then you need to put
>an ampersand after it:
> 
>mousepad &

Note that if it is run by the DE or WM (recommended way as this
may benefit from the DE/WM features), there is probably no need
for the "&".

> See also: https://wiki.debian.org/Xsession

The man page is more detailed.

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



Re: Mouse trouble on sid

2023-05-15 Thread Andrew M.A. Cater
On Mon, May 15, 2023 at 08:15:42PM +0100, Joe wrote:
> On Mon, 15 May 2023 13:26:06 -0500
> Kent West  wrote:
> 
> > On 5/15/23 11:57, Joe wrote:
> > > Hi,
> > >
> > 
> > Then go from there.
> > 
> Not much to go on so far. Thanks for your suggestions. This looks like
> a bug in an upgrade, but I can't see evidence of anyone else seeing it.
> 
> This is the real problem with running sid: not that things break, but
> that they only break for me.
> 

If you run sid, you are absolutely expected to be able to resolve any
problems you encounter. If it breaks, you get to keep both pieces.
That's the contract with sid, more than with the other tranches of
Debian (which comes with no overall warranty).

If you want increased stability and less shiny new stuff, you run stable
or, if you feel able to help debug and develop it, testing.

Them's the breaks: and, as ever, DontBreakDebian by mixing different suites.

Andy Cater

> -- 
> Joe
> 



Re: How to run a command / script on startup automatically in linux?

2023-05-15 Thread Joe
On Mon, 15 May 2023 20:26:09 +0200
 wrote:

> On Mon, May 15, 2023 at 10:44:37PM +0530, Susmita/Rajib wrote:
> > My dear illustrious List members and leaders of the Debian-users
> > group:  
> 
> [...]
> 
> > I saved a file at "/etc/systemd/system/" named "rc-local.service"
> > with the following lines:  
> 
> [...]
> 
> > I also added the line in the file /etc/rc.local:
> > mousepad  
> 
> 
> Is it this mousepad?
> 
>   mousepad/stable 0.5.2-1 amd64
> simple Xfce oriented text editor

That's the only one I ever heard of. I use it, mostly as a clipboard
where the usual copy/paste is having trouble, or if I want to make
alterations before pasting.
> 
> > But the program doesn't launch at startup. Where I am going wrong?
> > Does it fail to start because the command is run before the GUI
> > starts up?  
> 
> Then yes: system startup is "too early". Most probably you don't even
> want to have it running as a "system program", but as a "user
> program", under your user ID and whithin your (user) graphical
> session.
> 
> In this case, I'd look at what possibilities your desktop environment
> (or window manager) offer. They usually have a way to start programs
> at session start (at which point all the environment your mousepad
> will need is set up).

Indeed. If the OP is running Xfce, then Settings, Session and Startup in
the main menu allow applications to be started on login.

But this is the simple answer, and it may be that the OP is more
concerned with learning system autostart procedures, in which case a
GUI application like Mousepad isn't the right one to play with. Running
something like an iptables script without using iptables-persistent
might be a better choice.

-- 
Joe



Re: video issue following latest bullseye update

2023-05-15 Thread Felix Miata
D. R. Evans composed on 2023-05-15 12:50 (UTC-0600):

> Felix Miata wrote on 5/15/23 11:16:

>> D. R. Evans composed on 2023-05-15 09:49 (UTC-0600):

>>> I'm wondering if someone can walk me through how to figure out what video
>>> driver I am using, and what other drivers might be available to try?

>> Not without knowing anything about your GPU:

> Yes, I figured that that would be the first step; I didn't know how to do 
> that 
> either, so thanks for taking my "walk me through" request seriously.

>>   sudo sed -i 'a/^B_ALLOW_UPDATE/#B_ALLOW_UPDATE/g' /etc/inxi.conf # just 
>> doit

The object was to disable Debian's disabling of internal inxi update mechanism,
and I forgot to tell you to use it as step 2:

inxi -U

Current upstream version is 3.3.27. Bullseye's is ancient, lacking, and quite
broken in inxi parlance.

>>   inxi -SGaz # paste into your reply

> [ZB:tmp] inxi -SGaz
> System:Kernel: 5.10.0-23-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1
> parameters: BOOT_IMAGE=/BOOT/debian@/vmlinuz-5.10.0-23-amd64 
> root=ZFS=/ROOT/debian ro root=ZFS=rpool/ROOT/debian
> Desktop: Trinity info: kicker wm: Twin dm: LightDM 1.26.0 Distro: 
> Debian GNU/Linux 11 (bullseye)
> Graphics:  Device-1: NVIDIA GF108 [GeForce GT 430] vendor: Gigabyte driver: 
> nouveau v: kernel bus ID: 04:00.0
> chip ID: 10de:0de1 class ID: 0300
> Display: x11 server: X.Org 1.20.11 driver: loaded: nouveau 
> unloaded: modesetting display ID: :0 screens: 1
> Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm 
> (20.0x11.2") s-diag: 582mm (22.9")
> Monitor-1: HDMI-1 res: 1920x1080 hz: 60 dpi: 96 size: 509x286mm 
> (20.0x11.3") diag: 584mm (23")
> OpenGL: renderer: NVC1 v: 4.3 Mesa 20.3.5 direct render: Yes
> [ZB:tmp]

Thus, expected info is missing, and too long lines wrapped.

> FYI, the actual physical size of the monitor is quite a lot larger than the 
> 23" reported in the output above. I don't suppose that that matters, but I 
> noticed that the numbers are wrong, so I thought I'd better mention it. The 
> actual diagonal size of the monitor is ~32".

15 or more years years ago, Xorg was reconfigured to lie about DPI and screen
size. It forces DPI to 96 regardless of actual screen dimensions, and shows the
actual physical dimensions required to produce 96 DPI. If you wish actual DPI
used, or any arbitrary DPI, it must be forced through xrandr or 
/etc/X11/xorg.con*.

>>   cat /var/log/Xorg.0.log | pastebinit # provide resulting URL in reply

> https://paste.debian.net/1280303/

Nothing obvious shows up in the log or your incomplete inxi output, except that
you have the exact same GPU as I have in a currently idle PC here, with TDE,
that's due for an update, so if what I suggest below doesn't help, I'll do that
this afternoon to see if it repros here.

Try using the (default) modesetting DIX display driver instead of Nouveau. 
Remove
package

xserver-xorg-video-nouveau

and reboot to see if it makes a difference. I use only the DIX for all of my
NVidia GPUs. It's so default it isn't separately packaged. :)

DIX: Device Independent X (display driver).
All other high competence display drivers are DDX, Device (brand/model) 
Dependent.
-- 
Evolution as taught in public schools is, like religion,
based on faith, not based on science.

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

Felix Miata



Re: CUPS on Bullseye and Bookworm

2023-05-15 Thread gene heskett

On 5/15/23 14:32, Charles Curley wrote:

On Mon, 15 May 2023 12:18:56 -0400
gene heskett  wrote:


this is interesting Brian, but how do I adapt it to my brother
printers? All I can get by substituting the queue name M234 is
"printer or class does not exist".


Right. M234 is the name assigned previously. You get the URI(s) of
available printer(s) by running the program driverless. E.g.:

root@dragon:~# driverless
ipps://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipps._tcp.local/
root@dragon:~#

Then feed that into:

lpadmin -p M234 -v "URI" -E -m everywhere

But edit in a better (for you) name for the printer than M234.

You might get away with something like:

lpadmin -p heskett.printer -v "$(driverless)" -E -m everywhere

but I haven't experimented with that.


And the only printer that shows in the driverless output:
ipp://Brother%20MFC-J6920DW._ipp._tcp.local/
is I believe the only one of 3 references to that physical printer in 
cups, that does not work, it ignores the tray selection passed.  That is 
an expen$ive lack.


Thanks Charles.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: How to run a command / script on startup automatically in linux?

2023-05-15 Thread Greg Wooledge
On Mon, May 15, 2023 at 12:43:01PM -0600, Charles Curley wrote:
> On Mon, 15 May 2023 13:42:52 -0400
> Greg Wooledge  wrote:
> 
> > There's no need to do that.  Debian already ships an rc-local.service.
> 
> True. In order to edit it, the user should copy it into /etc/systemd/…
> and edit it there. There are commands in systemd to make that fairly
> painless. See man systemctl -> edit.

... why would the user want to edit it?!

The unit file is already THERE, and WORKS, and does not need to be edited.

> I think the OP is more interested in learning things and was following
> a tutorial when the question came up. But guessing what OPs are up to
> is a rum game.

I'm fairly certain the OP wants to run this "mousepad" program
automatically as part of their X or Wayland session.

If they're using a Wayland session, then I cannot offer any help.

If they're using X, then my previous message contains all that's needed,
for someone who can follow the instructions.

Conceptually, the main hurdle here is that the OP did not seem to
understand that these are two entirely separate things:

1) System startup.

2) User session startup.  (And 2a, user GUI session startup, which may
   be a separate step.)

An X11 program has to be started as part of the latter.  Their original
attempt was trying to incorporate it into the former, which is not going
to work.



Re: video issue following latest bullseye update

2023-05-15 Thread D. R. Evans

Felix Miata wrote on 5/15/23 11:16:

D. R. Evans composed on 2023-05-15 09:49 (UTC-0600):


I'm wondering if someone can walk me through how to figure out what video
driver I am using, and what other drivers might be available to try?


Not without knowing anything about your GPU:


Yes, I figured that that would be the first step; I didn't know how to do that 
either, so thanks for taking my "walk me through" request seriously.




  sudo sed -i 'a/^B_ALLOW_UPDATE/#B_ALLOW_UPDATE/g' /etc/inxi.conf # just doit
  inxi -SGaz # paste into your reply




[ZB:tmp] inxi -SGaz
System:Kernel: 5.10.0-23-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1
   parameters: BOOT_IMAGE=/BOOT/debian@/vmlinuz-5.10.0-23-amd64 
root=ZFS=/ROOT/debian ro root=ZFS=rpool/ROOT/debian
   Desktop: Trinity info: kicker wm: Twin dm: LightDM 1.26.0 Distro: 
Debian GNU/Linux 11 (bullseye)
Graphics:  Device-1: NVIDIA GF108 [GeForce GT 430] vendor: Gigabyte driver: 
nouveau v: kernel bus ID: 04:00.0

   chip ID: 10de:0de1 class ID: 0300
   Display: x11 server: X.Org 1.20.11 driver: loaded: nouveau 
unloaded: modesetting display ID: :0 screens: 1
   Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm 
(20.0x11.2") s-diag: 582mm (22.9")
   Monitor-1: HDMI-1 res: 1920x1080 hz: 60 dpi: 96 size: 509x286mm 
(20.0x11.3") diag: 584mm (23")

   OpenGL: renderer: NVC1 v: 4.3 Mesa 20.3.5 direct render: Yes
[ZB:tmp]



FYI, the actual physical size of the monitor is quite a lot larger than the 
23" reported in the output above. I don't suppose that that matters, but I 
noticed that the numbers are wrong, so I thought I'd better mention it. The 
actual diagonal size of the monitor is ~32".



  cat /var/log/Xorg.0.log | pastebinit # provide resulting URL in reply


https://paste.debian.net/1280303/

Thank you.

  Doc

--
Web:  http://enginehousebooks.com/drevans



Re: How to run a command / script on startup automatically in linux?

2023-05-15 Thread Charles Curley
On Mon, 15 May 2023 20:26:09 +0200
 wrote:

> Is it this mousepad?
> 
>   mousepad/stable 0.5.2-1 amd64
> simple Xfce oriented text editor
> 
> > But the program doesn't launch at startup. Where I am going wrong?
> > Does it fail to start because the command is run before the GUI
> > starts up?  
> 
> Then yes: system startup is "too early". Most probably you don't even
> want to have it running as a "system program", but as a "user
> program", under your user ID and whithin your (user) graphical
> session.
> 
> In this case, I'd look at what possibilities your desktop environment
> (or window manager) offer. They usually have a way to start programs
> at session start (at which point all the environment your mousepad
> will need is set up).

Right. If it is that mousepad, and if the OP is running XFCE, he can
probably add it to XFCE's session manager. Applications -> Settings ->
Session and Startup -> Application Autostart.

-- 
Does anybody read signatures any more?

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



Re: How to run a command / script on startup automatically in linux?

2023-05-15 Thread Charles Curley
On Mon, 15 May 2023 13:42:52 -0400
Greg Wooledge  wrote:

> There's no need to do that.  Debian already ships an rc-local.service.

True. In order to edit it, the user should copy it into /etc/systemd/…
and edit it there. There are commands in systemd to make that fairly
painless. See man systemctl -> edit.

I think the OP is more interested in learning things and was following
a tutorial when the question came up. But guessing what OPs are up to
is a rum game.

-- 
Does anybody read signatures any more?

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



Re: CUPS on Bullseye and Bookworm

2023-05-15 Thread Charles Curley
On Mon, 15 May 2023 12:18:56 -0400
gene heskett  wrote:

> this is interesting Brian, but how do I adapt it to my brother
> printers? All I can get by substituting the queue name M234 is
> "printer or class does not exist".

Right. M234 is the name assigned previously. You get the URI(s) of
available printer(s) by running the program driverless. E.g.:

root@dragon:~# driverless
ipps://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipps._tcp.local/
root@dragon:~# 

Then feed that into:

lpadmin -p M234 -v "URI" -E -m everywhere

But edit in a better (for you) name for the printer than M234.

You might get away with something like:

lpadmin -p heskett.printer -v "$(driverless)" -E -m everywhere

but I haven't experimented with that.

-- 
Does anybody read signatures any more?

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



Re: How to run a command / script on startup automatically in linux?

2023-05-15 Thread tomas
On Mon, May 15, 2023 at 10:44:37PM +0530, Susmita/Rajib wrote:
> My dear illustrious List members and leaders of the Debian-users group:

[...]

> I saved a file at "/etc/systemd/system/" named "rc-local.service" with
> the following lines:

[...]

> I also added the line in the file /etc/rc.local:
> mousepad


Is it this mousepad?

  mousepad/stable 0.5.2-1 amd64
simple Xfce oriented text editor

> But the program doesn't launch at startup. Where I am going wrong?
> Does it fail to start because the command is run before the GUI starts
> up?

Then yes: system startup is "too early". Most probably you don't even
want to have it running as a "system program", but as a "user program",
under your user ID and whithin your (user) graphical session.

In this case, I'd look at what possibilities your desktop environment
(or window manager) offer. They usually have a way to start programs
at session start (at which point all the environment your mousepad will
need is set up).

> I don't want to use cron by editing crontab -e. I tried @reboot
> mousepad, but doesn't work.

Again: cron is "outside" the graphical environment. If my hunch above
is correct, it will feel "lost" and won't even know how to start.

So please tell us two things:

 - what is this "mousepad" thing?
 - what desktop environment/window manager are you using?

Cheers
-- 
tomás


signature.asc
Description: PGP signature


Re: Mouse trouble on sid

2023-05-15 Thread Kent West



On 5/15/23 11:57, Joe wrote:

Hi,

Upgraded sid two days ago for the first time for a week or so. Today
have serious mouse problems. Xfce on AMD. First thing tried of course
was another mouse, just the same.

The computer is barely usable in this state. There were too many
packages upgraded, including the kernel, to be able to narrow down the
culprit or attempt a rollback, well over 100. Google tells me various
things about making the mouse do things, but they all seem to involve
some extra mouse tweak package, none of which I have installed.



I would boot into the CMOS/BIOS/System Setup, and make sure the mouse 
works properly there (assuming your hardware has such a setup).


I would try a different (new) user.

I would try in console-mode only (may have to install 'gpm').

Then go from there.

--

Kent




Re: How to run a command / script on startup automatically in linux?

2023-05-15 Thread Christoph Brinkhaus
Am Mon, May 15, 2023 at 10:44:37PM +0530 schrieb Susmita/Rajib:

Hello Rajib,

> My dear illustrious List members and leaders of the Debian-users group:
> I used the contents in the following webpages:
> https://www.tutorialspoint.com/run-a-script-on-startup-in-linux
> https://www.baeldung.com/linux/run-command-start-up
> 
> I saved a file at "/etc/systemd/system/" named "rc-local.service" with
> the following lines:
> 
> [Unit]
> Description=/etc/rc.local Compatibility
> ConditionPathExists=/etc/rc.local
> Description=Screensaver
> 
> [Service]
> Type=forking
> ExecStart=/etc/rc.local start
> TimeoutSec=0
> StandardOutput=tty
> RemainAfterExit=yes
> SysVStartPriority=99
> ExecStart=mousepad
> Restart=always
> User=root
> Group=root
> Type=simple
> 
> [Install]
> WantedBy=multi-user.target
> 
> 
> I also added the line in the file /etc/rc.local:
> mousepad
> 
> But the program doesn't launch at startup. Where I am going wrong?
> Does it fail to start because the command is run before the GUI starts
> up?
> 
> I don't want to use cron by editing crontab -e. I tried @reboot
> mousepad, but doesn't work.
> 
> Please advise.

Have you already enabled your script with the systemd command?
This is from the first link you have provided:

Enable the service by running the following command "sudo systemctl
enable yourscriptname.service"

Start the service by running the following command "sudo systemctl
start yourscriptname.service"

If the service enabled and started please check the output of systemctl 
--failed.
The command systemctl status yourscriptname.service should give information even
if the service is running.

Kind regards,
Christoph
-- 
Ist die Katze gesund
schmeckt sie dem Hund.


signature.asc
Description: PGP signature


Re: How to run a command / script on startup automatically in linux?

2023-05-15 Thread Charles Curley
On Mon, 15 May 2023 22:44:37 +0530
"Susmita/Rajib"  wrote:

> ExecStart=/etc/rc.local start
> TimeoutSec=0
> StandardOutput=tty
> RemainAfterExit=yes
> SysVStartPriority=99
> ExecStart=mousepad

The fact that you have two ExecStart lines in there might have
something to do with it.

The exercise was to show you how to use /etc/rc.local, so I would
suggest you use the systemd file exactly as they showed it, and put a
call to mousepad into /etc/rc.local. You may have to create it. If so,
be sure to make it owned by root:root and execute for the owner only.
Exactly how you do those things I leave as an exercise for the student.

However, the systemd service is the better approach, so I suggest you
play with that approach and create a mousepad service. Good luck.

-- 
Does anybody read signatures any more?

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



Re: How to run a command / script on startup automatically in linux?

2023-05-15 Thread Greg Wooledge
On Mon, May 15, 2023 at 10:44:37PM +0530, Susmita/Rajib wrote:
> 
> I saved a file at "/etc/systemd/system/" named "rc-local.service" with
> the following lines:
> 

There's no need to do that.  Debian already ships an rc-local.service.

All you need to do is create an /etc/rc.local file, make it executable,
and make sure it's a valid shell script (with a shebang and all that).

> I also added the line in the file /etc/rc.local:
> mousepad

Make sure /etc/rc.local is executable, and has a #!/bin/sh header line.

Beyond that, I am not familiar with "mousepad".  It doesn't sound like
the kind of program that can be run as a background service daemon.
What does it actually do?  Does it interact with X11 in some way?  If
it does, then this is not the place to launch it.

> But the program doesn't launch at startup. Where I am going wrong?
> Does it fail to start because the command is run before the GUI starts
> up?

If it's GUI-related, then yes.  You can't do this from rc.local.

> I don't want to use cron by editing crontab -e. I tried @reboot
> mousepad, but doesn't work.

If it's GUI-related, you can't do it from crontab either.

A GUI-related program has to be run after you launch your GUI session.
Traditionally, this is accomplished by adding it to your .xsession file,
if you wrote your own .xsession file.  But most Desktop Environment
users don't do that.  They don't have a personal .xsession file at all.

Debian created another file called .xsessionrc which you can use instead,
even if your don't use an .xsession file.

So, here's what I'd suggest:

1) Get rid of your /etc/systemd/system/rc-local.service file.  It's not
   needed, and will just cause confusion.

2) Create a ~/.xsessionrc file containing the commands you want to run
   while starting your X session.

3) Double-check that this "mousepad" command can be run in the way you're
   running it.  Does it self-background?  If not, then you need to put
   an ampersand after it:

   mousepad &

See also: https://wiki.debian.org/Xsession



How to run a command / script on startup automatically in linux?

2023-05-15 Thread Susmita/Rajib
My dear illustrious List members and leaders of the Debian-users group:

I used the contents in the following webpages:

https://www.tutorialspoint.com/run-a-script-on-startup-in-linux

https://www.baeldung.com/linux/run-command-start-up

I saved a file at "/etc/systemd/system/" named "rc-local.service" with
the following lines:

[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local
Description=Screensaver

[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
ExecStart=mousepad
Restart=always
User=root
Group=root
Type=simple

[Install]
WantedBy=multi-user.target


I also added the line in the file /etc/rc.local:
mousepad

But the program doesn't launch at startup. Where I am going wrong?
Does it fail to start because the command is run before the GUI starts
up?

I don't want to use cron by editing crontab -e. I tried @reboot
mousepad, but doesn't work.

Please advise.

Best wishes,
Rajib B



Re: video issue following latest bullseye update

2023-05-15 Thread Felix Miata
D. R. Evans composed on 2023-05-15 09:49 (UTC-0600):

> I'm wondering if someone can walk me through how to figure out what video 
> driver I am using, and what other drivers might be available to try?

Not without knowing anything about your GPU:

 sudo sed -i 'a/^B_ALLOW_UPDATE/#B_ALLOW_UPDATE/g' /etc/inxi.conf # just doit
 inxi -SGaz # paste into your reply
 cat /var/log/Xorg.0.log | pastebinit # provide resulting URL in reply
-- 
Evolution as taught in public schools is, like religion,
based on faith, not based on science.

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

Felix Miata



Re: how to find out regdomain/country of wifi network

2023-05-15 Thread Greg Wooledge
On Mon, May 15, 2023 at 12:00:36PM -0400, gene heskett wrote:
> On 5/15/23 07:03, Greg Wooledge wrote:
> > On Mon, May 15, 2023 at 12:10:13AM -0500, David Wright wrote:
> > > I read somewhere that the recent tweaks (improvements?) to
> > > ifconfig's output were breaking scripts, which is hardly surprising.
> > 
> > I can personally confirm this as true.  Some of the machines at work
> > run a proprietary software product that uses a license key, tied to
> > the machine's ethernet interface's MAC address.  The vendor's script
> > runs ifconfig and tries to parse the output to get the MAC address.
> > This script fails on the recent versions of net-tools.
> > 
> > .
> One might be able to fix that with hexedit or a clone, by changing the
[...]

Thanks, but I don't require any assistance with this.  I simply told
the vendor what the correct IP address and MAC address are.  (They're
a small company, and we have direct contact with them.)

I was simply confirming that yes, the changes to net-tools did in fact
break some real-world scripts.



Re: how to find out regdomain/country of wifi network

2023-05-15 Thread Jeffrey Walton
On Mon, May 15, 2023 at 12:01 PM gene heskett  wrote:
> [...]
> The point is that what can be done in software, can also be undone.

I spent a lot of time on Fravia's site back in the 1990's. There was
no protection scheme we couldn't break. Or I don't recall one.

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

Jeff



Re: CUPS on Bullseye and Bookworm

2023-05-15 Thread gene heskett

On 5/15/23 07:10, Brian wrote:

On Sun 14 May 2023 at 20:57:23 -0600, Charles Curley wrote:


On Sun, 14 May 2023 23:30:25 +0100
Brian  wrote:


On Sun 14 May 2023 at 14:04:51 -0600, Charles Curley wrote:





We take it that dragon, hawk and the printer are network connected.

Give what you get from dragon with

   avahi-browse -rt _ipp._tcp
   avahi-browse -rt _uscan._tcp
   driverless
   lpstat -l -e

avahi-browse is in the avahi-utils package.



root@dragon:~# avahi-browse -rt _ipp._tcp
+ wlp2s2 IPv4 HP LaserJet MFP M234sdw (C0FB67)  Internet Printer
 local
= wlp2s2 IPv4 HP LaserJet MFP M234sdw (C0FB67)  Internet Printer
 local
hostname = [hpm234ethernet.local]
address = [192.168.100.134]
port = [631]
txt = ["mopria-certified=2.1" "mac=6c:02:e0:c0:fb:67" "usb_MDL=HP LaserJet MFP M232-M237" "usb_MFG=HP" "TLS=1.2" "PaperMax=legal-A4" "kind=document,envelope,photo" "UUID=d532fa73-f559-43ca-9f8e-1eef16972345" 
"Fax=F" "Scan=T" "Duplex=T" "Color=F" "note=" "adminurl=http://hpm234ethernet.local./hp/device/info_config_AirPrint.html?tab=Networking&menu=AirPrintStatus"; "priority=10" "product=(HP LaserJet MFP M232-M237)" 
"ty=HP LaserJet MFP M232-M237" "URF=V1.4,CP99,W8,OB10,PQ3-4,DM1,IS1-4,MT1-3-5,RS300-600" "rp=ipp/print" "pdl=application/PCLm,application/octet-stream,image/pwg-raster" "qtotal=1" "txtvers=1"]


Useful data but an aside first:

The pdl= key lacks image/urf. HP claims AirPrint support for the device 
(URF=V1.4,...).
It looks like you have been sold a pup. A firmware update?


root@dragon:~# driverless
ipps://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipps._tcp.local/


This is the URI for the printer. You will need to substitute it later into an 
lpadmin
command.


root@dragon:~# lpstat -l -e
HP-HP-LaserJet-MFP-M232-M237 permanent 
ipp://localhost/printers/HP-HP-LaserJet-MFP-M232-M237 
dnssd://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipp._tcp.local/?uuid=d532fa73-f559-43ca-9f8e-1eef16972345
HP-HP-LaserJet-MFP-M232-M237-2 permanent 
ipp://localhost/printers/HP-HP-LaserJet-MFP-M232-M237-2 
ipps://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipps._tcp.local/
HP-LaserJet-MFP-M232-M237 permanent 
ipp://localhost/printers/HP-LaserJet-MFP-M232-M237 
socket://hpm234ethernet.localdomain:9100
HP_LaserJet_MFP_M234sdw_C0FB67 network none 
ipps://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipps._tcp.local/
root@dragon:~#


The first three entries are print queues (permanent) you have set up. The 
fourth is the
printer.

Execute

   lpadmin -p M234 -v "URI" -E -m everywhere

Test with

   lp -d M234 /etc/nsswitch.conf


this is interesting Brian, but how do I adapt it to my brother printers?
All I can get by substituting the queue name M234 is "printer or class 
does not exist".


Interestingly, a reboot of this machine to bring in a new kernel, seems 
to have fixed cups for armbian bullseye, not 100% tested yet for 
function but ff at localhost:631 on both of the bpi's now has a full 
list of shared printers that are now displayed by geany as target printers.


Thanks Brian.


Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: how to find out regdomain/country of wifi network

2023-05-15 Thread gene heskett

On 5/15/23 07:03, Greg Wooledge wrote:

On Mon, May 15, 2023 at 12:10:13AM -0500, David Wright wrote:

I read somewhere that the recent tweaks (improvements?) to
ifconfig's output were breaking scripts, which is hardly surprising.


I can personally confirm this as true.  Some of the machines at work
run a proprietary software product that uses a license key, tied to
the machine's ethernet interface's MAC address.  The vendor's script
runs ifconfig and tries to parse the output to get the MAC address.
This script fails on the recent versions of net-tools.

.
One might be able to fix that with hexedit or a clone, by changing the 
string causing the error back to the original version? Fix the files crc 
of course.  Better yet, dl the src, find that string and change it back 
to the original, recompile and re-install. I note that today. neither 
tool calls the MAC address MAC, and that ip and ifconfig label it with 
different names. That s/b a std but insert the xckb reference to std's, 
old even wrong ones never die...


This method of software protection, from my experience as broadcast 
engineer, can be costly when it fails, and fixing what you paid good 
money for in the faith that it would work forever but fails regularly 
for whatever reason. And our copyright laws do not contain that I know 
of, a provision to allow the possession of a canceled check to be 
substituted for whatever scheme the vendor comes up with to enforce his 
copyright.  Disney got exactly what he asked for.


We at one time in the early 90's bought an editing system that had the 
key buried in the serial port adapter that was used to control the tape 
machines.  With a limited life. The outfit was able to supply a new 
adaptor, once, but had to drive the height of FL to get it from the 
author of the scheme.  And it was his only copy. Lasted about a month 
and once again we had $25,000 worth of disabled software.


In a tv stations production dept, that's a major income hit. At that 
time I knew a uni prof in germany who was pretty good at fixing buggy 
amiga software, so w/o naming names I told the vendor it was not going 
to be tuff excrement to us but to them, but that I would remove their 
broken key and continue to use the software we had paid good money for 6 
months earlier.  Lots of sputtering, I hung up in the middle of it and 
emailed the sw to the prof, had it back with a try this about 6 hours 
later but he missed a third check, so had to go back and search thru it 
again, finding the last check and nulling it out.  We used the hacked 
version for about a year, till we upgraded the editing machines and 
never heard from that vendor again. I heard later thru the grapevine 
that the vendor filed shortly after that.  The hacked copy never left 
the premises so as far as I was concerned the copyright was honored.


The point is that what can be done in software, can also be undone.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



video issue following latest bullseye update

2023-05-15 Thread D. R. Evans
Following an update this morning to one of my bullseye systems, an irritating 
video problem has surfaced. The best way I can think of to describe the 
problem is that if one has a line of black text on what is supposed to be a 
white background, to the right of the text a clear, short tail of even whiter 
background is visible (the tail is maybe an inch or so long).


The update was to:
  Linux 5.10.0-23-amd64 #1 SMP Debian 5.10.179-1 (2023-05-12) x86_64 GNU/Linux

I suspect that this is due to a driver issue related to the update. (I have 
tried a couple of different desktops, KDE and TDE, but they both exhibit the 
problem, so I don't think it can be caused by the desktop software. The 
problem did not exist prior to this morning's update.)


So I'm wondering if someone can walk me through how to figure out what video 
driver I am using, and what other drivers might be available to try?


  Doc

--
Web:  http://enginehousebooks.com/drevans



Re: CUPS on Bullseye and Bookworm

2023-05-15 Thread Brian
On Mon 15 May 2023 at 08:24:28 -0600, Charles Curley wrote:

> On Mon, 15 May 2023 12:09:33 +0100
> Brian  wrote:

[...]

> Ah, OK. So can I get rid of the three queues and print directly to the
> printer?

Indeed you can! 'lpstat -l -e' should show only the printer on the network
and a working local queue, M234. 
 
> > Execute
> > 
> >   lpadmin -p M234 -v "URI" -E -m everywhere
> > 
> > Test with
> > 
> >   lp -d M234 /etc/nsswitch.conf
> 
> root@dragon:~# lp -d M234 /etc/nsswitch.conf
> lp: Error - The printer or class does not exist.
> root@dragon:~# lpadmin -p M234 -v "URI" -E -m everywhere
> lpadmin: Bad device-uri "URI".
> root@dragon:~# lpadmin -p M234 -v 
> "ipps://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipps._tcp.local/" -E -m 
> everywhere
> root@dragon:~# lp -d M234 /etc/nsswitch.conf
> request id is M234-25 (1 file(s))
> root@dragon:~# 
> 
> And that printed. And I see a new queue on dragon's
> system-config-printer.

Good. The issue is solved, but how do you feel about being adventurous?

Assuming you have deleted the three non-working queues,'lpstat -a' and
s-c-p should show only M234. On dragon do

  systemctl stop cups-browsed

Check that 'lpstat -l -e' still shows the printer as

   HP_LaserJet_MFP_M234sdw_C0FB67

* Now print: 'lp -d HP_LaserJet_MFP_M234sdw_C0FB67 /etc/nsswitch.conf'.
* Immediately afterwards do 'lpstat -a'. What do you observe?
* Run 'lpstat -a' a minute or so later. What do you observe?

-- 
Brian.



Re: how to find out regdomain/country of wifi network

2023-05-15 Thread Andy Smith
Hello,

On Mon, May 15, 2023 at 05:15:58PM +0200, Vincent Lefevre wrote:
> On 2023-05-15 17:13:31 +0200, Vincent Lefevre wrote:
> > No, aptitude removes automatically installed packages for which
> > there are no longer any dependencies.
> 
> And there's also "apt autoremove", which I also use. The issue
> for net-tools is that there is still a dependency (Recommends)
> from pbuilder.

Ah okay, my mistake. I only ever use the "aptitude why" part of
aptitude.

"Recommends" are quite liberally used on Debian so I expect that
will account for net-tools being retained in a lot of cases.

Cheers,
Andy

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



Re: Debian 9 stretch - ebtables package

2023-05-15 Thread Andy Smith
Hi,

On Mon, May 15, 2023 at 08:11:50PM +0530, amit agari wrote:
> Has ebtables package been removed from Debian 9 stretch distribution?

stretch is EOL so the entire distribution has been "removed" to
archive.debian.org. But after putting archive.debian.org in your
/etc/apt/sources.list you will certainly find ebtables packages for
stretch.

You can also find every version of ebtables that has been in Debian,
on snapshot.debian.org:

http://snapshot.debian.org/binary/ebtables/

Cheers,
Andy

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



Re: Debian 9 stretch - ebtables package

2023-05-15 Thread David Wright
On Mon 15 May 2023 at 20:11:50 (+0530), amit agari wrote:

> Has ebtables package been removed from Debian 9 stretch distribution?

http://archive.debian.org/debian/pool/main/e/ebtables/
appears to have ebtables_2.0.10.4-3.5+b1_amd64.deb
which is probably what you're looking for.

Cheers,
David.



Re: how to find out regdomain/country of wifi network

2023-05-15 Thread Vincent Lefevre
On 2023-05-15 17:13:31 +0200, Vincent Lefevre wrote:
> On 2023-05-15 15:09:24 +, Andy Smith wrote:
> > On Mon, May 15, 2023 at 04:38:29PM +0200, Vincent Lefevre wrote:
> > > Wrong. It got installed automatically. I suppose that this is because
> > > this was like that in the past, when I installed the machine in 2015,
> > > thus before stretch was out.
> > 
> > If you mean that it got installed automatically in an older install,
> > before the package was made optional, and then never removed, this
> > would make sense as things don't get removed on upgrades unless
> > there is a conflict. You even retain packages that are no longer in
> > Debian.
> 
> No, aptitude removes automatically installed packages for which
> there are no longer any dependencies.

And there's also "apt autoremove", which I also use. The issue
for net-tools is that there is still a dependency (Recommends)
from pbuilder.

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



Re: how to find out regdomain/country of wifi network

2023-05-15 Thread Vincent Lefevre
On 2023-05-15 15:09:24 +, Andy Smith wrote:
> On Mon, May 15, 2023 at 04:38:29PM +0200, Vincent Lefevre wrote:
> > Wrong. It got installed automatically. I suppose that this is because
> > this was like that in the past, when I installed the machine in 2015,
> > thus before stretch was out.
> 
> If you mean that it got installed automatically in an older install,
> before the package was made optional, and then never removed, this
> would make sense as things don't get removed on upgrades unless
> there is a conflict. You even retain packages that are no longer in
> Debian.

No, aptitude removes automatically installed packages for which
there are no longer any dependencies.

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



Re: how to find out regdomain/country of wifi network

2023-05-15 Thread Andy Smith
Hello,

On Mon, May 15, 2023 at 04:38:29PM +0200, Vincent Lefevre wrote:
> On 2023-05-15 08:36:41 -0500, David Wright wrote:
> > (Just guessing: if you installed it, you need it, and better
> > hang on to it.)
> 
> Wrong. It got installed automatically. I suppose that this is because
> this was like that in the past, when I installed the machine in 2015,
> thus before stretch was out.

If you mean that it got installed automatically in an older install,
before the package was made optional, and then never removed, this
would make sense as things don't get removed on upgrades unless
there is a conflict. You even retain packages that are no longer in
Debian.

Most of my long-upgraded systems still have it, but newer installs
don't.

Some of my third party (i.e. not on my own hypervisor) bullseye VMs
have it because they have cloud-init, which in bullseye depends on
net-tools. Even though I don't use cloud-init. I see that in
bookworm cloud-init no longer depends upon net-tools, so there's
another route to install gone.

I'm sure there's still a lot of cases where it's pulled in as a
possible dependency but never knowingly used.

Cheers,
Andy

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



Re: CUPS on Bullseye and Bookworm

2023-05-15 Thread Charles Curley
On Mon, 15 May 2023 15:42:51 +0100
Brian  wrote:

> On Mon 15 May 2023 at 08:07:12 -0600, Charles Curley wrote:
> 
>  [...]  
>  [...]  
> > 
> > Possibly just legacy habits. I'm not accustomed to this automation.
> >  
>  
> Possibly. You are not alone in this. The thinking appears to be: "I
> have an HP printer; therefore I must use HPLIP". Oftern it is
> downhill from there. Unlees there are special needs, HPLIP is
> redundant with a modern MFP. 

Yup.

I have an older inkjet HP also on hawk, so I have it on hawk and
ideapc. However, I did not put HPLIP on dragon. I've had the inkjet
shut down during these exercises.

>  
>  [...]  
>  [...]  
>  [...]  
>  [...]  
> 
> cups-browsed works well for many users, but can be a little
> temperamental. 

It also can take its time. After this experience I would recommend
waiting three minutes or so to see if it does its magic. dragon is an
ancient IBM (not Lenovo, although manufactured by Lenovo) and on the
slow side these days, so three minutes may be a bit much.

>  [...]  
> 
> [...]
> 
>  [...]  
>  [...]  
> 
> avahi-browse shows hpm234ethernet.local for the hostname.

I conjecture that's an avahi-browse bug. Why would anyone have a 11
letter TLD name? So perhaps a-b truncates it.

> 
> BTW, is hpm234ethernet you setting or HP's?
> 

Mine, via DNS.

-- 
Does anybody read signatures any more?

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



Debian 9 stretch - ebtables package

2023-05-15 Thread amit agari
Hi,

Has ebtables package been removed from Debian 9 stretch distribution?

Regards


Re: CUPS on Bullseye and Bookworm

2023-05-15 Thread Charles Curley
On Mon, 15 May 2023 07:31:29 -0600
Charles Curley  wrote:

> I solved that one. I had closed TCP port 9100. Opening that up on the
> server got me running. However, that did not solve the problem for the
> other two protocols.

Correction. That didn't solve it. I realized that port 9100 on hawk is
irrelevant because the socket queue goes directly to the printer, not
via hawk. I closed the port on hawk and I can still print to the
printer via that queue.

-- 
Does anybody read signatures any more?

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



Re: CUPS on Bullseye and Bookworm

2023-05-15 Thread Brian
On Mon 15 May 2023 at 08:07:12 -0600, Charles Curley wrote:

> On Mon, 15 May 2023 14:22:14 +0100
> Brian  wrote:
> > 
> > Consider: the printer can be discovered via mDNS/DNS-SD by all
> > machines on the network. ideapc does this and hasn't any difficulty
> > printing. So why set up a server when hawk will see the printer as
> > ideapc does? 
> 
> Possibly just legacy habits. I'm not accustomed to this automation.
 
Possibly. You are not alone in this. The thinking appears to be: "I have
an HP printer; therefore I must use HPLIP". Oftern it is downhill from
there. Unlees there are special needs, HPLIP is redundant with a modern
MFP. 
 
> > Additionally, assuming the printer provides the IPP-over-USB protocol,
> > the USB queue will not work. See
> > 
> >   https://wiki.debian.org/CUPSDriverlessPrinting
> > 
> >  [...]  
> > 
> > The two URIs are equivalent.
> > 
> >  [...]  
> > > 
> > > implicitclass://HP_LaserJet_MFP_M234sdw_C0FB67_/  
> > 
> > cups-browsed has automatically set up a queue. Unless it is having an
> > off-day, it should do the same on hawk and dragon.
> 
> I have no idea what's going on here. I now see such a queue on hawk but
> not dragon. Possibly the fact that I rebooted hawk yesterday had
> something to do with it? I will reboot dragon later today and see if
> that makes a difference.

cups-browsed works well for many users, but can be a little temperamental.
  
> >  [...]  
> >  [...]  
> >  [...]  

[...]

> > hpm234ethernet.local?
> 
> Again, the "localdomain" is correct.

avahi-browse shows hpm234ethernet.local for the hostname.

BTW, is hpm234ethernet you setting or HP's?

-- 
Brian.



Re: how to find out regdomain/country of wifi network

2023-05-15 Thread Vincent Lefevre
On 2023-05-15 08:36:41 -0500, David Wright wrote:
> On Mon 15 May 2023 at 12:51:55 (+0200), Vincent Lefevre wrote:
> > Under Debian/unstable, i.e. more much recent than stretch:
> > 
> > zira:~> dpkg -s net-tools
> > Package: net-tools
> > Status: install ok installed
> > Priority: important
> > [...]
> > 
> > This is still priority important!
> 
> Not at all; AFAICT, the /internal/ Priority of the package has never
> changed.

But this is what the user sees.

> (Just guessing: if you installed it, you need it, and better
> hang on to it.)

Wrong. It got installed automatically. I suppose that this is because
this was like that in the past, when I installed the machine in 2015,
thus before stretch was out. I suspect that it wasn't removed because
of the remaining "Recommends" from pbuilder:

zira:~> aptitude why net-tools
i   pbuilder Recommends net-tools | iproute2

Note: iproute2 is installed too, but net-tools gets the preference.
This "Recommends" is rather strange if iproute2 is supposed to be
better!

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



Re: CUPS on Bullseye and Bookworm

2023-05-15 Thread Charles Curley
On Mon, 15 May 2023 12:09:33 +0100
Brian  wrote:

> Useful data but an aside first:
> 
> The pdl= key lacks image/urf. HP claims AirPrint support for the
> device (URF=V1.4,...). It looks like you have been sold a pup. A
> firmware update?

I will look into that later today.

> 
> > root@dragon:~# driverless
> > ipps://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipps._tcp.local/  
> 
> This is the URI for the printer. You will need to substitute it later
> into an lpadmin command.
> 
> > root@dragon:~# lpstat -l -e
> > HP-HP-LaserJet-MFP-M232-M237 permanent
> > ipp://localhost/printers/HP-HP-LaserJet-MFP-M232-M237
> > dnssd://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipp._tcp.local/?uuid=d532fa73-f559-43ca-9f8e-1eef16972345
> > HP-HP-LaserJet-MFP-M232-M237-2 permanent
> > ipp://localhost/printers/HP-HP-LaserJet-MFP-M232-M237-2
> > ipps://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipps._tcp.local/
> > HP-LaserJet-MFP-M232-M237 permanent
> > ipp://localhost/printers/HP-LaserJet-MFP-M232-M237
> > socket://hpm234ethernet.localdomain:9100
> > HP_LaserJet_MFP_M234sdw_C0FB67 network none
> > ipps://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipps._tcp.local/
> > root@dragon:~#   
> 
> The first three entries are print queues (permanent) you have set up.
> The fourth is the printer.

Ah, OK. So can I get rid of the three queues and print directly to the
printer?

> 
> Execute
> 
>   lpadmin -p M234 -v "URI" -E -m everywhere
> 
> Test with
> 
>   lp -d M234 /etc/nsswitch.conf

root@dragon:~# lp -d M234 /etc/nsswitch.conf
lp: Error - The printer or class does not exist.
root@dragon:~# lpadmin -p M234 -v "URI" -E -m everywhere
lpadmin: Bad device-uri "URI".
root@dragon:~# lpadmin -p M234 -v 
"ipps://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipps._tcp.local/" -E -m 
everywhere
root@dragon:~# lp -d M234 /etc/nsswitch.conf
request id is M234-25 (1 file(s))
root@dragon:~# 

And that printed. And I see a new queue on dragon's
system-config-printer.

-- 
Does anybody read signatures any more?

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



Re: CUPS on Bullseye and Bookworm

2023-05-15 Thread Charles Curley
On Mon, 15 May 2023 14:22:14 +0100
Brian  wrote:

> > Not that I know of.  
> 
> Blocking port 5353 (mdns) is not unknown.

True. It is open (udp) on hawk (server) and ideapc, where I am running
shorewall (iptables). dragon has firewalld, which simply shows the
service, mdns, as open, but does not indicate the protocol. 

>  
>  [...]  
> > 
> > I shut the firewall down ("systemctl stop firewalld"), ran test
> > pages. Same non-results, except that system-control-printer now
> > reports:
> > 
> > Idle - Print job canceled at printer.
> > 
> > 
> > I tried increasing the logging, which involved stopping and
> > restarting the cups service. In the process of doing that, the
> > client and server both managed to forget the printer. I
> > re-installed it. On the server, I have one instance of the printer,
> > protocol:
> > 
> > hp:/usb/HP_LaserJet_MFP_M232-M237?serial=VNB4J02590  
> 
> Consider: the printer can be discovered via mDNS/DNS-SD by all
> machines on the network. ideapc does this and hasn't any difficulty
> printing. So why set up a server when hawk will see the printer as
> ideapc does? 

Possibly just legacy habits. I'm not accustomed to this automation.


> 
> Additionally, assuming the printer provides the IPP-over-USB protocol,
> the USB queue will not work. See
> 
>   https://wiki.debian.org/CUPSDriverlessPrinting
> 
>  [...]  
> 
> The two URIs are equivalent.
> 
>  [...]  
> > 
> > implicitclass://HP_LaserJet_MFP_M234sdw_C0FB67_/  
> 
> cups-browsed has automatically set up a queue. Unless it is having an
> off-day, it should do the same on hawk and dragon.

I have no idea what's going on here. I now see such a queue on hawk but
not dragon. Possibly the fact that I rebooted hawk yesterday had
something to do with it? I will reboot dragon later today and see if
that makes a difference.

>  
>  [...]  
>  [...]  
>  [...]  
> >  
> > I tried setting up a printer manually on the non-working client.
> > 
> > ipp://hawk.localdomain/printers/HP_LaserJet_MFP_M232-M237  
> 
> hawk.local would be the correct hostname.

Nope, it's localdomain. It's all set up in DNS.

> 
> > No test page, and I got:
> > 
> > Processing - The printer may not exist or is unavailable at this
> > time.
> > 
> > However, I checked the CUPS on-line documentation, and did not find
> > any documentation on how to set up a URI, so it's possible I did
> > that incorrectly.
> > 
> > I also enabled "port 9100" printing on the printer, and went
> > directly to it:  
> 
> That had to be explicitly done?

Yes. I may have shut it off back when I first took delivery of the
printer. In any case, there is a page on the printer's web server where
one enables or disables all sorts of things.

>  
> > socket://hpm234ethernet.localdomain:9100  
> 
> hpm234ethernet.local?

Again, the "localdomain" is correct.

As mentioned in another email, I opened that port in the firewall
(doh!), and that now works.

-- 
Does anybody read signatures any more?

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



Re: how to find out regdomain/country of wifi network

2023-05-15 Thread David Wright
On Mon 15 May 2023 at 12:51:55 (+0200), Vincent Lefevre wrote:
> On 2023-05-13 23:00:23 -0500, David Wright wrote:
> > On Sat 13 May 2023 at 18:18:57 (-0400), gene heskett wrote:
> > > On 5/13/23 15:40, Greg Wooledge wrote:
> > > > On Sat, May 13, 2023 at 08:29:11PM +0200, to...@tuxteam.de wrote:
> > > > > On Sat, May 13, 2023 at 01:01:27PM -0500, Nicholas Geovanis wrote:
> > > > > > Ifconfig has been deprecated in Debian for some years.
> > > > > 
> > > > > It is *not* deprecated. It is just optional, not essential.
> > > > 
> > > > I don't know what Debian's official stance is, but if you do web 
> > > > searches
> > > > for "Linux ifconfig deprecated", you find MANY results.
> > > > 
> > > > :
> > > >  The ip command is the future of network config commands. ifconfig
> > > >  has been officially deprecated for the ip suite, so while many of
> > > >  us are still using the old ways, it is time to put those habits to
> > > >  rest and move on with the world.
> > > 
> > > While you are correct, Greg, the lack of documentation to help with
> > > that transition is staggering. They just thru it on the table and
> > > didn't even say use this instead.
> > 
> > From the way you have quoted, I don't know whether you're complaining
> > specifically about redhat, but as far as Debian is concerned, it was
> > well documented in the Release Notes for stretch:
> > 
> >   5.1.3. Noteworthy obsolete packages
> > 
> >   The following is a list of known and noteworthy obsolete packages
> >   (see Section 4.8, “Obsolete packages” for a description).
> > 
> >   The list of obsolete packages includes:
> > 
> >   [ … ]
> > 
> > * The net-tools package is being deprecated in favor of
> >   iproute2. See Section 5.3.9, “net-tools will be deprecated in
> >   favor of iproute2” or the Debian reference manual (https://
> >   www.debian.org/doc/manuals/debian-reference/ch05#
> >   _the_low_level_network_configuration) for more information.
> > 
> >   [ … ]
> > 
> >   5.3.9. net-tools will be deprecated in favor of iproute2
> > 
> >   The net-tools package is no longer part of new installations by
> >   default, since its priority has been lowered from important to
> >   optional.
> [...]
> 
> Under Debian/unstable, i.e. more much recent than stretch:
> 
> zira:~> dpkg -s net-tools
> Package: net-tools
> Status: install ok installed
> Priority: important
> [...]
> 
> This is still priority important!

Not at all; AFAICT, the /internal/ Priority of the package has never
changed. (Just guessing: if you installed it, you need it, and better
hang on to it.) But as far as installing it in the first place, that's
the role of the Packages file, where it is optional (plus you might
install it as a dependency).

Cheers,
David.



Re: CUPS on Bullseye and Bookworm

2023-05-15 Thread Charles Curley
On Sun, 14 May 2023 14:04:51 -0600
Charles Curley  wrote:

> I also enabled "port 9100" printing on the printer, and went directly
> to it:
> 
> socket://hpm234ethernet.localdomain:9100
> 
> The printer spun its wheels, reported an error and stopped without
> printing. Nothing in the event log.

I solved that one. I had closed TCP port 9100. Opening that up on the
server got me running. However, that did not solve the problem for the
other two protocols.

-- 
Does anybody read signatures any more?

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



Re: CUPS on Bullseye and Bookworm

2023-05-15 Thread Brian
On Sun 14 May 2023 at 14:04:51 -0600, Charles Curley wrote:

> On Sun, 14 May 2023 19:48:07 +0200
> john doe  wrote:
> 
> > On 5/14/23 19:29, Charles Curley wrote:
> >  [...]  
> > 
> > The below, is what I would try:
> > 
> > - On the non-working client, Are you restricting outbound traffic at
> > all
> 
> Not that I know of.

Blocking port 5353 (mdns) is not unknown.
 
> > or for testing  purposes can you disable the FW?
> 
> I shut the firewall down ("systemctl stop firewalld"), ran test pages.
> Same non-results, except that system-control-printer now reports:
> 
> Idle - Print job canceled at printer.
> 
> 
> I tried increasing the logging, which involved stopping and restarting
> the cups service. In the process of doing that, the client and server
> both managed to forget the printer. I re-installed it. On the server, I
> have one instance of the printer, protocol:
> 
> hp:/usb/HP_LaserJet_MFP_M232-M237?serial=VNB4J02590

Consider: the printer can be discovered via mDNS/DNS-SD by all machines
on the network. ideapc does this and hasn't any difficulty printing. So
why set up a server when hawk will see the printer as ideapc does? 

Additionally, assuming the printer provides the IPP-over-USB protocol,
the USB queue will not work. See

  https://wiki.debian.org/CUPSDriverlessPrinting

> On the non-working client, cups discovered two versions of the printer:
> 
> dnssd://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipp._tcp.local/?uuid=d532fa73-f559-43ca-9f8e-1eef16972345
> 
> ipps://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipps._tcp.local/
> 
> I have been testing both and getting the same results.

The two URIs are equivalent.

> > - How are the working clients connected to the printer (protocol
> > wise)?
> 
> implicitclass://HP_LaserJet_MFP_M234sdw_C0FB67_/

cups-browsed has automatically set up a queue. Unless it is having an off-day,
it should do the same on hawk and dragon.
 
> > - Is the non-working client using that same protocol?
> 
> Clearly not.
> 
> So I had the working client discover the printer again. It offered the
> same two as I have on the non-working client. Both printed test pages.
> 
> ipps://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipps._tcp.local/
> 
> dnssd://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipp._tcp.local/?uuid=d532fa73-f559-43ca-9f8e-1eef16972345
> 
> 
> > - If you do not use MDNS and point manually to the server, does it
> > work any better?
>  
> I tried setting up a printer manually on the non-working client.
> 
> ipp://hawk.localdomain/printers/HP_LaserJet_MFP_M232-M237

hawk.local would be the correct hostname.

> No test page, and I got:
> 
> Processing - The printer may not exist or is unavailable at this time.
> 
> However, I checked the CUPS on-line documentation, and did not find any
> documentation on how to set up a URI, so it's possible I did that
> incorrectly.
> 
> I also enabled "port 9100" printing on the printer, and went directly to
> it:

That had to be explicitly done?
 
> socket://hpm234ethernet.localdomain:9100

hpm234ethernet.local?

-- 
Brian.



Re: EPSON ET M 1120 new printer: If You can read this, you are using the wrong driver

2023-05-15 Thread chris
I know its only may but this has to win thread of the year

On Mon, May 15, 2023, 4:46 AM Schwibinger Michael  wrote:

> Good morning
>
> Thank You.
>
> EPSON said
> EPSON only works with WIN.
>
> Regards
> Sophie
>
>
>
> --
> *Von:* Brian 
> *Gesendet:* Sonntag, 7. Mai 2023 22:57
> *An:* debian-user@lists.debian.org 
> *Betreff:* Re: EPSON ET M 1120 new printer: If You can read this, you are
> using the wrong driver
>
> On Sun 07 May 2023 at 20:27:53 +, Andrew M.A. Cater wrote:
>
> I offer the following in the interest of correctness and just in case
> Schwibinger
> Michael gets even more confused or disheartened and considers going away
> :).
>
> > From looking on Epson's website:
> >
> > 1. They do not support this printer under Linux officially
>
>   http://download.ebz.epson.net/dsc/search/01/search/searchModule
>
> Or, for a direct download
>
>   https://download3.ebz.epson.net/dsc/f/03/00/14/48/15/1d37501ad39bd2b5753
> \
>
> > 2. The printer is listed as a printer supported only under Windows - lots
> > of variants.
>
> brian@test-new:~$ /usr/sbin/lpinfo -m | grep -i ET-M1120
> escpr:0/cups/model/epson-inkjet-printer-escpr/Epson-ET-M1120_Series-epson-escpr-en.ppd
> \
> EPSON ET-M1120 Series , Epson Inkjet Printer Driver (ESC/P-R) for Linux
>
> --
> Briana.
>
>


Re: CUPS on Bullseye and Bookworm

2023-05-15 Thread Brian
On Sun 14 May 2023 at 20:57:23 -0600, Charles Curley wrote:

> On Sun, 14 May 2023 23:30:25 +0100
> Brian  wrote:
> 
> > On Sun 14 May 2023 at 14:04:51 -0600, Charles Curley wrote:
> 
> 
> > 
> > We take it that dragon, hawk and the printer are network connected.
> > 
> > Give what you get from dragon with
> > 
> >   avahi-browse -rt _ipp._tcp
> >   avahi-browse -rt _uscan._tcp
> >   driverless
> >   lpstat -l -e
> > 
> > avahi-browse is in the avahi-utils package.
> > 
> 
> root@dragon:~# avahi-browse -rt _ipp._tcp
> + wlp2s2 IPv4 HP LaserJet MFP M234sdw (C0FB67)  Internet Printer  
>local
> = wlp2s2 IPv4 HP LaserJet MFP M234sdw (C0FB67)  Internet Printer  
>local
>hostname = [hpm234ethernet.local]
>address = [192.168.100.134]
>port = [631]
>txt = ["mopria-certified=2.1" "mac=6c:02:e0:c0:fb:67" "usb_MDL=HP LaserJet 
> MFP M232-M237" "usb_MFG=HP" "TLS=1.2" "PaperMax=legal-A4" 
> "kind=document,envelope,photo" "UUID=d532fa73-f559-43ca-9f8e-1eef16972345" 
> "Fax=F" "Scan=T" "Duplex=T" "Color=F" "note=" 
> "adminurl=http://hpm234ethernet.local./hp/device/info_config_AirPrint.html?tab=Networking&menu=AirPrintStatus";
>  "priority=10" "product=(HP LaserJet MFP M232-M237)" "ty=HP LaserJet MFP 
> M232-M237" "URF=V1.4,CP99,W8,OB10,PQ3-4,DM1,IS1-4,MT1-3-5,RS300-600" 
> "rp=ipp/print" 
> "pdl=application/PCLm,application/octet-stream,image/pwg-raster" "qtotal=1" 
> "txtvers=1"]

Useful data but an aside first:

The pdl= key lacks image/urf. HP claims AirPrint support for the device 
(URF=V1.4,...).
It looks like you have been sold a pup. A firmware update?

> root@dragon:~# driverless
> ipps://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipps._tcp.local/

This is the URI for the printer. You will need to substitute it later into an 
lpadmin
command.

> root@dragon:~# lpstat -l -e
> HP-HP-LaserJet-MFP-M232-M237 permanent 
> ipp://localhost/printers/HP-HP-LaserJet-MFP-M232-M237 
> dnssd://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipp._tcp.local/?uuid=d532fa73-f559-43ca-9f8e-1eef16972345
> HP-HP-LaserJet-MFP-M232-M237-2 permanent 
> ipp://localhost/printers/HP-HP-LaserJet-MFP-M232-M237-2 
> ipps://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipps._tcp.local/
> HP-LaserJet-MFP-M232-M237 permanent 
> ipp://localhost/printers/HP-LaserJet-MFP-M232-M237 
> socket://hpm234ethernet.localdomain:9100
> HP_LaserJet_MFP_M234sdw_C0FB67 network none 
> ipps://HP%20LaserJet%20MFP%20M234sdw%20(C0FB67)._ipps._tcp.local/
> root@dragon:~# 

The first three entries are print queues (permanent) you have set up. The 
fourth is the
printer.

Execute

  lpadmin -p M234 -v "URI" -E -m everywhere

Test with

  lp -d M234 /etc/nsswitch.conf

-- 
Brian.



Re: how to find out regdomain/country of wifi network

2023-05-15 Thread Greg Wooledge
On Mon, May 15, 2023 at 12:10:13AM -0500, David Wright wrote:
> I read somewhere that the recent tweaks (improvements?) to
> ifconfig's output were breaking scripts, which is hardly surprising.

I can personally confirm this as true.  Some of the machines at work
run a proprietary software product that uses a license key, tied to
the machine's ethernet interface's MAC address.  The vendor's script
runs ifconfig and tries to parse the output to get the MAC address.
This script fails on the recent versions of net-tools.



Re: how to find out regdomain/country of wifi network

2023-05-15 Thread Vincent Lefevre
On 2023-05-13 23:00:23 -0500, David Wright wrote:
> On Sat 13 May 2023 at 18:18:57 (-0400), gene heskett wrote:
> > On 5/13/23 15:40, Greg Wooledge wrote:
> > > On Sat, May 13, 2023 at 08:29:11PM +0200, to...@tuxteam.de wrote:
> > > > On Sat, May 13, 2023 at 01:01:27PM -0500, Nicholas Geovanis wrote:
> > > > > Ifconfig has been deprecated in Debian for some years.
> > > > 
> > > > It is *not* deprecated. It is just optional, not essential.
> > > 
> > > I don't know what Debian's official stance is, but if you do web searches
> > > for "Linux ifconfig deprecated", you find MANY results.
> > > 
> > > :
> > >  The ip command is the future of network config commands. ifconfig
> > >  has been officially deprecated for the ip suite, so while many of
> > >  us are still using the old ways, it is time to put those habits to
> > >  rest and move on with the world.
> > 
> > While you are correct, Greg, the lack of documentation to help with
> > that transition is staggering. They just thru it on the table and
> > didn't even say use this instead.
> 
> From the way you have quoted, I don't know whether you're complaining
> specifically about redhat, but as far as Debian is concerned, it was
> well documented in the Release Notes for stretch:
> 
>   5.1.3. Noteworthy obsolete packages
> 
>   The following is a list of known and noteworthy obsolete packages
>   (see Section 4.8, “Obsolete packages” for a description).
> 
>   The list of obsolete packages includes:
> 
>   [ … ]
> 
> * The net-tools package is being deprecated in favor of
>   iproute2. See Section 5.3.9, “net-tools will be deprecated in
>   favor of iproute2” or the Debian reference manual (https://
>   www.debian.org/doc/manuals/debian-reference/ch05#
>   _the_low_level_network_configuration) for more information.
> 
>   [ … ]
> 
>   5.3.9. net-tools will be deprecated in favor of iproute2
> 
>   The net-tools package is no longer part of new installations by
>   default, since its priority has been lowered from important to
>   optional.
[...]

Under Debian/unstable, i.e. more much recent than stretch:

zira:~> dpkg -s net-tools
Package: net-tools
Status: install ok installed
Priority: important
[...]

This is still priority important!

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



Re: How to download source package using only console?

2023-05-15 Thread Vincent Lefevre
On 2023-05-15 10:25:45 +0500, Alexander V. Makartsev wrote:
> On 15.05.2023 05:43, Vincent Lefevre wrote:
> > But my point is that your database is obsolete, because if you ask
> > the version from testing, apt thinks that it is 3.2.0-3.1, while it
> > should be 4.9.1-1. You need to fix that.
> What is the best approach to fix that? [...]

That:

[...]
> I see. That explains why I can request source package
> "golang-github-xenolf-lego/testing" directly and get the right one.
> So, in my case, I won't be able to reliably get a source package(-s) from
> "testing" if I don't add "deb" part of "testing" to "sources.list", which
> could be a different can of worms...
> Is this something for me to just be aware of and leave it as is now, or is
> there more elegant solution?

Well, if you don't want the "deb" part, you need to provide the
name of the source package directly to "apt source". If you do that
frequently, you can write a script. There are 2 solutions:
* A remote request, e.g. with rmadison.
* Something based of "apt cache show". From that, you can get the
  source package, then call "apt source" with the source package.
  But note that this is only a heuristic; if the name of the source
  package has changed from stable to testing, this won't work.

Note that adding the "deb" part shouldn't be much an issue (except
noise, e.g. with "apt cache show", which would give output for both
stable and testing). If you want to make sure that a package from
testing won't be installed by mistake (by apt), I suppose that you
can use apt preferences with a negative priority for testing to
prevent such an installation:

Package: *
Pin: release a=testing
Pin-Priority: -1

(not tried). See the apt_preferences(5) man page for details.

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



Re: No space left on device ...

2023-05-15 Thread Anssi Saari
Albretch Mueller  writes:

> I have been mounting an NTFS file system on a Windows laptop without
> any problems whatsoever with a Debian Live DVD:

Mounting how exactly? And what is the contents of /proc/mounts? Maybe
you mounted the partition read only?



Re: No space left on device ...

2023-05-15 Thread Klaus Singvogel
Joe wrote:
> 
> First thing to try is to boot back into Windows and see if there is a
> message about the drive. If so, let Windows 'fix' it. I've had cases
> where the drive was not cleanly unmounted and Linux has mounted it
> read-only. Windows was able to repair it, whatever the problem was.

Oh! Reminds me on the fact, that Fast Boot of Windows locks the disk devices,
and they can't be accessed by any other system on the same computer, even after
Windows shutdown - to avoid disk corruption.

Did you disable the Fast Boot feature in Windows?

https://www.howtogeek.com/243901/the-pros-and-cons-of-windows-10s-fast-startup-mode/

Best regards,
Klaus.


-- 
Klaus Singvogel
GnuPG-Key-ID: 1024R/5068792D  1994-06-27



Re: Bookworm soft lockup

2023-05-15 Thread piorunz

On 15/05/2023 02:13, Christian Gelinek wrote:

It seems to be an issue with the i915 driver, potentially triggered by
snd_hda_intel.


Yes indeed that looks like it, to my untrained eye.
Does it happen on Debian Stable (bullseye) also?
I have one laptop with Intel CPU, Intel integrated graphics, on Debian
Stable (bullseye), and it's ok, never crashes. Probably using same
driver as you, i915 on that one.

--
With kindest regards, Piotr.

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



AW: EPSON ET M 1120 new printer: If You can read this, you are using the wrong driver

2023-05-15 Thread Schwibinger Michael
Good morning

Thank You.

EPSON said
EPSON only works with WIN.

Regards
Sophie




Von: Brian 
Gesendet: Sonntag, 7. Mai 2023 22:57
An: debian-user@lists.debian.org 
Betreff: Re: EPSON ET M 1120 new printer: If You can read this, you are using 
the wrong driver

On Sun 07 May 2023 at 20:27:53 +, Andrew M.A. Cater wrote:

I offer the following in the interest of correctness and just in case 
Schwibinger
Michael gets even more confused or disheartened and considers going away :).

> From looking on Epson's website:
>
> 1. They do not support this printer under Linux officially

  http://download.ebz.epson.net/dsc/search/01/search/searchModule

Or, for a direct download

  https://download3.ebz.epson.net/dsc/f/03/00/14/48/15/1d37501ad39bd2b5753 \

> 2. The printer is listed as a printer supported only under Windows - lots
> of variants.

brian@test-new:~$ /usr/sbin/lpinfo -m | grep -i ET-M1120
escpr:0/cups/model/epson-inkjet-printer-escpr/Epson-ET-M1120_Series-epson-escpr-en.ppd
 \
EPSON ET-M1120 Series , Epson Inkjet Printer Driver (ESC/P-R) for Linux

--
Briana.



Re: Bookworm soft lockup

2023-05-15 Thread David
On Mon, 2023-05-15 at 11:17 +0300, Anssi Saari wrote:
> Christian Gelinek  writes:
> 
> > Is anyone else seeing a similar problem? What can I do to avoid
> > this?
> > Do we need anything else to narrow it down further?
> 
> Only time I've seen a soft lockup was from a bad CPU. There were a
> bunch
> of them and eventually the computer hung. Going back to the slow
> plodding Celeron fixed all issues. Except CPU performance of course.

It's happened to me a couple of times, but only since I switched from
stable to testing, over the last month.
As I don't think everybody is running a Dell 980 desktop, or the same
desktop environment, it's probably not a hardware/software mismatch.
We'd be looking at strictly software, I suspect.
Cheers!


-- 
A Kiwi in Australia,
doing my bit toward raising the national standard.



Re: Bookworm soft lockup

2023-05-15 Thread Anssi Saari
Christian Gelinek  writes:

> Is anyone else seeing a similar problem? What can I do to avoid this?
> Do we need anything else to narrow it down further?

Only time I've seen a soft lockup was from a bad CPU. There were a bunch
of them and eventually the computer hung. Going back to the slow
plodding Celeron fixed all issues. Except CPU performance of course.




Re: Bookworm soft lockup

2023-05-15 Thread gene heskett

On 5/14/23 21:30, Christian Gelinek wrote:

I've had 2 similar lockups that needed a front panel reset just in the 
last 2 weeks.

Something isn't right.

Hi,

I encountered my Debian frozen this morning. This is the 2nd time this 
happened, the 1st one was on April 10, with very similar symptoms: The 
PC was still running, but moving the mouse or typing didn't wake up my 
screens and I couldn't connect to it via SSH.


After force-rebooting, I had a look at journalctl and these are the 
messages before the reboot:


May 14 00:00:09 gar systemd[1]: Starting cups.service - CUPS Scheduler...
May 14 00:00:09 gar audit[2912]: AVC apparmor="DENIED" 
operation="capable" profile="/usr/sbin/cupsd" pid=2912 comm="cupsd" 
capability=12  capname="net_admin"

May 14 00:00:09 gar systemd[1]: Started cups.service - CUPS Scheduler.
May 14 00:00:09 gar kernel: audit: type=1400 audit(1683988209.079:32): 
apparmor="DENIED" operation="capable" profile="/usr/sbin/cupsd" pid=2912 
comm="cupsd" capability=12  capname="net_admin"
May 14 00:00:09 gar systemd[1]: Started cups-browsed.service - Make 
remote CUPS printers available locally.
May 14 00:00:09 gar systemd[1]: logrotate.service: Deactivated 
successfully.
May 14 00:00:09 gar systemd[1]: Finished logrotate.service - Rotate log 
files.
May 14 00:17:01 gar CRON[2929]: pam_unix(cron:session): session opened 
for user root(uid=0) by (uid=0)
May 14 00:17:01 gar CRON[2930]: (root) CMD (cd / && run-parts --report 
/etc/cron.hourly)
May 14 00:17:01 gar CRON[2929]: pam_unix(cron:session): session closed 
for user root
May 14 00:54:00 gar kernel: snd_hda_intel :04:00.0: Unable to change 
power state from D3hot to D0, device inaccessible
May 14 00:54:03 gar kernel: [drm:fw_domains_get_with_fallback [i915]] 
*ERROR* render: timed out waiting for forcewake ack to clear.
May 14 00:54:03 gar kernel: i915 :03:00.0: [drm:add_taint_for_CI 
[i915]] CI tainted:0x9 by fw_domains_get_with_fallback+0x20c/0x230 [i915]
May 14 00:54:07 gar kernel: [drm:fw_domains_get_with_fallback [i915]] 
*ERROR* render: timed out waiting for forcewake ack to clear.
May 14 00:54:07 gar kernel: i915 :03:00.0: [drm:add_taint_for_CI 
[i915]] CI tainted:0x9 by fw_domains_get_with_fallback+0x20c/0x230 [i915]

May 14 00:54:11 gar kernel: hrtimer: interrupt took 252466383 ns
May 14 00:54:11 gar kernel: [drm:fw_domains_get_with_fallback [i915]] 
*ERROR* render: timed out waiting for forcewake ack to clear.
May 14 00:54:11 gar kernel: i915 :03:00.0: [drm:add_taint_for_CI 
[i915]] CI tainted:0x9 by fw_domains_get_with_fallback+0x20c/0x230 [i915]
May 14 00:54:16 gar kernel: [drm:fw_domains_get_with_fallback [i915]] 
*ERROR* gt: timed out waiting for forcewake ack to clear.
May 14 00:54:16 gar kernel: i915 :03:00.0: [drm:add_taint_for_CI 
[i915]] CI tainted:0x9 by fw_domains_get_with_fallback+0x20c/0x230 [i915]
May 14 00:54:17 gar kernel: i915 :03:00.0: [drm] *ERROR* CT: 
Corrupted descriptor head=4294967295 tail=4294967295 status=0x
May 14 00:54:26 gar kernel: [drm:fw_domains_get_with_fallback [i915]] 
*ERROR* render: timed out waiting for forcewake ack to clear.
May 14 00:54:26 gar kernel: i915 :03:00.0: [drm:add_taint_for_CI 
[i915]] CI tainted:0x9 by fw_domains_get_with_fallback+0x20c/0x230 [i915]
May 14 00:54:26 gar kernel: [drm:fw_domains_get_with_fallback [i915]] 
*ERROR* gt: timed out waiting for forcewake ack to clear.
May 14 00:54:26 gar kernel: i915 :03:00.0: [drm:add_taint_for_CI 
[i915]] CI tainted:0x9 by fw_domains_get_with_fallback+0x20c/0x230 [i915]
May 14 00:54:26 gar kernel: watchdog: BUG: soft lockup - CPU#15 stuck 
for 26s! [kworker/15:1:233]
May 14 00:54:26 gar kernel: Modules linked in: snd_seq_dummy snd_hrtimer 
snd_seq snd_seq_device nfsv3 nfs_acl rpcsec_gss_krb5 auth_rpcgss nfsv4 
dns_resolver nfs lockd grace fscache netfs rfkill qrtr sunrpc 
binfmt_misc nls_ascii nls_cp437 vfat fat snd_sof_pci_>
May 14 00:54:26 gar kernel:  intel_uncore ee1004 pcspkr watchdog snd 
soundcore intel_vsec serial_multi_instantiate acpi_pad intel_pmc_core 
acpi_tad mei_me sg mei evdev parport_pc ppdev lp parport fuse loop 
efi_pstore configfs efivarfs ip_tables x_tables autof>
May 14 00:54:26 gar kernel: CPU: 15 PID: 233 Comm: kworker/15:1 Tainted: 
G U  W  6.1.0-8-amd64 #1  Debian 6.1.25-1
May 14 00:54:26 gar kernel: Hardware name: Micro-Star International Co., 
Ltd. MS-7E02/PRO B760M-P DDR4 (MS-7E02), BIOS 1.00 10/21/2022

May 14 00:54:26 gar kernel: Workqueue: pm pm_runtime_work
May 14 00:54:26 gar kernel: RIP: 0010:pci_mmcfg_read+0xb0/0xe0
May 14 00:54:26 gar kernel: Code: 5d 41 5e 41 5f c3 cc cc cc cc 4c 01 e0 
66 8b 00 0f b7 c0 89 45 00 eb dc 4c 01 e0 8a 00 0f b6 c0 89 45 00 eb cf 
4c 01 e0 8b 00 <89> 45 00 eb c5 e8 66 a2 78 ff c7 45 00 ff ff ff ff b8 
ea ff ff ff

May 14 00:54:26 gar kernel: RSP: 0018:a9d000947cc0 EFLAGS: 0286
May 14 00:54:26 gar kernel: RAX:  RBX: 0040 
RCX: 0ffc
May 14 00:54:26 gar kernel: RDX: 00

Re: how to boot freebsd from bullseye?

2023-05-15 Thread didier gaumet

Le 14/05/2023 à 23:02, hl a écrit :
Thank didier gaumet! os-prober seems to be installed by default. it 
thinks my freebsd is unknown linux distro. if it's windows, i bet it can 
detect it correctly. freebsd is close cousin of linux they say, it is 
treated shabbily


- As far as I know, Linux being its cousin does not make FreeBSD more 
able to multiboot it:

https://wiki.freebsd.org/Multiboot

- os-prober has its limitations, that's why it is not automatically 
enabled in recent or future releases of Debian


- that does not prevent multibooting from Grub, but one has then to set 
up that manually (see the link I gave you before, there is a FreeBSD 
example).

There are other FreeBSD Grub setup examples here:
https://forums.freebsd.org/threads/install-freebsd-13-0-alongside-with-other-oss-on-uefi-system-via-grub2-multiboot.74818/
https://forums.freebsd.org/threads/detect-freebsd-from-grub-on-efi.68395/
https://unix.stackexchange.com/questions/109272/add-freebsd-to-grub2-boot-menu

- I don't remember, I think the FreeBSD root partition can be either 
UFS2/FFS2 or ZFS: in case of the latter you will have to adapt the setup 
accordingly.


As a funny sidenote, it seems the first Grub version was a modified 
FreeBSD bootloader. The author then decided that the best way was to 
rewrite Grub from scratch... ;-)





Re: Gene's avahi bogeyman is not real (Was Re: how to find outregdomain/country of wifi network)

2023-05-15 Thread Tom Dial

Sometimes I can't resist ...

On 5/14/23 16:20, gene heskett wrote:

On 5/14/23 17:21, Andy Smith wrote:

Dear debian-user archives,

On Sun, May 14, 2023 at 02:42:05PM -0400, gene heskett wrote:

I've literally spent a frigging week trying to get iproute to
over-ride the broken 169.xx.xx.xx primary route that earlier
avahi's insisted on putting into a network config, that is why to
this day the first thing I do after an install, is find avahi and
rm it and reboot. rm because you could not remove it with apt w/o
tearing down the system far enough the only recourse was to
reinstall.  That is obviously an endless loop.


Routine note for the archive that avahi is another one of Gene's
Demons and the above is not in any way true. I have 50+ Debian hosts
that do not have avahi installed at all, and several more that
intentionally do and work fine.

As usual, Gene's experiences are due to a misconfiguration that
Gene made and cannot be helped with, despite many people trying over
a period of years.

When you see a post from Gene mentioning liberal use of "rm" and
"chattr +i" on parts of the operating system, do begin to question
what you are reading.

Thanks,
Andy


Thanks for the vote of no confidence Andy.

The diff as I see it, is that I refuse to actually run a dns server here, bind 
and I agreed to disagree nearly 25 years ago when bind was at 4 something and 
half the planet was cleaning after attacks on bind. The other half wasn't aware 
of anything except the net was dead, no dns.


I've been running DNS on two or three local hosts for around 25 years, roughly 
since the number of images on my local net grew beyond about 4 or 5. I don't 
knowingly allow access from the public Internet or configure it to resolve any 
but local addresses. As I recall, I set it up based on the Debian HOWTO of the 
time, it worked upon deployment, it never has faulted except for hardware 
failure or my own mistypes. It is as easy to maintain as two or three hosts 
files, and easier to maintain consistency across what now are a couple of dozen 
system images.

Rejecting DNS now, and for local use, because there were failures or successful 
or unsuccessful attacks on public DNS servers a quarter century ago makes no 
sense.



The box in question was running rh 6.1 so that might give you a time frame. 
2001 maybe. IDK, IDC.

We bought a block of 16 ipv4 addresses and registered & ran the tv stations net 
access, about 40 mostly windoze boxes preferring /etc/host files for local lookups. 
It works if the router relays, its fast, and bulletproof. The way I've configured 
is to first check the hosts file for a match, and failing that, fwd the lookup 
request to my dd-wrt router, and if dnsmasq doesn't know it, forward it to my ISP. 
And its all transparent in about 30 milliseconds.  The reason I used rm on it is 
because back about wheezy I tried to remove it with apt, and its dependencies took 
247 other packages with it totally killing the system.


DNS performs similarly to hosts files, is not hard to set up, and is easier to 
maintain once set up.

I checked a couple of my images and found they have one or more avahi* packages 
installed (avahi-daemon is there in all cases, I assume due to a connection 
with installation of CUPS). CUPS works fine, and if Ahavi contributes to that, 
it's fine by me.



I screamed about it at the time, years ago, everybody sneered and made fun of 
me, and ever so slowly the dependencies went away and I can now remove it with 
apt, but it appears I no longer need to. So it has been reinstalled.


On several of my system images, removing avahi-daemon would also remove Gnome, 
so I wouldn't do it. But I have found no need: the only times I have noticed 
169.x.x.x IPv4 addresses is when something went wrong with network setup at 
boot, mostly cable or switch malfunctions.



Take care & stay well Andy.

Cheers, Gene Heskett.


Regards,
Tom Dial



Re: No space left on device ...

2023-05-15 Thread Joe
On Sun, 14 May 2023 21:04:01 -0400
Jeffrey Walton  wrote:

> On Sun, May 14, 2023 at 8:32 PM Albretch Mueller 
> wrote:
> >
> > I have been mounting an NTFS file system on a Windows laptop without
> > any problems whatsoever with a Debian Live DVD:
> >
> > $ uname -a
> > Linux debian 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02)
> > x86_64 GNU/Linux
> >
> > and even though Linux utilities are telling me I do have space on
> > the drive:
> >
> > $ date; sudo df -h | grep "Filesystem\|/dev/sd"
> > Sun 14 May 2023 06:55:23 PM UTC
> > Filesystem  Size  Used Avail Use% Mounted on
> > /dev/sda1   286G  167G  120G  59% /media/user/60320G593EB7250F
> > $
> >
> > $ date; time sudo du --summarize --human-readable
> > /media/user/60320G593EB7250F Sun 14 May 2023 07:13:43 PM UTC
> > 166G/media/user/60320G593EB7250F
> >
> > real0m45.230s
> > user0m1.073s
> > sys 0m15.443s
> > $
> >
> > when I try to save or download a file I consistently get the same
> > error message:
> >
> > $ cp "No space left on device" > No_space_left_on_device.txt
> > bash: No_space_left_on_device.txt: No space left on device
> >
> > that started happening right after a WiFi connection at a library
> > was shutdown, which I waited for with my script running, accessing
> > the Internet, because I wanted to test such a case. Script
> > "gracefully" worked as programmed to do, but that other error
> > started right after the connection was cut off.
> >
> > I have no idea how could those two things be related! Why would that
> > happen? Any suggestions, please?  
> 
> I don't know if it's related...
> 
> I seem to recall the GNUlib folks talking about a cp bug on sparse
> files. It looks like it may be fixed in coreutils release 9.2
> (2023-03-20):
> https://github.com/coreutils/coreutils/blob/master/NEWS#L233
> 
> If I recall correctly, it had something to do with the way
> copy_file_range worked. (Or maybe, it did not work as expected).
> 

First thing to try is to boot back into Windows and see if there is a
message about the drive. If so, let Windows 'fix' it. I've had cases
where the drive was not cleanly unmounted and Linux has mounted it
read-only. Windows was able to repair it, whatever the problem was.

-- 
Joe