June 2008

You are currently browsing the monthly archive for June 2008.

Milestone achieve by Adrian and Vik of the RepRap community, they’ve replicated entirely a Darwin machine, and this child is beginning to print itself another printer!

Adrian (left) and Vik (right) with a parent RepRap machine, made on a conventional rapid prototyper, and the first complete working child RepRap machine, made by the RepRap on the left. The child machine made its first successful grandchild part at 14:00 hours UTC on 29 May 2008 at Bath University in the UK, a few minutes after it was assembled.

Tags: , ,

With dozens of ssh connections each days, you better need a shortcut way to make it faster. Frustation comes to a end with this script:

#!/usr/bin/env ruby -wKU

servers = [
    {:id => 0, :alias => "aiko", :ip => "server_ip", :login => "ssh_login", :port => "ssh_port"}
  ]

# Read from command line
server_id = ARGV[0].to_i if !ARGV[0].nil?

# Read from input
if server_id.nil?
   servers.each do |server|
     puts "[#{server[:id]}] #{server[:alias]}"
   end
   server_id = gets
end

server_id = server_id.to_i

puts "Connecting to #{servers[server_id][:login]}@#{servers[server_id][:ip]} port #{servers[server_id][:port]}"

exec "ssh #{servers[server_id][:login]}@#{servers[server_id][:ip]} -p #{servers[server_id][:port]}"

Put this ruby script in your bin directory, make it executable, add your servers info hash in the array, and eventually copy your ssh public key in the various servers to never be asked for password.

When executing it, you can give it the ‘id‘ as an argument, and it will connect automatically to the server with the corresponding id!

Tags: , , ,