You are not logged in.

#1 2015-01-11 15:22:43

LiquidAurum
Member
Registered: 2014-11-04
Posts: 43

X display not launching from remote vnc

I have been trying to connect via Realvnc from my mac and all I get is an openbox session even though I'm using xfce4. I've added the following command in the bottom although that is only for tigerVNC I believe. and I changed the ~/.vnc/xstartup to exec startxfce4 as well. The only time I can see the actual window is when I use tigervnc from my mac. Also when I try going viceversa (Arch to Mac) using remmina (vnc) it says vnc plugin not installed.

x0vncserver -display :0 -passwordfile ~/.vnc/passwd

Offline

#2 2015-01-11 17:36:09

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,353

Re: X display not launching from remote vnc

What are the contents of your ~/.vnc/xstartup file?

Edit -- Nevermind.  My hint is for vncserver / vncviewer. 
Regardless, check for a configuration file for your server.  Often vnc is set up to use a more static (lower bandwidth) WM.

Last edited by ewaller (2015-01-11 17:38:24)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2015-01-11 17:38:04

LiquidAurum
Member
Registered: 2014-11-04
Posts: 43

Re: X display not launching from remote vnc

#!/bin/sh
export XKL_XMODMAP_DISABLE=1
exec startxfce4

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = 'Linux' ]; then
  case "$WINDOWMANAGER" in
    *gnome*)
      if [ -e /etc/SuSE-release ]; then
        PATH=$PATH:/opt/gnome/bin
        export PATH
      fi
      ;;
  esac
fi
if [ -x /etc/X11/xinit/xinitrc ]; then
  exec /etc/X11/xinit/xinitrc
fi
if [ -f /etc/X11/xinit/xinitrc ]; then
  exec sh /etc/X11/xinit/xinitrc
fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &

I have been able to understand something though, that the command I provided before

$ x0vncserver -display :0 -passwordfile ~/.vnc/passwd

I undesrtand that's to allow X display for vnc connections. But I just want that to be run automatically I don't want that to be run, and have that use up a terminal tab or have to run that command myself CONSTANTLY.

Last edited by LiquidAurum (2015-01-11 17:47:54)

Offline

#4 2015-01-11 17:40:56

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,353

Re: X display not launching from remote vnc

Oh, the file does exist smile  Okay, move the exec startxfce4 to the end of the file.  Add a & to the end of the line to background it.  Comment out the twm & line.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2015-01-11 17:54:05

LiquidAurum
Member
Registered: 2014-11-04
Posts: 43

Re: X display not launching from remote vnc

Ok I did that, I still get the same problem, however now I get it with tigervnc as well, even when I run x0vncserver -display :0 -passwordfile ~/.vnc/passwd

Offline

Board footer

Powered by FluxBB