Setting up Calagator without root

8 views
Skip to first unread message

Asheesh Laroia

unread,
Aug 13, 2011, 5:21:37 PM8/13/11
to pdx-tech-calendar
Hi all,

I'm setting up a development instance of Calagator on the OpenHatch
virtual machine. We're really excited about setting up a free software,
great-looking, community-tested calendar for events across free software.

I'm new to Rails development, though I've been doing Python development
for a while. On my own machine, when I ran 'bundle' after doing a
'git clone', I seemed to get all the dependencies installed without
needing to sudo.

In the account on the OpenHatch linode, I seem to need to root. But I really
do not want the Calagator modifying the system state without knowing precisely
what it is doing -- the special calagator user ID has no permission to sudo.

Here's what I see:

calagator@linode:~/calagator$ bundle
Fetching source index for http://rubygems.org/

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

Enter your password to install the bundled RubyGems to your system:

(at this point, I ^C the process)

My question is: Can I run calagator without needing 'sudo' privileges in
the account that runs it? If there are specific gems or Debian packages
I need to install, then I can do that; I just want to know what they are.

-- Asheesh.

Asheesh Laroia

unread,
Aug 13, 2011, 5:38:30 PM8/13/11
to pdx-tech-calendar
Excerpts from Asheesh Laroia's message of Sat Aug 13 17:21:37 -0400 2011:

> Hi all,
>
> I'm setting up a development instance of Calagator on the OpenHatch
> virtual machine. We're really excited about setting up a free software,
> great-looking, community-tested calendar for events across free software.
>
> I'm new to Rails development, though I've been doing Python development
> for a while. On my own machine, when I ran 'bundle' after doing a
> 'git clone', I seemed to get all the dependencies installed without
> needing to sudo.

Using this command:

bundle install --path vendor/bundle

worked out great.

Yay for reading the list archives!

You can see our test instance at:

http://calendar-beta.openhatch.org/

source at

https://github.com/jcsims/calagator

We're still testing and playing with it. We intend to one day migrate
it to the futuristic Rails 3 branch. We're also wondering what the best
workflow is for maintaining local changes and/or themes. (Maybe we can
just make them part of your repo, and just point our config file to our
theme?)

-- Asheesh.

Sam Goldstein

unread,
Aug 13, 2011, 7:06:07 PM8/13/11
to pdx-tech...@googlegroups.com
On Sat, Aug 13, 2011 at 2:38 PM, Asheesh Laroia <li...@asheesh.org> wrote:

> Using this command:
>
>    bundle install --path vendor/bundle
>

You might also look at `bundle install --deployment`
(http://gembundler.com/deploying.html). My understanding is that
bundler will prompt for the sudo password if you don't have permission
to write to the gem install directory.

~Sam Goldstein

Reply all
Reply to author
Forward
0 new messages