LinuxQuestions.org
Visit Jeremy's Blog.
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 08-24-2003, 06:58 PM   #1
major
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Rep: Reputation: 0
Running linux DVD from Windows


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?

Thanks,
 
Old 08-24-2003, 08:11 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
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.


And welcome to LQO!
 
Old 08-24-2003, 08:30 PM   #3
major
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Original Poster
Rep: Reputation: 0
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!!
 
Old 08-25-2003, 07:37 AM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
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.
 
Old 08-25-2003, 06:07 PM   #5
major
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Original Poster
Rep: Reputation: 0
Replies to your questions below:

>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.

It works for root, but not for other users.
 
Old 08-25-2003, 06:12 PM   #6
major
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Original Poster
Rep: Reputation: 0
Is there a way to control physical media (DVD player) on Linux box from a Windows application?

I know printers can be shared, can we share a DVD player?
 
Old 08-25-2003, 07:34 PM   #7
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
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.
 
Old 08-25-2003, 07:41 PM   #8
major
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks!

I realize it is too slow to get DVD display over the network (though it is home LAN) to Windows box. Is there any trick to that?

How about audio ?

I'll check the threads you note, btw...
 
Old 08-25-2003, 08:18 PM   #9
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
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.
 
Old 09-02-2003, 11:55 PM   #10
darrenj
LQ Newbie
 
Registered: Aug 2003
Location: Ontario, Canada
Distribution: Fedora Core 2
Posts: 6

Rep: Reputation: 0
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!

Darren
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Running a windows program from windows partition, on linux, possible? Kriptis Linux - Newbie 4 01-18-2005 10:52 PM
Running DVD/Video Cd in Linux..??? avols143 Linux - Software 3 02-10-2004 07:06 AM
Running Windows Games In Linux From Windows Hard Drive Darkstar274 Linux - Games 2 12-25-2003 11:19 PM
Running Windows Programs on Linux\What Linux Flavor To Pick thepugmaster Linux - Distributions 15 03-17-2003 01:02 AM
Running Windows and Linux 00-00-00 Linux - Newbie 8 05-22-2002 12:11 PM

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

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