Archive for the ‘Linux’ Category

tcpdump

Monday, January 23rd, 2012

Packet capture is one of the most fundamental and powerful ways to do network analysis.

If you think that tcpdump has been made obsolete by GUI tools like Wireshark, think again. Wireshark is a great application; it’s just not the right tool for the job in every situation.

tcpdump uses a “one-off-command” approach that lends itself to quick, on-the-spot answers. You can run it through an SSH session, doesn’t need X and is more likely to be there when you need it. And, because tcpdump uses standard command-line conventions (such as writing to STDOUT, which can be redirected), tcpdump can be used in all sorts of creative, interesting and extremely useful ways.

logo

You can even use tcpdump and Wireshark together by capturing the network data with tcpdump for viewing with Wireshark. To ensure that you capture complete packets, use the following command:

tcpdump -i <interface> -s 65535 -w <some-file>

tcpdump fu article introduces some of the basics of packet capture and provide a breakdown of tcpdump syntax and usage. Manual page of tcpdump lists you all the command line options you can use.

If you are embedded Linux system developer, remember that you can easily fit the tcpdump program inside a small embedded Linux system without too much problem (which is not the case with Wireshark, because it is a huge program that needs GUI and has many dependencies).

WANem network emulator

Thursday, January 12th, 2012

There are many cases when need to emulate various networking conditions and scenarios. Usually the most practical way to test the application on different networking conditions is to use some kind of WAN emulator that lets you control the various networking characteristics. WANem is a free WAN emulator suitable for this task. WANem allows the application development team to setup a transparent application gateway which can be used to simulate WAN characteristics like Network delay, Packet loss, Packet corruption, Disconnections, Packet re-ordering, Jitter, etc.

WANem is a Wide Area Network Emulator that is designed to provide a real experience of a WAN/Internet during application development and testing. WANem works over an Ethernet LAN environment. WANem is available in bootable CD and VMware virtual appliance versions at an affordable cost (for FREE!). Award winning (FOSS INDIA AWARDS 2008) WANem is built on top of Linux and many open source component. From a functionality perspective WANem hooks into the Linux kernel towards provisioning the network emulation characteristics and extends the functionality with additional modules.

Setup is pretty straight forward. WANem is normally launched through a LiveCD, which is based on a re-mastered Knoppix. Another option is to use VMware virtual appliance. I have used both versions. Both versions allow a quick and easy setup in any development environment with an intuitive web interface for purposes of configuration. You don’t need to be a network and Linux guru to use WANem because the provided easy and very quick. There are many example configurations you can easily select and you can modify them as needed.

wanem_basic_mode_small

In advanced mode you have option to set all necessary network performance parameters you can think of. If you are a networking expert and know what are the right setting for different parameters, this is the way to go. You can see the supported settings (in advanced mode) on the picture below.

wanem-adv

WANem has even tool (WANalyzer is distributed along with WANem) that allow you to measure the performance of an existing real network, and then it can simulate how that network performed.

WANem has to be located between two hosts, between each we want to simulate a network link. The routing parameters which need to be configured on the clients and/or on the WANem machine. The preferred and most straightforward configuration uses a PC with two Ethernet cards and connect that between the two hosts.

wanem

It is possible to work also with only one Ethernet card (with some limitations), but for this to work you need special configuration on the end hosts to make sure all traffic they send gets sent to the WANem machine that forwards the traffic to other host. I have personally used this approach only when I have wanted to use the virtual machine version of WANem.

Installing and Configuring WANem Virtual Appliance and Using the WANem WAN Emulator Virtual Appliance articles tells that setup is pretty straight forward. After the WANem Virtual Appliance has been started and setup in your network environment, all you have to do is to route your traffic through it.

WANem is an excellent tool.

Linux on Windows

Thursday, December 8th, 2011

Some time a go I saw an interesting project called andLinux. andLinux is a complete Ubuntu Linux system running seamlessly in Windows 2000 based systems (2000, XP, 2003, Vista, 7; 32-bit versions only). The idea is that it runs almost all Linux applications without modification and you see the applications on your Windows screen like normal applications. Even cut&paste seems to work in most cases.

Earlier when you wanted to run Linux applications on Windows you needed to consider using a virtual machine (like vmWare player), Cygwin or coLinux. They all use different approaches to allow you to run Linux applications on your Windows PC.

andLinux actually uses coLinux (a port of the Linux kernel to Windows) as its core. Although this technology is a bit like running Linux in a virtual machine, coLinux differs itself by being more of a merger of Windows and the Linux kernel and not an emulated PC, making it more efficient.

logo_header

andLinux uses Xming X server + virtual network interface driver to get Linux applications to show on your Windows desktop. The audio goes through PulseAudio sound server. I must admit that this andLinux worked as promised and was pretty easy to set up.

The biggest downside of it seems to be that it seemed to take noticeable amount of computer resources when it runs (memory was short on the system I tested it). Other things that make me worry what is the security of this whole system. The lacks of 64 bit Windows system support is also a minus at times when 64 bit OSes are coming more and more common.

Ubuntu Linux for Smartphones

Monday, November 14th, 2011

Ubuntu Linux heads to smartphones, tablets, and smart TVs article tells that Canonical, the company behind Ubuntu Linux, plans to take on Android, iOS and Windows on the smartphones, tablets and smart TVs. Their short term plans are to make Ubuntu 12.04, the next long term support (LTS) of their Linux distribution business ready. After that Canonical will be expanding its popular Linux desktop to all computing devices. Ubuntu’s Unity Linux desktop looks like a quite suitable candidate for tablet devices. Shuttleworth said that he expects a fully-baked and ready to go Ubuntu for all devices will appear in Ubuntu 14.04-April 2014.

footer_logo

There has been earlier trials on running Ubuntu on Mobile devices like Ubuntu Mobile Internet Device Edition. There has been also demos to run Ubuntu on different mobile devices. Ubuntu hits HTC’s Touch Pro2, is any Windows Mobile handset safe? (video) article gives a nice example video on that:

What do you think?

From Meego to Tizen

Wednesday, October 5th, 2011

Meego will will be merged out of existence. MeeGo will become Tizen. Tizen is a software platform and a mobile and device operating system based on Linux and other popular upstream projects. According to Intel, Tizen will build upon the strengths of both LiMo and MeeGo and Intel will work with MeeGo partners to help them move from MeeGo to Tizen.

The Tizen project is hosted at the Linux Foundation and offers an operating system and an HTML5 development environment within which applications can be produced to run on multiple types of hardware. The Tizen application programming interfaces are based on HTML5 and other web standards, and it is anticipates that the vast majority of Tizen application development will be based on these emerging standards. Tizen will provide a robust and flexible environment for application developers, based on HTML5 and Wholesale Applications Community (WAC). The Tizen SDK and API will allow developers to use HTML5 and related web technologies to write applications that run across multiple device segments, including smartphone, tablet, smart TV, in-vehicle infotainment, and netbook. So the application development is expect to shift from Meego/Qt now to Tizen/HTML5.

For those who use native code in their applications (small percentage of the applications), the Tizen SDK will include a native development kit.

tizen_logo

Tizen sounds an awful lot like WebOS to me. Why do we need more Linux OS? Will this really replace the ones it is combining together or fragmenting the market more? The situation in mobile Linux field seems to be pretty similar to what happens at xkcd:Standards comic to standards.

Nokia N9 Meego phone

Wednesday, June 22nd, 2011

I have earlier written about MeeGo Linux and how Nokia’s work on Meego is fading. Nokia has promised to release one Meego phone this year, and there has been many rumors on that device.

Nokia has finally revealed some details on their Meego phone. Nokia Introduces MeeGo-Powered N9 Phone. For details check this Nokia N9 first hands-on! video from Engadget and details from Nokia N9 web page.

The details that can be seen is that the user interface of N9 looks pretty different than the MeeGo Handset example pictures shown at MeeGo web site. So Nokia has developed something of their on for this phone and not just used the UI the open source project has produced (that did not look too good to me). N9 is based on Meego 1.2 OS, and Nokia has added it’s own Harmattan layer on top of it.

Nokia-N9

The Architecture of Open Source Applications

Sunday, May 29th, 2011

Here is one interesting book for all coders. The Architecture of Open Source Applications book has a goal to change the fact that most software developers only ever get to know a handful of large programs well. In the book, the authors of twenty-five open source applications explain how their software is structured, and why. What are each program’s major components? How do they interact? And what did their builders learn during their development?

If you are a junior developer, and want to learn how your more experienced colleagues think, this book is the place to start. If you are an intermediate or senior developer, and want to see how your peers have solved hard design problems, this book can help you too.

cover

Boot Linux In Your Browser

Wednesday, May 18th, 2011

Boot Linux In Your Browser: Fabrice Bellard, the initiator of the QEMU emulator, wrote a PC emulator in JavaScript. You can now boot Linux in your browser, provided it is recent enough (Firefox 4 and Google Chrome 11 are reported to work). This Linux image includes his own realtime C compiler as the C compiler.

French hacker Fabrice Bellard says his JavaScript PC Emulator can run the 2.6.20 Linux kernel inside Mozilla’s Firefox 4 and Google’s Chrome 11. I tested and it runs well on both browsers.

Fabrice Bellard wrote his PC Emulator with pure JavaScript using the typed array specification, which provides an API for using native binary data, and he has tested his creation on browsers running atop Linux, Windows, and Mac OS.

jslinux

The emulated hardware includes a 32-bit x86 compatible CPU, a 8259 programmable interrupt controller, a 8254 programmable interrupt timer, and a 16450 UART. The emulated CPU is comparable to an Intel 486 chip without FPU. The processor information in emulated Linux tells the speed to be around 20 bogomips.

20 years of Linux

Thursday, April 7th, 2011

Linux is celebrating its 20th anniversary this year. Video and festival competitions can be found on Linux Foundation celebrating 20 years of Linux pages.

The History of Linux began in 1991 with the commencement of a personal project by a Finnish student, Linus Torvalds, to create a new operating system kernel. Ari Lemmke named the project “Linux” and uploaded it to FTP server.

tux


I'll be celebrating 20 years of Linux with The Linux Foundation!
I use Linux every day and know personally some of the people who started it.

Watch the Story of Linux to remember – or learn for the first time – how Linux disrupted a market and has begun to change the world.

Why You Shouldn’t Reboot Unix Servers

Friday, March 25th, 2011

You-Should not Reboot Unix Servers without a good reason. Rebooting Windows boxes when something is not right is a way of life. Article When in doubt, reboot? Not Unix boxes explains why you should almost never reboot a Unix server. Server reboots should be rare — very rare.

In many cases, it’s extremely important not to reboot, because the key to figuring out the problem is present on the system before the reboot.The problems usually recur, and if the only known solution is to reboot, then the problem will never be fixed unless or until someone decides not to reboot and instead tries to find the root of the problem.

When you find out that you have some problem on your server, the first idea is to figure out a good strategy how to find out what the problem is. A little bit thinking will easily get you to figure out a way to go though the system in the order which will not destroy the evidence of the problem.

This Unix advice applies also to Linux servers. Too often they are treated almost as badly (reboot when something goes wrong) as Windows PCs. Linux boxes could as well handled in the same way as Unix servers.

server_mimooh_


film izle hd korku filmleri film izle seyret komedi filmleri aksiyon filmleri 2012 filmleri kemal sunal filmleri romantik komedi izle macera filmleri komedi filmi izle komedi filmleri film izle film izle film izle film izle hd film izle