Google

Wednesday, December 31, 2008

Installing software using yum

I tried to install trac software on my fedora machine using,
yum install trac

It gve me the following error

[root@charithhost charith]# yum install trac

Loaded plugins: refresh-packagekit

Setting up Install Process

Parsing package install arguments

Resolving Dependencies

--> Running transaction check

---> Package trac.noarch 0:0.10.5-1.fc9 set to be updated

--> Processing Dependency: subversion >= 1.1 for package: trac

--> Processing Dependency: python-clearsilver >= 0.9.3 for package: trac

--> Running transaction check

---> Package subversion.i386 0:1.4.6-7 set to be updated

--> Processing Dependency: perl(URI) >= 1.17 for package: subversion

---> Package trac.noarch 0:0.10.5-1.fc9 set to be updated

--> Processing Dependency: python-clearsilver >= 0.9.3 for package: trac

--> Running transaction check

---> Package perl-URI.noarch 0:1.35-8.fc9 set to be updated

---> Package trac.noarch 0:0.10.5-1.fc9 set to be updated

--> Processing Dependency: python-clearsilver >= 0.9.3 for package: trac

--> Finished Dependency Resolution

trac-0.10.5-1.fc9.noarch from updates-newkey has depsolving problems

  --> Missing Dependency: python-clearsilver >= 0.9.3 is needed by package trac-0.10.5-1.fc9.noarch (updates-newkey)

Error: Missing Dependency: python-clearsilver >= 0.9.3 is needed by package trac-0.10.5-1.fc9.noarch (updates-newkey)


Then I tried to install python-clearsilver using yum,
yum install python-clearsilver 
Out put as follows
[root@charithhost charith]# yum install python-clearsilver

Loaded plugins: refresh-packagekit

Setting up Install Process

Parsing package install arguments

No package python-clearsilver available.

Nothing to do

Then I tried with following,
yum search clearsilver

It gave me following results
[root@charithhost charith]# yum search clearsilver

Loaded plugins: refresh-packagekit

fedora                                                   | 2.4 kB     00:00    

Not using downloaded repomd.xml because it is older than what we have

Warning: No matches found for: clearsilver

No Matches found


So I clean yum cache using,
yum clean all

So finally, I was able to run 
yum install trac


Synergy on fedora

I used Synergy to share a single mouse and keyboard between my windows and linux(fedora 9) machine. It is really easy to set up this environment. I follow list used commands for this.

Install Synergy in windows and configure as the server.

In fedora machine, I used
yum install synergy

then edit three files.
1) /etc/gdm/Default
with
/usr/bin/killall synergyc sleep 1 /usr/bin/synergyc ip_of_my_server
2) /etc/gdm/PostLogin/Default
with
/usr/bin/killall synergyc sleep 1
There was no Default file in this location but, I rename the Default.sample file as Default using,
mv /etc/gdm/PostLogin/Default.sample /etc/gdm/PostLogin/Default

3) /etc/gdm/PostLogin/Default
with
/usr/bin/killall synergyc sleep 1 /usr/bin/synergyc ip_of_my_server

Tuesday, December 30, 2008

Linux network connection not found

When I install fedora 9 I was able to connect to internet without any problem. But when I set my LAN ip to be a static one over the LAN, I wanted to manually activate the network device,as automatically it was inactivate.

I was able to solve the problem by runnig following commands,

/sbin/chkconfig --levels 345 NetworkManager off
/sbin/chkconfig --levels 345 network on

After u run above commands, network manager icon will not be displayed any longer.

Monday, December 22, 2008

Sigiriya trip

Last saturday our family went to on a trip to Sigiriya. We enjoyed very much. All the details on Sigiriya is written in here,

Wednesday, December 17, 2008

Load an environment variable to build file

Initially I had my build file as this








But if others are also using this they may need to change the path to deploy the application. So I cange the build file to address this issue. It now looks like










and we need to add JBOSS_HOME valriable to environment variable. 

Monday, December 8, 2008

Refresh my knowledge

One of my school friends came to my home and asks me to teach him basic sql and Java SWT application programming. I had done them in the university but I have lost my memory since I haven't been involved on those areas for sometime. Some of the areas included, connecting the database through the java program, granting database permissions, using suitable database driver classes, applying SWT layouts, add look and feels, etc.

Finally, I refreshed my knowledge and my friend was happy as he learnt the basics. This tutorial helped me lot in teaching him the above stuff,


Thursday, December 4, 2008

Useful Linux commands

When I was installing Oracle 11g database I found some useful Linux commands. I here summarized what I learnt there. For further details refer to Oracle 11g database Linux installation guide.

To determine physical RAM size

grep MemTotal /proc/meminfo

To get the system architecture

grep "model name" /proc/cpuinfo

To determine the size of the configured swap space

grep SwapTotal /proc/meminfo

To get available ram and swap space

free

Determine the distribution and version

cat /proc/version

To find the kernel version

uname -r


To find size of folders or files,

du -h


To determine required packages are installed

rpm -q package_name

To find free disk space of the system

df -k

If it need to extend the search to a directory

df -k /path_to_folder_name