Skip to content

Instantly share code, notes, and snippets.

@carlosefr
Last active January 3, 2026 22:10
Show Gist options
  • Select an option

  • Save carlosefr/3564a15ed4a544d07ee148e826205f16 to your computer and use it in GitHub Desktop.

Select an option

Save carlosefr/3564a15ed4a544d07ee148e826205f16 to your computer and use it in GitHub Desktop.
Samba configuration to serve files to a PlayStation 2 running OPL
#
# Samba configuration to serve files from an original Raspberry Pi model B
# to my PlayStation 2 with a broken optical drive controller (running OPL).
#
# This configuration is hopelessly insecure, but that's OK if the Raspberry Pi
# is directly connected to the PS2. However, if the Pi is on a LAN, everything
# else should be blocked from reaching the SMB port(s).
#
[global]
server role = standalone
server min protocol = NT1
server signing = disabled
unix extensions = no
load printers = no
invalid users = root
map to guest = Bad User
pid directory = /run/samba
logging = syslog@1
# Prevent file locking errors (usually on VMC files) when
# the console is reset and the same game is loaded again:
keepalive = 3
# Enabling the "sendfile" syscall increases the packet rate significantly.
use sendfile = yes
# Disabling Asynchronous I/O slightly increases the packet rate without
# sendfile, so it doesn't hurt to do it even if it sounds redundant...
aio read size = 0
aio write size = 0
# Enabling the IPTOS_LOWDELAY socket option fixes FMV stuttering that might
# appear when monitoring the network interface (e.g. with "iptraf -d eth0").
# I guess it avoids SMB packets from being deprioritized behind SSH packets.
socket options = IPTOS_LOWDELAY TCP_NODELAY
#
# An SD card formatted as exFAT is mounted at the shared path. Since we're using
# unauthenticated (guest) access here, the files and directories must be owned
# by "nobody:nogroup". This can be done in "/etc/fstab", for example:
#
# LABEL=PS2 /srv/smb/ps2 exfat defaults,auto,nodev,nosuid,noexec,noatime,dmask=002,fmask=113,uid=65534,gid=65534 0 0
#
[PS2]
path = /srv/smb/ps2/OPL
comment = PlayStation 2 OPL
read only = no
create mask = 0644
guest ok = yes
guest only = yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment