Difference between revisions of "TroubleShooting"
From Linuxintro
imported>ThorstenStaerk |
|||
(6 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
* look what the problem is using the [[command]] | * look what the problem is using the [[command]] | ||
[[strace]] | [[strace]] | ||
+ | * if it is a script make sure it has Unix linefeeds, not DOS ones, best use | ||
+ | dos2unix ''script'' | ||
− | + | = My program aborts with an error message = | |
+ | See [[error messages and their solutions]]. | ||
+ | |||
+ | = Cannot do graphics = | ||
+ | Warning: No xauth data; using fake authentication data for X11 forwarding. | ||
+ | => have you changed your hostname? | ||
= My network connection is broken = | = My network connection is broken = | ||
Line 18: | Line 25: | ||
= root-Password is lost = | = root-Password is lost = | ||
− | + | To reset the root password, boot Linux with the parameter "init=/bin/bash" | |
You get a root-shell. Enter: | You get a root-shell. Enter: | ||
mount -o remount, rw / | mount -o remount, rw / | ||
Line 30: | Line 37: | ||
= Scripting = | = Scripting = | ||
− | |||
− | |||
If you want every line to be shown with evaluated values, write the following to the beginning of the script: | If you want every line to be shown with evaluated values, write the following to the beginning of the script: | ||
set -x | set -x | ||
or -xv for verbose | or -xv for verbose | ||
+ | |||
+ | = TroubleShooting display = | ||
+ | Get an problem with your display and you do not know if it is the graphics card, the monitor, or the display manager settings? See [[troubleshooting display]] | ||
= TroubleShooting network = | = TroubleShooting network = | ||
Line 41: | Line 49: | ||
= TroubleShooting sound = | = TroubleShooting sound = | ||
See [[troubleshooting sound]]. | See [[troubleshooting sound]]. | ||
+ | |||
+ | = TroubleShooting printers = | ||
+ | See [[troubleshooting printers]]. | ||
+ | |||
+ | = See also = | ||
+ | * [[error messages]] -- error messages when running or [[build]]ing programs plus their solutions |
Latest revision as of 13:47, 21 January 2015
Contents
- 1 My program does not start
- 2 My program aborts with an error message
- 3 Cannot do graphics
- 4 My network connection is broken
- 5 Umount does not work
- 6 root-Password is lost
- 7 find out which files are accessed by a program
- 8 Scripting
- 9 TroubleShooting display
- 10 TroubleShooting network
- 11 TroubleShooting sound
- 12 TroubleShooting printers
- 13 See also
My program does not start
If your program does not start
- make sure you have execute priviledges for it using the command
ls -l
- make sure the program can load its libraries using the command
ldd
- look what the problem is using the command
strace
- if it is a script make sure it has Unix linefeeds, not DOS ones, best use
dos2unix script
My program aborts with an error message
See error messages and their solutions.
Cannot do graphics
Warning: No xauth data; using fake authentication data for X11 forwarding.
=> have you changed your hostname?
My network connection is broken
Umount does not work
lsof | grep /mnt
Then kill the process.
root-Password is lost
To reset the root password, boot Linux with the parameter "init=/bin/bash" You get a root-shell. Enter:
mount -o remount, rw / passwd mount -o remount,ro /
and reboot
find out which files are accessed by a program
To find out which files are accessed by a program start it with
strace -e open program
Scripting
If you want every line to be shown with evaluated values, write the following to the beginning of the script:
set -x
or -xv for verbose
TroubleShooting display
Get an problem with your display and you do not know if it is the graphics card, the monitor, or the display manager settings? See troubleshooting display
TroubleShooting network
TroubleShooting sound
TroubleShooting printers
See also
- error messages -- error messages when running or building programs plus their solutions