FAQ  •  Search  •  Profile  •  Log in to check your private messages  •  Log in
 New to linux View next topic
View previous topic
Post new topicReply to topic
Author Message
Seltheus
Kai Beginner
Kai Beginner


Joined: 26 Jul 2009
Posts: 13

PostPosted: Fri Jan 22, 2010 6:06 pm Reply with quoteBack to top

Hello guys.

Really really new to linux.
I'm trying to get kai running, but i keep getting the following error.
Before you bash, i did look at the video and followed every step.
So idk where i went wrong ><.

Using Ubuntu 9.01
Username@Username-desktop:~$ cd '/home/Username/Skrivebord/kaiEngine-7.4.18'
Username/@Username/-desktop:~/Skrivebord/kaiEngine-7.4.18$ sudo ./kaiengine
[sudo] password for Username/:
./kaiengine: error while loading shared libraries: libwx_gtk2u_richtext-2.8.so.0: cannot open shared object file: No such file or directory
Username/@Username/-desktop:~/Skrivebord/kaiEngine-7.4.18$


Can anyone tell me whats wrong from reading that?
Best Regards
Seltheus
View user's profileSend private message
karmic
Kai Regular
Kai Regular


Joined: 02 Jan 2006
Posts: 172

PostPosted: Fri Jan 22, 2010 6:42 pm Reply with quoteBack to top

you check the library necessary for kaiengine.

Code:
ldd kaiengine


if you use ubuntu 32-bit, you install WxGTK libraries.

Code:
sudo apt-get install libwxbase2.8-0 libwxgtk2.8-0


if you use ubuntu 64-bit, you download 32-bit libraries, install it.

Code:
wget http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/pool/universe/w/wxwidgets2.8/libwxbase2.8-0_2.8.10.1-0ubuntu1_i386.deb
wget http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/pool/universe/w/wxwidgets2.8/libwxgtk2.8-0_2.8.10.1-0ubuntu1_i386.deb
wget http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/pool/universe/libp/libpcap/libpcap0.7_0.7.2-9_i386.deb
dpkg-deb -x libwxbase2.8-0_2.8.10.1-0ubuntu1_i386.deb .
dpkg-deb -x libwxgtk2.8-0_2.8.10.1-0ubuntu1_i386.deb .
dpkg-deb -x libpcap0.7_0.7.2-9_i386.deb .
sudo mv ./usr/lib/* /usr/lib32/


Karmic
View user's profileSend private message
Seltheus
Kai Beginner
Kai Beginner


Joined: 26 Jul 2009
Posts: 13

PostPosted: Fri Jan 22, 2010 6:54 pm Reply with quoteBack to top

Thanks Karmic!

I'll try it out.

Best Regards
Selth
View user's profileSend private message
Seltheus
Kai Beginner
Kai Beginner


Joined: 26 Jul 2009
Posts: 13

PostPosted: Fri Jan 22, 2010 7:50 pm Reply with quoteBack to top

So i tried.

Doing those commands.

And still nothing, i did a ldd kaiengine and got this.

linux-gate.so.1 => (0x00682000)
libwx_gtk2u_richtext-2.8.so.0 => not found
libwx_gtk2u_aui-2.8.so.0 => not found
libwx_gtk2u_xrc-2.8.so.0 => not found
libwx_gtk2u_qa-2.8.so.0 => not found
libwx_gtk2u_html-2.8.so.0 => not found
libwx_gtk2u_adv-2.8.so.0 => not found
libwx_gtk2u_core-2.8.so.0 => not found
libwx_baseu_xml-2.8.so.0 => not found
libwx_baseu_net-2.8.so.0 => not found
libwx_baseu-2.8.so.0 => not found
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00a73000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x0085d000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00110000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x0091e000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x00c9a000)
/lib/ld-linux.so.2 (0x00269000)

Mad

hope you can help!
View user's profileSend private message
ToxAtec
Kai Beginner
Kai Beginner


Joined: 16 Jan 2010
Posts: 7

PostPosted: Sat Jan 23, 2010 6:19 pm Reply with quoteBack to top

Do you have a 32bit or 64bit system? I think 'uname -m' should tell you that if you don't know. (For example i686 on a 32-bit system, on 64-bit: amd64)

If you have a 64bit-system, did you copy-pasta the last command ('sudo mv ./usr/lib/* /usr/lib32/'), or did you type it manually? Maybe you didn't see the . in front of /usr/lib/* then? Just an idea Razz

Did you run
Code:
ldconfig

after installing the libs? I think this is necessary.. I addition /usr/lib32 has to be in your /etc/ld.so.conf (on 64-bit) so ldconfig finds the new libs, correct me if this doesn't apply to ubuntu.. ?!

Oh, and I just read on the german ubuntu wiki that 'getlibs' automatically installs all the libs you need. Here is some info about it. But I would try to get it to work without that first.

ToxAtec
View user's profileSend private message
Seltheus
Kai Beginner
Kai Beginner


Joined: 26 Jul 2009
Posts: 13

PostPosted: Sun Jan 24, 2010 12:43 am Reply with quoteBack to top

Awesome guys. I somehow managed to get kai working, i'm prolly halfway through getting it to work.
A couple of questions.

Firstly, i'm using a planex USB device. With the chipset RT2800.
Which driver should i be using from this site:
http://web.ralinktech.com/ralink/Home/Support/Linux.html
the rt2870 drivers? And any idea how i go about installing them?

Secondly: Whenever i start kaiengine, this comes up

Quote:

The engine has started
grep: write error: Bad file descriptor
egrep: write error: Bad file descriptor
Error: "/var/tmp/kdecache-Username" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-Username" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-Username" is owned by uid 1000 instead of uid 0.
Error: "/tmp/ksocket-Username" is owned by uid 1000 instead of uid 0.
kdeinit4: Shutting down running client.
kdeinit4: preparing to launch /usr/lib/libkdeinit4_klauncher.so
Error: "/tmp/ksocket-Username" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-Username" is owned by uid 1000 instead of uid 0.
kdeinit4: preparing to launch /usr/lib/libkdeinit4_kded4.so
Error: "/var/tmp/kdecache-Username" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-Username" is owned by uid 1000 instead of uid 0.
kdeinit4: preparing to launch /usr/lib/libkdeinit4_kbuildsycoca4.so
kbuildsycoca4 running...
Error: "/var/tmp/kdecache-Username" is owned by uid 1000 instead of uid 0.
kdeinit4: preparing to launch /usr/lib/libkdeinit4_kbuildsycoca4.so
kbuildsycoca4 running...
Error: "/var/tmp/kdecache-Username" is owned by uid 1000 instead of uid 0.
Error: "/var/tmp/kdecache-Username" is owned by uid 1000 instead of uid 0.
kdeinit4: preparing to launch /usr/lib/libkdeinit4_kconf_update.so
kdeinit4: preparing to launch /usr/bin/knotify4
Error: "/var/tmp/kdecache-Username" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-Username" is owned by uid 1000 instead of uid 0.
Error: "/tmp/ksocket-Username" is owned by uid 1000 instead of uid 0.
kdeinit4: preparing to launch /usr/lib/kde4/kio_file.so
kdeinit4: preparing to launch /usr/lib/kde4/kio_http.so
Error: "/tmp/ksocket-Username" is owned by uid 1000 instead of uid 0.
kdeinit4: preparing to launch /usr/lib/kde4/kio_http.so
kdeinit4: preparing to launch /usr/lib/kde4/kio_http.so
kdeinit4: preparing to launch /usr/lib/kde4/kio_http.so
kdeinit4: preparing to launch /usr/lib/kde4/kio_http.so
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
kdeinit4: preparing to launch /usr/lib/libkdeinit4_kwalletd.so
Error: "/var/tmp/kdecache-Username" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-Username" is owned by uid 1000 instead of uid 0.
<unknown program name>(2146)/ main: 2 - parseCommandLine
<unknown program name>(2146)/ main: 3 - create KApplication
Error: "/var/tmp/kdecache-Username" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-Username" is owned by uid 1000 instead of uid 0.
grep: write error: Bad file descriptor
kdeinit4: preparing to launch /usr/lib/libkdeinit4_kbuildsycoca4.so
<unknown program name>(2041)/ KStartupInfo::createNewStartupId: creating: "Username;1264292935;606675;2041_TIME0" : "unnamed app"
kbuildsycoca4 running...
Error: "/var/tmp/kdecache-Username" is owned by uid 1000 instead of uid 0.
Orbital Sync Established
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
libpng warning: Ignoring gAMA chunk with gamma=0
libpng warning: Ignoring attempt to set negative chromaticity value
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
kdeinit4: preparing to launch /usr/lib/libkdeinit4_kio_http_cache_cleaner.so
Error: "/var/tmp/kdecache-Username" is owned by uid 1000 instead of uid 0.


Any idea what is wrong?

Best Regards
Seltheus

EDIT: Running Kubuntu 64bit btw
View user's profileSend private message
karmic
Kai Regular
Kai Regular


Joined: 02 Jan 2006
Posts: 172

PostPosted: Sun Jan 24, 2010 3:11 am Reply with quoteBack to top

What's model name of your planex?
If you use either GW-USMini2N, GW-USMicroN, GW-US300MiniS or GW-US300Mini2,
you choose RT2870USB(RT2870/RT2770) from this site.
http://www.ralink.com.tw/support.php?s=2

Do you use KDE desktop? I don't know kaiengine runs on KDE.

Karmic
View user's profileSend private message
Seltheus
Kai Beginner
Kai Beginner


Joined: 26 Jul 2009
Posts: 13

PostPosted: Sun Jan 24, 2010 7:57 am Reply with quoteBack to top

yea, Kubuntu is KDE desktop. So kaiengine doesn't work with kubuntu?

Also, any tips on how to install that driver? Very Happy

Since KDE didn't work, trying my hands on ubuntu 9.01 32bit now.

I installed the library, but everytime i start kai. Terminal says the following:

terminate called after throwing an instance of 'boost::system::system_error'
what(): Address already in use
Aborted
View user's profileSend private message
ToxAtec
Kai Beginner
Kai Beginner


Joined: 16 Jan 2010
Posts: 7

PostPosted: Sun Jan 24, 2010 10:44 pm Reply with quoteBack to top

Quote:
terminate called after throwing an instance of 'boost::system::system_error'
what(): Address already in use
Aborted


Is kaiengine maybe still running somehow? Find that out with
Code:
# ps aux | grep kaiengine


Use
Code:
# killall kaiengine

for SIGTERM
or
Code:
# killall -9 kaiengine

for SIGKILL if the above doesn't work to get rid of it. Try ./kaiengine again then.

btw, I don't think KDE should be a problem for kai, as the libraries it needs are present. Those errors didn't look fatal anyway as it said "Orbital Sync Established". Or did it really not work?

About your driver: I found a ubuntu karmic guide for RT2870 usb devices, maybe this helps? http://ubuntuforums.org/showthread.php?t=1342593 Have fun with it Razz
View user's profileSend private message
Seltheus
Kai Beginner
Kai Beginner


Joined: 26 Jul 2009
Posts: 13

PostPosted: Sat Jan 30, 2010 12:45 am Reply with quoteBack to top

Guys, can you tell me how i'd go about installing those packages for Kai on a openSUSE linux system x64?

sudo apt-get doesn't seem to work ><
View user's profileSend private message
ToxAtec
Kai Beginner
Kai Beginner


Joined: 16 Jan 2010
Posts: 7

PostPosted: Sat Jan 30, 2010 1:48 pm Reply with quoteBack to top

openSUSE uses rpm, not dpkg / apt.

You will have to find out how SuSE manages 32-bit libraries on a 64-bit system. I did a quick google search and didn't find anything useful. Maybe you should ask in a SuSE speific forum / IRC.. although I think it would be easier to use a 32-bit system if you don't really need 64-bit.
View user's profileSend private message
Seltheus
Kai Beginner
Kai Beginner


Joined: 26 Jul 2009
Posts: 13

PostPosted: Sun Jan 31, 2010 11:36 am Reply with quoteBack to top

Ok, i think i'm getting close.

I installed the necessary packages, so kai is working.

It seems openSUSE already had the drivers for my planex usb adapter. It detects it as rt2800 atleast.

And when inside kai webUI, under metrics, it actually detects my psp. But i still can't see others?
View user's profileSend private message
ToxAtec
Kai Beginner
Kai Beginner


Joined: 16 Jan 2010
Posts: 7

PostPosted: Sun Jan 31, 2010 5:51 pm Reply with quoteBack to top

Hmm, you set up an ad-hoc connection between the wlan interface and your psp, didn't you? What does ' dmesg | tail ' say when you start kaiengine? There should be something like "rt2800 entered promiscuous mode".

What driver does openSUSE use for your adapter? There are 2 drivers, the rt2x00 drivers from the community and another GPL driver written by ralink, called rt2870sta (or rt2870? I'm not sure).

Use 'lsmod | grep rt' (without quotes of course) to find out which of them is being used. rt2800usb is from the rt2x00 project, rt2870sta from ralink.

The ralink driver seems to be the better alternative, as the changelog says:
Quote:
[2.3.0.0]
1. Support PSP XLINK in ad-hoc mode.

So kai should work with this driver...
View user's profileSend private message
Seltheus
Kai Beginner
Kai Beginner


Joined: 26 Jul 2009
Posts: 13

PostPosted: Tue Feb 02, 2010 5:10 pm Reply with quoteBack to top

Hey tox.
This is what is says for
dmesg | tail
[ 533.958013] device eth0 left promiscuous mode
[ 533.960135] device wmaster0 left promiscuous mode
[ 562.739158] device wlan0 left promiscuous mode
[ 567.097016] device eth0 entered promiscuous mode
[ 567.101013] device wmaster0 entered promiscuous mode
[ 567.103014] device wlan0 entered promiscuous mode
[ 567.356137] device eth0 left promiscuous mode
[ 576.737137] device wmaster0 left promiscuous mode
[ 578.306033] device wlan0 left promiscuous mode
[ 664.931017] device wlan0 entered promiscuous mode

This is what it says for
lsmod | grep rt
rt2800usb 40960 0
rt2x00usb 13088 1 rt2800usb
rt2x00lib 35904 2 rt2800usb,rt2x00usb
input_polldev 4328 1 rt2x00lib
mac80211 217432 2 rt2x00usb,rt2x00lib
cfg80211 103424 2 rt2x00lib,mac80211
parport_pc 40356 0
parport 39948 2 ppdev,parport_pc
crc_ccitt 1984 1 rt2800usb
iTCO_vendor_support 3876 1 iTCO_wdt

So it would seem as if the current drivers would support promiscuos mode at least. But it may be better to install the other drivers?

EDIT: Any tips on how to install that driver on openSUSE? Smile
View user's profileSend private message
ToxAtec
Kai Beginner
Kai Beginner


Joined: 16 Jan 2010
Posts: 7

PostPosted: Tue Feb 02, 2010 10:55 pm Reply with quoteBack to top

I don't know exactly how kai works, but it looks like kai tries to use all your network interfaces at once which ends in a mess?! I think you should define the appropriate wlan interface (kaiAdapter) in your kaiUserConfig.txt. wlan0 for you I guess.

The rt2x00 drivers use the newer mac80211 wireless stack (which the rt2870sta doesn't use, afaik..), and I made the experience with my own old creepy acx100 card that the mac80211 drivers work while the old drivers don't.

I would try it with the driver you already have at first, it should work. So, how do you set up the ad-hoc connection? I have not tried NetworkManager / WiCD for myself, but Networkmanager (default in SuSE?) should be OK. I'll post what I'm using in CLI tomorrow. Using CLI might not be necessary, but I'll post it anyway, just for fun Razz

EDIT: This is what I do, everything behind a # is a comment:
I can't change the interface type (don't know if you can), so you have to delete it
Code:
iw dev wlan1 del # You will have to delete wlan0 instead

and then replace it with an ad-hoc interface. phy1 is my second card, yours will be phy0. ibss is ad-hoc.
Code:
iw phy phy1 interface add adh0 type ibss # 'adh0' is random, use what you like

Put up the new interface and scan for your PSP now, the game has to be in ad-hoc mode already of course:
Code:
ifconfig adh0 up
iw dev adh0 scan

Now find your PSP network SSID and its frequency (usually described by channel X) and conncet to it:
Code:
iw dev adh0 ibss join <SSID> <freq> # Insert the correct values from your scan

This should be it. Check 'dmesg | tail' for something like "adh0: Selected IBSS .....".
You should edit your kaiUserConfig.txt and modify the kaiAdapter line to "kaiAdapter=adh0". Start kaiengine and hopefully see other players ingame...

**

If the rt2x00 drivers don't work or seem to be buggy or whatever and you want to try the rt2870sta drivers, get them from ralinktech.com (you will be asked for a name and a mail. Enter something funny if you want Very Happy), unpack them and read the instructions. The tutorial for ubuntu might have some useful info, too. Installation shouldn't be (much) different for SuSE...

Wait, what if you already have a rt2870sta module shipped with SuSE? Try:
Code:
modprobe -r rt2800usb        # unload the other driver
modprobe rt2870sta


Good luck.
View user's profileSend private message
Seltheus
Kai Beginner
Kai Beginner


Joined: 26 Jul 2009
Posts: 13

PostPosted: Wed Feb 03, 2010 6:29 pm Reply with quoteBack to top

Its wierd.

Because, under my internet connection settings.

I can pick my PSP, and it allows me to set it to ad-hoc mode, and it even detects my psp when i scan for signals.

when inside kai. This is what metrics tell me

orbital name: inxtec.net
reachable: Yes
local ip: ----------- (secret numbers here!)
local port: 30000
engine version: 7.4.18
pssdk/winpcap: Linux/libpcap
signed by: MeanMF
ethernet adapter: wlan0
locked: 1
up engine traffic: 0
down engine traffic: 74
up chat traffic: 0
down chat traffic: 0
up orb traffic: 0
down orb traffic: 0
pssdk/winpcap (again?): libpcap
mac cache entrie: 0
broadcast traffic inbound: 0
broadcast traffic outbound: 0
unicast traffic inbound: 0
unicast traffic outbound: 0
wireless SSID:


Found Consoles:

PSP
------------- (secret numbers here!)


And i tried changing from rt2800usb to rt2870sta like you said.
It wouldn't detect my usb when i did that. So reverted it!
View user's profileSend private message
ToxAtec
Kai Beginner
Kai Beginner


Joined: 16 Jan 2010
Posts: 7

PostPosted: Wed Feb 03, 2010 7:24 pm Reply with quoteBack to top

Hmm, I had the same problem with my acx100 and certain drivers, ad-hoc connection looked OK but I wasn't able to see anyone in kai. I guess the rt2870sta driver from ralink is the better choice then Razz

There is a tutorial for ubuntu I posted before: http://ubuntuforums.org/showthread.php?t=1342593
It describes what to do if your usb device is not detected by the rt2870sta driver. You will have to compile the driver again. There will be some differences for SuSE, so it's important that you know exactly what you are doing by each step.
Ok, you should always know, you can't handle linux with copypasta Smile
View user's profileSend private message
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic
You can 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