Showing posts from December, 2009

Dbus error while mounting

unable to mount DBus error mount -t ntfs-3g

sudo mount -t ntfs-3g /dev/sdb1 /yourplace/ -o force

why my ubuntu net connection is slow?? how to fix

1) Change Firefox settings

* In firefox, type on the web browser's address box:about:config
* Find this phrase network.dns.disableIPv6
* Change its value to "true"
2) IPV6 settings
* Start a shell prompt
* Type -> sudo gedit /etc/modprobe.d/aliases
* Find this phrase: alias net-pf-10 ipv6 and comment this line as: # alias net-pf-10 ipv6
* Add this phrase under your commented line: alias net-pf-10 off
3) Restart your computer

Test your internet speed

Test your internet speed:

I love linux

1. I can extract something with one command without opening a separate program.tar xjvf cornbread.tar.bz2
2. I can print a document without opening it. I can update all applications with two magical words, apt-get upgrade.apt-get upgrade
4. Its freeDownload here: Its free as in beer.6. Its more secure than WindowsLook :

7. I can run on pretty much any hardware.8. It is highly scalable… I can install it on a 486 or a dual core. 9. Help is readily available and free of charge.Look: Well documentedLook: No need for some obscure knowledge baseYour grandma even can use =) : A standard help system that is actually useful (man)Look: Powerful Command Line Interface
14. Many o…

A Game Programming Site

Kill process

For specific command:
Step #1: First, you need to find out process PID (process id)

Use ps command or pidof command to find out process ID (PID). Syntax:
ps aux | grep processname
pidof processname
For example if process name is lighttpd, you can use any one of the following command to obtain process ID:
# ps aux | grep lighttpd
Output: lighttpd 3486 0.0 0.1 4248 1432 ? S Jul31 0:00 /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
lighttpd 3492 0.0 0.5 13752 3936 ? Ss Jul31 0:00 /usr/bin/p

OR use pidof command which is use to find the process ID of a running program:
# pidof lighttpd
Output: 3486

Step #2: kill process using PID (process id)
Above command tell you PID (3486) of lighttpd process. Now kill process using this PID:
# kill 3486
# kill -9 3486
Where,-9 is special Kill signal, which will kill the process
killall command examplesDO NOT USE killall command on UNIX system (Linux only command). You can also use killall command. The killall command kill process…

Linux File Systems Versus Windows-Based File Systems

Although similar in many ways, the Linux file system has some striking differences from file systems used in MS-DOS and Windows operating systems. Here are a few:
* In MS-DOS and Windows file systems, drive letters represent different storage devices (for example, A: is a floppy drive and C: is a hard disk). In Linux, all storage devices are fit into the file system hierarchy. So, the fact that all of /usr may be on a separate hard disk or that /mnt/rem1 is a file system from another computer is invisible to the user.

* Slashes, rather than backslashes, are used to separate directory names in Linux. So, C:\home\chris in an MS system is /home/chris in a Linux system.

* Filenames almost always have suffixes in DOS (such as .txt for text files or .doc for word- processing files). Although at times you can use that convention in Linux, three-character suffixes have no required meaning in Linux. They can be useful for identifying a file type. Many Linux applications and desktop envi…

Working with the Linux File System

The Linux file system is the structure in which all the information on your computer is stored.Files are organized within a hierarchy of directories. Each directory can contain files, as well as other directories.

If you were to map out the files and directories in Linux, it would look like an upside-down tree. At the top is the root directory, which is represented by a single slash (/). Below that is a set of common directories in the Linux system, such as bin, dev, home, lib, and tmp, to name a few. Each of those directories, as well as directories added to the root, can contain subdirectories. Figure illustrates how the Linux file system is organized as a hierarchy. To demonstrate how directories are connected, the figure shows a /home directory that contains subdirectories for three users: chris, mary, and tom. Within the chris directory are subdirectories: briefs, memos, and personal. To refer to a file called inventory in the chris/memos directory, you can type the full path of /…

What's So Great About Linux??

Leveraging work done on UNIX and GNU projects helped to get Linux up and running quickly. The culture of sharing in the open source community and adoption of a wide array of tools for communicating on the Internet have helped Linux to move quickly through infancy and adolescence to become a mature operating system.
The simple commitment to share code is probably the single most powerful contributor to the growth of the open source software movement in general, and Linux in particular. That commitment has also encouraged involvement from the kind of people who are willing to contribute back to that community in all kinds of ways. The willingness of Linus to incorporate code from others in the Linux kernel has also been critical to the success of Linux. The following sections characterize Linux and the communities that support it.

Features in Linux
If you have not used Linux before, you should expect a few things to be different from using other
operating systems. Here is a brief list of so…

Understanding Linux

People who don’t know what Linux is sometimes ask me if it’s a program that runs on Microsoft Windows. When I tell them that Linux is, itself, an operating system like Windows and that they can remove (or never purchase) Windows, I sometimes get a surprised reaction: “A PC can run with nothing from Microsoft on it?” The answer is yes!

The next question about Linux is often: “How can Linux be free?” While the full answer to that is a bit longer, the short answer is: “Because the people who write the code license it to be freely distributed.” Keep in mind, however, that the critical issue relating to the word “free” is “freedom,” meaning that you are free to rebuild, reuse, reconfigure, and otherwise do what you like with the code. The only major responsibility is that if you change the software, you pass it forward so that others may benefit from your work as well.

Linux is a full-blown operating system that is a free clone of the powerful and stable UNIX operating system. Start your com…

Dec 13...

(13 Dec 2001 to 2009)
I remember you, Chuck Schuldiner..... I'll always remember you..

miss you pal, it's been 8 years ! you pain is still with me...


Where specifier is the most significant one and defines the type and the interpretation of the value of the coresponding argument:
specifierOutputExamplec Characterad or i Signed decimal integer392e Scientific notation (mantise/exponent) using e character3.9265e+2E Scientific notation (mantise/exponent) using E character3.9265E+2f Decimal floating point392.65g Use the shorter of %e or %f392.65G Use the shorter of %E or %f392.65o Signed octal610s String of characterssampleu Unsigned decimal integer7235x Unsigned hexadecimal integer7fa…

Mounted or unmounted?

As root, you can issue the following command to view the naming combinations possible for your system:

$ ls /dev/sda*

/dev/sda /dev/sda1 /dev/sda2 /dev/sda5 /dev/sda6 /dev/sda7 /dev/sda8

$ df -h

Filesystem Size Used Avail Use% Mounted on
/dev/sda5 39G 12G 26G 31% /
tmpfs 1012M 0 1012M 0% /lib/init/rw
varrun 1012M 256K 1012M 1% /var/run
varlock 1012M 0 1012M 0% /var/lock
udev 1012M 2.8M 1009M 1% /dev
tmpfs 1012M 164K 1012M 1% /dev/shm
lrm 1012M 2.2M 1010M 1% /lib/modules/2.6.27-16-generic/volatile
/dev/sda6 39G 35G 2.4G 94% /home
/dev/sda7 29G 25G 3.2G 89% /media/disk

Listing Hardrives
$ sudo fdisk -l

Debian / Ubuntu linux install kernel headers package

Make sure you have updated version
$ sudo apt-get update

Search for kernel version (optional)
$ apt-cache search linux-headers-$(uname -r)

Install linux-header package
$ sudo apt-get install linux-headers-$(uname -r)