You are not logged in.

#1 2014-02-15 04:14:08

zack2171
Member
Registered: 2014-02-15
Posts: 4

VNC server on xfce4

This is my first time posting anything on the Arch Linux forums, so please forgive me for any mistakes. I use Arch regularly on my laptop, but I just recently started using it on Raspberry Pi, and I am trying to setup a VNC server so I can view my xfce4 desktop on my iPad or laptop. The problem that I am having is with the ~/.vnc/xstartup file. No matter where I added exec startxfce4, it would still start the xserver instead of xfce4! Can somebody help me with this please? Also, can you please post an example of your ENTIRE ~/.vnc/xstartup file, mine accidently got deleted. Thank you for your help!

Offline

#2 2014-02-15 14:04:51

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: VNC server on xfce4

You should ask Arch Linux ARM questions on http://archlinuxarm.org/forum/ .

Offline

#3 2014-02-15 15:55:44

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

Re: VNC server on xfce4

ewaller$@$odin ~/.vnc 1008 %cat xstartup 
#!/bin/sh

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" &
urxvt
twm &
ewaller$@$odin ~/.vnc 1009 %

You probably want to replace twm with startxfce4, but, beware: be careful of environments with bells and whistles and pretty graphics and constantly refreshing content.  It will slow your link to a crawl.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2014-02-15 17:36:44

zack2171
Member
Registered: 2014-02-15
Posts: 4

Re: VNC server on xfce4

Thanks for replying to my post.
That's what I tried but still no xfce...
Here is my vncserver log file.

_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/alarmpi:1
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

Xvnc TigerVNC 1.3.0 - built Jan 15 2014 14:24:50
Copyright (C) 1999-2011 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11500000, The X.Org Foundation

Initializing built-in extension VNC-EXTENSION
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension GLX

Sat Feb 15 10:14:21 2014
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s), port 5901
 vncext:      created VNC server for screen 0
sh: /root/.vnc/xstartup: Permission denied

Sat Feb 15 10:14:39 2014
 Connections: accepted: 192.168.1.8::53321
 SConnection: Client needs protocol version 3.8
 SConnection: Client requests security type VncAuth(2)

Sat Feb 15 10:14:45 2014
 VNCSConnST:  Server default pixel format depth 24 (32bpp) little-endian rgb888

Sat Feb 15 10:14:48 2014
 VNCSConnST:  Client pixel format depth 8 (8bpp) color-map
 VNCSConnST:  Client pixel format depth 24 (32bpp) little-endian rgb888

Sat Feb 15 10:14:55 2014
 Connections: closed: 192.168.1.8::53321 (Clean disconnection)
 SMsgWriter:  framebuffer updates 3
 SMsgWriter:    raw rects 1, bytes 16396
 SMsgWriter:    hextile rects 1, bytes 3088
 SMsgWriter:    ZRLE rects 1, bytes 117
 SMsgWriter:    raw bytes equivalent 3948580, compression ratio 201.447885

Offline

Board footer

Powered by FluxBB