Die siberas GmbH ein auf Sicherheitsanalysen und Penetrationstests spezialisiertes Beratungsunternehmen, welches Sie herstellerunabhängig und kompetent im Bereich IT-Sicherheit berät.
As most of the common linux distribution also Kali Linux has its own ruby package. But using these pre-built packages is often a pain in the … ahm … not the best choice, especially if you need to compile your own modules. From my experiences with Ruby on linux, I recommend to use RVM (Ruby Version Manager) for installing Ruby. This little tutorial will show you how to install (FX)Ruby on Kali Linux.
I assume you’re using Kali Linux as an unprivileged user (not/never root!). If not, it’s not my problem ;) If running as root you should create an unprivileged user with the following commands:
Now logout ‘root’ and login as your new user
Note: The following steps are meant to be executed as an unprivileged user! Otherwise RVM will install itself as a multi-user-environment which will not work for this tutorial.
These packages are necessary to compile fox-toolkit, fxscintilla and opengl which are essential for fxruby.
Now it’s time to lay back and get a coffee …
Installing RVM is very straight forward. More details can be found here.
Before we continue with installing Ruby we should make our bash running as a login-shell. If you want to learn more about how to integrate RVM into Gnome, I recommend this article. So, first check “Run command as login shell” option under Terminal->Edit->Profile Preferences.
Next, we have to edit ~/.bash_profile to make it look like this:
In case you want to use WATOBO you should install Ruby 1.9.3. No lower version and no higher! Open a new terminal and type:
Now it’s time to lay back and get a 2nd coffee ….
Re-check your ruby path which should point into your home directory:
Now everything should be fine and you can continue installing gems you like, like fxruby, opengl, …
[as]
ruby 2 fxruby 1