Install & Configure CVS on RHEL, Fedora 9/10.

Hi Friends,
I am Sharing method to Install & configure a basic steps to installing and configure CVS on RHEL Fedora 9 /10.

  1. First of all Install xinetd package.yum -y install xinetd

  2. Install cvs package.yum -y install cvs*

  3. Create a group cvs.

  4. Create a user cvsroot and assing it to cvs group.

  5. Now make sure that following entries are present in your /etc/services file if the entries are not present then add it manually save & exit.

    You can check entries by executing this command cat /etc/services | grep cvspserver

    cvspserver 2401/tcp # CVS client/server operations

cvspserver 2401/udp # CVS client/server operations

  1. Check your /etc/xinetd.d/cvs file and check that following entries are available and if now as above add it manually.

    Entry will look like this:-

    # default: off

    # description: The CVS service can record the history of your source

    # files. CVS stores all the versions of a file in a single

    # file in a clever way that only stores the differences

    # between versions.

    service cvspserver

    {

    port = 2401

    socket_type = stream

    protocol = tcp

    wait = no

    user = root

    server = /usr/bin/cvs

    server_args = -f –allow-root=/home/cvsroot pserver

    }

  2. Now restart your xinetd service using following command

    service xinetd restart or /etc/init.d/xinetd restart

  3. Now allow port 2401 which is cvspserver port from iptables and also allow

    SELinux exceptions.you can do that by doing this ( In “System”->”Administration”->”Security Level and Firewall”, add firewall exception of port “2401” corresponding to “cvspserver” service, and also remember to “Modify SELinux policy”->”SELinux Service Protection”->”Disable ELinux Service Protection for cvs”. )

    Now this steps are important

  4. Login as a “cvsroot”

  5. execute cvs -d /home/cvsroot/ init

  6. now enter into /home/cvsroot/

  7. Assign permission chmod 771 CVSROOT

  8. This time,all local real system users can log into CVS server with their own passwords.
    If you want to disable, you can do by:

  9. chmod 644 /home/cvsroot/CVSROOT/config

  10. vim CVSROOT/config

    Here you need to uncomment the line where #SystemAuth = yes. And set SystemAuth = no.

Then now your system users cannot use CVS service with their own system passwords, except you assign them manually in file /home/cvsroot/CVSROOT/passwd.

If passwd file is not available then create user by executing following commands:-

htpasswd -d -c /home/cvsroot/CVSROOT/passwd raghu (option -c is only use when you are creating first time)

To add additional user:-

htpasswd -d /home/cvsroot/CVSROOT/passwd rajiv

16. To control user access in CVS, there are three files in /home/cvsroot/CVSROOT/, respectively named passwd, readers, writers. The file readers and writers are not there by default, so you have to create them manually.

In file “passwd”, ithere stores the shadow files for username and password, following the rule:

{cvs usrname}:[encrypted pwd]:[equivalent system usrname]

where the second field is encrypted with crypt(3), just like in /etc/shadow.

The thrid field equivalent system usrname means the corresponding system priviledge the cvs usrname has.

In file “readers”, there stores the list of cvs usrnames of whom you want to enable to only have read acess.

Similarly, in file “writers”, there stores the list of cvs usrnames of whom you want to enable to only have read acess.

Now, let us suppose we have CVS users “raghu”, “rajiv”, “anonymous”. And we don’t want to give them system access, which means the corresponding system priviledge the cvs usrnames have are all null. So, we need to create an equivalent system user, which names “roadies”, who has no system priviledge at all.

$ useradd -g CVS -M -s /sbin/nologin roadies

Then edit file “passwd”, make it like:

raghu:$fajkdpaieje:roadies

rajiv:fjkal;ffjieinfn/:roadies

anonymous::roadies

Now suppose we want to let raghu has write acess while rajiv and anonymous only have read acess.

Then edit file “readers”, make it like:

rajiv

anonymous

And edit file “writers”, make it like:

raghu

Then it is all finished.

(14) Test login:

$export CVSROOT=:pserver:raghu@the_server_name:/home/cvsroot

$ cvs login

(System will ask for password for raghu)

Passwd:xxxxxxxx

There should be no error when you have successfully login to the CVS server.

Please Click on Google +1 button and Add your ratings if this works for you and you like it.

Enjoy CVS 🙂 Enjoy Linux and Open Source 🙂

Setup and Configuration of a Virtual Machine in Virtual Box

VirtualBox is an operating system virtualization program that allows you, the end user, to do an incredible number of things that you couldn’t otherwise do in any other way than in a live environment.  But not everyone has more than one machine laying around with an OS installed on it, and not everyone wants to have to dual or multi boot in order to use each of these OS’s.

That’s where VirtualBox comes in handy.  You can test an operating system, or run more than one OS simultaneously without needing multiple PC’s.  But what does it take to get started with Virtualbox?  Well, I’m about to show you.  (be sure you already have Virtualbox 3.x installed before starting this tutorial)

Setting up a Virtual Machine

To get started setting up a Virtual Machine, begin by opening VirtualBox.  On the left side you’ll see a large white column with four buttons over it.  Click on “New”.  This will bring up a new windows.  Click “Next”.  In this window you’ll want to enter a name for the Virtual Machine.  Typically this is the name of the OS you’ll be using, however it doesn’t necessarily have to be.

For example, if you’re simply testing Linux distributions, just name it “Linux Testing” or something that makes sense to you so you know what it is.  Essentially the name is just there to make sure you know which is which if you have more than one Virtual Machine.

Now, in the section below that text box, select the operating system and version you’ll be using.  For example, with Windows you’d choose “Microsoft Windows” and “Windows XP” respectively.  Virtualbox 3.x can support Windows, Linux, Solaris, BSD and IBM OS/2 (yes, OS2.  Kinda surprising, isn’t it?  hehe) natively, and there’s an “other” category for other OS’s that don’t fall into one of those six categories.

Those typically are things like Dos, Novel Netware, L4, QNX, or some other off the wall OS that will run on x86 hardware, but isn’t a mainstream OS.  Next, choose the base memory that your virtual machine will use.  Typically this should be no more than 50% of your total available physical memory.  So if you only have 1gb of ram, don’t select more than 512mb of memory for your Virtual Machine, or bad things may happen.

Now, click next, and either choose an existing hard drive, or create a new one.  Note, these are virtual hard drives.  They’ll appear as files on your main system drive, but won’t affect it in any way, other than to take up space.  If you haven’t created a virtual hard drive yet, click “Create new hard disk” and then click next.

A new window should appear.  Click next.  Now you will be asked if you want dynamically expanding storage, or fixed.  Dynamically expanding storage is essentially a disk image that grows as you need more space.  Typically this is the best way to setup a virtual drive, as you only use as much space as you absolutely need.  It will continue to grow over time as you need more space, up to the maximum limit, but not beyond.

The second type of drive is fixed size storage.  This will automatically allocated the entire amount of space required for your virtual drive right at the beginning, even if you are only using a small portion of it within the Virtual Machine.  Now, once you’ve chosen this, select a location to store the virtual drive, and a disk size.

Now in regards to disk size, regardless which type you choose (dynamic or fixed), you will need to make sure that you select a drive size no more than 50% of your total available disk space.  So for example, if your physical hard drive is 80gb, your virtual drive should be no more than 40gb.

Once you’re done with that, click finish and it will take you back to the previous window.  Simply click next, and finish, and you’re done.

Configuration

The next step now is to configure the Virtual Machine.  Start by clicking on your new Virtual Machine in the left column, then click settings.  In here you can change anything you like about your Virtual Machine.  There aren’t many tweaks that I would recommend in here, however there are a few.  One of those is to adjust your video memory.

To do that, click on “display” in the left column.  On the right side panel, look at the total memory listed there (it won’t let you go any higher than 100% of your video memory), and then either move the slider over until it’s at 50% of your total memory, or you can manually specify the value in the the box at the far end.

Never, ever, ever go over 50% of your total physical video memory for the same reasons you should never go over 50% of your total physical ram.  Bad things happen if you do.  What you essentially do is you starve your host system for memory and that can quickly come back to haunt you.

Below the memory slider is a neat new addition to Virtual Box.  It allows you to have full 3D support within your virtual machine.  It’s still experimental, but it works.  To use it, just check the little box there, and then click ok.  There are other things in there you can play with and tweak if you like, but if not, then you’re done.

Install the OS

This last part is the shortest, and easiest part of the entire process of setting up your Virtual Machine.  Namely, installing the OS.  Overall, there are two ways in which you can do this.  The first is directly with a CD or DVD of the OS.

To do that, insert the install disk into your cd or dvd drive, and then, with the Virtual Machine selected, click on “CD/DVD-ROM” in the right side panel.  This will take you back into the settings dialog.  Checkmark “Mount CD/DVD Drive”, then select your drive from the list, if you have more than one, and then click ok.  If you only have only one, just click OK.

Inversely, if you are installing from a disk iso, you can simply select “ISO Image File” here, then click the folder icon next to it.  This will open the Virtual Media Manager.  To add your iso file, click “Add”, then browse to the file and click Open.  You’ll now see your iso file in the list.  Just select it, and then click “select”.

This will return you to the previous window.  Click ok.  Now click start and follow the prompts to install your OS.  Once it has completely finished with the disk, you can remove it by simply selecting “Devices -> Unmount CD/DVD-ROM” from the Virtual Machine window.

Conclusion

Well, that’s all it.  You’ve completed your setup and you are now ready to begin playing with your new Virtual Machine!

Original Post :- http://www.raiden.net/articles/tutorial_setup_and_configuration_of_a_virtual_machine_in_virtual_box/1/

Configuring Subversion on Ubuntu

Hi Friends,

I am sharing method to configure Simple Subverion with Basic Authentication on Ubuntu.

To Install Subversion Open Terminal and Execute Following Commands :-
sudo apt-get install subversion libapache2-svn

Now Create Subversion repository in /svn (You can choose your own path)
sudo svnadmin create /svn

Give this permission to that /svn folder

sudo chown -R www-data:www-data /svn

Now We need to edit configuration file to add webDAV module :-
sudo vim /etc/apache2/mods-enabled/dav_svn.conf

The Location elements in configuration file dictates the root directory of subversion.
<Location /svn>
You have to uncomment The DAV line to Enable DAV Module:-
DAV svn (uncomment this line)

Now you have to set the same path which you created with svnadmin command
SVNPath /svn 

To Enable Authentication you need to uncomment Following Three Lines:-
AuthType Basic
AuthName “Subversion Repository”
AuthUserFile /etc/apache2/dav_svn.passwd

To Create user on the repository use, execute following command:
sudo htpasswd2 -cm /etc/apache2/dav_svn.passwd <username>
(
-c use for creating First time user and -m use for enctrypting your in md5 enctyption method)

Restart your apache2 service by executing this command:-
sudo /etc/init.d/apache2 restart

Now test your repository by this way :-
From Local PC :-  http://localhost/svn
From  Remote PC :- http://<your-subversion-computer-ip>/svn

Now If you want all user must be Authenticated for even Read-Access then add this line exact below AuthUserFile
Require valid-user
save & exit from File.

Restart Apache Service :-
sudo /etc/init.d/apache2 restart