rss
email
twitter
facebook

Monday

Easiest way to Install Real Player in ubuntu

1) Download the version of RealPlayer thats prepackaged for Xandros Linux. Its a .deb package that works under Hoary.

Donwload Package HERE

2) Uncompress the .tar.zp2 file to get realplay_10.0.2-1_i386.deb

3) Open a command line shell and cd into the directory that you saved the deb file, (default is ~/Desktop

4) Use Sudo to install the file: sudo dpkg -i realplay_10.0.2-1_i386.deb

Unfortunately as of this writing, Real Player conflicts with Enlightened Sound Daemon. You'll need to use gconf and set /desktop/gnome/sound/enable_esd to false (uncheck its box) to disable it. Reboot, and you should be all set.

Saturday

How to browse files/folders as root user in Nautilus?

1. Read General Notes
2. To install File Browser (Root)
-sudo gedit /usr/share/applications/Nautilus-root.desktop

-Insert the following lines into the new file

[Desktop Entry]
Name=File Browser (Root)
Comment=Browse the filesystem with the file manager
Exec=gksudo "nautilus --browser %U"
Icon=file-manager
Terminal=false
Type=Application
Categories=Application;System;

-Save the edited file (sample)
-Read How to refresh GNOME panel?
3. To browse files/folders as root user in Nautilus
-Applications -> System Tools -> File Browser (Root)

Friday

Howto Set Flickr images as Ubuntu desktop wallpaper

Webilder delivers stunning wallpapers to your Linux desktop, directly from Flickr and Webshots. You choose what keywords (tags) to watch for, and photos are automatically downloaded to your computer. Webilder can also change the wallpaper every few minutes.

Webilder Features

* download flickr photos that match tags (for example: beach,party)

* download photos from flickr users of your choice.

* download most interesting photos from flickr.

* download amazing daily proshots from Webshots (requires Webshots account).

* automatically download new photos for you.

* change your wallpaper every few minutes.

* import webshots collections (wbz or wbc formats).

Install Webilder in Ubuntu

First you need to edit the /etc/apt/sources.list file

sudo gedit /etc/apt/sources.list

and add the following source list which is suitable for you save the file and exit

For Ubuntu Feisty (i386, amd64, powerpc of sparc) Users

deb http://debian.websterwood.com/ feisty main
deb-src http://debian.websterwood.com/ feisty main

For Ubuntu Edgy (i386, amd64, powerpc of sparc) Users

deb http://debian.websterwood.com/ edgy main
deb-src http://debian.websterwood.com/ edgy main

For Ubuntu Dapper (i386, amd64, powerpc or sparc) Users

deb http://debian.websterwood.com/ dapper main
deb-src http://debian.websterwood.com/ dapper main

Now you need to update the source list using the following command

sudo apt-get update

Install Webilder using the following command

If you are using GNOME Desktop use the following command

sudo apt-get install webilder webilder-gnome

If you are using KDE Desktop use the following command

sudo apt-get install webilder webilder-kde

This will complete the installation process

Adding Webilder to your Desktop Panel

For GNOME Users

Right-click on the GNOME panel you should see the following screen here you need to choose "Add to Panel"

Once you choose Add to Panel option you should see the following screen here under utility you need select "Webilder Webshots Applet" and click on add

Now you should see one small camera icon marked with Red added to your desktop panel

For KDE Users

From the graphics menu, start KWebilder. Go to the preferences Window, to the Advanced Tab, and select KDE wallpapers settings


Now you need to download photos from flicker for this right click on Webilder on your desktop panel and select "Download Photos" option you can see this in the following screen

Downloading Photos are in progress




Once dowload finished your desktop will start refreshing wallpapers by default 5 min if you want to change this option you need to right click on Webilder on your desktop panel and select "Preferences"



You should see the following option here you can select what time your wallpaper need to be refresh or photos download option



Some of the Flicker Wallpapers from my Ubuntu Desktop

Beryl Desktop Wall Effect

Tuesday

My Latest Ubuntu System

Saturday

Dual-Booting Windows XP/Vista And Ubuntu 7.04

---------------------------------------------------------------------------

In this tutorial I will teach you how to dual-boot between Windows XP/Vista and Ubuntu.

This tutorial will be split up into two parts:

one for people who have no operating system installed.
two for people who have Windows XP/Vista installed and don't want to re-install Windows.
lo
Fresh start

In this part I will go though every step from installing Windows and Ubuntu to creating the dual-boot.
Windows XP + Ubuntu 7.04

What you will need:

* Windows XP Boot Disk
* Ubuntu 7.04 Boot Disk

Make sure your computer is set to boot from a CD.

To check this go into your BIOS. From there go to "Boot" and go to "Boot Priorities". Make sure CD-ROM is set to boot first and you're all set.
Installing Windows XP

Now I am going go over how to install Windows XP step-by-step.

1. Make sure your XP boot up disk is in the CD-ROM and start your PC.

2. A blue MS-DOS screen will load up first asking you if you want to install drivers or run an Automated System Recovery. Just wait for them to go by and then Windows will begin to load files needed to install XP.




Windows XP requires at least 1.5 gigabytes of hard drive space.
1000 megabytes (MB)= 1 gigabyte (GB). So when entering XP's partition make sure to write it as 90000 instead of 90, because it reads in megabytes, not gigabytes.












Congrats! You have fully installed Windows XP on your system. Activate windows if you want or do anything thing else to it. When ready go on to the next part to install Ubuntu and get the dual-boot up.

Insert the Ubuntu 7.04 boot disk and start up your computer. The boot screen will come up next. Highlight the Start or install Ubuntu choice and press Enter. Be patient while the loader goes back and forth. This may take a few minutes


Ubuntu Installation


After that Ubuntu will load up and you will be presented with a very bare screen. Double click on the Install icon to begin setting up Ubuntu.



After you double-click on the install icon it will first ask you to pick your preferred language. Choose one and click Forward




The next screen will ask you to pick a location near you for time purposes.




Once again it is time to partition your hard drive. From this screen make sure that Manual is checked and click Forward.




Now you should see a screen entitled Prepare partitions. We are now going to create the partition in which Ubuntu will run on plus a file called "SWAP" to act as virtual memory.


First let's create the SWAP file. Click on New partition. The SWAP file won't need a whole lot of space to run, so just give it 512 megabytes which will be more than enough for it to run. Now just change the Use as: option to SWAP while keeping the type of partition as Primary and the location as Beginning. Click OK to add it.


Now make sure free space is highlighted and click New partition again. This time we will add the hard drive space for Ubuntu to use. Give it what ever amount of space you would like depending on your hard drive space. Just remember to give it at least 2 GB though I recommend you give it much more. Now change the Use as: to ext3 and keep the rest of the settings the same. Click OK to add




Next right-click on the partition ext3 and click edit. From here change the mount point to a forward slash / and click OK



You should see a screen similar to this one, but with the partition NTFS on it. Last thing to do before proceeding is check the box next to ext3 to format and then click Forward.



You should see a screen similar to this one, but with the partition NTFS on it. Last thing to do before proceeding is check the box next to ext3 to format and then click Forward.




The next screen is going to ask you if you want to import any accounts you may have on Windows XP. If you want to do it, if not just proceed.


Time to enter your personal information. Just as a note: your login has to be all lowercase letters.








Well congratulations you have just fully installed both Windows XP and Ubuntu 7.04 to run on the same system under a dual-boot! I hope you enjoyed reading this as I have had a blast writing it.

--------------------------------------------------------------------------------------
For Installation of UBUNTU after Installaling Vista Follow Above Procedure as It is....
For Dual Boot with Vista/Ubuntu you need:

* Windows Vista Boot Disk
* Ubuntu 7.04 Boot Disk

Make sure your computer is set to boot from a CD. or F12 on blue screen and set default boot CD option selected.

To check this go into your BIOS. From there go to "Boot" and go to "Boot Priorities". Make sure CD-ROM is set to boot first and you're all set.
Now I am going go over how to install Windows Vista step-by-step.

1. Make sure your Vista boot up disk is in the CD-ROM and start your PC.

2. When it begins to boot you should see a black screen with a loading bar. This may take a few minutes so just let it load everything.


Please go thr each individaul screen and install vista on your machie,, (If you really dont love your machine---hahaha)







The following screen will now ask you how you want to install. As you booted from the disk the top option is likely shaded out. So just click on Custom (advanced) to continue.






You have succesfully install Vista on your machine
now for installation of ubuntu on second part please follow the above installation procedure as on XP installation.

Friday

missing parport 0 on Ubuntu

For parallel port on Ubuntu we found some good Fixes
listed as below

parport is missing on your /dev/partport0
then please follow this
on terminal ;
sudo mknod -m 666 /dev/parport0 c 99 0
ur password:
then it should be avialble for use

or

For Edgy or Dapper please remove the lp module from /etc/modules and reboot.
on terminal;

sudo gedit /etc/modules
and remove lp save the file.

This lets cupsys load both the lp and ppdev kernel module and creates /dev/parport0.

Run lpinfo -v from a terminal after rebooting, your parallel printer should be autodetected without problems now.

Wednesday

Creative WebCam Notebook setup on Ubuntu

From your terminal type
sudo gedit /etc/apt/sources.list
Add to the bottom of the list
deb http://blognux.free.fr/debian unstable main
Save and Close gedit
Install EasyCam
From your terminal type in

sudo apt-get update

Once that is finished type
sudo apt-get install easycam
Once that is finished

sudo apt-get install camorama

From your terminal type in

sudo easycam

Select the camera from the list and continue
Using your camera

Go to Applications >> Graphics >> Camorama WebCam Viewer

Friday

Upgrade Ubuntu 6.10 to 7.04

Ubuntu 7.04 is the current stable version of the Ubuntu . The common name given to this release from the time of its early development was “Feisty Fawn”.

Before Upgrading You need to remember the following point

Take comple backup of your system before upgrading .Now you need to upgraded Ubuntu Edgy Machine to Ubuntu Feisty.

We can Use Two methods to upgrade Ubuntu Edgy to Ubuntu Feisty

1) Using GUI

2) Using apt-get

Upgrading Ubuntu Edgy to Ubuntu Feisty

f you want to upgrade using GUI use the following command

gksu “update-manager -c ”

“-c” switch tells it to look for upgrades at all.

You should see the following screen here Now you can see 7.04 is available for upgrade click on upgrade



gpg:Go ahead and type your message …

Press Ctrl+C and then start the install process again.

Now you should see the following screen downloading upgrade tool

You need to enter root password and click ok

Preparing the upgrade in progress

You need to confirm the upgrade process by clicking “Start Upgrade”

Download in progress for all the required packages for Upgrade

Installation in progress

If you click on Terminal to see detailed installation in progress

Cleaning Up is in Progress

You need to restart the system to complete the Upgrade by clicking “Restart Now”

Method 2 - Using apt-get

Edit your /etc/apt/sources.list as root. Change every occurrence of edgy to feisty.

Use any prefered editor. If you have a CD-ROM line in your file, then remove it.

sudo vi /etc/apt/sources.list

or

use the following Simple command

sudo sed -e ’s/\edgy/ feisty/g’ -i /etc/apt/sources.list

Now you need to update the source list using the following command

sudo apt-get update

Upgrade using the following command

sudo apt-get dist-upgrade

Double check your process was finished properly using the following commd

sudo apt-get -f install

sudo dpkg --configure -a

Now you need to Reboot your machine to take your new ubuntu 7.04 installation to effect all changes.

Testing Your Upgrade

You can check the ubuntu version installed using the following command

sudo lsb_release -a

Output Looks like below

Distributor ID: Ubuntu
Description: Ubuntu feisty (development branch)
Release: 7.04
Codename: feisty

or

Just type the following command in your terminal

cat /etc/issue

Output Lokks like below

Ubuntu feisty (development branch) \n \l



Avant Window Navigator Installation

Installing:

Repository:

NOTE: Repository is for Feisty 32-bit ONLY.

If you are using Feisty 32-bit, this is the recommended method of installation.

Just add this to your /etc/apt/sources.list:
Code:
deb http://download.tuxfamily.org/syzygy42 feisty avant-window-navigator
deb-src http://download.tuxfamily.org/syzygy42 feisty avant-window-navigator
Then do this in a terminal:
Code:
wget http://download.tuxfamily.org/syzygy42/8434D43A.gpg
sudo apt-key add 8434D43A.gpg
rm 8434D43A.gpg
sudo apt-get update
Available packages:
avant-window-navigator-svn - the latest development version of AWN.
affinity - the latest stable version of affinity.
affinity-svn - the latest development version of affinity.
All -svn packages are updated daily.

NOTE: The Affinity in the repo (both stable and svn) only supports tracker for its search backend. If you prefer to use beagle, you will need to follow the instructions below to compile Affinity from source.
NOTE: There is no stable AWN currently because the only stable release of AWN is actually worse than SVN. Use the SVN build for now, and when the next stable version is available, I will build a package for it.

If anyone wants to create and maintain packages for other Ubuntu versions, I will gladly host them as well, and I can provide scripts for building the svn versions (almost) automatically.

Compiling from source:
If you're not running Feisty, you'll have to compile it yourself.
NOTE: Keep the source directory, you'll need it if you ever want to uninstall.

Avant-Window-Navigator (stable):
No instructions for the stable version, as it requires a patched libwnck and is not as stable/functional as the svn version. Use svn for now, when the next stable release comes out I'll post instructions here.

Avant-Window-Navigator (svn):
First install the dependencies:
Code:
sudo apt-get install build-essential autotools-dev libxdamage-dev libxcomposite-dev libgnome2-common libgnome2-dev libgnome-desktop-dev libgnome-vfs-dev libgtk2.0-dev libwnck-dev libgconf2-dev libglib2.0-dev libdbus-glib-1-dev libgnomevfs2-0 libgnome-desktop-2 libgnome2-0 libwnck-common python-gtk2 python-gconf subversion gnome-common
Now, open a terminal in the directory you want to build AWN in (I use ~/Installs/avant/) and do this:
Code:
svn checkout http://avant-window-navigator.googlecode.com/svn/trunk/ avant-window-navigator
cd avant-window-navigator
./autogen.sh
make
sudo make install
Affinity (stable):
First install the dependencies:
Code:
sudo apt-get install build-essential autotools-dev libgnome-vfs-dev libgtk2.0-dev  libgnome2-dev libgnome-desktop-dev libgnomevfs2-0 libgtk2.0-0 libgnome2-0 libgnome-desktop-2 libtrackerclient-dev libbeagle-dev
Important: You will also need to install and configure Tracker or/and Beagle for Affinity to work properly.

Now, open a terminal in the directory you want to build Affinity in (I use ~/Installs/affinity/) and do this:
Code:
wget http://affinity-search.googlecode.com/files/affinity-0.1.tar.gz
tar -xzf affinity-0.1.tar.gz
cd affinity-0.1
./configure
make
sudo make install
Affinity (svn):
First install the dependencies:
Code:
sudo apt-get install build-essential autotools-dev libgnome-vfs-dev libgtk2.0-dev  libgnome2-dev libgnome-desktop-dev libgnomevfs2-0 libgtk2.0-0 libgnome2-0 libgnome-desktop-2 libpanel-applet2-dev libtrackerclient-dev libbeagle-dev subversion
Important: You will also need to install and configure Tracker or/and Beagle for Affinity to work properly.

Now, open a terminal in the directory you want to build Affinity in (I use ~/Installs/affinity/) and do this:
Code:
svn checkout http://affinity-search.googlecode.com/svn/trunk/ affinity-search
cd affinity-search
./autogen.sh
make
sudo make install

Uninstalling:
I don't know why you would ever want to remove these awesome pieces of software, but in case you do, here's how.

Repository:

Just use synaptic or apt-get to remove the packages you installed.

Here's an apt-get line to remove all:
Code:
sudo apt-get remove avant-window-navigator avant-window-navigator-svn affinity-tracker affinity-beagle affinity-svn
Source:

Just open a terminal in the source directory (it should have a file called Makefile in it) you installed from and do
Code:
sudo make uninstall

Thursday

UBUNTU HELP

If you have experience with Linux but are new to Ubuntu

If you're already familiar with Linux and just wonder why Ubuntu/Kubuntu uses sudo instead of root, this page isn't for you. You're really looking for https://help.ubuntu.com/community/RootSudo. It has a full explanation of why Ubuntu uses sudo instead of root and what the advantages and disadvantages of that choice are.

If you are new to Linux and Ubuntu

This page is for people who are new to Linux and Ubuntu/Kubuntu and want to know what the deal is with file permissions.

What you may be used to

My guess is you're probably a typical ex-Windows user (as I was), used to running as Administrator and being able to edit pretty much any file you want—even system files, even the registry—at will, very little stopping you... maybe the occasional "read-only" file that you can just make read/write by checking a little box in the Properties dialogue.

You may also never have installed and configured an operating system before (especially if you bought a computer with Windows preinstalled for you).

The need to edit system files

Some in the Linux camp will say "you shouldn't have to edit such-and-such a file." That's simply not true. Most Linux users aren't just user—they have to install and configure stuff themselves (as Dell or HP won't do it for them), usually configuration files and system files that normal users don't have to touch (say, in order to adjust the possible screen resolutions or install new software). You do have to edit these files from time to time. It's in your best security interests to have to go out of your way to edit them, but you should still be able to occasionally edit, move, copy, and rename files that only an Administrator (or Root) can modify.

Frequently edited system files

In Linux, the only files a user can modify are the ones in her home directory. For example, if the user's name is Bronte, the files she can modify live in the /home/bronte/ folder. Anything outside the /home/bronte folder she will not be able to modify. Some of the top files new installers need to modify are:

/etc/fstab (making hard drives and partitions viewable as folders)
/boot/grub/menu.lst (controlling the boot menu that lets you choose which operating system to boot to)
/etc/apt/sources.list (the list of sources from which you can easily install software)
/etc/X11/xorg.conf (screen resolution options, among other things)

and all of these files need Root privileges to modify.

Why do people recommend the command-line?

If you're like a lot of new Linux users, you probably have not yet embraced the command-line. Some people may have told you to "just"
sudo rm -r /usr/share/icons/themename
as if "rm" really means anything to you yet. The fact of the matter is that people recommend command lines because they're easier instructions to give than "Click on that button that looks like a purple arrow. A new dialogue will pop up with three choices. Pick the left-most choice."

Making system-wide changes graphically

Most new Linux users just want to be able to click and drag and drop. So one of these commands should be your new best friends...

If you're using Ubuntu (Gnome), press Alt-F2 and type

gksudo nautilus

If you're using Kubuntu (KDE), press Alt-F2 and type

kdesu konqueror

If you're using Xubuntu (XFCE), press Alt-F2 and type

gksudo thunar

What does sudo do?

What do these commands do? They allow you to generally operate as a regular user but have a temporary window within your user account to operate as Root (just within the Nautilus or Konqueror window you've opened). Once you close the Root window, it's just as if you're a user again. You don't have to log out of user, log in as Root, make changes, log out of Root, and log back in as user again. You can be Root and user simultaneously.

Mac OS X users may be familiar with this security model (Mac uses sudo, believe it or not!). As a Mac user, you operate as a user. When you want to install something, a dialogue box comes up asking for your administrator (sudo/root) password. Once it's installed, you're a user again.

So how does this work? Let's say you want to edit the /etc/apt/sources.list file. If you want to do it command-line style, you'd

sudo nano /etc/apt/sources.list
and then use Nano to edit it. If you do it the graphical way we've been talking about, you'd run the gksudo nautilus or kdesu konqueror command and a file browser window will pop up (with Root/administrator privileges just in that window). You'd browse to /etc/apt and find the file called sources.list. You'd click to open it, edit it, close it, and close the browser window, and it would be done.

Final recommendations

If you find that (especially right after the initial Ubuntu/Kubuntu install) that you're making a lot of changes as Root, create a launcher with the command gksudo nautilus or kdesu konqueror. Then, when you click on that launcher, you can type in your password, make root changes, and then close the window and be a user again.

Install Samba Server on Ubuntu

If you want to share files between your Ubuntu and Windows computers, your best option is to use Samba file sharing.

To install, first open a terminal window and enter the following command:

sudo apt-get install samba smbfs

We've got samba installed, but now we'll need to configure it to make it accessible. Run the following command to open the configuration file, substituting your editor of choice:

sudo gedit /etc/samba/smb.conf

Find this section in the file:

####### Authentication #######

# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba-HOWTO-Collection/ServerType.html
# in the samba-doc package for details.
; security = user

Uncomment the security line, and add another line to make it look like this:

security = user
username map = /etc/samba/smbusers

This will set Samba to use the smbusers file for looking up the user list.

Create a Samba User

There are two steps to creating a user. First we'll run the smbpasswd utility to create a samba password for the user.

sudo smbpasswd -a

Next, we'll add that username to the smbusers file.

sudo gedit /etc/samba/smbusers

Add in the following line, substituting the username with the one you want to give access to. The format is = "". You can use a different samba user name to map to an ubuntu account, but that's not really necessary right now.

= ""

Now you can create samba shares and give access to the users that you listed here.

Sunday

Ubuntu Help Online

Here you can find most od Ubuntu Help files
Help Me

Wednesday

Flash Plugin For 64 bit Ubuntu

Here you can find 64 Bit Ubuntu Flash plugin
Just download it here and you can work on Flash containt
Download now

Tuesday

system76 Ubuntu Laptops

Here is another Computer /Laptops with Ubuntu System
Check it Out Link

Ubuntu Start Up Manager

Ubuntu Start Up Manager download from Here

Sunday

Partimage

Partition Image is a Linux/UNIX utility which saves partitions in many formats (see below) to an image file. The image file can be compressed in the GZIP/BZIP2 formats to save disk space, and split into multiple files to be copied on removable floppies (ZIP for example), ... Partitions can be saved across the network since version 0.6.0.

Download Partimage From here

Basic Linux Commands!!!

Basic Linux Commands!!!

You can also execute multiple commands by separating each one with a ; for example cd newdir; mkdir thatdir ; ls -la will first change directories to the newdir directory, then create a directory called thatdir, then list all the files in long format. You can string together as many commands as you like but caution should be used not to inadvertently do anything harmful.

If you think some thing need to be added to this list let me know.

access - determine whether a file can be accessed

Syntax

access -mode file

alias - define or display aliases

Syntax

alias [alias-name[=string] …]

For more options and how to use check alias man page

bg - run jobs in the background

Syntax

bg [job_id …]

For more options and how to use check bg man page

cal - displays a calendar

Syntax

cal [-smjy13 ] [[ month ] year ]

For more options and how to use check cal man page

cd - change directories

Use cd to change directories. Type cd followed by the name of a directory to access that directory.Keep in mind that you are always in a directory and can navigate to directories hierarchically above or below.

Syntax

cd [-L | -P] [directory]

For more options and how to use check cd man page

chown - change file owner and group

Syntax

chown [OPTION] OWNER[:[GROUP]] FILE

chown [OPTION] :GROUP FILE

chown [OPTION] –reference=RFILE FILE

For more options and how to use check chown man page

chmod - change file access permissions

Syntax

chmod [-r] permissions filenames

Options

r Change the permission on files that are in the subdirectories of the directory that you are currently in. permission Specifies the rights that are being granted. Below is the different rights that you can grant in an alpha numeric format.filenames File or directory that you are associating the rights with Permissions

u - User who owns the file.

g - Group that owns the file.

o - Other.

a - All.

r - Read the file.

w - Write or edit the file.

x - Execute or run the file as a program.

Numeric Permissions:

CHMOD can also to attributed by using Numeric Permissions:

400 read by owner

040 read by group

004 read by anybody (other)

200 write by owner

020 write by group

002 write by anybody

100 execute by owner

010 execute by group

001 execute by anybody

For more options and how to use check chmod man page

cp - Copy files and directories

Syntax

cp [OPTION]… SOURCE DEST
cp [OPTION]… SOURCE… DIRECTORY
cp [OPTION]… –target-directory=DIRECTORY SOURCE…

Options

cp myfile yourfile

Copy the files “myfile” to the file “yourfile” in the current working directory. This command will create the file “yourfile” if it doesn’t exist. It will normally overwrite it without warning if it exists.

cp -i myfile yourfile

With the “-i” option, if the file “yourfile” exists, you will be prompted before it is overwritten.

cp -i /data/myfile

Copy the file “/data/myfile” to the current working directory and name it “myfile”. Prompt before overwriting the file.

cp -dpr srcdir destdir

Copy all files from the directory “srcdir” to the directory “destdir” preserving links (-poption), file attributes (-p option), and copy recursively (-r option). With these options, a directory and all it contents can be copied to another dir

For more options and how to use check cp man page

clear - Clears the terminal screen.

Syntax

clear

For more options and how to use check clear man page

cmp - Compares two files, reporting all discrepancies. Similar to the diff command, though the output format differs.

Syntax

cmp [-clsv] [-i NUM] [–help] [–print-chars] [–ignore-initial=NUM] [–verbose] [–quiet] [–silent] [–version] -I FILE1 [FILE2 [RANGE1 [RANGE2]]]

For more options and how to use check cmp man page

cat - Sends file contents to standard output. This is a way to list the contents of short files to the screen. It works well with piping.

Syntax

cat [OPTION] [FILE]…

For more options and how to use check cat man page

diff - find differences between two files

Syntax

diff [options] from-file to-file

For more options and how to use check diff man page

dmesg - Prints the messages resulting from the most recent system boot.

Syntax

dmesg [ -c ] [ -n level ] [ -s bufsize ]

For more options and how to use check dmesg man page

du - estimate file space usage

Syntax

du [OPTION]… [FILE]…

For more options and how to use check du man page

df - report filesystem disk space usage

Syntax

df [OPTION]… [FILE]…

For more options and how to use check df man page

exit - cause the shell to exit

syntax

exit [n]

For more options and how to use check exit man page

eject - eject removable media

Syntax

eject -h
eject [-vnrsfqp] []
eject [-vn] -d
eject [-vn] -a on|off|1|0 []
eject [-vn] -c slot []
eject [-vn] -t []
eject [-vn] -x []
eject -V

For more options and how to use check eject man page

fuser - identify processes using files or sockets

Syntax

fuser [-a|-s|-c] [-4|-6] [-n space] [-k [-i] [-signal] ] [-muvf] name
fuser -l
fuser -V

For more options and how to use check fuser man page

fsck - check and repair a Linux file system

Syntax

fsck [ -sACVRTNP ] [ -t fstype ] filesys [ … ] [–] [ fsck-options ]

For more options and how to use check fsck man page

fdisk - Partition table manipulator for Linux

Syntax

fdisk [-u] [-b sectorsize] [-C cyls] [-H heads] [-S sects] device
fdisk -l [-u] device …
fdisk -s partition …
fdisk -v

For more options and how to use check fdisk man page

fg - run jobs in the foreground

Syntax

fg [job_id]

For more options and how to use check fg man page

file - determine file type

Syntax

file [ -bciknsvzL ] [ -f namefile ] [ -m magicfiles ] file …
file -C [ -m magicfile ]

For more options and how to use check file man page

find - search for files in a directory hierarchy

Syntax

find [path…] [expression]

For more options and how to use check find man page

finger - Prints descriptions of the specified users.

Syntax

finger [-lmsp ] [user … ] [user@host … ]

For more options and how to use check finger man page

free - Displays the amount of used and free system memory.

Syntax

free [-b | -k | -m] [-o] [-s delay ] [-t] [-V]

For more options and how to use check free man page

ftp - A File Transfer Protocol client

Syntax

ftp hostname or ipaddress

For more options and how to use check ftp man page

grep, egrep, fgrep - print lines matching a pattern

Syntax

grep [options] PATTERN [FILE…]
grep [options] [-e PATTERN | -f FILE] [FILE…]

For more options and how to use check grep, egrep, fgrep man page

head - output the first part of files

Syntax

head [OPTION]… [FILE]…

For more options and how to use check head man page

history - Manipulate the history list

Syntax

history option arg arg …

For more options and how to use check history man page

!!

use the ! option. To automatically re-display the last command you typed at the prompt, type: !! and press enter. Press again to invoke the command. You can also automatically re-display a command you typed earlier by using the ! and the first few letters of the command.

& operator

execute a command as a background process.

Ex:-

#top&

init - process control initialization

Syntax

/sbin/init [ -a ] [ -s ] [ -b ] [ -z xxx ] [ 0123456Ss ]

For more options and how to use check init man page

ispell - ispell, buildhash, munchlist, findaffix, tryaffix, icombine, ijoin - Interactive spelling checking

Syntax

ispell [common-flags] [-M|-N] [-Lcontext] [-V] files
ispell [common-flags] -l
ispell [common-flags] [-f file] [-s] {-a|-A}
ispell [-d file] [-w chars] -c
ispell [-d file] [-w chars] -e[e]
ispell [-d file] -D
ispell -v[v]

For more options and how to use check ispell man page

id - Print real and effective user id (uid) and group id (gid), prints options about the given user, or if no user is specified the process running it

Syntax

id [options]… [username]

For more options and how to use check id man page

kill - terminate a process

Syntax

kill [ -s signal | -p ] [ -a ] [ — ] pid … kill -l [ signal ]

For more options and how to use check kill man page

killall - kill processes by name

Syntax

killall [-Z,–context pattern] [-e,–exact] [-g,–process-group] [-i,–interactive] [-q,–quiet] [-r,–regexp] [-s,–signal signal] [-u,–user user] [-v,–verbose] [-w,–wait] [-I,–ignore-case] [-V,–version] [–] name … killall -l killall -V,–version

For more options and how to use check killall man page

logname - Print current login name

Syntax

logname [OPTION]

For more options and how to use check logname man page

less - Opposite of the more command

Syntax

less -?
less –help
less -V
less –version
less [-[+]aBcCdeEfFgGiIJmMnNqQrRsSuUVwWX]
[-b space] [-h lines] [-j line] [-k keyfile]
[-{oO} logfile] [-p pattern] [-P prompt] [-t tag]
[-T tagsfile] [-x tab,…] [-y lines] [-[z] lines]
[+[+]cmd] [–] [filename]…

For more options and how to use check less man page

logout - to quit using the system

Syntax

logout

lsof - list open files

Syntax

lsof [ -?abChlnNOPRstUvVX ] [ -A A ] [ -c c ] [ +c c ] [ +|-d d ] [ +|-D D ] [ +|-f [cfgGn] ] [ -F [f] ] [ -g [s] ] [ -i [i] ] [ -k k ] [ +|-L [l] ] [ +|-m m ] [ +|-M ] [ -o [o] ] [ -p s ] [ +|-r [t] ] [ -S [t] ] [ -T [t] ] [ -u s ] [ +|-w ] [ -x [fl] ] [ -z [z] ] [ — ] [names]

For more options and how to use check lsof man page

ls - Short listing of directory contents

Syntax

ls [OPTION]… [FILE]…

Options

-a list hidden files

-d list the name of the current directory

-F show directories with a trailing ‘/’

executable files with a trailing ‘*’

-g show group ownership of file in long listing

-i print the inode number of each file

-l long listing giving details about files and directories

-R list all subdirectories encountered

-t sort by time modified instead of name

For more options and how to use check ls man page

ln - make links between files

Syntax

ln [OPTION]… TARGET [LINK_NAME]
ln [OPTION]… TARGET… DIRECTORY
ln [OPTION]… –target-directory=DIRECTORY TARGET…

Option

ln -s test symlink

Creates a symbolic link named symlink that points to the file test Typing “ls -i test symlink” will show the two files are different with different inodes. Typing “ls -l test symlink” will show that symlink points to the file test.

For more options and how to use check ln man page

locate - list files in databases that match a pattern

Syntax

locate [-d path | –database=path] [-e | –existing] [-i | –ignore-case ] [–version] [–help] pattern…

For more options and how to use check locate man page

mail - Launches a simple mail client that permits sending and receiving email messages.

Syntax

mail [OPTION…] [address…]

For more options and how to use check mail man page

man - an interface to the on-line reference manuals

Syntax

man [-c|-w|-tZHT device] [-adhu7V] [-m system[,…]] [-L locale] [-p string] [-M path] [-P pager] [-r prompt] [-S list] [-e extension] [[section] page …] …
man -l [-7] [-tZHT device] [-p string] [-P pager] [-r prompt] file …
man -k [apropos options] regexp …
man -f [whatis options] page …

For more options and how to use check man man page

mkdir - make directories

Syntax

mkdir [OPTION] DIRECTORY

Options

Create the Directory(ies), if they do not already exist.

Mandatory arguments to long options are mandatory for short options too.

-m, mode=MODE set permission mode (as in chmod)

-p, parents no error if existing, make parent directories as needed

-v, verbose print a message for each created directory

-help display this help and exit

-version output version options and exit

For more options and how to use check mkdir man page

mount - mount a file system

Syntax

mount [-lhV]
mount -a [-fFnrsvw] [-t vfstype] [-O optlist]
mount [-fnrsvw] [-o options [,…]] device | dir
mount [-fnrsvw] [-t vfstype] [-o options] device dir

For more options and how to use check mount man page

mv - change the name of a directory

Type mv followed by the current name of a directory and the new name of the directory
Syntax

mv [OPTION]… [-T] SOURCE DEST mv [OPTION]… SOURCE… DIRECTORY mv [OPTION]… -t DIRECTORY SOURCE…

Ex: mv testdir newnamedir

For more options and how to use check mv man page

more - Allows file contents or piped output to be sent to the screen one page at a time.

Syntax

more [-dlfpcsu ] [-num ] [+/ pattern] [+ linenum] [file … ]

For more options and how to use check more man page

nohup - run a command immune to hangups, with output to a non-tty

Syntax

nohup COMMAND [ARG]…
nohup OPTION

For more options and how to use check nohup man page

nice - run a program with modified scheduling priority

Syntax

nice [OPTION] [COMMAND [ARG]…]

For more options and how to use check nice man page

ping - send ICMP ECHO_REQUEST packets to network hosts

Syntax

ping [-Rdfnqrv ] [-c count ] [-i wait ] [-l preload ] [-p pattern ] [-s packetsize ] host

For more options and how to use check ping man page

ps - report process status

Syntax

ps [options]

For more options and how to use check ps man page

pwd - print working directory

will show you the full path to the directory you are currently in. This is very handy to use, especially when performing some of the other commands on this page.

Syntax

pwd [OPTION]

For more options and how to use check pwd man page

passwd - change user password

Syntax

passwd [-f|-s] [name]
passwd [-g] [-r|R] group
passwd [-x max] [-n min] [-w warn] [-i inact] name
passwd {-l|-u|-d|-S|-e} name

For more options and how to use check passwd man page

reboot - Reboots the system (requires root privileges).

Syntax

/sbin/halt [-n] [-w] [-d] [-f] [-i] [-p] [-h] /sbin/reboot [-n] [-w] [-d] [-f] [-i] /sbin/poweroff [-n] [-w] [-d] [-f] [-i] [-h]

For more options and how to use check reboot man page

rmdir - remove empty directories

Syntax

rmdir [OPTION]… DIRECTORY…

For more options and how to use check rmdir man page

rm - remove files or directories

Syntax

rm [OPTION]… FILE…

Option

rm -r - Removes directories and files within the directories recursively.

For more options and how to use check rm man page

renice - alter priority of running processes

Syntax

renice priority [[-p ] pid … ] [[-g ] pgrp … ] [[-u ] user … ]

For more options and how to use check renice man page

shutdown - bring the system down

Syntax

/sbin/shutdown [-t sec] [-arkhncfF] time [warning-message]

For more options and how to use check shutdown man page

sleep - delay for a specified amount of time

Syntax

sleep NUMBER[SUFFIX]…
sleep OPTION

For more options and how to use check sleep man page

sort - sort lines of text files

Syntax

sort [OPTION]… [FILE]…

For more options and how to use check sort man page

split - split a file into pieces

Syntax

split [OPTION] [INPUT [PREFIX]]

For more options and how to use check split man page

slocate - Security Enhanced version of the GNU Locate.

Syntax

slocate [-qi] [-d] [–database= ]
slocate [-i] [-r ] [–regexp=]
slocate [-qv] [-o ] [–output=] slocate [-e ] [-f ] <[-l ] [-c] <[-U ] [-u]>
slocate [-Vh] [–version] [–help]

For more options and how to use check slocate man page

sync - synchronize data on disk with memory

Syntax

sync [–help] [–version]

For more options and how to use check sync man page

su - run a shell with substitute user and group IDs

Syntax

su [OPTION]… [-] [USER [ARG]…]

For more options and how to use check su man page

telnet - user interface to the TELNET protocol

Syntax

telnet [-8] [-E] [-F] [-K] [-L] [-S tos] [-X authtype] [-a] [-c] [-d] [-e escapechar] [-f] [-k realm] [-l user] [-n tracefile] [-r] [-x] [host [port]]

For more options and how to use check telnet man page

top - display top CPU processes

Syntax

top [-] [d delay] [p pid] [q] [c] [C] [S] [s] [i] [n iter] [b]

For more options and how to use check top man page

talk - talk to another user

Syntax

talk person [ttyname]

For more options and how to use check talk man page

tree - list contents of directories in a tree-like format.

Syntax

tree [-adfgilnopqrstuxACDFNS] [-L level [-R]] [-H baseHREF] [-T title] [-o filename] [–nolinks] [-P pattern] [-I pattern] [–inodes] [–device] [–noreport] [–dirsfirst] [–version] [–help] [directory …]

For more options and how to use check tree man page

tr - translate or delete characters

Syntax

tr [OPTION]… SET1 [SET2]

For more options and how to use check tr man page

time - time a simple command or give resource usage

Syntax

time [options] command [arguments…]

For more options and how to use check time man page

tty - print the file name of the terminal connected to standard input

Syntax

tty [OPTION]…

For more options and how to use check tty man page

touch - change file timestamps

Syntax

touch [OPTION]… FILE…

For more options and how to use check touch man page

tail - output the last part of files

Syntax

tail [OPTION]… [FILE]…

For more options and how to use check tail man page

traceroute - print route packets take to network host

Syntax

traceroute [-adnruvAMOQ] [-w wait_time] [-S start_ttl] [-m max_ttl] [-p port] [-q nqueries] [-g gateway] [-t tos] [-s src_addr] [-g router] host [packet size]

For more options and how to use check traceroute man page

uptime - Tell how long the system has been running.

Syntax

uptime
uptime [-V]

For more options and how to use check uptime man page

umount - unmount file systems

Syntax

umount [-hV]
umount -a [-dflnrv] [-t vfstype] [-O options]
umount [-dflnrv] dir | device […]

For more options and how to use check umount man page

umask - get or set the file mode creation mask

Syntax

umask [-S][mask]

For more options and how to use check umask man page

ulimit - Control the resources available to a process started by the shell, on systems that allow such control.

Syntax

ulimit [-acdfHlmnpsStuv] [limit]

For more options and how to use check ulimit man page

uname - print system options

Syntax

uname [OPTION]…

For more options and how to use check uname man page

uniq - report or omit repeated lines

Syntax

uniq [OPTION]… [INPUT [OUTPUT]]

For more options and how to use check uniq man page

vdir - list directory contents

Syntax

vdir [OPTION]… [FILE]…

For more options and how to use check vdir man page

w - Show who is logged on and what they are doing.

Syntax

w - [husfV] [user]

For more options and how to use check w man page

wall - send a message to everybody’s terminal.

Syntax

wall [-n] [ message ]

For more options and how to use check wall man page

who - show who is logged on

Syntax

who [OPTION]… [ FILE | ARG1 ARG2 ]

For more options and how to use check who man page

whoami - print effective userid

Syntax

whoami [OPTION]…

For more options and how to use check whoami man page

watch - execute a program periodically, showing output fullscreen

Syntax

watch [-dhv] [-n ] [–differences[=cumulative]] [–help] [–interval=] [–version]

For more options and how to use check watch man page

whereis - locate the binary, source, and manual page files for a command

Syntax

whereis [ -bmsu ] [ -BMS directory… -f ] filename …

For more options and how to use check whereis man page

wc - print the number of newlines, words, and bytes in files

Syntax

wc [OPTION]… [FILE]…

For more options and how to use check wc man page

xload - system load average display for X

Syntax

Ubuntu Networking

Configuring Network Using Graphical Configuration Tool in Ubuntu

If you are new to networking the graphical configuration tool is your best method for configuring new hardware in Ubuntu.We are going to use GUI tool “network-admin” to configure networking. Remember, you must be root to run network-admin.

There are two ways to start network-admin first thing is you can use your terminal to type “sudo network-admin” it will start up or you can go to System—>Administration —>Networking

Configure Network Interface Using Command-Line

You can configure a network interface from the command line using the networking utilities. You configure your network client hosts with the command line by using commands to change your current settings or by editing a number of system files.

Configuring DHCP address for your network card

If you want to configure DHCP address you need to edit the /etc/network/interfaces and you need to enter the following lines replace eth0 with your network interface card

sudo vi /etc/network/interfaces

# The primary network interface - use DHCP to find our address
auto eth0
iface eth0 inet dhcp

Configuring Static IP address for your network card

If you want to configure Static IP address you need to edit the /etc/network/interfaces and you need to enter the following lines replace eth0 with your network interface card

sudo vi /etc/network/interfaces

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.3.90
gateway 192.168.3.1
netmask 255.255.255.0
network 192.168.3.0
broadcast 192.168.3.255

After entering all the details you need to restart networking services using the following command

sudo /etc/init.d/networking restart

Setting up Second IP address or Virtual IP address in Ubuntu

If you are a server system administrator or normal user some time you need to assign a second ipaddress to your Ubuntu machine.For this you need to edit the /etc/network/interfaces file and you need to add the following syntax.Below one is the only example you need to chnage according to your ip address settings

sudo vi /etc/network/interfaces

auto eth0:1
iface eth0:1 inet static
address 192.168.1.60
netmask 255.255.255.0
network x.x.x.x
broadcast x.x.x.x
gateway x.x.x.x

You need to enter all the details like address,netmask,network,broadcast and gateways values after entering all the values save this file and you need to restart networking services in debian using the following command to take effect of our new ipaddress.

After entering all the details you need to restart networking services using the following command

sudo /etc/init.d/networking restart

Setting your ubuntu stytem hostname

Setting up your hostname upon a ubuntu installation is very straightforward. You can directly query, or set, the hostname with the hostname command.

As an user you can see your current hostname with

sudo /bin/hostname

Example

To set the hostname directly you can become root and run

sudo /bin/hostname newname

When your system boots it will automatically read the hostname from the file /etc/hostname

If you want to know more about how to setup host name check here

Setting up DNS

When it comes to DNS setup Ubuntu doesn’t differ from other distributions. You can add hostname and IP addresses to the file /etc/hosts for static lookups.

To cause your machine to consult with a particular server for name lookups you simply add their addresses to /etc/resolv.conf.

For example a machine which should perform lookups from the DNS server at IP address 192.168.3.2 would have a resolv.conf file looking like this

sudo vi /etc/resolv.conf

enter the following details

search test.com
nameserver 192.168.3.2

Network Troubleshooting Tips

Networking is sometimes considered to be complex, and hard to troubleshoot and manage. However, Linux provides you with Some tools to figure out exactly what’s going wrong on your network, and how to fix it.Here we are going see some tools and how to check the network connectivity.

Ping

Ping is a computer network tool used to test whether a particular host is reachable across an IP network. Ping works by sending ICMP “echo request” packets to the target host and listening for ICMP “echo response” replies (sometimes dubbed “Pong!” as an analog from the Ping Pong table tennis sport.) Using interval timing and response rate, ping estimates the round-trip time (generally in milliseconds although the unit is often omitted) and packet loss (if any) rate between hosts.

This is very basic and powerful tool to check Internet connection

Example

ping -c 4 google.com

-c option is used to pass how many packets you’re sending

If everything working file you should get reply looks like below

Pinging www.l.google.com [64.233.183.103] with 32 bytes of data:

Reply from 64.233.183.103: bytes=32 time=12ms TTL=244
Reply from 64.233.183.103: bytes=32 time=12ms TTL=244
Reply from 64.233.183.103: bytes=32 time=12ms TTL=244
Reply from 64.233.183.103: bytes=32 time=12ms TTL=244

Ping statistics for 64.233.183.103:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 12ms, Maximum = 12ms, Average = 12ms

Traceroute

traceroute is a computer network tool used to determine the route taken by packets across an IP network. An IPv6 variant, traceroute6, is also widely available.Very useful to trace IP packets.

Example

traceroute google.com

ifconfig

The Unix command ifconfig can function as a tool to configure a network interface for TCP/IP from the command line interface (CLI).This is another easy tool to see if your interface is actually loading correctly.

Example

ifconfig

eth0 Link encap:Ethernet HWaddr 00:0A:E6:C6:07:85
inet addr:132.18.0.16 Bcast:132.18.0.255 Mask:255.255.255.0
inet6 addr: fe80::20a:e6ff:fec6:785/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18458 errors:0 dropped:0 overruns:0 frame:0
TX packets:8982 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4015093 (3.8 MiB) TX bytes:1449812 (1.3 MiB)
Interrupt:10 Base address:0xd400

Route

This is very useful to check routing config

Example

route -n

Netstat

If you want to see Routing Tables,all open ports,all listen ports

netstat -nr

-n means return numeric output (ie, IP address instead of hostname)

-r means print the routing table

find all open ports

netstat -a

find listening ports

netstat -l

Ubuntu User #

The Ubuntu Counter Project - user number # 1713

coutner