DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th August 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Default VNC not viewing correctly

Hi everyone
I have two freebsd servers in my home and I have a small trouble with VNC. First of all, I have one running on KDE and another running of Gnome. I have looked up a lot of tutorials online and it seems that I have done the "right" thing.

For my KDE Desktop, I have modified my xstartup to be:
Code:
#!/bin/sh

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &

#REMOVE TO RETURN TO DEFAULT
#twm &

#ADDED TO ALLOW KDE
exec startkde
I run the following command to start vnc
#vncserver
and when I connect to this computer, using
#vncviewer x.x.x.x:1,
I am only seeing a NEW kde environment. I thought VNC is supposed to bring you the CURRENT view. By current, I am referring to your current desktop so whatever files or folders you have opened during the vnc access should show up on the vnc viewer rather than a brand new fresh kde desktop. How do I modify my settings to allow this to happen? Note that I am using ktorrent and ktorrent doesn't allow multiple instances, so that I whenever I start up ktorrent under my current vnc sessions, it doesn't work.


Second this is my gnome xstartup:
Code:
#!/bin/sh

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &

#UNCOMMENT TO RETURN TO DEFAULTS
#twm &

#ADDED for Gnome laptop
gnome-session
but then when i do the following:

[disappearedng@home ~/.vnc]$ vncserver
I get the following error
xauth: (argv):1: bad "add" command line
xauth: (argv):1: bad "add" command line

Note that when i vncviewer my gnome desktop i CANNOT see anything. It's just a blank screen.

Why?
Reply With Quote
  #2   (View Single Post)  
Old 28th August 2008
Weaseal's Avatar
Weaseal Weaseal is offline
Package Pilot
 
Join Date: May 2008
Location: East Coast, US
Posts: 177
Default

you forgot the &:
Code:
gnome-session &
or
Code:
startkde &
This permits the process to continue running past the termination of the script.
__________________
FreeBSD addict since 4.2-RELEASE.
My FreeBSD wiki.
Reply With Quote
  #3   (View Single Post)  
Old 29th August 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Default

Thx for the tip.
It still doesn't give me access to the current Desktop.

*I know this because when I log in with vnc, ktorrent complains about the port 4771 already in use and it has a bunch of errors and i know for sure that it does not support multiple instances.

My gnome vnc is still blank.
Any ideas?
Reply With Quote
  #4   (View Single Post)  
Old 29th August 2008
Weaseal's Avatar
Weaseal Weaseal is offline
Package Pilot
 
Join Date: May 2008
Location: East Coast, US
Posts: 177
Default

I don't believe there's a way to login to the same desktop that's active on your monitor. Unix handles sessions in a very different way than Windows (in the sense that it does, and Windows doesn't). So each login is separated, where as in Windows there's generally just one unified login.

Someone correct me if I'm wrong.
__________________
FreeBSD addict since 4.2-RELEASE.
My FreeBSD wiki.
Reply With Quote
  #5   (View Single Post)  
Old 29th August 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

You'll need to install the X11VNC port. Then you can ssh to system where you have a running X session, run x11vnc from within the SSH session, and then connect via VNC to the system.

You can also configure x11vnc to be your X server, so that it is always running. Just be sure to enable a strong password on it if you do. (This is what we do with our diskless clients in all the schools, so we can connect to their station for troubleshooting helpdesk calls.)
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #6   (View Single Post)  
Old 30th August 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Default

thx that solved the problem!
x11vnc indeed is what I wanted!!!

Why doesn't there exist a place where different ports will be explained to newbie users for this purpose?
Reply With Quote
  #7   (View Single Post)  
Old 30th August 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

Try the following:
Code:
# cd /usr/ports
# make readme
That will generate a README.html file in every port directory. Then you can just point a web browser at /usr/ports/README.html and browse through the ports tree, reading about all the different categories, and all the different ports.

It's not the simple synopsis you may be looking for, but it can be quite helpful when just starting out with the ports tree.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
startx not starting correctly - XOrg 7.4_2 Mantazz FreeBSD Ports and Packages 1 8th July 2009 04:17 PM
FBSD 7.2 installation not seeing partition table correctly Mantazz FreeBSD Installation and Upgrading 0 2nd July 2009 11:36 AM
Viewing DVD's, pictures, and ps/pdf without X JMJ_coder Other BSD and UNIX/UNIX-like 6 17th June 2008 02:43 PM
No 30 second wait for viewing new posts anomie Feedback and Suggestions 6 15th May 2008 01:48 PM
KDE (X-Server) in FreeBSD 7.0 doesn't work correctly louie FreeBSD General 6 7th May 2008 11:53 PM


All times are GMT. The time now is 10:35 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick