Autostart of RabbitMQ service in Ubuntu

I have configured a high availability cluster of RabbitMQ instances, on Azure with 2 Ubuntu LTS 16.04 servers.
With an automation runbook these 2 servers are configured for the shutdown at night, and start on morning.
I was believing that the RabbitMQ service was starting by default as in Windows: but the servers was started, RabbitMQ no.
I was working with Unix systems many years ago, so i’m not so expert and could be that there is a better approach, but i found an working solution.
Typically an Unix user at the login runs the commands listed in the $HOME/.profile file, but this works just only when the user makes an login: in practice .profile act as the auto starting profile commands of today Windows server.
In order to automatically start something at the boot as an Windows service (or the autoexec.bat of the long gone ’80s MSDOS days) the file to change is /etc/rc.sysinit
The user configured while creating the Ubuntu machine is not a super user, so using the good old vi for rc.sysinit editing the command line is

sudo service rabbitmq-server start


in a cluster this must be done on the main cluster node, if you then connect via putty to other nodes you will find the file already changed.
(esc wq! … how many times i launched this sequence in ’80s..)
Rebooting all the vm RabbitMQ is immediately working.

Categories: Azure, RabbitMQ, Ubuntu

Passed Microsoft Exam 70-532 Developing Microsoft Azure Solutions

Today i got certified for 70-532 Developing Microsoft Azure Solutions.
The exam is not easy: on the Internet you can find various sources each promising exam dumps and so on (it seems that is sufficient to memorize questions and answers…), but this morning i fighted against questions absolutely new: difficult if you don’t know very well Azure DevOps and relative programming.

Categories: Azure

Android 6.01 on Samsung S5

Finally the new Android release on my Tim phone.
Better interface with the new rounded icons, the only problem was TomTom not starting, blocked on “Loading app”: after an uninstall and then reinstall all ok.
Update 07/28: everything seems ok, also the mirrorlink connection to my car stereo Kenwood DDX7015BT.

Categories: Android

Delete Azure AD

I had created an AD directory named alextestad in my Azure subscription in order to do some experiments, after that i tried to delete this temp AD, but i received

After some struggle i found how to do.
First must be added an Global admin user to this AD, in my case I added a user named “tobedeleted”



Clicking on create you get a temporary password:

At this point using another browser in a new Private window point to https://manage.windowsazure.com and login with the new account:

And immediately is requested to change the password:

At this point by clicking the button the login is done, obviously there is no subscription

but is not important.
At this point we need to install 2 things on our pc (found info here):
Microsoft Online Services Sign-In Assistant for IT Professionals RTW
Azure Active Directory Module for Windows PowerShell (64 bit)
Done this in the Azure Powershell we can launch

$objCred = get-credential

This causes the request of login where we use the credentials of the new user:

and then

connect-msolservice -credential $objCred

done this , we can launch in Powershell

Get-MsolServicePrincipal | Select DisplayName

This instructions lists all the applications Service Principals in AD, in my case

Now we can delete all not required apps in AD tenant

Get-MsolServicePrincipal | Remove-MsolServicePrincipal

where I got some errors but it seems no problem

Reissuing Get-MsolServicePrincipal | Select DisplayName in my case we had

Now in Azure portal is needed to delete the temp user, with the DELETE button at the end of this page

Done this, finally no errors while trying to delete the AD:

Categories: Azure

WordPress post from Word 2016

It was some times that i was posting on my blog directly, not from Microsoft Word.
I don’t remember when, but trying to post something from Word, using the Blog template, I got “Word cannot register your account”.
Tipically when you try to post from Word it is required to log in, the address was http://<yourwordpressblog>//xmlrpc.php and then the WordPress user and password.
After some attemps, i realized that WordPress is now using https: so the address to which post is https://<yourwordpressblog>//xmlrpc.php

Categories: Uncategorized

Apollo 11 source code

Here on GitHub.
It is also a time machine this code, remembering facts happened in the ’60s: read the initial comments in Luminary099/BURN_BABY_BURN–MASTER_IGNITION_ROUTINE.agc

Categories: Uncategorized

SQL Server 2016 Developer available

Categories: SQL Server

CRM 2016 installation

I was needing to prepare a CRM 2016 developer virtual machine, and i followed the instructions in this slideshare: but while installing SQL 2014 i got some alerts about the fact that SQL 2014 should not be installed on a domain controller, and after that no way to install CRM 2016: the setup was not finished and hanged.
So i tried to install SQL 2014 before the promotion of the server to a domain: this time the CRM setup, after the promotion to domain, was finished and the CRM site is working.

Categories: CRM

Windows 10 taskbar problems

Last July i updated my Windows 8.1 to 10, occasionally i noticed that on the taskbar was not present the alimentation icon; when was happening this problem Win 10 was not responding and i resolved the thing with a brute shutdown.
My installation is very slow to start, and i tried some operations; as a last resort yesterday i tried a registry defragmentation but this time the taskbar was dead: clicking on the start menu nothing, i was able to right clic the taskbar and change the properties.
From the other hand , the icons on desktop were working.
Before inserting the Windows 10 DVD and format, i tried to launch from Task Manager (fortunately i was able to right-clic the taskbar) an cmd console (Run New Task) with administrative privileges, and at the prompt:

sfc /scannow

nothing..
Then i tried to reinstall all using PowerShell , launching powershell and inside the powershell prompt with the command:

Get-AppXPackage -AllUsers | Foreach{Add-AppxPackage -DisableDevelopmentMode -register "$($_.InstallLocation)\AppXManifest.xml"}

Some complains about the fact that some installed software was more recent than the registry version, but my taskbar is now working.
Ok, still slow to start…but my new notebook should be ready this week.

Categories: Uncategorized
Follow

Get every new post delivered to your Inbox.