(03-16-2016, 11:42 PM)GuiltySpark Wrote: Not sure what's being asked here, you have VNC on your Linux server but which VNC?
What is referred to when you say Cardinal?
Do you have more than one VNC on your system?
Do you have userid sessions set up for one only?
Its very difficult to understand exactly what your set up is as we can't see it.
OK: This is the situation:
I am running Cardinal.buddy-baker.us - He is a Debian 8 "Jessie" Machine:
====================================================
Kernel and CPU: Linux 3.16.0-4-686-pae on i686
Processor information: Intel® Core2 Quad CPU Q6600 @ 2.40GHz, 4 cores
Real memory: 249.57 MB used, 2.97 GB total
Virtual memory: 0 bytes used, 6 GB total
Local disk space: 180.47 GB used, 3.25 TB total
=====================================================
OK, it seems as if a LONG time ago (5-7 years or so by now) I was able to install vnc4 server, run it, and it will tell me that I would have display :1
from my shell prompt:
brian@cardinal:~$ vnc4server
New 'cardinal:1 (brian)' desktop is cardinal:1
Starting applications specified in /home/brian/.vnc/xstartup
Log file is /home/brian/.vnc/cardinal:1.log
brian@cardinal:~$
(brian being my username for my primary account, display one) (:1)
However, EVERY TIME I connect to display one, I get a BLACK SCREEN, and I am NOT sure why, and I know that /.vnc/xstartup is the file that is followed when you envoke an xsession. I have the following from a "w" output:
08:39:58 up 1 day, 14:43, 2 users, load average: 0.13, 0.16, 0.13
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
brian pts/0 cardinal.buddy-b 08:34 1.00s 3.58s 0.00s w
brian :0 :0 08:39 ?xdm? 25:02 0.09s gnome-session -
brian@cardinal:~/.vnc$
Notice that Display 0 (:0) shows gnome-session. This is because I am running gnome. However, when attempting to use tightvnc, (:1) I get:
and then:
There are lots of different display managers, window managers, and the like, and I want to be able to set my xstartup file, so that I can vnc into cardinal and be able to perform tasks from the desktop (Gnome, or cinimon, or what have you, but I cannot IF commanding a xsession gives me either a Black screen or the image above, about Cinnamon crashing. I even switched out to gnome and got this error.
Code:
This is my xstartup file:
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
gnome-session –session=gnome-classic &
gnome-panel&
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
Right now, I have enough ports open for possibly 2 sessions: but right now only display 1 is operating, but is throwing me a Cinnamon crashed message. Display :0 is cardinals gui interface that I can login to at the console, but I want to use it at any computer.
I even got THIS from the internet and it tells me what to do, but I am confused, as black screens seem to styme a lot of other users.
Quote:Starting your window manager
The instructions above are sufficient for the Raspberry Pi running Raspbian (Debian). On other systems you may need to make a further configuration
change to start your normal window manager / application launcher. If you get a blank screen when connecting edit the file ~/.vnc/xstartup and
replace the line /etc/X11/Xsession with one of the following as appropriate.
Starting your window manager
exec ck-launch-session startlxde #for an lxde session
exec ck-launch-session gnome-session #for a gnome-session
exec ck-launch-session openbox-session #for an openbox desktop
exec ck-launch-session startxfce4 #for an xfce desktop
exec ck-launch-session icewm #for an icewm desktop
exec ck-launch-session startkde #for a kde desktop
Can someone possibly help here??
Thank You, you all have been very patient with an intermediate user that is stumped on a couple of things.
Brian