preload
Feb 26

OpenLink Virtuoso is the first CROSS PLATFORM Universal Server to implement Web, File, and Database server functionality alongside Native XML Storage, and Universal Data Access Middleware, as a single server solution. OpenLink Virtuoso plays a vital role for semantic web programming, it can work as a solid SPARQL end point, which can be supported by almost all endpoint interfaces. There are following steps to install and start OpenLink Virtuoso universal server-

1. Install Dependencies

To install OpenLink Virtuoso first of all following dependencies are needed-

Package Version From
autoconf 2.57 http://www.gnu.org/software/autoconf/
automake 1.9 http://www.gnu.org/software/automake/
libtool 1.5.16 http://www.gnu.org/software/libtool/
flex 2.5.33 http://www.gnu.org/software/non-gnu/flex/
bison 2.3 http://www.gnu.org/software/bison/
gperf 2.7.2 http://www.gnu.org/software/gperf/
gawk 3.1.1 http://www.gnu.org/software/gawk/
m4 1.4.1 http://www.gnu.org/software/m4/
make 3.79.1 http://www.gnu.org/software/make/
OpenSSL 0.9.7i http://www.openssl.org/

First of all check all the dependencies whether installed or not. (Version is important!)

To check the version use following sequence.

#autoconf –version

# automake –version

#libtoolize –version

#flex –version

#bison –version

#gperf –version

#gawk –version

#m4 –version

#make –version

#openssl version

During checking of the dependencies you will know whether they are installed or not and if not installed, for example,  you will get  something like-

The program ‘autoconf’ is currently not installed.  You can install it by typing:

apt-get install autoconf

Then why should you wait!! install the packages using “apt-get” one by one in the sequence as checking the version.

OR
you can install these from synaptic package manager.

2. run this command  apt-get install libssl-dev from your terminal
3. Download OpenLink Virtuoso from source forge (Link)
4. Extract the package in any directory.
5. Go to the directory where you have extracted the package.
6. It is better to run autogen.sh by typing ./autogen.sh, which checks for the presence and right version of some of the required components, and if it reports any missing package then install that package.
7. Set following  environmental variable by typing (one by one) -
CFLAGS=”-O2″
export CFLAGS
8. type  `./configure’ to configure the package for your system.
9. Type `make’ to compile the package.
10. Type `make install’ to install the programs and any data files and documentation.

To start the server you have two steps-
1. Go to ‘cd  /usr/local/virtuoso-opensource/var/lib/virtuoso/db’
2. then type ‘/usr/local/virtuoso-opensource/bin/virtuoso-t -f &’
Finally use the server from your browser by typing ‘http://localhost:8890/’ in the address bar.
Use the powerful multipurpose opensource server !!
Note:- All documentations are available at Wiki Page of  OpenLink Virtuoso.
To grant the SPARQL to update and insert data into a graph-
1. Go to “http://localhost:8890/conductor” and login as “dba” (Uname and Pass =” dba”)
2. Click on “Interactive SQL (ISQL)”.
3. In ISQL window type the commad

GRANT ALL PRIVILEGES TO "SPARQL";

Feb 14

If you are a python programmer and keen to use python in windows environment with the most popular Stani’s Python Editor IDE then follow the given below steps-

  1. Download and install Python 2.6 from Here (http://www.python.org/download/). for your appropriate windows (32 or 64 bit)
  2. Download & Install wxPython (NOT wxWidgets) from Here. (http://www.wxpython.org/download.php)
  3. Download & Install SPE from Here(http://developer.berlios.de/project/showfiles.php?group_id=4161). Get this file: “SPE-0.8.4.c-wx2.6.1.0-no_setup.zip”.
  4. Unzip it to somewhere you will remember, but don’t rename the folder anything other than “_spe”.
  5. Go inside the _spe directory and double click SPE.py.
  6. At this point your  new SPE Python IDE should start up. Enjoy Python….

Note: you will have to set the environmental veritable in windows for python. For Xp user,

Right click on MyComputer=>Properties=>Advanced=>Environmental Variable

and then select “Path” and click edit, add the python directory (c:\Python26)

followed by a semi colon at the end of the variable Value.(eg- xxxxxx;C:\Python26)

Jan 20

Ubuntu 9.10 [code name : karmic koala ] has lot of bugs comparing previous releases and some of features have been removed in 9.10 version such as Login Screen GDM Manager . Hope Ubuntu community will fix everything soon in coming releases. Wireless connection is also not working in latest broadcom wifi hardware . Due to license problem Ubuntu does not include the broadcom wifi driver by default . User has to update manually using Ethernet internet connection after that they can activate driver in System -> Administration -> Hardware Drivers option. But the problem of this method is internet connection . What the user supposed to do if they do not have Ethernet internet connection. The solution is installing driver from source. Broadcom company providing wifi drivers for Linux . Steps are given here for how to do enable wifi driver using this method

  • Download the latest driver from Broadcom website

http://www.broadcom.com/support/802.11/linux_sta.php

These packages contain Broadcom's IEEE 802.11a/b/g/n hybrid Linux® device driver for use with Broadcom's BCM4311-,                      BCM4312-, BCM4321-, and BCM4322-based hardware.

  • Setup the directory by untarring the proper tarball:
For 32 bit: hybrid-portsrc.tar.gz
For 64 bit: hybrid-portsrc-x86_64.tar.gz
# mkdir hybrid_wl
# cd hybrid_wl
# tar xzf <path>/hybrid-portsrc.tar or <path>/hybrid-portsrc-x86_64.tar.gz
  • Build the driver as a Linux loadable kernel module (LKM):
# make clean   (optional)
# make
When the build completes, it will produce a wl.ko file in the top level directory.
  • Remove any other drivers for the Broadcom wireless.
There are several open source drivers that are used to drive Broadcom 802.11 chips such as b43 and ssb. If any of these are present they need to be removed before this driver can be installed.  Any previous revisions of the wl driver also need to be removed.
# lsmod  | grep "b43\|ssb\|wl"
If any of these are installed, remove them:
# rmmod b43
# rmmod ssb
# rmmod wl
To blacklist these drivers and prevent them from loading in the future:
# echo "blacklist ssb" >> /etc/modprobe.d/blacklist.conf
# echo "blacklist b43" >> /etc/modprobe.d/blacklist.conf
  • Insmod the driver.
If you were already running a previous version of wl, you'll want to provide a clean transition from the older driver. (The path to previous driver is usually /lib/modules/<kernel-  version>/kernel/net/wireless)
# rmmod wl
# mv <path-to-prev-driver>/wl.ko <path-to-prev-driver>/wl.ko.orig
# cp wl.ko <path-to-prev-driver>/wl.ko
# depmod
# modprobe wl
Otherwise, if you have not previously installed a wl driver do this:
# modprobe lib80211
# insmod wl.ko
wl.ko is now operational.  It may take several seconds for the Network Manager to notice a new network driver has been installed and show the surrounding wireless networks.
Finally add these lines into /etc/profile file
#vim /etc/profile
rmmod ssb
modprobe lib80211
insmod <path-to-wl.ko-file >/wl.ko

Reference : Broadcom Website

Tagged with: