Results 1 to 9 of 9

Thread: Wine application starting at boot

  1. #1

    Default Wine application starting at boot

    I want to run a Windows application (uTorrent) at boot, but in run level 3.

    I have it working with Wine and configured it to use the web interface through it's GUI with init 5. I then went to init 3 and used wine "CProgram Files\uTorrent\utorrent.exe" to launch it through terminal.

    It loaded and the webui was working fine from remote computers, but there was a lot of text displayed and I couldn't type any commands after it.

    My first question is how can I get it to suppress that text and to allow me to type commands after.

    My second question is how can I get it to launch when I boot suse at run level 3.

    Thanks,

    Matt

  2. #2
    ab@novell.com NNTP User

    Default Re: Wine application starting at boot

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    First question: redirect STDERR and STDOUT to /dev/null when you launch it:

    wine 'cwhatever\file.exe' >/dev/null 2>&1

    As a note it should be mentioned that you CAN keep typing things and
    they will still run.... it's just a mess to input/output data with all
    that nonsense going by.

    Second, create a script with the command you use to launch the program
    above and put it in /etc/init.d (you'll need 'root' privileges to write
    in that directory) being sure to make it executable. Create a softlink
    to that from /etc/init.d/rc3.d. The first file would be something like:

    #!/bin/bash
    wine 'cwhatever\file.exe' >/dev/null 2>&1

    To create the softlink:

    #the following should be on one line:
    ln -s /etc/init.d/yourWineProgramFileName
    /etc/init.d/rc3.d/S99yourWineProgramFileName

    Good luck.






    mattm591 wrote:
    | I want to run a Windows application (uTorrent) at boot, but in run level
    | 3.
    |
    | I have it working with Wine and configured it to use the web interface
    | through it's GUI with init 5. I then went to init 3 and used wine
    | "CProgram Files\uTorrent\utorrent.exe" to launch it through
    | terminal.
    |
    | It loaded and the webui was working fine from remote computers, but
    | there was a lot of text displayed and I couldn't type any commands
    | after it.
    |
    | My first question is how can I get it to suppress that text and to
    | allow me to type commands after.
    |
    | My second question is how can I get it to launch when I boot suse at
    | run level 3.
    |
    | Thanks,
    |
    | Matt
    |
    |
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.2 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iD8DBQFIWxvp3s42bA80+9kRAo9TAJ9Nd61UIW+aoJ+uMPGXDNsahAQOUACfRmTv
    qFoVaYCcTXpNAZr96JyZJI0=
    =I+UP
    -----END PGP SIGNATURE-----

  3. #3

    Default Re: Wine application starting at boot

    Thanks for the reply, but a new problem has arisen.

    Before I'm not sure how I got uTorrent working in terminal without a gui window loading, but it won't work anymore.

    I now get a message when I load utorrent in init 3 saying "Application tried to create a window but no driver could be loaded. Make sure your X server is running and that $DISPLAY is set correctly".

    Any ideas how I can force it to load and ignore that it has no window to show the display.

  4. #4
    Join Date
    Jun 2008
    Location
    The Netherlands
    Posts
    1,273

    Default Re: Wine application starting at boot

    I'm not sure if what you are trying to do will work as your application is looking for a screen output.. and the output for it is only available through X...

    These days Wine HQ has a forum too... they might be able to give a solution for this.

    Cheers,
    Wj
    Have a lot of fun!

  5. #5

    Default Re: Wine application starting at boot

    is there any kind of non-graphical startup option for utorrent itself?

    Have you looked into other bittorrent clients?

  6. #6
    Join Date
    Jun 2008
    Location
    Karlsruhe
    Posts
    27

    Default Re: Wine application starting at boot

    If you dont mind using a native torrent client, I can recomment transmission as a good gui and command line client.

    By the way running a windows programm in command line, I doubt that it will work, because the windows shell itself is the gui. But you can proof me wrong here.

    What is that killer feature of utorrent that you want to run it on linux ? There are a bazillion native clients out there like:

    monsoon
    transmission
    ktorrent
    azureus
    .......

  7. #7

    Default Re: Wine application starting at boot

    Thanks for the replies.

    I looked into Linux native clients and the reason I want uTorrent is the webui, although I suppose I could use ssh to contorl something like rTorrent, but they also don't support scheduling download/upload speeds which is something that I would want and I also found (rTorrent the one I tried) very hard to use.

    I asked on the wine forums and was told to use xvfb but I don't know how this works.

  8. #8

    Default Re: Wine application starting at boot

    Again, I think there has to be a command line argument that uTorrent will take to tell it to not start in a window. You might alternately play around with starting an x-server on an alternate display, I used to do that sort of thing on AIX, so that I could connect to certain apps remotely.

  9. #9

    Default Re: Wine application starting at boot

    Thanks for the reply.

    I've decided to go with rtorrent after all, it wasn't so hard to configure as I'd expected.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •