Thursday, June 26, 2014



"There is no security on this earth; there is only opportunity." Are you often engage in million dollars deal, if your answer is yes then Beware eavesdropping attackers and opportunistic are sniffing your call! The Prism surveillance scandal has shown that the NSA and other agencies can tap into most communication channels.


In such a case, security is paramount and for that, RedPhone an open source app Licensed under the GPLv3: http://www.gnu.org/licenses/gpl-3.0.html

Wednesday, June 25, 2014

I am not sure whether the features is available for all version of virtual box, so first confirm that the version of virtual box you have.Mine version is 4.3.6 and features is already available, and following steps will guide you to share file between host to guest and vice-verse.

1. Open "Oracle VM Virtual Box" manager and click on "Shared Folders" link where you can adds a new shared folder definition.Following figure will help you to visualize this.




2. In Add Share form you can mention the "Folder Path" i.e the location you want to share, "Folder Name" which is a name used to identify from guest side. Also do not forget to check "Auto Mount" and "Make Permanent" option otherwise you need to do this manually later from command line.



That's it now you can start the Virtual Machine, if it is already started you have to reboot it to make the mount volume available in system. The shared folder appears on your guest machine as:

/media/sf_folder_name

For example:

/media/sf_ProjectsWindows

Oh yes, there is one more step add any user in your guest system that needs access to the folder to the group vboxsf.

Tuesday, June 24, 2014

I was installing MySQL-python in Ubuntu, for this I downloaded package file from MySQLdb Download page and proceed as follows:

$ gunzip MySQL-python-1.2.2.tar.gz
$ tar -xvf MySQL-python-1.2.2.tar
$ cd MySQL-python-1.2.2
$ python setup.py build
$ python setup.py install

Note: Make sure you have root privilege to install above module.

When I reached the steps 4 in above process i.e "python setup.py build" I received the following error messages.

sh: 1: mysql_config: not found
Traceback (most recent call last):
  File "setup.py", line 18, in 
    metadata, options = get_config()
  File "/home/user/Downloads/MySQL-python-1.2.4b4/setup_posix.py", line 43, in get_config
    libs = mysql_config("libs_r")
  File "/home/user/Downloads/MySQL-python-1.2.4b4/setup_posix.py", line 25, in mysql_config
    raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found

Seems like something is missing in my OS.

As we know MySQLdb is simply a python interface for mysql, but it is not mysql itself and MySQLdb setup process apparently using mysql_config, so you need to install that first, but first confirm whether mysql_config added in system path or not. If it was not added you can do it as follows.

export PATH=$PATH:/usr/local/mysql/bin/

If you do not want add mysql in path, just run something like this to make mysql_config available:

ln -s /usr/local/mysql/bin/mysql_config /usr/bin/mysql_config

Since this is the path that python will search by default. If mysql_config is not already installed you can do it as follows:

apt-get install libmysqlclient-dev


Categories

.
Powered by Blogger.

Popular Posts

Like Us