Seperate Private Key and Certificate file
#Generate certificates bundle file
openssl pkcs12 -nokeys -in server-cert-key-bundle.p12 -out server-ca-cert-bundle.pem
#Generate server key file
openssl pkcs12 -nocerts -nodes -in server-cert-key-bundle.p12 -out server.key
Convert a PKCS#12 file (.pfx .p12) containing a private key and certificates to PEM
openssl pkcs12 -in keyStore.pfx -out keyStore.pem -nodes
Some time we faces issues with MySQL installation on Linux machine. If we simply remove MySQL packages and re-install doesn’t fixes the issue, in that case old settings may still exists on server which again affects new install. In that case first uninstall MySQL completely from system and erase all settings of old install. To do the same follow the below settings.
Note: Please do not use below steps if MySQL have any running databases.
Step 1: Uninstall MySQL Packages
First uninstall all the MySQL packages installed on your server
# yum remove mysql mysql-server
Step 2: Romove MySQL Directory
Now we need to remove MySQL data directory from system which by default exists at/var/lib/mysql. If you didn’t find this, It may be changed to some other place, which you can find in my.cnf file with variable datadir. Delete the /var/lib/mysql directory from system but we prefer to rename it to keep a backup of existing files.
# mv /var/lib/mysql /var/lib/mysql_old_backup Continue reading “Reinstalling MySQL on CentOS/Redhat 6” »
In this tutorial, I’ll show you the steps to create a simple failover cluster on Ubuntu using CARP. To make the things meaningful,we’ll create the cluster for Apache service but you can use it for any other service, which relay on IP.
Here is my Setup:
PrimarySrv: This is the main server, where I configured the apache and which act as Master (IP: 192.168.1.202)
SecondarySrv: 2nd Apache Server where I configured the apache exactly like on PrimarySrv (IP : 192.168.1.203)
192.168.1.250 : Virtual IP address,created using Ucarp. Continue reading “Simple failover cluster using UCARP on Ubuntu (Heartbeat Alternative)” »
Was looking for a PC edition software that can interact and do all things on the iPhone, particularly-
- Backing up SMS
- Backing up contacts instead iCloud
- Accessing Notes
- Accessing Calendar
- Accessing Safari bookmarks
Fundamentally above items are enough!
SO let’s go, what I did to achieve it-
- An iPhone, iPad, or iPod
- A Mac or PC with iTunes installed
- USB cable to connect your iPhone, iPad, or iPod
Continue reading “iExplore- Cool software for managing iPhone 5” »
Our system’s hostname is server1.example.com, and we have a website www.example.com on it with the document root/var/www/www.example.com/web.
The following steps have to be performed as root user. To become root user on your server, run this command:
Ensure that the system is up to date before you start to install Munin, run:
Apache is used to show the Munin pages, the apache fcgid module is required for the Munin graph zoom feature. I will install apache and the libapache2-mod-fcgid module with apt. Continue reading “Server Monitoring with Munin and Monit on Ubuntu 14.04 LTS” »
Read it first in Bangla while was a school student, likely to be in my religion classes. Thought might be useful to other.
Prophet Muhammad’s final sermon was delivered during the Hajj of the year 632 C.E., the ninth day of Dhul Hijjah, the 12th month of the lunar year, at Arafat, the most blessed day of the year. There were countless Muslims present with the Prophet during his last pilgrimage when he delivered his last Sermon. Continue reading “Prophet Muhammad’s Last Sermon” »
By default the Linux network stack is not configured for high speed large file transfer across WAN links. This is done to save memory resources. You can easily tune Linux network stack by increasing network buffers size for high-speed networks that connect server systems to handle more network packets.
The default maximum Linux TCP buffer sizes are way too small. TCP memory is calculated automatically based on system memory; you can find the actual values by typing the following commands:
$ cat /proc/sys/net/ipv4/tcp_mem
The default and maximum amount for the receive socket memory:
$ cat /proc/sys/net/core/rmem_default
$ cat /proc/sys/net/core/rmem_max
The default and maximum amount for the send socket memory: Continue reading “Linux Tune Network Stack (Buffers Size) To Increase Networking Performance” »
On server 2008, go to the Server manager, and Add/Remove Programs.
For my example, i already have file services installed on this server, if it’s not, install it as a role, and add this feature, “services for NFS” Continue reading “Mount NFS Partition from WIndows 2008 Server” »
By default, VNC is not secure protocol.VNC uses encryption during initial connection and login (passwords are not sent in plain-text). Once, we connected then all the VNC data is unencrypted and hacker could sniff our VNC session. It is better (safer) to start VNC server only on 127.0.0.1(localhost) and tunnel it over secure SSH tunnel (For this,there are options in Putty).
In this example, I am using CentOS 6.2 as VNC server and VNC Viewer & PuTTY as VNC client on Windows 7.
On CentOS, edit /etc/sysconfig/vncservers file:
sudo nano /etc/sysconfig/vncservers
Add the option “-localhost“: Continue reading “How to Encrypt VNC Traffic with Putty” »
To install SVN server, run this command at the command prompt:
sudo apt-get install subversion libapache2-svn apache2
Make the directory where you want to keep the svn repositories and edit the dav_svn.conf file:
sudo mkdir /svn
sudo nano /etc/apache2/mods-enabled/dav_svn.conf
Delete all the data and make it simple like this
AuthName "Subversion Repository"
To create a svn user , use the following command: Continue reading “SVN Server on Ubuntu 12.04 LTS with Web Access” »