Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Install Latest Samba (Compile from Source)
- svn co svn://svnanon.samba.org/samba/trunk samba
- #Verifying Samba PGP Signature
- #------------------------------
- wget http://us1.samba.org/samba/ftp/samba-3.0.20.tar.asc
- wget http://us1.samba.org/samba/ftp/samba-pubkey.asc
- gpg --import samba-pubkey.asc
- #and verify the Samba source code integrity with:
- #--------------------------------------------------
- gzip -d samba-3.0.20.tar.gz
- gpg --verify samba-3.0.20.tar.asc
- #Building the Binaries
- #------------------------
- cd samba-3.0.20/source
- sudo ./autogen.sh
- sudo ./configure --help
- sudo ./configure [... arguments ...]
- make
- make install
- make installbin
- make revert
- #Starting from inetd.conf
- #Note:The following will be different if you use NIS, NIS+, or LDAP to distribute services maps.
- #Look at your /etc/services. What is defined at port 139/tcp? If nothing is defined, then add a line #like this:
- #netbios-ssn 139/tcp
- #Similarly for 137/udp, you should have an entry like:
- #netbios-ns 137/udp
- #Next, edit your /etc/inetd.conf and add two lines like this:
- #netbios-ssn stream tcp nowait root /usr/local/samba/sbin/smbd smbd
- #netbios-ns dgram udp wait root /usr/local/samba/sbin/nmbd nmbd
- Restart inetd, perhaps just send it a HUP, like this:
- #Restart inetd
- killall -HUP inetd
- #Alternative: Starting smbd as a Daemon
- ##To start the server as a daemon, you should create a script something like this one, perhaps calling #it startsmb.
- #!/bin/sh
- /usr/local/samba/sbin/smbd -D
- /usr/local/samba/sbin/winbindd -D
- /usr/local/samba/sbin/nmbd -D
- ##Make it executable with chmod +x startsmb.
- #You can then run startsmb by hand or execute it from /etc/rc.local.
- #To kill it, send a kill signal to the processes nmbd and smbd.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement