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.
Related
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
I am running a python code on a wipy board (micropython environment) and a python code on an embedded linux system. The wipy board is connected to the linux system with wifi. I was wondering how to create bi-directional communication for passing data between the two independent scripts
I have looked into both threading and multiprocessing but I do not know if either would be appropriate for this use so I am just looking for a conceptual answer so I can find someplace to start
Threading and multiprocessing has nothing to do with your problem. Threading and multiprocessing is all about running multiple programs or part of programs on the same system.
What you want is to use the network to send/receive messages. Please read the
WiPy documentation:
About your WIFI connections
About TCP sockets
The part about the TCP sockets should be exactly what you need. The part about WIFI connections will tell you how to adjust the WIFI settings of your board.
The same goes for your embedded Linux system. Look for documentation on your system and check for the chapter about sockets. I would open a server on one of these devices (or both) and use the other devices to connect to the server and get the information the system needs. It might be a good idea to use the device with more resources as the server.
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 5 years ago.
Improve this question
I have a python script that I typically kick off manually. It then runs for several days collecting information until it gets disconnected.
What I want to do is have the Windows scheduler start the job 12:01 AM and then terminate the job at 11:58 pm that same day.
Typically I would be able to do this using CRON in the linux world but am unsure how to do this in Windows Scheduler.
Thank you for your help!
Open Task Scheduler in Windows. Control Panel -> Administrative Tools -> Task Scheduler
Click 'Create Basic Task' (to start the script)
Set the trigger time
Set Program/Script = [full path to python.exe]
Add Arguments = [full path to your scheduled python script]
Click 'Create Basic Task' (to end the script)
Set the trigger time
Program/Script = taskkill /f /im [full path to python.exe]
This guide goes into more detail.
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 5 years ago.
Improve this question
I have just installed OpenCV 3.2.0 on an amazon EC2 instance (ubuntu 14.04). When I try to run any of the sample programs I get the error Gtk-WARNING **: cannot open display: :0.0
Answers to similar questions online didn't work for me. I've tried
export DISPLAY=:0.0
export DISPLAY=:0
and I tried xhost +localhost and received xhost: unable to open display ":0.0"
This post describes the exact same problems as me, but I'm not using Vagrant, so there is no "Vagrantfile" and I don't know what the equivalent would be in an EC2 instance.
Gtk-WARNING **: cannot open display:
Does anyone have an idea of why this is happening?
I'm on Ubuntu 16.04 using ssh to Ubuntu 16.04.2 server. I can do the following:
xhost +
ssh -Y -i .ssh/my.pem ubuntu#ecxxxxxxx.eu-west-1.compute.amazonaws.com
sudo apt install x11-apps
xclock
This starts the xclock applet on my local display. Note the xhost + before I ssh and the -Y flag on the ssh command. I'm using xclock to test which I installed from x11-apps. You should be able to start OpenCV in a similar way.
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.
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.