Attachment 'vncserver.txt'

Download

   1 #!/bin/sh
   2 ### BEGIN INIT INFO
   3 # Provides:          vncserver
   4 # Required-Start:    networking
   5 # Required-Stop:
   6 # Default-Start:     S
   7 # Default-Stop:      0 6
   8 ### END INIT INFO
   9 
  10 PATH="$PATH:/usr/X11R6/bin/"
  11 
  12 # The Username:Group that will run VNC
  13 export USER="pi"
  14 
  15 # The display that VNC will use
  16 DISPLAY="1"
  17 
  18 # Color depth (between 8 and 32)
  19 DEPTH="16"
  20 
  21 # The Desktop geometry to use.
  22 #GEOMETRY="<WIDTH>x<HEIGHT>"
  23 GEOMETRY="1024x768"
  24 
  25 # The name that the VNC Desktop will have.
  26 NAME="my-vnc-server"
  27 
  28 OPTIONS="-name ${NAME} -depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY}"
  29 
  30 . /lib/lsb/init-functions
  31 
  32 case "$1" in
  33 start)
  34 log_action_begin_msg "Starting vncserver for user '${USER}' on localhost:${DISPLAY}"
  35 su ${USER} -c "/usr/bin/vncserver ${OPTIONS}"
  36 ;;
  37 
  38 stop)
  39 log_action_begin_msg "Stoping vncserver for user '${USER}' on localhost:${DISPLAY}"
  40 su ${USER} -c "/usr/bin/vncserver -kill :${DISPLAY}"
  41 ;;
  42 
  43 restart)
  44 $0 stop
  45 $0 start
  46 ;;
  47 esac
  48 
  49 exit 0

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2016-06-01 10:42:22, 308.9 KB) [[attachment:ArduinoPractice.pdf]]
  • [get | view] (2016-06-06 10:11:20, 15.9 KB) [[attachment:AssessmentList.pdf]]
  • [get | view] (2016-05-27 14:11:57, 6.7 KB) [[attachment:Code_examples.zip]]
  • [get | view] (2016-04-14 10:12:32, 96.8 KB) [[attachment:Final_report_guidelines.pdf]]
  • [get | view] (2016-05-27 14:09:55, 1820.5 KB) [[attachment:Lecture_notes_arduino_workshop.pdf]]
  • [get | view] (2016-04-25 09:36:50, 420.1 KB) [[attachment:Lecture_notes_ch10.pdf]]
  • [get | view] (2016-04-14 09:50:17, 637.8 KB) [[attachment:Lecture_notes_ch2.pdf]]
  • [get | view] (2016-04-13 13:03:59, 544.7 KB) [[attachment:Lecture_notes_ch3.pdf]]
  • [get | view] (2016-04-25 09:35:13, 2419.2 KB) [[attachment:Lecture_notes_ch4-5.pdf]]
  • [get | view] (2016-04-25 09:35:43, 291.1 KB) [[attachment:Lecture_notes_ch6-7.pdf]]
  • [get | view] (2016-04-25 09:36:29, 605.4 KB) [[attachment:Lecture_notes_ch8-9.pdf]]
  • [get | view] (2016-04-14 09:50:02, 531.2 KB) [[attachment:Lecture_notes_introduction.pdf]]
  • [get | view] (2016-05-27 14:12:31, 838.9 KB) [[attachment:Mini project info.pdf]]
  • [get | view] (2016-04-25 09:37:11, 537.4 KB) [[attachment:Ntc_datasheet.pdf]]
  • [get | view] (2016-04-14 09:52:11, 2211.7 KB) [[attachment:Oscilloscope-Fundamentals-poster.pdf]]
  • [get | view] (2016-04-14 09:53:00, 2384.5 KB) [[attachment:Oscilloscope-Fundamentals-poster2.pdf]]
  • [get | view] (2016-04-20 20:57:12, 16.2 KB) [[attachment:RegistrationList.pdf]]
  • [get | view] (2016-04-14 09:51:39, 63.5 KB) [[attachment:Workshop_manual.pdf]]
  • [get | view] (2016-04-13 13:35:42, 37.2 KB) [[attachment:rubrics.jpg]]
  • [get | view] (2016-06-06 08:48:18, 68.3 KB) [[attachment:schedule201604.png]]
  • [get | view] (2016-04-14 09:53:30, 381.2 KB) [[attachment:starterskit flyer V2.3_half.pdf]]
  • [get | view] (2016-05-20 11:24:17, 1.0 KB) [[attachment:vncserver.txt]]
 All files | Selected Files: delete move to page

You are not allowed to attach a file to this page.