IP Setting on CentOS6 using Shell Script Rumi, December 6, 2015 #!/bin/bash if [ $# -eq 5 ] then echo “” echo “Taking the backup and Changing the hostname from $(hostname) to $1 …” sed -i.bk “s/$(hostname)/$1/g” /etc/sysconfig/network echo “” echo “Backing up & Assigning the Static IP …” echo “” cp /etc/sysconfig/network-scripts/ifcfg-$2 /etc/sysconfig/network-scripts/$2.bk cat <<EOF > /etc/sysconfig/network-scripts/ifcfg-$2 DEVICE=$2 BOOTPROTO=static IPADDR=$3.$4… Continue Reading
Cloning Openvz Proxmox PVE container guest machine Rumi, November 4, 2015December 13, 2016 I first created a ‘template’ vm containing all stuff I need and using a temporarily ip adres. In the network config file of eth0 (/etc/sysconfig/network-scripts/ifcfg-eth0) I comment out the HWADDRESS line, else it will not come up with another mac address… Stop this ‘template’ vm as it is just used… Continue Reading
Allow NFS attachment on Proxmox OpenVZ containers Rumi, November 4, 2015 Prepare the container To allow a container to use NFS filesystem, you will need to start it with “nfs” feature enabled. If the container is running while you set the –features nfs:on, you will need to reboot it. # vzctl set 101 –features “nfs:on” –save # vzctl start 101 After… Continue Reading
How to install FFmpeg or avconv on Debian Rumi, November 1, 2015 You may install “avconv” which has almost the same usage as “ffmpeg”. The two commands often use the same syntax, but features such as srt subtitles may only work with ffmpeg. sudo apt-get install libav-tools Continue Reading
Stunnel on Debian/Ubuntu with Squid Rumi, October 27, 2015 What’s Stunnel The Stunnel program is designed to work as an SSL encryption wrapper between remote client and local (inetd-startable) or remote server. It can be used to add SSL functionality to commonly used inetd daemons like POP2, POP3, and IMAP servers without any changes in the program’s code. What… Continue Reading
Creating PPTP on Pfsense 2.2.4 Rumi, October 20, 2015October 20, 2015 If you want to build a PPTP server graphically build using pfsense nice looking interface, then please do follow the steps below. Here I assume, a proper NAT firewall is already running in the pfsense configuration. Step-1 Go to VPN > PPTP from top menu Under “Configuration” tab- PPTP redirection… Continue Reading
1:1 NAT firewall using pfsense Rumi, October 19, 2015October 19, 2015 Assuming you are planning to setup your server infrastructure behind firewall- pfsense. You have a Public IP- 114.130.56.x to be pointed to your private lan server with 192.168.14.x. Let’s begin- Step-1 Adding public IP to the WAN interface “Firewall > Virtual IPs ” as below- Step-2 Now move on the… Continue Reading
Obtaining pfsense 2.2.4 as ISO Rumi, October 17, 2015 PFSense is a very strong firewall as my alternative for Endian (BSD Vs. Redhat-Linux) Here’s the direct download link- http://files.nl.pfsense.org/mirror/downloads/pfSense-LiveCD-2.2.4-RELEASE-amd64.iso.gz How to extract? gzip -d pfSense-LiveCD-2.2.4-RELEASE-amd64.iso.gz Voila! your unzipped ISO is now available. 🙂 Continue Reading
Display Available Network Ethernet Interfaces Rumi, October 10, 2015 List Network Interfaces Using ip Command Type the following command, enter: $ ip link show Sample outputs: Continue Reading
Install Openmediavault on Debian Wheezy/7 Rumi, October 3, 2015April 27, 2018 First Install Debian minimal Configure your Debian repositories Update the repository sources and add the contrib and non-free repositories. nano /etc/apt/sources.list It should look something like this: deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free deb-src http://ftp.us.debian.org/debian/ wheezy main contrib non-free deb http://security.debian.org/ wheezy/updates main contrib non-free deb-src http://security.debian.org/ wheezy/updates main contrib… Continue Reading