Linux Mint 17.2 and VNC Server

pcm81

Senior member
Mar 11, 2011
598
16
81
Good day all,
I am trying to setup a vnc server on my linux mint box. I can get the desktop but it all looks funny, not like the real actual linux mint desktop on my HP Server that I am logging into.

Could someone please post your xstartup config file that results in a normal mint desktop being sent via VNC please?

Here is my current script i found online, but i don't like the looks of it. I want the same desktop as i see via connected monitor.

Thanks ahead


Code:
#!/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 &

$defaultXStartup
    = ("#!/bin/sh\n\n".
       "# Uncomment the following two lines for normal desktop:\n".
       "unset SESSION_MANAGER\n".
 

John Connor

Lifer
Nov 30, 2012
22,757
618
121
Make sure you password VNC. I can use a script to scan a whole bunch of IPs and take screen shots of open VNC connections.
 

pcm81

Senior member
Mar 11, 2011
598
16
81
Make sure you password VNC. I can use a script to scan a whole bunch of IPs and take screen shots of open VNC connections.
VNC port is not open to the outside world. I have to ssh tunnel to it from the outside...
 

pcm81

Senior member
Mar 11, 2011
598
16
81
Thanks. Ill try that.

did not help :(

Why does it work so easy on raspberry pi and rasbian and it is this hard on x86 machine... Makes me want to load rasbian onto hp server, too bad its for arm rather x86...
 

pcm81

Senior member
Mar 11, 2011
598
16
81
After messing around for the last couple days i reverted to Linux mint 13 Maya. This build with x11 server seems to work but is VERY slow. Probably 10x slower than a raspberry pi2 over an SSH connection, even though i connect to HP with no SSH and its just a switch away. I am wondering if this could be a result of a server not having any kind of decent GPU. Basically its an HP Proliant with 2x L5639 xeons and onboard grafix. I am not doing anything intense, just pulling up the desktop and working with command prompt windows, but eventually will be running a browser etc. On boot the GUI does complain that there is no grafix adapter and that CPU usage will be higher than normal. I'd think that 12 cores from 2x xeon processors should be able to handle it, but is it possible that lack of real grafix card is causing my VNC issues? When directly connected to the server the gui is as responsive as i'd expect it to be... but over a GBe and VNC it is VERY Slow. Sometimes when i type "X11" into command prompt via already open vnc session, i actually get "XXXX11111111" instead.

Any Ideas?
Thanks ahead