LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-04-2004, 10:20 AM   #1
jboo
LQ Newbie
 
Registered: Jan 2002
Location: Texarkana, TX/AR
Distribution: Fedora Core 1
Posts: 9

Rep: Reputation: 0
Unhappy VNC showing plain X w/ no desktop when vncserver started by non-root user


I am running Fedora Core 1. Trying to get VNCServer up and running so I can VNC into my machine at home from work and work in my non-root user desktop that I normally get when I log on.

When I run VNCServer as Root I can VNC fine onto my desktop and all of the icons are there (can run Ximian, Moz, Opera, etc), but when I start up VNC server from my non-root user account I get the plain-old vanilla X desktop with no icons or graphics. Just the plain background and a big, fat "X" as a pointer. What am I doing wrong? I specify depth, resolution, etc on startup, but I want to be able to access my user desktop and all of the apps I have configured for that desktop. Any help is appreciated.


Thanks,
JB00
 
Old 02-04-2004, 10:38 AM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
are you sure you aren't getting twm? have you tried clicking the mouse? if you get a menu it probably is twm.... if so, then edit ~/.vnc/xstartup with your favorite text editor (pico, vi, emacs etc..) and change the line
twm & to the desktop environ (or window mager) you want, for instance for kde put startkde
for gnome put gnome-session
 
Old 02-04-2004, 10:47 AM   #3
jboo
LQ Newbie
 
Registered: Jan 2002
Location: Texarkana, TX/AR
Distribution: Fedora Core 1
Posts: 9

Original Poster
Rep: Reputation: 0
I get no response or menu's from a left or a right click. It seems that it isn't loading Gnome when I run the VNC server from my user account, but when I kick off the VNC Server from root then the Gnome desktop for root works. I looked at the xstartup file for root and my username and they are identical. I will try editing my xstartup with 'gnome-session' and see how that works. Thank you Frieza
 
Old 02-04-2004, 11:37 AM   #4
jboo
LQ Newbie
 
Registered: Jan 2002
Location: Texarkana, TX/AR
Distribution: Fedora Core 1
Posts: 9

Original Poster
Rep: Reputation: 0
Hey Frieza,

Here is the only line in my xstartup

exec /etc/X11/xinit/xinitrc

What is the correct syntax to specify Gnome?

exec /usr/bin/gnome-session ?
 
Old 02-04-2004, 09:22 PM   #5
vickp
LQ Newbie
 
Registered: Aug 2003
Distribution: slackware
Posts: 8

Rep: Reputation: 0
I had the same problem. Here's what I did to fix it...

- run vncserver from console to start the vnc server. enter a password, etc if asked and if the X display number is shown then remember it.

- kill vncserver by typing "vncserver -kill :N" where N is the X display number. run "ps -ef" to insure that
Xvnc is not running - if it is then kill it.

- the first time that you run vncserver a directory w/files is created in your home directory:
~/.vnc.

- In the ~/.vnc/xstartup file, add a line to start your windows manager in the background. I use
kde so my line is:
/opt/kde/bin/startkde &

Works great for me. I use vncserver more often than X forwarding now. If security is a concern then
ssh port forwarding works well with vnc.
 
Old 02-05-2004, 01:04 PM   #6
jboo
LQ Newbie
 
Registered: Jan 2002
Location: Texarkana, TX/AR
Distribution: Fedora Core 1
Posts: 9

Original Poster
Rep: Reputation: 0
sweet, thanks bro. Long live OSS and their communities!
 
Old 02-08-2004, 04:45 AM   #7
English
LQ Newbie
 
Registered: Feb 2004
Posts: 8

Rep: Reputation: 0
exec /usr/bin/gnome-session &

Thats what worked for me ! Thats the only line I have in my xstartup file.

Thank god I found this thread, the problem was driving me crazy.
 
  


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
TOP, showing a program i don't believe i started JerryMcFarts Linux - Security 4 04-20-2005 01:37 AM
X with no desktop when VNC Server started from user account jboo Linux - General 1 02-04-2004 02:40 PM
same desktop 4 root & user dzt Linux - Newbie 6 10-22-2003 07:54 PM
vnc works on root but greyscreen for user Johnlester199 Linux - General 6 10-15-2002 06:53 PM
Why does kppp.desktop require root userid for non-root user? rdaves@earthlink.net Linux - Networking 4 08-27-2001 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:31 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