Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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.
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.
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
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.
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.
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
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.