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 administrator@bouaziz.net(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 libpam0g-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 administrator@domain

samba-tool user setexpiry --noexpiry administrator

init 0

work on GPO 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 Package

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, do this :

kinit administrator@jilili.net :

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

man ls

man -a intro

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

190  ssh root@192.168.145.10

191  ssh root@192.168.145.10

192  ssh 192.168.145.10

193  ssh root@192.168.145.10

194  ssh root@192.168.145.10

195  ping 192.168.145.10

196  ls

197  cd Desktop/

198  ls

199  scp samba-latest.tar.gz root@192.168.145.10:/root/

200  ssh root@192.168.145.10

201  history

root@server:~# 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

10  ifup eth0

11  ifdown eth0

12  if

13  ifconfig

14  /etc/init.d/networking restart

15  ifconfig

16  ifdown eth0

17  /etc/init.d/networking restart

18  vi /etc/network/interfaces

19  init 6

20  ifconfig

21  apt-get update

22  vi /etc/apt/sources.list

23  apt-get update

24  ls

25  apt-get dist-upgrade

26  init 0

27  vi /etc/hosts

28  vi /etc/hostname

29  vi /etc/network/interfaces

30  vi /etc/hosts

31  ifconfig

32  vi /etc/hosts

33  vi /etc/hostname

34  vi /etc/network/interfaces

35  vi /etc/resolv.conf

36  ifconfig

37  vi /etc/resolv.conf

38  vi /etc/network/interfaces

39  vi /etc/resolv.conf

40  apt-get update

41  apt-get dist-upgrade

42  apt-get update

43  ifconfig

44  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 libpam0g-dev ntpdate ntp -y

45  apt-get update

46  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 libpam0g-dev ntpdate ntp -y

47  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 libpam0g-dev ntpdate ntp -y

48  apt-get update

49  apt-get dist-upgrade

50  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 libpam0g-dev ntpdate ntp -y

51  tar xvzdf samba_latest.tar.gz

52  ifconfig

53  apt-get update

54  apt-get dist-upgrade

55  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 libpam0g-dev ntpdate ntp -y

56  history

57  apt-get dist-upgrade

58  apt-get update

59  vi /etc/resolv.conf

60  apt-get update

61  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 libpam0g-dev ntpdate ntp -y

62  vi /etc/hosts

63  vi /etc/hostname

64  vi /etc/resolv.conf

65  vi /etc/resolv.conf

66  ls

67  vi /etc/network/interface

68  vi /etc/network/interfaces

69  cd /usr/local/samba/vin

70  init 0

71  ls

72  cleqr

73  clear

74  ls

75  tar xvzf samba-latest.tar.gz

76  cd samba-4.2.1/

77  ls

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

79  make

80  make install

81  echo "export PATH=$PATH:/usr/local/samba/sbin:/usr/local/samba/bin" >> /root/.bashrc

82  source /root/.bashrc

83  vi etc/fstab

84  cd /etc/f

85  cd /etc/fsdev

86  vi /etc/sfdev

87  vi /etc/fstab

88  init 6

89  init 6

90  init 0

Linux Lab and project latest的更多相关文章

  1. 与一线Linux嵌入式开发project师的对话

    转:与一线Linux嵌入式开发project师的对话 陈project师一直做Linux的嵌入式开发.作为在开发一线的project师.他对非常多问题的看法可能更切合实际需求,于是,通过邮件.就嵌入式 ...

  2. 在虚拟机上配置linux lab的相关经验

    最近一直在研究怎样在嵌入式开发板上移植linux嵌入式系统,但是不太想花费太多钱购买开发板.然后在网上搜索相关的arm模拟器.有qemu,skyeye,armulator等,在按照网上教程一步一步实践 ...

  3. Linux Lab

    ssh vi /etc/apt/sources.list su ssh username@ipaddress eg : ssh root@172.16.247.143 实验一 fdisk /dev/s ...

  4. linux测试工程介绍(Linux Test Project)

    http://ltp.sourceforge.net/ Linux Test Project, 后台很硬,由SGI™ 发起, IBM维护,所以质量有保障. 里面介绍了很多工具,对于一般的基准测试应该是 ...

  5. [fw]linux测试工程介绍(Linux Test Project)

    http://ltp.sourceforge.net/ Linux Test Project, 后台很硬,由SGI™ 发起, IBM维护,所以质量有保障. 里面介绍了很多工具,对于一般的基准测试应该是 ...

  6. Choosing a Linux Tracer ------Brendan Gregg's Blog

    home Choosing a Linux Tracer (2015) 08 Jul 2015 Linux Tracing is Magic! A tracer is an advanced perf ...

  7. LVS : Linux Virtual Server 负载均衡,集群,高并发,robust

    1 LVS : Linux Virtual Server http://www.linuxvirtualserver.org/ http://www.linuxvirtualserver.org/zh ...

  8. linux定制

    http://cc.bingj.com/cache.aspx?q=OpenEmbedded+clfs&d=4706495287069596&mkt=zh-CN&setlang= ...

  9. VMware中linux硬盘空间不足的解决方法

    相信很多人都和我一样是利用虚拟机安装linux的,在玩转linux的时候,可能就会遇到系统提示磁盘空间不足的情况.由于VMware中当初装系统时的设置的最大磁盘容量是不可以动态修改的,所以为我们使用带 ...

随机推荐

  1. kafka常用操作命令

    1.启动Kafka,其中">>/dev/null"表示将日志信息输出到"黑洞",其中"2>&1"表示将错误信息和前 ...

  2. hiho1093_spfa

    题目 SPFA模板题,题目中数据可能有两个点之间有多条边直接相连,使用 unordered_map< int, unordered_map< int, int>>, 来存储图的 ...

  3. hiho_1041 国庆出游

    题目 给定一棵树,N个节点,N - 1条边.给定m个节点,能否找出一种遍历方法,使得首次到达节点ai的时间小于首次到达节点aj的时间(i < j).且经过的路径上的每条边都最多走两遍 分析 我的 ...

  4. Canu Quick Start(快速使用Canu)

    Canu Quick Start Canu Quick Start PBcR (老版的canu) CA Canu specializes in(专门从事) assembling PacBio or O ...

  5. VB6 GDI+ 入门教程[9] Bitmap魔法(2):数据读写

    本文转自 http://vistaswx.com/blog/article/category/tutorial/page/2 VB6 GDI+ 入门教程[9] Bitmap魔法(2):数据读写 200 ...

  6. _CRT_NONSTDC…与_CRT_SECURE…

    目录 第1章说明    1 1.1 _CRT_NONSTDC_NO_WARNINGS    1 1.2 _CRT_NON_CONFORMING_SWPRINTFS    2 1.3 _CRT_SECU ...

  7. ASP.NET Core文档中Work with Data章节的翻译目录

    作为初学者看了相关的教程,遇到的问题有: 1. 教程不是针对初学者,往往在某一方面教的较深,但并不系统,不适合初学者: 2. 虽然翻译的很顺畅,但是谈了自己较多的开发体会,初学者看着困难,尤其是TOM ...

  8. 编译spock proxy

    今天把spock proxy编译通过并且运行了.大家如果在编译这款类似于MySQL proxy的软件遇到问题时,可以联系我.微信onesoft007

  9. package-info.java文件详解

    欢迎关注我的社交账号: 博客园地址: http://www.cnblogs.com/jiangxinnju/p/4781259.html GitHub地址: https://github.com/ji ...

  10. JavaScript document

    window -- document用于表现HTML页面当前窗体的内容 document,中文"文档" document是BOM中最重要对象之一 document对象是window ...