Wednesday, January 25, 2012

TIP: Passphraseless SSH on Fedora

If you are trying to set up passphraseless SSH on Fedora, then remember that the permissions on the file authorized_keys should be 644 ====================================================== .ssh$ chmod 644 authorized_keys anil@sadbhav:~/.ssh$ ssh localhost Last login: Sun Jan 22 21:42:06 2012 from localhost anil@sadbhav:~$ exit logout Connection to localhost closed. anil@sadbhav:~/.ssh$ chmod 644 known_hosts ================

Wednesday, June 01, 2011

Disk Cleanup : Linux Distribution

Lets assume that you are looking for TreeSize alternative in the Linux world. There are a few disk usage/cleanup tools available under GNome or KDE.

If you have some time, then cleaning up your home directory is pretty simple on the command line:

Assume you want to clean your /home directory.

$> du -H /home > cleanfile

Now when you open cleanfile in your text editor, you should see the files/directories. Looking at the directory names should tell you whether you need those dirs or now.

Wednesday, May 18, 2011

Scheduler Jobs in JBoss AS

If you are interested in scheduling tasks in JBoss AS, there are few pointers that you should look at and choose:

1) Quartz Scheduler
The EJB3 subsystem has quartz integration that you may want to utilize.

http://docs.jboss.org/ejb3/docs/tutorial/1.0.7/html/Quartz_scheduler_integration.html



http://community.jboss.org/wiki/HowtoconfigureaQuartzservice


Reference: http://www.quartz-scheduler.org/

2) Use java.util.Timer
You will need to create your own instances of timer tasks in your application.

3) JBoss Scheduler


http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/Additional_Services-
Scheduling_Tasks.html


Section 10.7 and 10.8 of http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/index.html