Anticipating your next step: setting up samba so you get network access
to your audio files. Primarily, you'd use this to push new audio files
to the server as you rip them:
(Disclaimer: these instructions are simplistic and may not be best
practices..but they'll get you up and sharing over your network. Again,
linux jocks please chime in.)
Make a backup copy of /etc/samba/smb.conf:
In a terminal, as su:
# cp /etc/samba/smb.conf /etc/samba/smb.conf.org
Edit smb.conf:
# gedit /etc/samba/smb.conf
Use this as a template:
Code:
--------------------
#======================= Global Settings =====================================
[global]
workgroup = YOUR_WORKGROUP_NAME
server string = Squeezebox Audio Server
netbios name = SHORTSRVRNAME
hosts allow = 127. 192.168.1. 192.168.0.
# --------------------------- Logging Options -----------------------------
# logs split per machine
log file = /var/log/samba/log.%m
# max 50KB per log file, then rotate
max log size = 50
# ----------------------- Standalone Server Options ------------------------
security = share
passdb backend = tdbsam
#----------------------------- Name Resolution -------------------------------
dns proxy = no
socket options = TCP_NODELAY
# --------------------------- Printing Options -----------------------------
load printers = yes
cups options = raw
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
[Media]
comment = Squeezebox Server Audio Files
path = /mnt/media
browseable = yes
guest only = yes
writeable = yes
guest ok = yes
[USB]
comment = Squeezebox Server USB Backup Drive Files
path = /mnt/USB
browseable = yes
guest only = yes
writeable = yes
guest ok = yes
--------------------
At the very least, you'll need to fixup the workgroup name in the
above. Save the file and exit gedit.
Make a backup of your firewall file:
# cp /etc/sysconfig/iptables /etc/sysconfig/iptables.org
Configure your firewall to allow samba:
# gedit /etc/sysconfig/iptables
The contents should be close to this:
Code:
--------------------
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 3483 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3483 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 9000 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 9090 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 9092 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
--------------------
These entries allow access over the network via SSH, Squeezeboxes &
Samba.
Configure the firewall to run on startup:
# chkconfig iptables on
Start the firewall:
# service iptables start
Configure the samba service so that it runs on startup:
# chkconfig --level 35 nmb on
# chkconfig --level 35 smb on
Start samba:
# service nmb restart
# service smb restart
If everything has gone well, you ought to be able to browse to your
audio files from any windows machine on your network. Warning: with
this configuration there is NO SECURITY on these shares. All users have
full control over these files. You'll need to study up on samba and
make more changes to smb.conf to add security.
--
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=66800
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix