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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-04-2004, 11:20 AM
|
#1
|
LQ Newbie
Registered: Jan 2002
Location: Texarkana, TX/AR
Distribution: Fedora Core 1
Posts: 9
Rep:
|
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
|
|
|
02-04-2004, 11:38 AM
|
#2
|
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
|
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
|
|
|
02-04-2004, 11:47 AM
|
#3
|
LQ Newbie
Registered: Jan 2002
Location: Texarkana, TX/AR
Distribution: Fedora Core 1
Posts: 9
Original Poster
Rep:
|
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
|
|
|
02-04-2004, 12:37 PM
|
#4
|
LQ Newbie
Registered: Jan 2002
Location: Texarkana, TX/AR
Distribution: Fedora Core 1
Posts: 9
Original Poster
Rep:
|
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 ?
|
|
|
02-04-2004, 10:22 PM
|
#5
|
LQ Newbie
Registered: Aug 2003
Distribution: slackware
Posts: 8
Rep:
|
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.
|
|
|
02-05-2004, 02:04 PM
|
#6
|
LQ Newbie
Registered: Jan 2002
Location: Texarkana, TX/AR
Distribution: Fedora Core 1
Posts: 9
Original Poster
Rep:
|
sweet, thanks bro. Long live OSS and their communities!
|
|
|
02-08-2004, 05:45 AM
|
#7
|
LQ Newbie
Registered: Feb 2004
Posts: 8
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 06:42 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|