How to install Python 2.7.6 on CentOS 6.3

How to install Python 2.7.6 on CentOS 6.3

(6.2 and 6.4 okay too, probably others)

CentOS 6.2 ships with Python 2.6.6 and depends on that specific version. Be careful not to replace it or bad things will happen. If you need access to a newer version of Python you must compile it yourself and install it side-by-side with the system version.

Here are the steps necessary to install Python 2.7.6. Execute all the commands below as root. Either log in as root temporarily or use sudo.

[Read more…]

Restart Unicorn with Capistrano

The following tasks is what I use for starting  , stopping, restarting and my unicorn server:

 



desc "Start unicorn"
task :start, :except => { :no_release => true } do
  run "cd #{current_path} ; bundle exec unicorn_rails -c config/unicorn.rb -D -E production"
end

desc "Stop unicorn"
task :stop, :except => { :no_release => true } do
  run "kill -s QUIT `cat #{shared_path}/pids/unicorn.pid`"
end

desc "Zero-downtime restart of Unicorn"

task :restart, :except => { :no_release => true } do

run "kill -s USR2 `cat #{shared_path}/pids/unicorn.pid`"

end

Packer with Azure

Yes! It's works.

First of all you need to install packer. After that – Azure plugin for Packer (you could download executable package or compile proper package with GOlang placing it to directory with packer plugins).

In my case I used *.exe files, downloaded from Github release. Also you can find packer configuration for different OS here.

Lets analyze my configuration file and run packer to azure.

 

[Read more…]

Configuring Cisco on Mac Os through the console port

You'll need to get a usb-serial adapter and then connect with a console cable. 

Connecting to the Console Port with Mac OS X. To connect a Mac OS X system USB port to the console using the built-in OS X Terminal utility, follow these steps:
Step 1. Use the Finder to go to Applications > Utilities > Terminal.

Step 2. Connect the OS X USB port to the router.

Step 3. Enter the following commands to find the OS X USB port number:

[Read more…]

ERROR: The missing cookbook(s)

If you received error uploading cookbook to chef server:

knife cookbook upload rundeck
Uploading rundec
ERROR: Cookbook rundeck depends on cookbooks which are not currently
ERROR: being uploaded and cannot be found on the server.
ERROR: The missing cookbook(s) are: 'java' version '>= 0.0.0', 'yum' version '>= 0.0.0', 'apt' version '>= 0.0.0', 'supervisor' version '>= 0.0.0', 'database' version '>= 0.0.0', 'mysql2_chef_gem' version '~> 1.0.2', 'mysqld' version '~> 1.0.3'

 

[Read more…]

Installing workstation for managing Chef server

A workstation is a computer that is configured to run knife, to synchronize with the chef-repo, and interact with a single Chef server. The workstation is the location from which most users will do most of their work.

We need ti install on our workstation:

  • knife
  • chef-sdk
  • chef-repo
  • ruby

 

[Read more…]

Installing Chef on Centos 6

Today we will install chef server in our home lab based on proxmox 3.4.6. So we have installed server 2cpu, 2Gb memory, Centos 6.7

First of all I switched off selinux, and configured hostname of server in /etc/sysconfig/network and /etc/hosts

Let's go on:

#wget https://web-dl.packagecloud.io/chef/stable/packages/el/6/chef-server-core-12.1.2-1.el6.x86_64.rpm

# rpm -Uvh chef-server-core-12.1.2-1.el6.x86_64.rpm

# chef-server-ctl reconfigure

[Read more…]