OMS – Install Linux Agent on Windows 10 Bash

windows10-ubuntu

Do you know these “WOW!” moments in an IT Pro’s life? Well I just had one of these moments recently when I heard about the Windows 10 Insider build feature where you can run Bash shell on Windows 10 as a dedicated subsystem. The description of the system is like this…

This isn’t a virtual machine, a container, or Linux software compiled for Windows (like Cygwin). Instead, Windows 10 gains a Linux Subsystem for Windows, which is based on Microsoft’s abandoned Project Astoria work for running Android apps on Windows. Think of it as the opposite of Wine. While Wine allows you to run Windows applications directly on Linux, the Linux Subsystem for Windows allows you to run Linux applications directly on Windows. (Source)

Microsoft co-operated with Canonical to offer a full Ubuntu-based Bash shell that runs atop this subsystem. Cool, now why is Microsoft doing this? Well, there was always an urge to have SSH on Windows for managing also any non-Windows system. I guess this is one reason and probably also for developers to develop scripts and utilities. We have an Ubuntu-based Bash shell, it is not a full blown Linux server (!), it is just a shell having tools installed and similar file structure as a Linux server but it does not have the Linux kernel deployed at all. Ok so what else can we do with it? I was wondering if the Linux OMS agent will run on that subsystem :). Sounds cool? Well, let’s see…

Bash Installation

The installation of Bash is pretty easy, install the latest Windows 10 Insider Preview build and make sure you update it immediately. In my environment it shows this version…

image

Next enable Windows Subsystem for Linux (Beta) on the client…

image

Restart the client and execute bash…

image

Next, you need to provide user and password and then you should have your full blown Bash…

image

It shows the following version…

image

If you need very detailed steps, Scott Hanselmann has recorded a video with some more installation steps and also some additional information.

Next let’s install the OMS Linux agent…

OMS Linux Agent Installation

The installation of the agent is very well described on GitHub or I had also written a post some time ago. If you need detailed info, please check these articles first.

Download the agent using this command…

wget https://github.com/Microsoft/OMS-Agent-for-Linux
/releases/download/v1.1.0-217/omsagent-1.1.0-217.universal.x64.sh

image

Continue reading

Quick Post – Windows 10 & Visual Studio 2015 Getting Started Links

image

I have been in the IT industry quite some time, starting from the client side and then moving towards the backend side. All these years, I used Windows operating systems starting from Windows 3.1 up to the latest and greatest Windows 10. But there is also another hot topic going on besides Windows 10 which is the release of Visual Studio 2015. Why? Well, Visual Studio 2015 and the Windows 10 platform provide a perfect combination to write “Universal Apps”. What does that mean? In a short version, it means that Windows 10 offers a Universal Windows Platform (UWP) which provides a common platform across all devices. In other words, you will be able to write apps once, which run on many different Windows 10 devices.

This means you can create a single app package that can be installed onto a wide range of devices. And, with that single app package, the Windows Store provides a unified distribution channel to reach all the device types your app can run on.

[Source]

image

[Source]

Now instead writing your app for an operating system, you will start to write apps for different kind of device families. All these device families inherit the API’s from the Universal device family which guarantees that the Universal device API’s are present on all “child families”. So if you want to run your app on as many devices as possible you will use the Universal device family API’s.

image

[Source]

The consequences of this very exciting approach of Windows 10 and Visual Studio 2015 is, that you have less work and more devices (targets) where you can run your apps on . If I think about all the countless “things” you are able to develop, I get very enthusiastic and excided. I think there is a good time to explore and learn this new possibilities and let’s start to unleash your skills.

I would like to share some good places to learn about Windows 10 and Visual Studio 2015. I also would like to compliment Microsoft for doing a very good job in providing learning material to the community over past few years!

Here just some of the most important links to get you started:

Windows 10:

image

Visual Studio 2015:

image

I hope this gives you a very good starting point and shows you a new direction and you might want to try new things :).