LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] rc.local for vnc

[ILUG] rc.local for vnc

Ben Edwards lostit at videonetwork.org
Wed Apr 12 19:33:32 IST 2000


I have put the following line at the end of rc.local giving me:-
---------------------------------------------------------------
#!/bin/sh

if [ -f /etc/redhat-release ]; then
     R=$(cat /etc/redhat-release)

     arch=$(uname -m)
     a="a"
     case "_$arch" in
             _a*) a="an";;
             _i*) a="an";;
     esac

     echo "" > /etc/issue
     echo "$R" >> /etc/issue
     echo "Kernel $(uname -r) on $a $(uname -m)" >> /etc/issue

     cp -f /etc/issue /etc/issue.net
     echo >> /etc/issue
fi

su ben -c '/usr/bin/vncstart :5 > /tmp/vnc.log'
---------------------------------------------------------------
The last line works find if run for root (it starts up the vnc server)  But 
douse not seem to do anything at startup.

Any ideas,
Ben
*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+
* Ben Edwards lostit at videonetwork.org    +44 (0)7970 269 522 *
* Campaign Against proper English, Dyslexic division         *
* Homepage                http://www.gifford.co.uk/~bedwards *
* i-Contact Progressive Video    http://www.videonetwork.org *
* Smashing the Corporate image     http://www.subvertise.org *
* Bristol's radical news            http://www.bristle.co.uk *
* Open Directory Project                 http://www.dmoz.org *
*      Currently in Penzance, do you know anyone here?       *
*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell