Quantcast
Channel: Linux - Amit's Blog
Browsing latest articles
Browse All 18 View Live

Set Time zone In Linux

Setting Desired Time Zone In Linux View the list of available Timezones: ls /usr/share/zoneinfo cd /etc/<br></br> mv localtime localtime.old<br></br> ln -sf...

View Article



Redirect or forward ports in iptables

Redirect or Forward Ports using Iptables Port Redirection: iptables -t nat -A PREROUTING -i <interface> -p tcp --dport <port number=""> -j REDIRECT --to-port...

View Article

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...

View Article

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 as raw filesystem. So just open fdisk...

View Article

Configure PPTP VPN Server

Install ppp yum install ppp Download pptpd rpm wget http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.el6.i686.rpm Set the local and remote ip in /etc/pptpd.conf vi /etc/pptpd.conf...

View Article


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...

View Article

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

View Article

Nginx - SSL Passthrough Reverse Proxy

Nginx 1.9.3+ allows TCP load balancing or SSL passthrough. What this means is you can reverse proxy or load balance web applications  without having to terminate SSL at the nginx. Example Configuration...

View Article


Alpine with XFCE and VNC on a virtual machine

I was looking to create a light weight virtual machine with Graphical user interface for segmenting some of my internet browsing endeavors. I tested a couple of light weight Linux distros but ended up...

View Article


Getting exit status of the command when using pipes

I came across a situation where i needed the exit code of last command but before passing it through the pipe. For example, running the following command would give the exit code 0, even if the first...

View Article

Image may be NSFW.
Clik here to view.

Generate UUID in bash

Sometimes you may need to generate random UUIDs in bash shell. Here's a quick way to generate one : uuidgenIf you need to get just the uuid and no dashes , you can use sed : uuidgen | sed...

View Article
Browsing latest articles
Browse All 18 View Live




Latest Images