Friday, April 19, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 12399  / 2 Years ago, fri, april 29, 2022, 4:04:54

I was trying to make a VNC server in my Ubuntu 11.04, which can allow me to login even system reboots. Therefore, I have tried as following, but from vncviewer I can't connect.



Server listening




  1. Install



    $ sudo -s
    # apt-get install vnc4server xinetd

  2. Security



    # vncpasswd /root/.vncpasswd
    Password:
    Verify:

  3. As a service



    # vim /etc/xinetd.d/Xvnc
    service Xvnc
    {
    type = UNLISTED
    disable = no
    socket_type = stream
    protocol = tcp
    wait = yes
    user = root
    server = /usr/bin/Xvnc
    server_args = -inetd :1 -query localhost -geometry 1024x768 -depth 16 -once -fp /usr/share/X11/fonts/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vncpasswd
    port = 5901
    }

  4. Start the service



    # service xinetd stop
    # service xinetd start



Client trying



$ vncviewer 192.168.1.125:1

TigerVNC Viewer for X version 1.0.90 - built May 10 2011 10:04:22
Copyright (C) 2002-2005 RealVNC Ltd.
Copyright (C) 2000-2006 TightVNC Group
Copyright (C) 2004-2009 Peter Astrand for Cendio AB
See http://www.tigervnc.org for information on TigerVNC.

Wed Sep 7 10:08:20 2011
CConn: connected to host 192.168.1.125 port 5901
main: read: Connection reset by peer (104)

More From » vnc

 Answers
0

You might want to try x11vnc - a very powerful, relatively easy to use solution.



Please see my previous answer on a similar topic for more info. That answer also points towards a number of different ways to set x11vnc up as a service on login. I have this working for my own personal server and it's been completely reliable.


[#43581] Saturday, April 30, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rtbrbab

Total Points: 461
Total Questions: 126
Total Answers: 117

Location: Saudi Arabia
Member since Fri, Jul 1, 2022
2 Years ago
rtbrbab questions
Fri, May 5, 23, 14:22, 1 Year ago
Tue, Nov 16, 21, 14:41, 2 Years ago
Thu, Mar 23, 23, 20:47, 1 Year ago
Sat, Jun 18, 22, 21:36, 2 Years ago
;