Backup and Restore your Centos

Backup and Restore your Centos 7 Some time you want to take backup of your server including application and settings .below are the easy method a small example 1- The first step is to create a location to store the backup. For this article we’re going to store the backup on the same hard drive … Read more

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:  create a new repo file and enter the following lines

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/

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

Read more

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 … Read more

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

Read more