Home » Linux

Install nfdump and nfsen netflow tools in Linux

Monitoring (featured logo)

Using nfsen it is possible to view IP traffic statistics on Linux interfaces including the graphs showing data sent and received (see the screenshot to the right) as well as historical information about all data transfers. So after you’ve configured nfsen and nfdump to monitor traffic on certain Linux server or router you’ll be able to answer the following example questions: What IP was downloading data through 48161 last Wednesday? or How many bytes were sent to IP 8.8.8.8 via 53 port from Linux server? … Read more

Home » Linux

How to assign range of IP addresses in Linux?

As we know Linux allows to assign almost unlimited number of IP addresses to its interfaces. Such additional IPs applied to the same NIC are known as secondary IP addresses or just secondaries. Some time ago i faced a problem on how to apply about 500 IP addresses to one Linux box and then ensure that all of them get online after Linux reboots. There are several ways to accomplish this taks so i would like to share them all. Shell script with ifconfig commands … Read more

Home » Linux

How to monitor traffic at Cisco router using Linux (Netflow)

Cisco (featured logo)

By default Cisco IOS doesn’t provide any traffic monitoring tools like iftop or iptraff available in Linux. While there are lots of proprietary solutions for this purpose including Cisco Netflow Collection, you are free to choose nfdump and nfsen open source software to monitor traffic of one or many Cisco routers and get detailed monitoring data through your Linux command line or as graphs at absolutely no cost. Below is beginner’s guide that helps to quickly deploy netflow collector and visualizer under Linux and impress … Read more

Home » Linux

The easiest way to split and merge pdf files in Ubuntu

Ubuntu (featured logo)

The easiest way to split, merge or edit pdf files in Ubuntu is to use pdftk utility. This rather old (latest version was released in 2006) but still simple and powerful program can be installed in Ubuntu (Debian or any deb-family Linux distribution) by the following command in terminal: sudo aptitude install pdftk (if you run Fedora, RedHat or CentOS use this one: sudo yum install pdftk) Split large pdf into many one-page files: pdftk largepdfile.pdf burst (as the result you will get many small … Read more

Home » Linux

Split huge files in Ubuntu or any other Linux distro

Ubuntu (featured logo)

Recently I’ve bought WD TV media player for streaming full HD movies (primarily in 1080p resolution) to my home TV from external storage like usb HDD or ipod classic. You might already know that size of average HD movie rip is more than 4GB (e.g. full HD Avatar movie image is literally 21 GB mkv file) so it’s just impossible to store such huge files on any FAT32 formatted HDD or ipod. My ipod classic 160 GB is windows formatted so it uses FAT32 filesystem … Read more

Home » Linux

Install Windows after Ubuntu Lucid Lynx

Ubuntu (featured logo)

Sh*t happens. There is no more applications to manage my 6th generation iPod Classic 160 GB under Linux/Ubuntu. I have to install Windows as the second operating system along with newly installed Ubuntu Lucid Lynx (it rocks but this is for another post) to run iTunes. For rather long time I’ve been using gtkpod, amarok, banshee, exaile or rhythmbox to sync my ipod under Linux/Ubuntu and load my music collection there. As we all know The Elder Brother Apple fights with interoperability and makes ipod/iphone users … Read more

Home » Linux

Fastest way to create ramdisk in Ubuntu/Linux

Ubuntu (featured logo)

I hope many of you will agree that sometimes it’s really good idea to have some small amount of RAM mounted as a filesystem. It may be necessary when running some bash or perl script that handles, say, thousands of small files so it’s much more effective not to waste computer resources on reading/writing data on hard disk but keep those files directly in memory. This idea is known as Virtual RAM Drive or ramdisk and can be setup in Ubuntu or almost any other … Read more

Home » Linux

Best of Linux Cheat Sheets

Below list of Linux cheat sheets can be used by everybody who administer Linux operating system including beginners/newbies and bearded gurus. PDF | Command Line Interface (CLI), Security, Networking Unix/Linux Command Reference by fosswire.com THE ONE PAGE LINUX MANUAL (A summary of useful Linux commands) LINUX System Call Quick Reference LINUX Admin Quick Reference Linux quick reference card Linux Shell quick reference guide Linux Security Quick Reference Guide tcpdump cheat sheet Wireshark display filters Netcat cheat sheet HTML | CLI, Gnome/KDE DOS to Linux cheatsheet … Read more

Home » Linux

13 Linux lethal commands

[digg-me]In this post I will collect all commands which SHOULD NEVER be executed in Linux. Any of them will cause data loss or corruption, can freeze or hang up running system. NEVER RUN THESE COMMANDS IN LINUX BOX CLI! Even if somebody advises you in forum/im to do it. 1. Any of these commands will erase everything from your home directory, root or just will clear up whole disk: sudo rm -rf / rm -rf .* dd if=/dev/zero of=/dev/sda mkfs.ext3 /dev/hda whatever > /dev/hda cd … Read more

Home » Linux

Faces behind Linux — Part #1

What/who you imagine when you hear the names “Ubuntu”, “Debian”, “Slackware”, etc?  Is this tux, penguin, disribution logo? Have you ever wondered who is behind certain Linux distribution? Ian Murdock (left) founded Debian while a student in 1993. He named Debian after himself and his then-girlfriend Debra, now his ex-wife, thus Deb(ra) and Ian. From Ian’s blog: Debian was one of the first Linux distributions and arguably the first open source project that explicity set out to be developed in a decentralized fashion by a … Read more