Tuesday, 20 March 2012

Setup a simple Subversion server with svnserve


1. Create a Repository

svnadmin create /svnrepos

2. Create a SVN User

vi /svnrepos/conf/svnserve.conf
In that file add these three lines:
anon-access = none
auth-access = write
password-db = passwd
Create a password file:
vi /svnrepos/conf/passwd
In that file add a line for your user:
# add users in the format : user = password
tony = mypassword

3. Import Your Project

(assuming you’ve put your project files in /projects/myrailsproject)
svn import /projects/myrailsproject file:///svnrepos/myrailsproject

4. Start the SVN Server as Daemon

svnserve -d
Done! You should now have a svn server running with one project named myrailsproject.
Try checking it out of the repository:
svn co svn://192.168.0.2/svnrepos/myyrailsproject
Since we set anon-access to none you should be prompted for username and password which you created in the file /svnrepos/conf/passwd.


references:

http://www.tonyspencer.com/2007/03/02/setup-a-subversion-server-in-4-minutes/

http://geek.co.il/wp/2011/11/28/setting-up-subversion-svnserve-daemon-on-centos
 

Friday, 16 March 2012

Downloading an entire website in Linux

Complete Website can be downloaded using the following options with wget: 
wget --mirror -p --convert-links -P ./LOCAL-DIR WEBSITE-URL
  • –mirror : turn on options suitable for mirroring.
  • -p : download all files that are necessary to properly display a given HTML page.
  • –convert-links : after the download, convert the links in document for local viewing.
  • -P ./LOCAL-DIR : save all the files and directories to the specified directory.
There are also other tools such as httrack.

References:

 1) http://askubuntu.com/questions/20463/how-can-i-download-an-entire-website