Hi-ho,

To get xfce to start under vncserver:

$ sudo apt install xfce4 xfce4-goodies tightvncserver

run vnc server to get it a password, then kill it:

$ vncserver
$ vncserver -kill :1


edit the file: ~/.vnc/xstartup

#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &

re-run vncserver, with some geometry settings which are more often than not helpful:

$ vncserver -geometry 1280x800

You might find that the tab key does not work in the xfce environment.. Fix for that:

edit ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml

find the line

<property name="<Super>Tab" type="string" value="switch_window_key"/>

and change it to

<property name="<Super>Tab" type="empty"/>

Cheers, Chris H.


On 2018-09-24 16:46, Bryce Stenberg wrote:
Hi,

I've been having a go with this today using vncserver and xfce as suggested.
When I tried it initially just with my gnome desktop I got connected
but only a checkered unusable sort of display once connected.
So I tried using xfce, but rather unsuccessfully, got all a bit messed
up, so start again....

This time I installed Ubuntu server (rather than desktop and didn't
join it to the domain), so a basic setup.
Installed all the bits and bobs to run vncserver with xfce from Robert's link.
However, from my pc I can't connect yet, I get the message "The
connection was refused by the computer".
I checked the firewall is off.
vncserver is running and listening on port 5901.

One thing I wasn't sure of was whether it was listening on the network
interface or just localhost.  Most of the instructions seem aimed at
localhost and using SSH to forward the ports, but I don't want that
additional layer as it is being run on a trusted network.  Not sure if
there are better commands on Linux, I tried these next ones, showing
applicable output:
$  ss -ltn
State           Recv-Q          Send-Q          Local Address:Port              
Peer Address:Port
LISTEN          0               5                       127.0.0.1:5901          
          0.0.0.0:*
LISTEN          0               5                           [::]:5901           
        [::]:*

$  netstat -ea | grep 5901
tcp             0       0       localhost.localdom:5901  0.0.0.0:*      LISTEN  
        user            25415
tcp             0       0       localhost6.localdo:5901     [::]:*              
LISTEN          user            25416

Does this mean my vncserver on port 5901 is only listening on localhost?
If so, how do I make it listen on everything, or at least the LAN?

Regards,
  Bryce.

_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users

Reply via email to