UbuntuCafe: apt-get | Daily News and Tips about Linux, Amazon, Ubuntu, Android.

[HowTo] Install VirtualBox On Backtrack 5 and Kali Linux

VirtualBox is a application for virtual and it is also a cross-platformed application. It installs on existing Intel or AMD-based computers, whether they are running Windows, Mac, Linux or Solaris operating systems. It extends the capabilities of computer so that it can run multiple operating systems at the same time. Let's find how to install it on Backtrack 5 or Kali Linux.

Features

* Extremely feature rich and high performance
* Multi-monitor guest setups in the GUI
* Special drivers and utilities to facilitate switching between systems
* Guest virtual machine cloning

Install VirtualBox

First, install the kernel headers;
prepare-kernel-sources
cd /usr/src/linux
cp -rf include/generated/* include/linux/

Then edit /etc/apt/sources.list as shown below, and proceed with downloading VirtualBox;
echo deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free >> /etc/apt/sources.list
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
apt-get update
apt-get install virtualbox-4.0

Install GoAccess Web Server Log Analyzer on Ubuntu

GoAccess (A Real-Time Apache And Nginx)  is an open source real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems. It provides fast and valuable HTTP statistics for system administrators that require a visual server report on the fly. GoAccess allows any custom log format string.

Features

  • General Statistics, bandwidth etc.
  • Time taken to serve the request (useful to track pages that are slowing down your site)
  • Top Visitors
  • Requested files
  • Requested static files, images, swf, js, etc.
  • Referrers URLs
  • Referring Sites
  • Keyphrases
  • Support for IPv6
  • Different Color Schemes
  • Unlimited log file size
  • Custom log format
  • Output statistics to a file. See report.
  • 404 or Not Found
  • Operating Systems
  • Browsers and Spiders
  • Hosts, Reverse DNS, IP Location
  • HTTP Status Codes

Install GoAccess in Ubuntu 13.10,13.04,12.10 and 12.04

sudo apt-get install goaccess
For Ubuntu releases < 12.04, simply add the follow the instructions below and then run the commands to install it.

sudo /etc/apt/sources.list
Add the below line at the end of the file.
deb http://ubuntu.mirror.cambrium.nl/ubuntu/ natty main universe
Update the repository.
apt-get update
Instal GoAccess.
sudo apt-get install goaccess

Limiting the download speed rate of apt-get in Ubuntu 13.04, 12.04 Debian and Linux Mint

Yes, We can limit the download speed while you trying install applications using apt-get command.


For temporary limits, add the -o flag to your apt-get command:

sudo apt-get -o Acquire::http::Dl-Limit=25 install <package>

For permanent throttling, create the file /etc/apt/apt.conf.d/75lowerspeed and save the following in it:

Acquire
{
Queue-mode "access";
http
{
Dl-Limit "25";
};
};

Both methods limits apt-get to 25 kbps.

Download or copy files over an active SSH session using zssh


zssh (Zmodem SSH) is a program for interactively transferring files to a remote machine while using the secure  shell (ssh).  It  is intended to be a convenient alternative to scp , allowing to transfer files without  having  to  open another session and re-authenticate oneself.

zssh  is an interactive wrapper for ssh used to switch the ssh connection between the remote shell  and  file  transfers.  This  is  achieved  by  using  another tty/pty pair between the user and the local ssh process to plug  either the  user's  tty  (remote  shell  mode) or another process (file transfer mode) on the ssh connection.

Install zssh on Ubuntu server and client

zssh is available in universe, so you can install it with following command.

sudo apt-get install zssh

After successful installation on your Ubuntu server and client, loggin with zssh and just hit 'ctrl-@' and it brings up the "File transfer mode" which allows you to send files back down the pipe to your client machine, or upload them from client to server.