Thursday, June 24, 2010

How to enable rar\unrar in Ubuntu

As I am in a serious Ubuntu mood at the moment, I thought I would throw up another quick little guide. In order to enable rar\unrar in Linux (this tested in Ubuntu 9.04), open a terminal window and type:
sudo apt-get install rar
Then, after rar is installed, type the following
sudo ln –fs /user/bin/rar /usr/bin/unrar
Now you can extract rar-archives with the default archive manager in Ubuntu! Enjoy!

Thursday, June 10, 2010

SVN Configuration


SVN Configuration :-

 Setup your svn server.

1)      install Subversion setup at serverside.
2)      Install SVN services software which simply on the svn server from the windows services if you activate or on it from this services software. So, you don’t need to
On it manually from windows services. And also it on the services automatically whenever you start your windows.
3)      add an environment variable for SVN_EDITOR. You can do this by right-click on my Computer > Properties. Go to advanced. Hit the Environmental Variables button. Just add another in there called SVN_EDITOR with a value of C:\windows\notepad.exe
4)      Make the svn repository. And steps for it is given below.

1.      mkdir /home/user/myrepo/
2.      svnadmin create /home/user/myrepo/
3.      remove 3 comments at 3 lines given below from the svnserve.conf located at repository location in “conf ” directory.
anon-access = read
auth-access = write
password-db = passwd
4.        Edit password database file: C:\SvnData\MyProject\conf\passwd and optionally move the file to the target location if you changed default location in configuration file. The file structure is: [users]user1 = password1user2 = password2.
We can also enter the username and password like given below.

harry:passwd1
sally:passwd2

           

5)      Create the different Directory in repository for storing projects, repository, etc….

Mkdir /home/user/myrepo/Projects

This is Command “svn mkdir svn://192.168.0.1/Projects”.

If you want to delete any directory created like above then type below command.

svn delete svn://192.168.0.1/Projects

6)      After making svn repository check the repository using below command.

รจ    svn ls svn://localhost/
It will showing the content in your repository. For now it will just showing Projects directory becoz we have created only one directory.

7)      then Import the project in repository at particular location wherever you want to store using svn import command.

Ex.
D:\users\work\src>svn import TaskManagementSystem "file:///D:/users/work/svnrepository/Projects/TaskManagementSystem"

Where, TaskManagementSystem Project folder is stored in src folder with the source files. And TaskManagementSystem name is the name of directory which you want to import in your specified repository location followed by next path from the location where you execute this command in our example it is from D:\users\work\src.

8)      You can now checkout your project from the repository location to client machine using svn checkout command.

svn checkout svn://192.168.0.1/Projects/testpro
or if you want to checkout or want to do any client side operation without command then you can use tortoise svn and setup is also given in svn installable folder.
And there is minimal requirement to access the svn server from any client machine is to install the svn client setup which is also given in installable folder.

9)      To take a backup of svn repository :
svnadmin dump D:/users/work/svnrepository/ > D:/users/work/svnbackup/svnrepobackup.dump

10)  To load a svn repository from Backup dump of svn repository.
$ svnadmin load newrepos < dumpfile

11)  To remove the repository : svnadmin deltify D:/users/work/svnrepository/


12)  To restore the repository from the backup dump :
svnadmin load D:/users/work/svnrepository < D:/users/work/svnbackup/svnrepobackup.dump

       13)   Or you can take a backup of repository and also can restore the repository by manually copy paste the repository folder.