The shoutbox is currently out of service. Join us on Discord instead.
You can help CodeWalrus stay online by donating here.

Help for setting up a local DHCP/SMB server on a raspberry pi

Started by gameblabla, December 25, 2019, 10:00:33 pm

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

gameblabla

Hello guys,
i would like to play PS2 games via a SMB share with my Raspberry Pi directly connected to my PS2's ethernet port.
For this purpose, a tool called pi-smbshare was released :
https://github.com/toolboc/psx-pi-smbshare

However, it is ultra slow when it comes to booting up and eats a lot of energy.
Void linux musl ARMv7 boots up much faster and has samba/dnsmasq available.
psx-pi-smbshare uses also samba and dnsmasq.

However, i can't get dnsmasq to work or set up the DHCP server.
It is configured as such in psx-pi-smbshare :
dhcp-mac=set:client_is_a_pi,B8:27:EB:*:*:*
dhcp-reply-delay=tag:client_is_a_pi,2

interface=eth0
bind-dynamic
server=8.8.8.8
domain-needed
bogus-priv
dhcp-range=192.168.2.2,192.168.2.100,12h


When i do so however, dnsmasq does not attribute ip addresses to my PS2.
They also set eth0 like so :
sudo iptables -F
sudo iptables -t nat -F
sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
sudo ifconfig eth0 192.168.2.1 netmask 255.255.255.0

# Remove default route created by dhcpcd
sudo ip route del 0/0 dev eth0 &> /dev/null


On the other side, the PS2 is configured like that :


The SMB share is configured like so in smb.conf
[global]
workgroup = WORKGROUP
usershare allow guests = yes
map to guest = bad user
allow insecure wide links = yes
[share]
Comment = Pi shared folder
Path = /share
Browseable = yes
Writeable = Yes
only guest = no
create mask = 0777
directory mask = 0777
Public = yes
Guest ok = yes
force user = pi
follow symlinks = yes
wide links = yes


Then i connect the PS2 and raspberry pi together. However, it complains that it can't find the SMB share.
(The SMB share works when the raspberry pi is connected to my router but the latency is so high that it's not worth using over USB when doing it like so)

What am i doing wrong ?

gameblabla

Well i also tried to do my own distro with buildroot from scratch but this time it won't detect my SMB share...
Great.

I'll pay 10€ whoever can help set this up on Void linux musl for the raspberry pi 2/3 and share me the image file.
Because i'm tired of figuring out and i can't get this to work. (i must mention that pi share psx does work but boots up way slower)

Powered by EzPortal