I'm still a complete noob with linux and after several days testing different distributions and a bunch of different ways (e.g. freenx,vnc XFCE ...) I've decided to setup a vnc-server on CentOS-5-i386-minimal and use KDE as a desktop environment.
After reloading my vps with centos-5-i386-minimal, I logged in as root and executed:
I then added a user "abt" and set the password. Then I logged in as abt and execute : vncserver, it asked for the password and created the appropriate .vnc directory and files.
I then edited xstartup file and replaced "twm &" with "startkde &" and executed vncserver once again, this created desktop number 2 for me.
The problem is that after running TightVNC(on vista) and entering IPNUMBER:2, It successfully connects to vnc-server but what i get is a black screen with X cursor!
I really have no idea what's the reason, can someone help me plz ?
Have you contacted your VPS host about this? This may be something on their end causing it.
█•CirtexHosting•Providing Affordable and Quality Web Hosting & Reseller Hosting since 2003 █•LINUX based cPANEL/WHM Shared and Reseller Web Hosting with Fantastico █•HostV VPS•Premium Virtual Private Servers & Dedicated Servers powered by cPanel/WHM █•We transfer your sites over quickly!•I eat penguins for breakfast ...
I've tried that chmod trick but it didn't work Thanks anyway.
As user 'abt' the log file is:
Sun Oct 18 21:30:38 2009
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5901
vncext: Listening for HTTP connections on port 5801
vncext: created VNC server for screen 0
sh: /home/abt/.vnc/xstartup: /bin/sh^M: bad interpreter: No such file or directory
Sun Oct 18 21:31:01 2009
Connections: accepted: XX.XXX.XXX.XXX::62821
SConnection: Client needs protocol version 3.8
SConnection: Client requests security type VncAuth(2)
Sun Oct 18 21:31:09 2009
VNCSConnST: Server default pixel format depth 16 (16bpp) little-endian rgb565
VNCSConnST: Client pixel format depth 8 (8bpp) bgr233
Sun Oct 18 21:31:15 2009
Connections: closed: XX.XXX.XXX.XXX::62821 (Clean disconnection)
SMsgWriter: framebuffer updates 2
SMsgWriter: hextile rects 3, bytes 3234
SMsgWriter: raw bytes equivalent 786980, compression ratio 243.345702
I've already installed that "X Window System". I changed /etc/inittab but that doesn't work either. This problem is getting me mad while everyone do that easily, I've been playing with the server for 5 days and still nothing is happend.
Hey Arsenico it works, I rebooted the system and after executing "vncserver" this time when I run TightVNC and connected to my vps I got a command line there and I executed startkde and WOW can't belive that it finally works.
Thanks man you don't know how thankful I am. You're great!
Using VNC to connect to X is quite an old thing. DO NOT use VNC, and setup NX instead, it's a way faster, and a lot more easy to use!!!
GPLHost:>_ open source hosting worldwide (I'm founder, CEO & official Debian Developer)
Servers & our leading control panel and our Xen VPS hosting, which are already included in Debian and Ubuntu
Available in: Kuala Lumpur, Singapore, Sydney, Seattle, Atlanta, Paris, London, Barcelona, Zurich, Israel