Monday, November 18, 2013

Generate CSR & Install ssl certfication on linux server

It's 2 Step Process -

Step 1 - Create CSR field and send & receiving your SSL cert from your authority of choice -

Start with below command in terminal - 

openssl req -nodes -newkey rsa:2048 -keyout domain.key -out domain.csr

Thursday, June 20, 2013

Linux command - How to create a zip file of whole directory

We can use below linux command to zip archive a directory -

zip -r finename.zip /path/to/folder

Tuesday, June 18, 2013

How to configure send mail on linux dedicated server

Step 1 - Install Sendmail

          yum install sendmail

It will install sendmail on server. If already installed pleas skip this step

Step 2 - Enable sendmail

     setsebool -P httpd_can_sendmail 1

Step 3 - Start Sendmail Service

          service sendmail start


Wednesday, April 3, 2013

Linux Command to unzip zip file


Use below command to extract all files into the /path_to_dir directory:

$ unzip /path_to_file/file.zip  -d /path_to_extract

For example if you want to extract /var/www/html/file.zip to /var/www/html/site/

$ unzip /var/www/html/file.zip  -d /var/www/html/site/

Make sure you have installed zip / unzip utility 

if not use below commands to install

$ yum install zip

$yum install unzip

Tuesday, March 19, 2013

Which Linux distribution we choose Centos or Fedora

There are many different versions of Linux, and unlike other commercial operating systems that are controlled, distributed and supported by only one company, the core of Linux is free to distribute and use. This creates a situation in which numerous companies, organizations and individuals have developed their own specific version of the Linux operating system. When these versions are made publically available for use, they are known as “distributions”.

Monday, March 11, 2013

Centos 6.3 Screen resolution - GUI not fit for default resolution and we not able to change it. No other option available in screen display settings



Centos screen resolution - GUI not fit for default resolution and no other option was in screen display settings.
Remove xorg.conf file having resolution setting. Follow below steps:
  1. Go to /etc/x11/ 
  2. Remove xorg.conf file
  3. Reboot System
When system starts and comes to gui. Now go to screen display settings. All other options for screen resolution will be visible now. We can set it now.
 

Saturday, March 2, 2013

Set selinux to allow Apache and Samba on the same folder



First off, you can view the context of something with ls using ls -Z
[root@servername www]# ls -dZ /var/www/html
drwxr-xr-x  root root system_u:object_r:httpd_sys_content_t /var/www/html
 
Second, there are two options for giving Samba and Apache access to the same directory.
The simple way is to just allow samba read/write access everywhere with: