Network bandwidth from cli – Speedometer and speedtest-cli

Speedometer:

Measure and display the rate of data across a network connection or data being stored in a file. Download the tarball and extract to run.
Reference Site: http://excess.org/speedometer

Example Use:

speedometer -s -rx eth0
speedometer -s -tx eth0
speedometer -s -rx eth0 -tx eth0

Speedtest-Cli:

Command line interface for testing internet bandwidth using speedtest.net
Reference site: https://github.com/sivel/speedtest-cli

Example Install and Use:

Install Git:

 $ sudo apt-get install git-core 

Clone the Repository from GitHub:

 $ git clone https://github.com/sivel/speedtest-cli.git 

Sample Usage and Output:

 $ ./speedtest-cli 

Retrieving speedtest.net configuration…
Retrieving speedtest.net server list…
Testing from Comcast Cable (x.x.x.x)…
Selecting best server based on ping…
Hosted by FiberCloud, Inc (Seattle, WA) [12.03 km]: 44.028 ms
Testing download speed………………………………….
Download: 32.29 Mbit/s
Testing upload speed…………………………………………..
Upload: 5.18 Mbit/s

HoneyDrive

HoneyDrive is a virtual appliance (OVA) with Xubuntu Desktop 12.04 32-bit edition installed. It contains various honeypot software packages such as Kippo SSH honeypot, Dionaea malware honeypot, Honeyd low-interaction honeypot, Glastopf web honeypot along with Wordpot, Thug honeyclient and more. Additionally it includes useful pre-configured scripts and utilities to analyze, visualize and process the data it can capture, such as Kippo-Graph, Honeyd-Viz, and much more. Lastly, many other helpful security, forensics and malware related tools are also present in the distribution.

More info download and FAQ:
http://bruteforce.gr/honeydrive

Sourceforge Page:
http://sourceforge.net/projects/honeydrive

 

xtermcontrol

Xtermcontrol enables dynamic control of xterm properties. It makes it easy to change colors, title, font and geometry of a running xterm, as well as to report the current settings of these properties. Window manipulations de-/iconify, raise/lower, maximize/restore and reset are also supported.

To complete the feature set; xtermcontrol lets advanced users issue any xterm control sequence of their choosing.

Reference and Install:
http://thrysoee.dk/xtermcontrol/

Tuxboot

Tuxboot helps you to create a bootable Live USB drive for Clonezilla live, DRBL live, GParted live and Tux2live. It is modified from UNetbootin and runs on both MS Windows and GNU/Linux. You can choose to download the latest version of Clonezilla live, DRBL live, or GParted live ISO/zip file then create the live USB.

Features:

  • Support Clonezilla live, DRBL live, GParted live and Tux2live. Tuxboot uses the syslinux in the ISO/zip file to make your USB drive bootable, so it is compatible with the same version of syslinux boot menu in the ISO/zip file.
  • Auto find the latest version.
  • Download an ISO file and build bootable USB flash drive on the fly.

More info and download – http://www.tuxboot.org/

Solarized colours with vim

Solarized is a sixteen colour palette (eight monotones, eight accent colours) designed for use with terminal and gui applications. It has several unique properties. Ethan Schoonover designed this colourscheme with both precise CIELAB lightness relationships and a refined set of hues based on fixed coluor wheel relationships.

References and Installation:
http://www.xorcode.com/2011/04/11/solarized-vim-eclipse-ubuntu/

http://ethanschoonover.com/solarized

 

Tools for Apache Logs

Two great tools to use for checking Apache Logs:
GoAccess and Apachetop.

GoAccess:
GoAccess is a real-time Apache web log analyzer and interactive viewer that runs in a terminal and provides fast and valuable HTTP statistics for system administrators that require a visual report on the fly.

Features:

  • web analyzer
  • real time server logfile analysis
  • statistics
  • monitor
  • http

 

Install:
With Ubuntu / Debian run:

 sudo apt-get install goaccess 

Then run GoAccess interactively with:

 sudo goaccess -f /var/log/apache2/access.log 

More details and latest version – http://sourceforge.net/projects/goaccess/

Apachetop:
apachetop is a console-based (non-gui) tool for monitoring the threads
and overall performance of a set of Apache web servers. It runs on
Unix systems which have Perl, LWP, and Term::ReadKey installed. It is
based largely on the excellent mytop tool written by Jeremy Zawodny.

For more information see apachetop.html or its wiki page at github:

http://github.com/JeremyJones/Apachetop

Install:
With Ubuntu / Debian:

 sudo apt-get install apachetop 

Then run Apachetop against the log file or interactive:

sudo apachetop
sudo apachetop -f /var/log/apache2/access.log 

See apachetop -h for more details or man apachetop

 

Linux Performance Enhancements

Some quick easy Linux Performance Enhancements, works better for Laptops.

Change Cpu Governor:

  1. install cpufreq utility (Ubuntu/Debian)
     apt-get install cpufrequtils 
  2. Check CPU frequencies
     cat /sys/devices/system/cpu/cpu0/cpufreq/sca­ling_available_frequencies
    sudo cpufreq-set -f (maximum supported frequency)
    sudo cpufreq-set -g performance 

BEWARE of Battery Drain on Laptops with the -g Governor option

More info on cpu governors& frequencies:
http://blog.tube42.se/?p=1225
https://wiki.archlinux.org/index.php

Changing I/O Scheduler:

  1.  sudo vim /etc/default/grub 
  2. Add “elevator=noop” next to GRUB_CMDLINE_LINUX_DEFAULT
     sudo update-grub
    cat /sys/block/sda/queue/scheduler 

Disabling Swap:

 sudo swapoff -a 

Enabling Ksm:

 sudo echo 1 (foward arrow) /sys/kernel/mm/ksm/run 

More info about ksm:
https://wiki.archlinux.org/index.php
http://www.linux-kvm.com/content/using-ksm-kernel-samepage-merging-kvm
http://www.linux-kvm.org/page/KSM