Posts Tagged ‘Linux’

How to get/kill process in ubuntu

For example if process name is php, you can get a list of jobs by using the command bellow

ps aux | grep php

Result

root 7749 0.0 0.1 3236 796 pts/2 S+ 16:09 0:00 grep php
root [...]

Howto enable ssl and create self-signed ssl certificate

Enable ssl
In my case it was simple. I just ran this line

a2enmod ssl

Generate self-signed ssl certificate
Solution: http://www.akadia.com/services/ssh_test_certificate.html
Just follow instruction carefully. Make sure that i step 2 you need to enter a correct “Common Name”, ie your domain. Step 5 and 6 also different for different distributions and installation …
Summary in case link above is not [...]

How to install a .deb file

To install package called package.deb type the following command (make sure that all dependencies are installed)

sudo dpkg -i /path/to/folder/package.deb

How to get svn revision in ant using svn or svnversion

This article is aimed to you whom use svn in linux environment. If you are using windows and Tortoise this post may be more interesting.
Here are two ways to get revision number when you build your project. The first one is a complete method to get this number and the second one will give you [...]

How to run php script via putty or command line

If you need to run a php script in Linux environment via putty or other clients and want to close client without terminating the running process of php script you may need to do as bellow. The keyword is nohup …

nohup php policyserver.php > /dev/null 2>&1 &