LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 01-07-2004, 11:28 AM   #1
xscott
LQ Newbie
 
Registered: Jan 2004
Distribution: Mandrake 9.2
Posts: 7

Rep: Reputation: 0
Best way to setup headless system


I don't know if this is the best way, but I would like to setup Mandrake9.2 so that when it boots I can connect to it through VNC or similar connection.

Right now I have to login and start the VNC server manually. I am new to linux CLI so not sure if a pure CLI solution is good for me yet. How would I automate the VNC server during boot and what security issues is there to a machine that currently isn't accessed by internet but would like to in future.

Experiences and options would be helpful.

TIA
 
Old 01-08-2004, 10:19 AM   #2
webnoelle
Member
 
Registered: Jul 2003
Distribution: Red Hat
Posts: 37

Rep: Reputation: 15
Hi xscott! I just finished doing what you are getting ready to do!

I just found this link on how to make VNC more secure http://www.uk.research.att.com/archive/vnc/sshvnc.html might be worth a gander. I will be trying it when I get home

I am running into a similar problem with starting the vnc server that you are, my specific problem was that I can start a program when the system starts up, but with RealVNC, the vncserver actually runs based on the user who ran it. So if you run it as Root, your VNC server will be running under Root, etc! So I am still looking for a solution to starting RealVNC at boot time as a different user.

I currently have no linux box with a monitor attached to it, I see no need to. Through my 100meg full duplex connection and RealVNC I feel like I am sitting right in front of it from my Windoze machine! The only things I have enabled on the machine are SSH, and RealVNC. That's all you need!

Last edited by webnoelle; 01-08-2004 at 10:20 AM.
 
Old 01-08-2004, 10:27 AM   #3
webnoelle
Member
 
Registered: Jul 2003
Distribution: Red Hat
Posts: 37

Rep: Reputation: 15
P.S. I would highlysuggest completely disabling or removing telnet access, as this completely trash's the security of that system
 
Old 01-08-2004, 11:28 AM   #4
xscott
LQ Newbie
 
Registered: Jan 2004
Distribution: Mandrake 9.2
Posts: 7

Original Poster
Rep: Reputation: 0
How / where do you start the vnc service on boot?
 
Old 01-08-2004, 11:34 AM   #5
webnoelle
Member
 
Registered: Jul 2003
Distribution: Red Hat
Posts: 37

Rep: Reputation: 15
On my RedHat boxes, it would be under /etc/rc.local, I am not sure if that is what mandrake is using too.

At the end I just added "/path/to/vncserver".

Do you know of a way to run a program as another user via command prompt?
 
Old 01-08-2004, 11:40 AM   #6
webnoelle
Member
 
Registered: Jul 2003
Distribution: Red Hat
Posts: 37

Rep: Reputation: 15
I just found this online, seems about the only answer:

"Add a cron job for the correct user, specify "@reboot" in place of all 5
time fields. 'man 5 crontab' for more details."

Might be worth a try? I will try it when I get home As usual!

[edit] only answer so far . . . [/edit]

Last edited by webnoelle; 01-08-2004 at 11:41 AM.
 
Old 01-08-2004, 11:40 AM   #7
xscott
LQ Newbie
 
Registered: Jan 2004
Distribution: Mandrake 9.2
Posts: 7

Original Poster
Rep: Reputation: 0
Not yet.

But I have an email to a friend of mine that is close to Guru statis. If/when I find out I will post it.
 
Old 01-08-2004, 11:41 AM   #8
webnoelle
Member
 
Registered: Jul 2003
Distribution: Red Hat
Posts: 37

Rep: Reputation: 15
Awsome that would be great! I would also like to know how to do this!
 
Old 01-08-2004, 03:11 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 13,169

Rep: Reputation: 1070Reputation: 1070Reputation: 1070Reputation: 1070Reputation: 1070Reputation: 1070Reputation: 1070Reputation: 1070
Was VNC selected during the install?

If so then it should be easy to configure to start up at boot. See chkconfig man pages. Set runlevel 3n for vnc.
 
Old 01-08-2004, 04:05 PM   #10
webnoelle
Member
 
Registered: Jul 2003
Distribution: Red Hat
Posts: 37

Rep: Reputation: 15
It wasn't an included package with my RedHat 9 distro, I'm not sure about Mandrake tho. If that's what you are talking about.
 
  


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
hp-ux headless installation kpachopoulos Other *NIX 2 01-20-2005 05:12 AM
going headless? the bishop Mandriva 5 06-24-2004 02:44 AM
headless server gravij Linux - General 2 06-06-2004 07:24 AM
newbie.. headless fileserver, setup and administration mipia Linux - Networking 2 02-26-2004 12:01 PM
can i upgrade a headless system via telnet jjdonn Linux - Newbie 2 07-02-2002 12:31 PM


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