Sponsored Content
Full Discussion: Samba pre-install questions.
Top Forums UNIX for Dummies Questions & Answers Samba pre-install questions. Post 302348622 by fguy on Friday 28th of August 2009 06:58:59 PM
Old 08-28-2009
Samba pre-install questions.

Greetings, I hope this is the right forum. I am looking to install Samba on my Linux box on my home network. I'm pretty sure I can deal with the how, I'm just not certain of the what.

ok I'm using Debian lenny with no GUI. I have apt working and I've successfully installed and used one package (ssh).

for now all I need is an easy way to transfer files between my Windows box and my Linux box, in as simple a way as possible. Sometime down the road I will look at simulating a professional network environment.

1. It is my understanding that there is only one package to download and install, presumably by apt-get install samba. This gives you what you need to have linux shares accessible to Windows and Windows shares accessible to Linux. Naturally the configuration for each is different.

2. I am using Network - Debian Wiki as a reference. I see there are various steps such as building a Linux Domain, and LDAP this and that. I was hoping someone could clarify what is the bare minimum needed to setup an easy file transfer mechanism such as I descibed. Does this require a domain and LDAP?

Like I said, it's the what rather than the how I need help with

thanks.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

samba questions (password conversion to blowfish and is it wise to sync the useraccou

i stumbled upon something that gave some nice instructions on how to convert FreeBSD passwords from md5 to blowfish. it was simple and straight forward and it worked. i'm running samba on the machine. now i know the tutorial i was following had something where a user's samba and machine... (1 Reply)
Discussion started by: xyyz
1 Replies

2. AIX

Install Samba

Hello Can someone help how to install samba on aix 5.3, I go to tha samba page and i download two files opt-samba-base.tar.gz opt-samba-3.0.28-AIX5.tar.gz and I read the readme file but there is a file that miss and I dont know if I need to do this necessary "You can now verify... (9 Replies)
Discussion started by: lo-lp-kl
9 Replies

3. AIX

Samba install on AIX 5.2

Ok I'm still trying to figure AIX out, I was used to HP-UX until they switched our server to AIX in February and all of the other servers are Linux which appears to be much more friendly. AIX is, well, NOT. I am trying to install Samba so I can copy files onto a Windows SQL server - that's all... (5 Replies)
Discussion started by: rball
5 Replies

4. UNIX for Advanced & Expert Users

Samba: Install w/o Root

I've had some recent success compiling some simple programs to my home directory without root access (wget, screen, less). My Question is this: Can I compile a complex program like Samba WITHOUT root access to my home directory? Or are the multiple library dependencies going to cause an issue?... (2 Replies)
Discussion started by: goldfish
2 Replies

5. Solaris

Samba Compiling questions

OS: Solaris 10 I downloaded a binary from samba.org (3.0.24) I extracted the file and ran the following command: # ./configure --prefix=/usr/sfw --with-configdir=/etc/sfw --with-winbind Now I am trying to understand the compile process but I can't find many answers online ... (10 Replies)
Discussion started by: Keepcase
10 Replies

6. Red Hat

how can i know what arguments are passed to a pre install rpm script?

hi, i have an rpm, and i am looking at the presinstall script. i can see it takes in an argument, but what i do not know is how this argument is passed to the script? is there something that calls the preinstall script? i thought the preinstall script was the first thing executed. thanks (2 Replies)
Discussion started by: JamesByars
2 Replies

7. Red Hat

RHEL Kickstart Pre-Install script

Hey all, I'm not sure if this possible but I had tested it out manually during the installation (placed a sleep in the pre-installation) and it worked. I'm trying to have a pexpect script to log into the mysql and input a new row for the pre-installation, which will end up displaying on a web... (1 Reply)
Discussion started by: karljbaker
1 Replies

8. Solaris

Two simple questions about Solaris DCHP and Samba

I have two simple questions First is :can dhcp server NATIVE of solaris perform dhcp updates of bind via dnssec like dchpd on linux? Second: Is possible to build a pdc with samba and iplanet ldap server?Or is better with openldap? I never found howto or discussions about iplanet server. Thanks (0 Replies)
Discussion started by: Linusolaradm1
0 Replies

9. Solaris

Samba 3.6.5 install problems

Hi all, I'm trying to update my samba 3.5.10 to 3.6.5 due to security CVE issued with 3.5. I downloaded and unzipped, did the make and make install and the ./configure. I didn't use any changes to it and it said it installed correctly added it to my path and it looks like it's operating... (6 Replies)
Discussion started by: mattymatt79
6 Replies

10. Solaris

samba error after install with pkgadd

Hello this is samiulla. i face this issue. i installed samba with pkgadd after i install i add paths for that. -bash-3.00# echo $PATH /usr/sbin:/usr/bin:/usr/ccs/bin:/usr/local/samba/sbin:/usr/local/samba/bin/ -bash-3.00# when enter this commad smbd -D i got this error smbd -D... (3 Replies)
Discussion started by: samiulla
3 Replies
SBUILD-SETUP(7) 						   Debian sbuild						   SBUILD-SETUP(7)

NAME
sbuild-setup - sbuild setup procedure DESCRIPTION
sbuild uses chroots to build packages within, to provide a minimal and consistent build environment. This man page describes the procedure to create a chroot by hand using debootstrap. These are only guidelines; depending upon the setup required, several of the steps may be omitted entirely. QUICK START
Simply running sbuild-createchroot will perform all the setup steps described in detail below. See the section "sbuild-createchroot" below, as well as sbuild-createchroot(1). CHROOT SETUP
This guide sets up a lenny chroot on a powerpc machine. Adjust the names for other suites and architectures. 1. Run debootstrap to create the chroot # mkdir -p /srv/chroot/lenny The author has each chroot as a separate LVM logical volume (LV). Create and mount an LV here if required: # lvcreate -L 4G -n lenny_chroot -Z y volume-group Add to /etc/fstab and mount (see next section for full fstab example). Finally, run debootstrap to create the chroot: # debootstrap --variant=buildd lenny /srv/chroot/lenny http://ftp.uk.debian.org/debian/ 2. Set up additional mounts An example /etc/fstab: /dev/volume-group/lenny_chroot /srv/chroot/lenny ext3 defaults 0 2 /dev/pts /srv/chroot/lenny/dev/pts none rw,bind 0 0 tmpfs /srv/chroot/lenny/dev/shm tmpfs defaults 0 0 proc /srv/chroot/lenny/proc proc defaults 0 0 /dev/volume-group/home /srv/chroot/lenny/home ext3 quota 0 0 /tmp /srv/chroot/lenny/tmp none rw,bind 0 0 /etc/passwd /srv/chroot/lenny/etc/passwd none ro,bind 0 0 /etc/shadow /srv/chroot/lenny/etc/shadow none ro,bind 0 0 /etc/group /srv/chroot/lenny/etc/group none ro,bind 0 0 /etc/gshadow /srv/chroot/lenny/etc/gshadow none ro,bind 0 0 /etc/resolv.conf /srv/chroot/lenny/etc/resolv.conf none ro,bind 0 0 If the bind mountpoints don't exist in the chroot, touch them: # touch /srv/chroot/lenny/etc/resolv.conf Next, mount them all. Depending on your kernel version and security considerations, you may wish to do this part slightly differently. With a Linux kernel, at least version 2.6 is required for bind mounts, and devpts (CONFIG_UNIX98_PTYS) for /dev/pts. Other guides recommend copying the files, but this method keeps them up-to-date at no cost. If using sbuild with schroot, passwd, shadow, group, gshadow and resolv.conf can be updated automatically at the start of each build, so no action is required here. schroot can also automatically mount all of the extra filesystems, so all the other mounts may be omitted. To disable networking, don't bind mount /etc/resolv.conf. This will prevent APT from working inside the chroot, but prevents package building from having working network access (no nameservers). 3. Edit sources.list Create or edit /srv/chroot/lenny/etc/apt/sources.list, and add all the APT sources required to obtain binary and source packages for your chosen distribution: deb http://security.debian.org/ lenny/updates main deb-src http://security.debian.org/ lenny/updates main deb http://ftp.uk.debian.org/debian/ lenny main deb-src http://ftp.uk.debian.org/debian/ lenny main 4. Configure dchroot or schroot This is entirely optional, but will make the chroot environment easier to access and administer. For dchroot, add the following line to /etc/dchroot.conf: lenny /srv/chroot/lenny For schroot, add a group to /etc/schroot/schroot.conf (or a new file /etc/schroot/chroot.d/lenny), for example: [lenny] type=directory description=Debian lenny (stable) location=/srv/chroot/lenny priority=2 groups=root,sbuild root-groups=sbuild aliases=stable run-setup-scripts=true run-session-scripts=true For sudo, add a symbolic link to the directory /etc/sbuild/chroot, for example: # mkdir -p /etc/sbuild/chroot # ln -s /srv/chroot/lenny /etc/sbuild/chroot/lenny 5. Log into chroot # dchroot -c lenny or $ schroot -c lenny -u root 6. Set up packages for sbuild While running as root inside the chroot: # apt-get update # apt-get dist-upgrade # apt-get install debconf # dpkg-reconfigure -plow debconf Answer the debconf questions as follows: interface choose 6/Noninteractive priority choose 1/Critical You only need to run dpkg-reconfigure if you weren't asked the questions during the debconf install. Next, install the packages required for building packages: # apt-get install debfoster fakeroot build-essential # apt-get install makedev # cd /dev/ # /sbin/MAKEDEV generic # touch /etc/mtab For some security, we don't bind mount /dev, so it can't access e.g. USB devices 7. sbuild setup While running as root inside the chroot: # mkdir /build # chown root:sbuild /build # chmod 02775 /build # mkdir -p /var/lib/sbuild/srcdep-lock # chown -R root:sbuild /var/lib/sbuild # chmod -R 02775 /var/lib/sbuild Note that when using sbuild with schroot, this setup is done at the start of each build, so is not required here. 8. Finished Congratulations! You should now have a fully configured and operational chroot. SBUILD-CREATECHROOT This script will automatically perform a number of the steps described above, including: o Running debootstrap. o Setting up APT sources in /etc/apt/sources.list. o Setting up a minimal /etc/passwd o Setting up /build and /var/lib/sbuild with appropriate ownership and permissions. After it has done this, you do still need to do some manual setup, completing the steps it missed out above, for example. USER SETUP
1. Group membership As root, run: # sbuild-adduser user Alternatively, add the user to the sbuild group by hand: # adduser user sbuild 2. ~/.sbuildrc Configure the user's ~/.sbuildrc: $ cp /usr/share/doc/sbuild/examples/example.sbuildrc ~user/.sbuildrc Edit to set the correct mail address to send log files to, and the correct maintainer name and/or uploader name. 3. Build directories Create directories to contain packages and log files. (.sbuildrc may have configured different locations; the default build directory is the current directory, and the default $log_dir is ~/logs): $ mkdir ~/logs 4. sudo setup This step not required if schroot is used (which is the default, set in sbuild.conf). If using sbuild with sudo (chroot_mode "split"), sudo needs configuring to give the user permission to install and remove packages in the chroot, which requires root privileges. Add the following lines to /etc/sudoers: username ALL=NOPASSWD: ALL Defaults:username env_keep+="APT_CONFIG DEBIAN_FRONTEND SHELL" where username is the name of the user who will run sbuild. 5. Finished The user should now be able to run sbuild. $ sbuild ... AUTHORS
Roger Leigh. COPYRIGHT
Copyright (C) 2005-2008 Roger Leigh <rleigh@debian.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. SEE ALSO
debootstrap(1), sbuild(1), sbuild-adduser(1), sbuild-createchroot(1). Version 0.63.2 18 Aug 2012 SBUILD-SETUP(7)
All times are GMT -4. The time now is 02:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy