LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-17-2010, 04:50 AM   #1
antonyphilip
LQ Newbie
 
Registered: May 2009
Posts: 11

Rep: Reputation: 0
Cool VNC Viwer returns Blank screen


Hi ,I have vnc server 4.1 installed in server and setup /root/.vnc/xstartup and /etc/sysconfig/vncservers as below.
/root/.vnc/xstartup
#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
xhost +localhost +'hostname'
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
# twm &
# startkde &
startx &
------------------
/etc/sysconfig/vncservers
# VNCSERVERS="2:myusername"
VNCSERVERS="1:root"
# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost -depth -16"

# VNCSERVERARGS[1]="-geometry 800x600"
# -nolisten tcp -nohttpd -localhost -depth -16"
------------
then started Vncserver :1
---------
now i tried connecting to this server by vnc vnc viwer from my windows Vista machine..But only getting blank screen without a terminal window or anything opened.
Please note that ,my current rulvel is 3 only .

Anys solutions.
 
Old 11-17-2010, 03:22 PM   #2
sys64738
Member
 
Registered: May 2008
Location: NRW/Germany
Posts: 105

Rep: Reputation: 30
Hmm I would not do that. Starting X with vnc as root is not a good idea.

You should do that as an unprivileged user and use for example gksudo/sudo because otherwise there are security issues.
IMHO best practice would be starting the administrative programs you need with ssh like:
Code:
ssh -X user@host gksudo /usr/sbin/synaptic
which calls the packet management of an Ubuntu system.


If you use Windows you could use putty and Xming to do that.
Xming is here
http://sourceforge.net/projects/xming/
fire it up as X server (accept all incoming connections)

putty is here
http://www.chiark.greenend.org.uk/~s.../download.html
install them then type in a dos prompt:
Code:
plink -X user@host gksudo /usr/sbin/synaptic
you'll get that on your Windows Desktop.
If you need further information feel free to post again.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VNC Server & Red Hat 8 - Blank Screen rdeckard Linux - Software 7 12-20-2011 11:13 AM
VNC - blank grey screen jnojr Linux - Newbie 15 06-20-2010 09:04 PM
openvpn vnc blank screen problem freethepc Linux - Software 1 08-04-2009 06:02 PM
the serach for files in xmule 1.4.1a returns blank sanmnan99 Linux - Software 0 04-29-2005 11:34 AM
VNC on Mandrake (9.0 & 9.2) blank screen on client side saavik24 Mandriva 10 09-19-2004 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration