Thursday, February 21, 2008

Google Desktop on Linux

Google is providing desktop search via Goolge Desktop. Its very easy to install on Linux machine.

Download rpm from here

Run the rpm as:

$rpm -ivh google-desktop-linux-current.rpm



After installing it will take some time for indexing the local hard disk.

Monday, February 11, 2008

Editing a file on Nano Editor

Open the file with write mode

$ nano -w file_name

Modify the file
Press Ctrl+O, ENTER and Ctrl+X to Save and Exit the editor

Tuesday, February 5, 2008

Installation of CVS Server

Most of the latest Linux distro comes with cvs installed.
Only you have to make some adjustment to make it running.

Check in your machine by typing:
$which cvs

If it returns some path then its there so please skip first two steps.

1. Take the rpm version of cvs server from
http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/

2. run the command as su
( I stored downloaded rpm at /home/sanjay/)
$rpm -ivh /home/sanjay/cvs-1.11.x-x.i386.rpm

It will install cvs at /usr/bin

Alternatively cvs can be installed via yum
$ yum install cvs

3. Create cvsroot directory

$mkdir /home/sanjay/projects

4. Set environment variable CVSROOT in root's .bash_profile
$ vi .bash_profile
(in .bash_profile file add lines)
CVSROOT=/home/sanjay/projects
export CVSROOT

(After saving & exiting the file run the command
$ source .bash_profile (to make the changes permanent)

5. Initialize CVSROOT
$ cvs -d /home/sanjay/projects init

It will create one directory named CVSROOT inside /home/sanjay/projects

6. Edit /etc/xinetd.conf file

Add following entry at the last:

service cvspserver
{
socket_type = stream
protocol = tcp
wait = no
user = root
env = HOME=/home/sanjay/projects
server = /usr/bin/cvs
server_args = --allow-root=/home/sanjay/projects pserver
disable = no

}


7. restart xinetd server

$ service xinetd restart


8. Add one user/group cvs, who owns the /home/sanjay/projects directory

$ adduser cvs

9. Give ownership of /home/sanjay/projects directory to this cvs user

chown cvs:cvs /home/sanjay/projects/

10. Give right permissions to the directory
$ chmod -R 2775 /home/sanjay/projects/

11. Add exiting user to the cvs group so they can access the repository

$ usermod -G cvs vivek

(assuming vivek user is already there)

12. Adding module to repository

Create folder say moodle inside /home/sanjay/projects/
and put all the projects file there

Like :
$mkdir /home/sanjay/projects/moodle

14. moodle will become the module inside repository that we can checkout and can checkin our files.

Friday, February 1, 2008

Solunas: The hotel management system

Solunas is a Hotel Booking Engine Software written in RoR.

There are 2 separate parts of the whole application.
a) Backend: Solunas server for the admin of the property.
Its features are:
Manage your Properties / Rooms,
Manage the very flexible price system - Minimum stay / weekday match / etc

b) Frontend:A component integrated on Joomla for the end users.
Its features are:
Show availability calendars
Cart function to add multiple bookings
Checkout

Installation( Applicable on Linux, tested on Fedora 7)
I am assuming your machine has MySQL, Apache, Ruby and Rails installed.

Download the solunas from sourceforge

Extract it some where like /home/sanjay

Create one blank database on mysql.

There is one sql file solunas.sql inside solunas/db folder, dump this file against the mysql database created for solunas.

Check your ruby version:

$ rails -v

Then change the environment.rb file (inside config folder)
RAILS_GEM_VERSION = '1.1.6'

Also change the database.yml file:
development:
adapter: mysql
database: solunas
username: db_user
password: db_pass
host: localhost

Start the webrick server.

$ cd /home/sanjay/solunas
$ ruby script/server

Point your browser at:
http://localhost:3000/
Login as user 'marc' and password 'isemann'
And start managing your hotel.
:)

Monday, January 7, 2008

Introducing CodeMunch

We have indroduced the web based application http://www.codemunch.com. CodeMunch is the innovative way to manage one's profile cum resume. In short CodeMunch is a resume builder. Our main targeted audiences are freshers from colleges of various streams, who struggle a lot to create their professional looking resume. In CodeMunch they can import their resume in different formats including PDF and doc.

Friday, December 21, 2007

Live to the present

Borrowed from the Charvak;

While life is yours live joyously;
No one can avoid Death's searching eye:
When this body of ours is burnt,
How can it ever return again?


Or the very popular saying of Charvak:

Jab tuk jiyo sukh se jiyo
Chahe udhaar le ke Ghee piyo

Tuesday, November 27, 2007

A quick note on how to install Alfresco

1. Install (if not already there) jre/jdk1.5x (no jdk-1.4x)

2. Set JAVA_HOME environment variable
In the .bash_profile file of root add these line at the last
JAVA_HOME=/Path_Of_Jdk1.5
export JAVA_HOME

3. Create a dir 'alfresco' in /opt

$cd /opt
$ mkdir alfresco

4. Download this file 'alfresco-community-tomcat-2.0.0.tar.gz' from
sourceforge
http://sourceforge.net/project/showfiles.php?group_id=143373

5. Untar the tar file at /opt/alfresco
$ cd /opt/alfresco
$tar -xzf /Path/alfresco-community-tomcat-2.0.0.tar.gz

6. Create one mysql database
$ cd alfresco/extras/databases/mysql
$ mysql -u root -p < db_setup.sql

7. Remove 3 files (default for HSQL) from here

$ cd /opt/alfresco/tomcat/shared/classes/alfresco/extension

custom-db-and-data-context.xml
custom-db-connection.properties
custom-hibernate-dialect.properties

8. Start the tomcat server and run the alfresco
$cd /opt/alfresco
$ alfresco.sh start


9. Point browser at
http://localhost:8080/alfresco

10. Stop alfresco
$cd /opt/alfresco
$ alfresco.sh stop

Thursday, October 25, 2007

NetBeans IDE on Linux

The NetBeans IDE is a free, open-source Integrated Development Environment for software developers.
The NetBeans IDE provides developers with all the tools they need to create professional
cross-platform desktop, enterprise, web and mobile applications.

To install NetBeans IDE on Linux (Steps given here are performed on FC7):

It needs Java SDK-1.5.x so first install Java SDK-1.5.x and the JAVA_HOME in the environment variable in the .bash_profile file

# Download NetBeans IDE from here.

Downloaded file be like this: netbeans-x_x_x-linux.bin

# Make the file executable

$ chmod +x netbeans-x_x_x-linux.bin
Run this file
$ ./netbeans-x_x_x-linux.bin

It will open the Launcher, accept the License and click Next.
Select the Java version you want to use with the IDE, specify the path where you want to install the NetBeans IDE.

It will install all the files in the selected folder to run the NetBeans IDE cd to the bin directory and run the command:

$ ./netbeans

Wednesday, October 17, 2007

Could not find default font "fixed" . X Server not starting

If you encountered this problem in your linux then most probably this is because of there is no enough space left in your hard disk

Login as root in the text mode and check the hard disk space:

$ df -h

If available space is very low then delete some unwanted files/folder and make more space.

Restart your machine.

Monday, October 15, 2007

Breakout game for Linux


Want to play your favorite BREAKOUT game on Linux box. Its open source clone version is available.

Download the sorce code from here .
Open the tar file and run the following commands in the terminal.

$cd lbreakout-x-xx
$ ./configure
$ make
$ make install

The executale will be installed at /usr/local/bin

Whats new in Ajuby 0.5