-
Junior Member
registered user
terminal as root for editing-no good
In a terminal, I try to open kedit or kate, whatever, to edit a file such as /etc/apt/sources.list and get this:
root@knopbox:/home/dpucci# kedit /etc/apt/sources.list
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
kedit: cannot connect to X server :0.0
Consequently I must open kedit as root and then hunt for the file to edit, etc.
What gives? Any help would be appreciated. I also use Mandrake with no problem, but I
prefer Knoppix/Debian.
Using Knoppix v. 3.4.
-
You could use a console editor for editing as root. If nano is included in 3.4 it's a lot easier to use than vi (which isn't that difficult either), you could allways apt-get nano if it isn't included.
Other than that you can do: ln -s /home/dpucci/.Xauthority /root/.Xauthority to be able to run kdeapps as root.
Or do as user: kdesu kedit /etc/apt/sources.list which I think is the preferred way nowadays.
-
Senior Member
registered user
root doesn't have access to the Xserver. Issue this as user:
xhost local:
-
![Quote](images/misc/quote_icon.png)
Originally Posted by
mzilikazi
root doesn't have access to the Xserver. Issue this as user:
xhost local:
Thanks! Googled the $£&% out of this one once, didn't find your solution which is quite functional.
-
Junior Member
registered user
Thank you...mzilikazi!
Thank you gooroo of the CLI and bash mzilikazi!!!!
I am trying to learn to be more effeicient with the cli and bash.
Any tutorials you'd recommend?
Thanks again
pgk
Similar Threads
-
By phdzg in forum Hdd Install / Debian / Apt
Replies: 6
Last Post: 02-08-2005, 11:46 PM
-
By IsaacKuo in forum Networking
Replies: 0
Last Post: 05-18-2004, 04:05 PM
-
By Legithrandil in forum Networking
Replies: 3
Last Post: 03-31-2004, 04:44 PM
-
By smarchand291 in forum General Support
Replies: 0
Last Post: 11-08-2003, 11:41 PM
-
By bkw1a in forum Customising & Remastering
Replies: 2
Last Post: 03-19-2003, 03:29 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Rare Vintage Apple 630-0101 128K/512K Macintosh Logic Motherboard - UNTESTED picture](/store/img/g/lxQAAOSwZUVmiLdO/s-l225/Rare-Vintage-Apple-630-0101-128K-512K-Macintosh-Lo.jpg)
Rare Vintage Apple 630-0101 128K/512K Macintosh Logic Motherboard - UNTESTED
$60.00
![Vintage Apple 2e A2S2064 Desktop 1.023mhz 128k Ram No Storage READ DESCRIPTION picture](/store/img/g/nI0AAOSwbK5mhDcy/s-l225/Vintage-Apple-2e-A2S2064-Desktop-1-023mhz-128k-Ram.jpg)
Vintage Apple 2e A2S2064 Desktop 1.023mhz 128k Ram No Storage READ DESCRIPTION
$399.99
![RARE Vintage Apple MacBag by Linebacker for Macintosh 128k 512k picture](/store/img/g/A7gAAOSw~vxmXP~C/s-l225/RARE-Vintage-Apple-MacBag-by-Linebacker-for-Macint.jpg)
RARE Vintage Apple MacBag by Linebacker for Macintosh 128k 512k
$150.00
![Macintosh Platinum Mouse - AppleĀ 128K 512K 512Ke Mac Plus Lisa IIe M0100 - NEW picture](/store/img/g/~R8AAOSw5opkqjoc/s-l225/Macintosh-Platinum-Mouse-Apple-128K-512K-512Ke-Mac.jpg)
Macintosh Platinum Mouse - AppleĀ 128K 512K 512Ke Mac Plus Lisa IIe M0100 - NEW
$44.99
![Apple IIe Computer 128k Enhanced loaded color monitor original box drives picture](/store/img/g/su0AAOSwuH5mgveh/s-l225/Apple-IIe-Computer-128k-Enhanced-loaded-color-moni.jpg)
Apple IIe Computer 128k Enhanced loaded color monitor original box drives
$888.00
![Vintage Apple Macintosh Classic 128K Application On New 400K Double Density Disk picture](/store/img/g/GVIAAOSwrPpl~3Sd/s-l225/Vintage-Apple-Macintosh-Classic-128K-Application-O.jpg)
Vintage Apple Macintosh Classic 128K Application On New 400K Double Density Disk
$26.99
![Apple Macintosh 128k 512k Plus Analog Board Capacitor Re-Cap Kit - US Shipping picture](/store/img/g/8mwAAOSw2I1mIvLI/s-l225/Apple-Macintosh-128k-512k-Plus-Analog-Board-Capaci.jpg)
Apple Macintosh 128k 512k Plus Analog Board Capacitor Re-Cap Kit - US Shipping
$23.95
![Apple IIe 128K Computer Only Minus Keyboard A2S2064 SOLD AS IS picture](/store/img/g/pQwAAOSwXM1maxj-/s-l225/Apple-IIe-128K-Computer-Only-Minus-Keyboard-A2S206.jpg)
Apple IIe 128K Computer Only Minus Keyboard A2S2064 SOLD AS IS
$82.55
![Apple Macintosh 128K M0001 Computer with Mouse, no keyboard. Case included. 1984 picture](/store/img/g/PKUAAOSwQ2Vk0TIr/s-l225/Apple-Macintosh-128K-M0001-Computer-with-Mouse-no-.jpg)
Apple Macintosh 128K M0001 Computer with Mouse, no keyboard. Case included. 1984
$513.44
![1984 APPLE MACINTOSH Model M0001 1st MAC 128K 40th Anniversary PICASSO KIT NICE picture](/store/img/g/9FYAAOSwen9mCtep/s-l225/1984-APPLE-MACINTOSH-Model-M0001-1st-MAC-128K-40th.jpg)
1984 APPLE MACINTOSH Model M0001 1st MAC 128K 40th Anniversary PICASSO KIT NICE
$4999.99