LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 05-20-2004, 05:20 AM   #1
jvdbossc
LQ Newbie
 
Registered: May 2004
Posts: 7

Rep: Reputation: 0
run vnc-server as other user in rc.local


Hi,

When I use the following commands in a bash shell it works but not in rc.local:

su jvdbossc (freshly user)
vncserver -name Earthling -depth 16 -geometry 1024x768

The meaning of this would be to be able to vnc to a user destkop so I can use evolution email (ximian gnome desktop is running in a vnc session when I start the vnc-server)

Red hat 7.3 just stops and says no job control... at boot.

When I point to another executable file ./emailvnc and use the same commands the rc.local gets into the ./emailvnc file but nothing seems to happen exept that it changes to user jvdbossc.

(the vncserver command seems not to be executing. I changed the ./emailvnc with chown jvdbossc emailvnc


nothing seems to work, but i would like to use the desktop as normal user..;

Any ideas would be appreciated

txxs
 
Old 05-25-2004, 11:48 AM   #2
adamwenner
Member
 
Registered: Aug 2003
Distribution: windows xp home, windows 98, red hat 9, fedora core 3, redhat enterprise linux, win2000 pro/server
Posts: 217

Rep: Reputation: 32
allright, what you need to do is put this in your rc.local file

su - username -c "vncserver"

after vncserver, you can add whatever options you want

before putting this in your rc.local file, login as username and run vncserver and it will ask for a password, type in the password, then put that line above in your rc.local file
 
Old 05-26-2004, 02:10 AM   #3
jvdbossc
LQ Newbie
 
Registered: May 2004
Posts: 7

Original Poster
Rep: Reputation: 0
ok

this suggestion is working!

txs
 
  


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
Cannot start vnc server because the USER environment variable is not set izac5 Linux - Newbie 4 11-21-2009 08:10 PM
VNC server as unprivileged user CartersAdvocate Slackware 1 12-18-2004 10:51 PM
Unable to login as local user with vsftpd running on the server kairamr Linux - Newbie 1 06-09-2004 02:25 PM
X with no desktop when VNC Server started from user account jboo Linux - General 1 02-04-2004 02:40 PM
Unable to run webpage on local server using ip in the url MakingOfAGeek Linux - Newbie 16 11-15-2003 07:09 AM


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