LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   kate in the console (https://www.linuxquestions.org/questions/ubuntu-63/kate-in-the-console-323409/)

improverrr 05-14-2005 09:28 AM

kate in the console
 
in other distros I can type the "kate /file path/file_name" command and the editor will open in a GUI window. but in kubuntu I get the following error:

any ideas to fix this?


root@ubuntu:/home/freak # kate /etc/samba/smb.conf
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kded: cannot connect to X server :0.0
kded: ERROR: KUniqueApplication: Registering failed!
kded: ERROR: Communication problem with kded, it probably crashed.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kdeinit: Can't connect to the X Server.
kdeinit: Might not terminate at end of session.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kate: cannot connect to X server :0.0
kate: ERROR: KUniqueApplication: Registering failed!
kate: ERROR: Communication problem with kate, it probably crashed.

reddazz 05-14-2005 10:00 AM

You can use emacs or vi for editing text in a console. If you really want to use kate as root or another user, you will have to do,
Code:

$xhost +localhost
$su
#kate filename


improverrr 05-14-2005 01:18 PM

Quote:

Originally posted by reddazz
You can use emacs or vi for editing text in a console. If you really want to use kate as root or another user, you will have to do,
Code:

$xhost +localhost
$su
#kate filename


this didnt quite work on my machine, but this did ( i got this from another forum)....appreciate the help though! (i hit your thanks button ) :D



1 - Open Konsole
2 - Session --> New Shell
3 - Type--> xhost + [ENTER]
4 - View --> Shell

reddazz 05-14-2005 02:10 PM

Its more or less the same command.


All times are GMT -5. The time now is 12:36 PM.