Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 days ago.
Improve this question
I have created a local server at 0.0.0.0:8000 on my ubuntu virtual machine on AWS with the following command
python -m SimpleHTTPServer
This gave me the following response
Serving HTTP on 0.0.0.0 port 8000 ...
How can access this server from the browser?
If you are on the host that is running the web server, go to: http://localhost:8000
If you are on another computer, access the host via its IP address: http://IP-ADDRESS:8000 (eg http://54.22.18.93:8000)
If accessing from another computer, your Security Group will need to allow inbound access on port 8000.
Related
Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 days ago.
Improve this question
pacman -S --noconfirm --needed git python2 python2-beautifulsoup4 python2-pexpect python2-crypto
It gives the following error:
Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 45 (X_OpenFont)
Serial number of failed request: 21
Current serial number in output stream: 25
I was trying to download social engineering toolkit in kali linux distribution on wsl.
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 6 years ago.
Improve this question
I'd like to know how to use a remote AWS instance as the backend for my ipython notebook that I have running locally. I typically use nteract as the frontend for my jupyter notebook.
Motivation: is that my macbook doesn't have an Nvidia GPU, so I'd like the computations done on my P2 instance remotely, but with the notebook running locally.
This is my first question, so please be gentle :)
Typically you ssh to an AWS instance using something like
$ ssh -i key.pem username#ec2-198-51-100-1.compute-1.amazonaws.com
You can local forward to a port, say 8888, with
$ ssh -i key.pem -L 127.0.0.1:8888:127.0.0.1:8888 username#ec2-198-51-100-1.compute-1.amazonaws.com
This will forward anything running on localhost at port 8888 on your AWS instance, to localhost 8888 on your MacBook.
Then on your AWS instance, launch an ipython notebook
$ jupyter notebook --no-browser --port 8888
and then on your MacBook, open a browser and navigate to localhost:8888 and you'll be using the notebook from your AWS instance (which has GPU support).
Hope this helps.
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 7 years ago.
Improve this question
Is it possible to access local files via remote SSH connection (local files of the connecting client of course, not other clients)?
To be specific, I'm wondering if the app I'm making (which is designed to be used over SSH, i.e. user connects to a remote SSH server and the script (written in Python) is automatically executed) can access local (client's) files. I want to implement an upload system, where user(s) (connected to SSH server, running the script) may be able to upload images, from their local computers, over to other hosting sites (not the SSH server itself, but other sites, like imgur or pomf (the API is irrelevant)). So the remote server would require access to local files to send the file to another remote hosting server and return the link.
You're asking if you can write a program on the server which can access files from the client when someone runs this program through SSH from the client?
If the only program running on the client is SSH, then no. If it was possible, that would be a security bug in SSH.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have a Raspberry Pi which uses a USB wireless adapter and wicd-curses. A Python script runs in the background which uses a WebSocket. When I call sudo reboot, my Python script gets the signal to restart (with SIGTERM) about 20 seconds later. (I don't know why the computer takes 20 seconds to restart anyway. I don't remember it being this way before installing wicd-curses.)
By the time 20 seconds has passed, wicd-curses has already disconnected from the wireless network, meaning my Python script cannot properly close the WebSocket connection. So the core of my question is this: what Python commands are available to me to ensure that my script is notified of the system shutdown earlier than it is now? Is there any sort of event for which I can listen? Preferably, I want to be able to run the script on demand (python myscript.py) without the use of a daemon or service or whatever it might be called in the Linux world. Thank you.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I've recently started learning Django and have set up a virtual machine running a Django server on VirtualEnv. I can use the runserver command to run the basic Django installation server and view it on another computer with the local IP address.
However, I can't figure out how to connect to my virtual machine with my FTP client so that I can edit files on my host machine (Windows). I've tried using the IP address of the virtual machine with an FTP client but it says "Connection refused by server".
Any help would be appreciated, thanks!
The reason that the the client reported back "Connection refused by server" is that the server returned a TCP packet with the reset bit set, in response to an application trying to connect to a port that is not being listened on by an application, or by a firewall.
I think that the FTP service is not running, or running on an alternate port. Take a look at the output from netstat -nltp (on Linux) or netstat -ntlb (on windows). You should see a program that is waiting to hear request on TCP port 21. If you don't see the program listed at all or not on the expected port that your client is going to try and connect to, then modify the FTP servers configuration file.