Operating System - HP-UX
1834497 Members
2639 Online
110067 Solutions
New Discussion

Re: Compiling SAMBA on HP-UX 10.20

 
Joyce Mazur_1
New Member

Compiling SAMBA on HP-UX 10.20

Has anyone successfully compiled SAMBA ver 2.06 on
HPUX 10.20. I have checked the SAMBA list and tried
their solutions but nothing works.

Thanks
Joyce

3 REPLIES 3
Roger Shisler
New Member

Re: Compiling SAMBA on HP-UX 10.20

This is my cheat sheet that I developed for installing 2.0.6 on 10.2 . Some of
it is ripped off from the SAMBA doc, some of it is my own discovery. It's the
best I've got. Good Luck.

roger shisler
shisler@crd.ge.com


ras notes on successful install of samba-2.0.6

1) untar the directory as as non-root user

2) change permissions on all directories to 777
find samba-2.0.6 -type d -exec chmod 777 {} \;

3)log on as root; cd source; and do following to Create Software Depot for
Samba



Create Software Depot for Samba
-------------------------------

1. Compile the source code
The packaging assumes that the final product will install under /opt/samba
and will use /var/opt/samba for var directory. In order to support these
assumptions, run configure as follows:

./configure --prefix /opt/samba --localstatedir /var/opt/samba

Afterwards compile the source code in a standard way.

2. In packaging/HPUX directory run the following command:

$ create_package.sh

3. Use resulting samba.depot file as the software depot for Samba.

Installation Instructions for HP-UX Software Distributor package
----------------------------------------------------------------

1. Run swinstall

You may have copied (swcopy) the depot to the depot server. In such cases
select the depot on server.

In order to install from the depot file, as root enter the following
command:

swinstall -s `pwd`/samba.depot Samba


(note we can use this depot for any hppa1.1 with HPUX 10.2)

2. Create configuration file

Create /opt/samba/lib/smb.conf. You can use one of the examples from
/opt/samba/newconfig/examples as template.

3. Start/stop Samba

The installation provides the boot startup script at /sbin/init.d/samba.
Samba will automatically start at run level 3 and stop during the
transition to run level 2.

You can use this script to manually manipulate Samba. Enter:

# /sbin/init.d/samba start to start Samba
# /sbin/init.d/samba stop to stop Samba

4. Customization

The autostart is controled by editing file /etc/rc.config.d/samba. This
file has the following variables:

SAMBA_START=[0|1] 1 start Samba at boot (default)
0 do not start samba at boot

SAMBA_DEBUG=[0-9] debug level for smbd and nmbd. Default debug
level is 1.

The configuration file is not overwritten at next install while the boot
script (/sbin/init.d/samba) is

5. Manually create /var/opt/var directory

6. To use swat enter in browser


http://hostname:901/
Roger Shisler
New Member

Re: Compiling SAMBA on HP-UX 10.20

This is my cheat sheet that I developed for installing 2.0.6 on 10.2 . Some of
it is ripped off from the SAMBA doc, some of it is my own discovery. It's the
best I've got. Good Luck.

ras notes on successful install of samba-2.0.6

1) untar the directory as as non-root user

2) change permissions on all directories to 777
find samba-2.0.6 -type d -exec chmod 777 {} \;

3)log on as root; cd source; and do following to Create Software Depot for
Samba



Create Software Depot for Samba
-------------------------------

1. Compile the source code
The packaging assumes that the final product will install under /opt/samba
and will use /var/opt/samba for var directory. In order to support these
assumptions, run configure as follows:

./configure --prefix /opt/samba --localstatedir /var/opt/samba

Afterwards compile the source code in a standard way.

2. In packaging/HPUX directory run the following command:

$ create_package.sh

3. Use resulting samba.depot file as the software depot for Samba.

Installation Instructions for HP-UX Software Distributor package
----------------------------------------------------------------

1. Run swinstall

You may have copied (swcopy) the depot to the depot server. In such cases
select the depot on server.

In order to install from the depot file, as root enter the following
command:

swinstall -s `pwd`/samba.depot Samba


(note we can use this depot for any hppa1.1 with HPUX 10.2)

2. Create configuration file

Create /opt/samba/lib/smb.conf. You can use one of the examples from
/opt/samba/newconfig/examples as template.

3. Start/stop Samba

The installation provides the boot startup script at /sbin/init.d/samba.
Samba will automatically start at run level 3 and stop during the
transition to run level 2.

You can use this script to manually manipulate Samba. Enter:

# /sbin/init.d/samba start to start Samba
# /sbin/init.d/samba stop to stop Samba

4. Customization

The autostart is controled by editing file /etc/rc.config.d/samba. This
file has the following variables:

SAMBA_START=[0|1] 1 start Samba at boot (default)
0 do not start samba at boot

SAMBA_DEBUG=[0-9] debug level for smbd and nmbd. Default debug
level is 1.

The configuration file is not overwritten at next install while the boot
script (/sbin/init.d/samba) is

5. Manually create /var/opt/var directory

6. To use swat enter in browser


http://hostname:901/
Dave Wherry_1
Frequent Advisor

Re: Compiling SAMBA on HP-UX 10.20

We also had a great deal of trouble compiling it. We
found it easiest to just download the binaries. A very
good binary package can be downloaded from:
www.thewrittenword.com