Ubuntu 6.06lts source code compilation and installation samba

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.