Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Tuesday, January 12, 2016

Check Open MPI Version

Sometime it is a bit confusing to check the version of the Open MPI installed in your system. You can easily do it by running the following command.

ompi_info 



Then it returns a list of information and your Open MPI version information will be shown on first or second line.


Saturday, December 5, 2015

Windows + Ubuntu dual boot : boot loader problem

After trying to uncover my newly installed ubuntu as dual boot with a previous windows installation without much success I finally came to this easy and simple solution.
With boot-repair ou can quickly restore your newly installed linux os by typing the following commands...:
  1. Boot from your live CD/ Bootable USB and choose the option try ubuntu.
  2. CTRL + ALT+ T to open a new terminal
  3. $ sudo add-apt-repository ppa:yannubuntu/boot-repair
  4. $ sudo apt-get update
  5. $ sudo apt-get install boot-repair
  6. Run boot-repair from your system or just type boot-repair from your terminal
  7. On start select  Recommended Repair , then follow up ...
  8.  Soon on restart you will be presented with your grub menu...
  9.  That is all
Enjoy it !

Wednesday, October 21, 2015

How to change drive in cygwin ?

You have installed Cygwin in your windows OS. now you want to access other drives like "E:" from your terminal. How to achieve this ?
Use CYGDRIVE   as follows:
>  cd  /cygdrive/e/.

Install a new package after Cygwin installation

Have you installed Cygwin and  looking for how to install extra packages without using the setup again ? Then it is possible and apt-cyg is your friend :).
How ?
Yes in fact this package is similar to the apt-get you have in linux .
Just launch your cygwin terminal and fire the following command.

lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg
chmod +x apt-cyg
mv apt-cyg /usr/local/bin/
apt-cyg install bc

I found these commands very helpful and all prizes go to Knorv from stackexchange.
Then have fun !!!

Sunday, December 28, 2014

qt fatal error qdialog no such file or directory #include

In the process of compiling your cpp file in linux under QT 5 or more you may receive such  a weird fatal error message. If you are wondering where and how to start solving it here is the solution for you. Just go to your projectFile.pro and add the following on the top (before headers):
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

Special credit goes to AB Bolim stackoverflow

Hope you enjoy it

Rename a file in linux

So you have forgotten or are just a newbee looking for how to rename a file in linux, these two tricks are for you:
  1.  Using mv command: yourdir$ mv oldname newname
  2. Using copy and delete: 
  • copy old file to new file with cp command: yourdir$ cp oldname newname
  • delete old file with rm command: yourdir$ rm odname