I'm working on a demo to show .NET ( C# ) code on Linux. As you all know, with the new cross-plat .NET execution context DNX that also run on Linux - this should be a breeze. So - let's see what it takes to make .NET run on your Linux machine.
First of all - you need to install the .NET version manager (DNVM) on your machine, which is really simple to do:
I've put up a script on GitHub that will do all of this for you: https://github.com/jochenvw/arm_sandbox/blob/master/ubuntu-aspnetcore/ubuntu_aspnetcore.sh
Also, in this script I create a main.cs file with the 'Hello World' console command.
Indeed - this is C# in Nano on Ubuntu. Pretty cool huh? I've found Nano syntax highlighting for C# - which is probably very similair to JAVA highlighting.
Anyway - after that - you just verify that you've got a DNX installed - do a package restore with the DNX utitility tool (dnu), do a 'dnu build' and then a 'dnx run' to run your application:
I'm making this setup script work unattended with the Azure ARM CustomScript extensions so that you can one-click-deploy a Linux box with DNX installed and this application up-and-running. Then I'll make a pull request for the previously mentioned quickstart repostiory so it's even more easy to get started!
Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts
Tuesday, May 17, 2016
Monday, May 25, 2015
Note to self: RTFM for ElasticSearch installation.
As mentioned previously, we're running the ELK stack to monitor our cloud services. Since I wanted to keep running the latest and even beta/pre-release versions of these apps, I've manually installed the apps, as opposed to using apt-get or docker.
Anyway - at some point ElasticSearch started taking up 100% CPU load on the machine and stopped responding a couple of minutes later.
So I stopped ElasticSearch and started it again - this time not in deamon mode. This started showing me the exceptions that were occurring.
Anyway - at some point ElasticSearch started taking up 100% CPU load on the machine and stopped responding a couple of minutes later.
So I stopped ElasticSearch and started it again - this time not in deamon mode. This started showing me the exceptions that were occurring.
As it turns out ElasticSearch wants you to change 2 configuration settings on your machine: number of open files and disable swapping.
After doing this - ES runs like a charm again.
By the way - increasing the number of open files on Ubuntu Server is described here: http://posidev.com/blog/2009/06/04/set-ulimit-parameters-on-ubuntu/
Thursday, February 5, 2015
Easy TeamCity Installation with Docker - by Ariya Hidayat
A colleague is working on a Ruby project mostly by himself and doesn't have a CI environment. So I decided to install TeamCity for him to play around with.
Since I've got my own projects to finish, I needed this to take the least amount of time, so I decided to see whether it's possible to use Docker, and obviously it is.
After setting up a fresh Ubuntu 14.10 server, installing docker ( apt-get install docker.io ) you're just 2 commands away from having TeamCity up-and-running:
docker run -dt -name teamcity_server -p 8111:8111 ariya/centos6-teamcity-serverand
docker run -e TEAMCITY_SERVER=http://buildserver:8111 -dt -p 9090:9090 ariya/centos6-teamcity-agent
Sunday, February 23, 2014
Install ElasticSearch on Ubuntu ... the easy way
ElasticSearch had been on my 'bucket list' for quite a while now, so I decided to fire up my trusty DL-380 and install ElasticSearch on my Ubuntu server.
That turned out to be a breeze thanks to this Gist: https://gist.github.com/wingdspur/2026107
Sunday, March 17, 2013
Remote Desktop to Ubuntu 12.10 - doesn't work out of the box...
I've installed Ubuntu 12.10 on a VM and wanted to connect to it using RDP, since I'm on a windows based environment. The package XRDP seems the way to go, but that doesn't work out of the box with the fancy Ubuntu interface.
What you need to do is:
- Get the xrdp package
apt-get install xrdp
- Get the gnome session fallback pacakge
No you can connect to your Ubuntu installation using RDP. However - you will have a completely different desktop from the latest version:
It's all described here - using software center - thanks Griffon.
apt-get install gnome-session-fallback- Create a file in the user home folder called .xsession and place the following line inside
gnome-session --session=gnome-fallback
No you can connect to your Ubuntu installation using RDP. However - you will have a completely different desktop from the latest version:
It's all described here - using software center - thanks Griffon.
Subscribe to:
Posts (Atom)










