Archive for the ‘Ubuntu’ Category

Horton Works – Assign Static IP to HDP Sandbox V2.X in vSphere 6.X

April 2, 2018

HWX-RGB-full-w-tagline

I downloaded the HDP Sandbox 2.6 and tried to install it in vSphere. After making and breaking the file .ova file and finally deploying it;the machine got up but with network issues. To give your appliance a static IP address you will have to edit the networking scripts and reboot the machine. First of all verify your NIC instance with the following command (ens32 in my case).

ip addr show

01

The scripts can be found in the following location.

cd /etc/sysconfig/network-scripts

02

Evidently a script in my NIC instance name was missing.  I copied the contents of the already provided script (ifcfg-ens33) into a new file in my NIC instance name and modified the parameters to give a static IP to my sandbox instance.

vi ifcfg-ens32

03

BOOTPROTO=static

IPADDR=172.X.X.X.

NETMASK=255.255.255.0

GATEWAY=172.X.X.X

04

Save the file and reboot your appliance.

# reboot

After the reboot; the script assigned the static IP to the NIC instance and the Ambari server was up and running.

Advertisements

Executable Bit: Wine error in Ubuntu 10.10

February 11, 2011

If you are bothered by the Windows .exe files execution under the Wine in Ubuntu 10.10 and getting this error:

Blocked: wine start/unix
The file ‘/media/My Passport/Softwares/Setup.exe’ is not marked as executable. If this was downloaded or copied from an untrusted source, it may be dangerous to run. For more details, read about the executable bit.


Then you are at the right place. Just do the following:

1. Copy the .exe file to your system (home/desktop: Just to make it sure the file is not on a removable media.)
2. Right click on the .exe file. Click Properties.
3. Click Permissions tab.
4. Check the option: Execute: Allow executing file as program.
5. Close and run it.

You would able be execute it without any errors this time with Wine.

Linux vs Windows: ISSUES?

February 11, 2011

ORIGINALLY POSTED ON MONDAY, 13 JULY 2009

 

From time to time since my relevance with computer knowledge; I been asked a question that Why is Linux preferred over Windows when it comes to main stream network management? I always used to give them crap that Windows GUI is so graphic intensive or Linux had this endless server management capabilities and so on. These points might hold somewhat little significance with the facts but still a scientific proof was needed; even to satisfy my own self inside.

Until a few days ago while carrying on the work on my dissertation (Mapping of User Quality-of-Experience to Application Perceived Performance for Web Applications). It involved capturing of network traces. In order for our time stamps to be very highly accurate; Our professor implemented that we should use the NTP (Network Time Protocol) in order to synchronize all the clocks of machines involved in our experiment. Hence the computers were synchronized to the pool servers available on the NTP.ORG.

At this point it would be useful to inform you that it was a client server setup; our servers were running Linux OS and Windows XP was running on the client. Now that we had synchronized all the clock on the computers with the help of NTP. To get the scientific proof; we compared how much synchronized the clocks were. Again the genius our professor is; he had this tool designed in Perl for comparison of the system clock to see how much they were synchronized with respect to the reference server (i.e. the NTP pool servers).

I would share some statistical results taken form that tool. In the following graph the comparison between the different computers are shown.

Blue and red lines represent a Linux system while the Green represents a Windows XP system. As visible the greenery is all over the place. This graph basically shows how they systems are synchronized with respect to the reference server. On the Y-Axis the deviation between the computers is given in seconds. While on X-Axis time probes are illustrated. Evidently from the graphs the Linux Systems are the most synchronized ones deviating less than a couple of milliseconds from the reference server. While there is a very strange behavior shown by the windows system.

At this point I remembered a news article that appeared online which reported “London Stock Exchange to abandon failed Windows platform.

Now next time when some one asks me why is Linux preferred over windows in main stream server management; at least I would not give them any crap 😀

DummyNet (KauNet) Delay Behavior

February 11, 2011

ORIGINALLY POSTED TUESDAY, 9 JUNE 2009

I had to encounter the DummyNet Network Shaper today for some experiments. I had heard it did had some trust issues but was surprised to see it was beyond the limit of trust. Just for an idea let me show you the readings I got for different delay settings. For the experiment I had to emulate the link between the client and the server that was connected to the internet. The delay was implemented on the downlink traffic only. Following was the behavior i caught. The X-Axis is displaying the number of web pages and the Y-Axis is displaying the take taken to load the page in seconds.

For a 250ms delay.

For a 500ms delay.

For a 50ms delay

For a 100ms delay.

For a 0ms delay.

Dual Monitors in Linux with NVIDIA (kubuntu, ubuntu)

February 11, 2011

ORIGINAL POSTED ON MONDAY, 8 JUNE 2009

Making dual monitors to worik with Linux was what I dealt with today. I was even bribed with a golden star by my professor; if i found a solution to it! And guess what; I go it !!

So the solution to it is! …
Make sure you are root mode.

First make sure that the driver is propely installed. Run the command in terminal

$ sudo apt-get install nvidia-glx

Now comming to the configuration; type in the terminal

$ kdesu nvidia-settings

or if kdesu is not supported replace it by “gksudo

$ gksudo nvidia-settings

This will make the Nvidia X Server Configuration Module load. From there goto

X Server Display Configuration

There select option TwinView in the Configuration Tag.

Click Apply. And you are done!

Don’t forget to click “Save to X Configuration File“.

Hope it will work for you as well!


%d bloggers like this: