Re: [OT] Linux Development Environment - suggestions

Rob Park
Sun, 08 May 2005 07:54:56 -0000

On 5/8/05, Ramin <i8ramin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> Hey, sorry for the off topic email, but I appreciate any feedback you guys
> can give me.

This list is predominently OS X users, so I''m not sure how much help
you''ll find here... I use Ubuntu though, so maybe I can help a bit.

>  I just put together a new box and installed Ubuntu linux on it.
I''m coming
> from a totally windows environment, so I''m having some trouble
getting my
> head around the linux file system and where things "should" go.

There''s lots of great resources online. Just a google away ;)

>  I am trying to create a nice development environment for myself and my
> rails projects. I just wanna get an idea of how everyone has setup their
> linux environment and where they keep their files, folders, repositories,
> etc.
>
>  What I have so far is
>
>  - /home/ramin/dev/projects/rails/<project name>
>  - /var/svn/repos/

I''m not quite sure what the point of "dev/projects/rails" is.
Unless
you''re planning to do a love of "dev"elopment on things that
aren''t
projects, and a lot of projects that aren''t in rails. Rails itself
will force deep heirarchies on you, like "app/views/foobar/" and the
like, you''ll find this deep heirarchy getting tiresome quickly.

>  Not sure if thats the best place to put my svn repository. Where would you
> guys recommend? Should I just stick it into my own user folder, somewhere
> like /home/ramin/dev/repos ? I thought I''d put it in a more global
are,
> incase I have more users later and they need to add projects to the
> repository.

/var is popularly used for data that changes a lot, for example, most
linux webservers will, by default, look to serve web content from
/var/www and you''ll find other similar subdirectories in /var

The great thing about linux is that none of the heirarchy is enforced
by the system and it''s all just largely organized by tradition. Of
course a lot of apps will assume that things are set up a certain way,
but since you''re setting up rails from scratch, you can really put it
wherever you want and it doesn''t matter too much.

Personally, I put all my web content into /home/www (including rails
projects & the like), but that''s only because on my system,
there''s an
80GB drive mounted onto /home, whereas / itself is a smaller 3GB
partition. I *would have* put rails into /var/www, but that would have
been on the small 3GB partition, and though it would have fit, I
preferred having it on my /home partition, which is where I keep al my
personal files anyway (eg, / gets formatted when I change distros, but
/home is eternal).

>  I also intalled trac using apt-get but now I''m not so sure how to
setup the
> Trac Environment. Do I put it in a global area or under my own user folder
> or under each project? Am I supposed to create a new trac env. for each
> project or do they all share the same env.? The same question would apply
to
> svn as well I guess.

Never used trac or svn, can''t help you there, sorry.

--
Urban Artography