LinuxQuestions.org
Help answer threads with 0 replies.
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 06-22-2004, 06:21 PM   #1
the bishop
LQ Newbie
 
Registered: Jun 2004
Posts: 19

Rep: Reputation: 0
x0rfbserver or VNC server -- startup


Here is my dilemma.

I want to have a headless machine that will automatically log in as "x" user and also run either x0rfbserver or vnc server so that I can remote into it and control it and also put gAIM on there for all my IM accounts. Can these be done? I've seen some comments to one or the other on a few threads, but nothing that I saw regarding auto running it.

any help for the n00b of the day question would be much appreciated. thanks guru types. Linux > windoze.
 
Old 06-22-2004, 10:04 PM   #2
the bishop
LQ Newbie
 
Registered: Jun 2004
Posts: 19

Original Poster
Rep: Reputation: 0
so I have it loggin in as a normal user, and that is working great, but when I try to run vncserver :1 it isn't working ... the only way I can get that vncserver to run is if I su to root and then run it ... which bites because then when I vnc into that machine it comes up as root's desktop and I would like it to be the normal users's desktop .... any ideas?
 
Old 06-23-2004, 02:08 AM   #3
mascdman
Member
 
Registered: Jun 2004
Location: Canada
Distribution: Ubuntu 6.06 LTS
Posts: 152

Rep: Reputation: 30
Does vncserver report any errors when you try to start it as a regular user?

--mascdman
 
Old 06-23-2004, 03:01 AM   #4
the bishop
LQ Newbie
 
Registered: Jun 2004
Posts: 19

Original Poster
Rep: Reputation: 0
actually, I ended up using x11vnc instead. I took a look at http://www.karlrunge.com/x11vnc/ and it was easy to use and whammo! there i go.
 
Old 06-23-2004, 06:57 AM   #5
mascdman
Member
 
Registered: Jun 2004
Location: Canada
Distribution: Ubuntu 6.06 LTS
Posts: 152

Rep: Reputation: 30
Ah, cool.

--mascdman
 
Old 06-23-2004, 04:23 PM   #6
the bishop
LQ Newbie
 
Registered: Jun 2004
Posts: 19

Original Poster
Rep: Reputation: 0
thanks again for the quick reply man, I surely appreciate it
 
Old 07-22-2004, 08:54 PM   #7
X-Quest
LQ Newbie
 
Registered: Jul 2004
Posts: 3

Rep: Reputation: 0
I'd bet if you changed ownership of the vncserver program, you could run it as your normal user. chown user:group /usr/bin/vncserver

X
 
Old 07-22-2004, 08:56 PM   #8
X-Quest
LQ Newbie
 
Registered: Jul 2004
Posts: 3

Rep: Reputation: 0
I just remembered, I think vncserver may install to sbin which micht not be in you $path. Oh well, another thought.

X
 
Old 02-11-2005, 01:21 PM   #9
writinguy
LQ Newbie
 
Registered: Feb 2005
Posts: 1

Rep: Reputation: 0
Just in case anyone comes across this thread...

I was also trying to figure out how to run x0rfbserver on startup using Mandrake 10.1 and GNOME.

Turns out it's pretty easy to add applications to your startup.

Login as su (super user, aka root) from the Gnome terminal window, then browse to /etc/X11/gdm (cd /etc/X11/gdm) (gdm is the Gnome X-display manager)

In the folder /etc/X11/gdm, there are several sub-folders: Init, PreSession, PostSession, and PostLogin.

Go to the PostLogin folder (cd PostLogin) and look for the script named Default (ls). There probably will NOT be one there yet, so copy one from one of the other folders:

cp ../Init/Default ./

Now edit the Default script file and modify the code to execute the server. Note that you should use the exact folder location of x0rfbserver.

gedit Default

#!/bin/sh
if [ -x /usr/bin/x0rfbserver ]; then
/usr/bin/x0rfbserver &
fi
exit 0
 
Old 02-11-2005, 09:47 PM   #10
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Wow!

Too complex.

Under 10.1 setup is all but automatic. My explanation will make it seem more complex than it is...

Merely

urpmi vncserver

To install the software (assuming you've CORRECTLY set up your urpmi sources...)

Then edit the /etc/sysconfig/vncservers file

You should have an UNCOMMENTED line which reads

VNCSERVERS="1:vncuser"

Where "vncuser" is the username that will be auto logged in to when the VNCSERVER itself starts up. In other words, the user account the vncuser will come in as.

You can use a NEW seperate account or an existing user one, but be aware that this user will be automatically logged in, under screen "1".

Once you've created the user account login to the account locally at least once, to permit initial configuration to occur.

Once at the desktop, open a console and enter

vncpasswd

and follow the prompts. This will set the password which a remote user must enter to access the machine.

Once done, as root in a console type in

chkconfig --add vncserver


If you wish to go ahead and start the server w/o rebooting type in

service vncserver start

as root.

That's it.

VNCserver will run automatically whenever the machine comes up.
 
Old 02-24-2005, 11:35 AM   #11
Maxplayer14
Member
 
Registered: Sep 2003
Posts: 45

Rep: Reputation: 15
What about 10.0? I don't see vncserver anywhere...

I have tightvnc and and rfbdrake but it doesn't appear vncserver is anywhere.

So then I I did a urpmi vncserver, and it says no package by that name.

Any ideas?
 
  


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
VNC on startup jagster Linux - Newbie 2 05-13-2005 09:39 PM
VNC at startup with Mandrake 9.2 crates Linux - Software 4 01-14-2004 03:07 AM
vnc on startup klintonray Linux - Software 8 10-26-2003 08:34 AM
Starting x0rfbserver (VNC basically) via SSH deckmoney Linux - Software 0 04-16-2003 04:28 PM
Auto Load x0rfbserver (VNC) On Boot zipur Linux - Software 5 10-08-2002 11:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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