Author Topic: Startup and Shutdown Scripting  (Read 979 times)

billy_gates

  • Member
  • **
  • Posts: 801
  • Kudos: 0
    • http://www.skinner.com/jeffberg
Startup and Shutdown Scripting
« on: 10 April 2003, 07:18 »
I have installed VNC and gotten it to work and have gotten it to turn on during startup.  However during startup it does  all of the defaults, 1024x768 8bit.  I wanna make it 1280x1024 24bits.  I looked at the script in webmin it say...
Code: [Select]

I've looked through it and found nothing to configure specifics.  I went to a couple of files, all dead ends except /etc/sysconfig/vncservers.  However that file only let me specify the username and display number.  In essence how do I make thi script do the same thing as
Code: [Select]
Or if this script can't be modified to do that, what is a new script that would do that.  If I had a new script I could just tell this one not to start up and the new one to start in its place.  It doesn't have to support multiple users or anything.  Just need it on the one user, jeffberg.  The password file is in its default place ~/.vnc/passwd .  ~/ being /home/jeffberg.

Any help would be appreciated.  Note I am not a programmer, unless you consider Flash Actionscripting to be a programming language.

Kintaro

  • Member
  • **
  • Posts: 6,545
  • Kudos: 255
  • I want to get the band back together!
    • JohnTate.org
Startup and Shutdown Scripting
« Reply #1 on: 10 April 2003, 12:31 »
Try this:
Code: [Select]

Calum

  • Global Moderator
  • Member
  • ***
  • Posts: 7,812
  • Kudos: 1000
    • Calum Carlyle's music
Startup and Shutdown Scripting
« Reply #2 on: 10 April 2003, 12:58 »
why can't you just have another seperate script (as you say) called "myVNCstarter" or something containing only this:

Code: [Select]
visit these websites and make yourself happy forever:
It's my music! | My music on MySpace | Integrational Polytheism

Kintaro

  • Member
  • **
  • Posts: 6,545
  • Kudos: 255
  • I want to get the band back together!
    • JohnTate.org
Startup and Shutdown Scripting
« Reply #3 on: 10 April 2003, 14:35 »
because the one i posted works with the proper sys v service handling stuff, and im a leet haxor.

Calum

  • Global Moderator
  • Member
  • ***
  • Posts: 7,812
  • Kudos: 1000
    • Calum Carlyle's music
Startup and Shutdown Scripting
« Reply #4 on: 10 April 2003, 15:25 »
oh yeah, sorry, i forgot those all important reality shaking facts.
visit these websites and make yourself happy forever:
It's my music! | My music on MySpace | Integrational Polytheism

billy_gates

  • Member
  • **
  • Posts: 801
  • Kudos: 0
    • http://www.skinner.com/jeffberg
Startup and Shutdown Scripting
« Reply #5 on: 11 April 2003, 03:23 »
X11, your code worked beautifully.  Thanks A lot.