Page 1 of 2 12 LastLast
Results 1 to 10 of 407

Thread: Ventrilo and wine

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    tuesday
    Beans
    6,502
    Distro
    Kubuntu Development Release

    Re: Ventrilo and wine

    Quote Originally Posted by bluewagon View Post
    how do i install ventrilctrl, i really couldnt figure it out from the readme, all it said was type ./runctrl.sh , but it doesnt tell me where to put the file, and when i do try that i get
    ./runctrl.sh: 9: ./ventriloctrl: not found
    or ./runctrl.sh: 9: ./ventriloctrl: no permission (or something like that)
    Updated ventriloctrl with instructions thanks to calebgray: http://www.calebgray.com/uploads/ven...loctrl-0.5.zip ~08/23/2008

    *** The following is ancient and outdated from over a year ago and likely no longer works I'm sorry but I won't be answering private messages about my walkthrough. *** ~06/21/2008

    --Incase anyone else stumbles upon this post,
    --You can download ventriloctrl here: http://np1.pp.fi/ventriloctrl/ventriloctrl-0.3.tar.gz
    --I've also mirrored it here just incase the creator's site is down: http://hikaricore.googlepages.com/ve...trl-0.3.tar.gz

    You need to compile ventriloctrl to run it.

    Direct from the README file:
    Ventriloctrl
    -------------
    Ventriloctrl is program to send keypresses to Ventrilo client even
    if it is not on top.


    Requirements
    ------------
    Event Device included in kernel
    Xorg(Xfree?) development libraries
    Reading rights for event device

    Compiling
    ---------
    make
    So you will first need to install build-essential if you never have:

    Code:
    sudo apt-get install build-essential
    Then the development libraries for Xorg (this should be enough):

    Code:
    sudo apt-get install xorg-dev
    Then run:

    Code:
    make
    From the directory you extracted ventrilocontrol into.

    it should output something like this:

    [hikaricore@devistate:~/ventriloctrl-0.3 (.6 Mb)]$ make
    gcc -Wall -O3 -o ventriloctrl ventriloctrl.c -lX11
    gcc -Wall -O3 -o findkey findkey.c
    If get an error, let me know I'll try and figure out what dev files I missed.

    Now for configuring it, this part is fun.

    You will need to find out what device your system uses for input. For example on my system it's:

    /dev/input/event1

    Yours may differ. So you need to run

    Code:
    sudo ./findkey /dev/input/event#
    Replacing the # with numbers ranging from 0 to 6, example:

    Code:
    sudo ./findkey /dev/input/event0
    Upon running this command press some keys on your keyboard, if you don't see any output in the terminal hit Ctrl+C to exit the program and try the next number. Like I said it varries.

    ok I guess I was a little vague with this part, so I'm giving you an example of what it should look like:

    [hikaricore@devistate:!]$ sudo ./findkey /dev/input/event2
    key 28 state 0
    key 97 state 1
    key 97 state 0
    key 54 state 1
    key 54 state 0


    Above is the output of findkey, showing: Enterkey (up), Right Ctrl (down,up) Right Shift (down,up)

    These key numbers will vary from keyboard to keyboard.

    But for example if I wanted to use my right Ctrl key for ventriloctrl I would use the number 54 in the following step of the setup. If you run findkey and only see the text you're typing out on the keyboard, you need to move on to the next device. ^_^
    Once you find the correct /dev/input/event# press the key you want to use for vent, remember the number it outputs in the terminal, then you'll need to edit the runctrl.sh file.

    Code:
    pico runctrl.sh
    Which will look something like this:

    Code:
    # Config, see README for instructions
    EVENT_DEVICE="/dev/input/event1"
    INPUT_KEY="97"
    
    
    # Don't touch
    ./ventriloctrl $EVENT_DEVICE $INPUT_KEY
    Replace the input_key with the number from the key you chose for your vent key, then replace (if needed) the /dev/input/event# with the one you found to work on your system.

    Hit Ctrl+o to save. Then Ctrl+x to close pico.

    Now for the tricky part.

    Ventrilo Control requires the ability to read and write to the device you've chosen.

    There are a number of ways to do this but I'll tell you the one that will work and stay working.

    We're going to write a udev rule so that the group ventrilo has read/write access to your event device.

    Code:
    sudo groupadd ventrilo
    sudo gpasswd -a YOURUSERNAME ventrilo
    Replace YOURUSERNAME with the username you plan to be using on Ubuntu at the time of running vent.

    Now to write the udev rule.

    Code:
    sudo pico /etc/udev/rules.d/10-local.rules
    This may bring up a new blank file, this is pretty much expected in newer versions of Ubuntu.
    But no worries, time to move on.

    In this file, type or paste the following:
    (Replacing the ??? with the number of the /dev/input/event# device you found to work, for example if it was /dev/input/event2, replace ??? with the number 2.)

    Code:
    KERNEL=="event[???]", NAME="input/%k", GROUP="ventrilo", MODE="0660"
    Hit Ctrl+o to save and Ctrl+x to exit pico.

    One last step, we need to reload udev.

    Code:
    sudo /etc/init.d/udev restart
    Now you should be able to run the file in your ventriloctrl directory called runctrl.sh.

    Code:
    ./runctrl.sh
    You will need to have vent running before you start this script.

    If all goes well you should be able to go into the vent settings and set your key, with the key you chose to use. It will probably show as the A key when you hit that key, but this is the default of the ventriloctrl program and I'm not even going to begin telling you about modifying that. In most cases this should work perfectly.

    Let me know if you have any problems.

    --Aaron

    Sources used for figuring out this damn mess:
    random thoughts : by Imago
    Writing udev rules
    Incase anyone needs to further understand the udev segment.
    Last edited by hikaricore; August 24th, 2008 at 12:13 AM. Reason: more fixes

  2. #2
    Join Date
    Jul 2007
    Beans
    2
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Ventrilo and wine

    Quote Originally Posted by hikaricore View Post
    ...
    Thanks for the great guide, it helped me a lot. I still have one problem thought, it seems as I don't have permission to listen to the input device.
    Code:
    ./runctrl.sh
    have no effect while
    Code:
    sudo ./runctrl.sh
    works perfectly.

    I have created the ventrilo group and added myself to it.
    Code:
    sudo groupadd ventrilo
    sudo gpasswd -a phyrex1an ventrilo
    This is how my runctrl.sh look:
    Code:
    #!/bin/sh
    
    # Config, see README for instructions
    EVENT_DEVICE="/dev/input/event1"
    INPUT_KEY="97"
    
    
    # Don't touch
    ./ventriloctrl $EVENT_DEVICE $INPUT_KEY
    This is how my /etc/udev/rules.d/10-local.rules look:
    Code:
    KERNEL=="event[1]", NAME="input/%k", GROUP="ventrilo", MODE="0660"
    I have restarted udev, I think that the /dev/input/event1 thing existed before I made the new udev rule so it's maybe possible that there is another rule that overwrite the one I made?

  3. #3
    Join Date
    Aug 2006
    Location
    tuesday
    Beans
    6,502
    Distro
    Kubuntu Development Release

    Re: Ventrilo and wine

    There shouldn't be a problem running runctrl as a normal user after the permissions are set.

    There could reasonably be a udev rule overriding it, but I'm not sure.

    Please post the output of:

    Code:
    ls -la /dev/input/event1
    p.s. /dev/input/event* always exists ^_^ we're just giving you read/write permission to it for ventctrl to work properly.

  4. #4
    Join Date
    Jul 2007
    Beans
    2
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Ventrilo and wine

    Quote Originally Posted by hikaricore View Post
    p.s. /dev/input/event* always exists ^_^ we're just giving you read/write permission to it for ventctrl to work properly.
    Ah, did know that, obviously

    Anyway, I just did a full reboot and that seemed to solve it. I feel pretty stupid right now for not trying that before asking for help. I'm pretty sure that I did restart udev however so I dunno why it did a difference.
    Sorry for the trouble and thanks for helping.

  5. #5
    Join Date
    Jun 2006
    Beans
    3

    Re: Ventrilo and wine

    Quote Originally Posted by phyrex1an View Post
    Ah, did know that, obviously

    Anyway, I just did a full reboot and that seemed to solve it. I feel pretty stupid right now for not trying that before asking for help. I'm pretty sure that I did restart udev however so I dunno why it did a difference.
    Sorry for the trouble and thanks for helping.
    I had to log in/out after I added myself to the ventrilo group as I don't think it takes effect for your current session.

  6. #6
    Join Date
    Jul 2007
    Location
    /earth/USA/WA/Spokane
    Beans
    299
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Ventrilo and wine

    Quote Originally Posted by hikaricore View Post
    --Incase anyone else stumbles upon this post,
    --You can download ventriloctrl here: http://np1.pp.fi/ventriloctrl/ventriloctrl-0.3.tar.gz
    --I've also mirrored it here just incase the creator's site is down: http://hikaricore.googlepages.com/ve...trl-0.3.tar.gz

    You need to compile ventriloctrl to run it.

    Direct from the README file:


    So you will first need to install build-essential if you never have:

    Code:
    sudo apt-get install build-essential
    Then the development libraries for Xorg (this should be enough):

    Code:
    sudo apt-get install xorg-dev
    Then run:

    Code:
    make
    From the directory you extracted ventrilocontrol into.

    it should output something like this:



    If get an error, let me know I'll try and figure out what dev files I missed.

    Now for configuring it, this part is fun.

    You will need to find out what device your system uses for input. For example on my system it's:

    /dev/input/event1

    Yours may differ. So you need to run

    Code:
    sudo ./findkey /dev/input/event#
    Replacing the # with numbers ranging from 0 to 6, example:

    Code:
    sudo ./findkey /dev/input/event0
    Upon running this command press some keys on your keyboard, if you don't see any output in the terminal hit Ctrl+C to exit the program and try the next number. Like I said it varries.



    Once you find the correct /dev/input/event# press the key you want to use for vent, remember the number it outputs in the terminal, then you'll need to edit the runctrl.sh file.

    Code:
    pico runctrl.sh
    Which will look something like this:

    Code:
    # Config, see README for instructions
    EVENT_DEVICE="/dev/input/event1"
    INPUT_KEY="97"
    
    
    # Don't touch
    ./ventriloctrl $EVENT_DEVICE $INPUT_KEY
    Replace the input_key with the number from the key you chose for your vent key, then replace (if needed) the /dev/input/event# with the one you found to work on your system.

    Hit Ctrl+o to save. Then Ctrl+x to close pico.

    Now for the tricky part.

    Ventrilo Control requires the ability to read and write to the device you've chosen.

    There are a number of ways to do this but I'll tell you the one that will work and stay working.

    We're going to write a udev rule so that the group ventrilo has read/write access to your event device.

    Code:
    sudo groupadd ventrilo
    sudo gpasswd -a YOURUSERNAME ventrilo
    Replace YOURUSERNAME with the username you plan to be using on Ubuntu at the time of running vent.

    Now to write the udev rule.

    Code:
    sudo pico /etc/udev/rules.d/10-local.rules
    This may bring up a new blank file, this is pretty much expected in newer versions of Ubuntu.
    But no worries, time to move on.

    In this file, type or paste the following:
    (Replacing the ??? with the number of the /dev/input/event# device you found to work, for example if it was /dev/input/event2, replace ??? with the number 2.)

    Code:
    KERNEL=="event[???]", NAME="input/%k", GROUP="ventrilo", MODE="0660"
    Hit Ctrl+o to save and Ctrl+x to exit pico.

    One last step, we need to reload udev.

    Code:
    sudo /etc/init.d/udev restart
    Now you should be able to run the file in your ventriloctrl directory called runctrl.sh.

    Code:
    ./runctrl.sh
    You will need to have vent running before you start this script.

    If all goes well you should be able to go into the vent settings and set your key, with the key you chose to use. It will probably show as the A key when you hit that key, but this is the default of the ventriloctrl program and I'm not even going to begin telling you about modifying that. In most cases this should work perfectly.

    Let me know if you have any problems.

    --Aaron

    Sources used for figuring out this damn mess:
    random thoughts : by Imago
    Writing udev rules
    Incase anyone needs to further understand the udev segment.
    this doesn't work for me I need more help. it just doesn't work.
    Ubuntu User # 17031
    Quote Originally Posted by RAV TUX View Post
    who needs support when you use Linux.
    Quote Originally Posted by asjdfwejqrfjcvm msz34rq33 View Post
    Open-Source: The power to create completely useless, but extremely cool, programs.

  7. #7
    Join Date
    Feb 2008
    Beans
    26

    Re: Ventrilo and wine

    I have an issue stating that it is "unable to activate directsound for selected device. DirectSoundCaptureCreate failed, hr = 80004005"

    where did I go wrong? lol

  8. #8
    Join Date
    Jun 2008
    Beans
    8

    Re: Ventrilo and wine

    I have found a solution to my problem without much stepwork. I am using Ubuntu 8.04, vent 3.x, and wine 1.0. Follow this link and easy steps and it may work for you.

    http://appdb.winehq.org/objectManage...rsion&iId=9832

    Eric

    ps I had to use ALSA for WoW, Vent, and Ubuntu 8.04

    I used WoW in full screen

  9. #9
    Join Date
    Aug 2006
    Location
    tuesday
    Beans
    6,502
    Distro
    Kubuntu Development Release

    Re: Ventrilo and wine

    Quote Originally Posted by blithen View Post
    this doesn't work for me I need more help. it just doesn't work.

    I wrote that guide over a year ago and it seems it no longer works the same way with the new version of Ventrilo.
    I've added a warning to the top of my original post and will be removing the link from my signature line.

    Best of luck,


    --Aaron

  10. #10
    Join Date
    May 2008
    Beans
    75
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Ventrilo and wine

    In following the instructions here, I find myself unable to locate the "system.ini" file that should be found in /.wine/drive_c/windows/. I found this thread, and attempted to follow step 5, however this seems to verify that no system.ini files exists.

    Where can I find a copy of system.ini? If someone posts the contents of their system.ini (a copy that's not been modified) - could I essentially copy that text and create a system.ini of my own?

    Alternatively, since I am dualbooting Ubuntu and Windows XP - I could look for a system.ini file in XP. However, I am uncertain whether the file in XP has been altered - I'm uncertain the purpose of system.ini and don't want to risk putting a file that may confuse Wine somehow. Is it okay just to go into XP and copy the system.ini file?

    I already have "MSACM.msgsm610=msgsm32.acm" installed it in the appropriate folder.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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