View Full Version : ps2client for linux question/problem
axemann
08-29-2005, 09:06 PM
Hey guys... First post here. First off, great work on all the stuff here. I'm having a bit of a problem with the linux version of ps2client. I'm unsure as to what exactly I need to put in the elflist.txt. I've tried /mnt/media (actual directory, shared with Samba), /mnt/media/, tried running it in the /mnt/media directory, from the /root folder. I'm logging in as root. I've tried changing permissions, owners, etc...
For some reason, it gives me a segmentation fault every time I try to browse/change directories with SMS 1.4. I'm at a loss as to what to do, but I'm sure it's something simple that I'm over looking. :banghead:
BTW... I can get it to work flawlessly under WinXP...
Thanks...
-Ben
@axemann: Mr. Ronald has implemented 'host' support. I know quite little about 'elflist.txt' (I think it must contain local filesystem paths you want to share via ps2client). I've also noted that '/' is substituted by '\' in his code, maybe this causes the problem on linux (I think on Win32 we can also use '/', you can try to alter SMS's code 'Browser.c' file to verify that)...
joe34
08-30-2005, 08:33 PM
I actually asked this question in another thread, but it never got answered. If you just want to have the contents of one folder show up when u go to host in SMS just cd to that directory then launch ps2client, and that will be the folder you are in. Unfortunately for whatever reason, and I don't know why any sub-folders will not work, they are just "unrecognized..."
axemann
09-05-2005, 07:43 PM
I figured out the sub-folder thing (well...sort of...) It has to do with file/dir permissions, but I still can't do any browsing. Anyone know how SMS/ps2client accesses the filesystem? i.e. what user/group, and what permissions it's looking for?
joe34
09-05-2005, 07:52 PM
It should access under whatever user/group you launch it as..
Why do you think it is a problem with permissions? As EEUG explained above dlanor substituted '\' for the '/'s in the code. Thus I would think that SMS doesn't see them as directories because it thinks only the backward slashes indicate folders instead of the linux standard forward slash..
Is this still a problem with latest versions of SMS ? I can't make my elflist.txt work with mac OS X computer. And I have the same problem with Ulaunchelf. Anyone manage to make it work with Linux or OS X ?
dlanor
05-30-2006, 04:05 PM
Is this still a problem with latest versions of SMS ? I can't make my elflist.txt work with mac OS X computer. And I have the same problem with Ulaunchelf. Anyone manage to make it work with Linux or OS X ?
Sorry, but this is all due to the assumptions in my PS2-side host code that ps2client and elflist.txt use backslash as path separator. I've explained this in another new reply to your post at PS2Dev.org too. Hopefully you can fix this by modifying the mac/Linux ps2client as suggested in that reply.
I'm afraid this problem is all my fault... (Mea culpa! :()
Best regards: dlanor
morphix
07-09-2006, 04:31 AM
@dlanor: could you post the link to the thread? as i am need of changing the ps2client linux source code to fix the problem.
evilgrue
07-09-2006, 10:51 AM
Ups2client-3.0.0-p1
Unofficial ps2client release by evil
Based on ps2client-3.0.0 source tarball
WARNING!:
This ps2client patched release addresses some common faults encountered by
Unix users. It has been thoroughly tested on FreeBSD systems, but should work
on Linux and MacOS X boxes with little or no modifications (I'll check that
as soon as I have those systems at hand). Correct functionality on Cygwin
platform is highly unlikely -- may not even compile.
CHANGES:
2006-07-09:
* Fixed a very nasty issue in ps2link_request_read() that caused obscure
segfaults on FreeBSD systems. However, could not identify exact
origin of the problem. Probably a memory management fault of some kind.
* Fixed a REALLY MAJOR SCREWUP concerning directory traversal in
ps2link_request_readdir() that made files and directories from second
level downwards completely inaccessible. The fix is rather ugly and
clumsy, but worgz grate for me :-)
* Added support for character set conversion (KOI8->CP1251) so Russian file
names are now shown correctly in SMS. Could be turned off at compile time --
remove -DKOI8 from Makefile.
POSSIBLE BUGS AND PROBLEMS:
* elflist.txt handling code still remains totally screwed up since I do not
use those config files. It may work or may not work at all. Will
check it out sometime later.
* Only the functionality essential for SMS player operation has been tested.
* Tested only on FreeBSD 5 platform. Should compile and work fine on Linux
systems. MacOS X may require some minor modifications. Any feedback is
welcome on these issues.
FUTURE PLANS:
* Revision of the elflist.txt support routines.
* Adding some sort of AutoClient functionality, turning ps2client into a
standalone media server for SMS player that requires little to no user
interaction.
Enjoy!
--evil <evil@nr2.crimea.ua>
Remove .zip extension after download -- that is a .tar.bz2 file.
Feel free to contact me (PM, email or this thread) in case of problems.
morphix
07-10-2006, 02:15 AM
the elflist.txt file still isnt being correctly read, but running ps2client in the dir which has the media in lets me view all subfolders and files. Symlinks work perfectly :) no need for elflist :)
evilgrue
07-10-2006, 04:27 AM
the elflist.txt file still isnt being correctly read
That's normal.
, but running ps2client in the dir which has the media in lets me view all subfolders and files. Symlinks work perfectly :) no need for elflist :)
What platform do you run this on ?
morphix
07-10-2006, 11:45 AM
What platform do you run this on ?
using Ubuntu Dapper (6.06), debian variant
husky99
07-11-2006, 10:03 PM
Running straight Debian here on a Linkstation (Kuro).
Nice work and thanks
cherrypie
07-31-2006, 12:07 AM
Seems to be running fine under MacOS X
Works fine with SMS, but not with ULE. I have bus errors and sim links are not seen as folders.
Isn't the network code shared between SMS and ULE ?
(tryed with SMS rev4 and ULE 3.90)
evilgrue
08-22-2006, 09:05 AM
Works fine with SMS, but not with ULE. I have bus errors and sim links are not seen as folders.
Isn't the network code shared between SMS and ULE ?
(tryed with SMS rev4 and ULE 3.90)
I will look into this when I have more free time.
PS.
What platform ? What were you doing when bus errors appeared ?
I'm trying to use it under Mac OS X.
Bus errors appears when I go thru folders, but not each time...
Perhaps it can help, I've just received a mail from a user of my software XDumb (his name is Nieko) about ps2client. Here it is :
On your site (http://xdumb.free.fr/blog/?page_id=10) I read
about ps2client not working for you under Linux.
The problem with version 2.0.0 hasn't so much got to do with
translation of / and \ (which occurs in ps2link.c:104,
ps2link_fixpathname()), but with not changing directories in
ps2client when you select one in SMS.
Therefore, when SMS dives into a directory, it requests its
contents, but since ps2client doesn't properly change
directories, its file-stats command thinks all files are
directories, so SMS crashes when trying to open the files as
directories (actually, ps2client segfaults).
In the attachment you can find the patched source file
ps2link.c, with extra commands for switching to the correct
directory. Just do a diff with the original version to see
it doesn't do any harm ;) (Just be sure you're comparing to
version 2.0.0.)
I also made this small "daemon", which polls if the PS2 is
online every 10 seconds or so, and then starts ps2client.
This way you don't have to turn the PS2 on first, share your
files, and go back to your PS2 :)
But it's about SMS and Ps2Client 2.0.0...
I didn't try yet the code source attached to this mail.
e-oni
08-23-2006, 12:35 PM
I'm trying to use it under Mac OS X.
Bus errors appears when I go thru folders, but not each time...
Perhaps it can help, I've just received a mail from a user of my software XDumb (his name is Nieko) about ps2client. Here it is :
But it's about SMS and Ps2Client 2.0.0...
I didn't try yet the code source attached to this mail.
Hi,
maybe you can attach the source you received. I´ll give it a try on my Mac. Is the daemon mentioned also included?
Greetings
Oni
Here are the attached files. The daemon is also included.
11160
I tried the patch on PS2 Client 2.0.0. It works fine with SMS, but still not with ULE. On SMS, I can go inside folders and links (ln -s), but with ULE folders are still seen as files...
Can't make it work with Crystal Chips Boot Manager 2.0.6 too. Applications are seen, but if I try to run or install one, the BM hangs...
I'm making a GUI for ps2client, I really would like to see a working universal version of ps2client (I mean works with SMS, ULE and BM) :cry:
Ok, if you want to have a try with ps2Client on OSX, I've just compiled a GUI for it. This new app is called ps2XClient (http://xdumb.free.fr/blog/?page_id=10)
Just drag and drop files and folders, activate the network on SMS, launch PS2XClient and enjoy.
As I said before, with ULE you can share a folder containing ELF files to launch applications, but can't navigate inside sub folders. Ho, and to activate the network you have to do the folowing :
- Activate network in ULE
- Launch PS2XClient
- try to navigate inside the Mac using ULE. You won't see anything
- stop and start PS2Client with the stop/start button
- go back and navigate again with ULE.
Ok, good news, the version of ps2client which works flawlessly was just here, in front of my nose : the SVN sources (http://svn.ps2dev.org) !
Get the source here on my website ( http://xdumb.free.fr/downloads/ps2client3.0.0svn.zip) if you don't have a SVN client.
On my mac, it works with SMS, ULE and even Boot Manager from Crystal Chips.
Expect a new release of ps2XClient tonight. It's already done but I need to do a little more tests.
ps2XClient 0.6 for Mac now available on my website (http://xdumb.free.fr/blog/?page_id=10)
What about you linux users, is this version working for you ?
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.