Kevin Hatfield's Blog

Kevin's blurry train of thought……

Archive for the ‘Daily Linux Tip’ Category

ServerOrigin.Com – Now offering Cloud-Based DDoS Mitigation

Tuesday, February 16th, 2010

I have to plug the company here and just write that we’re now offering cloud-based ddos protection services on our Xen/VMWare platforms.

Please check out http://www.serverorigin.com/ddos.php for our DDoS Mitigation ethProxy Service.

DDoS Proxy protection with ServerOrigin at http://www.serverorigin.com

Control multiple computers with a single keyboard and mouse

Monday, August 31st, 2009

You don’t need a hardware switch to share one keyboard and mouse amongst several different computers. All you need is the free, cross-platform application, Synergy.

Synergy connects one keyboard and mouse to any computer on your network, making a dual- or triple-computer setup work more like a dual- or triple-monitor setup. Synergy even allows you to share clipboard data across your computers and operating systems.

Today I’ll detail how to set up Synergy on your home network to control all of your desktops with one mouse and keyboard.
How it works

Synergy uses one computer as a server – that’s the computer that will be sharing its keyboard and mouse. The rest of your computers – the ones you want to control – will need to be set up as Synergy clients.

The great part about Synergy is that you can customize the program to work with the layout of your computers. For example, if you’ve got your MacBook running to the left of your Windows PC, you can set up Synergy so that moving your mouse to the left of your Windows monitor will seamlessly jump your mouse across virtual space where it lands safely on your Mac. Whichever desktop currently holds your mouse is also the desktop to which your keyboard’s keystrokes will be sent. Make sense? Add to that Synergy’s clipboard sharing and you’ve got one helluva convergence app.
What you’ll need:

If you’ll be running one or more Windows PC’s in your setup, download and install the Synergy Installer for Windows on each PC. (On the SourceForge page I’ve linked to, the current version is labeled SynergyInstaller-1.3.1.exe.)

If you want to run one or more Macs on your setup, download and install SynergyKM on each Mac you want to use.

Finally if you’re running Linux, grab the platform independent version.

The Windows and Mac downloads for Synergy both offer nice and simple GUIs for setting up Synergy, and we’ll focus on those here. The *nix version of Synergy requires editing a configuration file and running from the command line. I won’t cover that here, but this guide should help.
Set up your Synergy server

Read more here

How to set MTU size for a Network Interface in Redhat Enterprise Linux(RHEL)

Tuesday, July 7th, 2009

The Maximum Transmission Unit (MTU) can be set/modified in real time on Redhat Enterprise Linux or can be set force the value at boot time.

The MTU in simple terms is the maximum size of a packet that can be sent on a Network Interface card. The default MTU size is 1500 bytes.

To dynamically change the MTU in real time while the server is in use,

redhatlinux# ip link set dev eth0 mtu 1350

where eth0 is the Ethernet interface and 1350 is the mtu size (1350 bytes)

However, this change is lost when the server or the network interface restarts the next time.

To make the change permanent, edit the interface configuration file (for instance eth0)

/etc/sysconfig/network-scripts/ifcfg-eth0

and add the following line

MTU=1350

so a cat of the file should look something like this

redhatlinux# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
MTU=1350
BOOTPROTO=dhcp
ONBOOT=yes
TYPE=Ethernet

Once done, simply restart the interface or reboot the server at the next available maintenance window for the changes to take effect.

To restart the Network Interface

redhatlinux# service network restart eth0

To view the updated MTU

redhatlinux# ip link list
1: lo: mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: mtu 1350 qdisc pfifo_fast qlen 1000
link/ether 00:01:11:12:13:14 brd ff:ff:ff:ff:ff:ff
3: eth1: mtu 1500 qdisc noop qlen 1000
link/ether 00:40:f4:98:8e:43 brd ff:ff:ff:ff:ff:ff

or

redhatlinux# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:01:11:12:13:14
inet addr:192.168.10.11 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1350 Metric:1
RX packets:12321 errors:0 dropped:0 overruns:0 frame:0
TX packets:6610 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:201126104 (194.1 MiB) TX bytes:78293 (768.8 KiB)
Interrupt:209 Memory:fb000000-0