Linux Lab and Project latest

Source: Internet
Author: User
Tags xsl nameserver kinit dns forwarder

Samba:start Your Samba service

Netlogon syslog

Vi/usr/local/samba

Vi/usr/samba/etc/smb.conf

Smbclient//localhost/netlogon-uadministrator% "supinfo-c" ls:

Ls-al

Vi/etc/resolv.conf

Add these info in the file

Domain nbouaziz.net

Search Nbouaziz.net

NameServer 192.168.1.10

cp/usr/local/samba/share/setup/krb5.conf/etc/

Vi/etc/krb5.conf:

Defoult_realm = Nbouaziz.net

Dns_lookup_realm; False

Dns_lookup_:

vi/etc/

vi/etc/

Vi/usr/local/samba/etc/smb.conf

Host-t SRV _ldap._tcp.nvouaziz.net

Samba_tool--help

Samba_dns--help

Kinit [email protected](if not work, need change password)

Password:supinf0

Samba-tool--help

Samba-tool User--help

Vi/etc/ntp.conf

Samba-tool User--help

Setexpiry

Samba-tool User Setexpiry-h | Less

Samba-tool User Setexpiry--noexpiry Administrator

Vi/etc/hosts

vi/etc/hostname/

Vi/etc/network/interfaces

Address

Netmask

Gateway

Vi/etc/resolv.cong

NameServer 114.114.114.114

Apt-get Update

Apt-get Dist-upgrade

Apt-get Update

Apt-get Install build-essential libacl1-dev libattr1-dev libblkid-dev libgnutls-dev libreadline-dev Python-dev Python-dnspython gdb pkg-config libpopt-dev libldap2-dev dnsutils libbsd-dev attr ACL krb5-user docbook-xsl libcups2-dev L Ibpam0g-dev ntpdate ntp-y

Tar xvzdf samba_latest.tar.gz

CD samba-4.2.1

./configure--enable-debug--enable-selftest

Make

Make install

echo "Export path= $PATH:/usr/local/samba/sbin:/usr/local/samba/bin" >>/ROOT/.BASHRC

Source/root/.bashrc

Vi/etc/fstab

Add:/dev/sda1/ext4 defaults,user_xattr,acl,barrier=1 1 1

Init 6

Take a snapshot

Samba-tool Domain Provision--use-rfc2307--interactive

: 114.114.114.114

Password:supinf0

Vi/etc/network/interfaces

Add:dns-nameservers 192.168.1.10

Dns-search Nbouaziz.net (it depends on your own VM)

Vi/etc/resolv.conf

Domain nbouaziz.net

Search Nbouaziz.net

NameServer 192.168.1.10 (it depends on your own VM)

Vi/usr/local/samba/etc/smb.conf

Make sure (DNS forwarder = 114.114.114.114 or your own IP?)

cp/usr/local/samba/share/setup/krb5.conf/etc/

Vi/etc/krb5.conf

Make sure (Default_realm = uppercase (domain))

Init 6

Samba (start service samba)

Host-t SRV _ldap._tcp.nbouaziz.net

kinit [email protected]

Samba-tool User Setexpiry--noexpiry Administrator

Init 0

Work on GPOs with Samba-tools

Dhcp

Apt-get Update

Apt-get Install Dhcp3-server

Vi/etc/dhcp/dhcp.conf

Cp/etc/dhcp/dhcplconf/etc/dhcp/dhcp.conf.old

Vi/etc/dhcp/dhcp.conf

Subnet

Range 192.168.1.50 192.168.0.200

Option

Option

Option

/etc/init.d/isc-dhcp-server restart

cd/etc/init.d/

/etc/init.d/isc-dhcp-server status

ls/etc/init.d/

Remote Server Administration Tools for Windows 7 with Service pack

Cd/usr/local/samba/private

Cat Dns_update_cache

Ls

Sanba_dnsupdate

Cd..

Ls

CD Share

CD Setup

VI provision_computers_add.ldif

Each time you create a zone, does this:

Kinit [email protected] :

Samba-tool DNS zonecreate SRV 1.168.192 in-addr-arpa--useername=administrator

Samba-tool User Add test

vi/etc/passwd

Vi/usr/local

Vi/usr/local/samba/private/smbd.tmp.msg

Vi/usr/local/samba/private

Samba

PS aux | grep Samba

Samba-tool User Add Test1

/usr/local/samba/share/setup/: LDIF

Rcp

Scp

Sftp

Ssh

Ssh-add

Ssh-agent

Ssh-keygen

Ssh_config

Mans LS

Man-a Intro

Www.howtoforge.com:provides user-friendly Linux tutorials (mainly samba3)

SSH [email protected]

191 ssh [email protected]

192 SSH 192.168.145.10

193 ssh [email protected]

194 ssh [email protected]

195 Ping 192.168.145.10

196 ls

197 CD desktop/

198 ls

199 SCP samba-latest.tar.gz [email protected]:/root/

SSH [email protected]

201 History

[Email protected]:~# history

1 halt

2 history

3 exit

4 Halt

5 init 0

6 Ifconfig

7 Init 0

8 vi/etc/resolv.conf

9 vi/etc/network/interfaces

Ten ifup Eth0

Ifdown eth0

If

Ifconfig

14/etc/init.d/networking restart

Ifconfig

Ifdown eth0

17/etc/init.d/networking restart

Vi/etc/network/interfaces

Init 6

Ifconfig

Apt-get Update

Vi/etc/apt/sources.list

Apt-get Update

ls

Apt-get Dist-upgrade

0 Init

Vi/etc/hosts

Vi/etc/hostname

Vi/etc/network/interfaces

Vi/etc/hosts

Ifconfig

Vi/etc/hosts

Vi/etc/hostname

Vi/etc/network/interfaces

Vi/etc/resolv.conf

Approx. ifconfig

Panax Notoginseng vi/etc/resolv.conf

Vi/etc/network/interfaces

Vi/etc/resolv.conf

Apt-get Update

Apt-get Dist-upgrade

Apt-get Update

Ifconfig

Apt-get Install build-essential libacl1-dev libattr1-dev libblkid-dev libgnutls-dev libreadline-dev python-dev python -dnspython gdb pkg-config libpopt-dev libldap2-dev dnsutils libbsd-dev attr ACL krb5-user docbook-xsl libcups2-dev libpam0 G-dev ntpdate ntp-y

Apt-get Update

Apt-get Install build-essential libacl1-dev libattr1-dev libblkid-dev libgnutls-dev libreadline-dev python-dev python -dnspython gdb pkg-config libpopt-dev libldap2-dev dnsutils libbsd-dev attr ACL krb5-user docbook-xsl libcups2-dev libpam0 G-dev ntpdate ntp-y

Apt-get Install build-essential libacl1-dev libattr1-dev libblkid-dev libgnutls-dev libreadline-dev python-dev python -dnspython gdb pkg-config libpopt-dev libldap2-dev dnsutils libbsd-dev attr ACL krb5-user docbook-xsl libcups2-dev libpam0 G-dev ntpdate ntp-y

Apt-get Update

Apt-get Dist-upgrade

Apt-get Install build-essential libacl1-dev libattr1-dev libblkid-dev libgnutls-dev libreadline-dev python-dev python -dnspython gdb pkg-config libpopt-dev libldap2-dev dnsutils libbsd-dev attr ACL krb5-user docbook-xsl libcups2-dev libpam0 G-dev ntpdate ntp-y

Wuyi Tar xvzdf samba_latest.tar.gz

Ifconfig

Apt-get Update

Apt-get Dist-upgrade

Apt-get Install build-essential libacl1-dev libattr1-dev libblkid-dev libgnutls-dev libreadline-dev python-dev python -dnspython gdb pkg-config libpopt-dev libldap2-dev dnsutils libbsd-dev attr ACL krb5-user docbook-xsl libcups2-dev libpam0 G-dev ntpdate ntp-y

History

Apt-get Dist-upgrade

Apt-get Update

Vi/etc/resolv.conf

Apt-get Update

Apt-get Install build-essential libacl1-dev libattr1-dev libblkid-dev libgnutls-dev libreadline-dev python-dev python -dnspython gdb pkg-config libpopt-dev libldap2-dev dnsutils libbsd-dev attr ACL krb5-user docbook-xsl libcups2-dev libpam0 G-dev ntpdate ntp-y

Vi/etc/hosts

Vi/etc/hostname

Vi/etc/resolv.conf

Vi/etc/resolv.conf

$ ls

Vi/etc/network/interface

Vi/etc/network/interfaces

Cd/usr/local/samba/vin

0 Init

ls

Cleqr

Clear

The. ls

Xvzf Tar samba-latest.tar.gz

CD SAMBA-4.2.1/

The LS

/configure--enable-debug--enable-selftest

Make

Make install

Bayi echo "Export path= $PATH:/usr/local/samba/sbin:/usr/local/samba/bin" >>/ROOT/.BASHRC

Source/root/.bashrc

Etc/fstab VI

cd/etc/f

Cd/etc/fsdev

Vi/etc/sfdev

Vi/etc/fstab

Init 6

The 6 init

0 Init

Linux Lab and Project latest

Related Article

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.