jeltsch's blog

Changing job priority under Linux

If the job is already running use:

renice 19 -p 2478

This gives the job 2478 (as identified with ps -aux) the lowest possible priority. renice -20 would give it highest priority. If the job is not yet running you can execute it with nice command:

nice +19 amule<(code>

to execute amule with lowest possible priority) and

nice -20 amule

to execute it with highest priority.

Problem to access X desktop from a root terminal

It never happened to me under Red Hat 9, but when I am working in KDE as a normal user and try to execute emacs from a terminal, in which I am su, I occasionally get the following error message:

jeltsch@mcblpc2:~> su
Password:
mcblpc2:/home/jeltsch emacs test.txt
Xlib: connection to ":0.0" refused by server
Xlib: Invalid XDM-AUTHORIZATION-1 key (failed key comparison)
emacs: Cannot connect to X server :0.0.
Check the DISPLAY environment variable or use `-d'.

Pages