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 [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 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 [email protected]

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 [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

man ls

man -a intro

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

190  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/

200  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

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

时间: 2024-10-25 13:39:03

Linux Lab and project latest的相关文章

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

转:与一线Linux嵌入式开发project师的对话 陈project师一直做Linux的嵌入式开发.作为在开发一线的project师.他对非常多问题的看法可能更切合实际需求,于是,通过邮件.就嵌入式开发方面的问题,请他谈了一下自己的看法: 问:关于嵌入式开发.我们准备给同学们解说一些入门知识.从你一线开发经验来说,给我们一些建议: 陈工回答: 对于嵌入式Linux入门,假设有一定基础,可以从驱动開始:假设没有基础.我个人建议还是从应用程序開始.由于从应用程序開始是最easy的,也是 最直观的.

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

最近一直在研究怎样在嵌入式开发板上移植linux嵌入式系统,但是不太想花费太多钱购买开发板.然后在网上搜索相关的arm模拟器.有qemu,skyeye,armulator等,在按照网上教程一步一步实践的过程中,由于系统环境的不一致等各方面的原因,导致开发环境部署失败.无意间了解到docker技术可以解决这些方面的问题.于是就按着这条线索在网上进行查找,当我看到一篇关于利用 Linux Lab 完成嵌入式系统软件开发全过程的文章时,感觉到终于找到一个很好的解决方法.相关的链接如下: http://

Linux Lab

ssh vi /etc/apt/sources.list su ssh [email protected] eg : ssh [email protected] 实验一 fdisk /dev/sdb (create partitions) mdadm --create /dev/md0 --level=raid0 --raid-devices=2 /dev/sdb1 /dev/sdc1 (create raid 0) mkfs.ext3 /dev/md0 (create an ext3 file

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

http://ltp.sourceforge.net/ Linux Test Project, 后台很硬,由SGI? 发起, IBM维护,所以质量有保障. 里面介绍了很多工具,对于一般的基准测试应该是真够用了,关键是开发源码, 可以根据自己工程的需求,自己定制修改,本人由于工作原因阅读了(lmbench:lmdd , dbench 文件系统方面的测试),觉得非常不错 http://www.bitmover.com/lmbench/ http://www.samba.org/ftp/tridge/

linux系统下,11款常见远程桌面控制软件

linux系统下,11款常见远程桌面控制软件 一. Grdc 它是一个用GTK+编写的,适用于gnome桌面环境的远程桌面访问软件.看图: 常见功能: 1.提供全屏,窗口化的远程控制.支持高分辨率下的窗口显示以及调整. 2.可浮动的工具栏 3.可抓取键盘 4.支持建立一个“常用访问列表” 5.连接快速,高效 6.全屏模式下,当鼠标划过屏幕边缘时自动滚动 7.全屏模式下工具栏同样支持浮动效果,可直接进行例如模式切换,键盘抓取最小化等常见操作. 8. rdesktop 支持RDP协议, 9. 支持

使用Delphi开发linux应用

对于很多喜欢使用delphi做开发的人都希望delphi能够支持linux平台的开发,终于在delphi10.2版本中,delphi开始支持linux平台的开发了.在这里写一下Linux开发环境的配置. (1)安装ubuntu系统 首先在虚拟机安装ubuntu系统,我这里使用的是64位桌面版:ubuntu16.04.2 (2)安装SDK 在ubuntu中打开terminal终端,输入指令:sudo add-apt-repository ppa:ubuntu-sdk-team/ppa 然后再输入:

《Linux设备驱动开发具体解释(第3版)》进展同步更新

本博实时更新<Linux设备驱动开发具体解释(第3版)>的最新进展. 2015.2.26 差点儿完毕初稿. 本书已经rebase到开发中的Linux 4.0内核,案例多数基于多核CORTEX-A9平台. [F]是修正或升级:[N]是新增知识点:[D]是删除的内容 第1章 <Linux设备驱动概述及开发环境构建>[D]删除关于LDD6410开发板的介绍[F]更新新的Ubuntu虚拟机[N]加入关于QEMU模拟vexpress板的描写叙述 第2章 <驱动设计的硬件基础> [

linux定制

http://cc.bingj.com/cache.aspx?q=OpenEmbedded+clfs&d=4706495287069596&mkt=zh-CN&setlang=zh-CN&w=afp8GvZe7KNcRFBKF2kYXd8WwVn9MVkI CLFS stands for Cross Linux From Scratch, it's an offshoot of the LFS (Linux From Scratch) project. The goal o

Linux基础部分: 历史 现在 未来

最初的电脑:卡片打孔 Multics计划: 贝尔+麻省理工+通用电器(目标300人终端) 1969 贝尔实验室 退出该计划 Ken Thompson 与Dennis M. Ritchie : 多用户多任务操作系统(一个有趣的故事) Multics - 星际旅行-PDP7-B语言-C语言改写 http://www.ruanyifeng.com/blog/2010/03/unix_copyright_history.html UNIX版权历史   Novell 2.Linux : 1984年,负责教