Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
03-11-2003, 12:12 AM
|
#1
|
|
LQ Newbie
Registered: Mar 2003
Location: North West USA
Distribution: Redhat 8.0 & 9.0, Mandrake 9.0 & 9.2, Fedora Core 1, Knoppix
Posts: 28
Rep:
|
If X server (Cygwin) is the answer, I need a new Question
HowD all,
First off, what my goal here is, is to be able to turn on my Linux box, maybe type a few commands here and there, nothing much (preferably nothing), turn on my box running the other OS, do what ever I have to do, and be able to sit at my box running that other OS and seem as though I'm sitting at the Linux box.
Now, from what I've read, and I've read a ton, is that I have to have an X server running on the box that runs that other OS and then some form of an X client running on the Linux box.
So I was pointed to cygwin as a open source (free) alternative to the commercial X servers (going for over $100). Ok, did that. Downloaded it. Installed it. Installed the X11R6 stuff. Okay, run the startxwin.bat file, yep, get the BASH window, type the prescribed /usr/X11R6/bin/xhost ip.number.here, yep, okay, then type the /usr/bin/telnet ip.host.here ....bzz...gong....get a blank screen. In-fact, I don't even see telnet in that folder.
Here's my hunch...I have no idea what I'm doing.
Here's my second hunch...I need to start something on the Linux box. I'm running Redhat 8.0. Telnet and SSH have been started.
Maybe I'm doing something almost right, but I doubt it.
Anyway, here's my vitals.
Other OS box - P4-2.4, WinXP, 512 RAM
Linux box - Celeron 350Mhz, 128 RAM, Redhat 8.0
Both are connected to a Linksys router, works fine, both can get out on the net.
I really want to get rid of my monitor on the Linux box.
TIA...
-G-
|
|
|
|
03-11-2003, 05:25 AM
|
#2
|
|
Member
Registered: Sep 2002
Location: IN, USA
Distribution: Debian, Slackware, Kubuntu, ClarkConnect, FreeBSD
Posts: 366
Rep:
|
You could alternatively use vnc? I would make sure you don't leave the vnc port open to the outside world, but other than that it works quite well across a local network.
|
|
|
|
03-11-2003, 05:57 AM
|
#3
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,676
|
you don't want cygwin for that, vnc is a much better choice... you'll get linux's X server running in a window. but i think there's an option to make it run full screen.... i'd suggest using tightvnc as it's got encryption and compression methods to make it run faster over your network
|
|
|
|
03-11-2003, 07:20 AM
|
#4
|
|
Member
Registered: Dec 2002
Location: China
Distribution: Arch
Posts: 359
Rep:
|
If I understand you, you want to see the output of your linux box while working on a windows box. Then the X server should be on the linux box, not the windows one! That's what you've got mixed up. But indeed tightvnc might just be the answer you're looking for.
|
|
|
|
03-11-2003, 10:53 AM
|
#5
|
|
Member
Registered: Mar 2003
Location: Colorado
Distribution: RedHat 7.1/Redhat 8.0/Gentoo 1.4
Posts: 45
Rep:
|
If you want to chek that telnet is running properly, try to telnet from a command promt in XP, instead of Cygen's bash shell.
Start > Run > cmd
telnet <ip.host.here>
if you can connect through that, then you may have to make sure cygen actually installed telnet, and if not find a way to get it reinstalled (i.e. install telnet client yourself or go through the whole re-install process for Cygen)
also, on your linux box, as a test, turn off iptables (service iptables stop) and see if this works. If you had set up a firewall, RedHat 8 sets up some very closed rules by default.
Now, after all that, as someone who's used both Cygen and TightVNC, I would recommend the VNC route. It's a lot easier to use and setup. Download and install the server rpm on your linux box, get the client for XP, on the linux box, type vncserver and it will come back with a port #. start the XP client, enter <ip.host.name.here>:<vncport#>
just as easy as that :-)
and since I didn't see it posted before, here's the url:
http://www.tightvnc.com/
|
|
|
|
03-12-2003, 08:22 AM
|
#6
|
|
LQ Newbie
Registered: Mar 2003
Location: North West USA
Distribution: Redhat 8.0 & 9.0, Mandrake 9.0 & 9.2, Fedora Core 1, Knoppix
Posts: 28
Original Poster
Rep:
|
Hey there,
Thanks for the tip on tightVNC. It worked...sort of.
I installed the server on the linux box, stopped iptables (don't know if I had to do this...too much of a noob to understand iptables totally), fired up vncserver, saw that it was on port 1.
Installed vncviewer/server on the xp machine, started up the viewer, typed in the LAN address of the machine with the port number, logged in using the password I setup when executing vncserver on th elinux box, and then a blank, black and white screen came up with the little "X" as the pointer. That was as far as I could get.
Any thoughts on this?
Btw, thanks again. To get this far with tightVNC was way easier than cygwin was.
-G-
|
|
|
|
03-12-2003, 08:56 AM
|
#7
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,676
|
you should read the documentation more.. you need a ~/.vnc/xstartup file to tell vnc what do load on the server it creates.
|
|
|
|
03-12-2003, 09:54 PM
|
#8
|
|
LQ Newbie
Registered: Mar 2003
Location: North West USA
Distribution: Redhat 8.0 & 9.0, Mandrake 9.0 & 9.2, Fedora Core 1, Knoppix
Posts: 28
Original Poster
Rep:
|
Okay, so after some reading...guess what, I'm still lost.
First, after doing some reading, I started up the vncserver using the "vncserver -name box -geometry 1024x768" and up it went, fine, just like before.
I then went to the xp box, started up putty, connected to 192.168.1.101 and bingo, I'm in a bash terminal.
First, what happened to the black and white window with the "X" mouse pointer?
And i looked at the ~/.vnc/xstartup file, and this is what I got...
exec /etc/X11/xinit/xinitrc
...uh, okay.
I didn't find anything at tightVNC or at VNC websites that was any help in this. I'm a REAL NOOB so maybe it might be obvious, but poop, it ain't obvious to me.
I did find some, what appeard to be good, info HERE ...but again, no silver bullet.
As always, any help would be appreciated.
-G-
|
|
|
|
03-13-2003, 04:13 AM
|
#9
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,676
|
ok so that xstartup will just attempt to run the system default. have a look what that xinitrc file says. maybe it just doens't list a window manager at all, more likely though it's running twm which is disgusting. you'd be fine to just replace that line with "exec yourfavouritewindowmanager" and it should load find next time when you load vncserver
|
|
|
|
03-13-2003, 05:33 AM
|
#10
|
|
Member
Registered: Sep 2002
Location: IN, USA
Distribution: Debian, Slackware, Kubuntu, ClarkConnect, FreeBSD
Posts: 366
Rep:
|
"First, what happened to the black and white window with the "X" mouse pointer?"
You said you connected with putty and got a bash shell? You need to connect using the vncviewer.
And your ~/.vnc/xstartup file can be very simple like this:
########
#/bin/sh
fluxbox &
########
Of course replace fluxbox with your favorite window manager. After you edit the xstartup file you'll need to restart vncserver.
|
|
|
|
03-13-2003, 10:06 AM
|
#11
|
|
LQ Newbie
Registered: Mar 2003
Location: North West USA
Distribution: Redhat 8.0 & 9.0, Mandrake 9.0 & 9.2, Fedora Core 1, Knoppix
Posts: 28
Original Poster
Rep:
|
So, part of me feels kind of dumb here. After I posted that last message of mine, I googled every possible combination I could think of and found a very detailed description of setting up VNCserver and WinNT to talk to each other. However, it was written in broken english and still left some holes.
After reading that, I when and looked at /etc/X11/xinit/xinitrc file, and there was a bunch of stuff there that I couldn't read. It seemed to me that I should be able to change the ~/.vnc/xstartup file to not go over to xinitrc but rather just start something I wanted.
So I changed xstartup, and changed again, and changed, and changed. My main problem is that I'm such a noob that I don't really know what the syntax is. Anyway, I got the "black and white screen with the "X" mouse pointer" to turn to a solid grey backround with the "X" mouse pointer...but that's about it.
I tried
exec gnome-session
and
gnome-session &
and
/usr/bin/gnome-session
and
exec /usr/bin/gnome-session
and...
and I think you get the point.
And btw, irish_rover, I realized I had been stupid enough to connect through putty and not vncviewer. That was probably the low point after I posted that message and realized what I was doing.
Anway, I will say the help here has gotten me further that I would have ever done on my own. Thanks for the help, and as always, any more help would be appreciated.
-G-
|
|
|
|
03-13-2003, 11:27 AM
|
#12
|
|
Member
Registered: Mar 2003
Location: Colorado
Distribution: RedHat 7.1/Redhat 8.0/Gentoo 1.4
Posts: 45
Rep:
|
Do you have a default desktop already set up on the Linux box? If you login and type startx, does a desktop startup, or does it automatically load when you login?
I'm not sure about the xinitrc script, but from what I know, if you have the desktop setup, it should run your defauls automatically.
|
|
|
|
03-13-2003, 11:40 AM
|
#13
|
|
LQ Newbie
Registered: Mar 2003
Location: North West USA
Distribution: Redhat 8.0 & 9.0, Mandrake 9.0 & 9.2, Fedora Core 1, Knoppix
Posts: 28
Original Poster
Rep:
|
When I turn on the linux box, the graphical login screen comes up. I log in, and up starts gnome...kind of like starting that other OS that is out there.
I don't have to start up gnome from the command line if that's what you're asking.
Which brings me to another question I was thinking about. Is there a problem with running gnome on the linux box and then trying to get gnome to run through the tightVNC connection? What I mean to ask is it seems like the linux box would have to be running two sessions of gnome...can it do that...or am I off here?
Thanks again...
-G-
|
|
|
|
03-13-2003, 12:59 PM
|
#14
|
|
Member
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228
Rep:
|
Where is this file (~/.vnc/xstartup) located?
|
|
|
|
03-13-2003, 01:05 PM
|
#15
|
|
LQ Newbie
Registered: Mar 2003
Location: North West USA
Distribution: Redhat 8.0 & 9.0, Mandrake 9.0 & 9.2, Fedora Core 1, Knoppix
Posts: 28
Original Poster
Rep:
|
mine is in the root home...
/root/.vnc/xstartup
The "~/" represents the "home" directory for the user, if I'm not mistaken (some one correct me here if I'm wrong). In my case, it's the root user that installed the tightVNC stuff, so the xstartup file was created in the root's home directory under the .vnc directory.
Hope that helps...
-G-
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:18 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|