Author |
Message |
Puma81
Team XLink Moderator
Joined: 21 May 2004
Posts: 278
|
Posted:
Mon Dec 13, 2004 7:34 pm |
|
Correct you can have 2 UI's connected to the engine at one time one will have to take over the other etc... and yes you should be using br0 for the sniff device on that router.
Quote: |
If your WRT says "WRT54G" and "1.0" or no version, and has about 20 lights on the front, with one marked "DIAG" you have a 1.0.
SniffDevice = br0
If your WRT says "WRT54G" and "1.1" and has 8 lights and NO DIAG, you have a 1.1
SniffDevice = br0
If your WRT says "WRT54G" and "2.0" or "2.2" or "WRT54GS" and has 8 lights, you have a 2.x.
For Wired Ethernet (A cable going to your console) set this:
SniffDevice = vlan0 |
|
|
|
|
|
babazoid
Kai Beginner
Joined: 15 Jun 2004
Posts: 4
Location: Canada
|
Posted:
Mon Dec 13, 2004 9:30 pm |
|
Z0DIAC wrote: |
How did you start kaid on the WRT? Did you use the commands suggested in the script found in this thread?
If you start kaid like this:
/tmp/kaid -c /tmp/kaid.conf &
it won't produce segfaults.
And: As far as I know, kaid doesn't support two guis attached (read: two xboxes) at the same time. This might be your segfault problem? |
I've tried to start it using kaid -d, kaid -c kaid.conf, and simply kaid. it's actually been running for three hours now without a thing changed from when it was segfaulting earlier. weird. if it starts segfaulting again i will try using -c kaid.conf & and see what happens
i wasn't trying to use two xboxes at once, i simply have two...
is there any reason that games frequently dissapear and then reappear when in the system link screen?
thanks |
|
|
|
|
Puma81
Team XLink Moderator
Joined: 21 May 2004
Posts: 278
|
Posted:
Tue Dec 14, 2004 12:00 am |
|
If your referring to the Halo 2 arena then yes thats normal. |
|
|
|
|
jloor
Kai Beginner
Joined: 09 Jun 2004
Posts: 6
Location: USA - New Jersey
|
Posted:
Tue Dec 14, 2004 4:30 pm |
|
I learned this the hard way,
always check your kaid.conf file using VI when you telnet into the router.
type "i" to edit things
the "delete" key deletes backwards (hint)
press "escape" to get out of edit mode
to save an exit type ":wq" and press "enter"
hope this helps, helped me big time. |
|
|
|
|
^S^
Team XLink Administrator
Joined: 09 Sep 2004
Posts: 251
Location: Portugal
|
Posted:
Tue Dec 14, 2004 6:41 pm |
|
crossposted, :x applies here too |
Last edited by ^S^ on Wed Dec 15, 2004 9:54 am; edited 1 time in total |
|
|
|
wirehead
Kai Beginner
Joined: 13 Dec 2004
Posts: 4
Location: Canada
|
Posted:
Tue Dec 14, 2004 8:12 pm |
|
any plans for a daemon mode thing ? because in fact I have to keep my telnet window open, else nothing is working....[/quote]
Quick UNIX lesson. Issue a command followed by the & sign to start a process in the background not linked to your terminal session.
aka
./program &
Change your scripts and enjoy kids |
|
|
|
|
babazoid
Kai Beginner
Joined: 15 Jun 2004
Posts: 4
Location: Canada
|
Posted:
Wed Dec 15, 2004 4:34 am |
|
hey
got the thing working fine, but it dies with segmentation faults randomly. sometimes it will be ok for hours and other times for minutes. it's really quite weird.
i'm running alchemy 6rc1, and yes i've tried everything in this forum. |
|
|
|
|
Z0DIAC
Kai Beginner
Joined: 28 Nov 2004
Posts: 37
Location: Germany
|
Posted:
Wed Dec 15, 2004 11:20 am |
|
It's the same situation here, but on my WRT the kaid lives for hours or a day, not only for minutes. I'm not sure if kaid dies on a segemntation fault, as I'm not watching kaid. It vanishes from my process list... This is a situation, I can live with while hoping for a new release in the near future.
If anybody has a solve for it, I would be happy to read about it, too. |
|
|
|
|
Z0DIAC
Kai Beginner
Joined: 28 Nov 2004
Posts: 37
Location: Germany
|
Posted:
Sat Dec 18, 2004 6:59 pm |
|
I have coded a solve by myself now, look into this thread, if interested: http://www.teamxlink.co.uk/forum/viewtopic.php?t=5416
It is a python script, that enables management access to the kai engine on the WRT using your XBMC dashboard. Now: If my kai engine crashes, I use my "WrtKaidCommander" to restart it using the XBox. Works great for me, hope it will help others, too. |
|
|
|
|
heyoh
Kai Beginner
Joined: 12 Nov 2004
Posts: 3
Location: USA - Georgia
|
Posted:
Fri Dec 31, 2004 6:37 pm |
|
I can't get xbmc to connect to my WRT! I have 2 WRT communicating via WDS. I have one segment throughout my network. I am trying to run kaid on the wrt that my xbox is wired into.
Here is my setup
Internet Router wired into WRT1 ------- wds link between-------WRT2---xbox wired in.
I have followed this thread and tried all the suggestions listed below. I have tried br0, wds0.2, vlan0, etc as my sniffing device. I have a reverse nat rule (aka port forward) for port 30000 that would redirect you to WRT2.
Any ideas as I can't figure out what the problem is? I have had much sucess with the windows engine and would like to switch to having kaid running on the WRT.
Would it be worth it to try running it on WRT1? |
|
|
|
|
heyoh
Kai Beginner
Joined: 12 Nov 2004
Posts: 3
Location: USA - Georgia
|
Posted:
Fri Dec 31, 2004 6:48 pm |
|
No dice on WRT1 either. I took wirehead's advice and set it up using wds0.2 and then went back to trying br0. Im going to try a newer build of xbmc and see if that is the issue. |
|
|
|
|
heyoh
Kai Beginner
Joined: 12 Nov 2004
Posts: 3
Location: USA - Georgia
|
Posted:
Fri Dec 31, 2004 7:21 pm |
|
Got it working! It ended up being XBMC problem. I cleaned out the XBMC cache and it started working. |
|
|
|
|
Hydra
Kai Beginner
Joined: 09 Jun 2004
Posts: 3
Location: United Kingdom
|
Posted:
Sat Jan 01, 2005 7:18 pm |
|
tehsu @ Sat Dec 11, 2004 5:23 pm wrote: |
my kaid seg faults, so i dunno what to do
FIXED: instead of running it as ./kaid i ran it as ./kaid -c /tmp/kaid.conf and it ran fine |
this happened for me too, i was using:
WRT54G_Wolf_W42_Alchemy_6rc1_by_TheIndividual.zip
using the -c option fixes it, and also using -d and -c together fixes it. |
|
|
|
|
Treebear
Kai Beginner
Joined: 23 Oct 2004
Posts: 11
Location: Australia - VIC
|
Posted:
Sat Jan 01, 2005 10:13 pm |
|
After downloading the kaid files to my webserver, I've been using the script:
wget http://192.168.1.99/~bruce/kaid.conf -O /tmp/kaid.conf
wget http://192.168.1.99/~bruce/kaid -O /tmp/kaid
cd /tmp && chmod +x /tmp/kaid && /tmp/kaid &
My kaid.conf for my WRT54G 1.0 is:
UIBind = :34522
OrbPort = 34525
EngineBind = :37500
SniffDevice = br0
Protocol = 4
ConsoleMacs = 00:50:f2:67:83:80;
ConfigURL = http://www.teamxlink.co.uk/connector/clientgetconfig.php
Username =
Password =
Autologin =
IgnoreTCP = 1
I then get:
~ # 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 00:50:f2:67:83:80'
PKTSNIFF: Everything set with packet sniffer...
But this is my output using the 28/12/04 XBMC as the UI. The UI keeps saying 'The service is not connected. Would you like to reconnect...":
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;;;0;' to controller UI.
UI: Received: KAI_CLIENT_LOGIN;USER;PASS; (33 bytes)
UI: Sending msg 'KAI_CLIENT_STATUS;Querying orbital mesh...;' to controller UI.
ORBDGRAM: Sent Orb Probe to 81.27.99.53:34525
ORBDGRAM: Sent Orb Probe to 212.26.219.228:34525
ORBDGRAM: Sent Orb Probe to 64.81.178.4:34525
ORBDGRAM: Sent Orb Probe to 64.27.6.84:34525
Is there an easy answer? Do I need any ports forwarded in my router? Or particular DNS settings? I can't even ping those Orb Probe IPs - I get 'unknown host'.
Cheers,
B |
|
|
|
|
Z0DIAC
Kai Beginner
Joined: 28 Nov 2004
Posts: 37
Location: Germany
|
Posted:
Sun Jan 02, 2005 2:58 pm |
|
|
|
|
VenimK
Kai Regular
Joined: 06 Nov 2004
Posts: 103
|
Posted:
Sat Jan 22, 2005 8:09 am |
|
bernienoel @ Thu Dec 09, 2004 8:21 pm wrote: |
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.... |
sed -e 's/00:50:f2:d4:f2:03/MAC_ADRESS/g' /tmp/kaid.cnf >/tmp/kaid.conf
Does 'nt change anythong in the conf file
What 's up with that 's and g' ???
Is there anything i should besides that. This stays in the rotuer config ! |
|
|
|
|
zues
Kai Beginner
Joined: 27 Nov 2004
Posts: 50
Location: USA - Oregon
|
Posted:
Sun Feb 13, 2005 11:40 pm |
|
this is what I get when I try
Quote: |
login: root
Password:
------------------------------------------
Welcome to the Sveasoft WRT54G/GS Firmware
Alchemy-6.0-RC6a beta build
version v3.01.3.8sv
USE OF THIS FIRMWARE IS AT YOUR OWN RISK
http://www.sveasoft.com
------------------------------------------
BusyBox v1.00 (2004.12.04-16:43+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
~ # cd /
/ # cd /tmp
/tmp # chmod 755 kaid
chmod: kaid: No such file or directory
/tmp # ./kaid
-sh: ./kaid: not found
/tmp # wget -O /tmp/kaid http://www.xxx.net/kaid
Connecting to www.xxx.net[198.107.xxx.xxx]:80
kaid 100% |*****************************| 1206 KB 00:00 ETA
/tmp # wget -O /tmp/kaid.conf http://www.xxx.net/kaid.conf
Connecting to www.xxx.net[198.107.xxx.xxx]:80
kaid.conf 100% |*****************************| 4865 00:00 ETA
/tmp # cd /
/ # cd /tmp
/tmp # chmod 755 kaid
/tmp # ./kaid
KAID: Kai Engine for KaiStation is initialising...
KAID: No orbitals servers are available...
KAID: Abnormal Kai Engine Termination...
/tmp #
|
I removed my webserver address and ip so that my bandwidth wont go crazy.
I think maybe my configuration is not right?
Im using the 7.0.0.4 kaid and my config is set to this.
Quote: |
################################################################################
# Kai Engine Configuration File
#
# This file contains the configuration options for Kai Engine.
# There are some fields which can be modified, the descriptions of these fields
# and their default values are listed below
#
# Verbosity : Debug output verbosity. Options are as follows:
# 0 - Silent apart from starting / stopping messages, and init failures.
# 1 - As 1, but shows import events such as UI attach/detach, console detection,
# orb connection / loss.
# 2 - As 2, but more detailed, showing thread start/stop events, DHCP
# events, and other important information.
# 3 - Debug - same as 2, but with lots of extra information - useful
# for diagnosing segfaults etc.
Verbosity = 0
# UIBind : Specifies which ip/port kaid will use to listen for controller
# UIs
# Ex.: 192.168.0.138, 10.0.0.1:34522, :34522 (default)
UIBind = :34522
# OrbPort : Specifies which port kaid will use to probe(UDP) and talk to
# Orbitals (TCP)
# Ex.: 34525
# Default : 34525 (default)
OrbPort = 34525
# EngineBind : Specifies the IP:port to listen for the engine (UDP socket);
# (port should be forwarded in your router if using NAT)
# Ex.: 69.69.69.69, 69.69.69.69:37500, :37500
EngineBind = :0
# Engine PAT : Tells the orbital server to use your perceived UDP port, as opposed to the
# one specified in EngineBind. Ignored if EngineBind is 0.
EnginePAT = 0
# SniffDevice : NIC to sniff for console traffic (eth0, ethX, ...). Will be used
# for packet injection too.
# Ex.: eth0 (default), en0 (Mac OSX),
SniffDevice = eth0
# MacLearningMode : Tells the engine how it should learn about your console(s).
# There's still the old, legacy mode: Manual, where you should enter you
# console(s) mac address(es) under ConsoleMacs.
# New options are: Auto and FirstFound.
# * Auto: Using this mode, each and every packet on your network is
# sniffed and analyzed by Kai Engine. Those who come from remote hosts
# are tagged using a mac cache mechanism and passed to the Ethernet
# frame handler. Inside that handler, if ether src doesn't correspond
# to any of the remote mac addresses, engine assumes its local and adds
# to local device cache. Keeps doing it for the engine lifetime, and
# behaves the same way all the times it runs. Uses more CPU than any
# other mode (Except FirstRun that behaves in the same way for the first
# time it runs).
# This mode allow you to use any number of consoles.
# * FirstFound: Now, this one is tricky and maybe the most balanced option for
# those using only one console. The engine will behave in auto mode until 1
# *ONE* local device is found. After that point, the pcap sniffer is restarted
# using that mac adddress as pre-filter. All this happens in real time, no
# restart is needed. No fs cache file is used, and it will behave like this
# everytime it runs. After the device is found, the engine will behave exactly
# like Manual mode. This mode will have the same CPU load until it finds a
# local device. Will be very fast if you already had your console turned on.
# * Manual: Finally, Manual mode. This legacy mode should be used whenever
# performance is an issue. You'll have to specify your console(s) mac address(es)
# yourself. No processing is done for sniffed packet besides sending to
# remotes. This is the Turbo Boost Mode.
MacLearningMode = Auto
IgnoreMacs =
# *** If using MacLearningMode = Manual, make sure to use this option ***
# ConsoleMacs : You can and should specify your console(s) mac address(es)
# here. They'll be used as pcap filters reducing CPU load
# processing each packet. It will also avoid sniffing
# incoming/injected packets to be caught. Format must be
# standard tcpdump format: Ex.: 00:ff:dd:5b:31:ac
# You can specify more than one mac address in a ; separated
# list. Will be parsed and "OR'ed" in filter. List should end
# with ";" or last element will be discarded.
ConsoleMacs =
# ConfigURL : URL where orb list is published (and extra stuff) - best not to mess with this.
ConfigURL = www.teamxlink.co.uk/connector/clientgetconfig.php
#Authentication - set username and password and AutoLogin=1 for an easy life...
Username = xxxx
Password = xxxx
AutoLogin = 1
# Xbox DHCP setting - please leave alone, unless playing with emulators or DoomX etc.
XBoxHomebrew = 0
|
What am I doing wrong?
Im running a wrt54gs v1.1 and kaistation works?
I have tried with alchemy 6.0rc5 and rc6. |
|
|
|
|
XCTtyler
Kai Lover
Joined: 20 Oct 2004
Posts: 638
|
Posted:
Tue Apr 05, 2005 11:03 pm |
|
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: Listening on :37500
ORBDGRAM: Now waiting for Orb datagrams.
PKTSNIFF: Waiting for console packets...
UI: Received: KAI_CLIENT_DETACH; (18 bytes)
KAI: Skipping message to UI, none attached! |
_________________
|
|
|
|
exiva
Kai Beginner
Joined: 13 Jul 2004
Posts: 9
Location: USA - New York
|
Posted:
Sun May 08, 2005 4:01 am |
|
~ # ./kaid
KAI: Reading settings from kaid.conf
CONFIG: Downloading settings from http://www.teamxlink.co.uk/connector/clientgetconfig.php...
CONFIG: 9 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 00:0d:3a:63:f2:e8'
PKTSNIFF: Everything set with packet sniffer...
UI: Received: KAI_CLIENT_DISCOVER; (20 bytes)
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;exiva;dream;1;' to controller UI.
UI: Received: KAI_CLIENT_LOGIN;exiva;dream; (29 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.
Segmentation fault
~ #
UIBind = :34522
OrbPort = 34525
EngineBind = :37500
SniffDevice = br0
#Protocol = 4
ConsoleMacs = 00:0d:3a:63:f2:e8;
ConfigURL = http://www.teamxlink.co.uk/connector/clientgetconfig.php
Username = exiva
Password = xxx
AutoLogin = 1
IgnoreTCP = 1 |
|
|
|
|
[MG]ScienidE
Kai Regular
Joined: 21 May 2004
Posts: 128
|
Posted:
Thu May 12, 2005 11:45 am |
|
Hey guys....
i have read through this post very quickly, maybe i missed this..
but it is possible with the alchemy firmware to auto download the kaid engine on a reboot...
The command u guys use for starting kai, u can also add this to a startup script..
im using the public alchemy 1.0 ...
it was something like : nvram set rc_startup= ....................
With kind regards,
Marco |
_________________
|
|
|
|
|