Remote access to the Debian desktop

    Good afternoon! I have a dedicated server with Debian OS , which is hundreds of kilometers from me. I manage it using SSH . But now I'm tired of it, I want visual access to the desktop. I shoveled through a pile of articles and tips that it’s better, the better, I selected several options:

    X11 forwarding : they speak conveniently, simply, clearly. Putty and an X server for Windows are required (Xming is permissible). But I use Mac OS, so this option did not suit me.

    VNC : I found a few articles about this, I learned that it is as simple as X11. Immediately I found a VNC server for Debian - a VNC4Server and a VNC client for Mac OS, called Chicken of the VNC .

    And so, let's proceed with the installation ...

    Install VNC4Server

    1. Install VNC4Server
    apt-get install vnc4server xinetd

    2. Initial launch of VNC4Server

    At startup, VNC4Server will ask you to enter a password for remote access.
    After entering the password, the server will start and write the parameters for access, as follows:
    New ' (root)' desktop is

    3. Stop the server
    vnc4server -kill :1

    where 1 is a digit, in connection parameters, after colons.

    4. Editing the file ~ / .vnc / xstartup
    nano ~/.vnc/xstartup

    uncomment the following lines:
    unset SESSION_MANAGER exec /etc/X11/xinit/xinitrc

    and in the end it will turn out like this:
    # Uncomment the following two lines for normal desktop:
     exec /etc/X11/xinit/xinitrc
    [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
     [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
     #xsetroot -solid grey
     #vncconfig -iconic &
     #x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
     #x-window-manager &

    5. Change the attributes of the file / etc / X11 / xinit / xinitrc and make it executable
    chmod 755 /etc/X11/xinit/xinitrc

    6. We start the VNC server

    Remote Desktop Connection with Chicken of the VNC

    1. Run Chicken of the VNC , the VNC Login window will appear
    2. In the Host field, enter the IP address of the server (which VNC4Server gave you at startup), for example
    3. In the Display field, enter the number that VNC4Server gave you at startup, for example 1
    4. In the Password field, enter the password that you specified when you first started VNC4Server
    5. Click Connect.

    And so, if you have a desktop - congratulations! :)
    And if you have a nice mesh that cuts your eyes, and the cursor in the form of a cross, then you need to install GNOME . How to do this is described below.

    GNOME Installation

    1. Run GNOME Installation
    apt-get install gnome

    Installation will be long and boring ... Customize it as you wish.

    2. After installing GNOME, restart VNC4Server
    vnc4server -kill :1


    3. Reconnect using the VNC client. You should now have a colorful Debian desktop and a couple of daddies. Have a good use;)

    Also popular now: