LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-22-2005, 12:58 AM   #1
shadowsurfer
Member
 
Registered: Aug 2004
Location: philippines
Posts: 51

Rep: Reputation: 15
remote access software


I have a linux machine (redhat 7.2) that I can access from outside the network. The linux has got only a command line access to it or in other words , x windows may not be running. I donot have physical access to that box.

What I want to do is , from outside the network , I should be able to open a browser in that box or in other words run some kind of x windows from my windows machine so that I can open the browser.

Any ideas ?
 
Old 09-22-2005, 01:26 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Couldn't you just use a text browser? There is really nothing you can do in X that you can't do on the CLI in some way or another.

Or what about X over SSH?
 
Old 09-22-2005, 01:35 AM   #3
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
I have a similar set-up at home. I have a server that boots to text mode, but starts up SSH on a non-standard port (yes, I'm paranoid). Anyway, if I'm using Windows, I SSH into the box (using PuTTY), and issue vncserver. I close the SSH session, and connect with a VNC viewer from the Windows side. Then I can run whatever I need on the server under Linux. So, to do this, obviously you need to have SSH (or some telnet equivalent) on the Linux box and it needs to start up automatically. You also need VNC installed on the Linux box and a VNC viewer on the other machine. It may sound complicated, but it's very simple.
 
Old 09-22-2005, 02:05 AM   #4
shadowsurfer
Member
 
Registered: Aug 2004
Location: philippines
Posts: 51

Original Poster
Rep: Reputation: 15
can you give me the basic step to set up the configuration.
 
Old 09-22-2005, 02:28 AM   #5
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
You have terminal access already, so you can skip the SSH business; just use whatever command line access you already have (telnet, SSH, or whatever)

Just log into the server, check to see if VNC is already installed. It's a fairly standard utility. To test, just try the command I gave earlier: vncserver

If you get a "command not found" error, then VNC will need to be installed. I don't know the specifics of your situation, and you may need to talk with support people to install software if it's a paid eservice you're using.

If the command does work, you'll be asked if you'd like to use a password to connect to your desktop, and then you'll get a message to the effect of "starting server on display :X" where X is a number (1,2,3,...).

Now, open up a VNC viewer on the machine you have locally. If you don't have a VNC viewer, you can download one from these guys. They have versions available for Windows and Linux. When you run the VNC viewer, it will ask where to connect to. You need to type in your remote server's name or IP address followed by ":X" where X is the same number you got from the vncserver command previously.

If all goes well, you'll get a window that opens showing a desktop. What type of desktop you get depends on two things:
1) What software the remote machine has installed (plain X windows, GNOME, KDE, ... )
2) What commands are contained in your ${HOME}/.vnc/xstartup file - this file tells VNC what to run when you run vncserver

For reference, here's one I use (for a GNOME environment):
Code:
#!/bin/sh

[ -r ${HOME}/.Xresources ] && xrdb ${HOME}/.Xresources

unset SESSION_MANAGER
exec gnome-session &
If the vncserver command worked, you're positive you entered the host/IP of the remote machine correctly, and you get a "timed out" error from the viewer, then it's likely the server has a firewall set up. Again, depending on your situation, you may need to talk with support personnel to open up the port you need.
 
Old 09-22-2005, 02:28 AM   #6
AngryLlama
Member
 
Registered: Sep 2004
Location: /dev/urandom
Distribution: Gentoo
Posts: 171

Rep: Reputation: 30
install sshd.
add it to your rc scripts
install vnc
 
Old 09-22-2005, 02:35 AM   #7
shadowsurfer
Member
 
Registered: Aug 2004
Location: philippines
Posts: 51

Original Poster
Rep: Reputation: 15
well thank for the info ill try it first

thanks a lot..
 
Old 09-22-2005, 10:22 AM   #8
Gibsonist
Member
 
Registered: Mar 2004
Location: Meersburg (GER)
Distribution: Cygwin,RH 7.2 7.3, SuSe 6.4 8.2 9.1,TinyLinux, Debian Sarge, Knoppix 3.*, Knoppicilin, Knoppix STD
Posts: 191

Rep: Reputation: 30
Another option would be FreeNX as it is bit more secure than VNC and also it is faster (you can really remote control a PC even over a 128kb ISDN without any real problems)

You get the Client for free of http://www.nomachine.org
the server and its setup instructions you can find via google.
 
  


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
Remote access Artik Debian 5 06-05-2005 12:14 PM
Remote Access billquinn Linux - Networking 2 05-16-2005 08:30 AM
Remote Access Kenster Red Hat 7 12-14-2003 05:01 AM
Remote Access ziegler Linux - General 6 05-02-2003 12:26 PM
Remote Access... verbal Linux - Newbie 2 07-28-2002 05:17 PM


All times are GMT -5. The time now is 05:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration