Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I connect to my Raspberry Pi through SSH on terminal (Mac), and it is a little tedious editing code there, because I cannot click on the line I'd like to edit, but rather I have to scroll and use arrow keys to reach the intended location. Therefore, I usually edit large amounts in Sublime text, and I copy and paste the contents of the file into terminal when I want to run it.
Is it possible to have a direct link between my Raspberry Pi files and Sublime text? (or any other form of editing program). I much prefer the interface for coding than terminal.
Thank you.
You might want to have a look at sshfs. It allows mounting a remote directory into your local file system. You only need to have ssh access to the remote host and your local host needs to have FUSE capabilities (most current Linuxes have).
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 hours ago.
This post was edited and submitted for review 8 hours ago.
Improve this question
Am running a pentest with python on a remote server. The script works on local computer but trying to access the server remotely it remains stuck at connecting. The script was suppose to monitor the network and allow me control of the system. My computer freezes multiple times and is stuck at connecting. Though am trying to access a mainframe computer am using a 4gb ram ProBook 11g1
The script runs well when tested on smaller computers for remote access but doesn't work connecting to the server computer. The script was suppose to grant me control to the system but my computer keeps freezing. Am sorry I can't disclose the code due to security reasons but I just want to know the possibile reasons why my computer can't connect to server in a case like this. Any clue may help thanks
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am making a project on desktop virtual assistant with python. I want to add a feature that will turn on and off light by raspbarry pi.
And i am new to raspbarry pi so i want to ask that is it possible to excess rapbarry pi for light on or off with code written on windows not on raspbarry via internet.
And there is not much content on internet about related issue....
I don't think it is possible.If you don't write code on raspberry pi, how will the device receive the command to control light on/off? At the moment, there is no onboard service to do that. You can create UWP app on Windows IoT Core, and send the light on/off command via socket. Or you can build a web server with .net core 3.0 which supports IoT, and then call the web api with python on Windows Desktop.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
This is a beginner question. I post this here because I'm so lost that I realized I even don't know what to look for.
I'm a C++ developper and have a developed C++ app. On the other hand, I recently dug into web development and created a website using the Django framework, which I host on Heroku.
The flow of the website: a user enters input on the website, input files are uploaded to AWS S3 (I managed to get that working).
The part I'm lost: with the user input, I'd like to run the C++ app which I host on a Linux server (Codenvy). But I have no idea how to launch that application from the Django site which is served by Heroku. At least giving some keywords to enhance my web searches?
It sounds like what you need is to run a script on another server using python?
I'd suggest taking a look at Paramiko:
https://github.com/paramiko/paramiko/
It is a package to allow you to ssh into another machine and execute commands.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I currently have no ideas for what code I could use, nor if it is even possible but I have been asked to find out for work. I work for a broadcasting company and they have bought a raspberry pi as a experimental thing. They want to use it to attach to monitors and screens at festivals and other jobs they do. None of the other workers here even have the slightest idea how to work python 3 so its up to me to get a network set up between a windows 7 home premium pc and their raspberry pi. I have looked at some Youtube videos of various people trying to do this but each one says something different and it has confused me further. Please get back to me if anyone has a definitive answer. Thank you
Connecting to computers for communication has nothing to do with Python. Instead, you might want to look into SSH clients for windows and how to setup the corresponding server on the Raspberry (which will certainly run a Unix system). Everything else depends on the specific application.
Here is a tutorial on SSH using Windows: https://www.raspberrypi.org/documentation/remote-access/ssh/windows.md
You basically install PuTTY, log into your Raspberry and control it via command line (create and manipulate files etc.) as if you were working on the Raspberry directly.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
it's my first question here so i'll try to be clear :)
I want to execute a python script on a server (I use pythonanywhere), this script is took from spawningtool. I succeed on the install and I'm able do execute it in a shell on the user interface.
The problem is that I want to execute it when a client ask ^^, here a classic situation :
The client send a file to the server
The server execute the script with the file in parameter
The server answer with a string
How can I do that ? (Does it have a link with Django,Bottle etc . . . ?)
PS : Python stuff is new for me so take in consideration that I'm a mobile dev with very few notion of python and web dev.
You're definitely going to have to learn a lot about web development to make that happen. Have a look at tutorials for Django, Flask or Bottle. Get an idea of how the web works and then apply it to your problem.