Windows IoT - Mongodb - Raspberry - node.js

Is it possible to install mongodb on Windows 10 IoT?
I've mounted a Windows 10 IoT disk on my Raspberry PI3 and would like to install a nodejs app that connects to a mongodb database.
Do you have any advice? or what would be the database the more appropriated?

The answer is yes and no.
Either from the MongDB download page or build-from-source page, it only has x86 and x64 versions available, which are all targeting Intel/AMD processors.
Depending on the CPU architecture your windows IoT is running on,
If it's an ARM based like raspberry pi, you cannot run MongoDB directly unless you can build form the source code targeting AnyCPU.
If it's Intel based like MinnowBoard Turbot Dual Core Board, technically, you can run MongoDB. However, due to the fact Windows IoT is a minimum version of windows Core, you might run into trouble missing some dependency libraries.
So in both cases, I don't see you can do it with ease, until we have official or community efforts to port MongDB to windows IoT, to which I'm really looking forward.
If you're using windows IoT for cloud-based application, you can go for windows azure databases.

Related

Iot Edge on Windows 10 Iot Core on RaspBerry Pi 3B

I'm trying to get IoT Edge Runtime installed on a Windows 10 IoT Core (build 17763 through the IoT Dashboard tool) on a Raspberry Pi 3b (not the plus version!). I'm following this instruction . The IoT Core seems to be running fine. I can connect to it through the device portal. I have a remote PowerShell session opened to the device and I run the command that gets and runs the IotEdgeSecurityDaemon.ps1 script using the command from the mentioned instruction:
. {Invoke-WebRequest -useb aka.ms/iotedge-win} | Invoke-Expression; `
Install-SecurityDaemon -Manual -ContainerOs Windows -DeviceConnectionString 'xxxxxx'
with the connection string being the primary connection string from the IoT Edge device that I added beforehand in the Iot Hub. That all looks fine.
I can see it getting moby-engine (this install script should take care of the installation of the required container engine?) and other prereqs it needs, but in the end, it can't start the iotedge runtime service. This seems related to the moby-engine not running or not being installed (without any logging at all). I have found an alternative IotEdgeSecurityDaemon.ps1 script but before I start using that, I'd like to ask if anyone else has seen the same or similar problem with this particular setup.
regards,
derk
Windows ARM architecture is not yet supported by IoT Edge. AMD64-based IoT Core platforms should work.
See https://learn.microsoft.com/en-us/azure/iot-edge/support#tier-1 for more details.

installing sap on ubuntu

My laptop is running ubuntu 8g ram, I'd like to know if it's possible to install SAP express hana or ASE suit on it, localhost, without using virtual machines or a remote server.
All tutorials I've seen require either a VM or a server, I'd just like to install SAP locally to learn how to use it. Is there a simple way to install and run SAP on ubuntu?
The server install that you mentioned is simply a linux system where you can install the binaries. So it actually does not matter if the system is a "server" or your laptop.
The "Server Only" version of SAP HANA express is the core database layer and provides all the text analytics, geo spatial, predictive, etc and will run as a VM on 8GB of memory. If you take the same binaries that are provided and are used to create the VM to begin with you will find that it only takes somewhere between 2GB and 4GB of memory to start with.
But with only 8GB of available memory on your system that means that you will quickly hit limitations based on what else is running on your system and of course how much you try to do with the SAP HANA express system.
Last night I actually did the Docker install version and have HXE running on my 8GB laptop without a problem. I did give Docker 6GB of the system memory and my HXE system has 1GB of available free memory upon startup.
Now this was Docker on a Mac. If you take the binaries and follow the install instructions on your 8GB Ubuntu laptop you should see better performance.
So long worded answer in short terms means "YES you can install SAP HANA express on your 8GB laptop"
Now interpreting your question "if it's possible to install SAP express hana or ASE suit[e]" the above answers "SAP express hana" for "ASE suit[e]" the assumption is you mean "the ABAP stack running on ASE or HANA" in which case the answer is also yes but again with limitations coming sooner than later.

HoloLens emulator on a virtual machine

I'm trying to develop for HoloLens but my laptop doesn't support the needed specs, so I was trying to figure out a virtualized solution (namely, using an Azure VM).
After unsuccessfully running the emulator on the Azure VM, I found that according to Microsoft (https://technet.microsoft.com/en-gb/library/hh831531), "The Hyper-V role is not supported on a Microsoft Azure virtual machine", which kills that idea.
Does anyone know of an alternative virtual option for developing and running the HoloLens emulator, which doesn't rely on the host machine's (i.e. my laptop) specs?
Yes, in the latest version of Unity which is Unity 5.5, there's a new feature called "Holographic Emulation" that will enable you to run on a simulated device directly in the editor.
As for the requirements, you need to have
Unity 5.5 installed in your machine
Windows 10 Anniversary Update (or later) installed
Here's the link to the blog in case you want to check more details about the simulator
Hololens emulator IS the Hyper-V virtual machine with Windows 10 and 3D graphic capabilities. The host machine should be able to run Hyper-V (CPU/BIOS limitation) and have a 3D adapter. More details are here:
https://learn.microsoft.com/en-us/windows/mixed-reality/using-the-hololens-emulator
Then you could install the emulator from
https://learn.microsoft.com/en-us/windows/mixed-reality/install-the-tools
Hololens emulator is not supported in VM due to CPU limitation, you can use holographic simulation in Unity instead.

How to run node js server on Win CE ARM embedded device?

I have a device that has an ARM processor and runs Win CE OS.
Now I have got a requirement to implement a node js server inside the device.
The same requirement was implemented on another ARM device that was running Linux
Since node is compiled for Linux they were able to run a node js server inside the device.
But there is no Win CE compatible version of node available
Is that not done yet or am i missing something?
I read about Microsoft chakracore, but I didnot understand much.
Does anybody know how to run node on Win CE running devices.
Any kind of leads/help is appreciated. Thanks
Windows CE provides an implementation of the Win32 API that is someway compatible with the full-Win32 version implemented on Windows desktop operating systems.
It also provides C/C++ libraries but, as you know, evil is in the details and those implementations can be considered a subset of those you have on the desktop and missing a single function or feature can force you to re-implement a huge amount of code to work around the limitation.
Windows CE is also meant to run on resource-limited devices with a limited amount of RAM and processing power and, honestly, node.js does not seem to exactly target this kind of platforms.
First I would like to understand if the requirement makes sense and why there is a need to mix a small real-time OS like CE with a huge interpreted and resource-hungry monster like nodejs.
windows CE has not been updated in over 3 years it is unreasonable to expect node.js to work as is on top of CE. windows on arm however (used by windows phone, windows Iot, and the ill fated surface RT) can run this https://github.com/nodejs/node-chakracore. Windows on arm only accepts thumb2 instructions, so you won't be able to use regular node.js.
This is b\c v8 just in time compiler does not produce thumb2 instructions. more reading material here: https://blogs.msdn.microsoft.com/ntdebugging/2014/05/15/understanding-arm-assembly-part-2/

Can I develop for Windows Phone 8 while using an Azure VM?

Title says it. There are not strong enough words in the English language that can express my hatred of Windows 8. I will not install it on my personal machine.
I was hoping to create an Azure VM and do my development there. But Windows 8 was not an option for a VM. So on a whim I created a 2012 Server VM and downloaded and installed the Windows 8 SDK. It installed fine.
I created a Hello World application and tried to run it. I got an error saying that Hyper-V was required. I used Coreinfo.exe to check and it says Hyper-V is not supported. So am I SOL?
The Windows Phone 8 emulator requires Client Hyper-V, which is a new feature of Windows 8. The emulator is an x86 virtual machine, which runs an x86 build of Windows Phone 8, and makes use of the RemoteFX technology for hardware virtual GPU support. It's so it runs at a high percentage of real device performance, and is very closely compatible.
Unfortunately, for hardware reasons, Hyper-V cannot be nested. In the Intel and AMD processor virtualization models, a guest operating system cannot itself be a nested hypervisor.
RemoteFX requires Second Level Address Translation. How to check if your processor supports it.
If you want to use the emulator, I'm afraid you have to install Windows 8. You can always dual-boot. Alternatively, get a phone developer-unlocked so you can debug on real hardware.

Resources