Controlling Bandwidth in ubuntu using Trickle

Trickle is a portable lightweight userspace bandwidth shaper. It can run in collaborative mode (together with trickled) or in stand alone mode.
trickle works by taking advantage of the unix loader preloading. Essentially it provides, to the application, a new version of the functionality that is required to send and receive data through sockets. It then limits traffic based on delaying the sending and receiving of data over a socket. trickle runs entirely in userspace and does not require root privileges.

To install trickle in Ubuntu:

sudo apt-get install trickle

To start Firefox with a limit to the amount of bandwidth it consumes all you have to do is type in the command line.

trickle -d 200 firefox
this would start Firefox with a download limit of 200KB/s.

How to type New Indian Rupee Symbol

To display the Indian rupee symbol , you must have a font—such as the Ubuntu Font Family—with support for the character.
Windows users may use the new Rupkara font which has the Unicode postion mapping for the symbol. For  downloading the font, please visit-http://blog.foradian.com/rupakara-first-font-with-indian-rupee-symbol

Ubuntu 10.10 is the first operating system to ship with out-of-the-box support for displaying the Indian Rupee Sign, and this happened on 10 October 2010 (2010-10-10).

To display the Indian rupee symbol for:

# Ubuntu 10.10:< Ctrl-Shift-u > 20b9 < enter >
# MS Windows: < Press-and-hold Alt > 20b9 < Release Alt >
# Kubuntu 10.10: Copy-and-paste ‘₹’
# HTML: insert & # x 2 0 b 9;

Resource Standard Metrics

INTRODUCTION

Resource Standard Metrics, or RSM, is a source code metrics and quality analysis tool unlike any other on the market. RSM provides a standard method for analyzing C, ANSI C++, C# and Java source code across operating systems.  The unique ability of RSM to support virtually any operating system provides your enterprise with the ability to standardize the measurement of source code quality and metrics throughout your organization. RSM provides the fastest, most flexible and easy-to-use tool to assist in the measurement of code quality and metrics.

Why RSM is right for Enterprise

  • RSM is the fastest and most cost effective metrics and analysis tool commercially available
  • RSM complies with SEI-CMM definitions of software metrics
  • RSM is used around the World by leading companies, from Alcatel to Volvo (Export Control Statement)
  • Use this ONE tool across all operating systems – RSM Installation – including all Windows variants, Mac OS X, Linux and UNIX.
  • Use this ONE tool across all project languages for K&R and ANSI C, ANSI C++, C#, and Java 2.0+
  • RSM integrates with Visual Studio, .NET, JBuilder, Eclipse and other popular IDE’s.
  • NO limitations to the file length, number of files, or usage.
  • RSM has quickly processed projects consisting of over 10,000 files and 12,000,000 Lines of Code.
  • Clearly listed prices, easy online ordering with 24 hour or less order fulfillment, NO salespeople or arbitrary pricing!
  • Available as Single-User, Network, or Site License for Windows, Linux and UNIX – Order Form

RSM Metrics & Analysis Features

  • Collect 100′s of Source Code Metrics by the function, class, file, and project – RSM Metrics
  • Collect industry standard functional and object oriented metrics – RSM Metrics
  • Baseline Differentials – Perform metrics between two baselines of code using industry standard Longest Common Sequence Algorithm (LCS) that complies with GNU Diff yet extends the semantics to the specifc type of line modified to comment or line of code.
  • Create labor and cost estimation factors from the metrics – Estimation Factors
  • RSM Quality Analysis – Analyze source code for over 50+ latent programming errors which compilers miss
  • User Defined Quality Notices using Perl Compatible Regular Expressions for unlimted analysis capability
  • Analyze source code for code style enforcement – RSM Quality Analysis
  • Create an Inheritance tree directly from the code – Inheritance Tree
  • Analyze system class inheritance by depth and derivation
  • Interactive with Popular IDEs like Visual Studio and JBuilder – IDE Integration
  • Regenerate source code to remove tabs, and convert between DOS and Unix – De-Character Mode
  • RSM ideal for automatic code metrics collection from script routines – RSM Operation

RSM Report Features

  • Use one tool across all project languages for K&R and ANSI C, ANSI C++, C#, and Java 2.0+ – RSM Options and Reports
  • Determine exactly how RSM sees your code – Deterministic Report
  • Create reports in HTML with hyperlinks to the code – HTML Output Mode
  • Create reports in XML with user XSL translations for custom HTML reports
  • Create reports in CSV format for direct input to MS Excel Spreadsheets – CSV Reports
  • Create reports in Text format for screen, print and import into documents – Text Report
  • Simple command line operation with runtime options making – RSM Options and Reports

PYTHON (programming language)

Python (programming language)

Python Official Python Logo

Paradigm          multi-paradigm: object-oriented, imperative, functional, reflective

Appeared in       1991

Designed by      Guido van Rossum

Developer          Python Software Foundation

License             Python Software Foundation License

Usual file extensions      .py, .pyw, .pyc, .pyo, .pyd

Website            www.python.org

Python is a general-purpose high-level programming language whose design philosophy emphasizes code readability. Python aims to combine “remarkable power with very clear syntax”, and its standard library is large and comprehensive. Its use of indentation for block delimiters is unusual among popular programming languages.

Python supports multiple programming paradigms, primarily but not limited to object oriented, imperative and, to a lesser extent, functional programming styles. It features a fully dynamic type system and automatic memory management, similar to that of Scheme, Ruby, Perl, and Tcl. Like other dynamic languages, Python is often used as a scripting language, but is also used in a wide range of non-scripting contexts.

The reference implementation of Python (CPython) is free and open source software and has a community-based development model, as do all or nearly all of its alternative implementations. CPython is managed by the non-profit Python Software Foundation.

History

Python was conceived in the late 1980s and its implementation was started in December 1989 by Guido van Rossum at CWI in the Netherlands as a successor to the ABC programming language (itself inspired by SETL) capable of exception handling and interfacing with the Amoeba operating system.

Python 2.0 was released on 16 October 2000, with many major new features including a full garbage collector and support for Unicode. However, the most important change was to the development process itself, with a shift to a more transparent and community-backed process. Python 3.0, a major, backwards-incompatible release, was released on 3 December 2008 after a long period of testing.

Programming philosophy

Python is a multi-paradigm programming language. Rather than forcing programmers to adopt a particular style of programming, it permits several styles: object-oriented programming and structured programming are fully supported, and there are a number of language features which support functional programming and aspect-oriented programming (including by metaprogramming and by magic methods). Many other paradigms are supported using extensions, such as pyDBC and Contracts for Python which allow Design by Contract.

Python uses dynamic typing and a combination of reference counting and a cycle-detecting garbage collector for memory management. An important feature of Python is dynamic name resolution (late binding), which binds method and variable names during program execution.

Rather than requiring all desired functionality to be built into the language’s core, Python was designed to be highly extensible. New built-in modules can be easily written in C, C++ or Cython. Python can also be used as an extension language for existing modules and applications that need a programmable interface.

The design of Python offers only limited support for functional programming in the Lisp tradition. However, Python’s design philosophy exhibits significant similarities to those of minimalist Lisp-family languages, such as Scheme[citation needed]. The library has two modules (itertools and functools) that implement proven functional tools borrowed from Haskell and Standard ML.

Python’s developers premature optimization, and reject patches to non-critical parts of CPython which would offer a marginal increase in speed at the cost of clarity. Python is sometimes described as “slow

Usage

Main article: Python software

Python is often used as a scripting language for web applications, e.g. via mod_python for the Apache web server. With Web Server Gateway Interface a standard API has been developed to facilitate these applications. Web application frameworks or application servers like Django, Pylons, TurboGears, web2py and Zope support developers in the design and maintenance of complex applications. Libraries like NumPy, Scipy and Matplotlib allow Python to be used effectively in scientific computing.

Python has been successfully embedded in a number of software products as a scripting language, including in finite element method software such as Abaqus, 3D animation packages such as Maya, MotionBuilder, Softimage, Cinema 4D, BodyPaint 3D, modo, and Blender, and 2D imaging programs like GIMP . ESRI is now promoting Python as the best choice for writing scripts in ArcGIS. It has even been used in several videogames.

For many operating systems, Python is a standard component; it ships with most Linux distributions, with NetBSD, and OpenBSD, and with Mac OS X and can be used from the terminal. Ubuntu uses the Ubiquity installer, while Red Hat Linux and Fedora use the Anaconda installer, and both installers are written in Python. Gentoo Linux uses Python in its package management system, Portage, and the standard tool to access it, emerge. Pardus uses it for administration and during system boot.

Python has also seen extensive use in the information security industry, including exploit development.

Among the users of Python are YouTube and the original BitTorrent client. Large organizations that make use of Python include Google, Yahoo!,CERN, NASA, and ITA. Most of the Sugar software for the One Laptop Per Child XO, now developed at Sugar Labs, is written in Python.

Syntax and semantics

Syntax-highlighted Python 2.x code.

Python was intended to be a highly readable language. It is designed to have an uncluttered visual layout, frequently using English keywords where other languages use punctuation. Python requires less boilerplate than traditional manifestly typed structured languages such as C or Pascal, and has a smaller number of syntactic exceptions and special cases than either of these.

Indentation

Python uses whitespace indentation, rather than curly braces or keywords, to delimit blocks (a feature also known as the off-side rule). An increase in indentation comes after certain statements; a decrease in indentation signifies the end of the current block.

Statements and control flow

Python’s statements include:

* The if statement, which conditionally executes a block of code, along with else and elif (a contraction of else-if).

* The for statement, which iterates over an iterable object, capturing each element to a local variable for use by the attached block.

* The while statement, which executes a block of code as long as its condition is true.

* The try statement, which allows exceptions raised in its attached code block to be caught and handled by except clauses; it also ensures that clean-up code in a finally block will always be run regardless of how the block exits.

* The class statement, which executes a block of code and attaches its local namespace to a class, for use in object-oriented programming.

* The def statement, which defines a function or method.

* The with statement, which encloses a code block within a context manager (for example, acquiring a lock before the block of code is run, and releasing the lock afterwards).

* The pass statement, which serves as a NOP and can be used in place of a code block.

Each statement has its own semantics: for example, the def statement does not execute its block immediately, unlike most other statements.

Methods

Methods on objects are functions attached to the object’s class; the syntax instance.method(argument) is, for normal methods and functions, syntactic sugar for Class.method(instance, argument). Python methods have an explicit self parameter to access instance data, in contrast to the implicit self in some other object-oriented programming languages (for example, Java, C++ or Ruby).

Typing

Python uses duck typing and has typed objects but untyped variable names. Type constraints are not checked at compile time; rather, operations on an object may fail, signifying that the given object is not of a suitable type. Despite being dynamically typed, Python is strongly typed, forbidding operations that are not well-defined (for example, adding a number to a string) rather than silently attempting to make sense of them.

Python allows programmers to define their own types using classes, which are most often used for object-oriented programming. New instances of classes are constructed by calling the class (for example, SpamClass() or EggsClass()), and the classes themselves are instances of the metaclass type (itself an instance of itself), allowing metaprogramming and reflection.

Here is a summary of Python’s built-in types:

Type     Description        Syntax example

str        An immutable sequence of Unicode characters     ‘Wikipedia’ “Wikipedia”" “”Spanning multiple lines”"”

bytes    An immutable sequence of bytes             b’Some ASCII’ b”Some ASCII”

list        Mutable, can contain mixed types           [4.0, 'string', True]

tuple     Immutable, can contain mixed types        (4.0, ‘string’, True)

set, frozenset    Unordered, contains no duplicates           {4.0, ‘string’, True} frozenset([4.0, 'string', True])

dict       A mutable group of key and value pairs    {‘key1′: 1.0, 3: False}

int         An immutable fixed precision number of unlimited magnitude         42

float      An immutable floating point number (system-defined precision)      3.1415927

complex            An immutable complex number with real number and imaginary parts         3+2.7j

bool      An immutable truth value            True False

long      An immutable fixed precision number of unlimited magnitude         10L

While many programming languages round the result of integer division towards zero, Python always rounds it down towards minus infinity; so that 7//3 is 2, but (−7)//3 is −3.

Implementations

CPython

The mainstream Python implementation, known as CPython, is written in C meeting the C89 standard. CPython compiles Python programs into intermediate bytecode, which are then executed by the virtual machine. It is distributed with a large standard library written in a mixture of C and Python. CPython ships in versions for many platforms, including Microsoft Windows and most modern Unix-like systems. CPython was intended from almost its very conception to be cross-platform; its use and development on esoteric platforms such as Amoeba, alongside more conventional ones like Unix and Mac OS, has greatly helped in this regard.

Alternative implementations

Jython compiles the Python program into Java byte code, which can then be executed by every Java Virtual Machine implementation. This also enables the use of Java class library functions from the Python program. IronPython follows a similar approach in order to run Python programs on the .NET Common Language Runtime. PyPy is an experimental self-hosting implementation of Python, written in Python, that can output several types of bytecode, object code and intermediate languages. PyPy is of this type, compiling RPython to several languages; other examples include Pyjamas compiling to Javascript; Shed Skin compiling to C++; and Cython & Pyrex compiling to C.

In 2005 Nokia released a Python interpreter for the Series 60 mobile phones called PyS60. It includes many of the modules from the CPython implementations and some additional modules for integration with the Symbian operating system.

Interpretational semantics

Most Python implementations (including CPython, the primary implementation) can function as a command line interpreter, for which the user enters statements sequentially and receives the results immediately. In short, Python acts as a shell. While the semantics of the other modes of execution (bytecode compilation, or compilation to native code) preserve the sequential semantics, they offer a speed boost at the cost of interactivity, so they are usually only used outside of a command-line interaction (e.g., when importing a module).

Other shells add capabilities beyond those in the basic interpreter, including IDLE and IPython. While generally following the visual style of the Python shell, they implement features like auto-completion, retention of session state, and syntax highlighting.

Standard library.

Python has a large standard library, commonly cited as one of Python’s greatest strengths,providing pre-written tools suited to many tasks. This is deliberate and has been described as a “batteries included” Python philosophy. The modules of the standard library can be augmented with custom modules written in either C or Python. Recently, Boost C++ Libraries includes a library, Boost.Python, to enable interoperability between C++ and Python. Because of the wide variety of tools provided by the standard library, combined with the ability to use a lower-level language such as C and C++, which is already capable of interfacing between other libraries, Python can be a powerful glue language between languages and tools.

The standard library is particularly well tailored to writing Internet-facing applications, with a large number of standard formats and protocols (such as MIME and HTTP) already supported. Modules for creating graphical user interfaces, connecting to relational databases, arithmetic with arbitrary precision decimals, manipulating regular expressions, and doing unit testing are also included.

Influences on other languages

Python’s design and philosophy have influenced several programming languages, including:

* Pyrex and its derivative Cython are code translators that are targeted at writing fast C extensions for the CPython interpreter. The language is mostly Python with syntax extensions for C and C++ features. Both languages produce compilable C code as output.

* Boo uses indentation, a similar syntax, and a similar object model. However, Boo uses static typing and is closely integrated with the .NET framework.

* Cobra uses indentation and a similar syntax. Cobra’s “Acknowledgements” document lists Python first among languages that influenced it. However, Cobra directly supports design-by-contract, unit tests and optional static typing.

* Groovy was motivated by the desire to bring the Python design philosophy to Java.

Python’s development practices have also been emulated by other languages.

Project (FILE-SERVER)

FILE SERVER CONFIGURATION ON LINUX

In computing, a file server is a computer attached to a network that has the primary purpose of providing a location for the shared storage of computer files (such as documents, sound files, photographs, movies, images, databases, etc.) that can be accessed by the workstations that are attached to the computer network. The term server highlights the role of the machine in the client – server scheme, where the clients are the workstations using the storage. A file server is usually not performing any calculations, and does not run any programs on behalf of the clients. It is designed primarily to enable the rapid storage and retrieval of data where the heavy computation is provided by the workstations.
This project is the combination of 3 protocols FTP+SAMBA+DHCP giving access to data shared in a network to the users.I Combined all these Protocols by writing a SCRIPT using BASH environment in REDHAT LINUX Operating System v5.1. In this project  I studied/show how to create a file server providing share access in network using small & easy scripts created in BASH environment. I design a script that manage the service in a network START/STOP. Allowing Access OR Deny Access to share for a user in NETWORK. I also design NFS-SERVER SCRIPT that manage a SHARE in a network.  The Description of the NFS and all Protocols are described below.

HARDWARE AND SOFTWARE  REQUIRMENTS


SOFTWARE  REQUIRMENTS
OS Version :
Red Hat Enterprise Linux Advanced Server 3 – 5 (Intel 32-bit)
Red Hat Enterprise Linux Enterprise Server 3 – 5 (Intel 32-bit)

The operating system can be installed from disc, local ISO image, kickstart, or any of the methods supported by Red Hat.

Packages :
Samba*,
Vsftp*,
Dhcp*,
Nfs*

HARDWARE REQUIRMENTS

The following hardware configuration is required :
·    A Pentium III Processor or Faster
·    RAM – 256Mbyte for a minimal installation.
·    At least 5 GB storage for base install of Red Hat Enterprise Linux
·    Hard disk storage space requirements : -
Approximately 300Mbyte of disk space for a minimal installation. For production systems, you should plan at least 2GB to support the product binaries, databases, and log files (log files require 1GB by default);
4GB and greater may be required for very large directories.
To support database files that are larger than 2GB, the machine must be configured to
support large files.

WORKING OF THE PROJECT


Working :  Sharing Data or files in NETWORK using any environment LINUX/WINDOWS

Required :  FTP, SAMBA & DHCP.

File Transfer Protocol (FTP)

It is a network protocol used to transfer data from one computer to another through a network such as the Internet.
FTP is a file transfer protocol for exchanging and manipulating files over a TCP computer network. An FTP client may connect to an FTP server to manipulate files on that server.
Connection Methods


FTP runs over TCP. It defaults to listen on port 21 for incoming connections from FTP clients. A connection to this port from the FTP Client forms the control stream on which commands are passed from the FTP client to the FTP server and on occasion from the FTP server to the FTP client. FTP uses out-of-band control, which means it uses a separate connection for control and data. Thus, for the actual file transfer to take place, a different connection is required which is called the data stream. Depending on the transfer mode, the process of setting up the data stream is different. Port 21 for control and authentication( match user password ), port 20 for data transfer.

FTP and web browsers


Most recent web browsers and file managers can connect to FTP servers, although they may lack the support for protocol extensions such as FTPS. This allows manipulation of remote files over FTP through an interface similar to that used for local files. This is done via an FTP URL, which takes the form ftp(s)://<ftpserveraddress>  (e.g., ftp://ftp.gimp.org/). A password can optionally be given in the URL, e.g.: ftp(s)://<login>:<password>@<ftpserveraddress>:<port>. Most web-browsers require the use of passive mode FTP, which not all FTP servers are capable of handling. Some browsers allow only the downloading of files, but offer no way to upload files to the server.
vsftpd Configuration Options
Although vsftpd may not offer the level of customization other widely available FTP servers have, it offers enough options to fill most administrator’s needs. The fact that it is not overly feature-laden limits configuration and programmatic errors.
All configuration of vsftpd is handled by its configuration file, /etc/vsftpd/vsftpd.conf. Each directive is on its own line within the file and follows the following format:

<directive>=<value>

There must not be any spaces between the <directive>, equal symbol, and the <value> in a directive.

Package used for FTP  in   Linux      :    vsftp*
Daemon name                                         :   vsftpd

Samba

It is a free software re-implementation of SMB/CIFS networking protocol, originally developed by Australian Andrew Tridgell. Samba is released under the GNU General Public License. The name Samba comes from SMB (Server Message Block), the name of the standard protocol used by the Microsoft Windows network file system.

As of version 3 Samba provides file and print services for various Microsoft Windows clients and can integrate with a Windows Server domain, either as a Primary Domain Controller (PDC) or as a domain member. It can also be part of an Active Directory domain. Samba runs on most Unix and Unix-like systems, such as Linux, Solaris, AIX and the BSD variants, including Apple’s Mac OS X Server (which was added to the Mac OS X client in version 10.2).

Samba sets up network shares for chosen Unix directories (including all contained subdirectories). These appear to Microsoft Windows users as normal Windows folders accessible via the network. Unix users can either mount the shares directly as part of their file structure or, alternatively, can use a utility, smbclient (libsmb) installed with Samba to read the shares with a similar interface to a standard command line FTP program. Each directory can have different access privileges overlaid on top of the normal Unix file protections. For example: home directories would have read/write access for all known users, allowing each to access their own files. However they would still not have access to the files of others unless that permission would normally exist. Note that the net logon share, typically distributed as a read only share from /etc/samba/net logon, is the logon directory for user logon scripts.

Configuration is achieved by editing a single file (typically installed as /etc/smb.conf or /etc/samba/smb.conf). Samba can also provide user logon scripts and group policy implementation through poledit.

Samba includes a web administration tool called Samba Web Administration Tool (SWAT)

By using a Samba the sharing is done on  Linux to Linux and Windows to Linux  ‘
Samba features :-
—    1.Serve directory trees and printers to Linux, UNIX, and Windows clients
—    2.Assist in network browsing (with or without NetBIOS)
—    3.Authenticate Windows domain logins
—    4.Provide Windows Internet Name Service (WINS) name server resolution
—    5.Act as a Windows NT®-style Primary Domain Controller (PDC)
—    6.Act as a Backup Domain Controller (BDC) for a Samba-based PDC
—    7.Act as an Active Directory domain member server
—    8.Join a Windows NT/2000/2003 PDC
How we can configure a samba server by  taking a example?
·    Let us see installed packages needed for samba  setup
—    Edit the file and enter following details
(configuration file of samba is smb.conf)
—    #vi /etc/samba/smb.conf
[sunteam] —————————————>Display Name for the shared path.
comment = For Sunteam use Only ———–>Optional.
path = /home/data————————->Path to be shared.
writable = yes                 printable = no
browseable = yes
l     # we can limit the access to this path by adding the following             line into the above conf file:
valid users = users to be allowed to share the path
# To connect to a samba share from a shell prompt use the               following command :
Smbclient//hostname/host_dir –u username

# To mount a samba share to a directory:
Mount –t cifs –o username passwd //servername /share  /mnt/point

Package used for SAMBA in   Linux      :  samba*
Daemon name                                                : smb

Dynamic Host Configuration Protocol (DHCP)

It is a network application protocol used by devices (DHCP clients) to obtain configuration information for operation in an Internet Protocol network. This protocol reduces system administration workload, allowing devices to be added to the network with little or no manual intervention.
When a DHCP-configured client (be it a computer or any other network-aware device) connects to a network, the DHCP client sends a broadcast query requesting necessary information from a DHCP server. The DHCP server manages a pool of IP addresses and information about client configuration parameters such as the default gateway, the domain name, the DNS servers, other servers such as time servers, and so forth. Upon receipt of a valid request the server will assign the computer an IP address, a lease (the length of time for which the allocation is valid), and other IP configuration parameters, such as the subnet mask and the default gateway. The query is typically initiated immediately after booting and must be completed before the client can initiate IP-based communication with other hosts.
DHCP provides four modes for allocating IP addresses. The best-known mode is dynamic, in which the client is provided a “lease” on an IP address for a period of time. Depending on the stability of the network, this could range from hours (a wireless network at an airport) to months (for desktops in a wired lab).

Configuring a DHCP Server

You can configure a DHCP server using the configuration file /etc/dhcpd.conf.
DHCP also uses the file /var/lib/dhcp/dhcpd.leases to store the client lease database. Refer to the Section called Lease Database for more information.
Configuration File

The first step in configuring a DHCP server is to create the configuration file that stores the network information for the clients. Global options can be declared for all clients, or options can be declared for each client system.
The configuration file can contain any extra tabs or blank lines for easier formatting. The keywords are case-insensitive, and lines beginning with a hash mark (#) are considered comments.
There are two types of statements in the configuration file:
·    Parameters — state how to perform a task, whether to perform a task, or what network configuration options to send to the client.
·    Declarations — describe the topology of the network, describe the clients, provide addresses for the clients, or apply a group of parameters to a group of declarations.
Some parameters must start with the option keyword and are referred to as options. Options configure DHCP options; whereas, parameters configure values that are not optional or control how the DHCP server behaves.
Parameters (including options) declared before a section enclosed in curly brackets ({ }) are considered global parameters. Global parameters apply to all the sections below it.

Important

If you change the configuration file, the changes will not take effect until you restart the DHCP daemon with the command service dhcpd restart.

Package used for DHCP  in  Linux     :    dhcp*
Daemon name                                           :   dhcpd

Network File System (NFS)

A network file system is any computer file system that supports sharing of files, printers and other resources as persistent storage over a computer network. The first file servers were developed in the 1970s, and in 1985 Sun Microsystems created the file system called “Network File System” (NFS) which became the first widely used network file system. Other notable network file systems are Andrew File System (AFS), NetWare Core Protocol (NCP), and Server Message Block (SMB) which is also known as Common Internet File System (CIFS).
Ideally, a network file system should appear to its users to be a conventional, centralized file system. The multiplicity and dispersion of its servers and storage devices should be made invisible. That is, the client interface used by programs should not distinguish between local and remote files. It is up to the network file system to locate the files and to arrange for the transport of the data.
The most important performance measurement of a network file system is the amount of time needed to satisfy service requests. In conventional systems, this time consists of a disk-access time and a small amount of CPU-processing time. But in a network file system, a remote access has additional overhead due to the distributed structure. This includes the time to deliver the request to a server, the time to deliver the response to the client, and for each direction, a CPU overhead of running the communication protocol software. The performance of a network file system can be viewed as one dimension of its transparency: ideally, it would be comparable to that of a conventional file system.
NFS Configuration
NFS stands for  network file  system, and is a way to share files between machines as if they were on your local hard drive. Linux can be both an NFS server and an NFS client, which means that it can export file systems to other systems, and mount file systems exported from other machines.

Mounting NFS File systems

Use the mount command to mount an NFS file system from another machine:
mkdir
/mnt/local

# Only required if /mnt/local doesn’t exist

mount
bigdog:/mnt/export

/mnt/local

In this command, bigdog is the hostname of the NFS fileserver, /mnt/export is the file system that bigdog is exporting, and /mnt/local is a directory on my local machine where we want to mount the file system. After the mount command runs (and if we have the proper permissions from bigdog ) we can enter ls /mnt/local and get a listing of the files in /mnt/export on bigdog.
Exporting NFS File systems

The file that controls what file systems you wish to export is /etc/exports .
the ( options ) are optional. For example:

/mnt/export                           example.com (rw , sync)

NFS Client Configuration Files

Any NFS share made available by a server can be mounted using various methods. The share can be manually mounted, using the mount command. However, this requires that the root user type the mount command every time the system restarts. Two methods of configuring NFS shares to be mounted automatically at boot time include modifying the /etc/fstab or using the autofs service.

/etc/fstab
Placing a properly formatted line in the /etc/fstab file has the same effect as manually mounting the exported file system. The /etc/fstab file is read by the /etc/rc.d/init.d/netfs script at system startup and any NFS shares listed there will be mounted.
A sample /etc/fstab line to mount an NFS export looks like the following:

<server>:</path/of/dir> </local/mnt/point> nfs <options> 0 0

The <server-host> corresponds to hostname, IP address, or fully qualified domain name of the server exporting the file system.

The </path/of/directory> is the path to the exported directory.

The </local/mount/point> specifies where on the local file system to mount the exported directory. This mount point must exist before /etc/fstab is read or the mount will fail.

The nfs option specifies the type of file system being mounted.
The <options> area specifies mount options for the file system. For example, if the options area states rw,suid, the exported file system will be mounted read-write and the user and groupid set by the server will be used. Note that parentheses are not to be used here.

Package used for DHCP  in  Linux     :    nfs*
Daemon name                                           :   nfsd

TESTING

This is script is to create a combination of four servers : -

NFS – Network file System

SAMBA – Server Message Block

FTP – File Transfer Protocol

DHCP – Dynamic Host Transfer Protocols

First of all we need to install Extended Internet Daemon for support of SAMBA

#rpm -ivh /dump/Server/xinetd* –aid –force

Now I am installing samba packages

Samba provide sharing of data between LINUX and WINDOWS

#rpm -ivh /dump/Server/samba* –aid –force

After that install FTP packages

Do not worry VSFTPD is very secure File Transfer Protocols and is enabled for
local users

#rpm -ivh /dump/Server/vsftp* –aid –force

I am also installing DHCP for future

Lab setup if required then I will use this to assign IP address

#rpm -ivh /dump/Server/dhcp* –aid –force

USERS

I am adding two users named POP and ROCK

#useradd  pop

#useradd  rock

Adding files in the directory of USERS for sharing

#echo “this is a file of users POP ” > /home/pop/sales

#echo “this is a file of users ROCK ” > /home/rock/myfile


Configuring the DHCP for NETWORK

#cat /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample > /etc/dhcpd.conf

#clear

Staring DHCP service

#service dhcpd restart

Starting FTP service

#service vsftpd restart

Starting NFS service

#service nfs restart

Starting SAMB service

#service smb restart

Permanent ON the services


#chkconfig smb on

#chkconfig dhcpd on

#chkconfig nfs on

#chkconfig vsftpd on

#clear

#echo ” all services are started”

#echo “plz assign passwords to both users manually according to your requirement”

#echo ” thanks all things are done and working fine.”

KDE

Tags

KDE
kde (pronounced /ˌkeɪdiːˈiː/) is a free software project based around its flagship product, a cross-platform desktop environment designed to run on Linux, Windows and Mac OS X systems..The goal of the project is to provide basic desktop functions and applications for daily needs as well as tools and documentation for developers to write stand-alone applications for the system. In this regard, the KDE project serves as an umbrella project for many standalone applications and smaller projects that are based on KDE technology. These include KOffice, KDevelop, Amarok, K3b and many others. KDE software is based on the Qt toolkit. The original GPL version of this toolkit only existed for the X11 platform, but with the release of Qt 4, GPL versions are available for all platforms. This allows KDE software based on Qt 4 to also be distributed to Microsoft Windows and Mac OS X.

Origins

KDE was founded in 1996 by Matthias Ettrich, who was then a student at the Eberhard Karls University of Tübingen. At the time, he was troubled by certain aspects of the Unix desktop. Among his qualms was that none of the applications looked, felt, or worked alike. He proposed the formation of not only a set of applications, but rather a desktop environment, in which users could expect things to look, feel, and work consistently.

The name KDE was intended as a word play on the existing Common Desktop Environment, available for Unix systems. CDE was an X11-based user environment jointly developed by HP, IBM, and Sun, through the X/Open Company, with an interface and productivity tools based on the Motif graphical widget toolkit. It was supposed to be an intuitively easy-to-use desktop computer environment.The K was originally suggested to stand for “Kool”, but it was quickly decided that the K should stand for nothing in particular

First series
KDE 1.0

KDE is a network transparent, contemporary desktop environment for UNIX workstations. KDE seeks to fill the need for an easy to use desktop for Unix workstations, similar to the desktop environments found under the MacOS or Window95/NT. We believe that the UNIX operating system is the best operating system available today. In fact UNIX has been the undisputed choice of the information technology professional for many years. When it comes to stability, scalability and openness there is no competition to UNIX. However, the lack of an easy to use contemporary desktop environment for UNIX has prevented UNIX from finding its way onto the desktops of the typical computer user in offices and homes.

With KDE there is now an easy to use, contemporary desktop environment available for UNIX. Together with a free implementation of UNIX such as Linux, UNIX/KDE constitutes a completely free and open computing platform available to anyone free of charge including its source code for anyone to modify. While there will always be room for improvement we believe to have delivered a viable alternative to some of the more commonly found and commercial operating systems/desktops combinations available today. It is our hope that the combination UNIX/KDE will finally bring open, reliable, stable and monopoly free computing to the average computer.

Second and third series
KDE 2.0

The second series of releases, KDE 2, introduced significant technological improvements.These included DCOP (Desktop COmmunication Protocol), KIO, an application I/O library, KParts, a component object model, allowing an application to embed another within itself, and KHTML, an HTML rendering and drawing engine.KDE 3.2 with Konqueror and the About screen. This has been described as a watershed release.

The third series was much larger than the previous series, consisting of six major releases. The API changes between KDE 2 and KDE 3 were comparatively minor, meaning that the KDE 3 can be seen as largely a continuation of the KDE 2 series. All releases of KDE 3 were built upon Qt 3, which was only released under the GPL for Linux and Unix-like operating systems, including Mac OS X. For that reason, KDE 3 was only available on Windows through ports involving an X server.

Fourth series
KDE 4.0 with Dolphin and System Settings

KDE 4 is based on Qt 4 which is also released under the GPL for Windows and Mac OS X. Therefore KDE 4 applications can be compiled and run natively on these operating systems as well.

KDE 4 includes many new technologies and technical changes. The centerpiece is a redesigned desktop and a panel collectively called Plasma which replaces Kicker, KDesktop, and SuperKaramba by integrating their functionality into one piece of technology, and is intended to be more configurable for those wanting to update the decades-old desktop metaphor. There are a number of new frameworks, including Phonon, a new multimedia interface making KDE independent of any one specific media backend, Solid, an API for network and portable devices, and Decibel, a new communication framework to integrate all communication protocols into the desktop. Also featured is a metadata and search framework, incorporating Strigi as a full-text file indexing service, and NEPOMUK with KDE integration.

Development

KDE is built using the Qt toolkit which runs on most Unix and Unix-like systems, Mac OS X and Microsoft Windows. Both KDE and GNOME now participate in freedesktop.org, an effort to standardize Unix desktop interoperability.

Source code

KDE releases are made to the http://websvn.kde.org/ FTP server in the form of source code with configure scripts, which are compiled by operating system vendors and integrated with the rest of their systems before distribution. Most vendors use only stable and tested versions of KDE, and provide it in the form of easily installed, pre-compiled packages. The source code of every stable and development version of KDE is stored in the KDE Subversion source code repository.

Applications

The Kontact personal information manager and Konqueror file manager/web browser running on KDE 3.5

Major applications for KDE include:

* Amarok – Audio player
* Dolphin – File manager
* K3b – Optical disc authoring software
* Kate – Text editor
* Kdenlive – Non-linear video editing
* KDevelop – Integrated development environment
* Konsole – Terminal emulator
* Kontact – Personal information manager featuring an e-mail client, a news client, a feed aggregator, To-do lists and more.
* Kopete – Instant messaging client
* Konqueror – Web browser and File manager
* KOffice – Office suite
* KTorrent – BitTorrent client

Base technologies

* KDELibs
* KHTML – HTML engine
* KIO – extensible network-transparent file access
* Kiosk – allows disabling features within KDE to create a more controlled environment
* KParts – lightweight in-process graphical component framework
* KWin – window manager
* XMLGUI – allows defining UI elements such as menus and toolbars via XML files

kbuntu Vs ubuntu

Tags

Kubuntu is the latest desktop environment for Linux based OS, primarily Ubuntu. A beta version of Kubuntu 9.10 has been rolled out along with the KDE 4.3.2 update. Kubuntu runs well on Ubuntu and you should learn about the combination of Kubuntu and Ubuntu rather than Kubuntu vs Ubuntu.
Connection between Kubuntu and Ubuntu

Not too many users are familiar with Kubuntu yet, and some of the folks even have a misconception that Kubuntu is a fork of Ubuntu.

However, in reality, it is an official part of Ubuntu, and an absolutely stable and secure computing environment.
Kubuntu versus Ubuntu

The title is rather misleading as Kubuntu runs on Ubuntu and there’s no way to make such a comparison. However, even the award winning Ubuntu operating system doesn’t promise 18 months of free security updates, and a biannual release cycle.

People prefer Ubuntu as the choice of operating system despite the presence of powerful ones like Suse, due to the sheer fact that Ubuntu is lighter, boots faster and works much better and quicker than other Linux flavours.

You can read user reviews about Kubuntu and find more Kubuntu versus Ubuntu analysis here:

Changing Konqueror Profile back to default KDE profiles?

If you wish to move from Konqueror to default KDE profiles, you just need to type in:

sudo rm -r /usr/share/kubuntu-default-settings/kde-profile/default/share/apps/konqueror

sudo cp /usr/share/apps/konqueror/konqueror-orig.rc /usr/share/apps/konqueror/konqueror.rc

You can also use the command: sudo rm -r /usr/share/kubuntu-default-settings/kde-profile/default/share/mimelnk/application/ – to enable Konqueror to open tar and zip files

RAM and Memory Requirements

As per beta testing results and experience of current users, Ubuntu requires a little higher RAM to work well (with Gnome running), while Kubuntu needs relatively lesser RAM to work satisfactorily.

Graphical User Interface (GUI)

Ubuntu and Kubuntu have different GUIs, as Ubuntu uses Gnome and Kubuntu uses KDE. As a matter of fact, the underlying implementation of most of the *Buntu OS is the same, but the GUI varies from one distribution to other. You can learn more about various types of Linux distributions here.

Even when you consider other desktop environments like Xubuntu, the GUI is the only major variation, while most of the operating system doesn’t change.

KDE versus Kubuntu

Instead of going with Kubuntu, you can do everything with KDE, but KDE on Ubuntu is flaky. It may not work well on many occasions and give you problems in auto update, and several other functionalities. On the contrary, the most recent stable KDE release comes preinstalled in Kubuntu, and there’s nothing more that you need to do to make it work well on Ubuntu.

KDE Vs GNOME

Tags

Both KDE and GNOME are the most popular and complete desktop environments for GNU/Linux and UNIX computers. But sometimes it becomes difficult for users to decide whether to use KDE or GNOME as their desktop environment.

gnomekde

We will not only discuss the similarities between KDE and GNOME but also the different features and services available in both of these desktop environments.

Hardware Requirement: The hardware requirements for KDE is little higher as compare to GNOME, but minimum requirement of RAM for both of the Desktop Environments is 512 MB, and the processor should be at least 1Ghz. These desktops will run on older hardware and with low RAM and Processor but the speed will be slower then you would expect from a Desktop PC’s

user interface.

KDE 4.2.0

Multiple Desktops: Both KDE and GNOME offer multiple desktops or workspaces, that allows you to have more space available to run your applications, like you can run command terminals, browsers, office applications and other softwares in different virtual desktops or workspaces for each of them, you can switch between these workspaces or desktops easily by clicking on a thumbnail on the panel.

GNOME

Usability and Customization: Both KDE and GNOME are easy to use and offer many customizable features, the user can easily change the location of program menus and panel, user can customize sound, wallpapers, icons and other elements of the file manager. KDE has an advantage that it has a start-up wizard which allows you to customize the settings of your desktop like graphics and icons.

GNOME EDITOR

Tags

Gnome Partition Editor

The GParted application is the GNOME partition editor for creating, reorganizing, and deleting disk partitions.

A disk device can be subdivided into one or more partitions. The GParted application enables you to change the partition organization on a disk device while preserving the contents of the partitions.

With GParted you can accomplish the following tasks:

* Create a partition table on a disk device.

* Enable and disable partition flags such as boot and hidden.

* Perform actions with partitions such as:

o create or delete

o resize or move

o check

o label

o copy and paste

GParted uses GNU libparted to detect and manipulate devices and partition tables. Several optional file system tools provide support for file systems not included in libparted.

GParted is developed on GNU/Linux. It can be used on other operating systems, such as Windows, by booting from media containing GParted Live.

GParted is free and open source software available under the terms of the GNU General Public License

Follow

Get every new post delivered to your Inbox.