Tagged: linux

Touch command tips and tricks

Touch command tips and tricks

Changing modification time using touch: touch -d ‘-4 day’ filename touch -d ‘-4 hour’ filename touch -d "30 days ago" filename Setting Timestamp : touch -t 201606101712 filename

Disabling SELINUX

Disabling SELINUX

In order to disable selinux , run the following commands : To Disable SeLinux For Current Session only : setenforce permissive or echo 0 > /selinux/enforce To Disable Selinux permanently: vi /etc/sysconfig/selinux SELINUX=disabled

Configure PPTP VPN Server

Configure PPTP VPN Server

1. Install ppp yum install ppp 2. Download pptpd rpm wget http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.el6.i686.rpm 3. Set the local and remote ip in /etc/pptpd.conf vi /etc/pptpd.conf localip <local ip address of server> remoteip < range of ip addresses...

Extending an LVM With FreeSpace

Extending an LVM With FreeSpace

There can be a number of scenarios you want to extend an LVM. a. New Hard Drive b. Free Space c. Extended disk in a VM If you just extended space, you have that...

Installing Mono Tools in Centos

Installing Mono Tools in Centos

Mono tools are the collection of libraries and framework , that make the possibility of using .net based applications and gui in linux. They are not available in the standard repositories, so we have...

Redirect or forward ports in iptables

Redirect or forward ports in iptables

Redirect or Forward Ports using Iptables Port Redirection: iptables -t nat -A PREROUTING -i -p tcp –dport -j REDIRECT –to-port or iptables -t nat -I PREROUTING –src ip/mask –dst -p tcp –dport 80 -j...

Set Time zone In Linux

Set Time zone In Linux

Setting Desired Time Zone In Linux View the list of available Timezones: ls /usr/share/zoneinfo cd /etc/ mv localtime localtime.old ln -sf /usr/share/zoneinfo/GMT localtime /sbin/hwclock –systohc Sometimes, the above method does not work, this is...