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,
This is similar to one earlier post, but the direction is the opposite. I'll appreciate your help.
I've got a local LAN with one linux box, one windows box and a hub. I have got a DVD player on the linux box and I want to be able to play it from Windows box. (I may want to run other linux applications later. )There is no issue with the connectivity between the two boxes.
First I need to get the Xserver/Client connection working. Then I will run Vncserver on the linux box and connect vncclient to it from the Windows box.
Linux box does not have keyboard/monitor, so I have to do without them. When I ssh to linux box, I can see XFree86 as one of the running processes. However, the DISPLAY variable is not set yet. I set it as "export DISPLAY=linux:0.0". Then I do "xhost +" on Linux box, but it does not do that: "xhost: unable to open display "linux:0.0" ".
How can I get this working? is it doable without having keyboard/monitor on the Linux box?
Can I run DVD player on Linux box directly from the Windows box?
I think you may be trying to make this more difficult than it is. If you are going to be using VNC from your Windows box, all you need to install is the vnc software on your linux box. At least on my Slackware box, once I had VNC installed, all I have to do is type vncserver and the vncserver program sets itself up appropriately. No messing with xhost or XFree86. From a Windows install of VNC, then all you need to do is point to the terminal vncserver set up (usually 1 or 2). In Windows a dialog box will ask you what host to connect to and all you need to do is enter in the IP and terminal. It looks like 1.2.3.4:1 if you are running on display 1.
As long as you can ssh to your linux box, you don't need a monitor and keyboard attached to it. You can use lynx or ftp to download the vnc software to the linux box if you don't already have it.
I have vncserver, but I can not run it!!.. Following at the vnc log:
Xvnc: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot ope
n shared object file: No such file or directory
xsetroot: unable to open display 'linux:1'
twm: unable to open display "linux:1"
xterm Xt error: Can't open display: linux:1
I have no problems if I plug monitor & keyboard to the linux box and then run vncserver!!
Wow. I'm going to state up front that I'm probably as confused as you are. Still there are a few questions I have
1) When you get the error message from your headless configuration, is that before or after you've set DISPLAY and used xhost?
2)When you plug in a monitor and keyboard, are you starting vncserver while at that keyboard or are you doing it through ssh?
3)Are you root when you start vncserver? I'm NOT advocating running vnc from root as standard practice (in fact that is a REALLY bad idea), but it might be worth ttrying it as a test.
>1) When you get the error message from your headless configuration, is that before or after you've set DISPLAY and used xhost?
That's after I set the display. It doesn't matter otherwise either.
>2)When you plug in a monitor and keyboard, are you starting vncserver while at that keyboard or are you doing it through ssh?
I am doing while I am at that keyboard and it works!
3)Are you root when you start vncserver? I'm NOT advocating running vnc from root as standard practice (in fact that is a REALLY bad idea), but it might be worth ttrying it as a test.
I know printers can be shared, can we share a DVD player?
Since a DVD drive is just another device to linux, I don't see why you couldn't share it through Samba. A quick Google found this thread that also suggests it can be done. There is also a thread here at LQO. Of course sharing it is one thing, getting a Windows app to make sense of it is another......
Quote:
It works for root, but not for other users.
I think this is a real clue and suggests to me that the keyboard/monitor thing is a red herring. On my system, if I do an ls -l in /usr/local/bin, vncserver is owned by me in the users group, not by root. Does root own your copy of vncserver? If so, you might chown it to a user and see if that solves the problem.
You know, this DVD over a home network might be worth another thread to see if anyone has pulled it off. The one I pointed you to is only five months old, but it might be worth another go.
Sharing audio over a samba share should be similar, or easier, to sharing a DVD. The audio files will be smaller, so if you have a decent home network, you should be able to listen smoothly. The process should be about the same. Set up samba, share the drives you want and (hopefully!) that's it.
Don't know if you're still interested but I had the same problem with vncserver. (the libstdc++-libc6 thing).
The way I just got it working was to create a symbolic link to the newer version of the file. So assuming you have the newer version of libstdc++ already in your /usr/lib directory, you can type:
cd /usr/lib
ln -s libstdc++-3-libc6.1-2-2.10.0.so libstdc++-libc6.1-1.so.2
(or the right names for your situation)
I'm pretty new at all this, so I don't know if this is an acceptable way to solve this but it works!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.