Good day! I have a dedicated server with
Debian OS, which is located hundreds of kilometers from me. I manage it with
SSH . But now I'm sick of it, I want visual access to the desktop. Shoveling a pile of articles and tips, what's better, what's better, I selected several options:
X11 forwarding : they say it is convenient, simple, clear. Requires Putty and X server for Windows (Xming valid). But I use Mac OS, so this option did not suit me.
VNC : I found some articles about this, found out that it’s as simple as X11. Immediately I found a VNC server for Debian - the
VNC4Server and the VNC client for Mac OS, called
Chicken of the VNC .
')
And so, let's proceed to the installation ...
Installing VNC4Server
1. Install VNC4Server
apt-get install vnc4server xinetd
2. Initial launch of VNC4Server
vnc4server
When you start VNC4Server prompts 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 '178.63.15.15:1 (root)' desktop is 178.63.15.15:1
3. Stop the server
vnc4server -kill :1
where 1 is a number, in connection settings, 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’s like this:
5. Change the attributes of the / etc / X11 / xinit / xinitrc file and make it executable
chmod 755 /etc/X11/xinit/xinitrc
6. Start VNC server
vnc4server
Remote Desktop Connection with Chicken of the VNC
1. Start
Chicken of the VNC , the VNC Login window will appear
2. In the
Host field, enter the IP address of the server (which you were issued by VNC4Server at startup),
for example, 178.63.15.153. In the
Display field, enter the number that VNC4Server issued to you at startup,
for example, 14. In the
Password field, enter the password you specified when you initially started the VNC4Server
5. Click
ConnectAnd so, if you have a desktop, congratulations! :)
And if you have a nice grid that cuts your eyes, and a cursor in the form of a cross, then you need to install
GNOME . How to do this is described below.
GNOME installation
1. Start the GNOME installation
apt-get install gnome
The installation will be long and boring ... Customize it in your own discretion.
2. After installing GNOME, restart VNC4Server
vnc4server -kill :1
then
vnc4server
3. Reconnect using VNC client. You should now have a colorful
Debian desktop and a couple of daddies. Successful use;)