ubuntu-12.04

Check If a Particular Service Is Running on Ubuntu

a 夏天 提交于 2019-12-03 00:02:14
问题 I do not know the service's name, but would like to stop the service by checking its status. For example, if I want to check if the PostgreSQL service is running or not, but I don't know the service's name, then how could I check its status? I know the command to check the status if the service name is known. 回答1: I don't have an Ubuntu box, but on Red Hat Linux you can see all running services by running the following command: service --status-all On the list the + indicates the service is

Installing apache 2.4 and php 5.5 on ubuntu 12.04

 ̄綄美尐妖づ 提交于 2019-12-02 23:13:07
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-dev php5-imap php5-mcrypt Checking php version php -v PHP 5.5.8-3+sury.org~precise+1 (cli) (built: Jan

GitLab email notifications not sending

倖福魔咒の 提交于 2019-12-02 23:12:57
I just recently install GitLab v5.0 on an Ubuntu 12.04 server and am now having issues with email notifications. I can't get GitLab to send any emails of any kind. I've got my config/environments/production.rb file setup to use sendmail as the transport service: config.action_mailer.delivery_method = :sendmail config.action_mailer.perform_deliveries = true config.action_mailer.raise_delivery_errors = true And I can manually use sendmail successfully from the shell as described here: http://scratching.psybermonkey.net/2011/03/sendmail-how-to-test-sending-email.html My config/gitlab.yml file is

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

老子叫甜甜 提交于 2019-12-02 21:41:19
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 . you must open Project Structure modified something. example: Project Structure > Facets ,you can see this is: delete ".idea", like this ok, IDE there find AndroidManifest.xml I know the problem in

Error libGL.so: cannot open shared object file using Android emulator

安稳与你 提交于 2019-12-02 17:55:24
I was trying to run android emulator in Ubuntu 12.04(64-bit). But, I got the following errors. Starting emulator for AVD 'emulatr' Failed to load libGL.so error libGL.so: cannot open shared object file: No such file or directory Failed to load libGL.so error libGL.so: cannot open shared object file: No such file or directory emulator: emulator window was out of view and was recentered After using locate libGL. I found /home/adnan/android-sdk-linux/tools/lib/libGL.so /usr/lib/libGL.so /usr/lib/i386-linux-gnu/libGL.so /usr/lib/i386-linux-gnu/mesa/libGL.so /usr/lib/i386-linux-gnu/mesa/libGL.so.1

MySQL Job failed to start

旧城冷巷雨未停 提交于 2019-12-02 16:48:01
I'm on Kubuntu 12.04, and after installing mysql via an apt-get (mysql ver: 5.5.35), i'm trying to start mysql service, but I got this error: sudo service mysql start start: Job failed to start So I googled this problem, it says i have to go to the /var/log/mysql/error.log But my error.log file is empty :( Then I checked the permissions : drwxr-s--- 2 mysql adm 4096 Apr 7 11:21 mysql -rw-r----- 1 mysql adm 0 Apr 7 11:21 error.log So I don't know what to do... Why this error ? Why is the error file empty ? First make a backup of your /var/lib/mysql/ directory just to be safe. sudo mkdir /home/

How to compile avconv with libx264 on Ubuntu 12.04 LTS (Precise Pangolin)?

五迷三道 提交于 2019-12-02 16:25:06
Is there a step-by-step guide on how to compile avconv in Ubuntu? It seems hard to search for any tutorial with avconv compared to ffmpeg . Kugutsumen I finally found out how, 1.) Make a directory avconv-source mkdir avconv-source 2.) Download and install the x264 library cd ~/avconv-source git clone git://git.videolan.org/x264.git x264 cd x264 sudo ./configure --enable-static sudo make sudo make install 3.) Download the avconv source cd ~/avconv-source git clone git://git.libav.org/libav.git avconv cd avconv sudo ./configure sudo ./configure --enable-gpl --enable-libx264 sudo make sudo make

Ubuntu 12 - how to install Ruby and Rails correctly [closed]

送分小仙女□ 提交于 2019-12-02 15:50:26
I read a lot of articles regarding installing Ruby 1.9 and Ruby on Rails 3.2.3 on Ubuntu 12 . And I've installed them previously. But it took much time, about 5 days. I made many mistakes and I was very tired of that. Now I need to do it again. Obviously I want it to be effortless and correct. Like in Windows using Rails installer and Ruby installer. Can anyone give me a link about how to install them correctly(!)? Or maybe you know the right way? Kashiftufail Follow this and enjoy Install Ruby and Rails completely with chruby I would use RVM . I found it super easy to install and it maintains

SmartGit Installation and Usage on Ubuntu

Deadly 提交于 2019-12-02 14:50:17
I have downloaded latest SmartGit installation and each time I want to use it I need to run script smartgit.sh from SmartGit bin directory, this process requires the same repository setup every time. What it correct way of installing SmartGit on Ubuntu? Thus I can have normal icon and run the program from state of previous usage, without configuring repositories every time. Thanks. oori What it correct way of installing SmartGit on Ubuntu? Thus I can have normal icon In smartgit/bin folder, there's a shell script waiting for you: add-menuitem.sh . It does just that. You can add a PPA that

Check If a Particular Service Is Running on Ubuntu

久未见 提交于 2019-12-02 13:48:41
I do not know the service's name, but would like to stop the service by checking its status. For example, if I want to check if the PostgreSQL service is running or not, but I don't know the service's name, then how could I check its status? I know the command to check the status if the service name is known. Radu I don't have an Ubuntu box, but on Red Hat Linux you can see all running services by running the following command: service --status-all On the list the + indicates the service is running, - indicates service is not running, ? indicates the service state cannot be determined. For