Announcement

Collapse
No announcement yet.

setenv DISPLAY not working

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    setenv DISPLAY not working

    Hi,

    I am using kubuntu 8.04 Hardy version and when i try to open any of files from root login (through terminal), i am getting an error message like this:
    When I try to open /etc/ssh/ssh_config

    No protocol specified
    Display :0.0 unavailable, simulating -nw

    Can anybody suggest me what could be the problem? and how to resolve.

    My second query is, I have a ubuntu 7.10 desktop next to me, to which i would like to have a "xhost" ssh connection from my kubuntu PC. Here also, i am not able to "setenv DISPLAY my_pc_ip_address:0.0 and see the xsession of ubuntu in my machine.

    Anybody can give me a solution for the above two in a step by step manner, Thanks a lot in advance, i am totally new to this OS.

    Rgds,
    CRS.


    #2
    Re: setenv DISPLAY not working

    are u in root setting the display variable

    try sudo /bin/bash and input ur pw

    from there set the environment variable and try again.
    Wanna know more about Me and My computer then click here

    Comment


      #3
      Re: setenv DISPLAY not working

      Hi,

      Can anybody give me a support on the following.

      thanks.
      crs

      Originally posted by crs
      Hi,

      I am using kubuntu 8.04 Hardy version and when i try to open any of files from root login (through terminal), i am getting an error message like this:
      When I try to open /etc/ssh/ssh_config

      No protocol specified
      Display :0.0 unavailable, simulating -nw

      Can anybody suggest me what could be the problem? and how to resolve.

      My second query is, I have a ubuntu 7.10 desktop next to me, to which i would like to have a "xhost" ssh connection from my kubuntu PC. Here also, i am not able to "setenv DISPLAY my_pc_ip_address:0.0 and see the xsession of ubuntu in my machine.

      Anybody can give me a solution for the above two in a step by step manner, Thanks a lot in advance, i am totally new to this OS.

      Rgds,
      CRS.

      Comment


        #4
        Re: setenv DISPLAY not working

        Originally posted by crs
        I am using kubuntu 8.04 Hardy version and when i try to open any of files from root login (through terminal), i am getting an error message like this:
        When I try to open /etc/ssh/ssh_config

        No protocol specified
        Display :0.0 unavailable, simulating -nw

        Can anybody suggest me what could be the problem? and how to resolve.
        in your "normal" user enter: xhost +
        in root enter: export DISPLAY=:0.0
        then do what you need to do... e.g.: kedit /etc/ssh/ssh_config
        though the simple way to do it from "normal" user is: kdesudo kedit /etc/ssh/ssh_config

        Originally posted by crs
        My second query is, I have a ubuntu 7.10 desktop next to me, to which i would like to have a "xhost" ssh connection from my kubuntu PC. Here also, i am not able to "setenv DISPLAY my_pc_ip_address:0.0 and see the xsession of ubuntu in my machine.
        remote X windows used to be disabled by default in *ubuntu systems.
        i believe it still is.
        i haven't check lately.
        to do what you want to do you have 2 options:
        a) use ssh -X ... (basically you connect to the remote system and X is tunneled back)
        b) enable remote X windows (i think that's done by commenting out the tcplisten in kdmrc)
        then open xhost and set the display variable the usual way...

        hth
        gnu/linux is not windoze

        Comment

        Working...
        X