FAQ  •  Search  •  Profile  •  Log in to check your private messages  •  Log in
 WRT54G/GS: run xlink without using the kaiStation image! View next topic
View previous topic
Post new topicReply to topic
Author Message
GeminiServer
Kai Beginner
Kai Beginner


Joined: 24 May 2004
Posts: 11
Location: Germany

PostPosted: Thu Dec 09, 2004 1:55 pm Reply with quoteBack to top

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 Wink


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 Wink

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
View user's profileSend private messageVisit poster's website
nec
Kai Regular
Kai Regular


Joined: 21 May 2004
Posts: 85
Location: Canada

PostPosted: Thu Dec 09, 2004 2:53 pm Reply with quoteBack to top

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
View user's profileSend private messageVisit poster's websiteMSN Messenger
sgr42o
Kai Beginner
Kai Beginner


Joined: 06 Jun 2004
Posts: 8
Location: USA - Maryland

PostPosted: Thu Dec 09, 2004 3:13 pm Reply with quoteBack to top

Nice tutorial.. good work. Smile
View user's profileSend private message
Puma81
Team XLink Moderator
Team XLink Moderator


Joined: 21 May 2004
Posts: 278

PostPosted: Thu Dec 09, 2004 3:38 pm Reply with quoteBack to top

Someone Please Sticky this. Great work Gemini, I was about to post this information my self today as I use the same firmware Smile



Click Here: Alchamey Firmware Download


Last edited by Puma81 on Thu Dec 09, 2004 3:50 pm; edited 1 time in total
View user's profileSend private message
GeminiServer
Kai Beginner
Kai Beginner


Joined: 24 May 2004
Posts: 11
Location: Germany

PostPosted: Thu Dec 09, 2004 3:45 pm Reply with quoteBack to top

Wink
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 Wink

Regards
GeminiServer
View user's profileSend private messageVisit poster's website
Puma81
Team XLink Moderator
Team XLink Moderator


Joined: 21 May 2004
Posts: 278

PostPosted: Thu Dec 09, 2004 3:53 pm Reply with quoteBack to top

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.
View user's profileSend private message
GeminiServer
Kai Beginner
Kai Beginner


Joined: 24 May 2004
Posts: 11
Location: Germany

PostPosted: Thu Dec 09, 2004 4:03 pm Reply with quoteBack to top

Solved! Header is Updated!

Regards
GeminiServer


Last edited by GeminiServer on Thu Dec 09, 2004 7:09 pm; edited 1 time in total
View user's profileSend private messageVisit poster's website
Flyer007ma
Kai Beginner
Kai Beginner


Joined: 15 Nov 2004
Posts: 24
Location: USA - Massachusetts

PostPosted: Thu Dec 09, 2004 4:04 pm Reply with quoteBack to top

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?
View user's profileSend private message
dekmosphere
Kai Beginner
Kai Beginner


Joined: 05 Dec 2004
Posts: 3
Location: USA - New York

PostPosted: Thu Dec 09, 2004 6:35 pm Reply with quoteBack to top

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!! Razz


Last edited by dekmosphere on Thu Dec 09, 2004 6:39 pm; edited 1 time in total
View user's profileSend private messageVisit poster's websiteAIM Address
nec
Kai Regular
Kai Regular


Joined: 21 May 2004
Posts: 85
Location: Canada

PostPosted: Thu Dec 09, 2004 6:35 pm Reply with quoteBack to top

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  */
View user's profileSend private messageVisit poster's websiteMSN Messenger
dekmosphere
Kai Beginner
Kai Beginner


Joined: 05 Dec 2004
Posts: 3
Location: USA - New York

PostPosted: Thu Dec 09, 2004 6:49 pm Reply with quoteBack to top

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!
View user's profileSend private messageVisit poster's websiteAIM Address
(TS)-Xmo
Kai Beginner
Kai Beginner


Joined: 21 May 2004
Posts: 21
Location: France

PostPosted: Thu Dec 09, 2004 6:52 pm Reply with quoteBack to top

how to telnet the router ? i have a login error ... (sveasoft alchemy rc3 lw3.1)
View user's profileSend private messageMSN Messenger
nec
Kai Regular
Kai Regular


Joined: 21 May 2004
Posts: 85
Location: Canada

PostPosted: Thu Dec 09, 2004 7:24 pm Reply with quoteBack to top

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
View user's profileSend private messageVisit poster's websiteMSN Messenger
(TS)-Xmo
Kai Beginner
Kai Beginner


Joined: 21 May 2004
Posts: 21
Location: France

PostPosted: Thu Dec 09, 2004 7:36 pm Reply with quoteBack to top

root/password Smile thanks
View user's profileSend private messageMSN Messenger
(TS)-Xmo
Kai Beginner
Kai Beginner


Joined: 21 May 2004
Posts: 21
Location: France

PostPosted: Thu Dec 09, 2004 8:07 pm Reply with quoteBack to top

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

Rolling Eyes Rolling Eyes

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 ?
View user's profileSend private messageMSN Messenger
nec
Kai Regular
Kai Regular


Joined: 21 May 2004
Posts: 85
Location: Canada

PostPosted: Thu Dec 09, 2004 8:12 pm Reply with quoteBack to top

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  */
View user's profileSend private messageVisit poster's websiteMSN Messenger
(TS)-Xmo
Kai Beginner
Kai Beginner


Joined: 21 May 2004
Posts: 21
Location: France

PostPosted: Thu Dec 09, 2004 8:21 pm Reply with quoteBack to top

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 Smile

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....
View user's profileSend private messageMSN Messenger
5L4Y3R
Kai Beginner
Kai Beginner


Joined: 20 Jun 2004
Posts: 5
Location: USA - Illinois

PostPosted: Thu Dec 09, 2004 10:50 pm Reply with quoteBack to top

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.
View user's profileSend private messageAIM AddressYahoo MessengerMSN Messenger
5L4Y3R
Kai Beginner
Kai Beginner


Joined: 20 Jun 2004
Posts: 5
Location: USA - Illinois

PostPosted: Thu Dec 09, 2004 11:06 pm Reply with quoteBack to top

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. Laughing
View user's profileSend private messageAIM AddressYahoo MessengerMSN Messenger
njhorn
Kai Beginner
Kai Beginner


Joined: 23 May 2004
Posts: 4
Location: USA - Texas

PostPosted: Thu Dec 09, 2004 11:11 pm Reply with quoteBack to top

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?
View user's profileSend private messageVisit poster's websiteAIM AddressMSN Messenger
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group :: Theme by Daz :: All times are GMT