Archive

Archive for the ‘Linux/Unix’ Category

Linux 2.6.28 released for all the good l33tle boys and girls!

December 26th, 2008

Linus Torvalds just released Linux Kernel 2.6.28 today as an Christmas present to all the good (and not evil) l33tle-big boys and gals around the globe. This brings a whole host of new cool bits and bobs thats sure to get people excited (Ext4 being one and the GEM Memory Manager) read all about it in the Linux Kernel Newbies guide.

Some addtional juicy reading incase your stuck with the inlaws for some ‘family’ time:

Enjoy!

Developer, Kernel / Internals, Linux/Unix, Operating Systems, hardware , , , , , , , , , , , , ,

Sun ushers in VirtualBox 2.1 with cool new features!

December 18th, 2008

VirtualBoxIt only feels like last month Sun released VirtualBox 2.0 and they’ve just released 2.1 which brings a plethora of additional goodies… from the changelog:

  • Support for hardware virtualization (VT-x and AMD-V) on Mac OS X hosts
  • Support for 64-bit guests on 32-bit host operating systems (experimental; see user manual, chapter 1.6, 64-bit guests, page 16)
  • Added support for Intel Nehalem virtualization enhancements (EPT and VPID; see user manual, chapter 1.2, Software vs. hardware virtualization (VT-x and AMD-V), page 10))
  • Experimental 3D acceleration via OpenGL (see user manual, chapter 4.8, Hardware 3D acceleration (OpenGL), page 66)
  • Experimental LsiLogic and BusLogic SCSI controllers (see user manual, chapter 5.1, Hard disk controllers: IDE, SATA (AHCI), SCSI, page 70)
  • Full VMDK/VHD support including snapshots (see user manual, chapter 5.2, Disk image files (VDI, VMDK, VHD), page 72)
  • New NAT engine with significantly better performance, reliability and ICMP echo (ping) support (bugs #1046, #2438, #2223, #1247)
  • New Host Interface Networking implementations for Windows and Linux hosts with easier setup (replaces TUN/TAP on Linux and manual bridging on Windows)

Some key things to note here, those “cool” people that run OS X can now get hardware virtualisation. Even if you have a 32bit host operating system your able to run 64bit hosts so long as you enable hardware acceleration on the CPU (AMD-V or Intel-VT) as VirtualBox’s Hypervisor requires this to work. A couple of other major additions - tested personally, include the enhanced virtualisation on the new Nahalem processors (Extended Page Table & Virtual Processor Identifier - see below) and the starting block for OpenGL (and later DirectX) Acceleration in XP and Vista. Testing this on OpenGL gave some decent performance though its still got a bit of work to do.

The move to include 3D acceleration is an interesting one, considering VMWare recently acquired Tungsten Graphics - who is the company behind Mesa, TTM memory manager and Gallium3D.  Interesting times ahead - as always :)

What’s an Extendable Page Table & that VPID thing???

Virtualisation in the Intel world comes in two flavours, the Intel VT-x and Intel VT-i Architectures. The VT-x is for IA-32 processors, whilst the VT-i is for Itanium processors.

Intel took a slice of the Virtualisation pie offered by AMD’s Pacifier architecture in implementing a method of translating ordinary IA-32 page tables from the guest-physical addresses to the host-physical addresses used to access memory. This way, guest’s can handle their own page tables directly and page-faults associated with them directly and minimize the (sizable) overhead associated with translating. This is known as Extended Page Tables (EPT).

Virtual Processor Identifiers (VPIDs) on the other hand allows a hypervisor (or a VMM) to assign a non-zero VPID to each virtual processor with the initial processor (VPID = 0) assigned to the hypervisor itself. This way, the CPU can use the VPIDs to tag translations in the Translation Lookaside Buffer (TLB) which removes the performance penalties associated with flushing TLBs on VM Entry and exit.

Both these two bits of technology (along with NMI-window exiting)  come on the Nahelem processor’s Virtualisation enhancments. If your interested in a more indepth explanation see the article Solving Virtualisation Challenges with VT-X and VT-I from the Intel Technology Journal.

Other Changes in 2.1

  • VMM: significant performance improvements for VT-x (real mode execution)
  • VMM: support for hardware breakpoints (VT-x and AMD-V only; bug #477)
  • VMM: VGA performance improvements for VT-x and AMD-V
  • VMM: Solaris and OpenSolaris guest performance improvements for AMD-V (Barcelona family CPUs only)
  • VMM: fixed guru meditation while running the Dr. Web virus scanner (software virtualization only; bug #1439)
  • VMM: deactivate VT-x and AMD-V when the host machine goes into suspend mode; reactivate when the host machine resumes (Windows, Mac OS X & Linux hosts; bug #1660)
  • VMM: fixed guest hangs when restoring VT-x or AMD-V saved states/snapshots
  • VMM: fixed guru meditation when executing a one byte debug instruction (VT-x only; bug #2617)
  • VMM: fixed guru meditation for PAE guests on non-PAE hosts (VT-x)
  • VMM: disallow mixing of software and hardware virtualization execution in general (bug #2404)
  • VMM: fixed black screen when booting OS/2 1.x (AMD-V only)
  • GUI: pause running VMs when the host machine goes into suspend mode (Windows & Mac OS X hosts)
  • GUI: resume previously paused VMs when the host machine resumes after suspend (Windows & Mac OS X hosts)
  • GUI: save the state of running or paused VMs when the host machine’s battery reaches critical level (Windows hosts)
  • GUI: properly restore the position of the selector window when running on the compiz window manager
  • GUI: properly restore the VM in seamless mode (2.0 regression)
  • GUI: warn user about non optimal memory settings
  • GUI: structure operating system list according to family and version for improved usability
  • GUI: predefined settings for QNX guests
  • IDE: improved ATAPI passthrough support
  • Networking: added support for up to 8 Ethernet adapters per VM
  • Networking: fixed issue where a VM could lose connectivity after a reboot
  • iSCSI: allow snapshot/diff creation using local VDI file
  • iSCSI: improved interoperability with iSCSI targets
  • Graphics: fixed handling of a guest video memory which is not a power of two (bug #2724)
  • VBoxManage: fixed bug which prevented setting up the serial port for direct device access.
  • VBoxManage: added support for VMDK and VHD image creation
  • VBoxManage: added support for image conversion (VDI/VMDK/VHD/RAW)
  • Solaris hosts: added IPv6 support between host and guest when using host interface networking
  • Mac OS X hosts: added ACPI host power status reporting
  • API: redesigned storage model with better generalization
  • API: allow attaching a hard disk to more than one VM at a time
  • API: added methods to return network configuration information of the host system
  • Shared Folders: performance and stability fixes for Windows guests (Microsoft Office Applications)

Performance & Updates

Overall, on the two different machines that I’ve tried the new 2.1 release on, they’ve both “felt” snappier (QX6850 and a Core i7 965E - architecture summary) but unlike the 1.6 release - which was somewhat flakey for me, 2.x releases of VirtualBox are solid.

3D Acceleration Option

Dont take my word for it, download and try it out.

Gets me a VirtualBox 2.1

Grab your copy and try it out.

  • VirtualBox 2.1.0 for Windows hosts x86 | AMD64
  • VirtualBox 2.1.0 for Solaris and OpenSolaris hosts x86 | AMD64

Give it a shot, heck try OpenSolaris 2008.11 on there just for kicks!

Developer, Kernel / Internals, Linux/Unix, OpenSolaris, Operating Systems, Tools / Products, Windows, hardware, software , , , , , , , , , , , , , , , , , , , , , ,

Breaking News: BD+ Broken

November 2nd, 2008

BD+ is the DRM system for Blu-ray discs, as Wikipedia puts it:

BD+ is a component of the Blu-ray Disc Digital Rights Management system. It was developed by Cryptography Research Inc. and is based on their Self-Protecting Digital Content concept. BD+ played an important role in the past format war of Blu-ray Disc and HD DVD. Several studios have cited Blu-ray Disc’s adoption of the BD+ anti-copying system as the reason they supported Blu-ray Disc over HD DVD.

One of the more humorous observations was that unlike DVD (which used DeCSS for its copy protection system) and AACS which powered the bulk of the HD-DVDs of the time that BD+ would uphold its protection for atleast the next 10 years. This may have been one of the key factors in the HD-Wars, but alas it seems someone  has found a way of traveling into the future and finding the break.

Oopho2ei (who claims is not a professional programmer :O) from the Doom9 forums along with a few others (bmnot, schluppo, Disabled, evdberg) have (it seems) successfully broken the BD+ protection scheme in a grand total of 5 weeks and 3 days (started on the 24th of August). They have restored the BD+ protected “The Day After Tomorrow”:

I am glad to announce the first successful restoration of the BD+ protected movie “The Day After Tomorrow” in linux. It was done using a blue ray drive with patched firmware (to get the volume id), DumpHD to decrypt the contents according to the AACS specification and the BDVM debugger from this thread to generate the conversion table. The conversion table is the key information to successfully repair all the broken parts in m2ts files to restore the original video content. This small tool was finally used to repair the main movie file “00001.m2ts” according to the conversion table.

To verify the correctness i compared my 00001.m2ts with the one AnyDVD-HD creates and they both match. The MD5 hash of this 30GB large file is in both cases “0fa2bc65c25d7087a198a61c693a0a72″.

Breaking the code is no simple feat, Oopho2ei and team has had to reimplement the VM that runs the BD+ protection layer and realises that there’s a fair chance that it could be blocked at a later stage and may phone-home:

There has to be some kind of firewall around the virtual machine which validates all communication between the ( potentially hostile ) content code and the outside world (traps and events). Part of the rules which are enforced by that firewall are the parameter checks on every trap call. It’s obvious that the traps and the event handling itself has to be carefully implemented. I believe this additional effort is necessary to prevent the content code from breaking out of it’s sandboxed environment and do nasty things like gathering user information and “calling home” when it detects an unlicensed emulator. So because these additional security measures make things more difficult i suggested to test this code first with the easy traps.

Even a guy from SlySoft (who makes the ever popular AnyDVD-HD product) chimes in early on but backs off after realising he could well get the sacker.

I’ll just say: due to certain properties of BD+, once you’re past a certain point, you can handle it pretty much without reversing - BD+ itself then helps you out - on any player

Actually you’d have to know how BD+ really works, to know what I meant (and even then you probably wouldn’t ).
But if I start unraveling that, I’d be finding myself looking for a new job by next week

Love this bit in one of Oopho2ei posts:

I would like to stress again that this project wasn’t intended to circumvent copy protection and promote piracy. This can already be done using commercial software like AnyDVD-HD. Instead this project was an attempt to enable users of open source operating systems (like linux) to playback their BD+ protected discs without having to use proprietary software. Furthermore only two movies “I Robot” and “The Day After Tomorrow” have been proven to be handled correctly so far. Obviously there is still a lot of debugging to be done.

Classy! Download a copy of the BDVmDbg build for educational reasons and try PortableBDVM which comes in C99 source form.

Developer, Kernel / Internals, Linux/Unix, Operating Systems, Security, Windows, hardware, software , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Ubuntu 8.10: Intrepid Ibex Released!

October 31st, 2008

With the amount of coverage surely to be taken by Windows 7 we can’t forget the other side of the force, Ubuntu 8.10 Intrepid Ibex was released a few hours ago.

Believe it or not I actually stayed up waiting for it to hit the servers, then hopped over to the iinet FTP server (mirror’d by the Internode servers also) as the 3FL Mirror (Westnet) wasn’t up to date (it is now!) and started leeching the sucker.

8.10 brings:

  • Linux Kernel v2.6.27 - which has the new Atheros driver, improved webcam support and support for the UBFIS file system, among other things documented on KernelNewbies.
  • Support for the UBIFS file system - especially for SSD/Flash drives in the hope it will improve performance and longetitivity of such devices.
  • GNOME v2.24 - which brings a slew of improvements including a tabbed nautilus.
  • X.Org v7.4 - includes Xorg-Server 1.5 which brings faster startup/shutdown times, hot-plugging for input devices.
  • Network Manager 0.7 - which adds 3G and PPPoE connectivity
  • Dynamic Kernel Module support - recompiles kernel modules automajically when kernel is updated.
  • LOTS more, documented in the 8.10 Release notes.

Mono 2.0, Python 2.6 and OpenOffice 3.0 didnt make the cut but will be present in 9.04 already dubbed the Jaunty Jackalope.

Download Ubuntu 8.10 and give it ago. For a complete look at Ubuntu 8.10, checkout these reviews:

Whilst I’ve had to hurry off to work with barely a few hours of sleep I did catch a few minutes of usage after a speedy install thanks to the USB installation method.

Developer, Linux/Unix, Operating Systems, software , , , , , , , , , , , , , , ,

Codeweavers gives away software today, finally G.W. Bush came in handy!

October 28th, 2008

We are giving away all of our software for free on Tuesday, October 28th, 2008. This is a fully working, fully supported copy of either CrossOver Mac Professional, or CrossOver Linux Professional. No hooks, tricks, timebombs, or gimmicks: it’s the real deal.

Yes you read that right, thanks to the Lame Duck challenge posted by CodeWeavers earlier this year, they’ve had to ruffle some feathers in the upper-management team to release their software for free as per their challenge:

The catastrophic cratering of the global economy, falling gas prices and President George W. Bush’s recent executive activities have indirectly prompted Saint Paul gadfly software developers CodeWeavers, Inc., to provide free software for every American on Oct. 28, company officials reluctantly announced today.

In July, CodeWeavers – whose software lets Mac OS X and Linux users run Windows programs without having to Microsoft for a Windows OS license – launched the Great American Lame Duck Presidential Challenge (lameduck.codeweavers.com) to encourage President Bush to make the most of his remaining days in office by accomplishing a major economic or political goal by January 20, 2009.

What were those challenges?

The goals focused on President Bush making specific positive accomplishments in areas such as the economy, home values, the stock market, the war on terror and other key issues. Specifically, one goal called for President Bush to help down bring average gasoline prices in the Twin Cities to $2.79 a gallon.

On Monday, Oct. 14, gas prices in Minneapolis and St. Paul did just that.

“That morning, I was filling my tank at Big Steve’s Gas Palace in St. Paul,” said Jeremy White, president and CEO of CodeWeavers. “I had just finished my morning corn dog and 64-ounce Dr. Pepper when I looked at the pump and noticed gas was at $2.79. I screamed ‘Woohoo,’ then I yelled ‘Oh, crap!’ as I realized every American can now have my software for free. Kind of upsets my fourth quarter revenue projections…”

Quick, go signup and grab a free bargain. Its not restricted to just US citizens either - and both Mac and Linux versions of Codeweavers is available. Cheers big ears, thanks for your efforts!

For the next round of freebies, the challenge has been set as follows…

  • Return the stock market to it’s 2008 high
  • Reduce the average price of a gallon of milk to $3.50
  • Create at least one net job in the U.S. this calendar year
  • Return the median home price to its Jan. 1, 2008 level
  • Bring Osama Bin-Laden to justice

As a parting thought of wisdom from the greatest and most widely known comedian IN THE WORLD, I leave you with:

“It is clear our nation is reliant upon big foreign oil. More and more of our imports come from overseas.”
- Beaverton, Oregan, Sept. 25, 2000

Such deep deep meaning, you can find more inspirational words of wisdom from The Complete Bushisms.

Cool Tools, Developer, Its My Life, Linux/Unix, Operating Systems, Windows, hardware, humour, software , , , , , , , , , ,

Microsoft releases Silverlight 2, and OpenOffice 3.0 goes out the door!

October 14th, 2008

A few days ago OpenOffice 3.0 got released after 3 long years of development. You should download a copy and give it ago. To be perfectly honest, because of my MSDN suby’s I never really needed OpenOffice nor did I particularly like v2.x, but v3.0 is a breath of fresh minty air with a ray of bright Sun light beaming down from the heavens. The only times I’ve ever tried was under Linux, and even then I’ve often gone for Abiword instead to avoid the bloat.

It feels far more responsive than the 2.x versions I’ve tried, heck it even loads a helluva lot faster too and doesnt seem to chew up the resources 2.x did.

The Office Word compatibility has improved greatly. Learn more about OpenOffice 3.0 on the Linux Format article.

Then if that wasnt enough, Microsoft today launched Silverlight 2, which finally heads out of beta. Havent had a great deal of time to play with Silverlight but from the demos it looks kick-ass.

.NET / CLR / C#, Developer, Linux/Unix, Operating Systems, Tools / Products, Web / Internets, Windows, software , , , , , , , ,

COOL TOOL: Throwaway the CDs & DVDs, use your Flash Drive + UNetbootin to install Linux!

October 11th, 2008

I’ll admit it, I still have a floppy-drive attached to my maturing beast, which is primarily used as my day-to-day development box. Floppies come in handy for that odd install of XP or below that require RAID drivers (though you can just use nLite and bundle it by default).

But what about the CD-R’s and DVD-R’s in the days of Cloud Browser based Operating Systems (funny)? I recall burning ISOs like no tomorrow when new versions of Ubuntu were released - and I’m sure everyone else who has gone down the Linux or BSD route has had similar experiences.

But before you go burning that ISO at the next install (maybe Ubuntu Intrepid Ibex at the end of the month) you might want to consider an alternate route - and whats more, I’ll bet you it will install faster on newer systems.

I bought a Corsair Voyager GT 16Gb (pdf info-sheet) flash drive a few months back, whilst I’ve been fairly disappointed that its advertised speed fell short of expectations due to the Samsung manufactering process changes, I still kept it dear to myself having paid about AUD$109 for it. (I name things, the drive was dubbed DrSporky). Even though its rated at about 34MB/S read (so realistically it should do about 25-30MB/s) I’ve managed to clock about 19-21MB/s copying a 500Mb file using Teracopy - a real benchmark not a synthetic test and 8Mbp copying it back to the drive (see below). Nothing to sneeze at, but the difference between the GT and the non-GT was the 30MB/s+ read-speed I figured.

I use it almost daily and it carries around a bootable version of Ubuntu 8.04 (Hardy Heron) thanks to the multi-platform utility UNetbootin.

UNetbootin is written in C++ using the Qt4 Toolkit engine (full information is available on the Universal Netboot Installer page on Launchpad) so its compatible on Windows and Linux. Simply download the latest version, insert your USB drive and either let UNetBootbin download the distro you’d like to try _or_ browse to the Disk image to one you’ve already grabbed.

Give it a go and see what you think, installing Ubuntu 8.04.1 on a mates system (ASUS P5KPL-CM & Core E2180) took less than 10minutes (at most 20 if you inlude boot and configuration)!!! The best part is that you can easily reuse it easily formatting etc *AND* store your own things ready to utilise whenever you need it.

So the next time you got install _anything_ give UNetbootin ago and make use of that fast USB Drive instead of wasting CD/DVD writables that you usually endup throwing away.

Its My Life, Linux/Unix, Operating Systems, Windows , , , , , , , , , , , , , , , , ,

Linux Kernel 2.6.27 Released, Linus offers some behind the scenes info too!

October 11th, 2008

Linus just released Linux Kernel 2.6.27 to the stable tree after 9 release candidate releases. Some highlights include:

2.6.27 add a new filesystem (UBIFS) optimized for “pure” flash-based storage devices, the page-cache is now lockless, much improved Direct I/O scalability and performance, delayed allocation for ext4, multiqueue networking, an alternative hibernation implementation based on kexec/kdump, data integrity support in the block layer for devices that support it, a simple tracer called ftrace, a mmio tracer, sysprof support, extraction of all the in-kernel’s firmware to /lib/firmware, XEN support for saving/restorig VMs, improved video camera support, support for the Intel wireless 5000 series and RTL8187B network cards, a new ath9k driver for the Atheros AR5008 and AR9001 family of chipsets, more new drivers, improved support for others and many other improvements and fixes.

You can read more about the changes on Linux Kernel Newbies guide on Linux 2.6.27.

If you’ve been looking into the very heavily publicised and incredibly serious Intel Network adapter e1000 corruption bug then you’ll be glad to know that it seems that its fixed (which was initially put into 2.6.27 -rc9). If you grabbed any of the Ubuntu Intreprid Pre-releases then you may have been affected - though later the modules were black-listed.

Now that Linus has started blogging, he gives a unique glimpse into the release process and how it differs from that of his previous company Transmeta.

So I tagged the release five hours ago, and during the few days before that I had barely a score of commits to merge. But now that I have cut the release, my mailbox is starting to come alive with merge requests for the next version - with thousands of commits queuing up for merging in just a few hours, as opposed to the slow trickle in the days that went before.

This is all exactly as it should be, of course, but it still feels bass-ackwards, in that people always talk about the death-march to a release, and how you’re supposed to take a well-deserved vacation after the release.

For example, when I worked for Transmeta, the hardware people would basically take a month off after doing a tape-out. That seems somewhat natural just deserts. But when it comes to Linux development the “tape-out” of making a release acts the other way around. The calm was before, now comes the week or two of crazy merging.

Read more on his blog post about On Making Releases. One wonders when he actually takes any form of vacation to relax without carrying around a lappy.

Developer, Linux/Unix, Operating Systems ,

Mono 2.0 Released today!

October 6th, 2008

Mono has made it to version 2.0 today and brings so much goodness to the table. Some very cool new features and functionality to Mono and promises of speed improvements - which I dont doubt having tried a few things.

From the release notes:

Microsoft Compatible APIs

  • ADO.NET 2.0 API for accessing databases.
  • ASP.NET 2.0 API for developing Web-based applications.
  • Windows.Forms 2.0 API to create desktop applications.
  • System.XML 2.0: An API to manipulate XML documents.
  • System.Core: Provides support for the Language Integrated Query (LINQ).
  • System.Xml.Linq: Provides a LINQ provider for XML.
  • System.Drawing 2.0 API: A portable graphics rendering API.

Mono APIs

  • Gtk# 2.12: A binding to the Gtk+ 2.12 and GNOME libraries for creating desktop applications on Linux, Windows and MacOS X.
  • Mono.Cecil: A library to manipulate ECMA CLI files (the native format used for executables and libraries).
  • Mono.Cairo: A binding to the Cairo Graphics library to produce 2D graphics and render them into a variety of forms (images, windows, postscript and PDF).
  • Mono’s SQLite support: a library to create and consume databases created with SQLite.
  • Mono.Posix: a library to access Linux and Unix specific functionality from your managed application. With both a low-level interface as well as higher level interfaces.

Third Party APIs bundled with Mono

  • Extensive support for databases: PostgresSQL, DB2, Oracle, Sybase, SQL server, SQLite and Firebird.
  • C5 Generics Library: we are bundling the C5 generics collection class library as part of Mono.

Compilers

These compilers are part of the Mono 2.0 release:

  • C# 3.0 compiler implementation, with full support for LINQ.
  • Visual Basic 8 compiler.
  • IL assembler and disassembler and the development toolchain required to create libraries and applications.

Tools

Mono includes profiling tools, the standard development kit tools that are part of the .NET framework

  • Debugger: this is the first release when we support a debugger for managed code.
  • Gendarme: is an extensible rule-based tool to find problems in .NET applications and libraries. Gendarme inspects programs and libraries that contain code in ECMA CIL format (Mono and .NET) and looks for common problems with the code, problems that compiler do not typically check or have not historically checked.
  • Mono Linker: a linker that allows developers to reduce the size of their executables and libraries by removing features from libraries using an XML definition of the desired public API.
  • Mono Tuner: a tool to apply arbitrary user-defined transformations to assemblies. Mono uses this library to produce the Silverlight core libraries from the main system libraries.
  • Mono Documentation Tools: the Mono Documentation framework has been upgraded to support documenting generics and extension methods. The tools can be used to produce online and offline documentation for any any APIs, and are used by the project to document our own APIs.

There are so many goodies in this release if C# 3.0 with LINQ loving doesnt entice you already and the fact that Mono now provides a complete WinForms 2.0 implementation for OS X & Linux.

Whats cooler is the WebBrowser control powered by Gecko that ships with Mono, this would be an ideal drop in replacement for the MSHTML control.

Implementations of Table Layout and Flow Layout Panels and Big Arrays.

Go ahead and download a copy and give it a whirl. My how Mono has come over the years.

.NET / CLR / C#, Developer, Linux/Unix, Operating Systems, Tools / Products, Web / Internets, Windows, software , , , , , ,

HOWTO: Network Monitoring with nTop in Ubuntu

September 28th, 2008

ntop is a network probe that shows how much the network is being utilised with very little overhead and impressive graphical representation via the web. Its definately a must-have tool if you run a fileserver.


The version of ntop on the ubuntu mirrors is 3.2.x, so I set out to update to the latest release this weekend (3.3.x released in June last year).

This install is being done on Ubuntu 7.10 using ntop 3.3.7.

First up lets download the distribution of ntop we’re going to be installing. This is the internode mirror in Australia, but you can find your closest mirror via sourceforge.


$ wget http://internode.dl.sourceforge.net/sourceforge/ntop/ntop-3.3.7.tar.gz

Next we need to extract the files to a folder.


$ tar -xvf ./ntop-3.3.7.tar.gz

Next up lets install/make sure we have all the dependencies we need to build this version.


$ sudo aptitude update
$ sudo aptitude install build-essential linux-headers-$(uname -r) librrd2-dev libtool libpcap-dev tcpdump librrd2 rrdtool rrdtool-tcl libgdbm-dev libgdbm3 automake autoconf automake1.7 debhelper gettext html2text intltool-debian libgd2-noxpm-dev libjpeg62-dev libncurses5-dev libssl-dev libwrap0-dev po-debconf

Once the dependencies are installed you can go into the extracted folder and tell it to setup the environment and configure it.


$ cd ./ntop-3.3.7/
$ chmod +x ./autogen.sh
$ ./autogen.sh

This will make sure your environment is correctly setup and configure to build the necessary make files. There shouldn’t be any errors at this point as you have installed all the correct dependencies. Nextup we need to build the application and install it.


$ make
$ sudo make install

Then you can start nTop by running the following command:


$  sudo ntop -P /usr/local/lib/ntop/

There we have it, browse to http://localhost:3000 and you’ll be running the latest and greatest ntop.

Linux/Unix, Operating Systems, software , , , ,