2015-09-19

Sales Engineers, Solution Architects, Technologists, ...

Short version

Please join a LinkedIn group for Sales Engineers: https://www.linkedin.com/grp/home?gid=8403310

Long version

We are being called Pre-Sales, Sales Engineers, Solution Architects, Technical Sales, Technologists, Evangelists and so on. Many names for one of the most important assets of any product company.

We learn how your products are being made, we learn how to use your products, we learn what problems they solve solve.

We know your customers, we know their needs, we know how to position the product against your competitor.

We study new technologies, we learn new methods, we develop solutions to problems you didn't know even existed.

Sales Engineering is one of the most difficult jobs in the world.

There's a group for all of us. Independent of our customers, not controlled by our employers. Non-profit, advertisement free. 

Sales Engineering Wordwide



2015-09-15

Color coding your shell prompt

Someone asked me how to get colors into your bash shell prompt. Easy!

Add this your ".bashrc". Additionally I've added a text variable which could be used to show for example "OpenStack", "KVM" or similar to identify on which datacenter you are operating on.



# User specific aliases and functions
datacenter="[Red Hat]"
export PS1='\[\e[1;32m\]\u@\h:\w\e[1;31m${datacenter}\e[1;32m$\[\e[m\] '

Test by running: "source .bashrc"

The color codes are highlighted. Some example colors:
Black 0;30
Red 0;31
Green 0;32
Brown 0;33
Blue 0;34
Purple 0;35
Dark cyan 1;36

(0=bright, 1=dark color)

Your terminal should look something like this now:


2015-08-12

Nested KVM virtualization with RHEV

If you want to run Red Hat Enterprise Virtualization (RHEV) or it's community version oVirt on your laptop for demonstration or learning purposes you need to enable nested virtualization for KVM. By default you'll get an error about unsupported CPU type.

I have Fedora running on my laptop and have two virtual machines running on virt-manager named "rhevm" and "rhevh". 

On the physical host, in my case Fedora enable nesting: 

# nano /etc/modprobe.d/kvm-nested.conf
Add this line to the file (file might not exist by default): options kvm_intel nested=1

Reload the KVM kernel module:

# modprobe kvm_intel
# modprobe -r kvm_intel

Then edit the "rhevh" virtual machine to use host-passthrough mode:

# virsh edit rhevh

Change from < cpu mode='custom' match='exact' > to < cpu mode='host-passthrough' >

You are now ready to start your virtual machines and play with RHEV, with nested virtualization.

Please note that this is not recommended or supported for production environments.

2015-04-02

All in one cloud

Cloud in a box

I'm running Fedora on my laptop with 8GB of RAM. I recently swapped the original HDD to a SSD disk to see if the performance could be improved. Before the swap I had tested running OpenStack on the laptop but it was rather slow once I deployed more than one instance.

The SSD disk seemed to be performing quite well on normal desktop use, so I wanted to see what happens if I start to give some load on it.

I installed RHEL7 on a virtual machine with Virtual Machine Manager, and then installed Red Hat Enterprise Linux OpenStack Platform - or RHEL OSP - on it. So far so good.

Next step was to deploy Red Hat CloudForms - a hybrid cloud orchestrator - on a VM, this time on RHEL 6.6. That went well also.

Finally I connected CloudForms to the OpenStack controller via API, and started to deploy some virtual instances on my tiny cloud. Still after deploying 6 pieces of a small CirrOS instances, my laptop had enough CPU cycles and memory to run the normal desktop operations.

So, if you fancy of having a small cloud in a box for demonstration or learning purposes it's possible. Just ensure you have fast enough SSD disk and plenty of RAM available.





2015-01-03

Setup a PHP development environment on Fedora 21

So you've installed Fedora 21 and are struggling on getting PHP to work? Done that been there...

These step-by-step instructions will help you setup the environment in a way you can easily develop and test an application with PHP and MariaDB on your workstation.

Let's assume we want to use the following directory as the root directory for our project:
 /home/twillber/www/project1

Directory permissions

Ensure that everyone - or at least Apache -has permissions to access that directory. Do the same for all directories in it's path.
 chmod a+rx /home/twillber/www/project1

Since we are operating in your home directory SELinux should have no issues with this. If you decide to go outside of your own home directory you'll probably need to set the correct context to the www directory.

Install packages

First we'll install the required packages for PHP and MariaDB (replacement of MySQL).

 yum install httpd php mariadb-server php-pear-MDB2-Driver-mysqli
 systemctl enable httpd

 systemctl enable mariadb
 systemctl start mariadb

Apache configuration

 Create file /etc/httpd/conf.d/mylocal.conf with the following content:

 < Directory "/securehome/twillber/www">
  DirectoryIndex index.php index.html
  Options +Indexes +FollowSymLinks +MultiViews
  Require all granted
 < /Directory>
 Alias /project1 /home/twillber/www/project1/
 Alias /project2 /home/twillber/www/project2/


Ready to go

At this point you probably want to create some kind of index.php into your working directory. Maybe even use mysqli API to connect to MariaDB, write some HTML and CSS and make the next killer app!

But first, restart Apache:
 systemctl restart httpd

Then use your favorite browser and see the magic:

 http://localhost/project1

2015-01-01

Threw away my Mac Mini

Some time around 5 years ago I replaced my last Windows desktop computer with Apple's Mac Mini and XBox 360 since I had used the Windows only to play games.

I've been using Linux at work since 1997 and as a second computer at home as well, but the Mac was my primary workstation at home for past five years.

Mac Mini is a great computer and OS X provides exceptionally good user experience. Towards end of the year 2014 I decided to find an alternative and more open solution. The problem was to find suitable hardware.

Intel to the rescue  

After somewhat random online investigation I decided to try my luck with Intel NUC, Next Unit of Computing. Now I've got this beautiful small box full of state-of-the-art hardware, model D34010WYKH.

My NUC came with Intel i3 4010U CPU running at 1.7GHz and I installed 8GB of RAM and a 512GB SSD disk, which were not included in the package.

This model of NUC comes with one Mini Display Port and one Mini HDMI connector, works well for me since I use a 50" TV as second screen to watch movies.


Mac Mini was small and very quiet, but with SSD disk the NUC is completely silent and even smaller than the Apple box. Stacked NUC with Raspberry Pi to give you an idea of the size.

The total cost of the hardware was approximately 500 EUR here in Finland. Cheapest NUCs start from 113 USD on Amazon with entry level CPU and without RAM nor disks.

So hardware was found, what should I run on it?

Linux to the rescue

Since I work for Red Hat it shouldn't be too hard to guess I favor running Fedora at home.

Everything I need from my home workstation works today on Linux; web browsing, video streaming services, photo editing, office suite and games.

I'll write more about the applications I use on the next blog post.

Stay tuned!