Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Ubuntu Unleashed 2010 Edition presents comprehensive coverage of the

popular Ubuntu Linux distribution. Windows users, Mac users, and Linux enthusiasts have been increasingly turning to Ubuntu for a user-friendly, easy-to-use Linux distribution.

This book provides detailed information on installing, using, and administering Ubuntu. You will learn how to set up a workstation or a server, and you will find complete details on Ubuntu’s easy-to-use desktop and productivity software.

Ubuntu Unleashed 2010 Edition includes a range of coverage: From the software you need in your everyday work, such as the OpenOffice.org productivity suite, to how to configure your Linux desktop to run smoothly using multiple printers, shell scripts, and more.

For the hardcore Linux enthusiast, there is complete coverage of the

X Window system, Linux programming, web server administration, and network administration.

Ubuntu 9.10 on DVD

DVD includes the full Ubuntu 9.10 distribution for Intel x86 computers as well as the complete OpenOffice.org office suite and hundreds of additional programs and utilities.

Free Upgrade!

Purchase this book anytime in 2010 and receive a free Ubuntu 10.04 Upgrade Kit by mail (U.S. or Canada only) after Ubuntu 10.04 is released.

See inside back cover for details.

à Install and configure Ubuntu

à Get all your system’s devices and peripherals up and running

à Configure and use the X Window System

à Manage Linux services and users

à Run a printer server

à Connect to a local network and the Internet

à Set up and administer a web server with Apache

à Secure your machine and your network from intruders

à Learn shell scripting

à Share files with Windows users using Samba

à Get productive with OpenOffice.org

à Play games on Linux

à Use Linux multimedia programs

à Create and maintain a MySQL database

à Configure a firewall

à Set up an FTP server

à Use Ubuntu’s development and programming tools

à Tune your Ubuntu system for maximum performance

à Learn to manage and compile the kernel and modules

Read More
Posted by JavaBooks on Tuesday, December 29, 2009
0 comments
categories: , , , | edit post

Linux Timesaving Technique For Dummies provides experienced and first-time Linux users with concise, step-by-step, timesaving,powerful techniques to help them perform tasks efficiently. The techniques, broken down into task-oriented topic areas, are delivered without technical jargon and in the For Dummies friendly, easy-to-understand style. The book corresponds with the latest releases of the Fedora Core, SUSE, and Mandrake distributions. It has over 60 techniques that help users perform end-user, system administration, and development tasks in many areas, including the following:

Desktop File system, RPM, Databases, Internet Server, Email Server, Networking, System monitoring, Security, Data Back-up and recovery, Programming (e.g., C and PHP), and Linux Kernel.

From the Back Cover
Fine-tune Linux for peak performance and usability!

Over 60 techniques that help you save time by…

  • Controlling time-consuming tasks
  • Improving your system security
  • Getting the most from your file system
  • Automating repetitive tasks
  • Tweaking the kernel on your Linux system
  • Networking like a professional

The Dummies Way

  • Tricks and tips for working smarter
  • Explanations in plain English
  • "Get in, get out" information
  • Contents arranged by technique
  • Advice that goes beyond the basics
  • A dash of humor and fun

Read More
Posted by JavaBooks on Tuesday, August 11, 2009
0 comments
categories: , , , | edit post

With Unix, 4th Edition: Visual QuickStart Guide, readers can start from the beginning to get a tour of the Unix operating system, or look up specific tasks to learn just what they need to know. This task-based, visual reference guide uses step-by-step instructions and plenty of screenshots, and includes three years worth of new material based on the latest Unix developments. This reference guide details all Unix commands and options along with tips that put those commands in context. Leading Unix authorities Deborah S. Ray and Eric J. Ray leverage their expertise as technical writers and working in the industry (Sun Microsystems) as they take readers step-by-step through the most common Unix commands and options.

About the Author
Deborah S. Ray and Eric J. Ray are syndicated columnists and consultants. In addition, Deborah publishes TECHWR-L, a Web site for technical writers, and Eric is a senior technical writer for Sun Microsystems. The authors of many books on computers and computing systems, the Rays have received several awards from the Society of Technical Communications, including an International Distinguished Technical Communication award and an International Excellence award.

Read More
Posted by JavaBooks on Wednesday, August 5, 2009
0 comments
categories: , , , | edit post

Today I was poking around INTERNET to find out what is the quickest way to find out which shell is in you are. Did a reasonable search and found some better ways

$ env|grep SHELL

$echo $SHELL ( But most of the time we dont know whether this env variable exists or not )

$echo $0 (zero) [i found this is the simplest one]

Before doing this INTERNET search i did some manual page search and where i got why can't i colorfulise my man pages and got MOST package

this is very simple in debain based linux like ubuntu

$sudo apt-get install most

and Then

$export MANPAGER="/usr/bin/most"

After the above two steps i did
$ man man -- awsome i can see all my colors

you can export MANPGER variable permanantly by adding export MANPAGER="/usr/bin/most" to /etc/bash.bashrc file.

If you dont have root access you can edit your ~/.bashrc file and export it.

After exporting MANPGER through any one of the above methods dont forget to source your profile scripts

#soruce /etc/profile (If you edit /etc/bash.bashrc)

Or

$ source ~/.bashrc (If you edit /home//.bashrc)

I love to do #man source :)

Note: I have tested this in ubuntu. If you are using Redhat/Fedora/CentOs use yum to get MOST package.

Read More
Posted by JavaBooks on Saturday, July 25, 2009

Linux now offers an exceptionally robust environment for driver development: with today’s kernels, what once required years of development time can be accomplished in days. In this practical, example-driven book, one of the world’s most experienced Linux driver developers systematically demonstrates how to develop reliable Linux drivers for virtually any device. Essential Linux Device Drivers is for any programmer with a working knowledge of operating systems and C, including programmers who have never written drivers before. Sreekrishnan Venkateswaran focuses on the essentials, bringing together all the concepts and techniques you need, while avoiding topics that only matter in highly specialized situations. Venkateswaran begins by reviewing the Linux 2.6 kernel capabilities that are most relevant to driver developers. He introduces simple device classes; then turns to serial buses such as I2C and SPI; external buses such as PCMCIA, PCI, and USB; video, audio, block, network, and wireless device drivers; user-space drivers; and drivers for embedded Linux–one of today’s fastest growing areas of Linux development. For each, Venkateswaran explains the technology, inspects relevant kernel source files, and walks through developing a complete example.

• Addresses drivers discussed in no other book, including drivers for I2C, video, sound, PCMCIA, and different types of flash memory

• Demystifies essential kernel services and facilities, including kernel threads and helper interfaces

• Teaches polling, asynchronous notification, and I/O control

• Introduces the Inter-Integrated Circuit Protocol for embedded Linux drivers

• Covers multimedia device drivers using the Linux-Video subsystem and Linux-Audio framework

• Shows how Linux implements support for wireless technologies such as Bluetooth, Infrared, WiFi, and cellular networking

• Describes the entire driver development lifecycle, through debugging and maintenance

• Includes reference appendixes covering Linux assembly, BIOS calls, and Seq files

Read More
Posted by JavaBooks on Thursday, July 23, 2009

RedCar is a TextMate like editor for Linux which supports almost all scripting and programming languages. It is designed to be compatible with Textmate bundles (a work in progress) and is written almost entirely in Ruby - with some Vala thrown in for speed. Redcar is still in its infancy so please be gentle.

Screen shots:





How to get Redcar? Don't worry Here we go.. (This is for Ubuntu 9.04)

Follow bellow steps or Go Here! for detailed explanation:

sudo apt-get install ruby ruby1.8-dev rubygems1.8 libhttp-access2-ruby1.8 rubygems1.8 rake
echo "export PATH=/var/lib/gems/1.8/bin:\$PATH" >> ~/.bashrc
source . ~/.bashrc

cho "deb http://franz.hob-bruneck.info/downloads/ jaunty/" >> /etc/apt/sources.list
sudo apt-get update
sudo apt-get install ruby-gnome2 build-essential libonig2 libonig-dev
libgtk2.0-dev libglib2.0-dev libgee0 libgee-dev libgtksourceview2.0-dev
libxul-dev xvfb libdbus-ruby libwebkit-dev libwebkit-1.0-1

wget redcareditor.com/stuff/missing_x64_headers/rbgdkconversions.h
wget redcareditor.com/stuff/missing_x64_headers/rbgtkconversions.h
sudo cp rbgdkconversions.h /usr/lib/ruby/1.8/i486-linux/
sudo cp rbgtkconversions.h /usr/lib/ruby/1.8/i486-linux/

sudo gem install oniguruma activesupport rspec cucumber hoe open4 zerenity

git clone git://github.com/danlucraft/redcar.git

git checkout stable

cd redcar/
git submodule init
git submodule update

rake build

./bin/redcar /optional/path/to/my/project

Read More
Posted by JavaBooks on Wednesday, July 22, 2009
0 comments
categories: , , , | edit post

As the ultimate resource on the basics of the Linux desktops, servers, and programming tools, this book is written by the ultimate author on all things Linux. This transition resource is ideal if you are making the move from Windows or Macintosh to using Linux as your desktop system, and explains the Linux technology, offers detailed installation instructions, and includes step-by-step descriptions of key desktop and server components. You’ll relish the in-depth descriptions that will help you choose the best Linux distribution to suit your needs.

This Book
covers Ubuntu, Fedora, OpenSuSe, Debain and other Top 13 Linux Distributions.

Read More
Posted by JavaBooks on Tuesday, July 21, 2009
0 comments
categories: , , , | edit post

The everyday Linux user can easily get overwhelmed by the complexity of the new software that exists when creating an Ubuntu system. This book covers the basics of creating a new system from scratch and explains what software is installed. You’ll take a tour of installing the Ubuntu Linux distribution system in most environments, including nontraditional situations such as dual-boot and text-based installations. Plus, clear explanations of each of the installed applications show you how to get the most out of each application, rather than simply using them as they exist.

Grab it! Here!

Read More
Posted by JavaBooks on
0 comments
categories: , , , | edit post

Ext4, the next generation of Linux's Ext3 filesystem, is now available in the latest Ubuntu 9.04 installer images. Ext4 was officially declared stable in version 2.6.28 of the Linux kernel, which was released last month.

Ext4 is designed to provide better performance and increase reliability. It also increases the maximum filesystem size to one exabyte and reduces the amount of time that is required to perform a fsck operation.

Linux hardware site Phoronix has released benchmarks based on extensive Ext4 performance testing that was conducted with a solid-state drive. The most impressive results can be seen in the IOzone test, which measures write performance for a large file. In this test, Ext4 annihilated the competition and significantly outperformed XFS, JFS, ReiserFS, and Ext3. The new filesystem also outpaced its peers in the Intel IOMeter File Server Access Pattern Test.

Read More
Posted by JavaBooks on

Here are the list of useful vim commands.

Search
/word Search “word” from top to bottom
?word Search “word” from bottom to top
/jo[ha]n Search “john” or “joan”
/\< the Search “the”, “theatre” or “then”
/the\> Search “the” or “breathe”
/\<> Search “the”
/\< ….\> Search all words of 4 letters
/\/ Search “fred” but not “alfred” or “frederick”
/fred\|joe Search “fred” or “joe”
/\<\d\d\d\d\> Search exactly 4 digits
/^\n\{3} Find 3 empty lines
:bufdo /searchstr/ Search in all open files


Replace
:%s/old/new/g Replace all occurences of “old” by “new” in file
:%s/old/new/gw Replace all occurences with confirmation
:2,35s/old/new/g Replace all occurences between lines 2 and 35
:5,$s/old/new/g Replace all occurences from line 5 to EOF
:%s/^/hello/g Replace the begining of each line by “hello”
:%s/$/Harry/g Replace the end of each line by “Harry”
:%s/onward/forward/gi Replace “onward” by “forward” , case unsensitive
:%s/ *$//g Delete all white spaces
:g/string/d Delete all lines containing “string”
:v/string/d Delete all lines containing which didn't contain “string”
:s/Bill/Steve/ Replace the first occurence of “Bill” by “Steve” in current line
:s/Bill/Steve/g Replace “Bill” by “Steve” in current line
:%s/Bill/Steve/g Replace “Bill” by “Steve” in all the file
:%s/\r//g Delete DOS carriage returns (^M)
:%s/\r/\r/g Transform DOS carriage returns in returns
:%s#<[^>]\+>##g Delete HTML tags but keeps text
:%s/^\(.*\)\n\1$/\1/ Delete lines which appears twice
Ctrl+a Increment number under the cursor
Ctrl+x Decrement number under cursor
ggVGg? Change text to Rot13


Case
Vu Lowercase line
VU Uppercase line
g~~ Invert case
vEU Switch word to uppercase
vE~ Modify word case
ggguG Set all text to lowercase
:set ignorecase Ignore case in searches
:set smartcase Ignore case in searches excepted if an uppercase letter is used
:%s/\<./\u&/g Sets first letter of each word to uppercase
:%s/\<./\l&/g Sets first letter of each word to lowercase
:%s/.*/\u& Sets first letter of each line to uppercase
:%s/.*/\l& Sets first letter of each line to lowercase


Read/Write files
:1,10 w outfile Saves lines 1 to 10 in outfile
:1,10 w >> outfile Appends lines 1 to 10 to outfile
:r infile Insert the content of infile
:23r infile Insert the content of infile under line 23

File explorer
:e . Open integrated file explorer
:Sex Split window and open integrated file explorer
:browse e Graphical file explorer
:ls List buffers
:cd .. Move to parent directory
:args List files
:args *.php Open file list
:grep expression *.php Returns a list of .php files contening expression
gf Open file name under cursor

Interact with Unix
:!pwd Execute the “pwd” unix command, then returns to Vi
!!pwd Execute the “pwd” unix command and insert output in file
:sh Temporary returns to Unix
$exit Retourns to Vi



Alignment
:%!fmt Align all lines
!}fmt Align all lines at the current position
5!!fmt Align the next 5 lines


Tabs
:tabnew Creates a new tab
gt Show next tab
:tabfirst Show first tab
:tablast Show last tab
:tabm n(position) Rearrange tabs
:tabdo %s/foo/bar/g Execute a command in all tabs
:tab ball Puts all open files in tabs

Window spliting
:e filename Edit filename in current window
:split filename Split the window and open filename
ctrl-w up arrow Puts cursor in top window
ctrl-w ctrl-w Puts cursor in next window
ctrl-w_ Maximise current window
ctrl-w= Gives the same size to all windows
10 ctrl-w+ Add 10 lines to current window
:vsplit file Split window vertically
:sview file Same as :split in readonly mode
:hide Close current window
:only Close all windows, excepted current
:b 2 Open #2 in this window

Auto-completion
Ctrl+n Ctrl+p (in insert mode) Complete word
Ctrl+x Ctrl+l Complete line
:set dictionary=dict Define dict as a dictionnary
Ctrl+x Ctrl+k Complete with dictionnary
Marks
mk Marks current position as k
‘k Moves cursor to mark k
d’k Delete all until mark k


Abbreviations
:ab mail mail@provider.org Define mail as abbreviation of mail@provider.org
Text indent
:set autoindent Turn on auto-indent
:set smartindent Turn on intelligent auto-indent
:set shiftwidth=4 Defines 4 spaces as indent size
ctrl-t, ctrl-d Indent/un-indent in insert mode
>> Indent
<< Un-indent


Syntax highlighting
:syntax on Turn on syntax highlighting
:syntax off Turn off syntax highlighting
:set syntax=perl Force syntax highlighting

Read More
Posted by JavaBooks on

If you want to learn about linux think about Ubuntu. Here is the Ubuntu Hacks and Tips books for the learners.

Read More
Posted by JavaBooks on

Visits

Label Cloud

About Me

Followers