HOWTO Share files between windows and ps2linux using samba
Remy Irawan - rmi@playstation2-linux.com
2002-07-05 v0.1

This document will describe step by step information how to setup files sharing between windows and ps2linux




Preparation

First thing first you have to have samba package install form the disc 2 of the Linux for Playstation2. The second most important thing is you have to a smbfs (samba file system) module in your PS2Linux system. There are 2 ways to install smbfs module :
If you already done all of the above, then we are set to do a file sharing. For making things easier, I will make name examples to represent the operating system and user:

PS2Linux Setup

In the PS2Linux there are 2 files to edit: smb.conf and hosts. Both of them is located in /etc. First edit the /etc/hosts file using vi or pico so it will look something like this

# /etc/hosts file
127.0.0.1                localhost
192.168.0.1            linbox            linbox.somedomain.com
192.168.0.2            winbox         winbox.somedomain.com

Now save the default smb.conf first : cp /etc/smb.conf /etc/smb.conf.saved. Using the default smb.conf will work, however i like my own configuration better and it looks like this:

[global]      
        interfaces = 192.168.0.1/24
        workgroup = MSHOME
        server string = Linbox Samba %v Server
        encrypt passwords = Yes
        bind interfaces only = Yes
        read bmpx = No
        time server = Yes
        preferred master = Yes
        socket options = TCP_NODELAY
        guest account = nobody
        os level = 65
        bind interfaces only = Yes
        security = SHARE      
        hide dot files = No

[home]
        comment = %U's Home Directory
        path = /home/joe    <--- Remember to change this to your own home directory
        read only = No
        browseable = Yes
        create mask = 0664
        directory mask = 0775

[printers]
        comment = All Printers
        path = /var/spool/samba
        print ok = Yes
        browseable = No

Windows Setup

You have to setup IP addr, netmask, workgroup, share drive and login method for the windows machine:

Testing Connection and Mounting Windows Drive in PS2Linux

In your PS2Linux prompt :
                 [joe@linbox joe]$ smbclient -L linbox
                 added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0
                 Password:
                 Domain=[MSHOME] OS=[Unix] Server=[Samba 2.0.10-ja-1.1]

                 Sharename      Type      Comment
                 ---------------      ------      -------------
                 home                Disk      joe's Home Directory
                 IPC$                 IPC       IPC Service (Linbox Samba 2.0.10-ja-1.1 Server)

                 Server                   Comment
                 ---------                   -------------
                 LINBOX               linbox Samba 2.0.10-ja-1.1 Server

                 Workgroup            Master
                 ---------------            ----------
                 MSHOME             LINBOX 

If you get an output similar like that you're on the right track :) Now what you can do is to mount the drive in windows to your PS2Linux:

Accessing PS2Linux Files from Windows Machine

For windows ME/98 don't forget to put in the username 'joe' at the logon box, leave the password empty and click ok. Please note that user 'joe' must have a valid account in your PS2Linux machine. For windows NT/2000/XP, login as your normal login id and create a user in your PS2Linux with the same exact username as your windows NT/2000/XP.
Now after you login to windows:
You can mount this home directory at PS2Linux in your windows. Just right-click on folder 'home' under icon 'linbox', choose 'Map Network Drive', tick 'Reconnect at Logon' and click OK. The next time you turn on your windows machine in My Computer or Windows Explorer you can see a drive called 'Home at Linbox'. You can access it from there without going to Network Neighborhood/My Network Place again.