------------ Ps2Linux XPbox Network Setup ------------------- ------------------Tim McGinley------------------------- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx based on Configuration of a PS2 as a Network Server form PlayStation2-Linux.com xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx PS2 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx firstly if this is the first time you've used your linux ps2 box we need to edit some settings before we can continue firstly we want to make our ps2 boot to PAL, to do this, Edit the file /mnt/mc00/p2lboot.Opt using emacs so type emacs /mnt/mc00/p2lboot.Opt and change: // remember to use delete rather than backspace Display=vga to Display=ntsc or Display=pal and ctrl x then ctrl c to exit and save changes. and reboot. . . . you should now not have to worry about the sync on green monitor worries. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx IP address xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx IP address designation be careful to take note of your original windows configuration 192.168.100.1 Router/Gateway server that will provide access to the Internet* 192.168.100.2 winpc1 - PC running Windows 192.168.100.50 ps2linux - ps2_01 255.255.255.0 Subnet Mask xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx PS2 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ok now we go inside the Ps2 and edit its /etc/sysconfig/network-scripts/ifcfg-eth0 (N.B after eth is a zero!, tripped me the first time) so we wanted to use the emacs editor emacs /etc/sysconfig/network-scripts/ifcfg-eth0 and ctrl x then ctrl c to exit and save changes. file to read as follows; DEVICE=eth0 BOOTPROTO=static IPADDR=192.168.100.50 NETMASK=255.255.255.0 GATEWAY=192.168.100.1 ONBOOT=YES xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx PS2 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx and then edit /etc/sysconfig/network so that it reads NETWORKING=YES HOSTNAME=ps2_01 FORWARD_IPV4=YES GATEWAYDEV=eth0 GATEWAY=192.168.100.1 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx WIN xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx having changed your Windows box IP settings from the settings to IP address 192.168.100.2 Subnet mask 255.255.255.0 Default gateway 192.168.100.1 the top of the page page and reboot. in the command line (START,RUN cmd line) type ping 192.168.100.50 the response will tell you the time it took for your message to go between the two computers. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx PS2 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx you can also do the reverse by typing ping 192.168.100.2 into your PS2 inorder to ping the name of the machine i.e. ping ps2_01 if this doesn't work as it didn't for me the second time confirm that the ethernet driver is running by typing lsmod and looking in the list to see that smap is loaded. if it isn't type /sbin/insmod smap then activate the network settings by typing /etc/rc.d/init.d/network start check that everything is working by pinging the PC again. if you had to do the last two steps to get everything working you'll have to do that every time until we work out how to get around it. we add the following lines to /etc/hosts 127.0.0.1 localhost 192.168.100.50 ps2_01 192.168.100.2 winpc1 The 1st line of the file must always exist. It essentially allows the computer to talk to itself. The second line associates the private IP address 192.168.100.50 with the name ps2linux. The 3rd line does the same for the Windows PC if you want more machines add more machines!! xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx PS2 OPTIONAL FTP/TELNET ENABLING xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx First, edit the file /etc/inetd.conf on the PS2 and remove the leading # sign for the services ftp and telnet (almost all services are commented out by default as a security measure). then edit /etc/hosts.allow so that it reads feel free to comma in more IPs to the fial line if you are connecting more machines, remember to add them in all the other places too. however its probably better to start at this scale and work up. # #hosts.allow This file describes the names of the hosts which are allowed to use the local INET services, as decided # by the local '/usr/sbin/tcpd' server. swat: localhost 127.0.0.1 telnetd,ftpd: 192.168.100.2 Set up some additional users on the PS2, complete with passwords, in order to use these remote services. This can be done using the linuxconf tool, or by editing the /etc/passwd file. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx PS2 SAMBA CONFIGURATION xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx edit the file /etc/smb.conf. In the General section, add the following settings; workgroup = myworkgroup (this MUST be the workgroup set up on your Windows computer) security=user unix password sync = yes passwd program = passwd You should also uncomment (remove the hash) on the [Public] section of the file, and set the public share directory to something like /home/samba/public. You can create this directory using commands such as the following: cd /home mkdir samba cd samba mkdir public cd /home chmod -R 777 samba next add your username and password to the windows user account. (don't thinkl this is neccessary in XP). next just add your passwords to Samba on the PS2, originally i just added my user account and could probably make this work but had more success with root and password smbpasswd -a username password logon as root and type samba start you should now be able to detect ps2_01 in your network neighbourhood on the PC.if not type //nameofyourps2/public into the add network place dialogue box. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx PS2 SAMBA CONFIGURATION xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx linuxPS2@timmcginley.com