How to run a VB6 exe from elastix

Discussion in 'General' started by sanchezbond, Jul 9, 2009.

  1. sanchezbond

    Joined:
    Oct 28, 2008
    Messages:
    46
    Likes Received:
    0
    I have a computer on the network that have a VB6 .exe install on windows I want to run that especific exe from Elastix.

    I Want to know is this is posible and the steps to do it.
     
  2. pbillx

    Joined:
    Jul 6, 2009
    Messages:
    6
    Likes Received:
    0
    Hi, this is possible, but frr this you need a GUI on the linux
    Then you have to install wine. And in wine you can run vb apps.

    Best regards

    Fred Montero
    www.pbillx.com
     
  3. sanchezbond

    Joined:
    Oct 28, 2008
    Messages:
    46
    Likes Received:
    0
    Its posible to install wine in the same computer that I have installed elastix?
     
  4. pbillx

    Joined:
    Jul 6, 2009
    Messages:
    6
    Likes Received:
    0
    if you can install a gnome desktop on it, yes
    you need a graphical interface. then it should work.
    search on google for winetricks.
    If you want to see how this works, send me a mail to info@pbillx.org
    Then i can show you this with remote control on my asterisk.

    Best regards

    Fred Montero
    www.pbillx.com
     
  5. donhwyo

    Joined:
    Aug 8, 2008
    Messages:
    293
    Likes Received:
    0
    To install gui.
    Code:
    yum groupinstall "X Window System" "GNOME Desktop Environment"
    
    If you prefer kde change to "KDE (K Desktop Environment)"

    I think you need to install wine from source or search for an rpm.

    Good luck,
    Don
     
  6. pbillx

    Joined:
    Jul 6, 2009
    Messages:
    6
    Likes Received:
    0
    Yes, i have tried, this is working fine, thank you for these infos.

    Wine is nice, but sometimes a little bit tricky.
    Especially the sound management with alsa is not so easy to do.
    But with VB6 programs it should run properly. I've got it running include mysql odbc connections.

    Best regards

    Fred Montero
    www.pbillx.com
     
  7. sanchezbond

    Joined:
    Oct 28, 2008
    Messages:
    46
    Likes Received:
    0
    Ok I run yum groupinstall "X Window System" "GNOME Desktop Environment"
    Installed everything on the computer that I have elastix.
    what I have to do next?
    Do I have to a GUI web Interface or something else?
    If I need a GUI web interface how do I find the adress?
     
  8. donhwyo

    Joined:
    Aug 8, 2008
    Messages:
    293
    Likes Received:
    0
    to start the gui, login probably as root unless you have created another linux user. (to the local terminal)
    Code:
    startx
    Your gui should start. You will need to install firefox or another browser. You can look around for install applications under the user interface or at the cli
    Code:
    yum install firefox
    You need to logout of the gui for it to show up.

    Now install wine. Sorry I haven't done this in a few years and it is a subject and project of its own. Then try to figure out how to run your vb app.

    This is a rather ambitious project for a linux beginner to undertake. You will learn a lot or get frustrated very quickly.

    Good luck,

    Don

    PS You should create some other users for security sake if the gui will be running all the time. I would guess this will be covered under wine instructions. If it is exposed to the internet you also need to secure everything the best you can. See the security forum here.
     
  9. pbillx

    Joined:
    Jul 6, 2009
    Messages:
    6
    Likes Received:
    0
    Yes, if you are doing it the first time you need to work a lot to find out every thing.
    I have build my own asterisk 1.4 on Ubuntu workstation with free pbx.
    This it is a little bit more easier to install because wine is already in the install funds.

    Nethertheless, search in google for winetricks. Winetricks is a little bash file which is downloading such things like ODBC, vb runtime and so on. This helps a lot and so you get fast success for running a vb app in GUI

    We have developed in the last two years a vb application as middleware between Asterisk and the hospitality systems Micros Fidelio / Micros Opera / Protel and some other which are supporting the micros fias protocol. This is running on wine very stable. It has much different things inside. The most difficult have been the softphone because they need a mixer soundcard. This is not easy to resolve. (but possible :) )

    Best regards

    Fred Montero
    www.pbillx.com
     
  10. sanchezbond

    Joined:
    Oct 28, 2008
    Messages:
    46
    Likes Received:
    0
    to start the gui, login probably as root unless you have created another linux user. (to the local terminal)

    Code:

    --------------------------------------------------------------------------------
    startx

    When I try startx It give me the following but dont know how to resolve.
    xauth: creating new authority file /root/serverauth.10686
    xinit: No such file or directory (errno2): neo server "X" in PATH

    Use the option, or make sure that /usr/bin is in your path and that "X" is a program or a link to the right type of server for your display. Possible server names include:

    Xorg X.Org displays
    xinit: Server error.
    (root@elastix"]#
     
  11. donhwyo

    Joined:
    Aug 8, 2008
    Messages:
    293
    Likes Received:
    0
    When you ran yum groupinstall did you have errors? Are you on the machine or ssh into? You need to be on the local machine. Run
    Code:
    yum grouplist X* |more
    and be sure the 2 things are in the installed section.

    Don
     
  12. sanchezbond

    Joined:
    Oct 28, 2008
    Messages:
    46
    Likes Received:
    0
    no errors
    I am running in the same machine
     
  13. donhwyo

    Joined:
    Aug 8, 2008
    Messages:
    293
    Likes Received:
    0
    Code:
    yum grouplist X* |more
    Shows the 2 groups installed? ("X Window System" "GNOME Desktop Environment" )

    Don
     
  14. raj

    raj

    Joined:
    Apr 19, 2009
    Messages:
    149
    Likes Received:
    0

Share This Page