Ubuntu on Windows 10 Doesn’t detect my Windows 10 Commands

I am currently trying to find the best way to use Bash on Windows 10, but at this point my last option was to ask here.

When I install these new “Ubuntu” applications for Windows 10, I want to have all my current Windows 10 features, just like Git for Windows.

For example, when I run code . to open Visual studio code(Installed on my windows 10), the bash from Git for Windows just open it, without installing it for that bash. Also is the same for Python, it detects my Windows’s python.

The problem(MINGW64) is that its hard to do some stuff like changing the shell to Zsh or things like that. So I supose its better to have Ubuntu for Windows.

Now I have this problem, when I do python --version I get the message to install python… So I want to know how can I configure this Ubuntu to detect my Windows Path applications.

The point of my question is to not install again everything in this “ubuntu”.

How to detect infinite loop exist in linear bounded automata (LBA)?

The following theorem from Michael Sipser’s book “Introduction to the Theory of Computation” states:

$ A_{\textrm{LBA}}= \{ \langle M, w \rangle \mid \text{$ M$ is an LBA that accepts string $ w$ } \}$ .

THEOREM: $ A_{\mathrm{LBA}}$ is decidable.

On the proof part, it states:

The idea for detecting when $ M$ is looping is that as $ M$ computes on $ w$ , it goes from configuration to configuration. If $ M$ ever repeats a configuration, it would go on to repeat this configuration over and over again and thus be in a loop.

I do not understand this: “If $ M$ ever repeats a configuration, it would go on to repeat this configuration over and over again”. What if $ M$ only repeat one configuration, then halts?

Ubuntu 18.04 installer unable to detect PCIe NVMe SSD

I have a HP Omen dg0019tx laptop with Win 10, 2 numbers of 1 TB PCIe NVMe SSD configured as RAID 0 Volume. I tried to dual boot it with Ubuntu 18.04, however, Ubuntu is unable to detect the SSD. I tried following solutions available over internet.

  1. Disable Fast Boot: Unable to detect SSD
  2. Disable Secure Boot: Unable to detect SSD
  3. Boot with Legacy mode: Unable to detect SSD
  4. Changed RAID to non-RAID: Unable to detect SSD, Unable to boot into windows, reinstalled window
  5. Booted window to safe mode using bcdedit /set {current} safeboot minimal: Able to boot in windows safe mode. then changed RAID to non-RAID, but again windows failed to boot, so again reinstalled windows
  6. Added nvme_load=YES in ubuntu Boot options: Still not able to detect SSD.
  7. lsblk also doesn’t list nvme. It only shows pendrive used for Ubuntu live

Another point is that HP BIOS for this laptop don’t have option to turn RAID to AHCI. It allows only RAID to non-RAID.

So, is there any way to dual boot this system with UBUNTU? Kindly help me out.

WSL: Is there a conditional to detect “Open Linux Shell Here” case?

When I open the WSL by clicking on its icon I need it to be opened in a certain directory (of course one that is more useful than System32), so I add a cd destination in my .bashrc. But then the “Open Linux Shell Here” option (available when you hold the Shift key on keyboard and right-click on any folder is also being redirected to that destination, which is undesirable. Is there a way I can detect this case in my .bashrc script and let it behave as it should?

In short, I need to know when the shell has been opened by the option in Shift+Right Click inside a folder, so that I can avoid changing the working directory to another one.

I’m using WSL-Ubuntu 18.04 LTS and GNU bash, version 4.4.19(1)-release (x86_64-pc-linux-gnu).

Is there any way to detect how many levels of exhaustion a character has, per rules?

Imagine a villain has taken a character prisoner and is forcing them to stay awake several days (using the optional Xanathar’s Guide p78 rules about spending 24 hours without a long rest) in the hopes of getting them to level 3 exhaustion so he can force them to make a saving throw at disadvantage. (The specific situation that came up is a villain with a prison full of people affected by the feeblemind spell, who keeps meticulous records and tries to make sure they’re at level 3 exhaustion for the 30-day save to shake it off.) Is there a way for him to tell for sure whether or not they made their Con save to avoid exhaustion?

Why not use a timer at sender instead of increasing transmision time in CSMA/CD to detect collisions?

In CSMA/CD protocol in order to detect collision Transmission time should be at least equal to two times 2×Tp, that means we have to change the frame size accordingly. Instead of all this why can’t we just place a timer with a time limit of 2×Tp, If there is any collision before the timer expires, then we can come to the conclusion that our data is corrupted, and we need to retransmit. This sounds easier for me as we need not append any additional bits to the frame, Correct me if I am wrong.