How to connect Eclipse and raspberry
as it is some time ago writing my last blog I thought it would be a good thing, to share something interesting for the holidays.
So I’m not going to share some good thoughts or what the past year has brought to us or to me.
That have done a lot of other and I don’t have to add to those blogs a thing. So what is this blog about. I bought a raspberry a few weeks ago and started to use it with different tutorials.
As I learned this year at sitmuc that a lot of us don’t take the time to build tool or better get used to the tools to handle things in an easy way. At that time I was a bit skeptical about this fact, but the last few weeks I recognized that this is also true for me.
I was so fascinated of my new playable raspberry with all the sensors and other things plugged in, that I really ignored the fact, that Putty is a nice Tool to connect remote systems in an easy way but is a terrible editor.
Luckily I recognized it some weeks later and started to use Eclipse. As you might know I’m really addicted to it and why not have all together in one place. It’s not just awesome for ABAP, refactoring and ….ok, that’s offtopic… 😳
Today I want to show you how to connect your raspberry to your eclipse installation and additional to that share with you the python-plugin to have the coding presented in a way you want.
You have a Eclipse-Installation running (No, have a look here: https://eclipse.org/ )
Let’s start with connecting the device:
- Open “Window” -> “Open Perspective” -> “Other…”
- Choose “Remote System Explorer”
- Open “File” -> “New” -> “Other…”
- Choose “Remote System Explorer” -> “Connection”
- Set up remote connection type
- Click “Linux” –>Next
- Choose your entry you made before in step “Add your raspberry” and type in a name ->Next
- FILES Click ssh-files at the window “Configuration“ –>Next
- PROCESSES Click processes.shell.linux at the window “Configuration“ –>Next
- SHELLS Click ssh.shells at the window “Configuration” –> Next
- SSH TERMINALS Click ssh-terminals at the window “Configuration –> Finish
Now you should see at your left hand side your created connection
- Right click on the name and go to properties (Shortcut ALT+Enter🙂 )
- Left hand side click on host and you can add the Default User ID. I think most of us uses “pi” as shown
Now your good to go and can connect to your raspberry via eclipse and browse the files.
Next I will try to connect my eclipse to cross-debug on my raspberry. This will take a while cause of different reasons.
So that’s it. Maybe it’s just me, but I had my problems to start with it and didn’t find a good document which lead me through the whole process.
Right now I’m diving into the https://github.com/SAP/iot-starterkit and take my next steps (That is also the reason why I posted it in this space 🙂 ).
I’m pretty sure I will get to the point I need debugging cause of a bigger project. After I have figured it out I will get back here and also share this setup with you.
If someone of you have a running setup and a guide how to get there I also would like to see a blog or even a link:-)
BTW: I also installed the python-plugin to have a good looking code in front of me.