Cannot connect after remove graphical interface of server

Forum / NoMachine for Linux / Cannot connect after remove graphical interface of server

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #22709
    mikesxf
    Participant

    I have a server which has installed Red Hat Enterprise Server 7.0 and I install GNOME. Then for some reason, I remove GNOME using yum groups remove GNOME. But when I try to reconnect it, it indeed connect successfully I think, but before I can see anything, it disconnect and report The connection with the server was lost. Error is 5: Input/Output error.

    The remote server is redhat enterprise linux server 7.0, and it has no display screen and I think it is connecting to a virtual display.

    #22717
    Britgirl
    Keymaster

    You need a desktop environment installed in order to be able to use NoMachine. If you remove the Graphical Interface, NoMachine can’t run a graphical remote session.

    As stated here: https://www.nomachine.com/DT02O00124

    Software requirements
    A desktop environment must already be installed. This applies also to headless Linux machines.

     

    If you don’t want to use Gnome, you can use KDE, LXDE, XFCE or another if you prefer.

    #22728
    mikesxf
    Participant

    But at first, the redhat doesn’t have a Graphical Interface and when I try to connect it, NoMachine says it can’t detect display screen and will create a virtual one (some words like that, I’m sorry I can’t remember clearly).

    After using for some time, I find that if I restart nx service, the applications I haved opened are closed (be killed?). I think it can be fixed by installing the real Graphical Interface like GNOME on server. But when I uninstall GNOME for some other reason, I meet the problem above. I just can’t get it back to the original condition.

    So that’s the situation. Thanks for help!

    I have read the guide you provide. I’m sorry I’m a newbie of redhat server. The owner of server tell me the OS doesn’t have a graphical interface. I’m confused now.

    • This reply was modified 5 years, 6 months ago by Britgirl.
    • This reply was modified 5 years, 6 months ago by mikesxf.
    #22731
    Britgirl
    Keymaster

    If NoMachine doesn’t find a local x server, NoMachine starts its own virtual display. If you restart the NoMachine service, the virtual display it just created is obviously terminated, hence you are disconnected.

    To avoid this problem, you can either:

    – make sure a graphical interface is installed

    – or avoid restarting service

    #22740
    mikesxf
    Participant

    Thank you for your reply. But I’m still a little confused.

    Since NoMachine can start its own virtual display, does it mean that I can connect to server without GNOME etc?

    Is it normal that if I restart service, the firefox, for example, I’m using will be closed without local x server?

    #22801
    Britgirl
    Keymaster

    The display server (or X server) is not the same thing as the desktop environment.

    Whilst NoMachine can use its own display server (which is a virtual X server) if it doesn’t find one on the Linux host, it still needs a desktop environment to be able to show you a desktop, so it’s not advisable to uninstall the desktop environment (Gnome, in your case).

    There’s a brief description of the difference between the display server and desktop environment: https://www.quora.com/What-is-the-difference-between-desktop-environment-Window-manager-and-display-server-in-GNU-Linux-OS

    If you prefer a longer, more detailed read, the following could also be useful:
    https://www.lifewire.com/window-manager-vs-the-desktop-environment-in-linux-4588338

Viewing 6 posts - 1 through 6 (of 6 total)

This topic was marked as solved, you can't post.