Add this line to your /root/.bashrc you would of course change it to your user name.Originally Posted by m_yates
Code:# Allows me to run an X program as root export XAUTHORITY=/home/stephen/.Xauthority
In Knoppix installed to the hard drive, it is possible to open X programs from a console program automatically as root. For example, if I login to KDE as a user, open Konsole, su to become root, then enter a command like "kwrite", a new window will open up, allowing me to run kwrite as root.
If I install Debian using the official installer, I cannot open X programs as root. Does anyone know how Knoppix does it? In my normal Debian system, I have to enter the command "xhost local:root" to give root permission to open a display. I would like root to automatically have permission from my user account every time I log on. I know it introduces some security issues, but I don't care. It is very convenient to have the ability to open windows as root from a console.
I know this is a little off topic (sorry).
Add this line to your /root/.bashrc you would of course change it to your user name.Originally Posted by m_yates
Code:# Allows me to run an X program as root export XAUTHORITY=/home/stephen/.Xauthority
Thanks Stephen. I'll give this a try.
AMD EPYC 7282 CPU Processor 16 Cores 32 Threads 2.8GHZ up to 3.2GHZ 120W no lock
$76.00
Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc...
$419.99
Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc...
$619.99
Intel Core i7-14700K Unlocked Desktop Processor
$409.99
Intel Core i9-13900KF Unlocked Desktop Processor - 24 Cores (8P+16E) & 32 Thread
$535.84
Intel - Core i7-14700K 14th Gen 20-Core 28-Thread - 4.3GHz (5.6GHz Turbo) Soc...
$444.99
Intel Core i5-12600KF Desktop Processor 10 (6P+4E) Cores up to 4.9 GHz Unlocked.
$145.59
AMD Ryzen 5 5500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor
$99.00
Intel Core i7-11700 8 Core LGA1200 CPU Processor SRKNS
$245.00
INTEL CORE I7-8700 PROCESSOR | 3.20GHZ | SR3QS
$119.99