netgear wna3100 not supported by linux?

2023-01-09 Thread lsg

i've searched Internet, it doesn't seem supported by linux?? too bad



Re: netgear wna3100 not supported by linux?

2023-01-09 Thread Mark Fletcher
On Mon, 9 Jan 2023 at 09:46, lsg  wrote:

> i've searched Internet, it doesn't seem supported by linux?? too bad
>
> Looks like you need to use ndiswrapper with the windows drivers to get it
to work. Saw that on an Ubuntu forum but what’s good for the gander is
often good for the goose…

Mark


Re: netgear wna3100 not supported by linux?

2023-01-09 Thread lsg


On 1/9/23 17:51, Mark Fletcher wrote:




Looks like you need to use ndiswrapper with the windows drivers to get 
it to work. Saw that on an Ubuntu forum but what’s good for the gander 
is often good for the goose…


Mark



Thank Mark! i've been directed to Ubuntu forum too, it's too 
complicated, i'd rather buy another usb wifi adapter, it's inexpensive 
these days.


Re: Why Debian packaging structure is so difficult

2023-01-09 Thread Roberto C . Sánchez
On Mon, Jan 09, 2023 at 11:50:23AM +0530, Sadhu Santh wrote:
> Hi,
> 
> I am hosting a local Debian mirror for my LAN. This helps in low internet
> bandwidth use.
> 
> I keep only the required distributions (past five years and testing
> release).
> 
> Compared to other distributions such ArchLinux/RockyLinux (single line Rsync
> can do the job), the partial mirroring over Rsync in Debian is a complex
> process.
> 
> I use ftpsync, which can run on any Linux distribution.
> 
> Is there any simple set of Rsync commands to sync a particular version of
> the platform (e.g. x86) of Debian? If not, why the upstream structure is not
> made simpler?
> 
> Thanks for your guidance on the matter.

The best solution, IMHO, is to mirror using a tool that is aware of the
specific structure of apt repositories.  Personally, I have had
excellent success with apt-cacher-ng, which functions much like a squid
proxy.  You configure apt-cacher-ng with the sources you like, then you
configure the clients on your network with the same sources but tell
them to use the apt-cacher-ng proxy.  Whenever a package is downloaded,
apt-cacher-ng keeps it around and serves it from the local cache for
subsequent requests.  You are able to configure how much disk space it
uses, how many pervious versions of packages to keep around, etc.

Another possibility seems like it would be apt-mirror.  However, I have
never used it and so I cannot give a specific or detailed
recommendation.

Regards,

-Roberto

-- 
Roberto C. Sánchez



Re: Why Debian packaging structure is so difficult

2023-01-09 Thread Charles Curley
On Mon, 9 Jan 2023 07:18:53 -0500
Roberto C. Sánchez  wrote:

> The best solution, IMHO, is to mirror using a tool that is aware of
> the specific structure of apt repositories.  Personally, I have had
> excellent success with apt-cacher-ng, which functions much like a
> squid proxy.  You configure apt-cacher-ng with the sources you like,
> then you configure the clients on your network with the same sources
> but tell them to use the apt-cacher-ng proxy. 

I second using apt-cacher-ng (acng). I've never configured acng itself,
just the clients, and that is simple and easily scripted.

The only thing it doesn't do is cache https only repositories. Those are
few and far between, and the reason it doesn't is inherent in https, so
I doubt any similar program will cache them. There are ways for clients
to deal with that limitation.

-- 
Does anybody read signatures any more?

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



Re: how do I stop FF from jumping workspaces when I click on a linkin t-bird

2023-01-09 Thread Andreas Rönnquist
On Sun, 8 Jan 2023 19:24:15 -0500,
gene heskett wrote:

>On 1/8/23 14:12, Andreas Ronnquist wrote:
>> On Sun, 8 Jan 2023 12:40:05 -0500,
>> gene heskett wrote:
>>   
>>> it is most inconvenient to have it jump workspaces and open the link on top 
>>> of the tbird screen.
>>>  
>> 
>> Which desktop environment are you on? - I think I might have seen
>> somewhere that you are on Xfce (but I am not sure) -
>> 
>> in that case - see
>> 
>> https://docs.xfce.org/xfce/xfwm4/faq#firefox_jumps_between_workspaces_why
>> 
>> which might be the cause of your problems. Change that setting to something 
>> you want.
>>   
>The suggested query line in that link generated errors. but nano fixed the 
>file. Do I have to reboot? Logging out reboots it. Or is there some other way 
>to bring it into effect.
>> 

It should be enough to log out and log in again.

I believe you need to select one of the settings though, if using the
command, like so:

xfconf-query -c xfwm4 -p /general/activate_action -s switch

(switch works for me).

best
/Andreas



Re: Why Debian packaging structure is so difficult

2023-01-09 Thread Celejar
On Mon, 9 Jan 2023 07:35:18 -0700
Charles Curley  wrote:

> On Mon, 9 Jan 2023 07:18:53 -0500
> Roberto C. Sánchez  wrote:
> 
> > The best solution, IMHO, is to mirror using a tool that is aware of
> > the specific structure of apt repositories.  Personally, I have had
> > excellent success with apt-cacher-ng, which functions much like a
> > squid proxy.  You configure apt-cacher-ng with the sources you like,
> > then you configure the clients on your network with the same sources
> > but tell them to use the apt-cacher-ng proxy. 
> 
> I second using apt-cacher-ng (acng). I've never configured acng itself,
> just the clients, and that is simple and easily scripted.
> 
> The only thing it doesn't do is cache https only repositories. Those are
> few and far between, and the reason it doesn't is inherent in https, so
> I doubt any similar program will cache them. There are ways for clients
> to deal with that limitation.

In my limited experience, HTTPS-only repositories are actually fairly
common: I've had to enable, at one point or another, apt-cacher-ng
workarounds (such as adding them to a PassThroughPattern) for a bunch
of repositories, including those of WineHQ, Xpra, VScodium, and the Tor
Project.

-- 
Celejar



Re: How can I check (and run) if an *.exe is a DOS or a Windows program?

2023-01-09 Thread Michael Stone

On Sat, Jan 07, 2023 at 11:33:44AM +, Ottavio Caruso wrote:

$ file test2/sm/SM.EXE
test2/sm/SM.EXE: MS-DOS executable, MZ for MS-DOS

Which makes me think it's DOS but it could be a false positive.


Nope, that's it. If it was windows it would say something like 
"PE32+ executable (GUI) x86-64 (stripped to external PDB), for MS Windows"
the keywords being "PE" and "for MS Windows". 32 bit programs would be 
"PE32" rather than "PE32+".


If you're running an ancient executable for an ancient (16bit) version 
of windows it would show up as something like 
"MS-DOS executable, NE for MS Windows (3.0)"




Re: X11 and hot-plugged keyboards and multiple layouts

2023-01-09 Thread Anssi Saari
Nicolas George  writes:

> Nicolas George (12020-02-19):
>> 8<8<8<8< xi2watch.c >8>8>8>8
>
> Hi.
>
> I am replying to my own mail of three years ago where I explained how to
> configure X11 to set different layouts on different keyboards and handle
> hot-plugging without root privileges. Since a standard tool did not
> exist yet, I had attached a small program of mine to do it.

Wow. It's exactly what I need since I've started to use a USB switch in
my home office. Assuming it works for me of course. I've thought about
writing a udev rule but haven't gotten around to it.

I've tried to run xmodmap after the keyboard is hot plugged (via telling
the USB switch to switch) but it's like the xmodmap doesn't take even
after I added a delay. Although it seems it worked sometimes. Maybe the
issue is I've tried to run xmodmap from the other computer over ssh, I
don't know.



Re: Disable systemd RDRAND usage

2023-01-09 Thread operation . privacyenforcement

Thank you very much!

On 1/8/23 19:43, Greg Wooledge wrote:

On Sun, Jan 08, 2023 at 07:06:03PM +0100, 
operation.privacyenforcem...@secure.mailbox.org wrote:

Hello,

I want to set SYSTEMD_RDRAND=0 as implemented here
https://github.com/systemd/systemd/issues/17112

How can this be done on Debian and how can this be tested?


 claims that all internal
use of RDRAND by systemd has been removed as of version 251.

Bullseye has version 247, but bullseye-backports appears to have 251.
See 

and the Debian backports instructions at
.





why rfkill not list my wifi device

2023-01-09 Thread lsg
according to web page by expert, rfkill without options shall list 
wireless device, but it shows nothing though my wifi adapter is active 
in buster




Python curses

2023-01-09 Thread paulf
Folks:

I'm trying to write some code in Python's curses module. I've run into
common curses items like A_NORMAL which don't exist. When I do a
print(curses.version), it shows "b 2.2". This tells me that the Debian
(testing) version of python curses is version 2.2. The documentation
for python curses at docs.python.org mentions versions up to 3.10.

Is it really possible that the latest version of Python in Debian
testing is linked to (or however it works) the 2.2 version of Python
curses?

If someone has insights here, I'd be grateful.

Paul

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



Re: why rfkill not list my wifi device

2023-01-09 Thread Charles Curley
On Tue, 10 Jan 2023 11:51:54 +0800
lsg  wrote:

> according to web page by expert, rfkill without options shall list 
> wireless device, but it shows nothing though my wifi adapter is
> active in buster
> 

What hardware? A suitable lspci list might help.

Mine shows:

root@jhegaala:~# rfkill
ID TYPE  DEVICE   SOFT  HARD
 0 bluetooth tpacpi_bluetooth_sw   blocked unblocked
 3 wlan  phy2unblocked unblocked
root@jhegaala:~# 

Then if I use the physical switch to turn off any transmitters, I see:

root@jhegaala:~# rfkill
ID TYPE  DEVICE SOFTHARD
 0 bluetooth tpacpi_bluetooth_sw blocked blocked
 3 wlan  phy2blocked blocked
root@jhegaala:~# 



-- 
Does anybody read signatures any more?

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



Re: why rfkill not list my wifi device

2023-01-09 Thread lsg



On 1/10/23 12:25, Charles Curley wrote:

What hardware? A suitable lspci list might help.
Mine shows:

root@jhegaala:~# rfkill
ID TYPE  DEVICE   SOFT  HARD
  0 bluetooth tpacpi_bluetooth_sw   blocked unblocked
  3 wlan  phy2unblocked unblocked
root@jhegaala:~#

Then if I use the physical switch to turn off any transmitters, I see:

root@jhegaala:~# rfkill
ID TYPE  DEVICE SOFTHARD
  0 bluetooth tpacpi_bluetooth_sw blocked blocked
  3 wlan  phy2blocked blocked
root@jhegaala:~#



Thank Charles! it's usb wifi adapter, lsusb shows

Bus 001 Device 005: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 
802.11n Wireless Network Adapter


rfkill shows nothing




Re: why rfkill not list my wifi device

2023-01-09 Thread Leandro Noferini
lsg  writes:

> On 1/10/23 12:25, Charles Curley wrote:

> it’s usb wifi adapter, lsusb shows
>
> Bus 001 Device 005: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 
> 802.11n
> Wireless Network Adapter
>
> rfkill shows nothing

I think for this adapter you need to use the dkms kernel modules: 


– 
Ciao
leandro


Re: why rfkill not list my wifi device

2023-01-09 Thread lsg

On 1/10/23 14:51, Leandro Noferini wrote:


I think for this adapter you need to use the dkms kernel modules: 


–
Ciao
leandro


Thank Leandro! dkms has been installed

root@debian:~# apt install dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
dkms is already the newest version (2.6.1-4).
0 upgraded, 0 newly installed, 0 to remove and 196 not upgraded.



Re: why rfkill not list my wifi device

2023-01-09 Thread Alexander V. Makartsev

On 10.01.2023 09:54, lsg wrote:


Thank Charles! it's usb wifi adapter, lsusb shows

Bus 001 Device 005: ID 0bda:8179 Realtek Semiconductor Corp. 
RTL8188EUS 802.11n Wireless Network Adapter


rfkill shows nothing

For this adapter, according to Wireless Wiki [1], you should use 
universal driver "rtl8xxxu". See if it was loaded:

    $ sudo lsusb -t

Check out the logs for relevant messages:
    $ sudo grep -iE "rtl|firmware" /var/log/syslog

This should give you a hint about a firmware file needed for this adapter.
Probably it is a good idea in general to install firmware package for 
Realtek-based devices from "non-free" section of Debian repos:

    $ sudo apt install firmware-realtek


[1] https://wireless.wiki.kernel.org/en/users/drivers/rtl819x
--
With kindest regards, Alexander.

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

Re: why rfkill not list my wifi device

2023-01-09 Thread lsg



On 1/10/23 15:26, Alexander V. Makartsev wrote:
For this adapter, according to Wireless Wiki [1], you should use 
universal driver "rtl8xxxu". See if it was loaded:

    $ sudo lsusb -t

Check out the logs for relevant messages:
    $ sudo grep -iE "rtl|firmware" /var/log/syslog

This should give you a hint about a firmware file needed for this adapter.
Probably it is a good idea in general to install firmware package for 
Realtek-based devices from "non-free" section of Debian repos:

    $ sudo apt install firmware-realtek


[1] https://wireless.wiki.kernel.org/en/users/drivers/rtl819x
--
With kindest regards, Alexander.



Thank Alexander!

actually my usb wifi adapter works well in buster but rfkill doesn't

i want to get rfkill to work