
Originally Posted by
bluewagon
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:
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.
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.
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.
Bookmarks