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

(more…)

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

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

(more…)

Continue Reading How to configure Mikrotik DHCP Server for Cisco Phone TFTP option

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. (more…)

Continue Reading How to install VMware tools in Linux Virtual Machine

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…

Continue Reading OpenVPN CRL has expired

OPENVPN Logs

OPENVPN Logs To troubleshoot connection issues check below logs grep the client name  in /var/log/messages # grep VPN    /var/log/messages Check the connection time #cat /etc/openvpn/openvpn-status.log Check the connection negotiation…

Continue Reading OPENVPN Logs

VMware OS Optimization Tool

VMware OS Optimization Tool The VMware OS Optimization Tool helps optimize Windows 7/8/2008/2012/10 systems for use with VMware Horizon View. The optimization tool includes customizable templates to enable or disable…

Continue Reading VMware OS Optimization Tool

iptables port forwarding

iptables port forwarding

I am port forwarding  public ip x.x.x.x  to private ip 192.168.200.200  .

iptables -A INPUT -i eth0 -p tcp –dport 5001 -m state –state NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -o eth0 -p tcp –sport 5001 -m state –state ESTABLISHED -j ACCEPT
iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp –dport 5001 -j DNAT –to-destination 192.168.200.200:5001

(more…)

Continue Reading iptables port forwarding