From: Haris Bogdanovi� on 15 Jul 2010 12:38 It doesn't matter now. I finally managed to connect emacs to allegro cl on windows but it woiuld be nice to know how to connect from windows to virtual linux (VirtualBox) with ssh (on linux) and ssh2 (on windows, I didn't see just ssh for windows) having swank server running in sbcl on linux and using windows emacs ? Thanks
From: Captain Obvious on 15 Jul 2010 16:11 HB> virtual linux (VirtualBox) with ssh (on linux) and ssh2 (on windows, I HB> didn't HB> see just ssh for windows) having swank server running in sbcl on linux HB> and using windows emacs ? There are couple of options, I'll describe what I use myself. Prerequisites: you have Putty (yes, Putty, why not?), you know IP address of VM, you can connect to VM via Putty. You need exactly same SLIME version for Emacs and SBCL. 1. Configure tunneling in putty: open Connection > SSH > Tunnels. Set "Source port" to 4005. Set "Destion" to "localhost:4005". Leave radiobutton "Local" checked (this is default). Add this tunnel. You should see it as "L5005 localhost:4005" in list of tunnels. 2. Connect to Linux VM with this tunnel in connection options. 3. Launch SBCL. 4. In SBCL type: (require :swank) (swank:create-server :port 4005) 5. Now on your windows machine in Emacs run M-x slime-connect <RET> <RET> Default connection options are 127.0.0.1 port 4005 and that's how tunneling was set up. 6. That's all.
From: Haris Bogdanovic on 16 Jul 2010 12:43 > 2. Connect to Linux VM with this tunnel in connection options. How ? I press "Open" bellow but nothing happens. Did you meant source port 5005 ? because you wrote 4005 ?
From: Captain Obvious on 17 Jul 2010 03:04 ??>> 2. Connect to Linux VM with this tunnel in connection options. HB> How ? I press "Open" bellow but nothing happens. You should have your regular session settings being filled in. Can you connect to that VM via Putty? Putting IP address into apropriate place etc. Then use your regular configuration AND tunnel settings in addition. If it works you can save it in session so Putty remembers all settings. HB> Did you meant source port 5005 ? because you wrote 4005 ? In this particular case 4005 is better because it is default in slime-connect so you don't need to type it. But it could be anything -- you'll just need to use same port number as parameter to slime-connect.
From: Haris Bogdanovic on 17 Jul 2010 08:26 I have (at Session menu) destination address and port: 192.168.56.1 (ip address of VM linux) and port 4005, and at Tunnels menu I have source port 4005 and destination localhost:4005. When I press Open it get "Network error: Conection refused" I get that no matter Ubuntu VM is working or not. I turned off my windows firewall. Do I have to turn off Ubuntu firewall or open port 4005 ?
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 4 5 Prev: detachtty problems Next: problem loading trivial-features ... |