Downgrade Centos 6.x Kernel Version

VOS3000 2.1.4.0 does not support latest Kernel Versions. you have to downgrade Kernel

mkdir download
cd download/
wget http://vault.centos.org/6.4/os/x86_64/Packages/kernel-2.6.32-358.el6.x86_64.rpm
yum list kernel-2.6.32-358*
yum install kernel-2.6.32-358.el6.x86_64.rpm
ls
vi /boot/grub/menu.lst
reboot
Posted in Uncategorized | Leave a comment

How to stop and start ApacheTomcat VOS3000 2.1.4.0

Login to your server

To STOP Apache Tomcat Server

# /home/kunshiweb/base/apache-tomcat/bin/shutdown.sh

To START Apache Tomcat server

#/home/kunshiweb/base/apache-tomcat/bin/startup.sh

Posted in Uncategorized | Leave a comment

Centos 5.X yum update

Update of packages using default repositories (base, update etc.) is no longer applicable.You should switch boxes, run on CentOS 5.x., to so called Vault repositories.

1- Disable base, updates and other enabled repositories (where enabled=1 is set) in the CentOS-Base.repo: 

sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/CentOS-Base.repo

create a new repo file and enter the following lines

vim  /etc/yum.repos.d/CentOS-Vault.repo

[c5.11-base]
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
gpgcheck=1
name=CentOS-5.11 - Base
baseurl=http://vault.centos.org/5.11/os/$basearch/
exclude=ruby* libyaml* corosync* corosynclib* pacemaker*
enabled=1
[c5.11-updates]
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
gpgcheck=1
name=CentOS-5.11 - Updates
baseurl=http://vault.centos.org/5.11/updates/$basearch/
exclude=ruby* libyaml* corosync* corosynclib* pacemaker*
enabled=1

original link :- https://docs.onapp.com/misc/eol-centos-5-x

Posted in Uncategorized | Leave a comment

How to Install VMware Tools on CentOS 7

How to Install VMware Tools on CentOS 7

# yum install -y open-vm-tools

check file is exist

# ls /usr/bin/vmtoolsd

Now reboot the server

 

 

Posted in Linux, VMware | Leave a comment

How to check directory size in Linux

How to check directory size in Linux

DU command uses for disk uses you can use du command to check directory size.

for example you want to check directory size of a folder  "database"
use -h for size in MB GB etc 

# du -h ./database/
17G     ./database/

Posted in Linux | Leave a comment

How to update Centos 5 .X and cannot find a valid baseurl for repo

How to update Centos 5 .X and cannot find a valid baseurl for repo

If you are using CentOS 5.x and want to install any software and update CentOS 5.x  . you are getting following error .

root@server1 [~]# yum update -y
Loaded plugins: fastestmirror
Determining fastest mirrors
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/
removing mirrorlist with no valid mirrors: /var/cache/yum/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base

This is because update repositories were moved to the CentOS vault when the operating reached it's end-of-life.

Edit the following file

Continue reading

Posted in Linux | Tagged | Leave a comment

vos3000 illegal calls query to block IP address

vos3000 illegal calls query to block IP address

All call records are saved in e_cdr_files

you can query to get ip addresses of illegal calls source.

mysql> select DISTINCT callerip from e_cdr_20180818 where endreason = ‘-9’;
+—————-+
| callerip |
+—————-+
| 195.154.93.229 |
| 50.2.187.130 |
| 5.62.63.181 |
| 216.244.84.202 |
| 37.49.231.161 |
| 88.198.57.146 |
| 37.49.231.63 |
| 50.22.52.22 |
| 93.190.143.70 |
| 216.244.73.98 |
+—————-+
10 rows in set (0.00 sec)

if someone can write a script to get IP address from current date CDR  for every 5 min and update the iptables automatically.

Posted in Uncategorized | Tagged | Leave a comment

How to configure Mikrotik DHCP Server for Cisco Phone TFTP option

How to configure Mikrotik DHCP Server for Cisco Phone TFTP option

1- Change your TFTP server IP in to hex code

you can use this online tool : http://www.miniwebtool.com/ip-address-to-hex-converter/

2- Now configure Mikrotik RouterOS :

/ip dhcp-server option add code=150 name=ciscotftp value=0xC0A80307

Continue reading

Posted in Mikrotik | Tagged , , , , , , , , , | Leave a comment

How to install VMware tools in Linux Virtual Machine

How to install VMware tools in Linux Virtual Machine

  1. Make sure Linux virtual machine is powered on.
  2. Click VMin the virtual machine menu, then click Guest > Install/Upgrade VMware Tools.
  3. Click OK.Note: In some cases, verify that the CDROM device is Connectedfrom within the Edit Settings option of the virtual machine.
  4. To create a mount point, run:mkdir /mnt/cdrom
  5. To mount the CDROM, run:mount /dev/cdrom /mnt/cdrom
  6. Continue reading

Posted in VMware | Tagged | Leave a comment

OpenVPN CRL has expired

OpenVPN CRL has expired

VERIFY ERROR: depth=0, error=CRL has expired: CN=servername

In order to fix the issue, we just need to recreate the crl.pem file.

we need  to backup the current crl.pem file before creating a new one.

The location of the  crl.pem file  at /etc/openvpn/

#mv  crl.pem  crl.pem.back

Now go to  easy-rsa  folder

# cd  easy-rsa

now generate crl.pem

./easyrsa gencrl

Now copy the new crl.pem to openvpn folder

# cp pr /etc/openvpn/easyrsa/pki/crl.pem

Now restart openvpn service

 

source link :- https://www.jobishmathew.me/openvpn-crl-has-expired/

Posted in Uncategorized | Tagged | Leave a comment