feed-image  Delivered by FeedBurner  ISSN 1836-5930





Poll

Which of following tutorials would you like to see on the Linuxconfig.org?
 
Partner Linux Sites
TuxMachines
DebianAdmin
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
FreeSoftwareLinux
Jam's Ubuntu Blog
All For Linux

LINUX ADMINISTRATION NOTES & CODE SNIPPETS

OpenCV color to grayscale conversion program

To covert color image to a gray scale has never been easier with OpenCV. Here is a small C++ program that does conversion from color image to a grayscale. #include <iostream> #include ...

Monday, 22 March 2010

Read more ...

Reprogram keyboard keys with xmodmap

If you do not like your keyboard layout or the layout you are using is very close to perfection but some keys could be re-mapped to different location there is ...

Sunday, 21 March 2010

Read more ...

Synchronization of your camera with PC using rsync

rsync can be used in many ways. This small utility got its name from Remote Synchronization words. However the word remote does no have to be a remote location over ...

Sunday, 21 March 2010

Read more ...

xine was unable to initialize audio drivers

xine was unable to initialize audio drivers error message is an issue which bothers me for long time alredy. I have a feeling that it is not related to only ...

Saturday, 20 March 2010

Read more ...

Frequently used options for debian / ubuntu dpkg command

dpkg -l List all installed packages.EXAMPLES:dpkg returns a number of installed packages:$ dpkg -l | wc -l1209ask dpkg to return only packages related to php. This will include installed and non-installed ...

Saturday, 20 March 2010

Read more ...

Resize an image with OpenCV cvResize function

This is a small code to resize an image to a desired percentage from an original. New size of width and height are calculated from a percentage supplied as a ...

Thursday, 18 March 2010

Read more ...

Display Image Attributes with OpenCV

Here is a simple program to display image attributes like width, height, size and etc. This program assumes that you have OpenCV library alredy installed on you system. #include <iostream> #include <iomanip> #include ...

Thursday, 18 March 2010

Read more ...

C++ function to calculate Fibonacci number

Here is a small program to clalculate Fibonacci numbers using c++ language. No tampering with the code needed ( only iprovements ! ) just copy and compile with g++ FibonacciNumber.cpp ...

Thursday, 18 March 2010

Read more ...

More in: LINUX ADMINISTRATION NOTES & CODE SNIPPETS

-
+
8

Linux News

Is Microsoft About to Declare Patent War on Linux?

Microsoft's comments on happenings outside its immediate product portfolio are rare, and all the more valuable when they do appear. Here's one from Horacio Gutierrez, “Corporate Vice President and Deputy ...

Monday, 22 March 2010

Read more ...

Victoria expands Linux e-voting rollout

Victoria’s Electoral Commission has flagged plans to expand its use of electronic voting kiosks based on Linux software in the next state election in November this year. The state first ...

Sunday, 21 March 2010

Read more ...

Ten Years of OpenOffice.org

This year (2010) marks the 10th anniversary of a lot of things: Tuvalu’s entry into the United Nations, Israel’s withdrawal from Lebanon, and the debut of Windows ME, for example. ...

Saturday, 20 March 2010

Read more ...

Symbian Foundation Builds Cloud Platform on Red Hat Enterprise Linux

Red Hat, Inc., the world's leading provider of open source solutions, today announced that the Symbian Foundation, a global non-profit organization formed to foster an open source community around its ...

Tuesday, 16 March 2010

Read more ...

Try the Linux desktop of the future

For the tinkerers and testers, 2010 is shaping up to be a perfect year. Almost every desktop and application we can think of is going to have a major release, ...

Sunday, 7 March 2010

Read more ...

I-O Data Signs Linux Software Patent Agreement With Microsoft

Microsoft Corp. and I-O Data Device Inc. have entered into an agreement that will provide I-O Data’s customers with patent coverage for their use of I-O Data’s products running Linux ...

Friday, 5 March 2010

Read more ...

Microsoft and Amazon.com Sign Patent Agreement

Microsoft Corp. today announced that it has signed a patent cross-license agreement with Amazon.com Inc. The agreement provides each company with access to the other’s patent portfolio and covers a ...

Friday, 5 March 2010

Read more ...

When will Microsoft sue Google over Linux?

Microsoft once made the mistake of broad-brushing Linux as an intellectual property quagmire. It made Microsoft headlines, but few friends: lawyers didn't believe it, customers didn't want to hear it, ...

Monday, 1 March 2010

Read more ...

Amazon Ponies Up to Microsoft for Linux Rights

Microsoft and Amazon have entered into a patent cross-licensing deal that covers, among other things, Amazon's Kindle and its use of Linux-based servers. The agreement calls for Amazon to pay ...

Tuesday, 23 February 2010

Read more ...

Google's Android code deleted from Linux kernel

After removing Google's Android driver code from the Linux kernel, Novell Fellow and Linux developer Greg Kroah-Hartman has argued that the mobile OS is incompatible with the project's main tree. ...

Friday, 5 February 2010

Read more ...

Sold out: Microsoft's Linux business is booming

The SD Times reports that Microsoft has sold nearly all of its SUSE Linux Enterprise Server (SLES) support coupons. Microsoft purchased the $240 million worth of coupons from Novell as ...

Friday, 5 February 2010

Read more ...

Symbian OS Takes on Android, Linux in Massive Open Source Move

In a dramatic strategic move, the Symbian Foundation has made source code for the world’s most widely used mobile OS completely free and completely open. In addition, the Foundation says ...

Friday, 5 February 2010

Read more ...

Ubuntu Firefox shuns Google for Yahoo! search

The next release of Ubuntu will scrap Google as the default search engine on its Firefox browser in favor of Yahoo!, thanks to a new revenue-sharing deal between Yahoo! and ...

Thursday, 28 January 2010

Read more ...

2009's Five Most Popular & Important Linux Stories

Before jumping into this, let me say that's what popular isn't the same thing as what's important. So, I'm giving you a twofer list. The first is the most popular ...

Tuesday, 5 January 2010

Read more ...

Shuttleworth steps down as Ubuntu 10.04 alpha steps up

Canonical announced that Mark Shuttleworth will be stepping down as CEO in March to be replaced by Canonical COO Jane Silber, reports eWEEK. Meanwhile, the Ubuntu project has released its ...

Friday, 18 December 2009

Read more ...

More in: Linux News

-
+
4
Linuxconfig.org
Choosing the right Linux File System Layout using a Top-Bottom Process

 

Author: Pierre Vignéras
Contact: pierre@vigneras.name
Submited: 31.07.2009


Abstract:

As you may probably know, Linux supports various filesystems such as ext2, ext3, ext4, xfs, reiserfs, jfs among others. Few users really consider this part of a system, selecting default options of their distribution's installer. In this article, I will give some reasons for a better consideration of the file-system and of its layout. I will suggest a top-bottom process for the design of a ``smart'' layout that remains as stable as possible over time for a given computer usage.

Introduction

The first question that you may ask is why are there so many file-systems, and what are their differences if any? To make it short (see wikipedia for details):

  • ext2: it is THE Linux fs, I mean, the one that was specifically designed for linux (influenced by  ext and Berkeley FFS). Pro: fast; Cons: not journalized (long fsck).
  • ext3: the natural ext2 extension. Pro: compatible with ext2, journalized; Cons: slower than ext2, as many competitors, obsolete today.
  • ext4: the last extension of the ext family. Pro: ascending-compatibility with ext3, big size; good read performance; cons: a bit too recent to know?
  • jfs: IBM AIX FS ported to Linux. Pro: mature, fast, light and reliable, big size; Cons: still developed?
  • xfs: SGI IRIX FS ported to Linux. Pro: very mature and reliable, good average performance, big size, many tools (such as a defragmenter); Cons: none as far as I know.
  • reiserfs: alternative to ext2/3 file-system on linux. Pro: fast for small files; Cons: still developed?
There are other file-systems, in particular new ones such as btrfs, zfs and nilfs2 that may sound very interesting too. We will deal with them later on in this article (see 5).

So now the question is: which file-system is the most suitable for your particular situation? The answer is not simple. But if you don't really know, if you have any doubt, I would recommend XFS for various reasons:

Read more...
 
IPwatchD an IP conflict detection tool for Linux

IPwatchD an IP conflict detection tool for Linux


Project name: IPwatchD - IP conflict detection tool
Author: Jaroslav Imrich
Project's Home Page: IPwatchD

 

Introduction

When using a GNU/Linux operating system, from time to time you may come across a situation where network connectivity was interrupted due to the IP conflict. An IP conflict event occurs when two or more hosts on the same network are configured with identical IP addresses. At the present, there appears to be no code in the Linux kernel to take care of this situation by means of appropriate Gratuitous ARP response . Very often a network administrator is left in the complete ignorance by the Linux kernel and needs to troubleshoot IP conflict the hard way. An IP Address Conflict GUI dialog triggered by IPwatchD Daemon Fortunately, there is a simple daemon called IPwatchD which main purpose is to catch and evaluate packets on the network and this way is able to prevent an IP conflict occurrence. This is done by help of  libpcap library. IPwatchD daemon is written in C language and can run in passive or active modes. The difference between a passive and active mode is that in the passive mode IPwatchD only logs every IP conflict event by engaging syslog daemon, and in active mode IPwatchD takes one step further and responds to Gratuitous ARP request which is the main construction block when it comes to the IP conflict prevention. This article will explore this simple daemon in terms of installation, configuration and usage.

Prerequisites

Before we can install IPwatchD under the GNU/Linux operating system it is recommended to confirm that all prerequisites needed by IPwatchD are installed on the system. Here is a list of packages you would need to install on Ubuntu 8.10.
 * build-essential - C compiler and other development tools
* libpcap-dev - Network packet capture library
* libnet1-dev - Network packet construction library
* libnotify-dev - sends desktop notifications to a notification daemon
On ubuntu or debian linux you can install those packages with a following command:
# apt-get install build-essential libpcap-dev libnet1-dev libnotify-dev 
Read more...
 
VPN - Virtual Private Network and OpenVPN

Introduction

This article will describe a configuration of Virtual Private Network connection by using an OpenVPN application. Firstly, you will be exposed to some basic theory behind Virtual Private Networks. Then, the article will guide you with step-by-step instructions on how to setup a OpenVPN virtual private network by using Symmetric Key Encryption and Public Key Encryption. This article is meant for everybody who possesses a basic knowledge of linux administration and networking.

Why VPN

If you work in IT industry, it is very common that you do not use only a single computer sitting on your work desk, but you also utilize other systems connected to the same local area network. As long as you are sitting on your office chair this approach should not be a problem. However, this situation can become complicated once you are in hurry, and therefore, you need to take some of your work home. You are able to take you company laptop with you, but to fully utilize company resources you would also need to be connected to the company's local area network. The solution to this problem depends on what resources are needed to complete your job. If you need some shared files available on the company's network, you may just simply copy these file to your laptop's hard drive or to USB stick. In case you need to work on the system installed on your company's PC you can also use some virtualization tools such as VirtualBox or VMware. Soon enough you will realize that this approach is not as convenient as you would like it to be, and that you spent more time by copying files and synchronizing virtual systems than concentrating on your work. The ideal solution in this case should allow employees to access company's local resources from an external network. This can be done by forwarding ports of the local services via firewall. Exposing local ports to the Internet is not entirely the safest approach. The more ports are exposed from your local network to an external network such as the Internet, the more vulnerable your local system will become. The ideal approach in this situation could be a use of just single port for all services coupled with encryption and user authentication. This can be achieved, for example, by using a Virtual Private Network (VPN).

How does VPN works

VPN networks are often operated as client-server applications. Good example could be an implementation of MS Windows PPTP or OpenVPN on the Linux Platform. VPN server is directly running on a firewall, where it creates virtual network interface and additional virtual network subnet. VPN server is waiting for connections on the external network interface of the firewall where it performs authentication of a VPN client application. After successful VPN client authentication a VPN client is given an IP address from a virtual subnet. Consequently, an encrypted tunnel is created between VPN client and VPN server, which is used for safe transfer of packets between two distant networks via the Internet. Services, which a VPN client can connect to, can furthermore be defined by firewall rules. This way firewall ensures that VPN client can connect only to services it is allowed to connect. If the previous couple sentences looked to you little difficult to understand, do not despair! Everything will become clearer once we see how encrypted tunnel works in an example.

VPN Encrypted Tunnel Fundamentals

VPN tunnels are generally considered as something mysterious and everybody who mentions them, is "cool" :-) However, there is nothing to be afraid about, in the fact principle of Virtual Private Network is very simple. Data in IP networks are exchanged in packets. Information about destination and a source of the packet can be found in the packet's header. The actual user data are carried as a payload. Let’s imagine that ssh client wants to talk to ssh server over the Virtual Private Network. Packets leaving a host's network interface located on the local network are sent with a destination port number 22. When this packet reaches a VPN tunnel it is encapsulated into the VPN packet where original packet is now treated as a payload. If the VPN server listens on the port 443, the VPN packet will carry a destination port 443. VPN Encrypted Tunnel Fundamentals
When looking at the previous figure it is apparent that this kind of network data transfer over the VPN is a waste of transfer rate because original packet has a smaller payload space just because it needs to fit into the VPN tunnel packet. In VPN analogical sense this can be considered as a drawback.
Read more...
 
Linux Cron Guide

Introduction

Every user as well as administrator of the linux system very often needs to execute some programs on regular basis.

 

For example, an administrator may need to monitor a disk usage of a system. In this case a cron scheduler is very handy tool to achieve this. Let's say that root needs to execute /usr/local/sbin/backup.sh script every Sunday at 2:36AM he would edit his crontab file as shown on the figure below:

 

# crontab -e 

 

The format is simple, 6 fields separated with spaces or tabs. The rest of the line is the command, and it's parameters to be executed. The sixth field - user name (in blue) is used only in the system wide cron scheduler.linux cron

Read more...
 
«StartPrev1234567NextEnd»

Page 2 of 7