Posts

Showing posts from 2013

Easy tricks for your needs...

01. Remove duplicate entries (line) from the text file in Ubuntu         sort random.txt | uniq -u > rand-shorter.txt 02. Change the folder tree rights to 777 in Ubuntu                    chmod -R 777 my_folder_name 03. MySQL data export to the database from sql file                   mysql -uroot -p -h localhost mydb < mydbbackup.sql 04. Find the running port number for given process in ubuntu            ps -ax|grep process_name          example:  ps -ax|grep java will list out all the process having name java 05. Kill running process         kill -9 12344 (Here 12344 is process number given by "ps -ax|grep myprocess" command) 06. Kill a process for know port         sudo lsof -t -i:<port-number>         Example: sudo lsof -t -i:9000         The result would be the process number. Then use " kill -9 <process-number >" to kill the process. Please see the (05) of the above.         

How to change the splash screen on ubuntu 12.04

Run bellow command on the shell. sudo update-alternatives --config default.plymouth Then it will ask you to select the default one from the available list Selection Path Priority Status ------------------------------------------------------------ 0 /lib/plymouth/themes/edubuntu-logo/edubuntu-logo.plymouth 150 auto mode 1 /lib/plymouth/themes/edubuntu-logo/edubuntu-logo.plymouth 150 manual mode * 2 /lib/plymouth/themes/ubuntu-logo/ubuntu-logo.plymouth 100 manual mode Press enter to keep the current choice[*], or type selection number: You can select appropriate number from the list and enter.   If your login screen is not graphical on ubuntu 12.04 you can change it back to the normal operation as bellow. Run command  sudo gedit /etc/default/grub  And edit the grup file as bellow. Bellow line should be active (No # at the beggining) and

Webdav example in Spring Security with password encription

You can find few set of link which will guide you to do the spring configuration for the webdav. But, i have reallized that most of the readers getting trouble when implementing those codes as they are not properly explain how to do it basic level. Here is the clear working guide for the spring webdav integration with encripted password. 01. Setup the spring blank project from your desired developement tool (netbeans, eclipse,intelliJ IDEA). I am using intelliJ on this tutorial. And setup spring security example based on the available sources on the web. Here is the few links you may try. http://blog.solidcraft.eu/2011/03/spring-security-by-example-set-up-and.html http://static.springsource.org/spring-security/site/docs/3.0.x/reference/sample-apps.html After completing the above steps, you could be able to log in to the web application using form based authontification with encripted password on the database. Now lets setup for the webdav folder access for the above web proj