LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-14-2006, 11:52 PM   #1
lhrt
Member
 
Registered: Mar 2006
Posts: 82

Rep: Reputation: 15
vnc question


hi all,
I am using redhat linux es and want to share my desktop with other users.
I used vnc with windows so for a demo purpose i can show a mouse movements and dragging windwow etc. But in linux when i connect to vnc server i got a seperate session so that i cant get the mouse movements or screen changes from remote. is there any way to do it?

ie i want to show my desktop and screen to other guy on the vncviewer
exactly as i see with mouse movements and screen changes and also he should able to click drag etc in vnc viewer and that will happen in my screen. same as in microsoft windows.
sorry if you dont understand what i mean.

thanks in adv
 
Old 05-15-2006, 03:46 AM   #2
corbintechboy
Member
 
Registered: Sep 2003
Location: Kentucky
Posts: 480
Blog Entries: 1

Rep: Reputation: 51
Maybe try SSH. It has X forwarding and works great!
 
Old 05-15-2006, 03:52 AM   #3
lhrt
Member
 
Registered: Mar 2006
Posts: 82

Original Poster
Rep: Reputation: 15
Is that work like winvnc?
I know there is another package called x11vnc that work like what I asked.
but is there anyway to act tightvnc or realvnc act like it?
luv you all
 
Old 05-15-2006, 03:56 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
You should try krfb.
Install it. You can run it from an X-terminal if you do not find it under k-Networking-remote access, and it'll pop up a window for you to configure.
The person connecting to you will need to run vncviewer your.ip.add.ress:0 and give the supplied password.
Then you can both share your desktop & keyboard & mouse if you have a fast connection. It is excellent.

HTH

Last edited by tredegar; 05-15-2006 at 03:58 AM.
 
Old 05-15-2006, 05:03 AM   #5
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
Are you using a java viewer?
If so, you have to enable cursor shape updates.
Also, Linux, as opposed to windows, is a multiuser system, which allows a user to use vnc to another screen. Check that your vnc server is attached to the correct screen number (the $DISPLAY environment variable).
If you don't know what I'm talking about, please post the way you launch your vnc server and viewer.

Last edited by Agrouf; 05-15-2006 at 05:08 AM.
 
Old 05-15-2006, 05:29 AM   #6
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
I use x11vnc through ssh -X , it works great.

What is missing in x11vnc that you have in tightvnc?
 
Old 05-15-2006, 07:55 AM   #7
comtmr
LQ Newbie
 
Registered: Apr 2006
Location: Ankara \ TURKIYE
Distribution: Red Hat Enterprise 4
Posts: 19

Rep: Reputation: 0
let look at the command and
every time you run vncserver command virtual desktops are created; you can connect any of them.
below I created two ones.one is connected over port 1
other is port 2

[root@laptoplinux ~]# vncserver
xauth: (argv):1: bad display name "laptoplinux:1" in "add" command

New 'laptoplinux:1 (root)' desktop is laptoplinux:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/laptoplinux:1.log

[root@laptoplinux ~]# vncserver
xauth: (argv):1: bad display name "laptoplinux:2" in "add" command

New 'laptoplinux:2 (root)' desktop is laptoplinux:2

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/laptoplinux:2.log


in the vnc viewer if you type adresses like that ;
you will have different desktops. for the same desktop connect the same port.

192.168.202.18:1
192.168.202.18:2




#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -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 &


the setting for desktops are in config files.
located <home dir for user> as I was root here is
/root/.vnc/xstartup

to stop any of the virtual desktops use:
vncserver -kill :<port number>
vncserver -kill :1
vncserver -kill :2


I dont know if I could understand your problem ;
I wish this can help;
have a nice day
 
Old 05-15-2006, 11:52 AM   #8
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
Quote:
Originally Posted by nx5000
I use x11vnc through ssh -X , it works great.

What is missing in x11vnc that you have in tightvnc?
I believe the poster need to replicate the exact screen copy to the clients (mouse pointer included).
ssh -X will create a new X server on the client side, which means the client can work on the server machine and have X enabled, but it will be a different and independant X server than the one used on the server host. As a consequence, both can work on different applications but that is not what he is trying to do. He needs the client and the server to have the same screen.
 
Old 05-15-2006, 10:31 PM   #9
lhrt
Member
 
Registered: Mar 2006
Posts: 82

Original Poster
Rep: Reputation: 15
@Agrouf
Quote:
I believe the poster need to replicate the exact screen copy to the clients (mouse pointer included).
Exactly thats is what I am tryng to do
 
Old 05-16-2006, 04:30 AM   #10
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
lhrt,
Like I said in my earlier post, you need krfb.
Edit:There's also krdc (K Remote Desktop Connection), which is even easier!

Last edited by tredegar; 05-16-2006 at 07:12 AM.
 
Old 05-16-2006, 07:16 AM   #11
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
I have maybe missed something but...
Quote:
x11vnc allows one to remotely view and interact with real X displays (i.e. a display corresponding to a physical monitor, keyboard, and mouse) with any VNC viewer. In this way it plays the role for Unix/X11 that WinVNC plays for Windows. It has also been extended to work with webcams and tv tuner capture devices.

I wrote x11vnc because x0rfbserver was basically impossible to build on Solaris and had poor performance. The primary x0rfbserver build problems centered around esoteric C++ toolkits. x11vnc is written in plain C and uses only standard libraries. I also added a some enhancements to improve the interactive response, add esoteric features, etc.
The restriction is that you need an X server running on the client, eg cygwin/X or linux
 
  


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 question m2azer Linux - Newbie 2 09-18-2004 08:22 PM
VNC Question sujte Linux - Software 0 05-03-2004 03:28 PM
VNC question cyph3r7 Linux - General 3 11-13-2003 10:42 AM
VNC Question PuterFreaK Linux - General 1 03-29-2002 07:44 PM
VNC question mpenny Linux - General 0 11-09-2001 03:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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