Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    N900 init.d scripts

    Reply
    Page 1 of 3 | 1   2     3   | Next
    cddiede | # 1 | 2009-12-01, 16:52 | Report

    So, I'm trying to set the X11vnc server to start automatically when the phone boots by creating a startvnc script in /etc/init.d and then sym-linking that to an /etc/rc3.d/S99vnc entry.

    Everything is set up and the startvnc script runs just fine when I invoke it manually with:
    "/etc/init.d/startvnc start"

    However, when I reboot the phone, no vnc processes are running at boot.

    I tried copying the symbolic link to /etc/rc5.d and /etc/rcs.d with no luck.

    I even tried creating .login and .autostart files with the vnc start command in my user home directory and got nothing...

    Am I missing something about the basic run level physics of a Maemo device?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    benny1967 | # 2 | 2009-12-01, 16:57 | Report

    I have no N900 and no idea what I'm writing about here - but I have this faint memory that the default runlevel on maemo devices is 2, not 5. Do you see a /etc/rc2.d?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    naabi | # 3 | 2009-12-01, 17:05 | Report

    Does the device have file /etc/inittab. It should contain the following line with default runlevel specified.

    id:2:initdefault:

    Don't have the device and my scratchbox is on different machine, but this is a common way in linux distributions.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    cddiede | # 4 | 2009-12-01, 17:09 | Report

    Run level 2, eh?

    I hadn't heard that one, but what the hell.

    So, I copied the start sym-link to /etc/rc2.d and rebooted.

    Still no vnc processes running at boot.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Shanezlar | # 5 | 2009-12-01, 17:17 | Report

    edit: nevermind

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by Shanezlar; 2009-12-01 at 17:19.

     
    qwerty12 | # 6 | 2009-12-01, 17:19 | Report

    The N900 uses Upstart, not init.

    Make a file in /etc/event.d/.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 19 Users Say Thank You to qwerty12 For This Useful Post:
    benny1967, cddiede, daperl, davost, don_falcone, eiffel, fnordianslip, gidoca, kevloral, krk969, lirtex, musculus, noobmonkey, nymajoak, Petteri, Pretoriano, sjgadsby, SubCore, vkv.raju

     
    cddiede | # 7 | 2009-12-01, 17:45 | Report

    Well, I copied the /etc/event.d/welcome script to a vncstart file and replaced it's echo statement with /usr/bin/x11vnc -forever&

    Chmod 777 on /etc/event.d/vncstart and rebooted.

    Still no vnc processes running at boot.

    Am I missing something in the formatting of an event.d script?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    cddiede | # 8 | 2009-12-01, 17:47 | Report

    To clarify:

    My /etc/event.d/vncstart script looks like this:

    Start at startup

    script
    /usr/bin/x11vnc -forever&
    end script

    Edit | Forward | Quote | Quick Reply | Thanks

     
    SubCore | # 9 | 2009-12-01, 17:50 | Report

    Originally Posted by cddiede View Post
    To clarify:

    My /etc/event.d/vncstart script looks like this:

    Start at startup

    script
    /usr/bin/x11vnc -forever&
    end script
    try
    start on startup
    (better even "start on X11", since X11vnc needs a running X, although i don't know if X11 is actually exposed as event)

    http://upstart.ubuntu.com/getting-started.html

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 6 Users Say Thank You to SubCore For This Useful Post:
    b-man, cddiede, dryeti, lcuk, lma, qwerty12

     
    mattmull | # 10 | 2009-12-01, 17:51 | Report

    Does X need to be running before x11vnc is launched?

    Edit: SubCore beat me to it

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 1 of 3 | 1   2     3   | Next
vBulletin® Version 3.8.8
Normal Logout