Linux Tune Network Stack (Buffers Size) To Increase Networking Performance Rumi, December 23, 2015 By default the Linux network stack is not configured for high speed large file transfer across WAN links. This is done to save memory resources. You can easily tune Linux network stack by increasing network buffers size for high-speed networks that connect server systems to handle more network packets. The… Continue Reading
How to Encrypt VNC Traffic with Putty Rumi, December 9, 2015 By default, VNC is not secure protocol.VNC uses encryption during initial connection and login (passwords are not sent in plain-text). Once, we connected then all the VNC data is unencrypted and hacker could sniff our VNC session. It is better (safer) to start VNC server only on 127.0.0.1(localhost) and tunnel it… Continue Reading
SVN Server on Ubuntu 12.04 LTS with Web Access Rumi, December 9, 2015December 9, 2015 To install SVN server, run this command at the command prompt: sudo apt-get install subversion libapache2-svn apache2 Make the directory where you want to keep the svn repositories and edit the dav_svn.conf file: sudo mkdir /svn sudo nano /etc/apache2/mods-enabled/dav_svn.conf Delete all the data and make it simple like this 🙂 <Location… Continue Reading
How to Update SSH & MOTD Banner on CentOS 6 Rumi, December 7, 2015December 7, 2015 For legal reasons, Some people need to display a warning banner on their Linux machine before login so that a person requires to acknowledge the contents of the banner before entering the password. To do this, edit a/etc/issue.net file and fill it with the desired context. Edit the /etc/issue.net file: sudo… Continue Reading
Secure RDP connection through Vyatta using PuTTY Rumi, December 6, 2015 Connecting to SSH Server as gateway instead of directly RDP to a PC is safer way and add another layer ofencryption.With this method,we can connect to any client that is behind the firewall provided that we have open the port 22 (or any other SSH port) to the SSH Server…. Continue Reading
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
Check Hardware Commands in Linux Rumi, November 5, 2015 1. lscpu The lscpu command reports information about the cpu and processing units. It does not have any further options or functionality. $ lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 1 Core(s) per socket: 4 Socket(s): 1… 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