HelloWorld with Ring in Linux

Do you miss your Linux while developing with Ring on Windows ?

Alright, I’ve found a way to develop Ring on Linux with some tricks.

Just bear in mind that there will be a Linux version of Ring and it’s coming so soon, but this trick is for impatient geeks.

First of all if you don’t have the “Ring” binary files, simply you’ll find them here .

Now make sure you have “Wine” installed on your machine, if it doesn’t exist, then use the following code by opening your Linux terminal ( ALT + CTRL + T ).

sudo add-apt-repository ppa:ubuntu-wine/ppa -y && sudo apt-get update && sudo apt-get install wine

After that, make sure that “Wine” is successfully installed into your machine by checking its version.

wine --version

The result of that code should be the version of installed “Wine“. My version might be older than yours, but it’s still okay and no difference at all. wine output

Then, now we have “Wine” installed and we’ve downloaded “Ring” binary files.

In order to start your development using Ring, you should use Windows command prompt for building your project. Same thing will be done here, Wine provides the same command prompt and it could be found easily inside its directories, especially in system32 folder.

Okay, now you should go to that folder. You can do it in 2 ways.



Now it will show a new window. You should follow this sequence of folders in order to find cmd.exe

windows -> system32 -> cmd.exe

Okay, now cmd.exe is found. You should do the following to have it running.




Alternatively, we will go to Wine directory using the following instructions.

  1. open your file manager
  2. press on the address bar to enter address
  3. insert this address ” /home/[user name]/.wine/drive_c/windows/system32
  4. there you’ll find cmd.exe
  5. Right click and choose “Open with Wine Windows Program Loader”



Alright, this is special for who like the “Terminal” interface and who used to develop in terminal.

Now, just in order to let cmd.exe work successfully. you’ll have to use the following code

wine /home/[username]/.wine/drive_c/windows/system32/cmd.exe

Oh well, now everything is ready. Lets give it a try.

Okay, I have my Ring binary files downloaded at my home directory. now lets make a HelloWorld project.


1- Navigate to your Ring binary files folder.



2- I’ve opened my terminal and decided to run that code. This code opens gedit inside bin directory and it makes helloworld.ring file.



And that’s “Hello World” code written inside gedit.



Finally, after making helloworld.ring. You should open cmd.exe and build helloworld.ring. In order to see cmd.exe just like it’s in the picture below, you should follow instruction/s (1) or (2) only.

After opening your cmd.exe, go to your Ring binary files and build the .ring file as it’s shown below



Okay, now if you want to build helloworld.ring using your Linux terminal. Then you should follow (3) to let it work successfully.

Navigate to your Ring folder, then to bin folder.



Now open terminal inside it, just to ease the directory things, and also bec we want that directory as a ready input for cmd.exe.



Type exactly like this code.

wine /home/[username]/.wine/drive_c/windows/system32/cmd.exe .

this code tells Terminal to open cmd.exe using wine by supplying the current directory as input to that cmd.exe. That’s why I used to open Terminal inside bin/ and I’ve used [ . ] to send current directory to cmd.exe. 


Press Enter. You’ll see some output which is useless (maybe it’s with me only). Just keep pressing Enter until you have your cursor and path fixed and waiting for your code.

terFinal BAAM.

just ignore what’s in between both input and output ( if existed ) this undesired output is all about wine directory  checking and so forth.

So, That’s it. I hope you liked it. Feel free to ask if you faced any vagueness stuffs.

Thanks 😀


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s