Travel

Categories

Things to do after installing Ubuntu

http://www.webupd8.org/2014/04/10-things-to-do-after-installing-ubuntu.html

use snmpget to get linux cpu loading, etc

CPU Statistics

Load 1 minute Load: .1.3.6.1.4.1.2021.10.1.3.1 5 minute Load: .1.3.6.1.4.1.2021.10.1.3.2 15 minute Load: .1.3.6.1.4.1.2021.10.1.3.3

CPU percentage of user CPU time: .1.3.6.1.4.1.2021.11.9.0 raw user cpu time: .1.3.6.1.4.1.2021.11.50.0 percentages of system CPU time: .1.3.6.1.4.1.2021.11.10.0 raw system cpu time: .1.3.6.1.4.1.2021.11.52.0 percentages of idle CPU time: .1.3.6.1.4.1.2021.11.11.0 raw idle cpu time: .1.3.6.1.4.1.2021.11.53.0 raw nice cpu time: […]

Load balancing & NAT-ing multiple uplinks on Linux

LAN: eth0: 192.168.0.1/24

IP1: eth1: 192.168.1.1/24, gateway: 192.168.1.2/24

IP2: eth2: 192.168.2.1/24, gateway: 192.168.2.2/24

So here is how I would do by using iptables method:

Route tables

First edit the /etc/iproute2/rt_tables to add a map between route table numbers and ISP names

… 10 IP1 20 IP2 …

So table 10 and 20 is for ISP1 […]

Measure IOPs in Unix/Linux

http://www.refmanual.com/2012/11/16/measure-unix-iops/

IOPS = (MBps Throughput / KB per IO) * 1024 Or MBps = (IOPS * KB per IO) / 1024

CentOS/RHEL 6 virtualized guest tuning

1.yum install tuned tuned-utils

2. tuned-adm profile virtual-guest

3. dd if=/dev/zero of=tmpfile bs=1M count=1000

See the tables below :

Profile explanation :

default The default power-saving profile. This is the most basic power-saving profile. It enables only the disk and CPU plug-ins. Note that this is not the same as turning tuned-adm off, where […]

UEFI and Ubuntu

https://help.ubuntu.com/community/UEFI

http://askubuntu.com/questions/221835/installing-ubuntu-on-a-pre-installed-uefi-supported-windows-8-system

Use NOOP I/O Scheduler for virtualized Linux guest with kernel 2.6 guest on vmware

Refer to http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2011861

The scheduler can be set for each hard disk unit. To check which scheduler is being used for particular drive, run this command:

cat /sys/block/disk/queue/scheduler

For example, to check the current I/O scheduler for sda:

# cat /sys/block/sda/queue/scheduler [noop] anticipatory deadline cfq

In this example, the sda drive scheduler is set to […]

Linux 2.6+ tuning for Data Transfer hosts connected at speeds of 1Gbps or higher

http://fasterdata.es.net/host-tuning/linux/

Nagios nrep “NRPE: Unable to read output” after using sudo

edit /etc/sudoers and comment the below :

#Defaults requiretty

Linux iptables firewall rules to prevent private IP leakage from masquerade/SNAT

Unroutable TCP type packets, from reserved for local use only networks (RFC1918), being sent out to internet on a Linux masquerade box.

See http://www.smythies.com/~doug/network/iptables_notes/index.html

And http://en.wikipedia.org/wiki/Transmission_Control_Protocol#Connection_termination