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.

Cisco Nexus N9K-C92160YC-X 48P 25GbE SFP28 6P QSFP+/QSFP28 PE Switch
$439.00
Cisco WS-C3650-12X48UR-L 48-Port Stackable Layer 3 8x10G SFP+ Port Switch
$129.99
Cisco Catalyst C9130AXI-B WiFi 6 802.11ax Wireless Access Point Brand New
$101.99
Cisco Acacia DP04QSDD-E25-840 400G QSFP-DD Coherent DCO Transceiver Module
$699.99
Cisco Catalyst WS-C2960X-48FPD-L 48-Port Gigabit Managed PoE+ Ethernet Switch
$69.99
Cisco | N3K-C3232C | 32-Port 100G QSFP Network Switch W/ 2x PSU, 2x Power Cords
$205.00
Cisco ISR4451-X/K9 Integrated Services Router
$95.00
CISCO Services Router C891F-K9, Grade B, SKU 16188
$24.94
CISCO INDUSTRIAL SWITCH IE-3100-8T2C-E New
$1049.00
Cisco Catalyst WS-C2960+24TC-S 24-Port Gigabit Managed SFP Switch
$39.99