Disclaimer.
Don't know if this guide works from head to tail.
I've composed it from my remberings. But if you have a little knowledge about linux you should understand if there is anything missing or wrong.
Please tell me, so I could update the how to.
I assume you already installed the basics (steps from other tutorials).
Let's get started...
# Login to the web interface and disable the experimental Samba.
# Uninstall any previous xinetd/samba2/samba3 you might have tried with no succes
# Do not remove xinetd if you might need it !!!
Code:
ipkg remove xinetd
ipkg remove samba2
ipkg remove samba
#I suggest you should go to /opt/etc/init.d and remove any SXXSamba file you might have there (XX is a number)
# Get the better ipkg
Code:
wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ipkg-opt_0.99.163-9_mipsel.ipk
ipkg.sh install ipkg-opt_0.99.163-9_mipsel.ipk
# Get the better uclibc
Code:
wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/uclibc-opt_0.9.28-12_mipsel.ipk
ipkg.sh install uclibc-opt_0.9.28-12_mipsel.ipk
# Update the list using the improved ipkg
# Now upGRADE your system:
Code:
ipkg upgrade
ipkg list_installed
# Create a download folder for Samba, go there and download the latest version (in this case samba_3.0.26a-1_mipsel.ipk)
Code:
mkdir /opt/sambaNew
cd /opt/sambaNew
wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/samba_3.0.26a-1_mipsel.ipk
# Install this version of Samba
Code:
ipkg install samba_3.0.26a-1_mipsel.ipk
# This is my working smb.conf file located in /opt/etc/samba
# edit it with your favorite editor, for example nano
Code:
nano /opt/etc/samba/smb.conf
# Copy paste the green lines below in your smb.conf
[global]
workgroup = YOUR_WORKGROUP
guest account = nobody
security = share
browseable = yes
guest ok = yes
guest only = no
log level = 1
max log size = 100
encrypt passwords = yes
dns proxy = no
netbios name = Working_Samba
server string = Router wl500gPremium working with Vista.
[share1]
path=/opt/share/samba1
read only = no
writeable = yes
browseable = yes
public = yes
# Create the physical shared folder on your partition
Code:
mkdir /opt/share/samba1
#In order to read/write to this folder you have to give rights permissions.
Code:
chmod 777 /opt/share/samba1
# The final command...
Code:
flashfs save && flashfs commit && flashfs enable && reboot
# Not sure if this is required, but in Windows Vista, you should run secpol.msc
# then in the left tree select Local Policies > Security Options
# then in the right open Network security: LAN Manager authentication level
# and select Send LM & NTLM - use NTLMv2 security if negotiated instead of Send NTLMv2 response only.
# Now you should have a working Samba share accesible even from Windows Vista.
Cheers,
Arise