MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.