On Tue, May 29, 2012 at 11:18 AM, Rick Stevens <ricks(a)alldigital.com> wrote:
On 05/29/2012 10:26 AM, Tommy Pham wrote:
>
> Hi,
>
> Is it possible to have remote access via VNC without having the user
> to be logged in (automatically, especially on a system reboot)?
You could share the display in the X configs, e.g.:
cat /etc/X11/xorg.conf.d/00-system-setup-vnc.conf
# This file is to share the root screen via VNC
Section "Module"
Load "vnc"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Option "SecurityTypes" "VncAuth"
Option "UserPasswdVerifier" "VncAuth"
Option "passwordfile" "/root/.vnc/passwd"
EndSection
You may have to refresh the display after connecting when the user
login screen is shown. I have to on occasion...something with the
way the login mechanism (gdmgreeter?) updates the screen.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital ricks(a)alldigital.com -
- AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 -
- -
- Beware of programmers who carry screwdrivers -
----------------------------------------------------------------------
--
Hi Rick,
I just tried it why your suggested configuration but I'm still unable
to access via VNC.
[root@fedora17 ~]# find / -type f -name 'passwd'
/sys/fs/selinux/class/passwd/perms/passwd
find: `/run/user/dlp/gvfs': Permission denied
/usr/share/bash-completion/completions/passwd
/usr/bin/passwd
/etc/pam.d/passwd
/etc/passwd
I've rebooted the system with no effect.
Thanks,
Tommy