LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 09-29-2004, 07:40 PM   #1
prell
Member
 
Registered: Jul 2004
Posts: 73

Rep: Reputation: 15
public service, private CVS?


I'm looking for a service, like Sourceforge, which provides free CVS space, but I want to be able to restrict anonymous access to this repository. Does anyone know of such a service?
 
Old 09-30-2004, 08:25 AM   #2
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 31
Is there some reason you can't, or don't want to just setup your own private CVS repository? I have all of my code in a private CVS repository on one of my home Linux boxes. I can then access that repository from work, or anywhere else using ssh. If you don't setup the pserver, you don't have to worry about anonymous access.

Also, if you have a broadband connection, but don't have a static IP, you can use a free dynamic DNS service like dyndns.org to give your home connection a more friendly name like prell.homelinux.com...
 
Old 09-30-2004, 01:32 PM   #3
prell
Member
 
Registered: Jul 2004
Posts: 73

Original Poster
Rep: Reputation: 15
All your advice was very good, but let me go into why I want what I want:
  • I'm concerned about wasted power, so I don't want one machine running constantly.
  • I do want to maintain code versions to prevent deletion of modifications, etc.
  • I like the idea of having my code on an independent machine.
  • I want to develop the software first and make the OSS decision later; I don't want to be forced to adhere to an open source license automatically (i.e. Sourceforge).

I was considering using arch since I get the impression that it can not only maintain version integrity between clients on one machine, but between an arch server on one machine, and an arch server on another. That may not be the case with arch, but I got that impression.

I just don't like having to tar-gz my code every time I want to develop on another machine: it makes me nervous. Also, I would like to become more famliar and comfortable with some CVS systems.

If a service like I describe does not exist (will Sourceforge allow it? It doesn't look like it), I suppose I will look into other options.
 
Old 09-30-2004, 02:35 PM   #4
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
regarding power consumption, while I don't have any numbers on its power consumption, I do have an NSLU2 at home that is running a CVS server (and I'm using dyndns.org). Now again, I don't have numbers for power consumption but it is a small embedded device, can't be sucking up too much power.

http://www.linksys.com/products/prod...id=43&prid=640

Last edited by jpbarto; 09-30-2004 at 02:36 PM.
 
Old 09-30-2004, 02:58 PM   #5
prell
Member
 
Registered: Jul 2004
Posts: 73

Original Poster
Rep: Reputation: 15
Now that NSLU2 is nice! I have considered building a "closet server" that runs a few services, but again, the power consumption dismayed me.

I'm not sure how much power the NSLU2 uses, but you can get a very good idea by the amount of heat it produces. Is it warm like a 60W bulb, or cold like a fluorescent bulb?

Was it much trouble to get CVS working? I see the efforts to install Linux on the device, which would be cool: I could install CVS, arch, or whatever I want. My only issue is that I already have a firewire HDD, and I'm not sure if it has a USB adapter. It probably does.

Anyway, I'd be very happy to have a tiny file server in my closet, provided it is friendly to my power bill.
 
Old 09-30-2004, 02:59 PM   #6
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 31
I can't say much for arch as I've never used it, but CVS should work fine for you. About the only item on your list that might prevent you from setting up your own CVS server would be the power consumption, and as jpbarto pointed out, you can put together a system that doesn't suck up too much power.

As an example of how easy you can setup a CVS repository, say you want to use /usr/local/cvsroot as the repository directory. You would do something like so:

cvs -d:local:/usr/local/cvsroot init

Now you could import a project into the new repository with something like:

cd /directory/to/import
cvs -d:local:/usr/local/cvsroot import projname vendor-tag release-tag

Now, if you are on another machine and want to check out that project, you can do something like so:

export CVS_RSH=ssh
cvs -d:ext:username@machineName:/usr/local/cvsroot co projname

You can shorten some of that up by putting the options in -d to the CVSROOT environment variable, and setting that and CVS_RSH someplace like .bashrc.

I'd give examples of versioning and branching, etc. but those are things that I haven't really had a need for in my own usage. Browsing through the man pages for cvs shows that it is possible to do, though.

About the only reason I can think of why you might not want to setup your own CVS server is if you only have a dial-up connection, are behind a firewall that you do not have access to forward the ssh port to your server, or any other number of reasons where you might need your code from someplace that you do not have access back into your home computer from.
 
Old 10-01-2004, 09:26 AM   #7
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
Quote:
Was it much trouble to get CVS working?
The device comes out of the box running snapgear linux so once you obtain the root password (via telnet) (and there are plenty of tutorials on this) putting CVS on the box is pretty much just a matter of unpacking a binary tar file onto the device. There has been a huge porting effort moving applications like CVS and NFS over to the NSLU2's ARM processor and so like I said it's just downloading the package you want and unpacking it. And for only being a 250MHz device, I haven't noticed any lags even when I access the device from a remote UK shell account I have.
 
Old 01-15-2005, 12:18 AM   #8
jburford
Member
 
Registered: Sep 2002
Distribution: Mandrake 10, IPCOP 1.4, SME Server 6, EvilEntity
Posts: 106

Rep: Reputation: 15
Regarding power consumption, the AC/DC transformer outputs 0.6 Amp at 12V = 7.2W. Assuming the transformer is fairly inefficient, maybe 20 Watts total consumption. If you use 3.5" disks, you would want to add the disk enclosures power consumption.

Regarding getting the device to work, it is designed as a small network attached storage device for connecting USB drives to your network. As a Samba server, is is very simple to set up (unless like me you find it won't transfer files over 30K in size, and spend a week or two fumbling around before discovering the network hub was no f*%$ing good - new switch, no problems).

To adapt it to do interesting things appears more complex and very interesting. There are some fascinating projects, and lots of potential uses for such a device.

Apparently, Intel ARM chip, 8MB flash, 32MB RAM, but the flash can be augmented by using one of the USB hard drives disk space, so the main limitation is 32MB of RAM - which seems adequate for a lot of uses.

Small, cool, perfect for what I need, and I may have to buy another to try hacking it!

Jim
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
public, private, protected...?(C++) name_in_use450 Programming 6 10-07-2008 11:43 PM
CVS & SSH & Public/private keys guideweb Linux - Software 15 09-09-2005 01:06 PM
public vs private ip emailssent Linux - Networking 2 09-28-2004 02:11 AM
Linking Public IP to a Private IP Saints Linux - Networking 0 05-04-2004 04:33 AM
Help with SSH and public/private keys stodge Linux - Security 5 05-14-2003 01:22 PM


All times are GMT -5. The time now is 10:16 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration