Anyone setup "wraith" visual comparison on centos? - testing

I am trying to run wraith script on centOS. Ruby installation get stuck with 2.3.0 version.
Appreciate if anyone has any steps?
thanks,
Raj

Try to install ruby with rvm instead:
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
\curl -sSL https://get.rvm.io | bash -s stable
Afterwards:
Reload shell configuration & check
source ~/.rvm/scripts/rvm
Check …
ruby –v
rvm –v
Start ruby
rvm ruby-2.x.x
As a working alternative you could use the prebuilt Wraith docker container:
docker pull bbcnews/wraith

Related

how to install mono latest Alpha version on Ubuntu 16.04

I tried to do the guide on the mono website, but I don't really understand it as I am not a linux guy and surely not an expert in servers.
I don't find anything on Google.
No matter what I do, when I use the "mono --version" command to see if the install was successful, I get Mono 4.6.1
If you are looking for alpha versions, you will want to setup your package manager to pull the Mono Continuous Integration packages as these are built for every commit to the repo at https://github.com/mono/mono.
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://jenkins.mono-project.com/repo/debian sid main" | sudo tee /etc/apt/sources.list.d/mono-jenkins.list
sudo apt-get update
Ref: http://www.mono-project.com/docs/getting-started/install/linux/ci-packages/#debian-ubuntu-and-derivatives
Read the Usage section on how to select a build/package.

How to use RVM in CSH environment?

I have installed RVM using following procedure (https://rvm.io/rvm/install)
curl -sSL https://get.rvm.io | bash -s stable --ruby --rails - it has installed RVM (single-user) in $HOME. (Question: How do I specify a non-default RVM installation path in above command?)
Updated $PATH in my ~/.cshrc to have RVM bin path as below. set path = ($HOME/.rvm/bin ${path})
prompt>which rvm
$HOME/.rvm/bin/rvm
prompt>rvm -v
rvm 1.26.9 (latest) by Wayne E. Seguin <wayneeseguin#gmail.com>, Michal Papis <mpapis#gmail.com> [https://rvm.io/]
prompt>rvm list
rvm rubies
# No rvm rubies installed yet. Try 'rvm help install'.
Though I have used --ruby and --rails in step (1), I noticed that Ruby & Rails were not installed as part of (1). So trying to install Ruby myself, using rvm install ruby
Per RVM installation instruction, I need to source $HOME/.rvm/scripts/rvm, which uses bash to execute. But our entire environment has tcsh as shell, and I cannot afford to change it.
prompt>source ~/.rvm/scripts/rvm
if: Too few arguments.
It is erroring out since our default shell is TCSH and the script is written in BASH.
prompt> echo $SHELL
/bin/tcsh
And we use ~/.cshrc to configure our environment.
Can someone help me to fix the setup, so that I can use RVM?
Thanks in advance.
I tried following options:
Using this as workaround now: How do I use RVM with tcsh? (it doesn't work good when I try running rvm use to switch Ruby Version.
prompt>rvm use 1.8.6-p383
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for an example.
http://po-ru.com/diary/using-rvm-with-tcsh/ does not help
RVM is not a function, selecting rubies with 'rvm use ...' will not work is not a solution for my problem. I verified it is not working.
Unfortunately, we are not using ~/.bashrc or ~/.zshrc environments? Does it mean RVM is not supporting CSH/TCSH environments?
Thanks for all your help in advance.

Correct install for RVM and Chef

I installed rvm for multi-user on my server.
\curl -sSL https://get.rvm.io | sudo bash -s stable
sudo usermod -a -G
rvm ubuntu rvm install 2.1.1
rvm --default use 2.1.1
I also installed Chef
curl -L https://www.opscode.com/chef/install.sh | sudo bash
But when i run "gem install chef" under ubuntu i get
You don't have write permissions into the /opt/chef/embedded/lib/ruby/gems/1.9.1 directory
Obviously i can just change the permissions but I'm assuming this isn't how i should set this up.
Any help would be greatly appreciated.
The omnibus installer, aka:
curl -L https://www.opscode.com/chef/install.sh | sudo bash
Installs Chef for you. You don't need to install Chef. You can run chef as chef-client or chef-solo.
Chef get's installed into /opt/chef and it packages it's own Ruby, etc.
With respect to your RVM issues:
Have you added the required lines to your .bashrc?
Are you actually executing a login shell (-l)?
Why are you trying to install chef into rvm?

Compiling libapache2-svn for Apache 2.4.4

I want to use Apache 2.4.4 with SVN on Ubuntu server 12.04 (Precise Pangolin). But when I use
apt-get install libapache2-svn
I get the following dependencies error
The following packages have unmet dependencies:
libapache2-svn : Depends: apache2.2-common but it is not going to be installed
Googling around I got some suggestion about compiling from source by hand. I don't know how to do that. How can I do it?
I have two solutions:
Follow the instructions in this Server Fault Q&A.
*Note: Create another user if you're using a root account on the server.
I've asked Ondřej Surý on Launchpad to add Subversion to his Apache PPA. You can add Ondřej Surý's PPA to perform a normal update/upgrade.
You did ask Ondrej to include Subversion in his PPA launchpad. But I couldn't install the libapache2-svn package after adding Ondrej's PPA.
Somehow the instructions provided for compiling didn't work for me so here's an alternative way to get it working.
Reference:
(https://askubuntu.com/questions/312568/where-can-i-find-a-subversion-1-8-binary)
WANDisco has Subversion 1.8 for Ubuntu then:
sudo sh -c 'echo "# WANdisco Open Source Repo" >> /etc/apt/sources.list.d/WANdisco.list'
sudo sh -c 'echo "deb http://opensource.wandisco.com/ubuntu precise svn18" >> /etc/apt/sources.list.d/WANdisco.list'
wget -q http://opensource.wandisco.com/wandisco-debian.gpg -O- | sudo apt-key add -
sudo apt-get update
After that:
apt-cache show subversion | grep '^Version:'
And then you should be good to install normally:
sudo apt-get install subversion libapache2-svn

RVM Installation

I am trying to install rvm on ubuntu 11.10.
I have installed it using following command through curl.
curl -L get.rvm.io | bash -s stable --auto-dotfiles
On terminal it specifies that rvm has been installed properly and I have checked .rvm directory has been created properly in my home directory and in .rvm directory version file is present but when I write rvm -v on terminal it gives following msg
~$ rvm -v
The program 'rvm' is currently not installed. You can install it by typing: sudo apt-get install ruby-rvm
Please help.
Did you add the PATH to your .bashrc file?
[[ -s "$HOME/.rvm/src/rvm/scripts/rvm" ]] && . "$HOME/.rvm/src/rvm/scripts/rvm"
After you added it, reload it:
source ~/.bashrc
EDIT: this is not recommended way of RVM, rvm does shell file initialization, if you need force this process run rvm get head --auto-dotfiles