Networking Forums

Networking Forums > Computer Networking > Linux Networking > VNC Heres how to start Xdesktops on startup

Reply
Thread Tools Display Modes

VNC Heres how to start Xdesktops on startup

 
 
Ryan Hubbard
Guest
Posts: n/a

 
      12-23-2003, 03:43 PM
I've seen many postings in this newsgroups on how to startup desktops
for VNC (Xvnc), vncserver with different geometrys. Everyone knows
about the /etc/sysconfig/vncservers files which allows the creation of
vncserver desktops by user but cannot change depth or geometry. Heres
the way I found out and it works good for me. Use the startup script
which is run automatically (if setup in services),
/etc/rc.c/init.d/vncserver (bash script). In this file I put in a
function startupDesktops and then called this function from the start
function.
EXAMPLE:
start(){
echo -n ......
.....
.....
# Call startupDesktops Function
startupDesktops
}
startupDesktops(){
# command to start a Xdesktop
su - USER -c "vncserver :2 -geometry 960x720 -depth 8
}

ENDEXAMPLE

in the startupDesktops you can call the vncserver command (just a perl
script) as if you where at the console. I'll be happy to entertain
any questions or comments or better ways to do this.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WPA on startup Navid Wireless Networks 2 05-12-2005 09:56 PM
Netgear WG511 will not start at startup Keith Gregory Linux Networking 0 02-19-2005 06:37 PM
dhcpd in rc script doesn't start, but it does start by hand j Linux Networking 3 06-08-2004 12:30 PM
DHCP client fails to start on PDC, DNS client fails to start on Schema DC Edward Ray \(502974\) Windows Networking 3 04-14-2004 09:23 PM
RH9: I need to start ADSL-START as root for the first time after boot .... Gabolander Linux Networking 3 08-13-2003 09:52 AM



1 2 3 4 5 6 7 8 9 10 11