How to schedule a command on linux
You can edit the crontab file to execute the command on scheduled time.
Below are the examples of crontab .
Linux Crontab Format
MIN HOUR DOM MON DOW CMD
Table: Crontab Fields and Allowed Ranges (Linux Crontab Syntax)
Field Description Allowed Value
MIN Minute field 0 to 59
HOUR Hour field 0 to 23
DOM Day of Month 1-31
MON Month field 1-12
DOW Day Of Week 0-6
CMD Command Any command to be executed.
Continue reading How to schedule a command on linux
How to show line number in nano command
if you want to show line number in nano command
run nano as you run normaly when window is open just press Alt+Shift+3 it will show line number.
How to access Centos 7 with windows RDP
If you want to access your Centos 7 server with windows RDP same as you are accessing windows machine .
Then you need the following packege to install xRDP
1- Add epel reposetry
# yum install -y epel-release
2- Install xRDP
# yum install -y xrdp
Continue reading How to access Centos 7 with windows RDP
Peer cert cannot be verified or peer cert invalid while using yum
If you are getting above error then perform the following to resolve the yum error.
1- check and correct the date and time of the server.
2- Check /etc/hosts file for any false DNS resolutions of servers.
3-Disable SSL verification by adding sslverify=false in /etc/yum.conf
4- Check repo file is using http or https and verify url.
How to access data after booting with Sysrcd rescue system
If you have servers in cloud or rented server on data center . some time its currepted or you need to get databack or edit and currect files.
you are booting with Sysrcd rescue system
After booting get ssh access and login
create a folder to mount your data or partition
Continue reading How to access data after booting with Sysrcd rescue system
How to public any service without public ip using OPENVPN.
Some time we want to publish our website or any service from our desktop to internet . Then we require public IP to publish our services on the internet.
So resolve this issue we can user third party services like PORTMAP.IO this gives you ability to publish your services over the internet using OPEN VPN Client.
For more information visit there website https://portmap.io/
How to configure SSL VPN on OPENVPN
If you want to configure openvpn on SSL port below are the example for server and client side.
Server side configuration
server 10.8.0.0 255.255.255.0
#push "redirect-gateway def1 ipv6 bypass-dhcp" ## To avoid all internet traffic except VPN##
push "route 192.168.29.0 255.255.255.0" ## To advertise Network ##
push "dhcp-option DNS 192.168.29.254"
#push "dhcp-option DNS 184.108.40.206"
keepalive 10 120
duplicate-cn ##To use single certificate for multiple user#
Continue reading How to configure SSL VPN on OPENVPN
How to setup your IT Infrastructure for Work From Home in low cost with open source secure industry standard technologies.
Here I am going to talk about talk about small and medium size offices and companies who are not able to invest big amount to upgrade or migrate there IT infrastructure for there workers to work from home in the COVID pandemic .
There are few things mostly you are using in the office as IT infrastructure as end user. if that IT infrastructure is available at your home then mostly people can work from home easily.
I am taking a small office example scenario with 30 employees which you require to work from home.
Simple small office network diagram .
Continue reading How to setup your IT Infrastructure for Work From Home
centos 5.11 yum repository
It is now EOD no updates available. but we require yum repo to install old applications .
go to and run
for i in $(ls *.repo); do mv $i $i.orig; done
copy the below code and save as CentOS-Base.repo
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
name=CentOS-$releasever - Base
name=CentOS-$releasever - Updates
#packages used/produced in the build but not released
name=CentOS-$releasever - Addons
#additional packages that may be useful
name=CentOS-$releasever - Extras
#additional packages that extend functionality of existing packages
name=CentOS-$releasever - Plus
#contrib - packages by Centos Users
name=CentOS-$releasever - Contrib
How to check Internet Speed on Centos CLI
Speedtest-cli is Python script its works on Python program.
you must have Python installed. check if have installed .
if you have not install then install it by
# yum install python
Download the script
#wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
#chmod +x speedtest-cli
Now check the internet speed