LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   VNC connection fails: vino<->vinagre (https://www.linuxquestions.org/questions/linux-software-2/vnc-connection-fails-vino-vinagre-4175497675/)

bennypr0fane 03-10-2014 09:04 AM

VNC connection fails: vino<->vinagre
 
Hello,
I cannot get a vnc connection to my headless PC over the home network. I'm trying to connect from Linux Mint Petra w/ Cinnamon, while the headless box has LMDE w/ Mate, I've been trying this for a while, but it hasn't worked yet unless I connect the LMDE box to a screen and enable vnc connections from its own desktop.
I have vino installed on LMDE, and I can connect to it using vinagre on the client side, but I just see a black rectangle in the vinagre screen, that's it. As soon as I make the connection, I get a pop-up that says a remote computer is trying to get access to my desktop. I don't get to allow or deny though, the pop-up just disappears if I click it, the vnc screen stays black.
Here is some output from vino:

Code:

~ $ /usr/lib/vino/vino-server
    ** (vino-server:4017): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-nndcZFmSrt: Verbindungsaufbau abgelehnt

    (vino-server:4017): EggSMClient-CRITICAL **: egg_sm_client_set_mode: assertion `global_client == NULL || global_client_mode == EGG_SM_CLIENT_MODE_DISABLED' failed
    25/02/2014 21:28:18 Autoprobing TCP port in (all) network interface
    25/02/2014 21:28:18 Listening IPv6://[::]:5900
    25/02/2014 21:28:18 Listening IPv4://0.0.0.0:5900
    25/02/2014 21:28:18 Autoprobing selected port 5900
    25/02/2014 21:28:18 Advertising security type: 'TLS' (18)
    25/02/2014 21:28:18 Re-binding socket to listen for VNC connections on TCP port 5900 in (all) interface
    25/02/2014 21:28:18 Listening IPv6://[::]:5900


ericson007 03-10-2014 06:52 PM

The way I understand is that you need to by default enable a connection for every connection attempt. So that means starting vino each time from that machine.

Try setting a default password for vino using

Code:

vino-password
Then restart the service and see what happens. I have not tried vino yet. I use tigervnc, so far that has not given me the issues that you describe.

bennypr0fane 03-10-2014 08:18 PM

it says
Code:

vino-password: command not found
Also I don't understand how setting a password is going to make it accept connections by default if it's not accepting them without a password. could you explain that some more?

ericson007 03-10-2014 08:34 PM

Because vino has quite a few bugs and a few people on mailing lists have mentioned issues similar to yours. Many of them managed to run that command and had success connecting after that.

That is just something I thought may be worth trying.

Guttorm 03-11-2014 12:04 PM

Hi

I was also struggeling with vino on Linux Mint. Then I found this guide:

http://forums.linuxmint.com/viewtopi...f=157&t=109097

The x11vnc way workds great.

bennypr0fane 04-02-2014 06:42 PM

this is incredibly frustrating.
I did what was described there (http://forums.linuxmint.com/viewtopi...f=157&t=109097), i.e. I added that line at the end of /etc/mdm/Init/Default, so now it looks like this:

Code:

#!/bin/sh
# Stolen from the debian kdm setup, aren't I sneaky
# Plus a lot of fun stuff added
#  -George

PATH=/usr/bin:$PATH
OLD_IFS=$IFS

mdmwhich () {
  COMMAND="$1"
  OUTPUT=
  IFS=:
  for dir in $PATH
  do
    if test -x "$dir/$COMMAND" ; then
      if test "x$OUTPUT" = "x" ; then
        OUTPUT="$dir/$COMMAND"
      fi
    fi
  done
  IFS=$OLD_IFS
  echo "$OUTPUT"
}

sysresources=/etc/X11/Xresources

# merge in defaults
if [ -f "$sysresources" ]; then
    xrdb -merge "$sysresources"
fi

sysmodmap=/etc/X11/Xmodmap

XMODMAP=`mdmwhich xmodmap`
if [ "x$XMODMAP" != "x" ] ; then
  if [ -f $sysmodmap ]; then
    $XMODMAP $sysmodmap
  fi
fi

nohup x11vnc -shared -no6 -forever -nolookup -auth /var/lib/mdm/:0.Xauth -passwd ‘Test123!’ 2>/dev/null 1>&2 &

exit 0

well, nothing. I'm trying to connect vinagre, I get "connection to 10.0.0.18 was closed", not even any output in terminal. I think this system just hates me.


All times are GMT -5. The time now is 08:46 AM.