ubuntu-12.04

Changing the user that nginx worker processes run under (Ubuntu 12.04)

老子叫甜甜 提交于 2019-12-03 09:43:27
I have a manual install of nginx on Ubuntu 12.04. When I ran ./configure I used the following options: ./configure --user=www-data --group=www-data --with-http_ssl_module --with-http_realip_module Now the nginx worker processes run under the www-data user in the www-data group. However, I wish to change this to a different user (called nginx in my case). Is this possible to do after running make and make install already? Any help would be much appreciated. deagh As long as your new user ( nginx in your case) has the proper rights, everything should work. You have to change your user setting in

Installing apache 2.4 and php 5.5 on ubuntu 12.04

穿精又带淫゛_ 提交于 2019-12-03 09:00:59
问题 I'm trying to set a test enviroment with apache 2.4 and php 5.5 on a vm with ubuntu 12.04, fist thing is to add the repositories apt-add-repository ppa:ptn107/apache apt-add-repository ppa:ondrej/php5 Then installing apache 2.4 apt-get install apache2-mpm-worker checking apache version: # apache2 -v Server version: Apache/2.4.6 (Ubuntu) Server built: Sep 23 2013 07:23:34 Installing PHP 5.5 apt-get install php5-common php5-mysqlnd php5-xmlrpc php5-curl php5-gd php5-cli php5-fpm php-pear php5

How to create a simply debian package (just compress/extract sources or any files with debian packaging)

若如初见. 提交于 2019-12-03 08:55:01
I need to create a new .deb package of Realxtend project ( https://github.com/realXtend/naali ). It's a huge project with a lot of dependencies and a automatic bash script (/tools/Linux/build-deps.bash) to download, compile and install all deps and executables. So I try many tutorials but I often some errors and i'm stuck because tutorials are outdated (with new 'rules' file mainly) ...and also because i'm not a dev initialy. So, for beginning, I just need create a .deb file exactly like an simple archive ie not interpret any building process, 'makefile', or others kind of things. I would like

Cakephp Cake command returns No such file or directory

怎甘沉沦 提交于 2019-12-03 08:35:24
I have been using the cake command on my linux server for 2 years. but now im trying to move to a new server and some how the cake command gives back the error: No such file or directory even if i give the entire path to the cake command file chmod 777 it stil wont work. I found the solution: All I had to do is use the program dos2unix the cake file for CakePHP 2.4.2 has wrong endings when you download it with Ubuntu 13.10 I used the following command: sudo dos2unix /path/to/cake/lib/Cake/Console/cake The REAL solution to this is to change the End-of-Line (EOL) characters to Unix format,

libusb cannot open USB device, permission isse. NetBeans/Ubuntu

纵然是瞬间 提交于 2019-12-03 08:19:27
I'm writing a C/C++ application in NetBeans based on libusb-1.0 on Ubuntu 12.04. I can get basic information from the USB device (for example, the interface description) but I am not able to open the device. The function libusb_open gives me the error: libusb:error [op_open] libusb couldn't open USB device /dev/bus/usb/002/003: Permission denied. libusb:error [op_open] libusb requires write access to USB device nodes. I understand that I need to change the permissions but I don't know how (I am a very basic Linux-user). Thank you! Well you can run your application in root user mode and get rid

ERROR: Android Source Generator: [project] AndroidManifest.xml file not found

时光总嘲笑我的痴心妄想 提交于 2019-12-03 08:08:22
问题 I am a newbie to android , using intellij idea. when I want to compile my hello-world ( the first step ;) ) I faced with this error "Android Source Generator: [project] AndroidManifest.xml file not found" Of course it is not in my root file. And when I make any new project , I have the same problem. I searched a lot and even find this "AndroidManifest.xml file not found " but not help. plz help . 回答1: you must open Project Structure modified something. example: Project Structure > Facets ,you

Installing ElasticSearch on Ubuntu 12.04

别等时光非礼了梦想. 提交于 2019-12-03 07:38:06
I have a VM running Ubuntu 12.04, and am trying to install ElasticSearch. I have followed this gist in the best 'learn X the hard way' spirit, and everything installs fine - packages are downloaded, untarred, copied to right place etc. The problem comes when I run it - either by calling: $ /usr/local/share/elasticsearch/bin/elasticsearch or by using the service wrapper ( $ rselasticsearch console ) The output is logged to wrapper.log and is included below. I think that I may be having JAVA home / classpath issues, but am not sure. Any help most gratefully received! Running ElasticSearch...

Install python-numpy in the Virtualenv environment

自作多情 提交于 2019-12-03 07:19:00
I would like to install the python-numpy in the Virtualenv environment. My system is Ubuntu 12.04, and my python is 2.7.5. First I installed the Virtualenv by $ sudo apt-get install python-virtualenv And then set up an environment by $ mkdir myproject $ cd myproject $ virtualenv venv New python executable in venv/bin/python Installing distribute............done. Activated it by $ . venv/bin/activate Installed python-numpy in the environment by $ sudo apt-get install python-numpy However, I tried to import numpy in python in the environment after all steps above. Python told me "No modules

How to install python-matplotlib in ubuntu 12.04?

荒凉一梦 提交于 2019-12-03 07:18:37
When I tried $ sudo apt-get install python-matplotlib I got the following error: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package python-matplotlib How to install it? One "cleaner" way to install matplotlib is to go through pip: sudo apt-get install python-pip sudo pip install matplotlib It will also ensure that you'll get the most up to date stable version and will be easier to maintain when an upgrade is pushed to pypi. If the build process complains about missing headers files just install the missing lib with: sudo apt-get

How to install Docker on 32bit machine having Ubuntu 12.04?

心已入冬 提交于 2019-12-03 06:22:12
I have followed the docker installation doc for installing it on my machine which is a 32 bit machine running Ubuntu 12.04 The step $ sudo apt-get install docker-engine fails saying E: Unable to locate package docker-engine It should have been installed, right? Also I came to know that, Docker currently only supports 64bit platforms. $ wget -qO- https://get.docker.io/ | sh Error: you are not using a 64bit platform. Docker currently only supports 64bit platforms. Is there a way to I install it and make it work on 32bit machine? As per the prerequisites: Docker requires a 64-bit installation