jrmedd
Posts: 20
Joined: Mon Oct 29, 2012 3:48 pm

Advice for installing 'localtunnel'

Tue Jan 01, 2013 8:37 pm

Hi all, had a bit of trouble with this one today. I'm looking for advice on how install 'localtunnel' for Raspbian. There seem to be two ways of installing:

- Using Ruby Gems, as documented on their site: http://progrium.com/localtunnel/

I tried this after installing Ruby (and Ruby Gems, via 'apt-get install ruby') and I got this error (documented by another Pi user on their Github): http://pastie.org/5166953#1,5,8

- Using pip (for a newer version, in beta) as documented on their Github: https://github.com/progrium/localtunnel

This failed as well, although unfortunately I didn't note why at the time. I used this same method on OS X (on which I have Xcode installed) and had no issues.

So, does anyone have any advice for installing 'localtunnel' on the Pi? The developer notes that for Ruby Gems, I'd require 'Ruby headers to compile native extensions'.

He also notes on the pip method: 'Since there is one dependency with a C extension, you will need Python headers and basic build tools. If you're on OS X this just means you need to have Xcode installed.'

I'm still a bit of a Linux noob, so any help would be greatly appreciated!

jrmedd
Posts: 20
Joined: Mon Oct 29, 2012 3:48 pm

Re: Advice for installing 'localtunnel'

Wed Jan 02, 2013 3:01 pm

Update:

I had another go at installing on a different SD card. As far as I can tell, all I needed for the pip install was 'python-setuptools', 'python-dev', and 'build-essential' (and then pip, of course). The service seems intermittent at the moment, but installs just fine.

Any advice on installing with Ruby would still be greatly appreciated.

seniorheff
Posts: 1
Joined: Mon Feb 25, 2013 7:23 am

Re: Advice for installing 'localtunnel'

Mon Feb 25, 2013 7:42 am

I was getting a fatal error when I tried to install localtunnel-beta from pip.

I was able to install the version from the Ruby gem. Here were my steps:

Code: Select all

sudo apt-get update
sudo apt-get install -y ruby-full
sudo apt-get install -y rubygems1.8
sudo gem install localtunnel

mesmariusz
Posts: 57
Joined: Fri Feb 15, 2013 6:07 am

Re: Advice for installing 'localtunnel'

Sat Mar 09, 2013 10:09 pm

Hello. I tried to share my 22 port in my Raspberry Pi into internet to get possiblity to connect it from outside of my LAN, but when I tried I got error messages (see below). Do someone know how to do it in a proper way? What was wrong with it?

Best regards
Mariusz

root@raspberrypi:/home/pi# localtunnel -k ~/.ssh/id_rsa.pub 22
/var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/packet_ stream.rb:103:in `block in next_packet': connection closed by remote host (Net::SSH::Disconnect)
from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/tran sport/packet_stream.rb:93:in `loop'
from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/tran sport/packet_stream.rb:93:in `next_packet'
from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/tran sport/session.rb:172:in `block in poll_message'
from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/tran sport/session.rb:167:in `loop'
from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/tran sport/session.rb:167:in `poll_message'
from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/tran sport/session.rb:152:in `next_message'
from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/tran sport/kex/diffie_hellman_group_exchange_sha1.rb:45:in `get_parameter s'
from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/tran sport/kex/diffie_hellman_group1_sha1.rb:118:in `generate_key'
from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/tran sport/kex/diffie_hellman_group1_sha1.rb:51:in `initialize'
from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/tran sport/algorithms.rb:348:in `new'
from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/tran sport/algorithms.rb:348:in `exchange_keys'
from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/tran sport/algorithms.rb:196:in `proceed!'
from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/tran sport/algorithms.rb:187:in `send_kexinit'
from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/tran sport/algorithms.rb:142:in `accept_kexinit'
from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/tran sport/session.rb:189:in `block in poll_message'
from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/tran sport/session.rb:167:in `loop'
from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/tran sport/session.rb:167:in `poll_message'
from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/tran sport/session.rb:204:in `block in wait'
from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/tran sport/session.rb:202:in `loop'
from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/tran sport/session.rb:202:in `wait'
from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/tran sport/session.rb:81:in `initialize'
from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh.rb:1 86:in `new'
from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh.rb:1 86:in `start'
from /var/lib/gems/1.9.1/gems/net-ssh-gateway-1.2.0/lib/net/ ssh/gateway.rb:74:in `initialize'
from /var/lib/gems/1.9.1/gems/localtunnel-0.3/lib/localtunne l/tunnel.rb:44:in `new'
from /var/lib/gems/1.9.1/gems/localtunnel-0.3/lib/localtunne l/tunnel.rb:44:in `start_tunnel'
from /var/lib/gems/1.9.1/gems/localtunnel-0.3/bin/localtunne l:47:in `<top (required)>'
from /usr/local/bin/localtunnel:23:in `load'
from /usr/local/bin/localtunnel:23:in `<main>'
root@raspberrypi:/home/pi#

Return to “General programming discussion”