LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   setting up tightvnc for multiple users on same machine (https://www.linuxquestions.org/questions/linux-software-2/setting-up-tightvnc-for-multiple-users-on-same-machine-846814/)

lpallard 11-26-2010 10:53 PM

setting up tightvnc for multiple users on same machine
 
I am searching for a way to have multiple sessions or users on the same vnc server. I have a machine that I need to remotely access as root (for admin purposes) and as myself (as the normal user) the rest of the time. I probably will never have to remotely login at the same time as both root and myself (I am not that multitasking!)

I searched the web for almost 1 hour without finding anything useful...

Right now my /etc/rc.d/rc.vncservers.conf looks like:
Code:

VNCSERVERS="1:root 2:lpallard"

VNCSERVERARGS[1]="-geometry 1024x768 -depth 24"
VNCSERVERARGS[2]="-geometry 1024x768 -depth 24"

but when I start the vnc server, I get:
Code:

root@amd666:~# /etc/rc.d/rc.vncservers start
Starting VNC server: 1:root
New 'X' desktop is amd666:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/amd666:1.log

2:lpallard failure

Seems that the desktop 1 gets created and I can access it. Desktop 2 (my normal user account is inaccessible. What am I doing wrong?
Thanks

paulsm4 11-26-2010 11:12 PM

Hi -

This looks OK:
Quote:

/etc/rc.d/rc.vncservers.conf =>

VNCSERVERS="1:root 2:lpallard"
This looks OK, too:
Quote:

/etc/rc.d/rc.vncservers.conf =>

VNCSERVERARGS[1]="-geometry 1024x768 -depth 24"
VNCSERVERARGS[2]="-geometry 1024x768 -depth 24"
Q: Did you create "$HOME/.vnc" for user lpallard? And, optionally, a $HOME/.vnc/xstartup file?
Quote:

EXAMPLE:
vi $HOME/.vnc/xstartup =>
unset SESSION_MANAGER
exec /usr/bin/xfce4-session &
Q: Did you run vncpasswd (this should automatically create ~lpallard/.vnc)?

Q: Did you try logging in to "amd666:2" for lpallard?

Q: Did you check the access and error logs in ~lpallard/.vnc?
WERE there any access and/or error logs in ~/lpallard/.vnc?

lpallard 11-27-2010 09:44 AM

paulsm4, thanks for your help! My problem was that I did not have the xstartup file...

It now works. I need to find out why the colors are all corrupted. Seems to be only the KDE desktop environment as my wallpaper is OK and the icons too... very strange.


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