Posts

Showing posts from 2009

Dbus error while mounting

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

solution:
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:

http://www.speedtest.net/

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.http://tldp.org/HOWTO/Printing-Usage-HOWTO-2.html3. I can update all applications with two magical words, apt-get upgrade.apt-get upgrade
4. Its freeDownload here: http://www.linux.org/dist/download_info.html5. Its free as in beer.6. Its more secure than WindowsLook :http://wiki.answers.com/Q/Why_is_Linux_more_secure_than_Windows

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: http://www.linuxhelp.net/10. Well documentedLook: http://www.linux.org/docs/11. No need for some obscure knowledge baseYour grandma even can use =) : http://bugsanddebugs.blogspot.com/2009/11/ubuntu-for-your-grandmother.html12. A standard help system that is actually useful (man)Look: http://linuxmanpages.com/13. 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
OR
# 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

Image
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...

Image
(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...

printf

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*

[Output]
/dev/sda /dev/sda1 /dev/sda2 /dev/sda5 /dev/sda6 /dev/sda7 /dev/sda8

$ df -h

[Output]
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)

How to play VIDEO_TS.IFO, VIDEO_TS.BUP, VOB (ripped DVD) files?

Step 1.To play a copied/ripped DVD from hard disk you can use VideoLAN (VLC Player): Click here to download this player

Step 2.Install it. Start VideoLAN (click Start -> Programs -> VideoLAN -> VLC Media Player)

Step 3.Click File -> Open Directory. Find the VIDEO_TS folder, select it and click OK.

Please note, you have to copy all the ripped data to the right place. Create a VIDEO_TS folder and copy all the ripped files there.


Other solutions:

In order to play a copied DVD with WinDVD you must right-click on the player (menu will pop up), choose Source -> DVD From Folder, find and open your VIDEO_TS folder.
To play a copied DVD with PowerDVD you click on the open button and choose Open DVD File from the Hard Disk Drive and open the video_ts.ifo.
To play VIDEO_TS using ANY PLAYER download and install MPEG2 Decoder. After that, find your VIDEO_TS folder and open VOB files (such as VTS_01_1.VOB, VTS_01_2.VOB, VTS_01_3.V0B etc.).


Let's explain what is inside VIDEO_TS:

VIDEO_…

How to remote control windows from Ubuntu

Image
Everyone should be able to control remote windows by Remote Desktop Connection application, but don't know how to connect to windows in linux platform.
You can fetch it from here.
That's a easy procedure for you.

1. Enable remote desktop function in windows first. You can follow below diagram to activate remote desktop and add aaaaccount that is a example account and password is aaa in windows platform.





2. Select Applications --> Internet --> Terminal Server Client in Ubuntu



3. It will pop-up a configuration window of Terminal Sever Client, please chose RDPv5 in the Protocol table.



4. Please click Connect button after filled all information.
Computer: Destination host IP address
User Name:aaa
Password:aaa




5. You will connect to destination computer successfully. The snapshot as below



Enabling Yahoo accounts with pidgin

Image
Open Pidgin and go to Accounts -> Manage Accounts...



· Click on the Yahoo account and then on the "Modify" button...



· Click on the "Advanced" tab and paste the following line in the "Pager server" field...

cn.scs.msg.yahoo.com



Click the "Save" button, then click the check box in front of the Yahoo account to connect.

12 Awesome French Short Animations

Image
Oktapodi (Gobelins)
Trying to scape of a assistant chef, two octopus find them selves into a funny runaway for theirs lives. This great animation was nominated for the Oscars Academy Award on the category of short film (animated), almost at the same level of Presto from Pixar.Made by: Julien BOCABEILLE, François-Xavier CHANIOUX, Olivier DELABARRE, Thierry MARCHAND, Quentin MARMIER and Emud MOKHBERI Watch Oktapodi


Hugh (esma)
A great animation school from Montpellier bring to us this great animation when an old shaman was telling a story to 3 young children. Ages ago, some human beings had big troubles because the sky was too low. Birds could not fly and men were bended, until one day…Made by: MATHIEU NAVARRO, SYLVAIN NOUVEAU, AURORE TURBE and FRANCOIS POMMIEZWatch HughMon(s)tre (lisaa)
This is a strange story about our perception of time, it could be relative for each person or statics for others, but at the end we have so many issues with it, that it depends of us how we use it. This is…

Ubuntu for your grandmother

Image
This article was recently featured in Full Circle magazine. Please visit their site or download the edition here .
They say its for geeks, they say its for nerds, they say its for those whose pinkie finger has the imprint of the enter key tattooed on it. We say its for your grandmother ! Yes my friends, I kid you not, for all of those who are afraid to dip their little toe into the great Linux-Lake let us reassure you : If your grandmother can do it ? So can you. Before we start , let me clarify : We are not talking about turning your Linux machine into a clustered database server with SQL, PHP, Apache, Samba and what have you. We are talking about the advantages of using Linux .. as a desktop.


Why this experiment.I have been toying around with Linux since 1999, Seen the first desktop versions evolve and have seen the Linux OS grow in strength on the desktop. Last year I found out about Ubuntu Linux and have been doing several articles and podcasts on the use of Ubuntu as a desktop sys…

Linux tips every geek should know

#1: Check processes not run by you Difficulty: Expert Application: bash Imagine the scene - you get yourself ready for a quick round of Crack Attack against a colleague at the office, only to find the game drags to a halt just as you're about to beat your uppity subordinate - what could be happening to make your machine so slow? It must be some of those other users, stealing your precious CPU time with their scientific experiments, webservers or other weird, geeky things! OK, let's list all the processes on the box not being run by you! ps aux | grep -v `whoami`
Or, to be a little more clever, why not just list the top ten time-wasters: ps aux --sort=-%cpu | grep -m 11 -v `whoami`
It is probably best to run this as root, as this will filter out most of the vital background processes. Now that you have the information, you could just kill their processes, but much more dastardly is to run xeyes on their desktop. Repeatedly! #2: Replacing same text in multiple files Difficulty: …