Forum: Official SMS Forums - Forum for discussing SMS: Simple Media System player for the PS2.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: ps2client for linux question/problem
  

Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 24
  1. #1 ps2client for linux question/problem 
    axemann Guest
    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.

    BTW... I can get it to work flawlessly under WinXP...

    Thanks...

    -Ben
    Reply With Quote  

  2. #2  
    EEUG is offline Member
    Join Date
    Jul 2005
    Posts
    1,334
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    0
    Likes Received
    0
    @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)...
    Reply With Quote  

  3. #3  
    joe34 is offline Member
    Join Date
    Jul 2004
    Posts
    44
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    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..."
    Reply With Quote  

  4. #4  
    axemann Guest
    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?
    Reply With Quote  

  5. #5  
    joe34 is offline Member
    Join Date
    Jul 2004
    Posts
    44
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    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..
    Reply With Quote  

  6. #6  
    Yoc's Avatar
    Yoc
    Yoc is offline Member
    Join Date
    Feb 2005
    Posts
    306
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    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 ?
    Reply With Quote  

  7. #7  
    dlanor is offline Member
    Join Date
    Sep 2004
    Location
    Sweden
    Posts
    10,107
    Downloads
    5
    Uploads
    0
    Mentioned
    1 Post(s)
    Tagged
    2 Thread(s)
    Likes Given
    0
    Likes Received
    126
    Quote Originally Posted by Yoc
    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
    Reply With Quote  

  8. #8  
    morphix's Avatar
    morphix is offline Member
    Join Date
    Jul 2005
    Location
    Newcastle, Australia
    Posts
    189
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    @dlanor: could you post the link to the thread? as i am need of changing the ps2client linux source code to fix the problem.
    Reply With Quote  

  9. #9  
    evilgrue's Avatar
    evilgrue is offline Registered User
    Join Date
    Jul 2006
    Posts
    5
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    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.
    Attached Files
    Reply With Quote  

  10. #10  
    morphix's Avatar
    morphix is offline Member
    Join Date
    Jul 2005
    Location
    Newcastle, Australia
    Posts
    189
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    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
    Last edited by morphix; 07-10-2006 at 02:23 AM.
    Reply With Quote  

Page 1 of 3 1 2 3 LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •