1.3 Cookbook Beta

66 views
Skip to first unread message

Arthur Baldwin

unread,
Jul 25, 2011, 5:32:08 PM7/25/11
to Hobo Users
Why has nobody deemed it necessary to write a section for the installation chapter designed for Ubuntu users?  I find it very irritating that the authors say Windows is still the most widely used OS.  While that may technically be true, most of us who have been attempting to replace Windows usage for the last 10+ years (meaning we're probably using Ubuntu 11.04 with Ubuntu Classic desktop) are wondering why we seem to have been ignored.  Windows is officially dead!  I know there's many people out there who don't realize that fact at all...but they will realize it shortly.  In the meantime, it would be gratifying to see "cutting edge" developers such as those of hobo 1.3 to at least acknowledge the superiority of Linux and to address the needs of us who have awakened out of slumber....

Ronny Hanssen

unread,
Jul 25, 2011, 7:30:48 PM7/25/11
to hobo...@googlegroups.com, Arthur Baldwin
Wow... There must be hundreds, if not thousands, of groups on Google were religion is the topic. I think you got the wrong group mate...

Arthur Baldwin

unread,
Jul 25, 2011, 7:50:17 PM7/25/11
to hobo...@googlegroups.com
This is not a religious point I'm making.  The fact is that there are hundreds of differing accounts about the best way to install ruby, rails, and hobo 1.3 on any *nix machine.  I would like to hear from the "experts" on how they recommend to do it...since I have tried many methods and still often fail to achieve the desired results.  Since Hobo 1.3 is still on RC1 and not fully released, it is especially important to address the Linux audience.  They have gone to much trouble to give screenshots for every stage of the install process.  Why is there no section for either Macs or for Linux?


From: Ronny Hanssen <super...@gmail.com>
To: hobo...@googlegroups.com
Cc: Arthur Baldwin <eeng...@yahoo.com>
Sent: Monday, July 25, 2011 4:30 PM
Subject: Re: 1.3 Cookbook Beta

Ronny Hanssen

unread,
Jul 25, 2011, 8:30:05 PM7/25/11
to hobo...@googlegroups.com, Arthur Baldwin
Well, I tend to agree that there could/should have been a section on i.e. Ubuntu. But, that means someone have to do it. Obviously, that someone has not existed - yet.

Your first posting was very opinionated and did not only show a wish for Hobo to have an Ubuntu install section - it also expressed strong negative feelings towards the Windows society. These are opinions that you really could have left out - IMHO. I am sure you would get a lot more positive feedback then. You surely can argue for a Linux tutorial without having to make fun of the other alternatives? To be honest I would not normally even answer postings such as yours, as I feel they alienate me, being both a Linux and a Windows user. I use Windows at work and switch between Windows and Linux them while doing non-work related stuff.

The Hobo society has always been very friendly and including. Please let us keep it that way.

Even so, despite this I have actually answered your question above. All Hobo need is one dedicated Linux fan to complete it...


Regards,
Ronny

Bob Sleys

unread,
Jul 25, 2011, 10:01:15 PM7/25/11
to hobo...@googlegroups.com, Arthur Baldwin
Since there are litterly hundreds of install guides for Ruby on Rails for Ubuntu and Hobo is just a gem install away I guess no one really thought it needed a special guide.

But since you asked.  Here you go.

1. Follow any of the hundreds of guides to install ruby and rails on Ubuntu.
2. sudo gem install hobo

An alt approch would be use RVM.  So it becomes
1. Follow the RVM install guides at https://rvm.beginrescueend.com/ (yes there is one for Ubuntu)
2. Install the hobo gem.

A third options would be once you have rvm and a base rails install running you could use my Rails template to get hobo plus some extras up and running.  See https://github.com/bsleys/hobo-rails-template which includes direction but not specific to Ubuntu since once ruby and rails working it doesn't matter what OS you are on.  That's one of the beauties of Ruby and Rails IMHO it's very OS neturual.

Oh and for the record I do all my serious work on Ubuntu 11.04 Classic desktop.

Bob

Quiliro Ordóñez

unread,
Jul 26, 2011, 10:36:19 AM7/26/11
to hobo...@googlegroups.com
El 25/07/11 18:30, Ronny Hanssen escribió:
Wow... There must be hundreds, if not thousands, of groups on Google were religion is the topic. I think you got the wrong group mate...

It is not a religious position to back up freedom and in consequence free software. It is a political position in favor of digital rights. It isn't a way to avoid paying for other people's work. It is a way to have the right to control the way our own computers work and to prevent artificial monopolies over intangible assets. It is a matter of fairness to the user. It deffends the users rights to do as they like with their own computer and to share with others as with every other possession you have.

Ubuntu has a lot of software that respects your freedom but it has small parts that are nonfree. This makes the whole system nonfree. As with a virus, just one program that is nonfree can control the whole computer. A good alternative is Trisquel.

I would suggest calling the operating system with its name (GNU) and not with the name of its kernel (Linux). An alternative is to call it GNU with Linux to give equal credit to the greatest part (the OS) and the kernel.

It is important to respect and value other peoples positions and opinions. People that use Windows probably do not know or give the real magnitude about the abuse they are subject to but they are the victims. They are not the ones that attach the users. Nevertheless, I agree that if someone wants freedom to be included in the cookbook, it is their own duty to complete the manual with that information.

These opinions are not being used to offend anyone. I do not live in an English speaking country or is my native language. Please understand I do not mean any offense to anybody even if it the way it sounds.
--
Quiliro Ordóñez
09 821 8696
02 340 1517
"No se puede sacrificar la libertad por ningún bien, por ninguna promesa de pan o de paz o de justicia, porque ese pan tendría amargura de veneno, esa paz sería de muerte, y esa justicia no sería justicia humana ni tendría sentido." Alfredo Pérez G.

Bob Sleys

unread,
Jul 26, 2011, 11:05:14 AM7/26/11
to hobo...@googlegroups.com, qui...@fsfla.org
I think Ronny's point is so we need this discussion here?  There are no special Ubunutu instructions because Hobo isn't OS specific in any way. Yes there are some OS specific instructions to get Ruby working but that is covered in hundreds of other places.  Once Ruby and Gem works on your OS Hobo setup and install is totally OS neutral.  Thus no need to for OS specific instructions or discussions.

Bob

Owen

unread,
Jul 26, 2011, 11:12:25 AM7/26/11
to Hobo Users
I guess I mode the mistake in "Rapid Rails with Hobo" that the link to
the Ubuntu Wiki would be enough:

http://wiki.rubyonrails.org/getting-started/installation/linux-ubuntu

http://screencast.com/t/gjsQk4vR

Nothing against Linux as a client, just not my area of expertise. I
use Mac OS X and Windows on a daily basis.

It would be great for someone to write this up so we can include it
in "Rapid Rails 3 with Hobo"

-Owen



On Jul 26, 10:36 am, Quiliro Ordóñez <quil...@gmail.com> wrote:
> El 25/07/11 18:30, Ronny Hanssen escribi�:
>
> > Wow... There must be hundreds, if not thousands, of groups on Google
> > were religion *is* the topic. I think you got the wrong group mate...
>
> It is not a religious position to back up freedom and in consequence
> free software. It is a political position in favor of digital rights. It
> isn't a way to avoid paying for other people's work. It is a way to have
> the right to control the way our own computers work and to prevent
> artificial monopolies over intangible assets. It is a matter of fairness
> to the user. It deffends the users rights to do as they like with their
> own computer and to share with others as with every other possession you
> have.
>
> Ubuntu has a lot of software that respects your freedom but it has small
> parts that are nonfree. This makes the whole system nonfree. As with a
> virus, just one program that is nonfree can control the whole computer.
> A good alternative is Trisquel. <http://trisquel.info/en>
>
> I would suggest calling the operating system with its name (GNU) and not
> with the name of its kernel (Linux). An alternative is to call it GNU
> with Linux to give equal credit to the greatest part (the OS) and the
> kernel.
>
> It is important to respect and value other peoples positions and
> opinions. People that use Windows probably do not know or give the real
> magnitude about the abuse they are subject to but they are the victims.
> They are not the ones that attach the users. Nevertheless, I agree that
> if someone wants freedom to be included in the cookbook, it is their own
> duty to complete the manual with that information.
>
> These opinions are not being used to offend anyone. I do not live in an
> English speaking country or is my native language. Please understand I
> do not mean any offense to anybody even if it the way it sounds.
> --
> Quiliro Ord��ez
> 09 821 8696
> 02 340 1517
> "No se puede sacrificar la libertad por ning�n bien, por ninguna promesa
> de pan o de paz o de justicia, porque ese pan tendr�a amargura de
> veneno, esa paz ser�a de muerte, y esa justicia no ser�a justicia humana
> ni tendr�a sentido." Alfredo P�rez G.

Bryan Larsen

unread,
Jul 26, 2011, 11:51:56 AM7/26/11
to hobo...@googlegroups.com
I use Ubuntu, so it's definitely not a second class citizen in the Hobo world.

rubygems & debian/ubuntu dpkg's don't work together well. IMO, the
fault is with gems, but that's another religious war.

To keep the Ubuntu ruby and your development ruby completely separate,
I highly recommend RVM.

Follow the instructions here: http://beginrescueend.com/rvm/install/

from there, installing hobo is simply "gem install hobo --pre".

Bryan

kevinpfromnm

unread,
Jul 26, 2011, 12:19:55 PM7/26/11
to hobo...@googlegroups.com
+1 ubuntu user.

I think the mindset of the book was not to snub linux, but acknowledges the facts.  1) it's a lot easier to install rails/hobo on linux/mac.  2) windows users as a whole, tend to include people less experienced with adding shared functionality software, e.g. most windows software doesn't enable other software to run

That aside, I also agree that this isn't the place for OS bashing.  If you want a linux install section, write it up.  I'll even format it for you.  But, make sure it works for a fresh install.

Arthur Baldwin

unread,
Jul 26, 2011, 1:25:09 PM7/26/11
to hobo...@googlegroups.com
My problem is that I work in a company that does not value computer data very much at all...and yet they want me to work miracles at keeping the data that we must use...well organized.  I have tried in vain to get them to use MSAccess to gather data and have been looking for a way to replace MSAccess with something more stable and efficient over a wired LAN.  I have written some very nice MSAccess apps for RMA management, Inventory management, etc.  And I'm waiting for the chance to duplicate my work in Hobo 1.3 over our own LAN.  I would also like to be able to push these solutions to our primary website so that we can do online sales along with managing our inventory.  But right now almost my whole day is spent doing Shipping & Receiving, because nobody else is computer savvy enough to do it....or they hate computers too much to do it.  After being a computer consultant for hundreds (perhaps thousands) of Windows users(since 1983)...I can understand that feeling...very well.  In 1998 I began using RedHat Linux and have tried nearly every Linux distro made in the last 10 years...Ubuntu is still my favorite for now...but that could possibly change.  What I'm after is results.  With Windows, I know that the results I'm hoping to get won't be there.  I know this from many many years of experience.  And I know from this experience that soon the financial impetus for anti malware vendors won't match the malware threat and Windows will become entirely impractical for business use.  As a Linux community, we do have a responsibility to have solutions that are ready to implement should this calamity come to pass.  We are very lucky that it hasn't come to pass already....but it soon will!


From: Ronny Hanssen <super...@gmail.com>
To: hobo...@googlegroups.com
Cc: Arthur Baldwin <eeng...@yahoo.com>
Sent: Monday, July 25, 2011 5:30 PM

Subject: Re: 1.3 Cookbook Beta

Quiliro Ordóñez

unread,
Jul 26, 2011, 3:37:33 PM7/26/11
to hobo...@googlegroups.com
El 26/07/11 10:05, Bob Sleys escribi�:

I agree with you. Then it would be adequate to remove the Windows
installation instructions in light of this.


--
Quiliro Ord��ez


09 821 8696
02 340 1517

"No se puede sacrificar la libertad por ning�n bien, por ninguna promesa
de pan o de paz o de justicia, porque ese pan tendr�a amargura de
veneno, esa paz ser�a de muerte, y esa justicia no ser�a justicia humana
ni tendr�a sentido." Alfredo P�rez G.

Arthur Baldwin

unread,
Jul 26, 2011, 3:53:04 PM7/26/11
to hobo...@googlegroups.com
No!  I'm very glad that the Windows instructions are there!  There are still many people who are not yet aware of the Windows dangers or the benefit of using Linux.  They should become familiar at least with Hobo, even if they have to use Windows.  And they should know that Hobo and ROR were designed by people in the Linux community and that the full benefit of ROR and Hobo is best realized on a Linux box.  Most of all...when they decide to try using Linux(and they will), it should be easy and painless to get ruby, rails and hobo up and running.  And there should be an authoritative place to find that information.


From: Quiliro Ordóñez <qui...@gmail.com>
To: hobo...@googlegroups.com
Sent: Tuesday, July 26, 2011 12:37 PM
Subject: Re: [Hobo Users] Re: 1.3 Cookbook Beta

El 26/07/11 10:05, Bob Sleys escribió:

> I think Ronny's point is so we need this discussion here?  There are no special Ubunutu instructions because Hobo isn't OS specific in any way. Yes there are some OS specific instructions to get Ruby working but that is covered in hundreds of other places.  Once Ruby and Gem works on your OS Hobo setup and install is totally OS neutral.  Thus no need to for OS specific instructions or discussions.

I agree with you. Then it would be adequate to remove the Windows
installation instructions in light of this.




-- Quiliro Ordóñez

09 821 8696
02 340 1517
"No se puede sacrificar la libertad por ningún bien, por ninguna promesa de pan o de paz o de justicia, porque ese pan tendría amargura de veneno, esa paz sería de muerte, y esa justicia no sería justicia humana ni tendría sentido." Alfredo Pérez G.

-- You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.



Quiliro Ordóñez

unread,
Jul 26, 2011, 4:05:05 PM7/26/11
to hobo...@googlegroups.com
El 26/07/11 14:53, Arthur Baldwin escribió:
No!  I'm very glad that the Windows instructions are there!  There are still many people who are not yet aware of the Windows dangers or the benefit of using Linux.  They should become familiar at least with Hobo, even if they have to use Windows.  And they should know that Hobo and ROR were designed by people in the Linux community and that the full benefit of ROR and Hobo is best realized on a Linux box.  Most of all...when they decide to try using Linux(and they will), it should be easy and painless to get ruby, rails and hobo up and running.  And there should be an authoritative place to find that information.

It is good that users migrate to freedom but it is more important that they understand the reason to do it.

I can make a guide for Trisquel which is exactly the same as Ubuntu but with no nonfree software. If it would be included, it would be nice.

Arthur Baldwin

unread,
Jul 26, 2011, 4:46:01 PM7/26/11
to hobo...@googlegroups.com
Ummm...let me be more specific....just a few clicks to select checkboxes in the "meta package" for "The Software Center" and ruby 1.9.2, rails 3.X.X, and Hobo 1.3 should be up and running.  Yes, probably rubygems should be used, but why can't it be used from within a meta package designed for The Software Center?


From: Quiliro Ordóñez <qui...@gmail.com>
To: hobo...@googlegroups.com
Sent: Tuesday, July 26, 2011 1:05 PM

Subject: Re: [Hobo Users] Re: 1.3 Cookbook Beta
--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+...@googlegroups.com.

Arthur Baldwin

unread,
Jul 26, 2011, 10:29:49 PM7/26/11
to hobo...@googlegroups.com
OK then....let me make this official...I'm willing to pay anyone who thinks they can make a meta package specifically for Ubuntu's "The Software Center" that's called say "Instant Hobo 1.3" which will successfully install (in the best possible way) rubygems (latest stable version), ruby1.9.2 (or later), rails 3.x.x (or latest stable version), hobo 1.3 or later, along with curl, a choice of VCS (probably git by default), and that can somehow issue a gem command with the appropriate parameters from within Ubuntu's Software Center.  This probably will involve requiring certain "minimum defaults".  But there should also be a few choices available to the end user before clicking "Install" that are within reason.  Maybe a choice of server engine, and database backend...for example.  This should have been done at least several months ago...but I'm very tired of waiting.  So if you are interested in the job....please respond....


From: Arthur Baldwin <eeng...@yahoo.com>
To: "hobo...@googlegroups.com" <hobo...@googlegroups.com>
Sent: Tuesday, July 26, 2011 1:46 PM

Arthur Baldwin

unread,
Jul 26, 2011, 10:43:46 PM7/26/11
to hobo...@googlegroups.com
Sent: Tuesday, July 26, 2011 7:29 PM

Bryan Larsen

unread,
Jul 26, 2011, 11:00:31 PM7/26/11
to hobo...@googlegroups.com
rubygems do not fit nicely inside of debian packages. For instance,
you can install Hobo 1.0 and 1.0.1 simultaneously. apt doesn't allow
that. There are several other problems. There are tons of flame
wars on the web throwing accusations back and forth. Here's one:
http://news.ycombinator.com/item?id=386036

This makes it hard to distribute ruby GUI programs[1]. Luckily there
are very few ruby GUI programs. Which is the chicken, which is the
egg? Instead, Ruby tends to be used to develop web apps and for
development, both of which have requirements different than widespread
software distribution.

For software development, you want to have one or more sandboxes so
you can work on bleeding edge code without breaking all of the other
apps on your system.

For that, the current best practice is RVM installed into the user's
home directories, which a debian package does not do. In other
words, even if rubygems and dpkg were better integrated, you'd be
better off installing via RVM than via apt-get or the Software Center.

Deploying to a server is a different story altogether. The easy
answer there is Heroku.

Bryan

[1] Hard is relative. It's still easier to do than it is on
Windows. And OSX does it wrong, too, but makes different mistakes.

Arthur Baldwin

unread,
Jul 26, 2011, 11:20:49 PM7/26/11
to hobo...@googlegroups.com
Ok then, if I leave out rubygems and include rvm, can you make a script that will automatically do all the stuff in the best possible way....that I can use from a terminal window?




From: Bryan Larsen <br...@larsen.st>
To: hobo...@googlegroups.com
Sent: Tuesday, July 26, 2011 8:00 PM

Subject: Re: [Hobo Users] Re: 1.3 Cookbook Beta
--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+unsub...@googlegroups.com.

Arthur Baldwin

unread,
Jul 26, 2011, 11:39:29 PM7/26/11
to hobo...@googlegroups.com
OK after reading Bryan Larsen's response I've decided to modify the requirements to the following:

simple script installation from terminal window (No Software Center)
No RubyGems but using RVM
at least give a choice of database backend (MySQL by default)
and git by default.


Sent: Tuesday, July 26, 2011 7:43 PM
Subject: [Hobo Users] New paying job available

Arthur Baldwin

unread,
Jul 26, 2011, 11:58:49 PM7/26/11
to hobo...@googlegroups.com
By the way...I already paid for Mark Hartl's video tutorials for ROR and found that installing git and curl in the way he describes no longer works.  Apparently curl must be installed first  and of course curl's latest stable version won't compile on my machine without errors in the sudo make install step.  Grrrr....

Sent: Tuesday, July 26, 2011 8:39 PM
Subject: Re: [Hobo Users] New paying job available

Arthur Baldwin

unread,
Jul 27, 2011, 2:51:41 AM7/27/11
to hobo...@googlegroups.com
A little more progress!  Seems like I'm always using the 64 bit version of Ubuntu 11.04.  Anyway, I decided to try Software Center just for git and curl and that worked!  So now on to the rest of the video tutorial....hope it doesn't mess anything else up.

Sent: Tuesday, July 26, 2011 8:58 PM

Arthur Baldwin

unread,
Jul 27, 2011, 3:23:40 AM7/27/11
to hobo...@googlegroups.com
Hmm...here's the output from a portion of the rvm installation output:

If you wish to install rbx and/or Ruby 1.9 head (MRI) (eg. 1.9.2-head),
then you must install and use rvm 1.8.7 first.

Does this mean I have to reinstall Ubuntu????  Or can I just install 1.8.7?
Is anyone beginning to understand my frustration yet?


Sent: Tuesday, July 26, 2011 11:51 PM

Bryan Larsen

unread,
Jul 27, 2011, 8:58:22 AM7/27/11
to hobo...@googlegroups.com
The recommended versions of Ruby for Hobo are 1.8.7 and 1.9.2. Not
1.9.2-head, but the latest 1.9.2 stable.

Hobo 1.0 is better tested on 1.8.7, and 1.3 is better tested on 1.9.2,
although both Hobos have been tested on both rubies.

1.0 is also well tested on JRuby 1.6.

So you should be good.

Bryan

Bryan Larsen

unread,
Jul 27, 2011, 9:05:39 AM7/27/11
to hobo...@googlegroups.com
1) apt-get install curl git

2) Follow the single user instructions here:
http://beginrescueend.com/rvm/install/

curl -s https://rvm.beginrescueend.com/install/rvm -o rvm-installer ;
chmod +x rvm-installer ; ./rvm-installer --version latest

echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
# Load RVM function' >> ~/.bash_profile

source ~/.bash_profile

3) ask RVM what else you should install

rvm notes

4) do what rvm says is necessary to install 1.9.2

apt-get install build-essential ...
etc.

5) install & use ruby 1.9.2

rvm install 1.9.2
rvm use 1.9.2

6) install hobo and its dependencies

gem install hobo -v 1.3.0.RC1

Bryan

kevinpfromnm

unread,
Jul 27, 2011, 11:44:58 AM7/27/11
to hobo...@googlegroups.com
I had an 1.0 app give an odd error using 1.9.2 stack on heroku.  Switching to 1.8.7 stack cleared that up.  That's not a hobo bug though, but a rails 2.3.11 bug I believe.

Arthur Baldwin

unread,
Jul 27, 2011, 12:50:31 PM7/27/11
to hobo...@googlegroups.com
By the way, I'm still waiting for someone to take an interest in writing a script for me...for pay.  I have not mentioned an amount because I'm not sure what is fair...you tell me.

Sent: Wednesday, July 27, 2011 5:58 AM

Subject: Re: [Hobo Users] New paying job available
--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+unsub...@googlegroups.com.

Arthur Baldwin

unread,
Jul 27, 2011, 2:09:11 PM7/27/11
to hobo...@googlegroups.com
I followed these directions with the slight difference that I chose to install as root when performing the instructions found in your step 2.
After reopening a terminal window and typing rvm --version it says "command not found", but it finds 19 similar commands.

Sent: Wednesday, July 27, 2011 6:05 AM

Subject: Re: [Hobo Users] Re: 1.3 Cookbook Beta

Bob Sleys

unread,
Jul 27, 2011, 2:26:31 PM7/27/11
to hobo...@googlegroups.com, Arthur Baldwin
First it's not really needed or recommended to do a root install on your development machine.

The install will modify your path and you'll need to do some tweaks to your bash profile to get rvm working best.

One of the trickiest parts is getting the rvm function to work in Ubuntu.

Here is what I did.

Edit your .bashrc and at the top replace
[ -z "$PS1" ] && return
With
#[ -z "$PS1" ] && return
if [[ -n "$PS1" ]] ; then 
Then at the bottom of the file add
fi
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
You'll now need to open a new command prompt to get the new .bashrc to run and then do a test to make sure rvm is setup correctly.  Note the above changes assumed you installed rvm into the default location (ie your home dir)  if you didn't then adjust accordingly.

To test the rvm setup run the following
type rvm | head -1
and the output should be
rvm is a function
Another thing I did is it's often confusion to know what ruby/gemset you are using with rvm since it's so easy to swtich and even have different terminals on different rubyies or gemsets.  So I found on the net and tweaked a script to update my command prompt to show which ruby/gemset I was on.

To use it in your .bashrc just above the fi line we added at the bottom add this

  if [ -f ~/.rvmprompt ]; then
      . ~/.rvmprompt
  fi

Now you need the .rvmprompt script which I've attached to this post.  Note be sure to set it to executable.

And again you'll need to start a new command prompt with each change you want to test to reload the .bashrc file.

Bob
.rvmprompt

Arthur Baldwin

unread,
Jul 27, 2011, 3:15:17 PM7/27/11
to hobo...@googlegroups.com
Obviously I am going to have to reinstall Ubuntu 11.04 again on my machine and redo the install for only my user and not as root...nothing works right.  Once again, I need a script written...please.  This is inhuman torture.

Sent: Wednesday, July 27, 2011 6:05 AM
Subject: Re: [Hobo Users] Re: 1.3 Cookbook Beta

Ronny Hanssen

unread,
Jul 28, 2011, 12:44:47 AM7/28/11
to hobo...@googlegroups.com
As a note: I am also using Ubuntu on my production server. I remember having some severe fights getting everything up'n'running. But, the problems I had was (like others have mentioned in this thread) not hobo related, they were Ruby, rvm, nginx and passenger related. Well, actually - mostly ruby_ee IIRC...

In any circumstance: I would welcome a ubuntu setup. I have *nothing* against that. But, someone needs to do it and when done it needs to be maintained. And - I am not against any other OS combination to be added neither. With a section like that I would have struggled less getting my Ubuntu server ready...

I think what I miss most of all in these situations is an authoritative guide on different "stacks". There are a fair amount of information on the internet, but the information is scattered and often for the wrong software combinations. Maybe someone wraps up a site similar to stackoverflow, but focusing on guides/scripts for different OS/software combinations. Maybe with branching like github for any scripts, for easy extends/customizations. Each "stack" would be for a given combination of software modules/versions, with stackoverflow comments and votes from other users on issues experiences or similar... These are wild ideas popping up as I write, but if anyone finds any value then please use my ramblings at will :)

Regards,
Ronny

Arthur Baldwin

unread,
Jul 28, 2011, 12:32:20 PM7/28/11
to hobo...@googlegroups.com
I used to write batch files for various software installation jobs and automated Windows workstation setups.  But that was many years ago and I've had "my fill" of that sort of thing.  I know scripts are much more capable than batch files, but I never took the time to learn how to use them and I don't really care to...besides...I don't have time to do anything like that.  But I know that there are a few guys out there that can write very good scripts that will even sense the distro name, version, and whether it's a 64 bit or 32 bit version and make the appropriate changes.  I'm well aware of my own limitations.  I know I need help. 


From: Ronny Hanssen <super...@gmail.com>
To: hobo...@googlegroups.com
Sent: Wednesday, July 27, 2011 9:44 PM

Subject: Re: [Hobo Users] Re: 1.3 Cookbook Beta
--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/hobousers/-/gbGFvEMTEhQJ.

To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+...@googlegroups.com.

Arthur Baldwin

unread,
Jul 28, 2011, 8:20:01 PM7/28/11
to hobo...@googlegroups.com
I'm not sure if anybody is secretly working on an installation script for Hobo 1.3 yet, but if you are, it would be nice to reply to this post to let me know of your intentions.  In case nobody is working on this idea, let me help you gain a little perspective:  How valuable would it be to you to have at least 10 times the number of active Hobo 1.3 developers actually testing and providing feedback on Hobo 1.3?  I, for one would be getting my son involved as a developer and recommending the same to many of my personal friends.  But as it stands, I can't honestly recommend that to anyone.  If and when such a script is designed, there should be a link from the hobocentral.org/blog page to download it.  And remember that I'm willing to pay for this to be done...and am expecting anyone doing this to tell me how much they want to be paid.  Still no takers?

Sent: Thursday, July 28, 2011 9:32 AM

Subject: Re: [Hobo Users] Re: 1.3 Cookbook Beta

Bob Sleys

unread,
Jul 28, 2011, 9:11:48 PM7/28/11
to hobo...@googlegroups.com, Arthur Baldwin
First off I think we need to figure out what your issues are.  Hobo itself installed with a single command.  So I really doubt you'r problem is installing Hobo but rather getting ruby and rails working.   On that subject I'll spend some time tomorrow putting together an update set on instructions for Ubuntu.

Bob

Arthur Baldwin

unread,
Jul 29, 2011, 2:15:27 AM7/29/11
to hobo...@googlegroups.com
You have a point, Bob.  But from a beginner's perspective since ruby and rails are absolutely required in order to do anything with Hobo....the problem is still preventing Hobo from working.  I'm asking for a script that will lay the foundations for Hobo to be useful with one command.


From: Bob Sleys <bsl...@gmail.com>
Sent: Thursday, July 28, 2011 6:11 PM

Subject: Re: [Hobo Users] Re: 1.3 Cookbook Beta

Owen

unread,
Jul 29, 2011, 9:03:49 AM7/29/11
to Hobo Users
Thanks, Bryan!

On Jul 27, 9:05 am, Bryan Larsen <br...@larsen.st> wrote:
> 1) apt-get install curl git
>
> 2) Follow the single user instructions here:http://beginrescueend.com/rvm/install/
>
> curl -shttps://rvm.beginrescueend.com/install/rvm-o rvm-installer ;

Owen

unread,
Jul 29, 2011, 9:12:29 AM7/29/11
to Hobo Users
Arthur,

Please let us know how Bryan's script works for you. We will respond
until it works perfectly.


Thanks,

Owen

On Jul 27, 9:05 am, Bryan Larsen <br...@larsen.st> wrote:
> 1) apt-get install curl git
>
> 2) Follow the single user instructions here:http://beginrescueend.com/rvm/install/
>
> curl -shttps://rvm.beginrescueend.com/install/rvm-o rvm-installer ;

Quiliro Ordóñez

unread,
Jul 29, 2011, 11:07:42 AM7/29/11
to hobo...@googlegroups.com
El 29/07/11 01:15, Arthur Baldwin escribió:
You have a point, Bob.  But from a beginner's perspective since ruby and rails are absolutely required in order to do anything with Hobo....the problem is still preventing Hobo from working.  I'm asking for a script that will lay the foundations for Hobo to be useful with one command.


This worked for me in Trisquel 5 beta which is ubuntu 11.04 with non-free packages removed.


Make a file on your server named hobo.bash with the following text and then make it executable (just type chmod u+x hobo.bash):

#    Copyright (C) 2011  Quiliro Ordóñez

#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.

#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.

#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.

#    quiliro [at] fsfla [dot] org

sudo apt-get -y update
sudo apt-get -y install wget curl build-essential bison openssl zlib1g libxslt1.1 libssl-dev libxslt1-dev libxml2 libffi-dev libyaml-dev libxslt-dev autoconf libc6-dev libreadline6-dev zlib1g-dev libcurl4-openssl-dev libsqlite3-0 sqlite3 libsqlite3-dev libmysqlclient16-dev libmysqlclient16 imagemagick libmagick9-dev git-core
wget -c ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p180.tar.gz
tar -xzf ruby-1.9.2-p180.tar.gz
cd ruby-1.9.2-p180
./configure --prefix=/usr/local && make && sudo make install
source ~/.bashrc
sudo gem install bundler sqlite3 passenger hobo --pre --no-ri --no-rdoc

Owen Dall

unread,
Jul 29, 2011, 11:18:52 AM7/29/11
to hobo...@googlegroups.com
Thanks for that, Quiliro.

--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.



--
Owen Dall, Chief Systems Architect
Barquin International

Bob Sleys

unread,
Jul 29, 2011, 11:50:31 AM7/29/11
to hobo...@googlegroups.com
If my virtualbox install of Ubunutu ever finishes I'll log all the steps to get a RVM install of ruby, rails and hobo.  If I get ambitious I'll create a script to do it all.

IMHO I think you are far better off using RVM than a system install of ruby and rails.  You can use different rubies and gemsets for each app.  Great if you work on more than one app.  
Also no need to root install anything other then some stuff to support compiling and your databases (mysql, sqlite3) etc.

Bob

Arthur Baldwin

unread,
Jul 29, 2011, 1:56:13 PM7/29/11
to hobo...@googlegroups.com
Quiliro,

I'm planning to use this "just for fun" after I reinstall Ubuntu 11.04 on my work machine.  Can you please rewrite it slightly for using MySQL as the database?

Thanks.

Arthur


From: Owen Dall <od...@barquin.com>
To: hobo...@googlegroups.com
Sent: Friday, July 29, 2011 8:18 AM

Subject: Re: [Hobo Users] Re: 1.3 Cookbook Beta

Quiliro Ordóñez

unread,
Jul 29, 2011, 3:00:23 PM7/29/11
to hobo...@googlegroups.com
El 29/07/11 12:56, Arthur Baldwin escribió:
Quiliro,

I'm planning to use this "just for fun" after I reinstall Ubuntu 11.04 on my work machine.  Can you please rewrite it slightly for using MySQL as the database?


This is it. I just added mysql-server on the apt-get line and removed all refferences to sqlite. Remember that your mysql rott password (which you will be asked to type twice) should not be the same as your other passwords.

After you copy this script, name it hobo.bash and make it executable (chmod u+x hobo.bash) you should run it with the following command:  ./hobo.bash

#    Copyright (C) 2011  Quiliro Ordóñez

#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.

#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.

#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.

#    quiliro [at] fsfla [dot] org

sudo apt-get update
sudo apt-get -y install wget curl build-essential bison openssl zlib1g libxslt1.1 libssl-dev libxslt1-dev libxml2 libffi-dev libyaml-dev libxslt-dev autoconf libc6-dev libreadline6-dev zlib1g-dev libcurl4-openssl-dev libmysqlclient16-dev libmysqlclient16 imagemagick libmagick9-dev git-core mysql-server
wget -c ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p180.tar.gz
tar -xzf ruby-1.9.2-p180.tar.gz
cd ruby-1.9.2-p180
./configure --prefix=/usr/local && make && sudo make install
source ~/.bashrc
sudo gem install bundler passenger hobo --pre --no-ri --no-rdoc

Quiliro Ordóñez

unread,
Jul 29, 2011, 3:47:22 PM7/29/11
to hobo...@googlegroups.com
Last script is not ready. There is a bug for mysql.
--
Quiliro Ord��ez

09 821 8696
02 340 1517
"No se puede sacrificar la libertad por ning�n bien, por ninguna promesa
de pan o de paz o de justicia, porque ese pan tendr�a amargura de
veneno, esa paz ser�a de muerte, y esa justicia no ser�a justicia humana
ni tendr�a sentido." Alfredo P�rez G.

Quiliro Ordóñez

unread,
Jul 29, 2011, 4:06:20 PM7/29/11
to hobo...@googlegroups.com
El 29/07/11 12:56, Arthur Baldwin escribió:
Quiliro,

I'm planning to use this "just for fun" after I reinstall Ubuntu 11.04 on my work machine.  Can you please rewrite it slightly for using MySQL as the database?


This script has been tested. Remember that your mysql root password (which you will be asked to type twice) should not be the same as your other passwords for security reasons.

After you copy this script, name it hobo.bash and make it executable (chmod u+x hobo.bash). You should run it with the following command:  ./hobo.bash
#    Copyright (C) 2011  Quiliro Ordóñez

#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.

#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.

#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>
.

#    quiliro [at] fsfla [dot] org

sudo apt-get update
sudo apt-get -y install wget curl build-essential bison openssl zlib1g libxslt1.1 libssl-dev libxslt1-dev libxml2 libffi-dev libyaml-dev libxslt-dev autoconf libc6-dev libreadline6-dev zlib1g-dev libcurl4-openssl-dev libmysqlclient16-dev libmysqlclient16 imagemagick libmagick9-dev git-core mysql-server
wget -c ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p180.tar.gz
tar -xzf ruby-1.9.2-p180.tar.gz
cd ruby-1.9.2-p180
./configure --prefix=/usr/local && make && sudo make install
source ~/.bashrc
sudo gem install mysql2 -v 0.2.6
sudo gem install rake -v 0.9.2
sudo gem install bundler passenger hobo --pre --no-ri --no-rdoc

Arthur Baldwin

unread,
Jul 29, 2011, 4:06:44 PM7/29/11
to hobo...@googlegroups.com
OK...awaiting the next version!


From: Quiliro Ordóñez <qui...@gmail.com>
To: hobo...@googlegroups.com
Sent: Friday, July 29, 2011 12:47 PM

Subject: Re: [Hobo Users] Re: 1.3 Cookbook Beta

Last script is not ready. There is a bug for mysql.
-- Quiliro Ordóñez

09 821 8696
02 340 1517
"No se puede sacrificar la libertad por ningún bien, por ninguna promesa de pan o de paz o de justicia, porque ese pan tendría amargura de veneno, esa paz sería de muerte, y esa justicia no sería justicia humana ni tendría sentido." Alfredo Pérez G.

-- You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+unsub...@googlegroups.com.

Quiliro Ordóñez

unread,
Aug 5, 2011, 4:20:09 PM8/5/11
to hobo...@googlegroups.com
This script has been tested. Remember that your mysql root password
(which you will be asked to type twice) should not be the same as your
other passwords for security reasons. Remeber to configure your
database.yml before connecting to you DB.

After you copy this script, name it hobo.bash and make it executable
(chmod u+x hobo.bash). You should run it with the following command:
./hobo.bash

#!/bin/bash

#

# Copyright (C) 2011 Quiliro Ord��ez

# This program is free software: you can redistribute it and/or modify

# it under the terms of the GNU Affero General Public License as

# published by the Free Software Foundation, either version 3 of the

# License, or (at your option) any later version.

# This program is distributed in the hope that it will be useful,

# but WITHOUT ANY WARRANTY; without even the implied warranty of

# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

# GNU Affero General Public License for more details.

# You should have received a copy of the GNU Affero General Public License

# along with this program. If not, see<http://www.gnu.org/licenses/>.

# quiliro [at] fsfla [dot] org

sudo apt-get -y update

sudo apt-get -y install wget curl build-essential bison openssl zlib1g libxslt1.1 libssl-dev libxslt1-dev libxml2 libffi-dev libyaml-dev libxslt-dev autoconf libc6-dev libreadline6-dev zlib1g-dev libcurl4-openssl-dev libmysqlclient16-dev libmysqlclient16 imagemagick libmagick9-dev git-core mysql-server

wget -c ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p180.tar.gz

tar -xzf ruby-1.9.2-p180.tar.gz

cd ruby-1.9.2-p180

./configure --prefix=/usr/local&& make&& sudo make install

source ~/.bashrc

sudo gem install mysql2 -v 0.2.6

sudo gem install bundler passenger hobo --pre

--
Quiliro Ord��ez


09 821 8696
02 340 1517

Quiliro Ordóñez

unread,
Aug 5, 2011, 4:35:29 PM8/5/11
to hobo...@googlegroups.com
El 05/08/11 15:20, Quiliro Ord��ez escribi�:

> This script has been tested.


It is the MySQL version.

Arthur Baldwin

unread,
Aug 5, 2011, 6:27:47 PM8/5/11
to hobo...@googlegroups.com
I'm a very busy guy, Quiliro.  I probably won't be getting the results to you until Monday or Tuesday of this coming week (8th or 9th).  I have a lot of work lined up.  But I will get very thorough results to you by then.

Arthur


From: Quiliro Ordóñez <qui...@gmail.com>
To: hobo...@googlegroups.com
Sent: Friday, August 5, 2011 1:35 PM

Subject: Re: [Hobo Users] Re: 1.3 Cookbook Beta

El 05/08/11 15:20, Quiliro Ordóñez escribió:

> This script has been tested.


It is the MySQL version.
-- Quiliro Ordóñez

09 821 8696
02 340 1517
"No se puede sacrificar la libertad por ningún bien, por ninguna promesa de pan o de paz o de justicia, porque ese pan tendría amargura de veneno, esa paz sería de muerte, y esa justicia no sería justicia humana ni tendría sentido." Alfredo Pérez G.

-- You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages