LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-13-2004, 07:30 AM   #1
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 140

Rep: Reputation: 15
thightVNC for Mandrake 10.0


I did some searching,
but can't figure out what thightVNC sources I should download
to build and install on my mandrake 10 server.

The purpose is to use tightVNC inside the firewall,
monitorring the linux server from a win xp.

So, if anyone knows a download site WITH instructions,
I'm (very) new to linux, getting my webserver with db and all
running was like a miracle ... and a very though job ...
 
Old 09-13-2004, 07:45 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
As far as I know, VNC on Mandrake CDs is TightVNC! No need to compile. At least that was the case on Mandrake9.1.
Go to the software manager, and look for vnc.
 
Old 09-13-2004, 08:04 AM   #3
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 140

Original Poster
Rep: Reputation: 15
You're right, found it ...
but it gives (Missing signature) error

anyway, I know what to look for now ...

The documentations seems to be on the (missing) cd 4 ...

horray !
 
Old 09-13-2004, 08:21 AM   #4
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 140

Original Poster
Rep: Reputation: 15
horray,
downloaded and installed it.

eh, how do I use it ?
Can't find the installed documentation, how nasty ...
 
Old 09-14-2004, 09:05 AM   #5
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 140

Original Poster
Rep: Reputation: 15
anybody who can help me out how to start the thightVNC server on linux (Mandrake 10) ?
 
Old 09-15-2004, 06:47 AM   #6
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 140

Original Poster
Rep: Reputation: 15
the command
vncserver
did the trick ...
life can be so simple, it actually configurred it and it works.

up to next problem:

How can I make it run at startup ?

I putted it in rc.local, but it doesn't help.
 
Old 09-15-2004, 07:39 AM   #7
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
What do you mean "at startup"? You mean after you have logged in? Or when the PC is booting?
In the latter case, what should the session display?

Yves.
 
Old 09-15-2004, 07:46 AM   #8
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 140

Original Poster
Rep: Reputation: 15
You're right, I should made it more clear.

What I mean is that it's up and running at boot,
the goal is that the server is running completely
just by pressing the power button.

that's why I used rc.local,
this works to make my apache and tomcat server running ...
 
Old 09-15-2004, 07:54 AM   #9
geniarse
Member
 
Registered: May 2003
Location: UK
Distribution: Gentoo
Posts: 141

Rep: Reputation: 15
TightVNC will require an xserver to be running so try placing in xinitrc to start it when X starts up.

I've found this VNC server http://xf4vnc.sourceforge.net/, which loads as an X module and supports all TightVNC features apparently. I've used it and it works well, and has advantage of allowing you to connect to an existing X session rather than starting a new one.
 
Old 09-15-2004, 08:11 AM   #10
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 140

Original Poster
Rep: Reputation: 15
wow, not so fast, I'm new to linux, 2 months ago I never saw a linux.

First: I can't find xinitrc.
Second: X server runs already (as far as I know), it starts automatic at boot,
I get a graphical login screen. The only thing I don't want to do is actually have to log on ...
I want to do this remotely, so I can put this server in the attic (in a way of speaking)
and control everything from my windoze pc here (for now I'm still running windows,
one step at a time.)

I would be happy if I don't have to install another vnc server ...
 
Old 09-15-2004, 09:43 AM   #11
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
OK. If I understand correctly, you want to boot the PC, which will then start at boot some servers, among which is a VNC server.
This VNC server should display *your* desktop without you having to log in locally.
But this PC will be hidden, so it really does not need a local display.

Am I right?

If so, I think the simplest solution is to (1) switch to text mode, and (2) start VNC without a local display. For that here are the steps:

1) Open /etc/inittab in a text-editor, and change the default runlevel from 5 to 3. This can also be done somewhere in the boot options of MandrakeControlCenter.
2) Open /etc/rc.d/rc.local in a text-editor, and append those 2 lines to it:
rm -f ~you/.vnc/*.pid ~you/.vnc/*.log
su - you -c vncserver
where you replace "you" by your real login.
3) reboot.

Do those steps only when you're sure that vncserver starts OK as your user, and without asking for anything.
There may be interesting options to use for vncserver, among which is asking for a password to people connecting remotely. But I don't remember vncserver's options. I hope this helps.

Yves.

Last edited by theYinYeti; 09-15-2004 at 09:44 AM.
 
Old 09-15-2004, 10:15 AM   #12
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 140

Original Poster
Rep: Reputation: 15
rm -f ~you/.vnc/*.pid ~you/.vnc/*.log
su - you -c vncserver

did the trick, no need to change the runlevel.
THANX !

next to the last question I hope:
how to remotely reboot the whole pc ?
closing the session seems to be the only option I have from remote.
 
Old 09-15-2004, 11:21 AM   #13
geniarse
Member
 
Registered: May 2003
Location: UK
Distribution: Gentoo
Posts: 141

Rep: Reputation: 15
open an xterm and type

Code:
su -c reboot
after entering password machine should reboot
 
Old 09-17-2004, 08:27 AM   #14
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 140

Original Poster
Rep: Reputation: 15
thanx,
this works fine.

Yet another small problem.

How to shutdown remotely ?

the command
shutdown
or
su -c shutdown

doesn't work at all
 
Old 09-17-2004, 09:09 AM   #15
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
On Mandrake: halt.

Yves.
 
  


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
Mandrake 9.2b2: Unable to find / launch Mandrake Control Center blafield Mandriva 2 06-12-2009 04:38 AM
dual booting fedora core 2 and mandrake: can't boot mandrake any more mgyamada Fedora 1 10-04-2004 08:39 AM
Completely new to Linux, Downloaded Mandrake 10 and want to run both XP and Mandrake Scandal Mandriva 4 06-28-2004 11:03 PM
Upgrading Mandrake 9.1RC2 to Mandrake 9.2 final Without ISOs johnleemk Mandriva 1 12-27-2003 01:17 AM
Uninstalled Mandrake, Installed Slackware, still getting mandrake boot screen powerismine Slackware 4 11-22-2002 07:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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