Re: shell script run in backend

2023-05-13 Thread Jeremy Ardley
On 14/5/23 14:21, Tom Reed wrote: Currently the script is running in front-end in shell. How can I run it with the backend way? can I register it as a system service? sudo nano /etc/systemd/system/myscript.service [Unit] Description=My Script [Service] ExecStart=/path/to/your/script.sh [In

shell script run in backend

2023-05-13 Thread Tom Reed
Hello list I have a long run shell script with similar content, #!/bin/bash while [ 1 ];do func1() func2() sleep 5 done Currently the script is running in front-end in shell. How can I run it with the backend way? can I register it as a system service? Thanks

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

2023-05-13 Thread Vincent Lefevre
On 2023-05-13 18:41:12 +0800, hl wrote: > On 5/13/23 18:01, Vincent Lefevre wrote: > > On 2023-05-13 17:19:01 +0800, hl wrote: > > > but ifconfig isn't available in buster > > I've used it for many years, and it is still there, currently in > > the net-tools package (try "apt-file search bin/ifconf

Re: How to download source package using only console?

2023-05-13 Thread Vincent Lefevre
On 2023-05-14 00:15:39 +0500, Alexander V. Makartsev wrote: > Hello, fellow Debian users. > > When I need to build a backport of a package, I sometimes find it difficult > to obtain actual source package(-s) from Debian repos using console. > Following advice from a wiki page [1], after "apt updat

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

2023-05-13 Thread Vincent Lefevre
On 2023-05-13 10:43:54 -0400, gene heskett wrote: > On 5/13/23 06:02, Jeremy Ardley wrote: > > > > On 13/5/23 17:57, Vincent Lefevre wrote: > > > Moreover, it should not be necessary to be root: you are just > > > reading non-private data. However, "list countries" does not > > > seem to exist. >

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

2023-05-13 Thread Vincent Lefevre
On 2023-05-13 10:47:33 -0400, gene heskett wrote: > On 5/13/23 06:04, Vincent Lefevre wrote: > > On 2023-05-13 17:56:48 +0800, jeremy ardley wrote: > > > > > > On 13/5/23 17:51, Nicolas George wrote: > > > > Also, ifconfig has nothing to do with wireless, so it was a red herring > > > > from the s

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

2023-05-13 Thread tomas
On Sat, May 13, 2023 at 11:00:23PM -0500, David Wright wrote: [...] > 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). [...] Now this one has more substance. It se

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

2023-05-13 Thread tomas
On Sat, May 13, 2023 at 03:39:50PM -0400, 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

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

2023-05-13 Thread David Wright
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

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

2023-05-13 Thread David Wright
On Sun 14 May 2023 at 06:37:52 (+0800), hl wrote: > i try old  FreeBSD-12.4, accept default FCC/US though i am not in US, > wifi scan succeeds I don't know how freebsd handles this. In linux, setting the wrong country can only reduce the performance you get, because it's likely that the equipment

¡Consigue la figura que deseas de forma saludable y definitiva!

2023-05-13 Thread tus-dietas.com
[logo] [1] Por Tiempo Limitado ‌ DEDICA UN MINUTO DE TU TIEMPO... DE VERDAD PODEMOS AYUDARTE. ¿Estás buscando una forma saludable para adelgazar? ¡Ya has encontrado el libro perfecto! El libro 10 CLAVES PARA ADELGAZAR CON éXITO (también disponible en amazon) te ofrece todas las herramientas

Re: iptables reject with TCP RST

2023-05-13 Thread Tom Reed
> On Sun, May 14, 2023 at 08:36:38AM +0800, Tom Reed wrote: >> tcp0 0 0.0.0.0:587 0.0.0.0:* >> LISTEN >> 32157/master >> >> >> And the telnet results: >> >> $ telnet 193.106.250.xx 587 >> Trying 193.106.250.xx... >> telnet: Unable to connect to remote host: Connection

Re: iptables reject with TCP RST

2023-05-13 Thread zithro
On 14 May 2023 02:36, Tom Reed wrote: $ telnet 193.106.250.xx 587 Trying 193.106.250.xx... telnet: Unable to connect to remote host: Connection timed out Run wireshark/dumpcap or tcpdump on the client to check if you get the TCP reset packet. You can also run it server-side, to see if the ser

Re: iptables reject with TCP RST

2023-05-13 Thread Greg Wooledge
On Sun, May 14, 2023 at 08:36:38AM +0800, Tom Reed wrote: > tcp0 0 0.0.0.0:587 0.0.0.0:* LISTEN > 32157/master > > > And the telnet results: > > $ telnet 193.106.250.xx 587 > Trying 193.106.250.xx... > telnet: Unable to connect to remote host: Connecti

Re: iptables reject with TCP RST

2023-05-13 Thread Tom Reed
> > On 14/5/23 08:28, Tom Reed wrote: >> I telnet to host:587 not the port 23. >> And port 587 already reject access with tcp rst. > -- > > check if you are listening on port 587 > > netstat -tulpnW | grep 587 > > yes it does. tcp0 0 0.0.0.0:587 0.0.0.0:* LI

Re: iptables reject with TCP RST

2023-05-13 Thread jeremy ardley
On 14/5/23 08:28, Tom Reed wrote: I telnet to host:587 not the port 23. And port 587 already reject access with tcp rst. -- check if you are listening on port 587 netstat -tulpnW | grep 587 Jeremy

Re: iptables reject with TCP RST

2023-05-13 Thread Tom Reed
> > On 14/5/23 08:14, Tom Reed wrote: >> /usr/sbin/iptables -A INPUT -p tcp --dport 143 -j REJECT --reject-with >> tcp-reset >> /usr/sbin/iptables -A INPUT -p tcp --dport 587 -j REJECT --reject-with >> tcp-reset >> >> When I telnet from another host to the protected port, it gets timeout >> message

Re: iptables reject with TCP RST

2023-05-13 Thread Jeremy Ardley
On 14/5/23 08:14, Tom Reed wrote: /usr/sbin/iptables -A INPUT -p tcp --dport 143 -j REJECT --reject-with tcp-reset /usr/sbin/iptables -A INPUT -p tcp --dport 587 -j REJECT --reject-with tcp-reset When I telnet from another host to the protected port, it gets timeout message as follows. telnet

iptables reject with TCP RST

2023-05-13 Thread Tom Reed
Hello I have these iptables rules which reject tcp connections with tcp rst. /usr/sbin/iptables -A INPUT -p tcp --dport 143 -j REJECT --reject-with tcp-reset /usr/sbin/iptables -A INPUT -p tcp --dport 587 -j REJECT --reject-with tcp-reset When I telnet from another host to the protected port, it

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

2023-05-13 Thread gene heskett
On 5/13/23 18:38, hl wrote: i try old  FreeBSD-12.4, accept default FCC/US though i am not in US, wifi scan succeeds . you did not post it all, if unset you can scan which is rx only, you cannot transmit until its set. That is regulatory edict all over this particular planet. Cheers, Gene H

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

2023-05-13 Thread hl
i try old  FreeBSD-12.4, accept default FCC/US though i am not in US, wifi scan succeeds

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

2023-05-13 Thread gene heskett
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 do

Re: Stable and testing together?

2023-05-13 Thread The Wanderer
On 2023-05-13 at 05:28, Hans wrote: > Hi folks, > > there is a question, which is in my mind for many years. > > Is there any reason, why not using oldstable, stable and testing > together? Others have cited reasons why not, and those reasons are valid. Despite that, this (or a subset, since I

Re: Stable and testing together?

2023-05-13 Thread Andy Smith
Hello, On Sat, May 13, 2023 at 11:28:24AM +0200, Hans wrote: > Is there any reason, why not using oldstable, stable and testing together? While some maintainers do commit to test and support their packages from "testing" on "stable", the usual case is that this has never been tested and is not su

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

2023-05-13 Thread debian-user
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. >

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

2023-05-13 Thread Arno Lehmann
Hi hl, Am 13.05.2023 um 11:19 schrieb hl: freebsd ask me regdomain/country of wifi when i set up wifi Shouldn't there be some documentation available? my wifi works in buster, how to find out regdomain/country it uses? Try this: root@redacted:~# iw phy phy0 reg get global country 00: DFS-

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

2023-05-13 Thread Greg Wooledge
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 sta

How to download source package using only console?

2023-05-13 Thread Alexander V. Makartsev
Hello, fellow Debian users. When I need to build a backport of a package, I sometimes find it difficult to obtain actual source package(-s) from Debian repos using console. Following advice from a wiki page [1], after "apt update", doesn't do it: $ apt source lego/testing Reading packag

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

2023-05-13 Thread tomas
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 complet

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

2023-05-13 Thread Nicholas Geovanis
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.

Re: Stable and testing together?

2023-05-13 Thread Andrew M.A. Cater
On Sat, May 13, 2023 at 11:28:24AM +0200, Hans wrote: > Hi folks, > > there is a question, which is in my mind for many years. > > Is there any reason, why not using oldstable, stable and testing together? > Yes: wiki.debian.org has https://wiki.debian.org/DontBreakDebian#Advice_For_New_Users

Re: sudoers question

2023-05-13 Thread tomas
On Sat, May 13, 2023 at 09:07:19AM -0700, Kushal Kumaran wrote: [...] > The benefit is that there is no shared password. [...] Thanks. This is one very good point indeed. Cheers -- t signature.asc Description: PGP signature

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

2023-05-13 Thread tomas
On Sat, May 13, 2023 at 04:25:26PM +, Thomas Schweikle wrote: [...] > This was never the reason for "/bin" vs. "/sbin". "/sbin" held just tools > needed to startup the system and mount the rest. No. You needed *both* /bin and /sbin for start up; /usr/bin and /usr/sbin could come later. One

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

2023-05-13 Thread Nicolas George
Thomas Schweikle (12023-05-13): > No, not really. But some do have a short memory. Computers used to have > "lots of memory" at some times in the past if they had 64KiB. The Harddisk > used to be large if it had 5MiB available. Systems had to mount drives over > networks to access more storage. You

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

2023-05-13 Thread tomas
On Sat, May 13, 2023 at 11:55:57AM -0400, gene heskett wrote: [...] > Unfortunately Tomas, neither util knows anything about radio's. As far as I know they never did. > Someone > just reminded me that iw is now the tool. I've found that /sbin/iw can > output regulatory info, but the shorthand u

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

2023-05-13 Thread Thomas Schweikle
Am Sa., 13.Mai.2023 um 12:46:01 schrieb jeremy ardley: On 13/5/23 18:36, to...@tuxteam.de wrote: Ip is by default in /bin, perhaps because it's more "modern". Ifconfig has always been in /sbin, long before Debian existed. -- Some programs are on the root path and some on the user path and mo

Re: sudoers question

2023-05-13 Thread Kushal Kumaran
On Sat, May 13 2023 at 01:51:03 AM, Lee wrote: > On 5/12/23, DdB wrote: >> Am 13.05.2023 um 00:03 schrieb Lee: >>> On 5/12/23, Stefan Monnier wrote: > Or configure sudo to disable tty_tickets, so that the timeout (10 > minutes by default IIRC) applies to all terminals. `sudo ba

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

2023-05-13 Thread gene heskett
On 5/13/23 11:17, to...@tuxteam.de wrote: On Sat, May 13, 2023 at 10:22:50AM -0400, gene heskett wrote: [...] ip does not in my man reading, offer similar performance. Is there a replacement utility for ifconfig that will supply this info? Sigh. Yes. There is a replacement. It is called ifco

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

2023-05-13 Thread tomas
On Sat, May 13, 2023 at 10:22:50AM -0400, gene heskett wrote: [...] > ip does not in my man reading, offer similar performance. Is there a > replacement utility for ifconfig that will supply this info? Sigh. Yes. There is a replacement. It is called ifconfig. Package net-tools, as `apt-file sear

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

2023-05-13 Thread David Wright
On Sat 13 May 2023 at 17:19:01 (+0800), hl wrote: > freebsd ask me regdomain/country of wifi when i set up wifi > > my wifi works in buster, how to find out regdomain/country it uses? For bullseye: $ /sbin/iw reg get global country US: DFS-FCC (902 - 904 @ 2), (N/A, 30), (N/A) (9

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

2023-05-13 Thread Greg Wooledge
On Sat, May 13, 2023 at 10:18:37AM +, Schwibinger Michael wrote: > * For Debian based distributions: > # dpkg -i epson-inkjet-printer-escpr_.deb > > > > What is the name of architecture? Typically, either amd64 or i386, depending on which one you installed. The canonical way to find out

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

2023-05-13 Thread gene heskett
On 5/13/23 08:11, didier gaumet wrote: Hello, some info here: https://www.kernel.org/doc/html/latest/networking/regulatory.html . Some useful info above. Useful to the OP? IDK. Cheers, Gene Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Ple

Re: SOLVED:Re: repeat of previous questionthathasgoneunansweredseveraltimes.

2023-05-13 Thread gene heskett
On 5/13/23 07:18, Brian wrote: On Fri 12 May 2023 at 15:27:21 -0400, gene heskett wrote: On 5/12/23 14:45, Brian wrote: On Fri 12 May 2023 at 06:23:56 -0400, gene heskett wrote: [...] I'm confused. There is not anything wrong with this machine as a Server. ALL of this muttering and bitching

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

2023-05-13 Thread gene heskett
On 5/13/23 06:04, Vincent Lefevre wrote: On 2023-05-13 17:56:48 +0800, jeremy ardley wrote: On 13/5/23 17:51, Nicolas George wrote: Also, ifconfig has nothing to do with wireless, so it was a red herring from the start. wlan0 is an interface like any other and ifconfig works with it For me

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

2023-05-13 Thread gene heskett
On 5/13/23 06:02, Jeremy Ardley wrote: On 13/5/23 17:57, Vincent Lefevre wrote: Moreover, it should not be necessary to be root: you are just reading non-private data. However, "list countries" does not seem to exist. Debian 11 seems to have a different opinion on who can run ifconfig. Sudo

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

2023-05-13 Thread Bret Busby
On 13/5/23 22:22, gene heskett wrote: On 5/13/23 05:35, hl wrote: freebsd ask me regdomain/country of wifi when i set up wifi my wifi works in buster, how to find out regdomain/country it uses? https://wiki.freebsd.org/action/show/WiFi/RegulatoryDomainSupport?action=show&redirect=WiFiRegulator

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

2023-05-13 Thread gene heskett
On 5/13/23 06:02, Vincent Lefevre wrote: On 2023-05-13 17:19:01 +0800, hl wrote: but ifconfig isn't available in buster I've used it for many years, and it is still there, currently in the net-tools package (try "apt-file search bin/ifconfig"). Thank you Vincent, not ordinarily installed in b

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

2023-05-13 Thread gene heskett
On 5/13/23 05:39, Jeremy Ardley wrote: On 13/5/23 17:19, hl wrote: To view the current list of regulatory domains and SKUs:  # ifconfig wlan0 list countries To view the current regulatory domain frequency and operating modes:  # ifconfig wlan0 list regdomain but ifconfig isn't available i

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

2023-05-13 Thread gene heskett
On 5/13/23 05:35, hl wrote: freebsd ask me regdomain/country of wifi when i set up wifi my wifi works in buster, how to find out regdomain/country it uses? https://wiki.freebsd.org/action/show/WiFi/RegulatoryDomainSupport?action=show&redirect=WiFiRegulatory To view the current list of regulato

Re: Help with Debian for ARM

2023-05-13 Thread Dan Ritter
Mario Marietto wrote: > I still have the old "Samsung / Google Nexus 10" tablet. I don't like > Android. Any help to install Ubuntu instead of Android on this device is > appreciated. Thanks. First, this is a Debian list, not an Ubuntu list. Second, as far as I know, there are proprietary compo

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

2023-05-13 Thread David
On Sat, 13 May 2023 at 09:35, hl wrote: > freebsd ask me regdomain/country of wifi when i set up wifi > > my wifi works in buster, how to find out regdomain/country it uses? [root@satpro ~]# iw help | grep reg reg reload Reload the kernel's regulatory database. phy reg get

Re: sudoers question

2023-05-13 Thread Dan Ritter
to...@tuxteam.de wrote: > Security is engineering: always looking for a good tradeoff. > Not magic. > > (That's why I cringe when people around here scaremonger about > "you NEED to have a password" and things. People should know > what they are getting into, for sure, but at the same time they >

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

2023-05-13 Thread Andrew M.A. Cater
On Sat, May 13, 2023 at 10:18:37AM +, Schwibinger Michael wrote: > First > You asked for the bug message: > > https://ibb.co/Xtbz1Qp > [https://i.ibb.co/jDTLmNG/epsonprot.jpg] > epsonprot hosted at ImgBB > Image epsonprot hosted in ImgBB > ibb.co

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

2023-05-13 Thread tomas
On Sat, May 13, 2023 at 02:26:58PM +0200, Michel Verdier wrote: > Le 13 mai 2023 jeremy ardley a écrit : > > > The exact reasons are in the mists of time, but it seems likely the powers > > didn't want users to routinely use programs better run by adminstrators. > > As I learned it a long time ag

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

2023-05-13 Thread Schwibinger Michael
First You asked for the bug message: https://ibb.co/Xtbz1Qp [https://i.ibb.co/jDTLmNG/epsonprot.jpg] epsonprot hosted at ImgBB Image epsonprot hosted in ImgBB ibb.co Good morning https://www.epson.co.uk/products/printers/inkjet/consumer/ecotank

Re: Help with Debian for ARM

2023-05-13 Thread Mario Marietto
Errata corrige : I still have the old "Samsung / Google Nexus 10" tablet. I don't like Android. Any help to install Debian instead of Android on this device is appreciated. Thanks. On Sat, May 13, 2023 at 2:27 PM Mario Marietto wrote: > Hello. > > I still have the old "Samsung / Google Nexus 10

Help with Debian for ARM

2023-05-13 Thread Mario Marietto
Hello. I still have the old "Samsung / Google Nexus 10" tablet. I don't like Android. Any help to install Ubuntu instead of Android on this device is appreciated. Thanks. -- Mario.

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

2023-05-13 Thread Michel Verdier
Le 13 mai 2023 jeremy ardley a écrit : > The exact reasons are in the mists of time, but it seems likely the powers > didn't want users to routinely use programs better run by adminstrators. As I learned it a long time ago, /bin /sbin are historically for system commands, /usr/bin /usr/sbin for u

Re: sudoers question

2023-05-13 Thread debian-user
wrote: > On Sat, May 13, 2023 at 10:35:31AM +0200, Michel Verdier wrote: > > Le 12 mai 2023 tomas a écrit : > > > > >> > `sudo bash` anyone? > > >> > > >> also quicker done with > > >> su - > > > > > > But not the same. > > > > Which differences do you see ? > > For su, you have to e

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

2023-05-13 Thread didier gaumet
Hello, some info here: https://www.kernel.org/doc/html/latest/networking/regulatory.html

Re: iptables and system reboot

2023-05-13 Thread Tom Reed
> > On 13/5/23 18:56, Tom Reed wrote: >> for iptables-save, after system rebooting, does it know where to locate >> the file? > > Yes. That's all taken care of by the iptables-persistent package > > Also I made a typo. correction; > > sudo nano /etc/iptables/rules.v4 > > sudo nano /etc/iptables/rul

Re: SOLVED:Re: repeat of previous question thathasgoneunansweredseveraltimes.

2023-05-13 Thread Brian
On Fri 12 May 2023 at 15:27:21 -0400, gene heskett wrote: > On 5/12/23 14:45, Brian wrote: > > On Fri 12 May 2023 at 06:23:56 -0400, gene heskett wrote: > > > > [...] > > > > > I'm confused. There is not anything wrong with this machine as a Server. > > > ALL of this muttering and bitching has b

Re: iptables and system reboot

2023-05-13 Thread jeremy ardley
On 13/5/23 18:56, Tom Reed wrote: for iptables-save, after system rebooting, does it know where to locate the file? Yes. That's all taken care of by the iptables-persistent package Also I made a typo. correction; sudo nano /etc/iptables/rules.v4 sudo nano /etc/iptables/rules.v6 -- Jeremy

Re: iptables and system reboot

2023-05-13 Thread Tom Reed
> > On 13/5/23 18:48, Tom Reed wrote: >> How to recovery iptable rules after system rebooting? >> I know I can put a @reboot crontab for this but there is maybe the >> better >> way. > > > sudo apt install iptables-persistent > > sudo iptables-save > /etc/iptables/rules.v4 > > sudo ip6tables-save >

Re: iptables and system reboot

2023-05-13 Thread Jeremy Ardley
On 13/5/23 18:48, Tom Reed wrote: How to recovery iptable rules after system rebooting? I know I can put a @reboot crontab for this but there is maybe the better way. sudo apt install iptables-persistent sudo iptables-save > /etc/iptables/rules.v4 sudo ip6tables-save > /etc/iptables/rules.

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

2023-05-13 Thread Nicolas George
jeremy ardley (12023-05-13): > In some cases sudo is actually required and in some cases it makes no > difference. If you use sudo just to run programs that are not in the default path but do not require privileges, then please keep away from any system I administrate and refrain from giving advic

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

2023-05-13 Thread Jeremy Ardley
On 13/5/23 18:46, jeremy ardley wrote: Some programs are on the root path and some on the user path and most (all?) on both. Correction Most (all?) are on the root path, not including programs specific to a user or application. -- Jeremy (Lists)

iptables and system reboot

2023-05-13 Thread Tom Reed
Hello How to recovery iptable rules after system rebooting? I know I can put a @reboot crontab for this but there is maybe the better way. Thanks

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

2023-05-13 Thread jeremy ardley
On 13/5/23 18:36, to...@tuxteam.de wrote: Ip is by default in /bin, perhaps because it's more "modern". Ifconfig has always been in /sbin, long before Debian existed. -- Some programs are on the root path and some on the user path and most (all?) on both. The exact reasons are in the mists o

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

2023-05-13 Thread Nicolas George
hl (12023-05-13): > root@debian:~# /sbin/ifconfig  wlx12345 list regdomain > list: Unknown host Told you ifconfig was a red herring. -- Nicolas George signature.asc Description: PGP signature

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

2023-05-13 Thread hl
On 5/13/23 18:01, Vincent Lefevre wrote: On 2023-05-13 17:19:01 +0800, hl wrote: but ifconfig isn't available in buster I've used it for many years, and it is still there, currently in the net-tools package (try "apt-file search bin/ifconfig"). Thank Vincent! i install net-tools, but it doe

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

2023-05-13 Thread tomas
On Sat, May 13, 2023 at 06:23:00PM +0800, 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

Re: sudoers question

2023-05-13 Thread Nicolas George
DdB (12023-05-13): > The kind of mistakes, any user (including yourself) can initiate, grows > considerably, if he can use any commands without even thinking. You are right with this principle but you are mistaken in applying it. If you want to teach users to think before typing the password, then

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

2023-05-13 Thread tomas
On Sat, May 13, 2023 at 06:14:57PM +0800, Jeremy Ardley wrote: > > On 13/5/23 18:07, Vincent Lefevre wrote: > > You should learn what a run path is. A "command not found" just means > > that the command isn't in your path. So, provide the path explicitly > > or add /sbin to $PATH. > > The reason

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

2023-05-13 Thread tomas
On Sat, May 13, 2023 at 06:02:18PM +0800, Jeremy Ardley wrote: > > On 13/5/23 17:57, Vincent Lefevre wrote: > > Moreover, it should not be necessary to be root: you are just > > reading non-private data. However, "list countries" does not > > seem to exist. > > Debian 11 seems to have a different

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

2023-05-13 Thread Nicolas George
Jeremy Ardley (12023-05-13): > The actual reason is they have deprecated it in favour of the ip command No it is not the actual reason, as ifconfig has been in /sbin since way before ip existed. -- Nicolas George signature.asc Description: PGP signature

Re: sudoers question

2023-05-13 Thread tomas
On Sat, May 13, 2023 at 10:35:31AM +0200, Michel Verdier wrote: > Le 12 mai 2023 tomas a écrit : > > >> > `sudo bash` anyone? > >> > >> also quicker done with > >> su - > > > > But not the same. > > Which differences do you see ? For su, you have to enter the root password. For sudo, there are

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

2023-05-13 Thread Jeremy Ardley
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

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

2023-05-13 Thread Nicolas George
Jeremy Ardley (12023-05-13): > The reason it's not on the path is because the Debian designers > thought it would best if users did not routinely run it This is your interpretation, not an official stance. It might as well be that they considered polluting the completion namespace of users with a

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

2023-05-13 Thread Jeremy Ardley
On 13/5/23 18:07, Vincent Lefevre wrote: You should learn what a run path is. A "command not found" just means that the command isn't in your path. So, provide the path explicitly or add /sbin to $PATH. The reason it's not on the path is because the Debian designers thought it would best if

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

2023-05-13 Thread Vincent Lefevre
On 2023-05-13 18:02:18 +0800, Jeremy Ardley wrote: > > On 13/5/23 17:57, Vincent Lefevre wrote: > > Moreover, it should not be necessary to be root: you are just > > reading non-private data. However, "list countries" does not > > seem to exist. > > Debian 11 seems to have a different opinion on

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

2023-05-13 Thread Vincent Lefevre
On 2023-05-13 17:56:48 +0800, jeremy ardley wrote: > > On 13/5/23 17:51, Nicolas George wrote: > > Also, ifconfig has nothing to do with wireless, so it was a red herring > > from the start. > > wlan0 is an interface like any other and ifconfig works with it For me, since the wireless interface

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

2023-05-13 Thread Nicolas George
jeremy ardley (12023-05-13): > wlan0 is an interface like any other and ifconfig works with it > > Your issue is you don't have a wlan0 on your particular system so you got an > error. Check before saying something wrong. -- Nicolas George signature.asc Description: PGP signature

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

2023-05-13 Thread Jeremy Ardley
On 13/5/23 17:57, Vincent Lefevre wrote: Moreover, it should not be necessary to be root: you are just reading non-private data. However, "list countries" does not seem to exist. Debian 11 seems to have a different opinion on who can run ifconfig. Sudo or root is required. jeremy@client:~$

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

2023-05-13 Thread Vincent Lefevre
On 2023-05-13 17:19:01 +0800, hl wrote: > but ifconfig isn't available in buster I've used it for many years, and it is still there, currently in the net-tools package (try "apt-file search bin/ifconfig"). -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - B

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

2023-05-13 Thread Vincent Lefevre
On 2023-05-13 17:41:14 +0800, Jeremy Ardley wrote: > On 13/5/23 17:38, Jeremy Ardley wrote: > > ifconfig needs to be run as root or sudo. e.g. > > > > sudoifconfig wlan0 list countries > > Wrong. > > sudo ifconfig wlan0 list countries Wrong again. You must not use no-break spaces. Moreover, it

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

2023-05-13 Thread jeremy ardley
On 13/5/23 17:51, Nicolas George wrote: Also, ifconfig has nothing to do with wireless, so it was a red herring from the start. wlan0 is an interface like any other and ifconfig works with it Your issue is you don't have a wlan0 on your particular system so you got an error. The OP indicat

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

2023-05-13 Thread Nicolas George
Jeremy Ardley (12023-05-13): > ifconfig needs to be run as root or sudo. e.g. Wrong. cigaes@ssecem ~ $ sudo ifconfig wlan0 list countries wlan0 list co: error fetching interface information: Device not found cigaes@ssecem ~ $ /sbin/ifconfig wlan0 list countries wlan0 list co: error fetching inte

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

2023-05-13 Thread Jeremy Ardley
On 13/5/23 17:38, Jeremy Ardley wrote: ifconfig needs to be run as root or sudo. e.g. sudoifconfig wlan0 list countries Wrong. sudo ifconfig wlan0 list countries -- Jeremy (Lists)

Stable and testing together?

2023-05-13 Thread Hans
Hi folks, there is a question, which is in my mind for many years. Is there any reason, why not using oldstable, stable and testing together? I am asking this, because sometimes I need packages, whcih are no more in testing or stable (for example an older kernel, which is capable to run on my

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

2023-05-13 Thread Jeremy Ardley
On 13/5/23 17:19, hl wrote: To view the current list of regulatory domains and SKUs:  # ifconfig wlan0 list countries To view the current regulatory domain frequency and operating modes:  # ifconfig wlan0 list regdomain but ifconfig isn't available in buster ifconfig needs to be run as

how to find out regdomain/country of wifi network

2023-05-13 Thread hl
freebsd ask me regdomain/country of wifi when i set up wifi my wifi works in buster, how to find out regdomain/country it uses? https://wiki.freebsd.org/action/show/WiFi/RegulatoryDomainSupport?action=show&redirect=WiFiRegulatory To view the current list of regulatory domains and SKUs:  # ifco

Re: sudoers question

2023-05-13 Thread Michel Verdier
Le 12 mai 2023 tomas a écrit : >> > `sudo bash` anyone? >> >> also quicker done with >> su - > > But not the same. Which differences do you see ?