Linux Lab and project latest
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的更多相关文章
- 与一线Linux嵌入式开发project师的对话
转:与一线Linux嵌入式开发project师的对话 陈project师一直做Linux的嵌入式开发.作为在开发一线的project师.他对非常多问题的看法可能更切合实际需求,于是,通过邮件.就嵌入式 ...
- 在虚拟机上配置linux lab的相关经验
最近一直在研究怎样在嵌入式开发板上移植linux嵌入式系统,但是不太想花费太多钱购买开发板.然后在网上搜索相关的arm模拟器.有qemu,skyeye,armulator等,在按照网上教程一步一步实践 ...
- Linux Lab
ssh vi /etc/apt/sources.list su ssh username@ipaddress eg : ssh root@172.16.247.143 实验一 fdisk /dev/s ...
- linux测试工程介绍(Linux Test Project)
http://ltp.sourceforge.net/ Linux Test Project, 后台很硬,由SGI™ 发起, IBM维护,所以质量有保障. 里面介绍了很多工具,对于一般的基准测试应该是 ...
- [fw]linux测试工程介绍(Linux Test Project)
http://ltp.sourceforge.net/ Linux Test Project, 后台很硬,由SGI™ 发起, IBM维护,所以质量有保障. 里面介绍了很多工具,对于一般的基准测试应该是 ...
- 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 ...
- LVS : Linux Virtual Server 负载均衡,集群,高并发,robust
1 LVS : Linux Virtual Server http://www.linuxvirtualserver.org/ http://www.linuxvirtualserver.org/zh ...
- linux定制
http://cc.bingj.com/cache.aspx?q=OpenEmbedded+clfs&d=4706495287069596&mkt=zh-CN&setlang= ...
- VMware中linux硬盘空间不足的解决方法
相信很多人都和我一样是利用虚拟机安装linux的,在玩转linux的时候,可能就会遇到系统提示磁盘空间不足的情况.由于VMware中当初装系统时的设置的最大磁盘容量是不可以动态修改的,所以为我们使用带 ...
随机推荐
- VS2013和VS2008项目的互通
VS2013和VS2008项目的互通,大家可能都查到了百度经验里面的一个帖子: http://jingyan.baidu.com/article/f54ae2fc3c3adc1e92b849de.ht ...
- Hive中JOIN操作
1. 只支持相等JOIN. 2. 多表连接当使用不同的列进行JOIN时,会产生多个MR作业. 3. 最后的表的数据是从流中读取,而前面的会在内存中缓存,因此最好把最大的表放在最后. SELECT /* ...
- Nodejs环境变量
PATH,就是那个意思,没有特殊含义. NODE_PATH,将node_modules作为全局模块,多个安装目录用;分开.这样node在加载模块时首先会到项目目录下的node_modules目录加载相 ...
- java 多线程5(创建方式)
实现Runnable接口: 问题1:Runnable实现类的对象是线程对象吗? 答:不是,该对象只不过是实现了Runnable接口的对象而已,只有是Thread或Thread的子类才是线程对象. 问题 ...
- css读书笔记4:字体和文本
字体属性网页中的字体有3个来源:1.用户机器中安装的字体:2.保存在第三方网站上的字体.可以使用link标签把它们链接到页面中:3.保存在子集的web服务器上的字体.可以使用@font-face规则随 ...
- JQUERY学习(贰)
一.操作一组jQuery对象 1.遍历 $("").each(fun); 2.求长度:length size() 3.获得某一个jQuery对象 $("") ...
- Facade 运行机制
举一个常见的例子在routes.php路由文件中的Route就是使用了laravel的Facade; config/app.php 文件中的aliases数组: 再例如其中的mail: 里面只是简单的 ...
- node.js关于传送数据的二三事
配置好node环境后 书写代码 目录结构: . 代码: <!DOCTYPE html> <html lang="en"> <head> < ...
- [Hadoop 周边] Hadoop资料收集【转】
原文网址: http://www.iteblog.com/archives/851 最直接的学习参考网站当然是官网啦: http://hadoop.apache.org/ Hadoop http:// ...
- C++ 如何重复利用一个内存地址块
#include<iostream> using namespace std; ; }; int main(int argv ,char * args[]) { double *p1,*p ...