xboxscene.org forums

Author Topic: How To Auto Launch An App Upon Boot?  (Read 227 times)

ArcticWolf

  • Archived User
  • Jr. Member
  • *
  • Posts: 77
How To Auto Launch An App Upon Boot?
« on: January 15, 2004, 11:24:00 AM »

I have Xebian 1.0.0.
I created/edited the file /etc/rc.local to contain the following two lines.
#!/bin/sh
vncserver
It's supposed to launch vnc upon boot, but it doesn't, so I have to manually launch it.
Any help would be appreciated.
Thanks.  <
Logged

ArcticWolf

  • Archived User
  • Jr. Member
  • *
  • Posts: 77
How To Auto Launch An App Upon Boot?
« Reply #1 on: January 15, 2004, 09:13:00 PM »

I figured out how to do it.
I thought that /etc/rc.local was in all Linux distributions, but it turns out that it's RedHat-specific.  Debian doesn't have rc.local.
This is what you do to autolaunch vncserver upon boot in Debian.
Create the script vncserver.sh, which has the following two lines.
#!/bin/sh
su - someuser -c "vncserver -depth 16"
Place the script vncserver.sh into /etc/init.d/ directory.
Issue the following command.
update-rc.d vncserver.sh defaults 99
It was that easy! <
Logged

dIsEaSe

  • Archived User
  • Jr. Member
  • *
  • Posts: 78
How To Auto Launch An App Upon Boot?
« Reply #2 on: April 04, 2005, 01:02:00 AM »

I tried this with no luck, does it not work in 1.1.1? <
Logged

dIsEaSe

  • Archived User
  • Jr. Member
  • *
  • Posts: 78
How To Auto Launch An App Upon Boot?
« Reply #3 on: April 04, 2005, 08:58:00 PM »

C'mon guys, I know its possible to start vncserver on the current session, GentooX does it, now how do I do it in Xebian? <
Logged