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. Mybatis 的分页插件PageHelper-4.1.1的使用

    Mybatis 的分页插件 PageHelper 项目地址:http://git.oschina.net/free/Mybatis_PageHelper  文档地址:http://git.oschin ...

  2. 【CDN】域名无法访问,ping不到,tracert不到

    背景:香港服务器,CDN服务商:Incapsula 1.首先猜测,域名是否被墙 原因:ip可以直接访问到网站,其他域名指向服务器也可访问 排查:1)首先理解,怎样才算被墙:大陆外可以通过该域名访问,大 ...

  3. Sqlserver_In、exists使用

    in是把外表和内表作hash 连接,而exists 是对外表作loop 循环,每次loop 循环再对内表进行查询. 一直以来认为exists 比in 效率高的说法是不准确的.如果查询的两个表大小相当, ...

  4. Ajax 完整教程 (转)

    http://www.cnblogs.com/Garden-blog/archive/2011/03/11/1981778.html

  5. linux下tftp安装与设置

    在学习linux+arm开发的时候,tftp和NFS是必不可少的环境.这里总结一下自己安装和使用tftp的一些经验,做个备忘. 一.tftp服务原理 tftp(trivial file transfe ...

  6. linux下动态链接库.so文件 静态链接库.a文件创建及使用

    转摘网址为:http://www.cnblogs.com/fengyv/archive/2012/08/10/2631313.html Linux下文件的类型是不依赖于其后缀名的,但一般来讲:    ...

  7. 【转】 Linux进程间通信

    一.进程间通信概述进程通信有如下一些目的:A.数据传输:一个进程需要将它的数据发送给另一个进程,发送的数据量在一个字节到几M字节之间B.共享数据:多个进程想要操作共享数据,一个进程对共享数据的修改,别 ...

  8. Js作用域链及变量作用域

    要理解变量的作用域范围就得先理解作用域链 用var关键字声明一个变量时,就是为该变量所在的对象添加了一个属性. 作用域链:由于js的变量都是对象的属性,而该对象可能又是其它对象的属性,而所有的对象都是 ...

  9. alert与console.log

    1.alert在页面中弹出 console.log是在控制台显示 例子 var aa="Silence"; alert(typeof(aa)); console.log(typeo ...

  10. 《javascript高级程序设计》第八章 The Browser Object Model

    8.1 window 对象 8.1.1 全局作用域 8.1.2 窗口关系及框架 8.1.3 窗口位置 8.1.4 窗口大小 8.1.5 导航和打开窗口 8.1.6 间歇调用和超时调用 8.1.7 系统 ...