Author |
Message |
GeminiServer
Kai Beginner
Joined: 24 May 2004
Posts: 11
Location: Germany
|
Posted:
Thu Dec 09, 2004 1:55 pm |
|
Hi,
i use the WRT54G_Wolf_W42_Alchemy_6rc1_by_TheIndividual, couse there are features that i use,which is not inludet on on kaiStation image for WRT54G/GS
To use the kaid on your wrt without using the kaiStation image for wrt use the following steps to do that! i tried to explain easy as i can!
1. Downlad: URL's
http://www.zbit.pt/kai/mips/fs/usr/bin/kaid
and
http://www.zbit.pt/kai/mips/fs/etc/kaid.conf
2. Telnet to you WRT54G/GS:
i.e.:
telnet 192.168.0.1
3. wget it to your WRT54G/GS
i.e.:
cd /
cd /tmp
wget -O /tmp/kaid http://www.zbit.pt/kai/mips/fs/usr/bin/kaid
wget -O /tmp/kaid.conf http://www.zbit.pt/kai/mips/fs/usr/bin/kaid.conf
4. chmod kaid to execute it!
cd /
cd /tmp
chmod 755 kaid
5. execute now kaid!
./kaid
Code: |
KAI: Reading settings from kaid.conf
CONFIG: Downloading settings from http://www.teamxlink.co.uk/connector/clientgetconfig.php...
CONFIG: 4 orbital(s) available...
KAI: Kai for KaiStation now starting...
KAI: Listening for UI's on :34522
KAI: Added 1 device(s) to engine cache.
PKTSNIFF: Setting up packet sniffer...
PKTSNIFF: Applying pcap filter 'ether src xx:xx:xx:xx:xx:xx'
PKTSNIFF: Everything set with packet sniffer...
|
Done!
You need to finaly to edit you 'kaid.conf' file with you own settings, like user name, mac adress..
now here a 2 way to edit the kaid.conf. 1st is the Vi editor in WRt54G/gs
or use the 2nd way, it is more easy.. for noobs
1st. way is to use the 'vi' editor in your WRT54G/GS
a. telnet to you WRT54g/gs: i.e. telnet 192.168.0.1
b. cd /
c. cd /tmp
d. vi kaid.conf
e. now edit/change your own settings!
f. to save end exit type: ESC:
:q
to exit without saving type
:q!
2nd. way to edit the kaid.conf file!
a. download: http://www.zbit.pt/kai/mips/fs/etc/kaid.conf
b. open it and edit the setting with your editor, then save it!
c. open XBOX and start XBMC
d. on XBMC, enable the WebServer!
e. ftp to XBOX, go to \XBMC folder\web\
f. upload the file kaid.conf to \XBMC folder\web\kaid.conf
g. check you XBMC Web server IP: http://XBOXIP/ !
h. i.e.: http://192.168.0.101/
Now telnet to your WRT54G/GS:
a. telnet 192.168.0.1
b. cd /
c. cd /tmp
d. wget -O /tmp/kaid http://192.168.0.101/kaid.conf
e. ./kaid
Done! be Happy
Regards
GeminiServer
FAQ:
Q: if you get the: ORBDGRAM: Error getting nearest orb! or ORBSTREAM: Error establishing TCP connection to the orbital! ]error you need to kill kaid bevor starting another session..
A: do: killall -9 kaid
Q: if you get the error: 'KAI_CLIENT_STATUS;Authentication Failed..
A: check you XBMC username an password! if all the information are correct try with another account!
Q:If you can connect to an Game..[/b]
A: Foward Port 3000 UDP your Router IP!
Q:I want to use the web based RUN Command instead using telnet![/b]
A:Do this @Once! or if you restart your router! If Kaid hangs or if you want to restart it: type: killall -9 /tmp/kaid
Code: |
wget http://192.168.0.101/kaid.conf -O /tmp/kaid.conf
wget http://192.168.0.101/kaid -O /tmp/kaid
cd /tmp && chmod +x /tmp/kaid && /tmp/kaid &
|
i.e. my kaid.conf file
Code: |
###############################################
# Kai daemon configuration file
###############################################
# Description can be found here:
# http://www.zbit.pt/kai/mips/fs/usr/bin/kaid.conf
###############################################
UIBind = :34522
OrbPort = 34525
EngineBind = :37500
SniffDevice = br0
Protocol = 4
ConsoleMacs = xx:xx:xx:xx:xx:xx;
ConfigURL = http://www.teamxlink.co.uk/connector/clientgetconfig.php
Username =
Password =
AutoLogin =
IgnoreTCP = 1
###############################################
|
|
Last edited by GeminiServer on Sun Dec 12, 2004 11:39 pm; edited 10 times in total |
|
|
|
nec
Kai Regular
Joined: 21 May 2004
Posts: 85
Location: Canada
|
Posted:
Thu Dec 09, 2004 2:53 pm |
|
Works fine here on a WRT54G(1.0) using sveasoft 5.4.
Will try with a 6rc1 tonight. |
_________________
Code: |
/* RB63:BA * nec/T@G_nec */ |
Last edited by nec on Thu Dec 09, 2004 3:24 pm; edited 1 time in total |
|
|
|
sgr42o
Kai Beginner
Joined: 06 Jun 2004
Posts: 8
Location: USA - Maryland
|
Posted:
Thu Dec 09, 2004 3:13 pm |
|
Nice tutorial.. good work. |
|
|
|
|
Puma81
Team XLink Moderator
Joined: 21 May 2004
Posts: 278
|
Posted:
Thu Dec 09, 2004 3:38 pm |
|
Someone Please Sticky this. Great work Gemini, I was about to post this information my self today as I use the same firmware
Click Here: Alchamey Firmware Download |
Last edited by Puma81 on Thu Dec 09, 2004 3:50 pm; edited 1 time in total |
|
|
|
GeminiServer
Kai Beginner
Joined: 24 May 2004
Posts: 11
Location: Germany
|
Posted:
Thu Dec 09, 2004 3:45 pm |
|
but i have a problem... kai engine is working.. but i always get the msg:
CONFIG: 4 orbital(s) available...
KAI: Kai for KaiStation now starting...
KAI: Listening for UI's on :34522
KAI: Added 2 device(s) to engine cache.
PKTSNIFF: Setting up packet sniffer...
PKTSNIFF: Applying pcap filter 'ether src 00:0D:3A:51:AC:41
PKTSNIFF: Everything set with packet sniffer...
UI: Received: KAI_CLIENT_ATTACH; (18 bytes)
UI: Sending msg 'KAI_CLIENT_ATTACH;' to controller UI.
UI: Received: KAI_CLIENT_GETSTATE; (20 bytes)
UI: Sending msg 'KAI_CLIENT_NOT_LOGGED_IN;;;1;' to controller UI.
UI: Received: KAI_CLIENT_LOGIN;geminisever;myhiddenpass; (38 bytes)
UI: Sending msg 'KAI_CLIENT_STATUS;Querying orbital mesh...;' to controller UI.
ORBDGRAM: Error getting nearest orb!
ORBSTREAM: Error establishing TCP connection to the orbital!
ORBDGRAM: Now waiting for Orb datagrams.
PKTSNIFF: Waiting for console packets...
any idea
Regards
GeminiServer |
|
|
|
|
Puma81
Team XLink Moderator
Joined: 21 May 2004
Posts: 278
|
Posted:
Thu Dec 09, 2004 3:53 pm |
|
Seems to be an issue with the orb your connecting to. Try shutting it down and restating it. Ive heard someone blocking the IP of the orb it was having a problem with and forcing kai to connect to another orb. Give the 1st one a try and see if it helps when trying to reconnect. |
|
|
|
|
GeminiServer
Kai Beginner
Joined: 24 May 2004
Posts: 11
Location: Germany
|
Posted:
Thu Dec 09, 2004 4:03 pm |
|
Solved! Header is Updated!
Regards
GeminiServer |
Last edited by GeminiServer on Thu Dec 09, 2004 7:09 pm; edited 1 time in total |
|
|
|
Flyer007ma
Kai Beginner
Joined: 15 Nov 2004
Posts: 24
Location: USA - Massachusetts
|
Posted:
Thu Dec 09, 2004 4:04 pm |
|
Will be trying this tonight. But a few ?'s on the instructions.
1. In first part he doesn't CD down the path before wget. In second he does.
Since wget cmd has path in it, does it matter?
2. He states that you can change the .conf either in vi(ui?) or editing conf. and wgeting new one. So by the vi? I assume that after wgeting the kaid the firmware pages will have the gui place to config kai. Then we can make change and click save/restart. Correct? |
|
|
|
|
dekmosphere
Kai Beginner
Joined: 05 Dec 2004
Posts: 3
Location: USA - New York
|
Posted:
Thu Dec 09, 2004 6:35 pm |
|
Oh My Gawd! Thanks for the documentation... now I don't have to blow away my Sveasoft QoS settings for Vonage just to run the Kai! The XBox & WRT54G are really getting more and more useful everyday!! |
Last edited by dekmosphere on Thu Dec 09, 2004 6:39 pm; edited 1 time in total |
|
|
|
nec
Kai Regular
Joined: 21 May 2004
Posts: 85
Location: Canada
|
Posted:
Thu Dec 09, 2004 6:35 pm |
|
Flyer007ma wrote: |
Will be trying this tonight. But a few ?'s on the instructions.
1. In first part he doesn't CD down the path before wget. In second he does.
Since wget cmd has path in it, does it matter?
2. He states that you can change the .conf either in vi(ui?) or editing conf. and wgeting new one. So by the vi? I assume that after wgeting the kaid the firmware pages will have the gui place to config kai. Then we can make change and click save/restart. Correct? |
1. Either OR or both will work, doesn't matter as you specifiy where the files goes (you don't have to be in the dir to wget the file).
2. no the kaid and the kaid.conf is for routers that aren't being reflashed with the .bin file (new firmware with the web pages/changes). You have to have a valid/good/edited kaid.conf on your router by either vi (text editor) or modifing it and regetting it (like his example from xbmc).
There is no gui place to configure kai unless you reflash your firmware with the supplied .bin file.
I belive my two statements to be correct (correct me if I'm wrong). |
_________________
Code: |
/* RB63:BA * nec/T@G_nec */ |
|
|
|
|
dekmosphere
Kai Beginner
Joined: 05 Dec 2004
Posts: 3
Location: USA - New York
|
Posted:
Thu Dec 09, 2004 6:49 pm |
|
Few more questions about this Sveasoft + Kai on WRT54G setup:
1) Once everything is installed as instructed, the Kai engine will run in WRT54G even after rebooting the router right?
2) If I ever want to run Windows or Mac Kai client instead of XBMC, will I still be able to connect via the computer or is there a way to shut down the Kai engine in the WRT54G?
3) I love XBMC's implementation of Kai, but some actions like adding a friends's Xtag manually to your contact list cannot be done thru XBMC right? At least not yet right?
4) What's the version of XBMC (or build date) which has the features shown on Xbox-Scene.com (e.g. on-screen chat keyboard) ?
Thanks so much! |
|
|
|
|
(TS)-Xmo
Kai Beginner
Joined: 21 May 2004
Posts: 21
Location: France
|
Posted:
Thu Dec 09, 2004 6:52 pm |
|
how to telnet the router ? i have a login error ... (sveasoft alchemy rc3 lw3.1) |
|
|
|
|
nec
Kai Regular
Joined: 21 May 2004
Posts: 85
Location: Canada
|
Posted:
Thu Dec 09, 2004 7:24 pm |
|
dekmosphere wrote: |
Few more questions about this Sveasoft + Kai on WRT54G setup:
1) Once everything is installed as instructed, the Kai engine will run in WRT54G even after rebooting the router right?
2) If I ever want to run Windows or Mac Kai client instead of XBMC, will I still be able to connect via the computer or is there a way to shut down the Kai engine in the WRT54G?
3) I love XBMC's implementation of Kai, but some actions like adding a friends's Xtag manually to your contact list cannot be done thru XBMC right? At least not yet right?
4) What's the version of XBMC (or build date) which has the features shown on Xbox-Scene.com (e.g. on-screen chat keyboard) ?
Thanks so much! |
1) The only way to keep KAI on your router after a reboot/power loss is to reflash the router rom with the provided .bin file (openwrt i belive firmware). If you have sveasoft firmware, then you can wget over the kaid/.conf but it will be lost on reboot/power lost (volitile memory I belive), even if it's safe in non-volitile memory, you'd have to modify the conf files to start it on startup.
2) You can use your windows pc as a gui client (not engine) and use the wrt as the engine. I suggest you use your file browser and point it to your (forWindows users) \program files\xlink...\ and in that directory just run the client gui and it should connect to the engine (only one engine on one network at one time). And run kai config to say your client only, not engine for the pc client.
4) Best thing is to get the december 08 which is the current cvs release with support for specifing the ip of the kai engine (your router).
bernienoel:
telnet 192.168.1.1 (if thats your routers address) as for login/password try admin/root root/admin or if anyone else has suggestions as to the defaults. |
_________________
Code: |
/* RB63:BA * nec/T@G_nec */ |
Last edited by nec on Thu Dec 09, 2004 8:03 pm; edited 1 time in total |
|
|
|
(TS)-Xmo
Kai Beginner
Joined: 21 May 2004
Posts: 21
Location: France
|
Posted:
Thu Dec 09, 2004 7:36 pm |
|
root/password thanks |
|
|
|
|
(TS)-Xmo
Kai Beginner
Joined: 21 May 2004
Posts: 21
Location: France
|
Posted:
Thu Dec 09, 2004 8:07 pm |
|
UI: Sending msg 'KAI_CLIENT_STATUS;Querying orbital mesh...;' to controller UI.
ORBDGRAM: Sent Orb Probe to 64.81.178.4:34525
ORBDGRAM: Sent Orb Probe to 64.27.6.84:34525
ORBDGRAM: Sent Orb Probe to 212.26.219.228:34525
ORBDGRAM: Sent Orb Probe to 81.27.99.53:34525
ORBDGRAM: Elected orb is 81.27.99.53
ORBSTREAM: Sending authentication to orbital...
ORBDGRAM: Now waiting for Orb datagrams.
Segmentation fault
my config :
WRT )))) Airport Express (WDS mode) <-> xbox
i have internet access to xbox without any problem
i played halo2 with kai this morning without anyproblem with a kai server/UI on a PC wired on the WRT
do you have any idea on how to solve it ? |
|
|
|
|
nec
Kai Regular
Joined: 21 May 2004
Posts: 85
Location: Canada
|
Posted:
Thu Dec 09, 2004 8:12 pm |
|
bernienoel wrote: |
UI: Sending msg 'KAI_CLIENT_STATUS;Querying orbital mesh...;' to controller UI.
ORBDGRAM: Sent Orb Probe to 64.81.178.4:34525
ORBDGRAM: Sent Orb Probe to 64.27.6.84:34525
ORBDGRAM: Sent Orb Probe to 212.26.219.228:34525
ORBDGRAM: Sent Orb Probe to 81.27.99.53:34525
ORBDGRAM: Elected orb is 81.27.99.53
ORBSTREAM: Sending authentication to orbital...
ORBDGRAM: Now waiting for Orb datagrams.
Segmentation fault
do you have any idea on how to solve it ? |
First to identify the problem, it looks like it's not receiving any response from the orbitals. Your ports for kai are forwarded to something? Try not to forward any kai ports and try again (total guessing on my part). |
_________________
Code: |
/* RB63:BA * nec/T@G_nec */ |
|
|
|
|
(TS)-Xmo
Kai Beginner
Joined: 21 May 2004
Posts: 21
Location: France
|
Posted:
Thu Dec 09, 2004 8:21 pm |
|
i'm forwarding port 37500 UDP to the router's ip (192.168.1.1)
same problem if i don't forward anything
edit : it's working now
thanks to lonewolf, a sveasoft developper
he posted that telnet commands, and voilĂ !
wget http://www.zbit.pt/kai/mips/fs/usr/bin/kaid -O /tmp/kaid
wget http://www.zbit.pt/kai/mips/fs/etc/kaid.conf -O /tmp/kaid.cnf
chmod +x /tmp/kaid
sed -e 's/00:50:f2:d4:f2:03/CONSOLE_MAC_HERE/g' /tmp/kaid.cnf >/tmp/kaid.conf
/tmp/kaid -d
edit 2 : in fact to get it working I have to launch exactly that script
wget http://www.zbit.pt/kai/mips/fs/etc/kaid.conf -O /tmp/kaid.cnf
sed -e 's/00:50:f2:d4:f2:03/MAC_ADRESS/g' /tmp/kaid.cnf >/tmp/kaid.conf
wget http://www.zbit.pt/kai/mips/fs/usr/bin/kaid -O /tmp/kaid
chmod +x /tmp/kaid
cd /tmp
./kaid
any plans for a daemon mode thing ? because in fact I have to keep my telnet window open, else nothing is working.... |
|
|
|
|
5L4Y3R
Kai Beginner
Joined: 20 Jun 2004
Posts: 5
Location: USA - Illinois
|
Posted:
Thu Dec 09, 2004 10:50 pm |
|
what goes in this part of the code: 's/00:50:f2:d4:f2:03/CONSOLE_MAC_HERE/g'
Is it just the console MAC or does it also need the s/ and /g parts in it?
Sorry, my console knowledge is pretty limited. |
|
|
|
|
5L4Y3R
Kai Beginner
Joined: 20 Jun 2004
Posts: 5
Location: USA - Illinois
|
Posted:
Thu Dec 09, 2004 11:06 pm |
|
wait, I'm a dumba$$. Got it working. Great work and thanks for the quick tutorials.
Just about every day I am more and more happy that I purchased a WRT54G and a XBOX. |
|
|
|
|
njhorn
Kai Beginner
Joined: 23 May 2004
Posts: 4
Location: USA - Texas
|
Posted:
Thu Dec 09, 2004 11:11 pm |
|
can someone help me out here (never used kai before)... I have kaid running on my WRT, can log in via XMBC (and Avalaunch), can see the arenas, chat, games, etc... Now what? In XBMC, when I go into an arena and then move to the menu on the left to hit play, the game loads and I go to system link play but I am not able to find any games in there... Can someone tell me what I'm doing wrong? |
|
|
|
|
|