WSL issue: "Windows Subystem for Linux has no installed distributions" - ubuntu-18.04

I'm trying to get WSL 2 working on my Windows 10 machine. I have followed the "Manual" directions in this page:
https://learn.microsoft.com/en-us/windows/wsl/install-win10#set-your-distribution-version-to-wsl-1-or-wsl-2
And then downloaded 2 different Ubuntu distros linked in this page:
https://learn.microsoft.com/en-us/windows/wsl/install-manual
I set the default version to WSL 2.
After invoking "Add-AppxPackage" (with no errors) and restarting, the WSL still reports that I have no installed distributions.
See:
I have confirmed that all Hyper-V options have been enabled in Windows Features, along with Virtual Machine Platform, and Windows Subsystem for Linux.
I have tried "wsl /install" but it simply reports the same "Windows Subsystem for Linux has no installed distributions."
I have tried Add-AppxPackage with both administrator rights and non adminstrator rights with no difference.
How can I get WSL to allow me to install a distro?

After performing all of the steps above, I noticed that "Ubuntu 18.04 LTS" was in my "Recently Added" programs list in the start menu. Double clicking on it finished the installation.

You loaded your distro from the Windows Store, but did you Open it from the Windows Store?
You need to do this to go through the install process, during which you'll create a username and password.
Once you've done this, you should see Ubuntu (or your other distro of preference) listed in wsl -l -v as running, along with the WSL version under which it's running.
Incidentally, if you find it's running under WSL 1 although you'd set the default to WSL 2, use wsl -l -v to get its exact name, then use wsl --set-version MY-DISTRO-NAME 2 (replacing MY-DISTRO-NAME with that exact name given before). Your current instance will be terminated and WSL will spend the next few minutes converting the distro.

Related

Set up kenlm for Windows

The official website makes it pretty clear that there is no support for kenlm in Windows. There is a Windows tag at the github repository but it seems to be maintained by few random contributors then and there.
How to set up kenlm for Windows then?
The new DeepSpeech PlayBook also includes instructions for setting up a Docker image and running training from within a Docker container. If you have Docker on Windows, this might be another solution.
The information for building a new Scorer is still in a PR, but may also be useful.
The solution is to use Ubuntu in Windows through Windows Subsystem for Linux
Get WSL for Windows
From your ubuntu bash navigate to the folder where you want to do the setup. You can access the Windows file system from the /mnt/c/ folder, which you can find at the root directory.
From there simply follow the official instructions, that is clone the git repo, and run cmake .. & make -j2 in order to build the project (after first making the necessary installations in your Ubuntu system).
Obviously, you must train the models or scorers using the Linux bash. You can also use these models from Windows using the kenlm python library.
E.g.
The two steps to build a scorer for the deepspeech-model as described here should be executed from your Ubuntu system. But after you have the scorer you should be able to run the command
deepspeech --model deepspeech-0.9.3-models.pbmm --scorer kenlm.scorer --audio audio.wav
from Windows. However, once you have WSL there's no need to do this work from Windows. Things will work nicely #your Ubuntu system.
I've faced the same problem and solved it by building kenlm wheel from Cygwin terminal as home page advices (pip wheel pypi-kenlm).
I've also uploaded wheel to pypi called kenlm-cygwin, but it's only python3.7.

Vagrant faied to create host only adapter

I have just git cloned cakebox to my c drive and then then did what the documentation says to copy the .yaml file and then select vagrant up. When I did that then I get a 0x80004005 error and saying that failed to create host-only adapter.
I have windows 10, the latest version of vagrant and the latest version of virtualbox. I installed windows 10 yesterday. I installed virtualbox and then install vagrant. then did the command to get cakebox. I have seen other posts on here that says to restart virtualbox but that is only on mac os x and linux. How can I fix this issue so I am able to get it working for cake3

install faststart cloud in a box

I want to install FastStart on my laptop (cloud-in-a-box),
My current operating system is Windows 7
So, I burned the FastSTART on a DVD
It is recommended to install linux before or the DVD wil install both the system Centos and FastSTART?
thank you
The DVD will install both CentOS and Eucalyptus. The installation is quite straightforward, but understand that installing a new Operating System, such as CentOS means that you will lose your Windows 7 installation. Prior to installing, please make backups of everything you may need. Have a look here for the instructions to install Eucalyptus from the faststart iso.
You should also look at the YouTube video that is produced by Eucalyptus.
http://www.youtube.com/watch?v=AsIRAKNQMGc
Basically it will wipe out the existing operating system and data on your machine and put CentOS on it. Don't do this on your main machine. Do it on another machine.

can't find where BlackBerry 10 simulator was installed on MacOS, and re-install got "multiple launches of installer not allowed" error

Mac OS X Lion 10.7.5(11G63)
installer-bbndk-bb10_1_x-macosx-338-201302012246-201302032157.dmg
BlackBerry10Simulator-Installer-BB10_1_X-338-Mac-201302031817.dmg
After install the upper two dmg files, I can find qde in the launchpad, but I can not find the "BlackBerry10Simulator-BB10_n_nn.vmwarevm" file".
I want to re-install ,so I run the app "BlackBerry10Simulator-Installer.app" in Finder->devices->BlackBerry10Simulator-BB10-1-x, just get the pop-up-box saying
The Installer cannot be run.
Multiple launches of this installer is not allowed. It will now quit
, and then the installer quit.
How can I find the simulator install path, or
How can I re-Install it successfully.
P.S.
At the first time installing, I did not change anything while installing, just clicked those "next","accept..." buttons.
I think the simulator should be installed in default file path, but I don't know where is it, and can't find it even searching "BlackBerry10Simulator" in Finder.
Maybe there is something wrong while first time installing simulator?
The BB10 simulators are VMware virtual machines. On a Mac, you need to have VMWare Fusion installed in order to run the simulator VM. This is mentioned in the system requirements. All the dmg installer does is uncompress the VMware image and place it on your hard drive. I just installed this myself, and the default location seems to be:
/Users/<your username>/Documents/Virtual Machines
Inside there should be a folder Blackberry10Simulator-BB10_1_X-338 and inside that there should be BlackBerry10Simulator-BB10_1_X.vmwarevm which contains the actual virtual machine .vmx and .vmdk files.
There should also be an alias (shortcut) created on your desktop to point to this location, called Blackberry 10 Simulator.
To uninstall, there is a script in Blackberry10Simulator-BB10_1_X-338/install called uninstaller which should remove everything and allow you to install again.
Unfortunately, VMWare Fusion is not free but you can sign up for a 30-day trial in order to be able to run the simulator and test out your app.
I recently encountered this error with a different installer (but also installanywhere based). There seems to be a problem with the mirroring feature in VM Ware Fusion and the multiple install detection in Install anywhere. If you disable mirroring, I suspect the "Multiple launches of this installer is not allowed." error will no longer occur.

How to run BB10 simulator in Mac OS X

After installing the simulator I am not able to follow the instructions found here. I installed BlackBerry 10 Dev Alpha B Simulator. The page asks to run "BlackBerry10Simulator-BB10_ n_nn" but I cannot find any thing like that in my installation directory:
ls -1 BlackBerry10Simulator-BB10_0_10-261/
BlackBerry10Simulator-BB10_0_10.vmwarevm
bbm
controllers
install
I found "runBB10Simulator.sh" in the bbm directory but running it does not actually run a simulator, I am not sure what it does.
$ls -1 BlackBerry10Simulator-BB10_0_10-261/bbm
KeyNego.SIMULATOR.keystore
README.txt
Servers
bin
classpath
licenses
runBB10Simulator.sh
shutdown.sh
Can anyone help?
The simulator requires VMWare player, a free download.
http://www.vmware.com/products/player/
Cheers
EDIT:
Mac OS requires http://www.vmware.com/products/fusion/overview.html which is not free. Either bootcamp windows, install a linux distro or virtualize either to virtualize the emulator... (XZibit meme someone?) which is likely not going to work.
MAC OS requires VMFusion 30 day trial for installing the BB 10 simulator.
#russoue:- Once you install VMware Fusion Just open the **BlackBerry10Simulator-BB10_0_10.vmwarevm** with VMware Fusion and you are done. it will take some 5 min to load simulator.

Resources