Ubuntu- How to add a path to your path list in terminal (.bashrc file)

Suppose you would like to have access to a particular path from within terminal. For example, if you have your executables in a folder called ~/my_program/bin you may want to have access to the executables from everywhere within terminal. One way to achieve this is to add that particular path to your path list in the “.bashrc” file. So, how to do that?

First launch a file browser and go to your home folder. You need then to edit the “.bashrc” file which is a hidden file in your home folder. You would therefore first need to make Ubuntu show your hidden files. In the menu bar on the top of the file browser window, select “View/Show Hidden Files” and check the mark . Here is a graphic for your reference:

View_hidden_ files

Then find the file “.bashrc” file and open it with the text editor. You would then need to append a line or two to the file. For example, if you would like to add the path~/my_program/bin, you would need to add the following line to the file:


Ubuntu- Geany: a good C++ IDE for Ubuntu (Linux)

In case you have been looking for a good C++ IDE for Linux, I have a very good suggestion:


Here is the description of Geany from its official website (http://www.geany.org/):

Geany is a text editor using the GTK2 toolkit with basic features of an integrated development environment. It was developed to provide a small and fast IDE, which has only a few dependencies from other packages. It supports many filetypes and has some nice features.

Some basic features of Geany:

* Syntax highlighting
* Code folding
* Symbol name auto-completion
* Construct completion/snippets
* Auto-closing of XML and HTML tags
* Call tips
* Many supported filetypes including C, Java, PHP, HTML, Python, Perl, Pascal (full list)
* Symbol lists
* Code navigation
* Build system to compile and execute your code
* Simple project management
* Plugin interface (see Plugins)

To install Geany in Ubuntu just issue the following command in a terminal:

sudo apt-get install geany

Geany also works under Windows and the Windows binaries can be downloaded from the Geany webiste as well.

Ubuntu- get rid of blank screen in MATLAB installed within Ubuntu

There is sometimes a problem with the MATLAB in Ubuntu. The problem is that after installing MATLAB, you might get just a blank screen (blank GUI window) without any option menu, command line, etc. To solve this problem, find the file “environment” (the path is: /etc/environment). Add the following line to the file and try again:

export AWT_TOOLKIT=”MToolkit”

The problem should have been solved. If not, try restarting your computer.


Get every new post delivered to your Inbox.