ubuntu-14.04

Ubuntu 14.04 - pm2 startup not starting after reboot

匆匆过客 提交于 2019-12-18 16:59:41
问题 I am using pm2 to start a node.js process, and I would like this process to be started automatically when the system (Ubuntu 14.04 on Intel Atom processor) is booted. I have followed the instructions on the pm2 web site but without success. My dump.pm2 appears to be correct, but the pm2 daemon is never started. I have tried both the ubuntu and linux options to pm2 startup , as well as autodetect, both with and without a specified user. Files (links) S20pm2-init.sh have been created in /etc/rc

ffmpeg restream rtsp to mjpeg

五迷三道 提交于 2019-12-18 11:13:30
问题 I have a few IP cameras that stream 720 X264 video over rtsp. The streams are really unreliable when viewing on Android. They also fail if more then 2 connections are made. I have a ubuntu server that I can use to connect and restream as mjpeg or something else. There are tons of different commands out there but they all seem to involve transcoding the video. How can I simply restream the live rtsp feed as a mjpeg without doing anything to the video itself? Theres no audio so no worries there

Virtualenv - Python 3 - Ubuntu 14.04 64 bit

断了今生、忘了曾经 提交于 2019-12-18 10:42:38
问题 I am trying to install virtualenv for Python 3 on Ubuntu 64bit 14.04. I have installed pip for Python3 using: pip3 install virtualenv and everything works fine. Now though I am trying to use virtualenv command to actually create the environment and getting the error that it is not install (i guess because I haven't installed it for Python 2 and that is what it is trying to use) How do I use the virtualenv for Python 3? I have searched the documentation but can't see where it says what to do.

Virtualenv - Python 3 - Ubuntu 14.04 64 bit

孤街醉人 提交于 2019-12-18 10:42:06
问题 I am trying to install virtualenv for Python 3 on Ubuntu 64bit 14.04. I have installed pip for Python3 using: pip3 install virtualenv and everything works fine. Now though I am trying to use virtualenv command to actually create the environment and getting the error that it is not install (i guess because I haven't installed it for Python 2 and that is what it is trying to use) How do I use the virtualenv for Python 3? I have searched the documentation but can't see where it says what to do.

How to install PyQt5 in Python 3 (Ubuntu 14.04)

放肆的年华 提交于 2019-12-18 10:34:31
问题 I need to port some code that's Python2+PyQt4 to Python3+PyQt5. I started installing pip3 sudo apt-get install python3-pip Works great. Tried sudo pip3 install PyQt5 Downloading/unpacking PyQt5 Could not find any downloads that satisfy the requirement PyQt5 Cleaning up... No distributions at all found for PyQt5 Online I find the following steps: http://pyqt.sourceforge.net/Docs/PyQt5/installation.html But they are too many. What's the easiest way to Install PyQt5 along with Python3 in Ubuntu

docker command not found even though installed with apt-get

淺唱寂寞╮ 提交于 2019-12-18 09:56:22
问题 Adding this for reference for others because it would have saved me 10 minutes if such an answer existed. I tried installing Docker using ubuntu 14.0LTS virtualbox sudo apt get install docker However, when I try running docker it gives me the following error The program 'docker' is currently not installed. You can install it by typing: sudo apt-get install docker Why is ubuntu not seeing docker? 回答1: The Ubuntu package docker actually refers to a GUI application, not the beloved DevOps tool

Install old PHP version on Ubuntu

佐手、 提交于 2019-12-18 09:49:35
问题 I have got an Ubuntu14.04 and a PHP 5.5.9 installed. Now I need PHP 5.4.* As I have seen, it is not possible to downgrade it. I have to purge it and then install the old version. I have searched everywhere but I can't find an instruction how to get an old PHP version which works. I already tried to get it with apt-get install php5=version , but apt-cache policy php5 does always only show PHP 5.5.9 And also wget php5.4.... ./configure make make install doesn't work. What is the solution for my

How to debug a bash function that returns a value, and how to add newlines to a variable?

风格不统一 提交于 2019-12-18 08:01:08
问题 I'm in a bash crash course today. This is a bash function that returns a value, via echo: #!/bin/bash get_hello_name() { echo 'Hello $1!' } msg=$(get_hello_name "x") echo $msg Output: $ bash ./initial_script5.sh Hello $1! I then incorrectly thought that the last echo was returned (I come from Java and Python), and was trying to use echo to debug the rest of the function. And then I was wondering why the heck I could not print out newlines in my echo statements, despite trying every single

How to resolve the error “[ErrorException] file_get_contents(/var/www/laravel/.env): failed to open stream: No such file or directory”?

流过昼夜 提交于 2019-12-18 03:04:35
问题 I'm using Ubuntu 14.04 on my machine. I installed composer and then laravel in the document root i.e. /var/www I also gave -R 777 persmission to folder laravel present in directory /var/www Then I go to directory laravel using cd /var/www/laravel and run the following command php artisan and I got to see all the available commands there. Then I typed in php artisan key:generate and got the error [ErrorException] file_get_contents(/var/www/laravel/.env): failed to open stream: No such file or

Ubuntu 14.04 how to install cuda 6.5 without installing nvidia driver

喜夏-厌秋 提交于 2019-12-17 19:24:07
问题 I am working on workstation with CPU core I7 4790 and two GPUs GTX 760 4 GB ram/1152 core the system's memory is 16 GB RAM I have Ubuntu 14.04.1 LTS after many tries and reinstalling Ubuntu many times finally i have correctly installed nvidia driver 340.46 using 3 shell commands ppa xorg-edgers now i want to install Cuda 6.5 toolkit but in the manual they say that the cuda toolkit installer will also install nvidia Graphics driver how to prevent the installer from reinstall the graphics