How to code/run Ruby on Chromebook [closed]
Asked Answered
M

8

7

On the desktop, I can use a text editor with the ruby interpreter to run everything, but there isn't an interpreter available for Chromebook. Is there any online software/program/webapp that would let me run Ruby code or emulate it? Kind of like Codeacademy where you put your stuff into the one section and it displays the results in another 'console' section.

I found something called OpenShift, and I'm wondering if it would let me upload a .rb file and have it run or something so I can see what I'm making.

Mer answered 1/1, 2014 at 12:17 Comment(1)
Thank you for the edit, sawa. I'm kind of new to StackExchange (this is my 2nd post ever) and don't know how to ask effective questions yet.Mer
U
1

One great online code editor to keep in mind is Github. You can create and edit files right in the browser. You could then sign up for a free Heroku account or the free tier of Amazon EC2. Heroku can pull directly from your Github project. EC2 can give you a complete environment to work in, though you'll have to set it up yourself just like you would on your own machine.

Ulcerate answered 1/1, 2014 at 21:6 Comment(2)
The Heroku tip is kind of what I was hoping to get done with OpenShift. I'm fine with doing it w/ Heroku instead. I've looked all over for a tutorial on how to do it; wondering if you know of any to do that sort of thing? I'm very new to this kind of stuff, and haven't used a PaaS before or anything involving servers or anything fancy like that.Mer
Well, getting an app that is in a github repo onto Heroku in not "hard" at all. But getting your account set up, installing the Heroku tools on your laptop or EC2 instance, setting up your DB on Heroku, etc... these are all task that you'll have to take on by reading the documentation at Heroku. No way around it. Heroku's docs are really thorough.Ulcerate
P
6

Install linux with Crouton and you can run/install libs etc as you need to

Just found another way...run Servers Ultimate from your Android phone or tablet and access through the hotpoint wifi

Pepillo answered 7/2, 2014 at 9:46 Comment(0)
L
5

Here are some web IDEs that support Ruby.

There's also a Chrome extension called SourceKit, which is a bit like TextMate, but saves files directly on Dropbox. However, that alone will not be enough to actually run the code...

Leffen answered 1/1, 2014 at 13:34 Comment(3)
+1 for the chrome version..I didn't aware of this.Recognize
Yes, I downloaded SourceKit a while ago to try it out when I needed a text editor for HTML and CSS, but after agreeing to connect to Dropbox it would just redirect to about:blank and nothing more. I tried reinstalling it again just now; same issue, it won't connect to Dropbox. Also, Codenvy doesn't let you run the code: docs.codenvy.com/user/supported-languagesMer
I use to write code on a chromebook like this it was interesting experience. eq8.eu/blogs/18-chromebook-for-web-developersYelmene
R
1

Yes there is, Try here tutorialspoint.

Click Try it

enter image description here

enter image description here

Recognize answered 1/1, 2014 at 12:19 Comment(2)
The limitation of this is you can't load any libraries that aren't already in Standard Lib. Try to require '... something and if will give you an error.Ulcerate
@Ulcerate Yes. only core and standard lib will be supported..Recognize
U
1

One great online code editor to keep in mind is Github. You can create and edit files right in the browser. You could then sign up for a free Heroku account or the free tier of Amazon EC2. Heroku can pull directly from your Github project. EC2 can give you a complete environment to work in, though you'll have to set it up yourself just like you would on your own machine.

Ulcerate answered 1/1, 2014 at 21:6 Comment(2)
The Heroku tip is kind of what I was hoping to get done with OpenShift. I'm fine with doing it w/ Heroku instead. I've looked all over for a tutorial on how to do it; wondering if you know of any to do that sort of thing? I'm very new to this kind of stuff, and haven't used a PaaS before or anything involving servers or anything fancy like that.Mer
Well, getting an app that is in a github repo onto Heroku in not "hard" at all. But getting your account set up, installing the Heroku tools on your laptop or EC2 instance, setting up your DB on Heroku, etc... these are all task that you'll have to take on by reading the documentation at Heroku. No way around it. Heroku's docs are really thorough.Ulcerate
A
1

Nitrous has a powerful chrome application with native keyboard shortcuts for the IDE, and a number of popular starter templates, including ruby. The first container is 100% free, you can check out the chrome application here:

https://chrome.google.com/webstore/detail/nitrous-pro/efdcneeepllhjlbejkfnaolelbpdacai

enter image description here

enter image description here

enter image description here

Antonio answered 24/7, 2015 at 21:15 Comment(0)
S
0

A friend of mine is a Chromebook user / software engineer and I'm thinking of following him.

He knows VIM and does all of his development on a linux instance that costs $10/mo at linode.com. I think the Chromebook paradigm is that you keep your activities inside of Chrome.

You can lose a lot of time keeping a development environment on your laptop, regardless of its OS.

Meanwhile the VPS can be used from anywhere, even when your laptop dies or you forgot your power cable at home.

If you're new to software development then I bet Cloud9 is a better place to start, even though I haven't tried it yet.

Semasiology answered 21/9, 2015 at 1:55 Comment(0)
B
0

It's also very easy to install linux on a Chromebook these days. See, for example, the Arch wiki explaining the process:

https://wiki.archlinux.org/index.php/Chrome_OS_devices

Brighton answered 21/3, 2017 at 15:39 Comment(0)
L
0

First install anaconda.

Then conda install -c ruby-lang ruby

Source: https://anaconda.org/ruby-lang/ruby

Liking answered 22/11, 2017 at 14:55 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.