Wednesday, July 9, 2014

HOW TO INSTALL VMWARE WORKSTATION 10 ON UBUNTU 12.04 LTS

1) Open Terminal  and cd to the installation directory (ie. cd Downloads/vmware)
2) You need to add execution rights to the bundle for version for my particular version of Vmware Workstation 8 it is following:
chmod +x VMware-Workstation-Full-8.0.1-528992.x86_64.bundle
3) Then you need to run the installer and follow the installation steps:
sudo ./VMware-Workstation-Full-8.0.1-528992.x86_64.bundle
4) run following:
sudo apt-get install build-essential
5) finish the VMware installation:
sudo vmware-modconfig --console --install-all
6) profit! :)
Note:
if step 5 fails with “Failed to setup build environment.” you need to install correctlinux headers:
apt-cache search linux-headers-$(uname -r)
and
apt-get install linux-headers-$(uname -r)

Internet Download Manager(IDM) For Ubuntu

Features :

  • Download files at maximum possible speed. ( 5-6 times faster )
  • Sophisticated dynamic file segmentation algorithm,data compression & connection reuse.
  • Download FLV,MP4,HTML5 videos from YouTube, MySpaceTV, Google Video or Any Other site
  • Capture download from any browser (Firefox,Chrome,Internet Explorer,Opera,Safari or any other program trying to download a file from Internet)
  • Supports HTTP,HTTPS,FTP protocols with Authentication,Proxy Servers, Cookies, Redirection etc.
  • Resumes broken/dead downloads caused by connection problem,power failure or session expiration
  • Built in YouTube downloader, HTTP Traffic monitor, Batch downloader.
  • Can be configured to perform Automatic Antivirus checking, System shutdown on download completion
  • Highly portable. Runs on any O.S with Java SE 6. No need for installation.
Installation of xdman on Ubuntu (12.04/12.10/13.04)

Step:1 First Download xdman zip file using below command
# sudo  wget http://kent.dl.sourceforge.net/project/xdman/xdman.zip
 
Step:2 Extract xdman:
# sudo unzip xdman.zip

Step:3 Set the excute permissions
#  sudo chmod o+x xdman.sh

Step:4  Now Install xdman using below command
# sudo sh xdman.sh


Step:4 Now Open your Browser , type “ http://localhost:9614/xdmff.xpi

Click on Install Now

Step:5 Now Try to download any sample video from youtube. Just copy the URL and paste it in xdman , as shown below.

Also make sure xdman service is up and running , if you want to download any vidoes using xdman , use step 4 to start the service.

Monday, July 7, 2014

Setting up a local 3 node Cassandra cluster on single machine

When trying to create a Cassandra cluster for a small test scenario i came across the fact that it is not possible to create a cluster in a single machine by changing ports. Since i didn't want to set it up on several machines did some digging and with some help found a workaround for this.

The workaround is to add virtual Ethernet devices to our machine and use these to configure the cluster. So first we need to create 3 ip aliases for our machine, you can use the following command to get this done. This is for a Linux machine check out the stack overflow thread to check how its done on windows here


ifconfig eth0:1 192.168.0.2
ifconfig eth0:2 192.168.0.3
ifconfig eth0:3 192.168.0.4
you can check if the aliases are created by executing 'ifconfig'.

once you have this setup all you have to do is configure the Cassandra configurations. You need to change the values of the following entries cassandra.yaml file as follows

Node 1:
- seeds: "192.168.0.2"
listen_address: 192.168.0.2
rpc_address: 192.168.0.2

Node 2:
- seeds: "192.168.0.2"
listen_address: 192.168.0.3
rpc_address: 192.168.0.3
Node 3:
- seeds: "192.168.0.2"
listen_address: 192.168.0.4
rpc_address: 192.168.0.4
once you have these configs setup all you have to do is start the Cassandra server. And it will form a 3 node cluster in a ring formation.

MS SQL Database Server install

Installing Prerequisite

Please note that you must have administrative rights on the computer to install the SQL Server. Before downloading and installing the SQL Server make sure and verify that the following software is installed on your computer:


  • Windows Installer 3.1
  • Microsoft .NET Framework 2.0
Download Windows Installer 3.1 using the following download page: http://www.microsoft.com/downloads/details.aspx?FamilyID=889482fc-5f56-4a38-b838-de776fd4138c and install it using provided instruction there. Reboot your computer if needed after installation.

Windows Installer 3.1 is already included in Windows 2003 SP1 and higher so there are no needs to download and install it on the latest versions of Microsoft Windows.

There are 2 versions of Microsoft .NET Framework 2.0 available, for 32-bit and 64-bit platform. Please use the links below for your system:
Install the framework using instructions provided on the download page.


Microsoft SQL Server 2005 Express SP4

Microsoft SQL Server 2008 Express SP3

Microsoft SQL Server 2012 Express

Run the installation package and it will install the modules and packages that are required by the SQL Server setup.


Installing software components required by Microsoft SQL Server 2005/2008/2012 Express Edition

Installing software components required by Microsoft SQL Server 2005/2008/2012 Express Edition


Then the SQL Server setup will start.

Welcome page of the setup wizard of Microsoft SQL Server 2005/2008/2012 Express Edition

Welcome page of the setup wizard of Microsoft SQL Server 2005/2008/2012 Express Edition


The wizard checks your system configuration and verifies installed and required components.

On the Registration Information you can uncheck the "Hide advanced configuration options" check box in order to specify an instance name of the SQL server.

Configure to show advanced options for the SQL server

Configure to show advanced options for the SQL server


Otherwise the SQL server will be installed with "SQLExpress" named instance and you must remember that and use this instance name in the Setup Wizard of Bopup Communication Server.
Click Next to forward the setup to the next page with a selection of features that will be installed.

Select features of the SQL server to install

Select features of the SQL server to install


If you would like to use the SQL Server to host only Bopup Communication Server database with no any other purposes you should deselect all the features in the tree except the "Data Files" and "Shared Tools" subfeatures under the "Database Services" feature.

Click Next button to proceed to the selection of Authentication Mode that will be enabled on the SQL server. The Authenticatiom Mode tells the SQL server how to accepts connections and which credentials to use in order to authorize those connections, and you can select the "Windows Authentication Mode" or the "Mixed Mode".

The "Windows Authentication Mode" tells the SQL server to use current Windows user's credentials under which the connection is made. This is most secure and simple method to handle connections and authorize users on a Windows Domain architecture within Active Directory (LDAP) catalog. Otherwise you can choose the "Mixed Mode" to allow the server to authorize users using both Windows Authentication scheme and SQL Server Authentication which enables for the SQL server to have it's own user accounts.

Choose the Authentication Mode for Microsoft SQL Server 2005/2008/2012

Choose the Authentication Mode for Microsoft SQL Server 2005/2008/2012


Please note that you should remember which authentication mode you select because you will be asked by the Setup Wizard of Bopup Communication Server (when you will be installing it) on which authentication is used on your database server.

Click Next to skip next few dialogs of the wizard with its default settings and to go to the Ready to Install page. Click Install button to start installation process of the SQL Server.

Selected features and configuration of the SQL server are being installed

Selected features and configuration of the SQL server are being installed


You need to configure a little the SQL Server after it's installation will complete. You should enable TCP/IP protocol for it, start the SQL Server Browser service and add the SQL service to Windows Firewall exceptions list.

Start the SQL Server Configuration Manager from the "Start -> Programs -> Microsoft SQL Server" menu. Then open the "SQL Server Network Configuration" and select the "Protocols" in the left tree. You must enable TCP/IP protocol and then start the SQL Server Browser service to allow connections from Bopup Communication Server to the SQL server and also to support remote connections to the database if you will install the Management Console of the communication server to administrate the IM server remotely. Select and right-click on the TCP/IP protocol in the list and select "Enable" item from the popup menu.

To start the SQL Server Browser service click the "SQL Server Services" in the left tree and double-click on SQL Server Browser, the Properties window will show up. Move to Service tab and change Start Mode to Automatic. Therefore, the service will be start automatically when the computer starts. Click OK to apply changes. Back to SQL Server Configuration Manager, right-click on SQL Server Browser on the right window and select "Start" to start the service.

Then restart the Microsoft SQL Server service from the console or reboot computer to apply changes.

Enable TCP/IP protocol on the SQL server

Enable TCP/IP protocol on the SQL server


If you have Windows Firewall running on your server computer you should add the Microsoft SQL Server service to firewall's exceptions list to allow to accept remote connections. Go to Windows Firewall settings by opening "Control Panel" and clicking on "Windows Firewall" shortcut there. In the opening dialog box switch to Exceptions tab and then click the Add program... button. Navigate to "\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\" folder and select "sqlservr.exe" file. Click Open and then OK to add the SQL service to the exceptions list.