I installed Ubuntu Desktop 12.04 LTS in VirtualBox on my Macbook Pro (i7, 4gb ram) in order to do development. Shockingly it's not very snappy (quick/responsive). I want to know which distributions of Linux are small/light but can be used for Rails development in Virtualbox.
Thank you
I did the same using Lubuntu (the light version of ubuntu) installed on a virtual disk. Moreover, I m using a portable version of VirtualBox to have everything on a usbstick.
I ran the Lubuntu from the usbstick and began to develop some rails apps but the OI was not that great for user experience so I copied the virtual disk with lubuntu on the harddisk together with the virtualbox folder. With this setup it work realy fine!
Also, I'm using the guest additions in order to keep shared folders on the usbstick to share the projects amongst machine.
Hope it can help you in your experience.
I use arch linux when developing. It is not designed with being “easy to use” as priority bu it is customisable for everything you need. I like the arch linux way.
Linux VM is not necessary for developing RoR apps on OSX.
Try to google on how to develop RoR apps on native OSX.
Related
it is possible to install docker desktop on virtual machine (vmware) windows 10 on a VMWARE ESXI ?
i am trying to install desktop docker on my vmware virtual machine with windows 10.
I installed the wsl2 support but at the end of the installation docker crashes with the following error:
Docker desktop 4.0.1
Installation failed
Component CommunityIstaller.ServiceAction failed to start services: The service did not respond to the start or control request in a timely fashion
I have done several tests but I cannot avoid this crash in any way.
The Operating System is a build that meets the minimum requirements to install Docker.
However, I noticed that Hyper-V is not enabled in the windows features. can this be a problem?
I think maybe it's a grafted virtualization problem because I install docker inside a VM. it's possible?
How can I solve? (or do you think that i will fix this problem with linux virtual machines?)
Does your host machine have all the advanced flags for 'efficient' nested virtualization? I wouldnt really recommend a third layer install of docker (as the final container is then virtual , on paravirtual (wsl2) on virtual (HyperV), on virtual (Esxi). I heavily assume the performance will be terrible.
And yes: You need Hyper-V, it's a requirement still. I assume, as you say its not available on the features, youre running a windows 10 home? Then sorry, you need at least Windows 10 Pro for Hyper-V support.
But as youre running a ESXI host, go the better performing way: Install any Linux distro of your choise, install docker there - if you wanna use it for Visual Studio etc. , you can still remotely debug etc. - and its performing better than on an a even deeper nested virtualized windows-wsl2. And btw: if its because of GUI, simply install the free Visual Studio Code, it offers Docker Tools which offer you many configiruation and monitoring options in a GUI , without enforcing you to do such a super deep nesting.
Yes, it's definitely possible. I'd probably check the hardware assisted virtualization (if available) is enabled. If so, you might want to make sure you've satisfied the rest of the requirements for the WSL2 backend deployment. If you're still having issues, try an older version and try upgrading from there.
I am trying to install ruby on rails on my windows. But after searching , I came to know that the best combination for ruby is either MAC or LINUX OS. But I m having laptop with windows 10. So can i install and run ruby and rails in UBUNTU inside VMware or which is the best option available?
Not sure what version of Windows 10 you have, but if you have the version that supports Hyper-V you have two good options.
http://vagrantup.com
Using either Oracle's Virtual Box or Hyper-V you can basically have a dedicated VM on your local box in the time it takes to download a pre-packaged box. I used this for a long time, though I now use http://c9.io as a cloud based IDE.
Step 1. Download the Oracle VM Virtual box from here.
Step 2. Download the Ubuntu ISO file. 64 bit Windows supports both 32 bit as
well as 64 bit guest OS. If your machine is a 64 bit machine then
download ubuntu-14.04.3-desktop-amd64.iso.
Step 3. Enable Intel vt-x from the BIOS menu.
Step 4. Disable Hyper-V platform from Turn windows features on or off.
Step 5. Insert the ISO image into the virtual CD/DVD drive as instructed here.
Step 6. Once the Ubuntu is installed on your VM. Install virtual box guest additions and it will be mounted inside the /media folder and at the right hand corner there will be a button to install the software and you're done with your setup.
Is Vagrant a good solutions for creating a Rails environment in windows?
I have a powerful Windows 8 64bit desktop. I recently did a project with RoR and fell in love with it. As I found out, installing RoR on windows is just bleh; so I created a dual boot to ubuntu. As a creative developer, I find it rather difficult to get any of the "creative" done in ubuntu because of the lack of my typical creative tools.
I read a bit about a tool called Vagrant; however, I'm still unsure if it meets my requirements: adobe suite, sublime text, git, rails, rails friendly OS(mac?/ubuntu)
Typical duties: edit an image in photoshop(windows), drop it to project assets in VM?
Typical duties: push/pull to git; ssh to VPS server?
Also, I hear you can install mac os in the VM do you think thats a good option? (because I want to try their new OS)
Installing osx in Vagrant is probably possible but it would likely be quite hard, and its not really what vagrant is designed for.
As for your other questions vagrant sounds like the perfect fit.
With Vagrant you could start up an ubuntu vm and get your rails setup going. Then you could just forward a port on your local machine to the vm and load the rails site as if it were running locally on your windows PC. A quick google gets this vagrant box that looks like it might work for you - https://github.com/amaia/rails-starter-box
To work with the site you can just share a folder between the vm and your local machine which will allow you to edit images and code with your windows apps (Photoshop, sublime) so you don't actually need to install these in the ubuntu vm at all, and can pretty much work as normal.
Git is much the same... I prefer to SSH into the vagrant box and use git on the command line in ubuntu but you can just as easily use gitbash or tortoisegit from windows in the repo folder... works just as well.
A good alternative is, https://github.com/fgrehm/ventriloquist
"Ventriloquist combines Vagrant and Docker to give developers the ability to configure portable and disposable development VMs with ease. It lowers the entry barrier of building a sane working environment without the need to learn tools like Puppet or Chef."
I am currently starting Ruby on Rails development and currently use Windows (XP or 7), but I find lots of cases where gems don't seem to do what they should or its a pain to install and use them under Windows, like twitter-bootstrap seems fine for Mac OS but I had to work out that sass-bootstrap was better for Windows. It just goes on and on, like today I cannot seem to get launchy to do its thing when RSpec testing, although I know that my lack of experience doesn't help.
So should I just get a Mac ? Would getting a Mac give me an easier life ? Most RoR developers seem to use them and most example tutorials seem to assume I do to.
Thanks for any advice
The simplest answer is you can do RoR development on any of the platforms easily.
Personally, I started doing development in Windows, then switched to VirtualBox on windows running Ubuntu. I now have a MacBook Pro and must say it's the happiest environment so far!
Windows - Reasonably straightforward to install rails, but seemed much slower that other enviroments. Lack of simple console with color highlighting was annoying
Ubuntu - Faster than under windows (even when virtualized!). If you don't know linux, it's a lot less fun, steep learning curve for command line stuff and lots of dependencies to resolve
Mac - Best of both worlds, pretty UI for day to day stuff, awesome command line support, Ruby and RoR run super fast on MacBook Pro.
I don't use a mac, I use linux, but I switched from Windows early in my experience with Rails. Using a mac is way better than using windows. The cheap option is to just dual-boot your windows machine with Ubuntu.
Just get off of windows.
See this for more details:
Getting Ruby on Rails environment working and installing sqlite3
Edit: VirtualBox is also an option for those whose processor supports it.
i would suggest to try out with any linux versions like Ubuntu, centos, fedora...
I think you can use linux version - ubuntu 12.04 because there are some ruby gems that are not working on windows like rubyracer, less-rails.
Install VirtualBox and run an Ubuntu or Redhat virtual linux machine.
I develop in Rails under Windows at work and at home most of the time. There are a few instances where gems won't work or will require a little more work to get running properly. There are also instances where developing on Windows and deploying to Linux/*NIX environment can cause problems, usually involving Windows-specific gems in your Gemfile.lock which aren't compatible on Linux/*NIX.
All-in-all, it's not too much trouble as long as you watch out for the gotchas.
I also use Mac OS X for Rails development and I like the development experience much more than I do on Windows. That being said, I certainly don't need a Mac to be able to develop in Rails effectively.
I also started with Rails development and recently bought myself a MacBook Pro. A Mac has solutions for running Windows, in case you also still need to do development on the Microsoft technology stack. You can install Windows via Bootcamp, which is a built in solution. Or run Windows in a virtual instance with virtualization software like Parallels.
hope this helps,
Anthony
Hello I've been a Rails developer on Windows for quite some time now, but I recently completed my biggest project yet (it's quite extensive, took me over a year to build) but I am having trouble deploying it. The combination of it's size, complexity and a windows environment is making it needlessly complex to deploy. I am thinking about getting an old mac mini and using it just for rails development.
Either that or install unix on another box.
Is there any way I can port my app to this mac or linux machine, without having to start over? I can't find any resources on the internets about this.
Rails is designed to be fairly platform flexible. What gems are you using in your application that won't run on linux / OS X? Usually compatibility issues run the other way (as very few Rails professional developers run Windows). It is hard to debug when you don't include any of the errors you get, etc.
Unless you have very specific system calls in your app there shouldn't be any need to "port" anything as it should work as is on Linux or OS X. Out of curiosity, what kind of problems are you running into with deployment?