Showing posts with label Hardware And Networking. Show all posts
Showing posts with label Hardware And Networking. Show all posts

Tuesday, February 5, 2013

HARDWARE TROUBLESHOOTING NOTES


HARDWARE TROUBLESHOOTING NOTES

HARDWARE TROUBLESHOOTING NOTES,troubleshooting of hardware




HARDWARE TROUBLESHOOTING NOTES

Power problems or no power

  1. Check power outlet or power plug.
  2. Check power cable by checking it with multimeter or interchange with monitor cable.
  3. Check smps switch that it is off or not.
  4. Check all smps connections that they are inserted properly or not or remove unnecessary connections.
  5. if system starts for sometime and then off then check cpu heat sink and fan are inserted properly, removing power connector from hard disk, floppy drive , cdrom, check motherboard capacitors.
  6. Check front panel connectors such as power button are inserted properly on motherboard or not.
  7. Check ram by inserting another ram.
  8. Check smps by replacing it with another working smps.
  9. Check cmos battery or insert another battery.
  10. Check motherboard.
Display problems

  1. First of all check that whether monitor or cpu is faulty by starting the system and click on numlock key. If it is on and off continuously by clicking then problem is in monitor data cable, display card, monitor color settings, cmos battery weak or dust in ram. If it is not changes than problem is in cpu.
  2. For problem in cpu first of all check ram by removing dust from ram, insert into another slot or replace with another working ram or cleaning the ram slots from isopropyle,thinner or petrol.
  3. Check cmos battery voltage (3.35v dc), clear the cmos settings or replace with another cmos battery.
  4. Check smps by replacing with another working smps.
  5. Check all the smps connections, cables connections, check whether all cards are inserted properly in slots or remove all unnecessary connections leaving only smps connections and then attach all cards and cables one by one.
  6. Remove motherboard from cabinet and then check display by attaching only smps, motherboard, cpu, ram, keyboard and power cable outside and starts the system by shorting the power button on m/b by screwdriver. if display comes then check it for 5-6 times and then inserted into cabinet before checking that anything in cabinet is shorting the m/b or keep the foam sheet or paper on cabinet.
  7. Check cpu by replacing with another working and compatible cpu or refreshing the cpu by removing cpu, ram, cmos battery from m/b and the on the system for 10-15 minutes, then attach all these and then starts the system.
  8. Shorting all the capacitors on m/b from screwdriver.
  9. Replacing the bios chip which is compatible or same.
  10. Check the motherboard.
Hanging problems

  1. First of all check cpu fan and heat sink that whether they are connected properly.
  2. Check ram by inserting into another slot.
  3. Check smps that whether they are not providing required voltages.
  4. Remove all unnecessary cards and then check that may be any card is faulty .also replace the hard disk cables.
  5. check operating system that any file is corrupted or not, any software that creating problems by removing the unnecessary software, delete all temporary files and files that are not needed, defragmenting the hard disk or removing icons from the startup by typing msconfig at run and then click on startup and uncheck all unnecessary applications or start the system in safe mode and then remove all the drivers and then restarts the system.
  6. Check for viruses.
  7. Format the partition and reinstall the operating system.
  8. Check hard disk for bad sectors.
  9. If system hangs after inserting the cdrom or floppy disk then check whether cdrom or floppy disk is faulty or cd drive and floppy drive has problem.
  10. Check motherboard capacitors.
Hard disk problems

  1. If hard disk is not detected then check hard disk cables, attach hard disk cable on different hard disk ports, check master slave condition or attach one device on one cable. Interchange hard disk and cdrom cables.
  2. go to cmos setup screen and then detect the hard disk manually by clicking on hard disk auto detection or go to standard cmos setup screen and click
Enter on all four options such as primary master, secondary master etc.
  1. Make the drive master if it is slave.
  2. Check power connector by attaching another power connector or check logic card by attaching another compatible working logic card.
  3. If mbr is corrupt or we can’t create any partitions then give the command “a:\>fdisk /mbr” to repair the mbr or restore the mbr from utility softwares.
  4. Check hard disk for bad sectors by slow formatting the partition or with part utility software and then block the bad sectors.
  5. if operating system is not installed then check hard disk for bad sectors, check whether partition is active and primary or not, or whether partition file system is compatible with o/s or not. Then check the ram.
  6. If “tic tic tic “sound comes from hard disk then hard disk media has problem.
Cdrom/cd-writer/combo/dvd-writer problems

  1. If cdrom is not detected then check cables, ports, master slave condition, manually detect in cmos setup, check logic card, and check power connectors.
  2. If cd is not read then clean the lens from cotton, lens cleaner cd or change the cd drive head lens with another compatible lens head.
  3. If tray is not in and out properly then clean the cd drive dust, tray corners with grease, change tray belt.
  4. If picture is not clear or picture is running very slow then increase the cd rays by adjusting the small screw near the cd lens.
  5. If cd is not write but read in cd-writer then uninstall and reinstall the compatible cd writing software such as lg Nero with lg cd writer.
  6. If DVD video disk is not played in dvd drive then install the DVD playing software such as power DVD, win DVD.
  7. If video is not clear then install the latest directx software such as directx 9.0c.
Sound related problems

If there is no sound then check speaker is on, speaker volume is high, lead is connected on proper port in a pc, and volume is not low from volume properties and from software in a pc.
  1. Check from device manager that sound driver is properly installed or remove and reinstall the proper driver.
  2. Data cable of sound card may be connected wrong side.
  3. Remove and reinstall the sound playing software.
  4. Insert the sound card in another slot and remove the driver from safe mode and reinstall the proper driver.
  5. Check whether onboard sound is disabled from the cmos settings or from m/b with the help of jumpers.
  6. If we use sound card and there is also onboard sound then disabled the onboard sound from cmos for proper working.
  7. Format and reinstall the operating system and then install the actual driver.
  8. If sound not comes in audio cd but comes in mp3 songs then attach the audio cable on m/b with cdrom.
  9. Insert another working sound card and then install its drivers.
  10. If sound comes before 2-3 days but not now, then in win xp, 2003 restore the system to an earlier state with system restore utility.
Mouse problems

  1. If serial mouse is not detected then remove its driver from device manager in safe mode and restart the system otherwise remove the lmouse.vxd key entry from registry. Check mouse on other system. If port is not onboard then check its cable connections on m/b that they are connected wrong side or change the cable. If it is 1 by 1 cable, attach 4 by 5 cable or vice-versa. Check if serial port is disabled from the cmos setup. If ps2 mouse is not detected then remove and reinstall its driver, check if ps2 port is not disabled from the cmos, check ps2 port cable connection or replace the cable. if USB mouse is not detected then install its driver in win98, interchange USB ports, check if USB port is not disabled from the cmos otherwise check the USB port cable connection .if all these not works then check the pins on mouse cable or attach another compatible cable.
  2. If mouse not rotates properly then clean the dust from cotton buds in rollers.
  3. If wireless mouse not detected then check sensor connections battery and reinstall the drivers.
Keyboard problems

If k/b is not detected then check its connections, check converter if attached, replace the cable with same compatible cable. Also check onboard k/b controller by inserting k/b in another system. If USB k/b is not detected then check whether USB k/b legacy support is disabled from the cmos and also check its drivers from device manager. If some keys are not working properly then remove the dust from keys or open the k/b and clean the keys or replace with other working key. In mechanical k/b desolder the bad key and soldered the other working key. If wireless k/b is not detected then check the sensor connections battery or uninstall and reinstall the drivers again.
Modem problems
If internet is not connected then check modem settings such as diagnose the modem, uncheck wait for dial tone before dialing, check tone or pulse dial, check dialing properties, remove & recreate the dial up connection again, check whether username or password and phone no. is correct check phone line connected to the modem port, check modem by giving mobile phone no. in dial up connection and then click on connect. Otherwise remove the drivers from safe mode and reinstall the drivers & make its settings again. Otherwise attach the modem in different slot. Check whether username and password is correct by giving bsnl or sify registration username & password to check. Also check whether phone line has dial tone or not by attach the line to the phone and check dial tone.
If mobile phone modem is not connecting then uninstall and reinstall its driver and software, check cable, check username & password, check mobile phone settings such as baud rate, check whether internet service is active from phone . Also check serial and usb ports where cable is connected such as com1 in serial cable or whether ports are disabled from the cmos. Otherwise call the call centre.
If broadband internet connection has problem then check all its cable connections, check username & password, recreate dial up connection, check whether phone line has some disturbance.
Lan problems

Remove and reinstall the driver again, check ip address subnet mask, workgroup name, services & protocols, log on to the computer from computer network name, check the cable connectors or cables. Otherwise change the card slot and reinstall the driver after removing old drivers from safe mode.
Scsi problems
Check for proper termination, check scsi id, check for compatible signaling variations such as lvd, hvd, se. install the card drivers and device drivers, check settings from scsi cmos setup, check cable connectors.
Floppy drive problems

If floppy disk is not read or not work properly the format the floppy disk or insert another working floppy disk, check write protect notch if we can’t write anything on floppy. If floppy drive light glows continuously attach the cable from reverse side or change the cable. Check whether floppy drive is disabled from cmos if it is not detected. Clean the dust from floppy drive or aligning its head properly if no floppy reads in floppy drive. Disabled swap floppy drive and floppy drive seek from cmos if floppy drive is not detected.
Memory problems

  1. If system gives continuous long beep on starting the system then check for ram.
  2. If blue screen or fatal error is displayed on screen then first format the partition and install the o/s else clean the ram slots or change the ram .this also applies if windows protection error is displayed on the screen.
  3. If o/s is not installed properly and it gives unknown errors while installing then change the ram.
Cmos password breaks or default the cmos settings methods

  1. Remove the battery, power cable from smps & then on the system without battery after 4-5 minutes. Then insert and save the settings after settings come to default.
  2. Short the clear cmos pins on m/b from jumpers or screwdriver after turn off the system.
  3. Press “f and j” key together and then turn on the system to make default the cmos settings.
  4. Remove the setup password from cmos software.
  5. remove the setup password from debug command in win98:-
c:\>debug
-o 70 2e
-o 71 ff
-o q
installation of drivers

  1. run setup if onboard
  2. install from device manager if in a card form
  3. For installing any USB device first install the driver or software & then connect the device to the system.
  4. Add parallel printers and external modem (56kbps) from control panel.
Post messages

1. 1xx = system m/b failure
2. 101 = interrupt failure
3. 103 = timer interrupt failure
4. 109 = dma test error
5. 161 = cmos battery fail
6. 164 = memory size error(run cmos setup & configure the memory bus speed & memory size)
7. 2xx = (any number starts with two). Problem with memory. One or more partition of ram is bad.
8. 201 = memory test failed. One or more partition of ram is bad.
9. 3xx = this is the problem of keyboard.
10. 301 = keyboard error (any key is pressed during the post on booting). You will see any error message or any beep continuously.
11. 4xx = this is a problem of monochrome display problem
12. 5xx = color video problem.
13. 6xx = floppy disk system problem.
14. 601 = floppy disk error (floppy adapter or floppy drive failed).
15. 17xx = hard disk problem (the hard disk information may not be set correctly or the disk adapter can’t communicate with the HDD).
16. 1780 = IDE one drive failure or primary drive failure. (IDE one drive controller is not functioning). The hard disk is not configured properly or the controller is not installed correctly
post audio messages

1. No beep or nothing happen: - power supply bad or not connected.
2. Continuous beep:- power supply bad or any key of keyboard pressed.
3. One long & one short beep: - system board failure.
4. One long beep & two short beep: - display card not connected or loose or failed.
5. One short beep with blank screen: - display card problem. Display card not set properly or damage.
6. One short beep with no beep: - floppy drive adapter is failure.
7. Two short beep:- ps2 configuration errors
8. Long beep continuously: - RAM problem. RAM is faulty. RAM is failed or loose.
GENERAL ERRORS

  1. partition made but no partition gets detected:-
(i). May be partition hides.
(ii) Partition creates through dos bootable floppy but system boot with win 98 floppy.
(iii) Partition creates with win98 bootable floppy but boots with dos bootable floppy.
(iv) Logical partition ntfs or non-dos or hpfs and cdfs.
  1. wrong display driver loaded :-
(i) Windows protection error.
(ii) Windows corrupt.
(iii) System does not booting in normal mode.
  1. while loading dos message shows(incorrect dos version):-
(i) May be partition formatted through windows bootable.
(ii) Partition created through windows and also formatted with windows.
(iii) System boot from dos and command run from windows.
  1. while installing windows system hangs:-
(i) cd is damaged or corrupt.
(ii) RAM problem.
(iii) Bad sectors in the hard disk.
(iv) Partition problems.
(v) CPU fan problem or CPU heated.
  1. system hangs after c:\> prompt:-
(i) RAM problem.
(ii) MBR is corrupt.
(iii) FAT problem.
(iv) Bad sectors in the hard disk.
(v) Virus in the system.
(vi)Boot record is modified or corrupted.
  1. system working after one hour give the beep:-
(i) CPU overheated.
(ii) Motherboard heat up or motherboard damage.
  1. CMOS setup automatic open as soon as system on:-
(i) Set the speed of cpu go to cmos setup.
(ii) May be DEL key is pressed while booting.
  1. HARD DISK protection error:-
(i) In the CMOS setup hard disk protection error is enabled.
  1. error reading fixed disk drive (error shows after FDISK):-
(i) May be data cable is not connected properly or replace the data cable.
(ii) MBR problem or MBR is corrupt
(iii) Run at prompt a:\>fdisk /mbr.
(iv)Run disk manager and use the zero fill formatting to remove the problem.
  1. I/O error(error shows):-
Reason: (i) IO.SYS file corrupt or missing.
(ii) CONFIG.SYS corrupt or missing.
Solution: (i) transfer the system files.
A:\. SYS C:
11. No room present or available (message shows):-
(i) System transferred by dos but partition made by windows.
12. Partition made but system is not booting:-
(i) Partition is not active.
(ii) Booting files are corrupted.
(iii) In cmos first boot device set to cdrom and others are disabled.
(iv) Operating system is corrupt.
13. Fat16 partition is made from windows but the system transferred from dos & system does not boot:-
Reason:- (i) cluster size changed for dos.
(ii) Boot record is changed.
Solution: - (i) create the partition through dos and transferred the system files.
14. Primary hard disk fail or secondary hard disk fails (message shows):- 
(i) Check the data cable.
(ii) Check the jumper setting.
(iii) Check the power supply connector.
(iv) Check the cmos setting.
15. a sector not found:-
(I) Use any utility to recovering the files.
(ii) Use SCANDISK as utility.
(iii) Use “low level format through dm”.
16. no fixed disk present(message shows):-
(i) Connect the power supply connector properly.
(ii) If data cable damaged then use another cable.
(iii) Use the auto detect option in cmos to detect the HDD.
(iv) Check the logic card of hard disk.
(v) Check the different ports of m/b that these may be disabled in cmos.
17. drive was formatted accidentally:- 
(i) Use an unformatted utility.
(ii) Use the data recovery third party utility for recover data.
18. drive is active but computer is not booting from HDD:-
(i) Drive failure problem.
(ii) Boot sector failure.
(iii) MBR corrupt.
(iv) DOS or WINDOWS system files are corrupt.
19. data head error (message shows) (in this error hdd or fdd can’t read data):-
(i) Run the CHKDSK at C :\>; check file structure & bad sectors & HDD problems.
(ii) Using NDD or other HDD repair utilities to repair HDD & FDD.
20. hard disk configuration error(message shows):-
(i) Incorrect configuration setting in cmos setup.
(ii) Detect the hard disk from cmos setup.
(iii) Use “low level format” & “zero fill format” to repair the HDD.
21. hard disk controller failure:-
(i) Check in the cmos that the HDD controller option is enable or disable.
(ii) Check the hard disk that is spinning or not.
22. invalid drive specification(message shows):- 
(i) Reasons:-invalid drive selected.
(ii) Invalid media type reading drive abort, retry, fail.
(iii) The partition made but the selected partition not is formatted.
(iv) Solution:-Format the partition and select the drive.
23. command interpreter is missing(shows like c>):-
Reason:- COMMAND.COM file is missing or corrupt.
Solution:- transfer the system files or copy the COMMAND.COM with floppy to hdd.
24. floppy disk error or floppy disk fail (message shows):-
(i) In the cmos there is wrong floppy setting.
(ii) Power connector or data cable is not connected or loose or reverse connected.
(iii) Data cable is faulty.
(iv) Floppy drive is faulty
(v) Floppy disk port is disabled in cmos.
25. display comes but when loading the windows or desktop no display on screen:-
(i) Go to safe mode and go to display properties ->settings and set the colors to 16 and click on apply & restarts the system or remove the display driver from add/remove programs or remove from device manager and restarts the system.
26. when loading win98 system hangs after when we click continue on first setup screen and the progress bar goes to 100%:-
(i) Remove floppy disk from floppy drive or disabled the floppy drive from cmos setup.
27. if sound not comes from headphone:-
(i) Check headphone cable that it is connected at proper port in sound card.
(ii) Double click sound icon in taskbar near date and then click on options and click check on microphone/headphone and click apply.
(iii) Check headphone on another system.

28. if colors are not proper on monitor or magnetic field build up due to keep speakers or any magnetic media near monitor:-
(i) Click on menu options on monitor where color settings are adjust and click on degauss to remove the magnetic field.
29. File copying error after copying a few files with long filenames to the floppy disk.
Cause: - root directory fills up due to use of multiple directory entries by each long filename.
Solution: - create a folder on the floppy disk and copy files with long filenames into the folder.
30. can’t access full capacity of hard disk over 8.4gb:-
Cause: - BIOS is out of date.
Solution: - upgrade flash bios.
31. can’t use drive capacity above 528 MB:-
Cause: - LBA mode not enabled in BIOS.
Solution: - enable LBA mode.
32. your 40 GB hard disk can’t be formatted by windows 2000 or windows XP as a single drive with fat32:-
Cause: - these versions can format up to 32 GB only but can read larger drives.
Solution: - prepare drive with third party utility such as partition magic or use NTFS.
33. UDMA/66 or UDMA/100 drive runs at UDMA/33 on systems that support UDMA/66 or UDMA/100.
Cause: - incorrect cable might be use.
Solution: - use 80-wire UDMA cable in place of normal 40-wire IDE cable.
34. Can’t set drives as master or slave when 80-wire cable is used.
Cause: - 80-wire cable supports cable select, not master/slave.
Solution: - install drives at correct locations on cable and jumper both as cable select.
35. conflicts between com ports:-
Cause: - IRQ’s shared between COM1 and 3; between COM2 and 4.
Solution: - disable unused COM port or change IRQ if possible.
36. standard keys on keyboard work but not multimedia or internet keys:-
Cause: - the keyboard driver is not installed or is defective.
Solution: - install the latest driver for your keyboard.
37. internal modem hangs the system when trying to connect to internet:-
Cause: - modem might be set to same IRQ as the serial port the mouse is attached to.
Solution: - disabled the unused com port on the system and set the modem to use that com port number.
38. system locks up after installing internal modem:-
Cause: - IRQ conflicts with other ports or devices.
Solution: - use device manager to find conflicts and resolve them or uninstall and reinstall the drivers from device manager.
39. computer can’t detect external modem:-
Cause: - wrong cable, port problems, or power problems.
Solution: - check cable, port setup and power.
40. IP address conflict error:-
Cause: - duplicate IP addresses on two or more machines.
Solution:- open network properties & enter correct unique IP address for each system
41. If system shutdown message is not displayed on AT SMPS system or system shutdown message appears on ATX SMPS systems.
(I) go to CMOS setup screen and enable power management or ACPI support if it is disable or vice versa or enable use ATX SMPS option in ATX systems.
42. RAM test not detecting any problems and is finishing too quickly.
Cause: - L1 and L2 memory caches might be enabled.
Solution: - disable memory caches before testing memory.
43. can’t use USB keyboard and mouse outside of windows that is in dos:-
Cause: - USB legacy support is disabled in CMOS setup.
Solution: - enable USB legacy support.
44. garbage appears on your video screen for no apparent reason:-
Cause: - hardware resource conflict.
Solution: - use device manager to find conflicts and resolve them.
45. can’t use AGP card as primary video:-
cause:- PCI video is set as primary video.
Solution:- switch primary video to AGP card from CMOS setup such as select initial display as AGP.
46. display is steady at lower resolutions but flickers at higher resolutions:-
Cause: - higher refresh rates are needed at higher resolutions to avoid flicker.
Solution: - adjust display properties to higher refresh rates if supported by monitor.
47. virus warning message triggered when trying to upgrade windows:-
Cause: - virus warning feature enabled in CMOS setup.
Solution: - disable virus warning or boot sector write protect feature.
48. the system locks up frequently and sometimes reboots on its own:-
(I) Check SMPS and also check for viruses or go to power options in control panel and select “always on” in power scheme and in all the other options select “never” or reinstall the operating system.
49. when we create partitions on a hard disk more than 60 GB FDISK and DM software not show its space properly:-
(i) for this in FDISK we give space in percentage example in 80 GB fdisk shows hard disk capacity as 10GB only and for creating first partition of 20 GB we give 25% space.
(ii) When we use DM then it shows 14GB hard disk capacity, we ignore these values and give space which we want example give 20000MB to create the first partition then it shows 60GB as extended partition.
(iii) Otherwise update the FDISK and DM software to show actual space.
50. when we attach two hard disks how should we find the partitions of both HDD:-
(i) in win98, from which HDD we boot the system takes the c: partition,d: partition goes to the other hard disk first primary partition,then all the remaining partitions of hard disk from which we boot shows and then all the partitions of the remaining hard disk example c:\ partition of booting hard disk, d: partition of second hard disk, e:\ , f:\ , g:\ partitions of booting hard disk & h:\, i:\, j:\, partitions of second hard disk. In win2000/xp/2003 the starting all partition shows from first hard disk from which we boot and all the remaining partitions of other hard disk example c:\ , d:\ , e:\ . f: , of first hard disk & g:\ , h:\ , i:\ , j:\ of other hard disk.

51.IRQ NUMBERS USED BY DEVICE TO SEND A REQUEST TO CPU IN ATX .
IRQ #
Device
0
System timer
1
Keyboard
2
Cascade to IRQ9. Can't be used.
3
Com ports 2 and 4
4
Com ports 1 and 3
5
Usually available. Sometimes LPT2. Most often used for sound cards.
6
Floppy drive
7
LPT1
8
Real time clock
9
Video display adapter
10
Available
11
Available. SCSI adapter will usually use this IRQ.
12
Available or PS2 mouse
13
Math coprocessor.
14
Primary IDE controller
15
Secondary IDE controller. If there is no secondary IDE controller on the board, or secondary IDE controller is disabled in CMOS, IRQ 15 is available


52.I/O addresses
I/O Ports 
COM1 3F8H
COM2 2F8H
COM3 3E8H
COM4 2E8H
LPT1 378H
LPT2 278H

Monitors 
Dot pitch is the space between pixels in millimeters.
The refresh rate is the number times display is redrawn every second.
53.Video modes:-
CGA 640 x 200
EGA 640 x 350
VGA 640 x 480
SVGA 1024 x 768

54. Cache:
- L1/L3 - Internal Cache
- L2 - External Cache

55. PCMCIA
Type 1 3.3mm Memory
Type 2 5mm Modems, Network cards
Type 3 10.5mm Hard Disks

56. Power Supplies 
Yellow: +12
Blue: -12
Red: +5
White: -5
Voltage for motor: +/- 12 volts
Voltage for circuitry: +/- 5 volts

57. Repair corrupted files
. If some files such as vnetsup.vxd, dfs,vxd files missing error displays when the system boots then in win98 we give command “sfc” (system file checker) at run and click on second option “extract one of the specified file” and give the name of the file in a box such as vnetsup.vxd and click on start. Then give location of win98 folder such as win98 cd or dump of win98 in hard disk. Then give location where to save this file. This location is “c:\windows\system” and then click on apply. Repeat this procedure for every file.


58. Type “dxdiag” at run to get the system information.

Saturday, February 2, 2013

How to create a Localhost site on Apache Server in Ubuntu Linux - Video Tutorial


How to create a Localhost site on Apache Server in Ubuntu Linux - Video Tutorial



How to Stop your Blogger Blog from Redirecting to Country Domains


How to Stop your Blogger Blog from Redirecting to Country Domains


When you open your blog you will be redirected to the country based domain of your blog.
This will affect your blog badly. For Example:

  1. The social stats – or Facebook Likes, Google +1s and Tweet counts – for your blog stories may be diluted as the URLs for the same story become different from different visitors.
  2. You will have a similar problem if you are using an external commenting platform like Disqus or Facebook Comments.

To prevent this you need to add this code to your Template.
Go to Blogger -> Template -> EDIT HTML

Paste this code below <head> tag

<script type="text/javascript">var blog = document.location.hostname;var slug = document.location.pathname;var ctld = blog.substr(blog.lastIndexOf("."));if (ctld != ".com") {var ncr = "http://" + blog.substr(0, blog.indexOf("."));ncr += ".blogspot.com/ncr" + slug;window.location.replace(ncr);}</script>

Linux File Permissions


Linux File Permissions


PERMISSIONS AND OWNERSHIP - WHY? 

If you can't access some of the files on your very own Linux system, it's usually because of misconfigured file access permissions. If you are the only user on your Linux box, you may be wondering what's the point of having all these permissions (or lack thereof) that restrict your access to your very own penguin OS. However, before pulling your hair off, you must keep in mind Linux is designed to be a multi-user environment. In an environment with more than one users, it is crucial to have a secure system for deciding which files are yours and who can fiddle with them.
Even if you're the only user on an ordinary desktop system, file permissions help keeping your important files safe, both from outsiders and your own mistakes. :)

UNDERSTANDING FILE OWNERSHIP

Every file on your Linux system, including directories, is owned by a specific user and group. Therefore, file permissions are defined separately for users, groups, and others.
User: The username of the person who owns the file. By default, the user who creates the file will become its owner.
Group: The usergroup that owns the file. All users who belong into the group that owns the file will have the same access permissions to the file. This is useful if, for example, you have a project that requires a bunch of different users to be able to access certain files, while others can't. In that case, you'll add all the users into the same group, make sure the required files are owned by that group, and set the file's group permissions accordingly.
Other: A user who isn't the owner of the file and doesn't belong in the same group the file does. In other words, if you set a permission for the "other" category, it will affect everyone else by default. For this reason, people often talk about setting the "world" permission bit when they mean setting the permissions for "other."

UNDERSTANDING FILE PERMISSIONS

There are three types of access permissions on Linux: read, write, and execute. These permissions are defined separately for the file's owner, group and all other users.
Read permission. On a regular file, the read permission bit means the file can be opened and read. On a directory, the read permission means you can list the contents of the directory.
Write permission. On a regular file, this means you can modify the file, aka write new data to the file. In the case of a directory, the write permission means you can add, remove, and rename files in the directory. This means that if a file has the write permission bit, you are allowed to modify the file's contents, but you're allowed to rename or delete the file only if the permissions of the file's directory allow you to do so.
Execute permission. In the case of a regular file, this means you can execute the file as a program or a shell script. On a directory, the execute permission (also called the "search bit") allows you to access files in the directory and enter it, with the cd command, for example. However, note that although the execute bit lets you enter the directory, you're not allowed to list its contents, unless you also have the read permissions to that directory.

HOW TO VIEW FILE PERMISSIONS

You can view the access permissions of a file by doing the long directory listing with the ls -l command. This is what a long directory listing might look like:
me@puter: /home/writers$ ls -l
total 17
drwxr-xr-x 3 nana writers 80 2005-09-20 21:37 dir
-rw-r----- 1 nana writers 8187 2005-09-19 13:35 file
-rwxr-xr-x 1 nana writers 10348 2005-07-17 20:31 otherfile
What does the output of ls -l mean? The very first column, the one that looks like a bunch of mumbo jumbo, shows the file type and permissions. The second column shows the number of links (directory entries that refer to the file), the third one shows the owner of the file, and the fourth one shows the group the file belongs to. The other columns show the file's size in bytes, date and time of last modification, and the filename.
The first column, the one that shows the file's permissions and looks like mumbo jumbo, is organized into four separate groups, although it certainly doesn't look very organized.
The first group consists of only one character, and it shows the file's type. For example, d means a directory and - means a normal file, so if you take a look at our example output, you'll notice dir is a directory, whilefile and otherfile are regular files.
The first character can be any of these:
d = directory
- = regular file
l = symbolic link
s = Unix domain socket
p = named pipe
c = character device file
b = block device file
The next nine characters show the file's permissions, divided into three groups, each consisting of three characters. The first group of three characters shows the read, write, and execute permissions for user, the owner of the file. The next group shows the read, write, and execute permissions for the group of the file. Similarly, the last group of three characters shows the permissions for other, everyone else. In each group, the first character means the read permission, the second one write permission, and the third one execute permission.
The characters are pretty easy to remember.
r = read permission
w = write permission
x = execute permission
- = no permission
What does this mean in practice? Let's have an example. Remember the imaginary directory listing we did at the beginning? The output looked like this:
drwxr-xr-x 3 nana writers 80 2005-09-20 21:37 dir
-rw-r----- 1 nana writers 8187 2005-09-19 13:35 file
-rwxr-xr-x 1 nana writers 10348 2005-07-17 20:31 otherfile
As we already noticed, dir is a directory, because the first column begins with a d. The owner of this directory is user nana and the group owner is writers. The first three characters, rwx, indicate the directory's owner,nana in this case, has full access to the directory. The user nana is able to access, view, and modify the files in that directory. The next three characters, r-x, indicate that all users belonging to group writers have read and execute permissions to the directory. They can change into the directory, execute files, and view its contents. However, because they don't have write permissions, they can't make any changes to the directory content. Finally, the last three characters, r-x, indicate that all the users who are not nana or don't belong into group writers, have read and execute permissions in the directory.
How about file? Because the first column begins with a -, the file is a regular file, owned by user nana and group writers, just like the directory in our example. The first three characters, rw-, indicate the owner has read and write access to the file. According to the next three characters, r--, the users belonging to groupwriters can view the file but not modify or execute it. The final three characters, ---, indicate no one else has any access to the file.
Similarly, you can see otherfile is a regular file and its owner has full access to it, while everyone else can read and execute the file but not modify it.

HOW TO SET FILE PERMISSIONS - SYMBOLIC MODE

You can set file permissions with the chmod command. Both the root user and the file's owner can set file permissions. chmod has two modes, symbolic and numeric.
The symbolic mode is pretty easy to remember. First, you decide if you set permissions for the user (u), the group (g), others (o), or all of the three (a). Then, you either add a permission (+), remove it (-), or wipe out the previous permissions and add a new one (=). Next, you decide if you set the read permission (r), write permission (w), or execute permission (x). Last, you'll tell chmod which file's permissions you want to change.
Let's have a couple of examples. Suppose we have a regular file called testfile, and the file has full access permissions for all the groups (long directory listing would show -rwxrwxrwx as the file's permissions).
Wipe out all the permissions but add read permission for everybody:

$ chmod a=r testfile
After the command, the file's permissions would be -r--r--r--
Add execute permissions for group:

$ chmod g+x testfile
Now, the file's permissions would be -r--r-xr--
Add both write and execute permissions for the file's owner. Note how you can set more than one permission at the same time:

$ chmod u+wx testfile
After this, the file permissions will be -rwxr-xr--

Remove the execute permission from both the file's owner and group. Note, again, how you can set them both at once:
$ chmod ug-x testfile
Now, the permissions are -rw-r--r--
As a summary, have a look at this quick reference for setting file permissions in symbolic mode:
Which user?
uuser/owner
ggroup
oother
aall
What to do?
+add this permission
-remove this permission
=set exactly this permission
Which permissions?
rread
wwrite
xexecute

HOW TO SET FILE PERMISSIONS - NUMERIC MODE

The other mode in which chmod can be used is the numeric mode. In the numeric mode, the file permissions aren't represented by characters. Instead, they are represented by a three-digit octal number.
4 = read (r)
2 = write (w)
1 = execute (x)
0 = no permission (-)
To get the permission bits you want, you add up the numbers accordingly. For example, the rwx permissions would be 4+2+1=7, rx would be 4+1=5, and rw would be 4+2=6. Because you set separate permissions for the owner, group, and others, you'll need a three-digit number representing the permissions of all these groups.
Let's have an example.

$ chmod 755 testfile
This would change the testfile's permissions to -rwxr-xr-x. The owner would have full read, write, and execute permissions (7=4+2+1), the group would have read and execute permissions (5=4+1), and the world would have the read and execute permissions as well.
Let's have another example:

$ chmod 640 testfile
In this case, testfile's permissions would be -rw-r-----. The owner would have read and write permissions (6=4+2), the group would have read permissions only (4), and the others wouldn't have any access permissions (0).
The numeric mode may not be as straightforward as the symbolic mode, but with the numeric mode, you can more quickly and efficiently set the file permissions. This quick reference for setting file permissions in numeric mode might help:
Which number?
0---
1--x
2-w-
3-wx
4r--
5r-x
6rw-
7rwx

How to Repair/Restore/Reinstall Grub 2 using a Ubuntu Live CD


How to Repair/Restore/Reinstall Grub 2 using a Ubuntu Live CD.



escbiosbootmenu.png

If you have installed Windows after installing Ubuntu on your computer, then Windows Boot Menu will be the default boot menu on your computer. Since Windows Boot Menu won't detectUbuntu you can't boot into Ubuntu. To fix this you need to install GRUB which is the boot menu of Linux. To install GRUB boot in to your Ubuntu CD or aPendrive which has Ubuntu. For that insert your CD or Pendrive to your computer. Restart your computer and press F12 until a box appears. On that box you will see 2 or 3 items. If you inserted a Ubuntu CD then Select CDROM.
Note :- Boot menu might change according to the computer manufacture.
After selecting you will enter in to Ubuntu CD.
You will get a screen now. Select RUN Ubuntu without installing. You will now boot in to Ubuntu.

See More : Boot From CD

First, open the Terminal.
Mount the partition you Ubuntu Installation is on. If you are not sure which it is, launch gparted (included in the Live CD) and find out. It is Usually a EXT4 Partition. Replace the XY with the drive letter, and partition number. Example: sudo mount /dev/sda5 /mnt. Then bind the directories, you need, like so:
sudo mount /dev/sdXY /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
 Then we need to be the root of the installed Ubuntu. For that use chroot.
sudo chroot /mnt
Now install, check, and update grub. This time you only need to add the partition letter (usually a) to replace X. Example:grub-install /dev/sda, grub-install –recheck /dev/sda 
grub-install /dev/sdX
grub-install --recheck /dev/sdX 
update-grub

Now you can exit you mounted hard disk, and unmount.
exit
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt
Shut down and turn your computer back on, and you will get the default Grub screen.
NOTE : Sometimes when you reboot you night not see Windows. To fix this do as below.

Boot in to Ubuntu and press CTRL + ALT + T.
A terminal window appears. Then paste the following command and press enter.
sudo update-grub
It will ask for your password. Type it and press enter.
Reboot your computer and you will see Windows now.
If you have any problems comment on this post. I will help you.

Can't Boot Ubuntu after installing Nvidia Driver Fix 2


Can't Boot Ubuntu after installing Nvidia Driver Fix 2


A lot of people has trouble booting in to Ubuntu after installation of Nvidia Driver.
Here is the second solution if first solution didn't wok.

Since you get a terminal when you boot in to Ubuntu.
Login to your account in the terminal

Then run the command.
sudo -i
and save a new Nvidia Config File by running this command.

nvidia-xconfig

Your new config file has been created!
Reboot your computer and boot in to your Ubuntu now.

Friday, February 1, 2013

You have installed a software you don't want others to use it but you can not restrict users from using it. Then this trick is for you try this.


You have installed a software you don't want others to use it but you can not restrict users from using it. Then this trick is for you try this.

First note down what will happen.
1.In your installed program list the programme will appear
2.But its folder in c:\program files will not appear
3.You will access program via command prompt and not via short cut link.

Method:
1.Remove all shortcut links of software.
-From desktop
-From quick lauch
-From start menu
-From start menu-program file
2.Now open a new text file and type complete path of program you want to use. Suppose you are using a software named example. Then type complete file path as

c:\"programes files"\example\example.exe

now save this file with whatever name you want and save with .bat or .cmd extension for example lets consider the file name as leo.cmd
3.Now copy this file in c:\windows\system32\ folder
4.Now press start button->run then type cmd and press enter
command prompt will appear navigate to the folder where your prog is located, and type,

c:\"program files">attrib "folder name in which software exists" +h +r +s

5.Now when you want to use the software type your file name(extention not necessary) in command prompt and you will be able to access the program and others will not be able even figure it out.

Windows Xp: 15 Things You Didn't Know


Windows Xp: 15 Things You Didn't Know...


1. Disable Recycle Bin
You can delete files immediately, without having them move to the Recycle Bin first. Go to the Start menu, select Run... and type ' gpedit.msc'; then select User Configuration, Administrative Templates, Windows Components, Windows Explorer and find the Do not move deleted files to the Recycle Bin setting. Set it. Poking around in gpedit will reveal a great many interface and system options, but take care -- some may stop your computer behaving as you wish. (Professional Edition only).

2. Lock Workstation
You can lock your XP workstation with two clicks of the mouse. Create a new shortcut on your desktop using a right mouse click, and enter 'rundll32.exe user32.dll,LockWorkStation' in the location field. Give the shortcut a name you like. That's it -- just double click on it and your computer will be locked. And if that's not easy enough, Windows key + L will do the same.

3. Show Hidden Installed products in Add/Remove Programs
XP hides some system software you might want to remove, such as Windows Messenger, but you can tickle it and make it disgorge everything. Using Notepad or Edit, edit the text file /windows/inf/sysoc.inf, search for the word 'hide' and remove it. You can then go to the Add or Remove Programs in the Control Panel, select Add/Remove Windows Components and there will be your prey, exposed and vulnerable.

4. System Events from DOS
For those skilled in the art of DOS batch files, XP has a number of interesting new commands. These include 'eventcreate' and 'eventtriggers' for creating and watching system events, 'typeperf' for monitoring performance of various subsystems, and 'schtasks' for handling scheduled tasks. As usual, typing the command name followed by /? will give a list of options -- they're all far too baroque to go into here.

5. IP v6
XP has IP version 6 support -- the next generation of IP. Unfortunately this is more than your ISP has, so you can only experiment with this on your LAN. Type 'ipv6 install' into Run... (it's OK, it won't ruin your existing network setup) and then 'ipv6 /?' at the command line to find out more. If you don't know what IPv6 is, don't worry and don't bother.

6. Kill Tasks from Command Line
You can at last get rid of tasks on the computer from the command line by using 'taskkill /pid' and the task number, or just 'tskill' and the process number. Find that out by typing 'tasklist', which will also tell you a lot about what's going on in your system.

7. Zips or Folders
XP will treat Zip files like folders, which is nice if you've got a fast machine. On slower machines, you can make XP leave zip files well alone by typing 'regsvr32 /u zipfldr.dll' at the command line. If you change your mind later, you can put things back as they were by typing 'regsvr32 zipfldr.dll'.

8. ClearType Technology
XP has ClearType -- M*cro$oft's anti-aliasing font display technology -- but doesn't have it enabled by default. It's well worth trying, especially if you were there for DOS and all those years of staring at a screen have given you the eyes of an astigmatic bat. To enable ClearType, right click on the desktop, select Properties, Appearance, Effects, select ClearType from the second drop-down menu and enable the selection. Expect best results on laptop displays. If you want to use ClearType on the Welcome login screen as well, set the registry entry HKEY_USERS/.DEFAULT/Control Panel/Desktop/FontSmoothingType to 2.

9. Remote Assistance
You can use Remote Assistance to help a friend who's using network address translation (NAT) on a home network, but not automatically. Get your pal to email you a Remote Assistance invitation and edit the file. Under the RCTICKET attribute will be a NAT IP address, like 192.168.1.10. Replace this with your chum's real IP address -- they can find this out by going to
What Is My IP Address? - IP Address Lookup, Internet Speed Test, IP Info, plus more -- and get them to make sure that they've got port 3389 open on their firewall and forwarded to the errant computer.

10. Auto Update Balloon Tips
Windows XP can be very insistent about you checking for auto updates, registering a Passport, using Windows Messenger and so on. After a while, the nagging goes away, but if you feel you might slip the bonds of sanity before that point, run Regedit, go to HKEY_CURRENT_USER/Software/M*cro$oft/Windows/Current Version/Explorer/Advanced and create a DWORD value called EnableBalloonTips with a value of 0.

11. Auto Login
You can start up without needing to enter a user name or password. Select Run... from the start menu and type 'control userpasswords2', which will open the user accounts application. On the Users tab, clear the box for Users Must Enter A User Name And Password To Use This Computer, and click on OK. An Automatically Log On dialog box will appear; enter the user name and password for the account you want to use.

12. Fast Start Menu
The Start Menu can be leisurely when it decides to appear, but you can speed things along by changing the registry entry HKEY_CURRENT_USER/Control Panel/Desktop/MenuShowDelay from the default 400 milliseconds to something a little snappier. Like 0.

13. Visual Songs
Windows Media Player will display the cover art for albums as it plays the tracks -- if it found the picture on the Internet when you copied the tracks from the CD. If it didn't, or if you have lots of pre-WMP music files, you can put your own copy of the cover art in the same directory as the tracks. Just call it folder.jpg and Windows Media Player will pick it up and display it.

14. Shortcuts
Windows key + Break brings up the System Properties dialogue box; Windows key + D brings up the desktop; Windows key + Tab moves through the taskbar buttons.

15. Oh!! no Crashes...
It boasts how long it can stay up. Whereas previous versions of Windows were coy about how long they went between boots, XP is positively proud of its stamina. Go to the Command Prompt in the Accessories menu from the All Programs start button option, and then type 'systeminfo'. The computer will produce a lot of useful info, including the uptime. If you want to keep these, type 'systeminfo > info.txt'. This creates a file called info.txt you can look at later with Notepad. (Professional Edition only).s

Run Command


Useful Run commands:

To Access….
Run Command
Accessibility Controls
access.cpl
Accessibility Wizard
accwiz
Add Hardware Wizard
hdwwiz.cpl
Add/Remove Programs
appwiz.cpl
Administrative Tools
control admintools
Adobe Acrobat (if installed)
acrobat
Adobe Designer (if installed)
acrodist
Adobe Distiller (if installed)
acrodist
Adobe ImageReady (if installed)
imageready
Adobe Photoshop (if installed)
photoshop
Automatic Updates
wuaucpl.cpl
Bluetooth Transfer Wizard
fsquirt
Calculator
calc
Certificate Manager
certmgr.msc
Character Map
charmap
Check Disk Utility
chkdsk
Clipboard Viewer
clipbrd
Command Prompt
cmd
Component Services
dcomcnfg
Computer Management
compmgmt.msc
Control Panel
control
Date and Time Properties
timedate.cpl
DDE Shares
ddeshare
Device Manager
devmgmt.msc
Direct X Control Panel (If Installed)*
directx.cpl
Direct X Troubleshooter
dxdiag
Disk Cleanup Utility
cleanmgr
Disk Defragment
dfrg.msc
Disk Management
diskmgmt.msc
Disk Partition Manager
diskpart
Display Properties
control desktop
Display Properties
desk.cpl
Display Properties (w/Appearance Tab Preselected)
control color
Dr. Watson System Troubleshooting Utility
drwtsn32
Driver Verifier Utility
verifier
Event Viewer
eventvwr.msc
Files and Settings Transfer Tool
migwiz
File Signature Verification Tool
sigverif
Findfast
findfast.cpl
Firefox (if installed)
firefox
Folders Properties
control folders
Fonts
control fonts
Fonts Folder
fonts
Free Cell Card Game
freecell
Game Controllers
joy.cpl
Group Policy Editor (XP Prof)
gpedit.msc
Hearts Card Game
mshearts
Help and Support
helpctr
HyperTerminal
hypertrm
Iexpress Wizard
iexpress
Indexing Service
ciadv.msc
Internet Connection Wizard
icwconn1
Internet Explorer
iexplore
Internet Properties
inetcpl.cpl
Internet Setup Wizard
inetwiz
IP Configuration (Display Connection Configuration)
ipconfig /all
IP Configuration (Display DNS Cache Contents)
ipconfig /displaydns
IP Configuration (Delete DNS Cache Contents)
ipconfig /flushdns
IP Configuration (Release All Connections)
ipconfig /release
IP Configuration (Renew All Connections)
ipconfig /renew
IP Configuration (Refreshes DHCP & Re-Registers DNS)
ipconfig /registerdns
IP Configuration (Display DHCP Class ID)
ipconfig /showclassid
IP Configuration (Modifies DHCP Class ID)
ipconfig /setclassid
Keyboard Properties
control keyboard
Local Security Settings
secpol.msc
Local Users and Groups
lusrmgr.msc
Logs You Out Of Windows
logoff
Malicious Software Removal Tool
mrt
Microsoft Access (if installed)
access.cpl
Microsoft Chat
winchat
Microsoft Excel (if installed)
excel
Microsoft Frontpage (if installed)
frontpg
Microsoft Movie Maker
moviemk
Microsoft Paint
mspaint
Microsoft Powerpoint (if installed)
powerpnt
Microsoft Word (if installed)
winword
Microsoft Syncronization Tool
mobsync
Mouse Properties
control mouse
Mouse Properties
main.cpl
Nero (if installed)
nero
Netmeeting
conf
Network Connections
control netconnections
Network Connections
ncpa.cpl
Network Setup Wizard
netsetup.cpl
Notepad
notepad
Object Packager
packager
ODBC Data Source Administrator
odbccp32.cpl
On Screen Keyboard
osk
Opens AC3 Filter (If Installed)
ac3filter.cpl
Outlook Express
msimn
Paint
pbrush
Password Properties
password.cpl
Performance Monitor
perfmon.msc
Performance Monitor
perfmon
Phone and Modem Options
telephon.cpl
Phone Dialer
dialer
Pinball Game
pinball
Power Configuration
powercfg.cpl
Printers and Faxes
control printers
Printers Folder
printers
Private Character Editor
eudcedit
Quicktime (If Installed)
QuickTime.cpl
Quicktime Player (if installed)
quicktimeplayer
Real Player (if installed)
realplay
Regional Settings
intl.cpl
Registry Editor
regedit
Registry Editor
regedit32
Remote Access Phonebook
rasphone
Remote Desktop
mstsc
Removable Storage
ntmsmgr.msc
Removable Storage Operator Requests
ntmsoprq.msc
Resultant Set of Policy (XP Prof)
rsop.msc
Scanners and Cameras
sticpl.cpl
Scheduled Tasks
control schedtasks
Security Center
wscui.cpl
Services
services.msc
Shared Folders
fsmgmt.msc
Shuts Down Windows
shutdown
Sounds and Audio
mmsys.cpl
Spider Solitare Card Game
spider
SQL Client Configuration
cliconfg
System Configuration Editor
sysedit
System Configuration Utility
msconfig
System Information
msinfo32
System Properties
sysdm.cpl
Task Manager
taskmgr
TCP Tester
tcptest
Telnet Client
telnet
Tweak UI (if installed)
tweakui
User Account Management
nusrmgr.cpl
Utility Manager
utilman
Windows Address Book
wab
Windows Address Book Import Utility
wabmig
Windows Backup Utility (if installed)
ntbackup
Windows Explorer
explorer
Windows Firewall
firewall.cpl
Windows Magnifier
magnify
Windows Management Infrastructure
wmimgmt.msc
Windows Media Player
wmplayer
Windows Messenger
msmsgs
Windows Picture Import Wizard (need camera connected)
wiaacmgr
Windows System Security Tool
syskey
Windows Update Launches
wupdmgr
Windows Version (to show which version of windows)
winver
Windows XP Tour Wizard
tourstart
Wordpad
write