Setup VNC

From IrisFrame

Jump to: navigation, search

If your RAM allows for it you might want to install the VNC server.

You can follow the instructions from DSL but I want to see the actual screen, so the x11vnc package seems like a better option:

I did the following:

apt-get install x11vnc
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  x11vnc
0 upgraded, 1 newly installed, 0 to remove and 131 not upgraded.
Need to get 180kB of archives.
After unpacking 431kB of additional disk space will be used.
Get:1 http://ftp.us.debian.org stable/main x11vnc 0.7-1 [180kB]
Fetched 180kB in 3s (50.0kB/s) 
Selecting previously deselected package x11vnc.
(Reading database ... 14483 files and directories currently installed.)
Unpacking x11vnc (from .../archives/x11vnc_0.7-1_i386.deb) ...
Setting up x11vnc (0.7-1) ...

And updated /home/dsl/.xinitrc with:

 /usr/bin/x11vnc &

Unfortunately I get:

# x11vnc
x11vnc: error while loading shared libraries: libXrandr.so.2: cannot open shared object file: No such file or directory

So:

# apt-get install libxrandr2

Reading Package Lists... Done Building Dependency Tree... Done The following NEW packages will be installed:

 libxrandr2
0 upgraded, 1 newly installed, 0 to remove and 131 not upgraded.
Need to get 0B/171kB of archives.
After unpacking 328kB of additional disk space will be used.
(Reading database ... 14495 files and directories currently installed.)
Unpacking libxrandr2 (from .../libxrandr2_4.3.0.dfsg.1-14sarge1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libxrandr2_4.3.0.dfsg.1-14sarge1_i386.deb (--unpack):
 trying to overwrite `/usr/X11R6/lib/libXrandr.so.2.0', which is also in package xlibs
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libxrandr2_4.3.0.dfsg.1-14sarge1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
# dpkg -i --force-all /var/cache/apt/archives/libxrandr2_4.3.0.dfsg.1-14sarge1_i386.deb

And eventually:

# startx
# x11vnc -display :0
Personal tools