Below is the main installation process of samba under Ubuntu6.06LTS for source code compilation and installation. I used Ubuntu for the first time. When I first installed it, there was no gcc compiling environment. Depressed for half a day. It took a lot of time to figure out this process. There may be some problems, but after such installation, I shared files with windows. 1. Install the GCC compiling environment, place the installation CD into the optical drive, and turn off the new software package manager. Enter sudoapt-getbuild-depgcc.
Below is the main installation process of samba in the source code compilation and installation of Ubuntu 6.06 LTS. I used Ubuntu for the first time. When I first installed it, there was no gcc compiling environment. Depressed for half a day. It took a lot of time to figure out this process. There may be some problems, but after such installation, I shared files with windows.
1. Install the GCC compiling environment
Put the installation CD into the optical drive and turn off the new software package manager.
Input: sudo apt-get build-dep gcc
Or sudo apt-get install build-essential
Or sudo apt-get install gcc
The three are always successful.
2. Download and decompress samba
Download samba (www.samba.org) from the Internet)
My next is the samba-3.0.23a.tar.gz source code file.
Tar-zxvf samba-3.0. 23a.tar.gz unzip to get the samba-3.0.23a
3. Compile and install samba
Cd to the source folder.
Input
./Configure
Make
Sudo make install
Sudo make installbin
The default installation path is/usr/local/samba.
If you want to change the installation location, you can:./configure-prefix = [path]. For details, see./configure -- help.
4. Install the smb. conf file
The/etc/samba file in Ubuntu 6.06 should contain the smb. conf file. If not, you can find it in the samba-3.0.23a/packaging. Copy it to/usr/local/samba/lib.
Enter sudo cp/etc/samba/smb. conf/usr/local/samba/lib