Posts

Showing posts with the label Linux

Using Ansible to automate Cisco ACI in Windows

Image
Some instructions on how to get started with using the ansible to automate Cisco ACI specifically by using ansible playbooks to accomplish basic tasks. Using the Cisco ACI GUI can be time-consuming and error prone, a more efficient could be to automate the process using ansible playbooks. Ansible is essentially an automation tool that uses playbooks consisting of Yaml files to automate the process of network configuration via connection to the APIC REST interface and push the config API commands. Really useful link for how to get your Windows environment set up for using ansible, including Cygwin and Linux virtual machines: https://phoenixnap.com/kb/install-ansible-on-windows#htoc-method-1-using-cygwin I have found the Cygwin approach to work perfectly fine for running ansible. In fact, I recommend Cygwin as the way to go in running ansible in your Windows environment, given that all my attempts to install via 'pip install' commands failed. The number of Stack...

Getting started with Mono in Linux

Image
Some instructions on how to get started with using Mono in Linux environments: from installation to running your first "Hello World!" example. Open up your terminal and issue the following commands: [code language="text"] sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF [/code] [code language="text"] echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list [/code] [code language="text"] sudo apt-get update [/code] [code language="text"] sudo apt-get install Mono-Complete [/code] Check that your Mono has installed by using the 'version' command: [code language="text"] mono --version [/code] We can now test our installation of Mono by writing some code, in this case the proverbial "Hello World!" example. Open a text editor of your choice and enter ...

Configuring NetBeans to use OpenCV in Linux Environments

Image
A quick guide to setting up and installing OpenCV for using in the Netbeans integrated development environment in Linux. Step 1: Download and extract OpenCV for Linux Versions of OpenCV can be downloaded from here: http://opencv.org/downloads.html Save it to the location of your choice. Open a command prompt, navigate to the download location and unzip:

How to configure FLTK in NetBeans in Linux

Image
Some instructions and screenshots to help you get up and running using the Fast Light Toolkit (FLTK) within the NetBeans development environment in Linux. For configuring FLTK in Visual Studio environments please refer to this post . Go to the FLTK website and download the latest source: http://www.fltk.org

Fixing compiler problems when using smart pointers in NetBeans

Image
I like using NetBeans for C++ development within Linux environments. Sometimes a gotcha can occur when trying to use the following declaration: [code language="cpp"]#include <memory>[/code] You may wish use this in order to utilize smart pointers such as std::unique_ptr , leaving the user with a compilation error such as this: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type It's easy enough to overcome. Just make sure the appropriate compiler flag is set in NetBeans. In NetBeans right-click your project and select Properties. Then select Additional Options field in Build > C++ Compiler:

When the NetBeans IDE cannot start a new project

Image
Some hints and tips on how to overcome an annoying little gotcha that causes the Linux-based NetBeans IDE to freeze when trying to create a new project: Instead of presenting the user with the options for creating a new project as shown in the screenshot below, the screen remains stuck with the egg timer, and does not allow the user to proceed:

Getting Started with OpenGL in Linux

Image
A brief and hopefully to the point on getting up and running with OpenGL in an Ubuntu Linux environment. For setting up OpenGL in Windows / Visual Studio environments, please see this post . My choice of integrated development environment for C++ development for this example is Netbeans 7.3.

Getting started with the Boost libraries in Cygwin

Image
This post assumes that the boost libraries have been downloaded and extracted to the directory of your choice. See this previous posting for more details on how to download and extract the Boost libraries. Open Cygwin and cd to the location where your Boost libraries have been installed. For Windows directories with white spaces please enclose it in quotes, eg: $ cd "C:\Program Files\boost_1_46_1" Check to see that the boost/ folder lives at this location using $ ls : If so, run the bootstrap: $ ./bootstrap.sh –prefix=boost/ Then run the bjam executable (takes a while) $ ./bjam And run bjam installer (takes a very long while): $ ./bjam install After this has completed you will find that within the boost/ folder, three other folders have been created, namely bin , include and lib . Recursively copy these 3 folders to the /usr/local/ destination: $ cp -r boost/bin /usr/local/ $ cp -r boost/include /usr/local/ $ cp -r boost/lib /usr/local/ ...

Getting started with the Boost libraries in Ubuntu Linux

1. Install the Boost libraries from the command line First try the following $ sudo apt-get install libboost* You may get an error message similar to the following, like I did:

Getting started with Qt in Ubuntu Linux

Image
A quick recipe on how to get started with Qt in Ubuntu Linux using a simple example program. 1. Obtain QT4 Run these from the command line: [code language="text"] $ sudo apt-get update $ sudo apt-get install libqt4-dev qt4-qmake cmake r-base-dev libcurl4-gnutls-dev [/code]

Problems Accessing Linux Folders and Servers from Windows

Image
A short posting on dealing with accessing shared directories from remote Windows machines. When trying to access a shared folder stored on a Linux server from (say) a remote Windows XP machine you may have come across the following error message in much the same way as I did:

How to Set up a Subversion (SVN) Server in Linux

Image
This guide details the steps taken to create a proper SVN server, as opposed to using a not-recommended network share , as means of creating and accessing repositories.

Linux Snippets

Some assorted odds and ends in no particular order to save me re-Googling this kind of stuff... Itentify if you are 32-bit or 64-bit $ uname -a Convert png into jpg $ convert file.png file.jpg To open KDE Advanced Text Editor (kate) with root priviliges: $ kdesu kate ... and enter root password when prompted.