I’m using Ubuntu 17.04 and it has Python 2.7.13 installed. I want to use Python 3 without it colliding with Python 2.7.13. I’ve installed and built Python 3 from source and aliased it without an issue. Right now python is pointing to usr/bin/python which is the system default, and I aliased python3 to point my custom installation in ~/Python-3.6.3″. The
Tag: ubuntu
Moves files from directory by reading file names from a text file
I want a script that is able to read the content of a text file which contains folder names and moves the folders from their directory to a specific folder. Here is my script: This script is partly working as it copies only the last folder in the text file, as for the other folders it gives the error “not
How to undo “mv file -” command in Ubuntu [closed]
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
Access denied for user ‘root’@’localhost’ (using password: NO) – what’s wrong?
(Sorry for my English) This is a log of my console: What should I do? I understand that it appears when I try entering without a password, but I am dont confirmed password, and ‘root’/empty string doesn’t help. Answer When you installed this fresh, you usually execute afterwards. There you also set the initial password for your root account (note,
Shellscript If statement returns error
I am trying to check if a file is older than 5 minutes and if that is the case I want to call another shell script which sends me a mail. check_file.sh: Error output: 3: ./check_file.sh: [1]: not found Answer Try something like:
how to redirect ps command in linux to look into other folder than /proc
I am using docker containers and I have mounted host /proc to container /host/proc. Now I want ps command inside docker container to look for processes into /host/proc instead of /proc. or how can I right similar utility to ps Answer the /proc path is hardcoded in the source tree of the /bin/ps binary file. Thus, you need to recompile
Checking result of executed command in a Bash script
I want to run my VirtualBox after my I logged in. To do that, I have to check if it’s already running or not. If not, then start the VM. My problem is that I can not put the result of VirtualBox command into a variable in Bash. I’ve created a function to get the exit parameter, but I get
How do I run a Python Qt file in Ubuntu?
Here’s the sample code that I want to run: The file is saved as sample.py. The following command isn’t working: Answer You need to start the Qt event loop by calling app.exec_() once you have initialised the widgets and called show() on your main window.
ArangoDB Unattended Install in Vagrant Box
Trying to setup an Unattended install of ArangoDB in a Vangrant Ubuntu box. I’ve followed the Unattended install instructions here: https://docs.arangodb.com/3.1/Manual/GettingStarted/Installing/Linux.html However, this accounts for the password prompts, but not for the database upgrade and backup database files prompts. How does one go about silencing these? Answer Ok I figured this out. Basically you need to use a the following
ffmpeg HLS transcoding and chunks upload to remote server
I am trying to create a so called origin server for storing the hls chunks and the manifest file on a remote server. The sending machine running ffmpeg is with IP: 192.168.178.50 and the web server which has to store both the HLS chunks and the manifest file is with IP: 192.168.178.100. My ffmpeg transcoding command line is: But no