LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 03-17-2003, 01:01 PM   #1
thevariegator
LQ Newbie
 
Registered: Mar 2003
Location: maryland
Distribution: SuSE
Posts: 11

Rep: Reputation: 0
remotely control linux box


My objective is to have a machine running red hat 7.2, and be able to use VNC to control it. The situation is that im not going to have physical access to this machine, hence my desire to use VNC.

Where I get fuzzy, is how to have the machine boot, and have the X come on and VNC start without someone physically being at the machine. Should I accomplish this via ssh? Or are there other options/better ways to go, etc.
 
Old 03-17-2003, 01:24 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,537

Rep: Reputation: 149Reputation: 149
It depends. When you put runlevel 5 and vnc into your startup scripts, they'll boot by default. SSH can help if there's X problem. But in case of serious error (when the system doesn't boot) phisical access is a must.
 
Old 03-17-2003, 01:32 PM   #3
thevariegator
LQ Newbie
 
Registered: Mar 2003
Location: maryland
Distribution: SuSE
Posts: 11

Original Poster
Rep: Reputation: 0
how would i add the two of them to my startup script?
 
Old 03-17-2003, 01:43 PM   #4
Burke
Member
 
Registered: Dec 2002
Location: Virginia, USA
Distribution: Fedora Core 3
Posts: 131

Rep: Reputation: 15
Actually, you should have SSH startup, but maybe not VNC. You're really best off blocking access to the VNC port at your firewall and only allowing SSH through.

SSh to your box with a tunnel setup for 5901 (for first screen of VNC, or 5902 for second, etc). Note that putty.exe does this quite well if you're working from a Windblows machine as I have to from work.

Launch your "vncserver" program and specify the password.

When VNCviewer is launched at the client side, you have it point to localhost:1 -- SSH kicks in at this point and tunnels your data to your server.

Setting things up this way adds an extra level of security to using VNC over a public network.
 
Old 03-17-2003, 01:59 PM   #5
PhilD
Member
 
Registered: Mar 2003
Location: Iowa, US
Distribution: Gentoo!!, Mandrake 9.1
Posts: 170

Rep: Reputation: 30
I would have to agree with Burke! (Although I will admit I have never done it this way. I may have to go home and play tonight.) For the record though, you can add programs and scripts that you want executed to the...

/etc/rc.d/rc.local

file. Lines in here get executed after the initial boot up but before the user logs in. For my server (in a closet, not off site) I ssh into it and start my vnc server when I need to do maintenance. I don't leave the server up. The best/easiest way to do this will depend on what type of security you need.

Hope this helps,

PhilD
 
Old 03-17-2003, 02:04 PM   #6
thevariegator
LQ Newbie
 
Registered: Mar 2003
Location: maryland
Distribution: SuSE
Posts: 11

Original Poster
Rep: Reputation: 0
Burke, thank you but that sounds complex and im slow

Phil, if i want to do what you're saying, i believe i have to have X running before I can login via VNC. If so, would i start X through SSH, then start vnc?
 
Old 03-17-2003, 02:08 PM   #7
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,537

Rep: Reputation: 149Reputation: 149
Do you have VNC from RPMs? To make X start at boot open /etc/inittab, find line 'id::3:initdefault', change 3 to 5, save.
 
Old 03-17-2003, 02:22 PM   #8
thevariegator
LQ Newbie
 
Registered: Mar 2003
Location: maryland
Distribution: SuSE
Posts: 11

Original Poster
Rep: Reputation: 0
At the moment i dont have anything, I'm finishing building the machine when I get off work this evening, and then I'm going to start installing all of this.
 
Old 03-18-2003, 01:26 PM   #9
Burke
Member
 
Registered: Dec 2002
Location: Virginia, USA
Distribution: Fedora Core 3
Posts: 131

Rep: Reputation: 15
It is not necessary to have the machine boot into a gui. As long as you have X installed and a couple desktop managers (KDE/Gnome/whatever), you should be okay. Just have the machine boot up to a login prompt (Saves resources!).

As long as you have your vncserver running through some init scripts and it has a password setup, you'll be able to connect to the desktop just fine from vncviewer on Linux or Windows.
 
Old 03-18-2003, 04:41 PM   #10
mhearn
Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 47
What's wrong with native X network transparency?
 
Old 03-18-2003, 06:03 PM   #11
thevariegator
LQ Newbie
 
Registered: Mar 2003
Location: maryland
Distribution: SuSE
Posts: 11

Original Poster
Rep: Reputation: 0
Whats native X network transparency, how does it work?
 
Old 03-18-2003, 06:57 PM   #12
Burke
Member
 
Registered: Dec 2002
Location: Virginia, USA
Distribution: Fedora Core 3
Posts: 131

Rep: Reputation: 15
Good point mhearn --
thevariegator -- what OS is the machine that you will be accessing this one with?

If you're using a Linux workstation, you can just SSH to the workstation you need to control, then you can launch X programs from the SSH session. Since both machines have all the necessary X stuff, the program will launch the graphical interface on your local station -- it's pretty cool.
 
Old 03-18-2003, 07:07 PM   #13
Phonics3k
Member
 
Registered: Jun 2002
Location: Wales, UK
Distribution: Gentoo 2005.1
Posts: 213

Rep: Reputation: 30
just a stupid question, but I need to access Linux through a windows box, SSH is setup but what program do I use on windows? where do I get 1 from?
 
Old 03-18-2003, 07:11 PM   #14
Burke
Member
 
Registered: Dec 2002
Location: Virginia, USA
Distribution: Fedora Core 3
Posts: 131

Rep: Reputation: 15
putty.exe -- do a search on google. It's a standalone executable - no install required and small enough to fit on a floppy. You can setup tunneling for multiple ports -- great stuff
 
Old 03-18-2003, 07:13 PM   #15
Phonics3k
Member
 
Registered: Jun 2002
Location: Wales, UK
Distribution: Gentoo 2005.1
Posts: 213

Rep: Reputation: 30
Thanx Burke, I will do that now, u should get an affero name, i can rate u brill then.
 
  


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
Media player remotely control? Garma Linux - Software 3 04-02-2005 08:27 AM
Using WinXP to remotely control Linux box RDP? VNC? Fisslefink Linux - Networking 4 03-14-2005 12:38 AM
linux box to remotely use mac os x ip for http Samsara Linux - Networking 3 01-31-2005 09:26 AM
remotely control/login to system without forwarded 20-22 fibbi Linux - Software 2 10-20-2004 08:56 AM
Can I create a popup box that alerts me when someone logs in to my box remotely? davee Linux - Security 1 06-29-2004 03:00 PM


All times are GMT -5. The time now is 01:17 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration