ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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...
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.
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.
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.
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:
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:
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.
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.
Distribution: Mandrake 10, IPCOP 1.4, SME Server 6, EvilEntity
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!