Find the answer to your Linux question:
Results 1 to 2 of 2
Linux Mint 13/Maya (Ubuntu 12.04 LTS) Okay, I am stumped. I am trying to set up tightvncserver via xinetd for graphical log-in and after fixing a bunch of bugs on ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru D-cat's Avatar
    Join Date
    Jan 2009
    Location
    Bounce between Dover, NH - Shapleigh, ME
    Posts
    1,638

    Question xinetd + tightvncserver


    Linux Mint 13/Maya (Ubuntu 12.04 LTS)

    Okay, I am stumped.

    I am trying to set up tightvncserver via xinetd for graphical log-in and after fixing a bunch of bugs on the command line, I have it working manually but it will not work automatically; it launches and closes in under a second. Same command line, so now I don't get it. What am I doing wrong?

    ---

    /etc/services entry
    Code:
    vnc800          5904/tcp                        # VNC Server -  800x600
    /etc/xinetd.conf
    Code:
    # Simple configuration file for xinetd                                                                                        
    #                                                                                                                             
    # Some defaults, and include /etc/xinetd.d/                                                                                   
    
    defaults
    {
    
    # Please note that you need a log_type line to be able to use log_on_success
    # and log_on_failure. The default is the following :
    # log_type = SYSLOG daemon info
    
    log_type        = FILE /var/log/xinetd
    log_on_success  = PID HOST EXIT
    log_on_failure  = HOST ATTEMPT
    
    }
    
    includedir /etc/xinetd.d
    /etc/xinetd.d/vnc800
    Code:
    service vnc800
    {
    disable     = no
    socket_type = stream
    protocol    = tcp
    group       = tty
    wait        = no
    user        = nobody
    server      = /usr/bin/Xvnc
    server_args = -inetd :4 -query localhost -geometry 800x600 -depth 16 -once -fp /usr/share/fonts/X11/misc
    port        = 5904
    }
    /var/log/syslog
    Code:
    Jun 27 22:54:55 Server xinetd[16248]: Reading included configuration file: /etc/xinetd.d/chargen [file=/etc/xinetd.conf] [line=18]
    Jun 27 22:54:55 Server xinetd[16248]: Reading included configuration file: /etc/xinetd.d/daytime [file=/etc/xinetd.d/daytime] [line=28]
    Jun 27 22:54:55 Server xinetd[16248]: Reading included configuration file: /etc/xinetd.d/discard [file=/etc/xinetd.d/discard] [line=26]
    Jun 27 22:54:55 Server xinetd[16248]: Reading included configuration file: /etc/xinetd.d/echo [file=/etc/xinetd.d/echo] [line=25]
    Jun 27 22:54:55 Server xinetd[16248]: Reading included configuration file: /etc/xinetd.d/fex [file=/etc/xinetd.d/fex] [line=26]
    Jun 27 22:54:55 Server xinetd[16248]: Reading included configuration file: /etc/xinetd.d/time [file=/etc/xinetd.d/time] [line=18]
    Jun 27 22:54:55 Server xinetd[16248]: Reading included configuration file: /etc/xinetd.d/vnc800 [file=/etc/xinetd.d/vnc800] [line=12]
    Jun 27 22:54:55 Server xinetd[16248]: removing chargen
    Jun 27 22:54:55 Server xinetd[16248]: removing chargen
    Jun 27 22:54:55 Server xinetd[16248]: removing daytime
    Jun 27 22:54:55 Server xinetd[16248]: removing daytime
    Jun 27 22:54:55 Server xinetd[16248]: removing discard
    Jun 27 22:54:55 Server xinetd[16248]: removing discard
    Jun 27 22:54:55 Server xinetd[16248]: removing echo
    Jun 27 22:54:55 Server xinetd[16248]: removing echo
    Jun 27 22:54:55 Server xinetd[16248]: removing time
    Jun 27 22:54:55 Server xinetd[16248]: removing time
    Jun 27 22:54:55 Server xinetd[16248]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in.
    Jun 27 22:54:55 Server xinetd[16248]: Started working: 3 available services
    /var/log/xinetd (partial)
    Code:
    12/6/27@22:44:21: START: vnc800 pid=14863 from=127.0.0.1
    12/6/27@22:44:21: EXIT: vnc800 status=1 pid=14863
    12/6/27@22:53:30: START: vnc800 pid=15855 from=127.0.0.1
    12/6/27@22:53:30: EXIT: vnc800 status=1 pid=15855
    12/6/27@22:53:39: START: vnc800 pid=15856 from=127.0.0.1
    12/6/27@22:53:39: EXIT: vnc800 status=1 pid=15856
    12/6/27@22:55:02: START: vnc800 pid=16252 from=127.0.0.1
    12/6/27@22:55:02: EXIT: vnc800 status=1 pid=16252
    12/6/27@22:58:05: START: vnc800 pid=16408 from=127.0.0.1
    12/6/27@22:58:05: EXIT: vnc800 status=1 pid=16408
    and of course there is no log from TightVNC server.

  2. #2
    Linux Newbie hagfish52's Avatar
    Join Date
    Dec 2011
    Location
    Asheville, NC
    Posts
    225
    Shouldn't this line in the configuration file:

    "includedir /etc/xinetd.d"

    contain the full path name, "/etc/xinetd.d/vnc800"?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •