Results 1 to 5 of 5

Thread: terminal as root for editing-no good

  1. #1
    Junior Member registered user
    Join Date
    Apr 2004
    Posts
    23

    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.

  2. #2
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    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.

  3. #3
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    900
    root doesn't have access to the Xserver. Issue this as user:
    xhost local:

  4. #4
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    Quote 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.

  5. #5
    Junior Member registered user
    Join Date
    Apr 2004
    Posts
    23

    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

  1. Editing System files as 'root'
    By phdzg in forum Hdd Install / Debian / Apt
    Replies: 6
    Last Post: 02-08-2005, 11:46 PM
  2. Replies: 0
    Last Post: 05-18-2004, 04:05 PM
  3. editing smb.conf
    By Legithrandil in forum Networking
    Replies: 3
    Last Post: 03-31-2004, 04:44 PM
  4. editing /KNOPPIX/etc/samba/samba.conf as root ?!?!
    By smarchand291 in forum General Support
    Replies: 0
    Last Post: 11-08-2003, 11:41 PM
  5. [announce] S-terminal: a secure X terminal based on KNOPPIX
    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
  •  


Rare Vintage Apple 630-0101 128K/512K Macintosh Logic Motherboard - UNTESTED picture

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

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

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

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

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

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

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

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

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

1984 APPLE MACINTOSH Model M0001 1st MAC 128K 40th Anniversary PICASSO KIT NICE

$4999.99