![]() ![]() Please share any thoughts using the comments! Also, since Samba 4 doesn't require anything that's not in Ubuntu 12.04 LTS, it might be wise to stick to this release until another LTS is released. Install -o root -g root -m 755 -d /var/log/sambaĬopy this file to /etc/init/nf and you can use service samba4 start to start Samba 4.Īll of these steps will probably apply to Ubuntu 12.10 as well, but I haven't verified yet. Install -o root -g root -m 755 -d /var/run/samba Start on (local-filesystems and net-device-up) On the Samba 4 InitScript page there's a script listed that will work just fine, I copied it here for reference:ĭescription "SMB/CIFS File and Active Directory Server" There is one important final step, and that's to create an init file. Install build utilities, Samba dependenciesĪfter these steps you can either follow the Samba 4 documentation to provision a new domain or join a domain, or copy the necessary files from your old domain controller onto this one if you're replacing your domain controller.Make a directory to store the samba source in.I've omitted all of the output, since the process was so easy. Libattr1-dev python2.7-dev libpam0g-dev libldap2-dev $ sudo apt-get install build-essential pkg-config libkrb5-dev libacl1-dev \ Now onto the actual instructions (assumes a clean 12.04 LTS basic Ubuntu server install): I actually switched it to the IP of the primary DC as well, and stopped the old primary DC because the new one was working without any issues at all. ![]() So yesterday I did my first attempt at building Samba from source, which went so well that I did it again today, on a fresh new Ubuntu 12.04 LTS install. Then again, /usr/local/ doesn't need to stay empty, and my domain controllers are just that domain controllers. ![]() I don't like this approach much, because I prefer having all packages handled by the package manager. Recently I have been wondering if it would be a good idea to build Samba 4 from source instead. The Samba team has actually done a great job at releasing a stable version for Samba 4, but I haven't seen anyone offering prebuilt packages for Ubuntu. ![]() However, the version(s) in use date back to what was found in Ubuntu releases available at install time. At the office we've been running Samba 4 for quite a while already. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |