command line – Powershell not recognized when running from ssh

I have a windows server 2016 (version 1607, build 14393) with OpenSSH installed and running.

Recently, I noticed that I am no longer able to run powershell from a remote client when connecting via SSH, and keep getting the 'Powershell' is not recognized as an internal or external command, operable program or batch file error.

I also tried running it locally via CMD, and got the same error above. I followed this question and discovered I was suddenly missing an environment variable path to powershell.
By adding %SYSTEMROOT%System32WindowsPowerShellv1.0 to my Path I was able to run powershell locally again via CMD.

Yet even with this fix I am still unable to run powershell when connected using SSH, which is even more strange, as SSH connections are always ran as CMD in windows by default.

Here is an example of my connection process (running from ubuntu 16.04 terminal):

foo@foo:~$ ssh administrator@_SERVER_IP_
administrator@_SERVER_IP_'s password:

Microsoft Windows (Version 10.0.14393)
(c) 2016 Microsoft Corporation. All rights reserved.

administrator@_SERVER_IP_ C:UsersAdministrator>powershell
'Powershell' is not recognized as an internal or external command,  operable program or batch file.

Any hint what might be the cause for this problem?

apt – Having Upgraded to Ubuntu 20.04, Node, NPM, and Angular Are Not Recognized!

I installed node, npm, and angular on Ubuntu 19.10 by using a NodeSource PPA:

sudo apt install curl 
curl -sL | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install --global @angular/cli@9.0.0-rc.14

and it worked correctly until I upgraded to Ubuntu 20.04. After trying to create a new angular project, it said:

/usr/bin/env: 'node': No such file or directory

I tried to get node, npm, and angular versions but it said they were not installed. Then I typed:

sudo apt-get install nodejs 

in order to see what would happen as I had already installed them all.

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW package will be installed:
0 upgraded, 1 newly installed, 0 to remove, and 0 not upgraded.
Need to get 18.0 MB of archives.
After this operation, 92.2 MB of additional disk space will be used.
Get:1 focal/main amd64 nodejs amd64 12.18.0
-deb-1nodesource1 (18.0 MB)
Fetched 18.0 MB in 1min 9s (260 KB/s)
Selecting previously unselected package nodejs.
(Reading database ... 162832 files and directories currently installed.)
Preparing to unpack ... /nodejs_12.18.0-deb-1nodesource1_amd64.deb ...
Unpacking nodejs (12.18.0-deb-1nodesource1) ...
Setting up nodejs (12.18.0-deb-1nodesource1) ...
Processing triggers for man-db (2.9.1-1)

Now my problem is solved but remains two questions:

  1. Why did it happen after upgrading Ubuntu?
  2. And how could I have fixed it?

Thanks in advance,

audio – Headphone microphone not being recognized ubuntu 20.04

My laptop is an MSI GV-62 8RD-200. It has two audio jacks available (one headphone and one microphone). However, when I try to use the microphone, it only uses the internal microphone. In the Settings, the only microphone available is the internal microphone.

What should I do to use the microphone found on my earphone?

router – New gateway results in Google and Amazon security lockout, “device not recognized”

The cable company recently replaced my old gateway/wireless router. After the new gateway was installed (a “Touchstone TG1682G Telephony Gateway”, if it matters), both Google and Amazon required additional verification before I could log in to my accounts on their websites. Google gave me a message that my device was unknown or could not be verified and required that I either provide a backup email or phone to receive a confirmation code before proceeding. Amazon required me to enter an emailed code. AOL didn’t seem to notice or care.

But my actual device that I was using to connect to these websites has not changed. It is the same computer I have always used. My IP address probably changed with the new gateway, but the cable company has always assigned new IP addresses several times per year and it has never triggered a security lockout by Google or Amazon. Previously I would get the occasional e-mail notification that a sign-in was made on a new device (either “Linux” or “Windows” depending on which OS I was using), but nothing was ever triggered by getting a new IP.

Based on my understanding of a similar question asked on Quora it would be highly irregular if my router hardware were known to websites.

What about the installation of a new gateway could trigger account lockout protocols for Google and Amazon? Does anyone know what might be going on here?

Touchpad not recognized – ask Ubuntu

I installed Ubuntu 20.04 on my Lenovo ThinkBook 15-IIL and the touchpad doesn't work. I have to use an external mouse. It works fine on Windows. Here is xinput:

     Virtual core pointer                       id=2    (master pointer  (3))
⎜   ↳ Virtual core XTEST pointer                id=4    (slave  pointer  (2))
⎜   ↳ HID-compliant Mouse HID-compliant Mouse   id=9    (slave  pointer  (2))
⎣ Virtual core keyboard                     id=3    (master keyboard (2))
    ↳ Virtual core XTEST keyboard               id=5    (slave  keyboard (3))
    ↳ Power Button                              id=6    (slave  keyboard (3))
    ↳ Video Bus                                 id=7    (slave  keyboard (3))
    ↳ Power Button                              id=8    (slave  keyboard (3))
    ↳ Integrated Camera: Integrated C           id=10   (slave  keyboard (3))
    ↳ Ideapad extra buttons                     id=11   (slave  keyboard (3))
    ↳ AT Translated Set 2 keyboard              id=12   (slave  keyboard (3))

Any help appreciated, I really need to use my touchpad.

Microphone recognized, but does not work under Linux

I have headphones with a microphone. The microphone suddenly stopped working.
This appears to be a software problem because the webcam microphone is also not working.
I tried unsuccessfully to change all the settings available in alsamixer to reasonable ones (mute all channels).

I have also added set-source-volume 1 300000
to /etc/pulse/

pavucontrol indicates that the microphone is connected, but a small blue dynamic status bar, which indicates that the input volume indicates the sound of headphones and random noises when there is no sound in the headphones. (It looks like the sound is redirected from headphones to the microphone.)

What is going on and what steps should I take to solve this problem?

undocumented – Why are some symbols recognized by Mathematica but nowhere in the documentation?

I tried to calculate a Groebner basis for a particular set of polynomials and I did it successfully. But I wanted to calculate the conversion matrix between the original base and the Groebner base. Apparently Mathematica can do this with GroebnerBasis`BasisAndConversionMatrix instead of GroebnerBasis.

What does that mean `first? Searching the documentation only gives me information about precision. Is BasisAndConversionMatrix a subfunction of GroebnerBasis?

Second, why is there a symbol that Mathematica does not recognize (it is blue when you type it in) that does not appear anywhere in the documentation and still seems to do an important task correctly? Where should I have heard of this symbol officially? Is it an official part of Mathematica or part of an unofficial package that I downloaded?

Driver – Asus Laption integrated camera not recognized

Asus UX330UAR laptop. Integrated webcam is not recognized by the operating system – Ubuntu 18.04.
Both Cheese and guvcview complain – no device.

Q: What needs to be checked / tried for repair? Considering that it definitely worked with Ubuntu 16.04 …

All checks after restart.

I didn't expect that, but it seems uvcvideo is not loaded after the start:

sudo rmmod uvcvideo
rmmod: ERROR: Module uvcvideo is not currently loaded

Load module and list

sudo modprobe uvcvideo
andrey@andrey-UX330UAR:~$ lsmod | grep video
uvcvideo               86016  0
videobuf2_vmalloc      16384  1 uvcvideo
videobuf2_memops       16384  1 videobuf2_vmalloc
videobuf2_v4l2         24576  1 uvcvideo
videobuf2_core         40960  2 videobuf2_v4l2,uvcvideo
videodev              184320  3 videobuf2_core,videobuf2_v4l2,uvcvideo
media                  40960  2 videodev,uvcvideo
video                  45056  2 asus_wmi,i915

Some more lists:

andrey@andrey-UX330UAR:~$ lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 08)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 (rev 21)
00:15.1 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #1 (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller (AHCI mode) (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1)
00:1c.6 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #7 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Intel(R) 100 Series Chipset Family LPC Controller/eSPI Controller - 9D4E (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
02:00.0 Network controller: Intel Corporation Wireless 8260 (rev 3a)
andrey@andrey-UX330UAR:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 04f3:0903 Elan Microelectronics Corp. 
Bus 001 Device 006: ID 8087:0a2b Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
andrey@andrey-UX330UAR:~$ ls -l /dev/video*
ls: cannot access '/dev/video*': No such file or directory

I am not sure if it is relevant. During the start process:

dmesg | grep -iP 'Camera|video'
(    0.076109) ACPI: Added _OSI(Linux-Dell-Video)
(    0.245156) pci 0000:00:02.0: Video device with shadowed ROM at (mem 0x000c0000-0x000dffff)
(    2.397326) ACPI: Video Device (GFX0) (multi-head: yes  rom: no  post: no)
(    2.397612) input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input5
(  558.305783) Linux video capture interface: v2.00
(  558.317146) usbcore: registered new interface driver uvcvideo
(  558.317148) USB Video Class driver (1.1.1)
(  942.571630) usbcore: deregistering interface driver uvcvideo
(  942.795701) Linux video capture interface: v2.00
(  942.808852) usbcore: registered new interface driver uvcvideo
(  942.808853) USB Video Class driver (1.1.1)

Could be informative …

modinfo uvcvideo
filename:       /lib/modules/4.15.0-96-generic/kernel/drivers/media/usb/uvc/uvcvideo.ko
version:        1.1.1
license:        GPL
description:    USB Video Class driver
author:         Laurent Pinchart 
srcversion:     41E18BDF365D37D85A6A70D

Syslog on rm and sample of the module:

Apr 18 17:48:47 andrey-UX330UAR kernel: ( 2102.039692) usbcore: deregistering interface driver uvcvideo
Apr 18 17:48:48 andrey-UX330UAR kernel: ( 2102.277915) media: Linux media interface: v0.10
Apr 18 17:48:48 andrey-UX330UAR kernel: ( 2102.294165) Linux video capture interface: v2.00
Apr 18 17:48:48 andrey-UX330UAR kernel: ( 2102.306435) usbcore: registered new interface driver uvcvideo
Apr 18 17:48:48 andrey-UX330UAR kernel: ( 2102.306436) USB Video Class driver (1.1.1)

Video – Virtual webcam with video4linux2 is not recognized in some online services

I am trying to use my Canon 7D as a webcam on Kubuntu 19.10. I managed to connect the camera with gphoto2 and forward the video stream to a video device with the following command:

gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video2

I can confirm that this works – I can also view the stream ffplay /dev/video2 and even in something Online services (such as Where, Jitsi Meet or Zoom) I can use my custom webcam (although the name appears to be a dummy video device (0x0000).

However, if you try to use other services like Google Hangouts, Slack or Facebook Messenger, only my internal laptop webcam is offered. I suspect that the video4linux2 webcam uses a less common codec that is not as common as the codec used by my internal webcam. But that's just my wild guess, I'm in no way experienced with video codecs and video conversion.

I am very grateful for advice on how to make my Canon 7D webcam with more services for video calls.

Disk Utility – External hard drive is not recognized after use in Windows

I have an external HFS hard drive. I wanted to transfer a large file to my brother, so I had him install the Paragon HFS + program to read it. Something happened during the process and the hard drive stopped working. Now I can't integrate it into my Mac.
I can see that Windows recognizes the device but cannot access it while it is not discoverable on my Mac (neither in Disk Util nor by executing the debate command).

I don't know if there is a way to fix this.

Many thanks.