个人操作使用记录

新手涉及到的教学或入门贴,推荐新手必看,版主维护
回复
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 个人操作使用记录

#16

帖子 TeliuTe » 2011-12-06 10:43

tar 备份命令:

代码: 全选

b1@2-b1:~$ sudo su
[sudo] password for b1: 
root@2-b1:/home/b1# cd /
root@2-b1:/# tar -cvpzf backup804f.tar.gz --exclude=/backup804f.tar.gz --exclude=/lost+found --exclude=/proc/* --exclude=/sys/* --exclude=/mnt/* --exclude=/media/* --exclude=/dev/* /
备份校园网(Temp 中的附件不要)
注意:
1、--exclude=file1 而不是 --exclude file1 排除文件
2、要排除一个目录是 --exclude=dir1,而不是 --exclude=dir1/ 排除文件夹

代码: 全选

root@TeliuTe:/home/teliute# tar -cvpzf back_xyw_20111206.tar.gz  --exclude=/opt/lampp/htdocs/attachment/Temp/* /opt/lampp/htdocs/

代码: 全选

备份:
tar -cvpzf back_xyw_20210206.tar.gz  --exclude=/opt/lampp/htdocs/f/* --exclude=/opt/lampp/htdocs/ftp/* --exclude=/opt/lampp/htdocs/qcy/* /opt/lampp/
恢复:
tar -xvpzf /home/teliute/bk/back_xyw_20210206.tar.gz -C /opt/lampp/
用tar备份和恢复系统
[text]
机子配置:C1.8/256M/15G,已安装XP/lenny
分区情况:C:NTFS、D:FAT32、sda6:/boot/ext3、sda7:reiserfs、sda8:swap
想再装一个ubuntu,需要从sda7分割出一块来,
------------------
以下都在管理员用户下运行:

1、挂载D:盘 mount /dev/sda5 /home/st2-098/t1/
2、备份 /boot/grub/menu.lst 到 D: 盘 cp /boot/grub/menu.lst /home/st2-098/t1/
3、删除缓存 rm /var/cache/apt/archives/*

4、备份 sda7 里的 lenny 系统:
代码:
cd /
tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --exclude=/home/st2-098/Desktop/* --exclude=/lost+found --exclude=/proc/* --exclude=/sys/* --exclude=/mnt/* --exclude=/media/* --exclude=/dev/* /
cp backup.tar.gz /home/st2-098/t1/


5、安装ubuntu,将 sda6 依然挂载到/boot,不格式化,
删除 sda7 和 sda8 得到空闲分区,将空闲分区划分成三个分区:

sda7 格成 reiserfs 不挂载,
sda8 创建为swap,
sda9 格成 reiserfs 挂载到 / 安装 ubuntu

6、启动进入 ubuntu,执行下面的命令,挂载好各个分区:
代码:
sudo fdisk -l
mount /dev/sda7 /home/st2-098/t/
mount /dev/sda5 /home/st2-098/t1/


7、还原 lenny 系统到 sda7
代码:
cd /home/st2-098/t1/
tar -xvpzf backup.tar.gz -C /home/st2-098/t/


8、修改/boot/grub/menu.lst,添加 lenny 的启动项
代码:
title Debian GNU/Linux, kernel 2.6.26-2-686
root (hd0,5)
kernel /vmlinuz-2.6.26-2-686 root=/dev/hda7 ro
initrd /initrd.img-2.6.26-2-686


9、重新启动计算机
代码:
reboot
[/text]

1、准备升级到dzx3,先备份一下整个空间,把附件和ftp和qcy个人的去掉,关闭校园网,关闭lampp

代码: 全选

tar -cvpzf back_xyw_20130703.tar.gz  --exclude=/opt/lampp/htdocs/attachment/* --exclude=/opt/lampp/htdocs/qcy/* --exclude=/opt/lampp/htdocs/ftp/* --exclude=/opt/lampp/htdocs/web/*  /opt/lampp/htdocs/
2、格式化 /dev/sda8 为ext4
sudo mdfs.ext4 /dev/sda8

3、停止lampp 命令:
sudo /opt/lampp/lampp stop

4、挂载sda8到/opt
sudo mount /dev/sda8 /opt

5、下载最新版的xampp
http://www.apachefriends.org/zh_cn/xampp-linux.html

6、安装,将下载的文件,赋予可执行权限,然后在终端运行
sudo ./xyw/XAMPP/xampp-linux-1.8.2-0-installer.run

7、安装完成后,打开xampp在状态中提示mysql没有激活,运行命令启动mysql
sudo /opt/lampp/lampp startmysql

8、再在xampp首页中运行phpmyadmin连接到mysql修改mysql 密码
点导航栏上的“用户-root localhost 右边的编辑权限”,往下拉找到密码项,设置密码后点下边的执行
再到phpmyadmin文件夹中,编辑config.ini.php,将验证从config改为 http
$cfg['Servers'][$i]['auth_type'] = 'config';

9、卸载/sda8,回到原来的/opt中用phpmyadmin备份ucenter和uchome,准备下次恢复到新的XAMPP中
备份完以后,打开uchome的库,检查表是否够,查找一下有多少个uchome_

10、ftp的用户名是nobody密码是xampp可以在/etc/proftpd.conf中找到,在/下新建一个ftp文件夹设为可读写
复制ucenter1.5.2和1.6.0 到ftp中

11、安装1.5.2再升级到1.6.0,复制uc_client,将data设为可读写(?)

代码: 全选

原短消息表(uc_pms表)已经不再使用,建议您在测试短消息功能及数据没有问题之后,删除此表。
将advanced/uc_client中的文件覆盖您的uc_client客户端。
12、将mysql/uchome/ 用tar打包后直接复制,少了几张表

13、用3.0升级老是错,回到2.0升级,结果群组里的内容不显示

代码: 全选

原短消息表(uc_pms表)已经不再使用,建议您在测试短消息功能及数据没有问题之后,删除此表。
将advanced/uc_client中的文件覆盖您的uc_client客户端。

代码: 全选

# / was on /dev/sda2 during installation
#UUID=43f6d91c-144b-4deb-98b7-4ce5c253cdc2 /               ext4    errors=remount-ro 0       1
/dev/sda2 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda5 during installation
# UUID=ac100baf-76d5-48c4-a16f-1cac563e0fc4 /home           ext4    defaults        0       2
/dev/sda5 /home           ext4    defaults        0       2
[code]
mkdir sda6
mkdir sda10
mount /dev/sda6 /home/ubuntu/sda6
mount /dev/sda10 /home/ubuntu/sda10

代码: 全选

tar -cvpzf backup14.04.tar.gz  --exclude=/lost+found --exclude=/proc/* --exclude=/sys/* --exclude=/mnt/* --exclude=/media/* --exclude=/dev/* --exclude=/home/ubuntu/sda6/home/teliute/.fonts/* --exclude=/home/ubuntu/sda6/home/teliute/.aMule/* --exclude=/home/ubuntu/sda6/home/teliute/.longene/* --exclude=/home/ubuntu/sda6/home/teliute/.mozilla/* --exclude=/home/ubuntu/sda6/home/teliute/.steam/* --exclude=/home/ubuntu/sda6/home/teliute/.opera/*  --exclude=/home/ubuntu/sda6/home/teliute/公共的/*  --exclude=/home/ubuntu/sda6/home/teliute/视频/*  --exclude=/home/ubuntu/sda6/home/teliute/图片/*  --exclude=/home/ubuntu/sda6/home/teliute/文档/*  --exclude=/home/ubuntu/sda6/home/teliute/下载/*   --exclude=/home/ubuntu/sda6/home/teliute/下载/* --exclude=/home/ubuntu/sda6/opt/* /home/ubuntu/sda6/
上次由 TeliuTe 在 2013-07-04 11:58,总共编辑 13 次。
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 个人操作使用记录

#17

帖子 TeliuTe » 2011-12-12 18:31

代码: 全选

[b]创建ssh密钥:[/b]
ssh-keygen -t rsa
输入密码两遍,在~\.ssh\中可以找到私钥id_rsa和公钥id_rsa.pub

[b]设置在lp上翻译[/b]
登录lp,点击“用户名-code-分支名-Translations-Configure translations-launchpad/teliute.trunk-update”,出现翻译进度条,有个地方要设置当前的焦点

[b]添加系列(series)[/b]
登录lp,点击“用户名-code-分支名-Code(或其他标签再点回Code)-系列名-右下边找View series-Register a series”
也可以直接找到自己的项目 project,点击进去就有Register a series:
点击“用户名-code-分支名-分支名-下边的分支信息有所属项目,点击项目进入”

[b]设置项目的焦点[/b]
找到项目点击进入,在右边找“Change details”,设置另一个分支series为焦点,然后就可以删除当前的了

设置新建系列分支从什么分支导入翻译
TeliuTe » Series test » Translations »  Settings
[color=green]Import translations from branch
This series does not have an official Bazaar branch. [/color][u]Set it now![/u]
Series code location updated.

设置链接到lp上的一个分支
TeliuTe »  Series test -- Configure series branch(在右边)
要设置链接到lp上的一个分支,链接到自己就可以了
上传以后要过一阵才能更新

设置翻译焦点:
进入项目后点上边的“Translations”,然后在左上边找:Configure translations
TeliuTe » Translations »  Configure translations

删除分支要去掉分支焦点、翻译焦点、分支设为不活动的然后就可以删除了



[b]用bzr删除目标服务器上的文件:[/b]
[text]
teliute@TeliuTe:~/test$ bzr remove test.pot 
deleted test.pot
teliute@TeliuTe:~/test$ bzr remove zh_CN.po 
deleted zh_CN.po
teliute@TeliuTe:~/test$ bzr commit -m "remove test.pot zh_CN.po"
Committing to: /home/teliute/test/                                                           
deleted test.pot
deleted zh_CN.po
Committed revision 3.                                                                        
teliute@TeliuTe:~/test$ bzr push lp:~teliute-qq/+junk/test
Enter passphrase for key '/home/teliute/.ssh/id_rsa': 
Pushed up to revision 3.     
[/text]


[text]
TeliuTe »  Code 

 You can push (upload) personal branches (those not related to a project) with the following command: 
bzr push lp:~teliute-qq/+junk/BRANCHNAME
[/text]


在lp上注册一个分支,用bzr命令上传到lp:没有注册分支和已注册分支的情况:

[text]
Uploading a branch without registering

If you want to host a Bazaar branch on Launchpad, you can push it straight to Launchpad without first registering.

Simply open up your terminal, change to the directory that contains your Bazaar branch and type:

 bzr launchpad-login userid
 bzr push lp:~userid/project-name/branch-name 

Replace userid with your Launchpad id, project-name with the project's Launchpad id and then chose whichever branch name you want.

Read more about pushing Bazaar branches to Launchpad >
If you register the branch in Launchpad before pushing to it

If you register the branch in Launchpad's web interface, before pushing anything to it, you'll need to use a slightly different Bazaar command the first time you push anything to the branch:

bzr push lp:~userid/project-name/branch-name --use-existing-dir
[/text]
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 个人操作使用记录

#18

帖子 TeliuTe » 2011-12-29 18:13

安装 drbl 的略记:
debian服务器sudo apt-get install dhcp3-server后,出现错误提示“Starting DHCP server: dhcpd3check syslog for diagnostics. failed!”
其实这是因为还没有配置dhcp引起的,打开/etc/dhcp3/dhcpd.conf增加一个subnet,比如:
subnet 192.168.1.0 netmask 255.255.255.0{
range 192.168.1.100 192.168.1.200;
option routers 192.168.1.1;
}
然后sudo /etc/init.d/dhcp3-server start就可以启动了。



代码: 全选

server2:~# aptitude purge leafpad
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct 
the problem. 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
正在读取扩展状态文件      
正在初始化软件包状态... 完成
正在读取软件集说明档... 完成  
W: 无法锁定缓存文件;这通常意味着 dpkg 或另一个 apt 工具已经在安装软件包。正在以
只读方式打开;您对软件包状态所作的任何改变都“不会”被保存!
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct 
the problem. 
server2:~# dpkg --configure -a
正在设置 nfs-kernel-server (1:1.1.2-6lenny2) ...
Not replacing deleted config file /etc/exports
Starting NFS common utilities: statd.
Not starting NFS kernel daemon: no exports. (warning).
正在设置 vblade (16-1) ...
正在设置 pigz (2.1.5-1drbl) ...
正在设置 openssh-server (1:5.1p1-5) ...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Restarting OpenBSD Secure Shell server: sshd.
正在设置 syslinux (2:4.04+dfsg-2drbl1) ...
正在设置 unzip (5.52-12) ...
正在设置 zip (2.32-1) ...
正在设置 drbl-chntpw (0.0.20040818-7) ...
正在设置 netcat (1.10-38) ...
正在设置 ssh (1:5.1p1-5) ...
正在设置 vblade-persist (0.6-1) ...
server2:~# /opt/drbl//sbin/drblsrv -u
*****************************************************.
提示! 当有yes/no选项的时候,默认的值是大写的字母。例如 (y/N), 默认值是 "N", 当您
按 "Enter"的时候,程序使用的值就是 "N"。如果您不确认选用哪个好的时候,直接按"Ent
er"键是一个保险的方式。
*****************************************************.
*****************************************************.
正在移除 Debian Linux 上的 DRBL 软件包...
正在分析已安装软件包信息... 这可能需要几分钟...

*****************************************************.
Stopping clonezilla if it is running...
Setting the TERM as xterm
*****************************************************.
*****************************************************.
Clean all the previous saved config file if they exist...done!
Client OS type when doing Clonezilla job is: nfsroot
OCS is not started!
*****************************************************.
Now disable the YP access for DRBL clients...
Stopping NIS service...


done!
*****************************************************.
如果有已经安装在DRBL环境中的小GNU/Linux软件包(例如DSL, PuppyLinux, INSERT 或 PLD
),是否要移除?
[Y/n] 
Uninstalling installed Small Linux...
grep: /tftpboot/nbi_img/pxelinux.cfg/default: 没有那个文件或目录
grep: /tftpboot/nbi_img/pxelinux.cfg/default: 没有那个文件或目录
grep: /tftpboot/nbi_img/pxelinux.cfg/default: 没有那个文件或目录
grep: /tftpboot/nbi_img/pxelinux.cfg/default: 没有那个文件或目录
*****************************************************.
The netinstall files will be in dir "/tftpboot/nbi_img".
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列软件包将被【卸载】:
  clonezilla* dhcp3-server* drbl-chntpw* freedos* ipxe* mkpxeinitrd-net*
  mkswap-uuid* nfs-kernel-server* nis* partclone* tftpd-hpa*
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 11 个软件包,有 57 个软件未被升
级。
解压缩后将会空出 26.1MB 的空间。
您希望继续执行吗?[Y/n]
(正在读取数据库 ... 系统当前总共安装有 43984 个文件和目录。)
正在删除 clonezilla ...
正在删除 dhcp3-server ...
Stopping DHCP server: dhcpd3 failed!
正在清除 dhcp3-server 的配置文件 ...
正在删除 drbl-chntpw ...
正在删除 freedos ...
正在删除 ipxe ...
正在删除 mkpxeinitrd-net ...
正在删除 mkswap-uuid ...

正在删除 nfs-kernel-server ...
Stopping NFS kernel daemon: mountd nfsd.
Unexporting directories for NFS kernel daemon....
正在清除 nfs-kernel-server 的配置文件 ...
正在删除 nis ...
正在清除 nis 的配置文件 ...
正在删除 partclone ...
正在删除 tftpd-hpa ...
tftpd-hpa disabled in /etc/default/tftpd-hpa
正在清除 tftpd-hpa 的配置文件 ...
正在处理用于 man-db 的触发器...
您是否要移除DRBL这个程序?
[y/N] y
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列软件包将被【卸载】:
  drbl*
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 1 个软件包,有 57 个软件未被升
级。
解压缩后将会空出 14.8MB 的空间。
您希望继续执行吗?[Y/n]
(正在读取数据库 ... 系统当前总共安装有 43540 个文件和目录。)
正在删除 drbl ...
dpkg - 警告:当删除“drbl”,目录“/opt/drbl”非空,因而不会删除该目录。
dpkg - 警告:当删除“drbl”,目录“/opt”非空,因而不会删除该目录。
*****************************************************.
移除 /tftpboot 以及其他的文件... 这可能需要几分钟...
*****************************************************.
完成!!!
server2:~# aptitude install drbl
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
正在读取扩展状态文件       
正在初始化软件包状态... 完成
正在编辑扩展状态信息... 完成  
正在读取软件集说明档... 完成  
下列“新”软件包将被安装。
  drbl 
0 个软件包被升级,新安装 1 个,0 个将被删除, 同时 57 个将不升级。
需要获取 0B/2239kB 的存档。解包后将要使用 14.8MB。
正在编辑扩展状态信息... 完成
选中了曾被取消选择的软件包 drbl。
(正在读取数据库 ... 系统当前总共安装有 42970 个文件和目录。)
正在解压缩 drbl (从 .../drbl_1.10.31-1drbl_all.deb) ...
正在设置 drbl (1.10.31-1drbl) ...
正在读取软件包列表... 完成 
正在读取扩展状态文件       
正在初始化软件包状态... 完成
正在编辑扩展状态信息... 完成  
正在读取软件集说明档... 完成  

server2:~# cd /opt/drbl/sbin/
server2:/opt/drbl/sbin# drblsrv -i
bash: drblsrv: command not found
server2:/opt/drbl/sbin# ./drblsrv -i
*****************************************************.
提示! 当有yes/no选项的时候,默认的值是大写的字母。例如 (y/N), 默认值是 "N", 当您
按 "Enter"的时候,程序使用的值就是 "N"。如果您不确认选用哪个好的时候,直接按"Ent
er"键是一个保险的方式。
*****************************************************.
*****************************************************.
在 Debian Linux 上安装 DRBL 环境...
*****************************************************.
您是否要安装一些网络安装的开机程序使得客户端的电脑可以通过网络安装Linux (Debian,
 Ubuntu, RedHat Linux, Fedora Core, Mandriva, CentOS与OpenSuSE等)到本地的硬盘中?
 ///注意/// 这个动作会下载一些文件(全部的大小可能超过100 MB),所以有可能会花不少
时间。假如您的客户端电脑有硬盘,而您又有可能会需要安装操作系统,建议选择Y。假如
您回答no,之后您仍然可以使用drbl-netinstall来安装这些文件。
[y/N] 
*****************************************************.
This GNU/Linux distribution uses one kernel to support SMP and non-SMP arch.
*****************************************************.
您的 DRBL 客户端的电脑是否要使用序列控制台(Serial Console)?
如果您不清楚什么序列控制台的话,就回答"N",否则有可能造成客户端电脑屏幕无法显示!
[y/N] 
*****************************************************.
您客户端的电脑要使用哪个等级CPU的内核?
0 -> 使用i386 CPU等级架构
1 -> 使用i586 CPU等级架构
2 -> 使用与此DRBL服务器同等级CPU的内核
注意! 注意! 注意! 注意! 注意! 注意! 注意! 注意! 注意!
注意!!! 如果您的客户端电脑与 DRBL 服务器的 CPU 架构不同等级,请回答 "0"或是"1",.
如果您用错CPU架构内核,会造成 glibc 和 openssl 因与内核架构不同,而无法适用于所
有的客户端电脑.
如果您无法确定客户端电脑的 CPU 等级,建议使用"1",这样可以兼顾效能与相容性.
[1] 2

*****************************************************.
The CPU arch option for your clients: 2
您选用与服务器同等级的 CPU 最佳化.
*****************************************************.
清除apt的缓存文件...
命中 http://mirrors.163.com lenny Release.gpg
命中 http://mirrors.163.com lenny/main Translation-zh_CN
忽略 http://mirrors.163.com lenny/non-free Translation-zh_CN
命中 http://mirrors.163.com lenny Release               
忽略 http://mirrors.163.com lenny/main Packages/DiffIndex             
命中 http://free.nchc.org.tw lenny Release.gpg
命中 http://free.nchc.org.tw lenny/main Translation-zh_CN
忽略 http://mirrors.163.com lenny/non-free Packages/DiffIndex
命中 http://free.nchc.org.tw drbl Release.gpg
忽略 http://free.nchc.org.tw drbl/stable Translation-zh_CN
命中 http://free.nchc.org.tw lenny Release
命中 http://mirrors.163.com lenny/main Packages                   
命中 http://free.nchc.org.tw drbl Release    
命中 http://mirrors.163.com lenny/non-free Packages                
忽略 http://free.nchc.org.tw lenny/main Packages/DiffIndex
忽略 http://free.nchc.org.tw drbl/stable Packages/DiffIndex
命中 http://free.nchc.org.tw lenny/main Packages
命中 http://free.nchc.org.tw drbl/stable Packages
正在读取软件包列表... 完成
*****************************************************.
您是否要升级您的操作系统?
[y/N] 
*****************************************************.
安装 DRBL 所需的相关程序...
*****************************************************.
Searching if lvm2 ntfs-3g genisoimage mkisofs lshw hwinfo aoetools vblade dmidec
ode lzop lzma xz xz-utils pxz lzip pigz pbzip2 lbzip2 plzip hfsutils hfsprogs dm
setup dmraid kpartx device-mapper tofrodos dos2unix unix2dos dhcp3-server isc-dh
cp-server gdisk btrfs-tools ufsutils disktype available... 
Package lvm2 exists in repository.
Package ntfs-3g exists in repository.
Package genisoimage exists in repository.
Package mkisofs exists in repository.
Package lshw exists in repository.
Package hwinfo exists in repository.
Package aoetools exists in repository.
Package vblade exists in repository.
Package dmidecode exists in repository.
Package lzop exists in repository.
Package lzma exists in repository.

Package pigz exists in repository.
Package pbzip2 exists in repository.
Package hfsutils exists in repository.
Package hfsprogs exists in repository.
Package dmsetup exists in repository.
Package dmraid exists in repository.
Package kpartx exists in repository.
Package tofrodos exists in repository.
Package dhcp3-server exists in repository.
Package disktype exists in repository.
Package ntfs-3g does not provide the files of old package ntfsprogs, so ntfsprog
s will be installed.
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
util-linux 已经是最新的版本了。
tar 已经是最新的版本了。
gzip 已经是最新的版本了。
bzip2 已经是最新的版本了。
lzop 已经是最新的版本了。
pigz 已经是最新的版本了。
pbzip2 已经是最新的版本了。
procps 已经是最新的版本了。
dialog 已经是最新的版本了。
rsync 已经是最新的版本了。
parted 已经是最新的版本了。
pciutils 已经是最新的版本了。
tcpdump 已经是最新的版本了。
bc 已经是最新的版本了。
gawk 已经是最新的版本了。
hdparm 已经是最新的版本了。
sdparm 已经是最新的版本了。
netcat 已经是最新的版本了。
file 已经是最新的版本了。
ethtool 已经是最新的版本了。
etherwake 已经是最新的版本了。
ssh 已经是最新的版本了。
syslinux 已经是最新的版本了。
mtools 已经是最新的版本了。
reiserfsprogs 已经是最新的版本了。
e2fsprogs 已经是最新的版本了。
psmisc 已经是最新的版本了。
psmisc 被设置为手动安装。
locales 已经是最新的版本了。
wget 已经是最新的版本了。

disktype 已经是最新的版本了。
zip 已经是最新的版本了。
unzip 已经是最新的版本了。
patch 已经是最新的版本了。
iproute 已经是最新的版本了。
traceroute 已经是最新的版本了。
iputils-ping 已经是最新的版本了。
binutils 已经是最新的版本了。
expect 已经是最新的版本了。
partimage 已经是最新的版本了。
udpcast 已经是最新的版本了。
initscripts 已经是最新的版本了。
curl 已经是最新的版本了。
lftp 已经是最新的版本了。
iptables 已经是最新的版本了。
libdigest-sha1-perl 已经是最新的版本了。
memtest86+ 已经是最新的版本了。
ntfs-3g 已经是最新的版本了。
lvm2 已经是最新的版本了。
ntfs-3g 已经是最新的版本了。
genisoimage 已经是最新的版本了。
mkisofs 已经是最新的版本了。
lshw 已经是最新的版本了。
hwinfo 已经是最新的版本了。
aoetools 已经是最新的版本了。
vblade 已经是最新的版本了。
dmidecode 已经是最新的版本了。
lzop 已经是最新的版本了。
lzma 已经是最新的版本了。
pigz 已经是最新的版本了。
pbzip2 已经是最新的版本了。
hfsutils 已经是最新的版本了。
hfsprogs 已经是最新的版本了。
dmsetup 已经是最新的版本了。
dmraid 已经是最新的版本了。
kpartx 已经是最新的版本了。
tofrodos 已经是最新的版本了。
disktype 已经是最新的版本了。
ntfsprogs 已经是最新的版本了。
建议安装的软件包:
  dhcp3-server-ldap
下列【新】软件包将被安装:
  clonezilla dhcp3-server drbl-chntpw freedos ipxe mkpxeinitrd-net mkswap-uuid
  nfs-kernel-server nis partclone tftpd-hpa
共升级了 0 个软件包,新安装了 11 个软件包,要卸载 0 个软件包,有 57 个软件未被升
级。
需要下载 0B/10.6MB 的软件包。
解压缩后会消耗掉 26.1MB 的额外空间。
正在预设定软件包 ...
选中了曾被取消选择的软件包 nis。
(正在读取数据库 ... 系统当前总共安装有 43541 个文件和目录。)
正在解压缩 nis (从 .../archives/nis_3.17-17_i386.deb) ...
选中了曾被取消选择的软件包 clonezilla。
正在解压缩 clonezilla (从 .../clonezilla_2.3.58-1drb1_all.deb) ...
选中了曾被取消选择的软件包 dhcp3-server。
正在解压缩 dhcp3-server (从 .../dhcp3-server_3.1.1-6+lenny6_i386.deb) ...
选中了曾被取消选择的软件包 freedos。
正在解压缩 freedos (从 .../freedos_1.0-15drbl_i386.deb) ...
选中了曾被取消选择的软件包 ipxe。
正在解压缩 ipxe (从 .../ipxe_20110811-1drbl_i386.deb) ...
选中了曾被取消选择的软件包 mkpxeinitrd-net。
正在解压缩 mkpxeinitrd-net (从 .../mkpxeinitrd-net_1.6.8-1drbl_i386.deb) ...
选中了曾被取消选择的软件包 nfs-kernel-server。
正在解压缩 nfs-kernel-server (从 .../nfs-kernel-server_1%3a1.1.2-6lenny2_i386.de
b) ...
选中了曾被取消选择的软件包 drbl-chntpw。
正在解压缩 drbl-chntpw (从 .../drbl-chntpw_0.0.20040818-7_i386.deb) ...
选中了曾被取消选择的软件包 mkswap-uuid。
正在解压缩 mkswap-uuid (从 .../mkswap-uuid_0.1.1-1_i386.deb) ...
选中了曾被取消选择的软件包 partclone。
正在解压缩 partclone (从 .../partclone_0.2.24-2drbl_i386.deb) ...
选中了曾被取消选择的软件包 tftpd-hpa。
正在解压缩 tftpd-hpa (从 .../tftpd-hpa_0.48-2.3_i386.deb) ...
正在处理用于 man-db 的触发器...
正在设置 nis (3.17-17) ...
Starting NIS services:.
正在设置 clonezilla (2.3.58-1drb1) ...
正在设置 dhcp3-server (3.1.1-6+lenny6) ...
Generating /etc/default/dhcp3-server...
Starting DHCP server: dhcpd3check syslog for diagnostics. failed!
 failed!
invoke-rc.d: initscript dhcp3-server, action "start" failed.
正在设置 freedos (1.0-15drbl) ...
正在设置 ipxe (20110811-1drbl) ...
正在设置 mkpxeinitrd-net (1.6.8-1drbl) ...

正在设置 nfs-kernel-server (1:1.1.2-6lenny2) ...

Creating config file /etc/exports with new version

Creating config file /etc/default/nfs-kernel-server with new version
Starting NFS common utilities: statd.
Exporting directories for NFS kernel daemon....
Starting NFS kernel daemon: nfsd mountd.
正在设置 drbl-chntpw (0.0.20040818-7) ...
正在设置 mkswap-uuid (0.1.1-1) ...
正在设置 partclone (0.2.24-2drbl) ...
正在设置 tftpd-hpa (0.48-2.3) ...
tftpd-hpa disabled in /etc/default/tftpd-hpa
*****************************************************.
*****************************************************.
如果找到新版的程序,尝试升级某些需要的程序...
*****************************************************.
在 ayo 仓库中寻找最新的  kernel ...
在 ayo 仓库中最新的内核是 linux-image-2.6.26-2-686
有两个可用的内核给客户端电脑用,您要选择哪一个?
[1]: kernel 2.6.26-2-686 i686 (来自于这台DRBL服务器)
[2]: linux-image-2.6.26-2-686 (来自于apt的仓库)
[1] 
Clients will use the kernel 2.6.26-2-686 i686 from server.
安装这个内核可能需要一些时间,请耐心等候... 
完成!
*****************************************************.
安装客户端电脑所需的内核 ...
在 ayo 仓库中寻找最新的 kernel ...
*****************************************************.
Now run: drblsrv-offline -c -d -a -l zh_CN.UTF-8 -s 2.6.26-2-686 "" ""
Using kernel from this server for client...
*****************************************************.
您的操作系统版本: Debian 5.0.6
*****************************************************.
*****************************************************.
安装客户端电脑所需的内核 ... 
The kernel for client is copied from server.
Installing kernel 2.6.26-2-686 for clients... 
安装这个内核可能需要一些时间,请耐心等候... ...完成!
Generating modules.dep and map files for clients... done!
Preparing the kernel firmware for clients...
Found /boot/memtest86+.bin
/boot/memtest86+_multiboot.bin in this system, copying the memtest file to DRBL 
local repository...

Putting memtest86+ in DRBL package repository /opt/drbl/pkg/memtest86+/... 
Memtest86+ version: Memtest86  v4.20      
done!
Found /usr/lib/syslinux/pxelinux.0 in this system, copying the PXELinux files to
 DRBL local repository...
Putting required pxelinux files in DRBL package repository /opt/drbl/pkg/syslinu
x/... 
PXELinux version: PXELINUX 4.04 20110530 
done!
*****************************************************.
建立PXE网络开机的配置文件...
Copying pxelinux.0, gpxelinux.0, menu.c32, vesamenu.c32, chain.c32, mboot.c32, s
anboot.c32 and memdisk to /tftpboot/nbi_img...
Copying memtest86+ to /tftpboot/nbi_img...
Copying FreeDOS files to /tftpboot/nbi_img/... 
Generating default pxelinux config (/tftpboot/nbi_img/pxelinux.cfg/default)...
Use com32 module: vesamenu.c32
Adding menus for DRBL, local boot, memtest86+, FreeDOS...
done!
*****************************************************.
*****************************************************.
产生客户端PXE与Etherboot网络开机用的文件,这可能需要几分钟...
客户端电脑使用的最新内核是 2.6.26-2-686
Running mknic-nbi --kernel 2.6.26-2-686 --all --no-modules
Will client check DHCP server name is "drbl" or not: yes
The maximum times to try to get IP address for a client: 5
The pause time after network card is up: 0
The timeout to wait for network card linked (Unit: 0.1 secs): 70
Setting port for udhcpc request to default...
Using the kernel modules from /tftpboot/node_root//lib/modules...
The selected kernel for DRBL clients is: 2.6.26-2-686
Kernel 2.6 or 3 was found, so default to use initramfs.
Creating the network boot initrd for PXE clients by: mkpxeinitrd-net -k 2.6.26-2
-686 -t initramfs   -nf 
Use kernel modules from /tftpboot/node_root//lib/modules/2.6.26-2-686.
Trying to include network card firmwares if they exist in /tftpboot/node_root//l
ib/firmware/...
Calling hook udev...
find: `/lib64/': No such file or directory
Creating the initRAMFS image...
Initramfs, remove ramdisk_size/ramdisk_block in /tftpboot/nbi_img/pxelinux.cfg/d
efault if exists...
Finished!
完成!
*****************************************************.
完成!
server2:/opt/drbl/sbin# leafpad /etc/dhcp3/dhcpd.conf
server2:/opt/drbl/sbin# drblsrv -i
[/text]



[text]
server2:~# /opt/drbl/sbin/drblpush -i

******************************************************
提示!当有yes/no选项的时候,默认的值是大写的字母。例如(y/N),默认值是"N",当您按
"Enter"的时候,程序使用的值就是"N"。如果您不确认选择哪个好的时候,直接按"Enter"
******************************************************
正在搜索DRBL服务器中已经安装的相关程序...这可能需要几分钟...
完成寻找DRBL服务器所需的相关程序。
******************************************************
------------------------------------------------------
这是一个交互模式,在设置DRBL环境的过程中,您必须提供相关资料
------------------------------------------------------
------------------------------------------------------
请输入域名(DNS domain),例如drbl.sf.net:
[domain] 
您设定的域名(DOMAIN)是 domain
------------------------------------------------------
请输入NIS/YP域名:
[penguinzilla] 
您设定的域名(DOMAIN)是 penguinzilla
------------------------------------------------------
请输入客户端主机名称的前缀:
这个前缀是用来自动生成客户端主机名称的,如果您有部分或者全部机器不使用这个自动产
生的主机名称,您想自己指定用户主机名称,现在可以按Ctrl-C退出这个程序,编辑/opt/d
rbl/conf/client-ip-hostname后,再执行这个程序。
[server2] 
您设定的客户端计算机的主机名称的前缀是 server2
------------------------------------------------------
eth0: IP address 192.168.1.252, netmask 255.255.255.0
在您的系统上找到已经设置好的以太网卡有: eth0 
------------------------------------------------------
没有找到这台服务器的公开IP地址,
哪个网卡是这台服务器用来连接到互联网的,而不是给DRBL环境使用的?
这台服务器有的以太网卡:
eth0 (192.168.1.252), 
[eth0] 
您所选择连接到广域网的以太网卡是: eth0
///警告/// 在这台机器上只有找到一个设置好的网卡,我们不建议您这样做。因为这台DRB
L服务器将会提供DHCP服务,只有一个网卡可能会扰乱您现有的网络环境,特别是您一竟有
一个现存的DHCP服务和这个网卡通过网络交换机连接在一起。建议您至少使用两个网卡来避
免这个问题。
您确认要继续执行?
[y/N] y
******************************************************
******************************************************
现在我们可以收集客户端计算机网卡的MAC地址(MAC Address)!
通过这个收集的步骤可以帮助您的DRBL环境让客户端计算机每次开机都可以取得相同的IP,
如果您没有客户端计算机网卡的MAC地址存档时,您现在就应该做!
如果您已经有客户端计算机网卡的MAC地址存档时,您也可以把那些MAC地址排序分组后,一
行一行地填在文件中(文件的数量就是您DRBL分流网卡的个数),那么,这个步骤您就可以略
过。
这个步骤就是帮您侦测MAC地址,然后保存到文件中,省去您抄录MAC地址的时间以及可能的
抄写错误
客户端计算机的网卡MAC地址将会按照您客户端计算机的开机顺序被记录下来。
所收集到底网卡MAC地址将会依照客户端计算机连到DRBL服务器的网卡来给文件名,保存下
来的文件名如macadr-eth1.txt、macadr-eth2.txt... 您可以在/etc/drbl/目录下找到这些
文件。
请先将客户端计算机设置为网络开机(etherboot或是PXE),并依照您想要排列的顺序开机!
您是否要收集客户端计算机的网卡MAC地址?
[y/N] 
******************************************************
继续...
******************************************************
您是否要让DRBL服务器的DHCP服务每次都分配相同的IP给客户端计算机(要使用这个选项,
您必须已经收集好客户端计算机的网卡MAC地址(如前述的步骤)并且保存在文件中),这是针
对连接到DRBL服务器网卡的 eth0 ?
[y/N] 
******************************************************
继续...客户端计算机会采用非固定IP!
Hostmin: 192.168.1.1
******************************************************
这个域的客户端计算机中,起始的IP的4组数字中,最后一组数字的起始值是(也就是IP a.b
.c.d的d的起始值)?这是针对连接到DRBL服务器网卡的 eth0.
[1] 2
******************************************************
有多少台DRBL客户端计算机(也就是给学生使用的电脑)连接到DRBL服务器网卡 eth0 ?
请输入数字: 
[12] 38
******************************************************
这个域的客户端计算机中,起始的IP地址4组数字中,最后一组数字的最后一个为 "39".
我们将设置这些客户端计算机的IP为,这是针对连接到DRBL服务器网卡的 eth0 因为: 192.
168.1.2 - 192.168.1.39
接受 ? [Y/n] 
******************************************************
继续...
******************************************************
您的DRBL环境配置: 
******************************************************
          NIC    NIC IP                    Clients
+-----------------------------+
|         DRBL SERVER         |
|                             |

|    +-- [eth0] 192.168.1.252 +- to WAN
|                             |
|    +-- [eth0] 192.168.1.252 +- to clients group 0 [ 38 clients, their IP 
|                             |            from 192.168.1.2 - 192.168.1.39]
+-----------------------------+
******************************************************
Total clients: 38
******************************************************
按"Enter"键来继续... 
******************************************************
------------------------------------------------------
本系统中,有3种模式可以提供无盘的Linux服务给客户端使用:
[0] 完全DRBL模式(Full DRBL mode),每个客户端都有自己的/etc和/var(基于NFS)。
[1] 单一系统映像文件模式(DRBL SSI, single system image),每个客户端都使用tmpfs()
的/etc和/var。此模式中,Clonezilla服务器的负载和所需的硬盘空间会少一些。但是请注
意!这个模式中,(a)客户端计算机的内存建议至少要256MB以上,(b)客户端计算机的系统
设置并不会保存到服务器中。所有开机后的系统设置只会使用一次,关机后就会消失。此外
,如果您修改过任何范本机器的设置文件(也就是位于/tftpboot/nodes下的设置文件),您
要再执行/opt/drbl/sbin/drbl-gen-ssi-files来生成新的tarball范本文件于/tftpboot/no
de_root/drbl_ssi/中,(c)如果您要针对某些客户端设置一些特别的文件,可以参考/tftpb
oot/node_root/drbl_ssi/clients/00_README。
[2] 不要提供无盘Linux服务给客户端使用。
您要选择哪一个模式?
[0] 1
要使用企鹅龙单一系统映像文件模式,较为简单快捷的模式将会被使用!
******************************************************
------------------------------------------------------
本系统中,Clonezilla再生龙有4个模式可以选择:
[0] 完全模式(Full clonezilla mode),每个客户端都有自己的/etc和/var(基于NFS)。
[1] 
[1] 再生龙盒模式(Clonezilla box mode),每个客户端都使用tmpfs(以内存来当虚拟磁盘)
的/etc和/var。此模式中,Clonezilla服务器的负载和所需的硬盘空间会少一些。但是请注
意!这个模式中,客户端计算机的系统设置文件并不会报存在服务器中。所有开机后的系统
设置只会使用一次,然后关机后就会消失!
[2] 我不要使用再生龙。
[3] 使用Clonezilla live当作用户端做clonezilla工作时的操作系统(测试中)。
您要选择哪一个模式?
[0] 1
只要单独使用再生龙模式,简单快捷的模式将会被使用!
******************************************************
******************************************************
用户端执行Clonezilla的工作时,选用的CPU架构是: generic
------------------------------------------------------
使用再生龙的时候,您要把映像文件报存在这台机器的哪个目录中(请使用绝对路径,并且
不要指定在/mnt/、/media/或者/tmp/下)?

[/home/partimag] /root/image
Directory for clonezilla saved images: /root/image
------------------------------------------------------
如果您的客户端计算机有硬盘,其中有交换分区(swap partition)或者是可写的文件系统,
您是否要使用该交换分区或者在上面生成一个交换文件来作虚拟内存,
以便客户端的计算机可以使用需要更多内存的程序?(这个步骤不会损坏硬盘中原有的资料)
[Y/n] n
******************************************************
------------------------------------------------------
客户端开机后要进入哪一种模式?
"1" 图形模式(默认),
"2" 文字模式。
[1] 
客户端开机后为图形模式。
******************************************************
------------------------------------------------------
客户端开机进入图形模式后,您可以选择登入的种类:
(0)一般登入、(1)自动登入、(2)限时登入
[0] 1
您是否要让程序使用随机数生成客户端自动登入的密码?
[Y/n] 
继续...
客户端开机后自动登入。
******************************************************
[38] 帐号将会被生成,以便自动登入使用。
自动登入的帐号名称与该客户端计算机的名称相同。
所生成的帐号和密码将会被列在这个文件中 "/etc/drbl/auto_login_id_passwd.txt"
------------------------------------------------------
基于安全考虑,您是否要为客户端计算机设置管理员密码(默认为复制DRBL服务器的管理员
密码给客户端计算机管理员使用)? 
[y/N] y
客户端的管理员密码是(您输入的字符不会在屏幕上显示出来)?
请再次输入新的密码(您输入的字符不会在屏幕上显示出来)?。
------------------------------------------------------
基于安全考虑,您是否要为客户端计算机设置开机密码?
[y/N] 
继续...
------------------------------------------------------
您是否要在客户端计算机开机的时候允许用户选择自己所要的操作系统?
[Y/n] 
客户端计算机开机,出现提示符时需要等待多少个0.1秒?
[70] 
继续...
------------------------------------------------------
------------------------------------------------------

您是否要在客户端计算机开机的时候使用图形背景的菜单?
注意!如果您的客户端使用图形背景无法正常开机,您可以使用"/opt/drbl/sbin/switch-p
xe-bg-mode -m text"来切换成文字模式的背景。
[Y/n] 
Use graphic PXE Linux menu for the client.
------------------------------------------------------
------------------------------------------------------
您是否要让所有使用者在客户端可以使用声音、光驱、软驱、视频和移动设备(例如USB闪盘
)等装置?如果回答yes,我们将会把所有使用者加到这台服务器与客户端的这些设备群组中
。
[Y/n] n
------------------------------------------------------
使用别名方式,每台客户端计算机可以拥有2个IP,
其中一个为私有IP,用来连接到DRBL服务器,另一个公开IP使用来直接通过网卡连接到互联
网使用!
您是否要为每台客户端计算机设置公开IP?
[y/N] 
------------------------------------------------------
您是否要让DRBL客户端可以选择使用终端机(Terminal)模式?也就是说,您要让客户端计算
机执行DRBL服务器的远程显示(remote display) (这会大部分使用服务器的资源),请在此
回答"Y"。
请注意!
0. 如果开启这个模式,客户端的环境是非常有限的,例如客户端无法直接使用USB、CD、声
音、打印机等。
1. 如果您的DRBL服务器不够强,您最好在此回答"no"。
2. 如果您在此回答"yes",我们会开启XDMCP让用户来连接,
开启XDMCP永远不会是一个安全的作法,一个可行的方式是另外设置/etc/hosts.allow以及/
etc/hosts.deny来让您的客户端计算机连接,但是还不是最安全的。
在防火墙中设置网卡177的规则是一个最安全的作法。
您可以阅读XDMCP的相关手册来了解相关细节。
请您自己根据您的需要来设置这些规则。
3. 如果这里回答"yes",待会儿您可能必须要重新启动X视窗的桌面环境管理程序(gdm/kdm)
,在关闭所有的应用程序之前请记得保存您的资料!
您是否要开放终端机(Terminal)模式给客户端选用?
[y/N] 
继续...
------------------------------------------------------
------------------------------------------------------
您是否要让DRBL服务器也能提供NAT服务(也就是一般俗称的IP共享功能)?如果不要的话,D
RBL客户端计算机将无法连接到互联网。
[Y/n] n
这台DRB服务器未提供NAT服务(也就是一般俗称的IP共享功能),DRBL客户端计算机将无法连
接到互联网。
******************************************************
DRBL服务器目前使用的内核支持 NFS over TCP!

【注意】如果您改变DRBL服务器目前使用的内核版本,并且不确认那个内核是否支持基于UD
P或者TCP的NFS,您最好重新执行"drblpush -i"以免客户端计算机开不了机!
按"Enter"键来继续... 
------------------------------------------------------
******************************************************
The calculated NETWORK for eth0 is 192.168.1.0.
******************************************************
******************************************************
现在准备部署这些文件到系统中!
您要继续执行么?
警告!如果您继续执行,您的防火墙规则将会被改写!
原来的规则将会被备份为iptables.drblsave于系统的设置目录中(/etc/sysconfig或者/etc
/default)。
[Y/n] 
******************************************************
开始进行...
------------------------------------------------------
Checking the necessary disk space... done!
Copying the config file to /etc/drbl... done!
Backup the original /etc/hosts as /etc/hosts.drblsave... done!
Generate the /etc/hosts for clients connected to eth0... done!
Cleaning the stale files of the diskless nodes if they exist... done!
*****************************************************.
*****************************************************.
The version number for your GNU/Linux: DBN5.0.6
Keeping the old common root files if they exist... 
Keeping old nodes if they exist... 
Creating common root files... This might take several minutes....Generating loca
le en_US.UTF-8 by: localedef -f UTF-8 -i en_US en_US.UTF-8... done!
....... done!
Update the kernel for client if necessary... 
The DRBL client uses i686 kernel with version 2.6.26-2-686...
Trying to update the /tftpboot/node_root/lib/modules/2.6.26-2-686 from server's 
/lib/modules/... This might take several minutes...
Found kernel modules in /lib/modules/2.6.26-2-686 and its arch "i686" matches cl
ient's "i686"...
Syncing /lib/modules/2.6.26-2-686 to client's common root...
Syncing /boot/*-2.6.26-2-686* to client's common root...
Generating the /tftpboot/node_root/lib/modules/2.6.26-2-686/modules.dep
Syncing /lib/firmware/ to client's common root...
Copying the directory /etc/ to clients common root /tftpboot/node_root...
Cleaning the ssh key file ssh_host_dsa_key copied from server... done!
Cleaning the ssh key file ssh_host_dsa_key.pub copied from server... done!
Cleaning the ssh key file ssh_host_rsa_key copied from server... done!
Cleaning the ssh key file ssh_host_rsa_key.pub copied from server... done!

Commenting the TCPwrapper related file /tftpboot/node_root/etc/hosts.deny copied
 from server... done!
Commenting the TCPwrapper related file /tftpboot/node_root/etc/hosts.allow copie
d from server... done!
Warning! Unable to find the fine-tune file /opt/drbl/setup/files/DBN/DBN5.0.6/fi
rstboot.DBN5.0.6.drbl, use /opt/drbl/setup/files/DBN/firstboot.default-DBN.drbl 
as /etc/init.d/firstboot for DRBL clients!
This may cause some problems to DRBL clients!
The startup services for DRBL client are:
firstboot portmap nis nfs-common ssh hal dbus acpid cups drblthincli arm-wol sen
dsigs umountfs
Using udev for clients... The default display manager is NOT found! We can NOT s
et text or graphic mode for Debian DRBL client.
Deleting the accounts (except root) in the clients common root template... done!
Enabling the NIS client in the common root template... done!
Creating some necessary files in the clients common root template...... done!
Creating DRBL client: server2002 192.168.1.2... Generating SSH host keys for cli
ent 192.168.1.2 if they do not exist... done!
Change the root's password for DRBL client 192.168.1.2...done!
Creating DRBL client: server2003 192.168.1.3... Pseudo client is created for DRB
L SSI or clonezilla box mode! done!
Creating DRBL client: server2004 192.168.1.4... Pseudo client is created for DRB
L SSI or clonezilla box mode! done!
Creating DRBL client: server2005 192.168.1.5... Pseudo client is created for DRB
L SSI or clonezilla box mode! done!
Creating DRBL client: server2006 192.168.1.6... Pseudo client is created for DRB
L SSI or clonezilla box mode! done!
Creating DRBL client: server2007 192.168.1.7... Pseudo client is created for DRB
L SSI or clonezilla box mode! done!
Creating DRBL client: server2008 192.168.1.8... Pseudo client is created for DRB
L SSI or clonezilla box mode! done!
Creating DRBL client: server2009 192.168.1.9... Pseudo client is created for DRB
L SSI or clonezilla box mode! done!
Creating DRBL client: server2010 192.168.1.10... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2011 192.168.1.11... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2012 192.168.1.12... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2013 192.168.1.13... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2014 192.168.1.14... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2015 192.168.1.15... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!

Creating DRBL client: server2016 192.168.1.16... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2017 192.168.1.17... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2018 192.168.1.18... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2019 192.168.1.19... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2020 192.168.1.20... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2021 192.168.1.21... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2022 192.168.1.22... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2023 192.168.1.23... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2024 192.168.1.24... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2025 192.168.1.25... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2026 192.168.1.26... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2027 192.168.1.27... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2028 192.168.1.28... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2029 192.168.1.29... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2030 192.168.1.30... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2031 192.168.1.31... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2032 192.168.1.32... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2033 192.168.1.33... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2034 192.168.1.34... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2035 192.168.1.35... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2036 192.168.1.36... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2037 192.168.1.37... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2038 192.168.1.38... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Creating DRBL client: server2039 192.168.1.39... Pseudo client is created for DR
BL SSI or clonezilla box mode! done!
Template client for DRBL SSI, Clonezilla box mode or Clonezilla live client is 1
92.168.1.2
Using template host /tftpboot/nodes/192.168.1.2
Generating SSH host keys for client 192.168.1.2 if they do not exist... done!
Generating the files for DRBL single system image template... root... etc... var
... opt/drbl... Root's openssh public key... done!
Modifying option diskless_client_os in drbl-ocs.conf...
Disable the password in pxelinux simple menu for all clients... 
Disabling PXE password in config file /tftpboot/nbi_img/pxelinux.cfg/default... 
done!
Now add necessary services to this DRBL server: DHCP, TFTP, NFS, NIS...
Generating the NFS exports for DRBL clients... 
Backup the original /etc/exports as /etc/exports.drblsave
Exporting to clients by IP address line-by-line...
The /etc/exports setting is ok now!
这台DRB服务器未提供NAT服务(也就是一般俗称的IP共享功能),DRBL客户端电脑将无法连到
因特网网络.
Now stop the NAT service...
iptables-save v1.4.2: Unable to open /proc/net/ip_tables_names: No such file or 
directory

Now set the YP securenets...
Backup the original /etc/ypserv.securenets as /etc/ypserv.securenets.drblsave
The /etc/ypserv.securenets setting is done!
Update YP...
Now add the service:  portmap dhcp3-server nis nfs-common nfs-kernel-server tftp
d-hpa drbl-clients-nat
Force to add portmap service in this Debian DRBL server...
Force to add dhcp3-server service in this Debian DRBL server...
Force to add nis service in this Debian DRBL server...
Force to add nfs-common service in this Debian DRBL server...
Force to add nfs-kernel-server service in this Debian DRBL server...
Force to add tftpd-hpa service in this Debian DRBL server...
Force to add drbl-clients-nat service in this Debian DRBL server...
Now start the service:  portmap dhcp3-server nis nfs-common nfs-kernel-server tf
tpd-hpa drbl-clients-nat
Stopping portmap daemon....

Starting portmap daemon....
Stopping DHCP server: dhcpd3.
Starting DHCP server: dhcpd3.
Starting NIS services: ypserv yppasswdd ypxfrd ypbind.
Stopping NFS common utilities: idmapd statd.
Starting NFS common utilities: statd idmapd.
Stopping NFS kernel daemon: mountd nfsd.
Unexporting directories for NFS kernel daemon....
Exporting directories for NFS kernel daemon....
Starting NFS kernel daemon: nfsd mountd.
Stopping HPA's tftpd: in.tftpd.
Starting HPA's tftpd: in.tftpd.
Stopping the NAT services for DRBL clients... Now stop the NAT service...
done!
Starting the NAT services for DRBL clients... done!
ip_forward is already on.
The GDM or KDM config file is NOT found! Skip setting the DM! Maybe you will not
 be able to make this DRBL server as thin client server!
Clean all the previous saved config file if they exist...done!
Turn on the boot prompt for PXE client...done!
Turn off the thin client option in PXE boot menu...done!
Modifying /tftpboot/nbi_img/pxelinux.cfg/default to let DRBL client use graphica
l PXE boot menu... done!
DRBL SSI mode. Set clientdir opt for label drbl in pxelinux config... 
Setting drbl_mode="drbl_ssi_mode" in /etc/drbl/drbl_deploy.conf and /etc/drbl/dr
blpush.conf... done!
Clonezilla box mode. Set clientdir opt for label clonezilla in pxelinux config..
. 
Setting clonezilla_mode="clonezilla_box_mode" in /etc/drbl/drbl_deploy.conf and 
/etc/drbl/drblpush.conf... done!
您必须要再执行"/opt/drbl/sbin/dcs" -> clonezilla-start来启动再生龙clonezilla服务
,客户端开机的时候也才会出现再生龙的菜单
*****************************************************.
Enjoy DRBL!!!
http://drbl.nchc.org.tw; http://drbl.name
NCHC Free Software Labs, Taiwan. http://free.nchc.org.tw
*****************************************************.
如果您喜欢,您可以现在把这台DRBL服务器重新开机,确认所有的程序与设定是正确的。()
。
*****************************************************.
DRBL服务器已经就绪! 现在请设定客户端电脑由PXE或是Etherboot开机(参考4步安装法的第
四步骤)。打开客户端电脑,然后开始享用DRBL吧!
注意! 如果您的客户端电脑使用Etherboot开机,Etherboot版本必须使用5.4.0或是之后的
版本!
PS. drblpush存了一个配置文件在/etc/drbl/drblpush.conf。因此下次如果您要使用同样
的配置文件方式来重新执行一次drblpush,可以这样执行: /opt/drbl/sbin/drblpush -c /
etc/drbl/drblpush.conf

附件
drbl.tar.bz2
(1.49 KiB) 已下载 212 次
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 个人操作使用记录

#19

帖子 TeliuTe » 2011-12-31 13:02

git 操作

代码: 全选

mkdir mygit
cd mygit/
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin
git remote add TeliuTe
git remote add TeliuTe git@github.com:TeliuTe/TeliuTe.git
git push teliute master
git push TeliuTe master
git add .
git commit -a -m "First pages commit"
git remote add TeliuTe git@github.com:TeliuTe/TeliuTe.git
git push TeliuTe master
git push teliute.github.com master
git remote remove TeliuTe git@github.com:TeliuTe/TeliuTe.git
git rm TeliuTe git@github.com:TeliuTe/TeliuTe.git
git rm TeliuTe 
git remote rm TeliuTe 
git remote add teliute git@github.com:TeliuTe/teliute.github.com.git
git push teliute mast
git remote rm TeliuTe 
git remote rm teliute
git remote add teliute git@github.com:TeliuTe/teliute.github.com.git
git push teliute mast
git add .
git commit -a -m "First pages commit"
git push teliute mast
ls
git --help 
git-status
git status
ls
git remove .
git rm .
git rm *.*
git rm css/*
git rm css/
git rm -r css/
git add *.*
git commit -a -m "First pages commit"
git mkdir css
git --help
bzr mv ../teliute.laxjyj.com/index.html .
git add css/
git add index.html
git commit -m "add index"
git push teliute mast
git push teliute master
git add images/
git commit -m "add images"
git push teliute master
git add CNAME
git commit -m "CNAME"
git push teliute master
sudo halt
ifconfig
cd mygit/
git remove index.html
git rm index.html
git add index.html
git add GFDL-1.2
git commit -m "update index.html, add gfdl1.2"
git teliute master
git push teliute master
git add 404.html
git commit -m "add 404.html"
git push teliute master
git rm 404.html
git add 404.html
git commit -m "add new 404.html"
git push teliute master
exit
mygit.sh

代码: 全选

#!/bin/bash
cd /home/teliute/mygit/
git pull teliute master
git add -A .
git commit -a -m "`date` $1"
git push teliute master
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 个人操作使用记录

#20

帖子 TeliuTe » 2012-01-20 0:20

debian6 安装 DRBL

代码: 全选

root@TeliuTe:~# /opt/drbl/sbin/drblsrv -i*****************************************************.
提示! 当有yes/no选项的时候,默认的值是大写的字母。例如 (y/N), 默认值是 "N", 当您按 "Enter"的时候,程序使用的值就是 "N"。如果您不确认选用哪个好的时候,直接按"Enter"键是一个保险的方式。
*****************************************************.
*****************************************************.
在 Debian Linux 上安装 DRBL 环境...
*****************************************************.
您是否要安装一些网络安装的开机程序使得客户端的电脑可以通过网络安装Linux (Debian, Ubuntu, RedHat Linux, Fedora Core, Mandriva, CentOS与OpenSuSE等)到本地的硬盘中? ///注意/// 这个动作会下载一些文件(全部的大小可能超过100 MB),所以有可能会花不少时间。假如您的客户端电脑有硬盘,而您又有可能会需要安装操作系统,建议选择Y。假如您回答no,之后您仍然可以使用drbl-netinstall来安装这些文件。
[y/N] 
*****************************************************.
This GNU/Linux distribution uses one kernel to support SMP and non-SMP arch.
*****************************************************.
您的 DRBL 客户端的电脑是否要使用序列控制台(Serial Console)?
如果您不清楚什么序列控制台的话,就回答"N",否则有可能造成客户端电脑屏幕无法显示!
[y/N] 
*****************************************************.
您客户端的电脑要使用哪个等级CPU的内核?
0 -> 使用i386 CPU等级架构
1 -> 使用i586 CPU等级架构
2 -> 使用与此DRBL服务器同等级CPU的内核
注意! 注意! 注意! 注意! 注意! 注意! 注意! 注意! 注意!
注意!!! 如果您的客户端电脑与 DRBL 服务器的 CPU 架构不同等级,请回答 "0"或是"1",否则客户端电脑将无法顺利开机.
如果您用错CPU架构内核,会造成 glibc 和 openssl 因与内核架构不同,而无法适用于所有的客户端电脑.
如果您无法确定客户端电脑的 CPU 等级,建议使用"1",这样可以兼顾效能与相容性.
[1] 2
*****************************************************.
The CPU arch option for your clients: 2
您选用与服务器同等级的 CPU 最佳化.
*****************************************************.
清除apt的缓存文件...
Hit http://mirrors.sohu.com squeeze Release.gpg          
Ign http://mirrors.sohu.com/debian/ squeeze/contrib Translation-en
Ign http://mirrors.sohu.com/debian/ squeeze/contrib Translation-zh
Ign http://mirrors.sohu.com/debian/ squeeze/contrib Translation-zh_CN
Ign http://mirrors.sohu.com/debian/ squeeze/main Translation-en
Ign http://mirrors.sohu.com/debian/ squeeze/main Translation-zh
Ign http://mirrors.sohu.com/debian/ squeeze/main Translation-zh_CN
Ign http://mirrors.sohu.com/debian/ squeeze/non-free Translation-en
Ign http://mirrors.sohu.com/debian/ squeeze/non-free Translation-zh
Ign http://mirrors.sohu.com/debian/ squeeze/non-free Translation-zh_CN
Hit http://mirrors.sohu.com squeeze Release               
Hit http://mirrors.sohu.com squeeze/main Sources           
Hit http://mirrors.sohu.com squeeze/contrib Sources
Hit http://mirrors.sohu.com squeeze/non-free Sources      
Hit http://mirrors.sohu.com squeeze/main i386 Packages    
Hit http://mirrors.sohu.com squeeze/contrib i386 Packages 
Hit http://mirrors.sohu.com squeeze/non-free i386 Packages
Hit http://free.nchc.org.tw squeeze Release.gpg
Ign http://free.nchc.org.tw/debian/ squeeze/main Translation-en
Ign http://free.nchc.org.tw/debian/ squeeze/main Translation-zh
Ign http://free.nchc.org.tw/debian/ squeeze/main Translation-zh_CN
Get:1 http://free.nchc.org.tw drbl Release.gpg [197 B]
Ign http://free.nchc.org.tw/drbl-core/ drbl/stable Translation-en
Ign http://free.nchc.org.tw/drbl-core/ drbl/stable Translation-zh
Ign http://free.nchc.org.tw/drbl-core/ drbl/stable Translation-zh_CN
Hit http://free.nchc.org.tw squeeze Release
Get:2 http://free.nchc.org.tw drbl Release [512 kB]
Hit http://free.nchc.org.tw squeeze/main i386 Packages
Hit http://free.nchc.org.tw drbl/stable i386 Packages                        
Fetched 198 B in 6s (32 B/s)                                                 
Reading package lists... Done
*****************************************************.
您是否要升级您的操作系统?
[y/N] 
*****************************************************.
安装 DRBL 所需的相关程序...
*****************************************************.
Searching if lvm2 ntfs-3g genisoimage mkisofs lshw hwinfo aoetools vblade dmidecode lzop lzma xz xz-utils pxz lzip pigz pbzip2 lbzip2 plzip hfsutils hfsprogs dmsetup dmraid kpartx device-mapper tofrodos dos2unix unix2dos dhcp3-server isc-dhcp-server gdisk btrfs-tools ufsutils disktype available... 
Package lvm2 exists in repository.
Package ntfs-3g exists in repository.
Package genisoimage exists in repository.
Package lshw exists in repository.
Package hwinfo exists in repository.
Package aoetools exists in repository.
Package vblade exists in repository.
Package dmidecode exists in repository.
Package lzop exists in repository.
Package lzma exists in repository.
Package xz-utils exists in repository.
Package lzip exists in repository.
Package pigz exists in repository.
Package pbzip2 exists in repository.
Package lbzip2 exists in repository.
Package hfsutils exists in repository.
Package hfsprogs exists in repository.
Package dmsetup exists in repository.
Package dmraid exists in repository.
Package kpartx exists in repository.
Package tofrodos exists in repository.
Package dos2unix exists in repository.
Package dhcp3-server exists in repository.
Package isc-dhcp-server exists in repository.
Package btrfs-tools exists in repository.
Package ufsutils exists in repository.
Package disktype exists in repository.
Package ntfs-3g does not provide the files of old package ntfsprogs, so ntfsprogs will be installed.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
dmidecode is already the newest version.
e2fsprogs is already the newest version.
locales is already the newest version.
file is already the newest version.
file set to manually installed.
gzip is already the newest version.
iproute is already the newest version.
iptables is already the newest version.
iputils-ping is already the newest version.
dmsetup is already the newest version.
dmsetup set to manually installed.
pciutils is already the newest version.
procps is already the newest version.
psmisc is already the newest version.
psmisc set to manually installed.
initscripts is already the newest version.
tar is already the newest version.
traceroute is already the newest version.
util-linux is already the newest version.
wget is already the newest version.
xz-utils is already the newest version.
The following extra packages will be installed:
  ca-certificates discover-data fgetty fuse-utils libbsd0 libcap2
  libcrypt-passwdmd5-perl libcurl3 libdiscover2 libdmraid1.0.0.rc16 libedit2
  libevent-1.4-2 libfuse2 libgssglue1 libhal1 libhd16 libidn11 libnfsidmap2
  libntfs-3g75 libntfs10 libparted0debian1 libpcap0.8 libreadline5
  librpcsecgss3 libslp1 libssh2-1 libwrap0 make mknbi nfs-common
  openssh-blacklist openssh-blacklist-extra openssh-client openssh-server
  openssl portmap runit syslinux-common tcl8.5 tcpd vblade-persist wakeonlan
Suggested packages:
  binutils-doc bzip2-doc expectk wodim cdrkit-doc apmd hfsutils-tcltk
  isc-dhcp-server-ldap libparted0-dev libparted0-i18n slpd openslp-doc
  make-doc hwtools memtester kernel-patch-badram memtest86 floppyd nscd
  ssh-askpass libpam-ssh keychain rssh molly-guard ufw parted-doc ed
  diffutils-doc socklog-run dosfstools os-prober tclreadline
The following NEW packages will be installed:
  aoetools bc binutils btrfs-tools bzip2 ca-certificates clonezilla curl
  dhcp3-server dialog discover discover-data disktype dmraid dos2unix
  drbl-chntpw etherwake ethtool expect fgetty freedos fuse-utils gawk
  genisoimage hdparm hfsprogs hfsutils hwinfo ipxe isc-dhcp-server kpartx
  lbzip2 lftp libbsd0 libcap2 libcrypt-passwdmd5-perl libcurl3
  libdigest-sha1-perl libdiscover2 libdmraid1.0.0.rc16 libedit2
  libevent-1.4-2 libfuse2 libgssglue1 libhal1 libhd16 libidn11 libnfsidmap2
  libntfs-3g75 libntfs10 libparted0debian1 libpcap0.8 libreadline5
  librpcsecgss3 libslp1 libssh2-1 libwrap0 lshw lvm2 lzip lzma lzop make
  memtest86+ mknbi mkpxeinitrd-net mkswap-uuid mtools netcat nfs-common
  nfs-kernel-server nis ntfs-3g ntfsprogs openssh-blacklist
  openssh-blacklist-extra openssh-client openssh-server openssl partclone
  parted partimage patch pbzip2 pigz portmap reiserfsprogs rsync runit
  sdparm ssh syslinux syslinux-common tcl8.5 tcpd tcpdump tftpd-hpa tofrodos
  udpcast ufsutils unzip vblade vblade-persist wakeonlan zip
0 upgraded, 105 newly installed, 0 to remove and 1 not upgraded.
Need to get 37.4 MB of archives.
After this operation, 100 MB of additional disk space will be used.
Get:1 http://free.nchc.org.tw/drbl-core/ drbl/stable clonezilla all 2.3.58-1drb1 [999 kB]
Get:2 http://mirrors.sohu.com/debian/ squeeze/main gawk i386 1:3.1.7.dfsg-5 [766 kB]
Get:3 http://mirrors.sohu.com/debian/ squeeze/main openssh-blacklist all 0.4.1 [2,125 kB]
Get:4 http://free.nchc.org.tw/drbl-core/ drbl/stable freedos i386 1.0-15drbl [184 kB]
Get:5 http://free.nchc.org.tw/drbl-core/ drbl/stable ipxe i386 20110811-1drbl [1,596 kB]
Get:6 http://mirrors.sohu.com/debian/ squeeze/main openssh-blacklist-extra all 0.4.1 [2,127 kB]
Get:7 http://free.nchc.org.tw/drbl-core/ drbl/stable lzop i386 1.03-2drbl [295 kB]
Get:8 http://free.nchc.org.tw/drbl-core/ drbl/stable memtest86+ i386 4.20-1drbl [287 kB]
Get:9 http://free.nchc.org.tw/drbl-core/ drbl/stable mkpxeinitrd-net i386 1.6.8-1drbl [769 kB]
Get:10 http://free.nchc.org.tw/drbl-core/ drbl/stable syslinux-common all 2:4.04+dfsg-2drbl1 [1,420 kB]
Get:11 http://free.nchc.org.tw/drbl-core/ drbl/stable syslinux i386 2:4.04+dfsg-2drbl1 [96.4 kB]
Get:12 http://free.nchc.org.tw/drbl-core/ drbl/stable drbl-chntpw i386 0.0.20040818-7 [48.7 kB]
Get:13 http://free.nchc.org.tw/drbl-core/ drbl/stable mkswap-uuid i386 0.1.1-1 [215 kB]
Get:14 http://free.nchc.org.tw/drbl-core/ drbl/stable partclone i386 0.2.24-2drbl [6,027 kB]
Get:15 http://mirrors.sohu.com/debian/ squeeze/main libslp1 i386 1.2.1-7.8 [52.8 kB]
Get:16 http://mirrors.sohu.com/debian/ squeeze/main make i386 3.81-8 [392 kB]
Get:17 http://mirrors.sohu.com/debian/ squeeze/main libwrap0 i386 7.6.q-19 [49.9 kB]
Get:18 http://mirrors.sohu.com/debian/ squeeze/main portmap i386 6.0.0-2 [37.3 kB]
Get:19 http://mirrors.sohu.com/debian/ squeeze/main nis i386 3.17-31 [204 kB]
Get:20 http://mirrors.sohu.com/debian/ squeeze/main bc i386 1.06.95-2 [104 kB]
Get:21 http://mirrors.sohu.com/debian/ squeeze/main libcap2 i386 1:2.19-3 [12.0 kB]
Get:22 http://mirrors.sohu.com/debian/ squeeze/main libbsd0 i386 0.2.0-1 [41.4 kB]
Get:23 http://mirrors.sohu.com/debian/ squeeze/main libedit2 i386 2.11-20080614-2 [63.0 kB]
Get:24 http://mirrors.sohu.com/debian/ squeeze/main libevent-1.4-2 i386 1.4.13-stable-1 [56.6 kB]
Get:25 http://mirrors.sohu.com/debian/ squeeze/main libgssglue1 i386 0.1-4 [22.1 kB]
Get:26 http://mirrors.sohu.com/debian/ squeeze/main libidn11 i386 1.15-2 [157 kB]
Get:27 http://mirrors.sohu.com/debian/ squeeze/main libnfsidmap2 i386 0.23-2 [28.5 kB]
Get:28 http://mirrors.sohu.com/debian/ squeeze/main librpcsecgss3 i386 0.19-2 [32.4 kB]
Get:29 http://mirrors.sohu.com/debian/ squeeze/main nfs-common i386 1:1.2.2-4 [227 kB]
Get:30 http://mirrors.sohu.com/debian/ squeeze/main openssh-client i386 1:5.5p1-6+squeeze1 [882 kB]
Get:31 http://mirrors.sohu.com/debian/ squeeze/main patch i386 2.6-2 [122 kB]
Get:32 http://mirrors.sohu.com/debian/ squeeze/main tcpd i386 7.6.q-19 [36.1 kB]
Get:33 http://mirrors.sohu.com/debian/ squeeze/main aoetools i386 30-3 [34.1 kB]
Get:34 http://mirrors.sohu.com/debian/ squeeze/main binutils i386 2.20.1-16 [3,811 kB]
Get:35 http://mirrors.sohu.com/debian/ squeeze/main btrfs-tools i386 0.19+20100601-3 [694 kB]
Get:36 http://mirrors.sohu.com/debian/ squeeze/main bzip2 i386 1.0.5-6 [47.4 kB]
Get:37 http://mirrors.sohu.com/debian/ squeeze/main openssl i386 0.9.8o-4squeeze3 [1,053 kB]
Get:38 http://mirrors.sohu.com/debian/ squeeze/main ca-certificates all 20090814+nmu3squeeze1 [146 kB]
Get:39 http://mirrors.sohu.com/debian/ squeeze/main libssh2-1 i386 1.2.6-1 [77.2 kB]
Get:40 http://mirrors.sohu.com/debian/ squeeze/main libcurl3 i386 7.21.0-2 [281 kB]
Get:41 http://mirrors.sohu.com/debian/ squeeze/main curl i386 7.21.0-2 [227 kB]
Get:42 http://mirrors.sohu.com/debian/ squeeze/main dialog i386 1.1-20100428-1 [281 kB]
Get:43 http://mirrors.sohu.com/debian/ squeeze/main discover-data all 2.2010.10.18 [428 kB]
Get:44 http://mirrors.sohu.com/debian/ squeeze/main libdiscover2 i386 2.1.2-5 [100 kB]
Get:45 http://mirrors.sohu.com/debian/ squeeze/main discover i386 2.1.2-5 [42.6 kB]
Get:46 http://mirrors.sohu.com/debian/ squeeze/main disktype i386 9-1 [38.3 kB]
Get:47 http://mirrors.sohu.com/debian/ squeeze/main libdmraid1.0.0.rc16 i386 1.0.0.rc16-4.1 [106 kB]
Get:48 http://mirrors.sohu.com/debian/ squeeze/main dmraid i386 1.0.0.rc16-4.1 [38.0 kB]
Get:49 http://mirrors.sohu.com/debian/ squeeze/main etherwake i386 1.09-3 [9,072 B]
Get:50 http://mirrors.sohu.com/debian/ squeeze/main ethtool i386 1:2.6.34-3 [71.8 kB]
Get:51 http://mirrors.sohu.com/debian/ squeeze/main tcl8.5 i386 8.5.8-2 [1,563 kB]
Get:52 http://mirrors.sohu.com/debian/ squeeze/main expect i386 5.44.1.15-4 [232 kB]
Get:53 http://mirrors.sohu.com/debian/ squeeze/main fgetty i386 0.6-5 [21.9 kB]
Get:54 http://mirrors.sohu.com/debian/ squeeze/main libfuse2 i386 2.8.4-1.1 [137 kB]
Get:55 http://mirrors.sohu.com/debian/ squeeze/main fuse-utils i386 2.8.4-1.1 [18.5 kB]
Get:56 http://mirrors.sohu.com/debian/ squeeze/main genisoimage i386 9:1.1.11-1 [583 kB]
Get:57 http://mirrors.sohu.com/debian/ squeeze/main hdparm i386 9.32-1 [101 kB]
Get:58 http://mirrors.sohu.com/debian/ squeeze/main hfsprogs i386 332.25-8 [131 kB]
Get:59 http://mirrors.sohu.com/debian/ squeeze/main libhal1 i386 0.5.14-3 [94.1 kB]
Get:60 http://mirrors.sohu.com/debian/ squeeze/main libhd16 i386 16.0-2 [696 kB]
Get:61 http://mirrors.sohu.com/debian/ squeeze/main hwinfo i386 16.0-2 [45.6 kB]
Get:62 http://mirrors.sohu.com/debian/ squeeze/main isc-dhcp-server i386 4.1.1-P1-15+squeeze3 [377 kB]
Get:63 http://mirrors.sohu.com/debian/ squeeze/main lftp i386 4.0.6-1 [645 kB]
Get:64 http://mirrors.sohu.com/debian/ squeeze/main libcrypt-passwdmd5-perl all 1.3-9 [10.3 kB]
Get:65 http://mirrors.sohu.com/debian/ squeeze/main libdigest-sha1-perl i386 2.13-1 [26.1 kB]
Get:66 http://mirrors.sohu.com/debian/ squeeze/main libntfs-3g75 i386 1:2010.3.6-1 [186 kB]
Get:67 http://mirrors.sohu.com/debian/ squeeze/main libntfs10 i386 2.0.0-1+b1 [125 kB]
Get:68 http://mirrors.sohu.com/debian/ squeeze/main libparted0debian1 i386 2.3-5 [310 kB]
Get:69 http://mirrors.sohu.com/debian/ squeeze/main libpcap0.8 i386 1.1.1-2+squeeze1 [125 kB]
Get:70 http://mirrors.sohu.com/debian/ squeeze/main libreadline5 i386 5.2-7 [135 kB]
Get:71 http://mirrors.sohu.com/debian/ squeeze/main lshw i386 02.14-1 [262 kB]
Get:72 http://mirrors.sohu.com/debian/ squeeze/main lvm2 i386 2.02.66-5 [435 kB]
Get:73 http://mirrors.sohu.com/debian/ squeeze/main lzip i386 1.10-1 [56.9 kB]
Get:74 http://mirrors.sohu.com/debian/ squeeze/main lzma i386 4.43-14 [57.5 kB]
Get:75 http://mirrors.sohu.com/debian/ squeeze/main mknbi i386 1.4.4-7 [73.8 kB]
Get:76 http://mirrors.sohu.com/debian/ squeeze/main mtools i386 4.0.12-1 [179 kB]
Get:77 http://mirrors.sohu.com/debian/ squeeze/main nfs-kernel-server i386 1:1.2.2-4 [159 kB]
Get:78 http://mirrors.sohu.com/debian/ squeeze/main ntfs-3g i386 1:2010.3.6-1 [63.8 kB]
Get:79 http://mirrors.sohu.com/debian/ squeeze/main ntfsprogs i386 2.0.0-1+b1 [266 kB]
Get:80 http://mirrors.sohu.com/debian/ squeeze/main openssh-server i386 1:5.5p1-6+squeeze1 [298 kB]
Get:81 http://mirrors.sohu.com/debian/ squeeze/main parted i386 2.3-5 [155 kB]
Get:82 http://mirrors.sohu.com/debian/ squeeze/main partimage i386 0.6.8-1 [283 kB]
Get:83 http://mirrors.sohu.com/debian/ squeeze/main pbzip2 i386 1.1.1-1 [37.8 kB]
Get:84 http://mirrors.sohu.com/debian/ squeeze/main reiserfsprogs i386 1:3.6.21-1 [501 kB]
Get:85 http://mirrors.sohu.com/debian/ squeeze/main rsync i386 3.0.7-2 [338 kB]
Get:86 http://mirrors.sohu.com/debian/ squeeze/main runit i386 2.1.1-6.2 [115 kB]
Get:87 http://mirrors.sohu.com/debian/ squeeze/main sdparm i386 1.02-1 [119 kB]
Get:88 http://mirrors.sohu.com/debian/ squeeze/main tcpdump i386 4.1.1-1 [376 kB]
Get:89 http://mirrors.sohu.com/debian/ squeeze/main tofrodos i386 1.7.8.debian.1-2 [20.1 kB]
Get:90 http://mirrors.sohu.com/debian/ squeeze/main udpcast i386 20100130-2 [75.0 kB]
Get:91 http://mirrors.sohu.com/debian/ squeeze/main ufsutils i386 7.3-1+b1 [145 kB]
Get:92 http://mirrors.sohu.com/debian/ squeeze/main unzip i386 6.0-4 [179 kB]
Get:93 http://mirrors.sohu.com/debian/ squeeze/main vblade i386 20-1 [16.5 kB]
Get:94 http://mirrors.sohu.com/debian/ squeeze/main vblade-persist all 0.6-2 [9,044 B]
Get:95 http://mirrors.sohu.com/debian/ squeeze/main wakeonlan all 0.41-10 [11.4 kB]
Get:96 http://mirrors.sohu.com/debian/ squeeze/main zip i386 3.0-3 [316 kB]  
Get:97 http://mirrors.sohu.com/debian/ squeeze/main dhcp3-server all 4.1.1-P1-15+squeeze3 [25.9 kB]
Get:98 http://mirrors.sohu.com/debian/ squeeze/main dos2unix i386 5.0-2 [32.0 kB]
Get:99 http://mirrors.sohu.com/debian/ squeeze/main hfsutils i386 3.2.6-11 [74.4 kB]
Get:100 http://mirrors.sohu.com/debian/ squeeze/main kpartx i386 0.4.8+git0.761c66f-9 [28.5 kB]
Get:101 http://mirrors.sohu.com/debian/ squeeze/main lbzip2 i386 0.23-1 [55.4 kB]
Get:102 http://mirrors.sohu.com/debian/ squeeze/main netcat all 1.10-38 [6,144 B]
Get:103 http://mirrors.sohu.com/debian/ squeeze/main pigz i386 2.1.6-1 [28.5 kB]
Get:104 http://mirrors.sohu.com/debian/ squeeze/main ssh all 1:5.5p1-6+squeeze1 [1,250 B]
Get:105 http://mirrors.sohu.com/debian/ squeeze/main tftpd-hpa i386 5.0-18 [47.2 kB]
Fetched 37.4 MB in 3min 0s (207 kB/s)                                        
Extracting templates from packages: 100%
Preconfiguring packages ...
Selecting previously deselected package gawk.
(Reading database ... 23104 files and directories currently installed.)
Unpacking gawk (from .../gawk_1%3a3.1.7.dfsg-5_i386.deb) ...
Selecting previously deselected package openssh-blacklist.
Unpacking openssh-blacklist (from .../openssh-blacklist_0.4.1_all.deb) ...
Selecting previously deselected package openssh-blacklist-extra.
Unpacking openssh-blacklist-extra (from .../openssh-blacklist-extra_0.4.1_all.deb) ...
Selecting previously deselected package libslp1.
Unpacking libslp1 (from .../libslp1_1.2.1-7.8_i386.deb) ...
Selecting previously deselected package make.
Unpacking make (from .../archives/make_3.81-8_i386.deb) ...
Selecting previously deselected package libwrap0.
Unpacking libwrap0 (from .../libwrap0_7.6.q-19_i386.deb) ...
Selecting previously deselected package portmap.
Unpacking portmap (from .../portmap_6.0.0-2_i386.deb) ...
Selecting previously deselected package nis.
Unpacking nis (from .../archives/nis_3.17-31_i386.deb) ...
Selecting previously deselected package bc.
Unpacking bc (from .../archives/bc_1.06.95-2_i386.deb) ...
Selecting previously deselected package libcap2.
Unpacking libcap2 (from .../libcap2_1%3a2.19-3_i386.deb) ...
Selecting previously deselected package libbsd0.
Unpacking libbsd0 (from .../libbsd0_0.2.0-1_i386.deb) ...
Selecting previously deselected package libedit2.
Unpacking libedit2 (from .../libedit2_2.11-20080614-2_i386.deb) ...
Selecting previously deselected package libevent-1.4-2.
Unpacking libevent-1.4-2 (from .../libevent-1.4-2_1.4.13-stable-1_i386.deb) ...
Selecting previously deselected package libgssglue1.
Unpacking libgssglue1 (from .../libgssglue1_0.1-4_i386.deb) ...
Selecting previously deselected package libidn11.
Unpacking libidn11 (from .../libidn11_1.15-2_i386.deb) ...
Selecting previously deselected package libnfsidmap2.
Unpacking libnfsidmap2 (from .../libnfsidmap2_0.23-2_i386.deb) ...
Selecting previously deselected package librpcsecgss3.
Unpacking librpcsecgss3 (from .../librpcsecgss3_0.19-2_i386.deb) ...
Selecting previously deselected package nfs-common.
Unpacking nfs-common (from .../nfs-common_1%3a1.2.2-4_i386.deb) ...
Selecting previously deselected package openssh-client.
Unpacking openssh-client (from .../openssh-client_1%3a5.5p1-6+squeeze1_i386.deb) ...
Selecting previously deselected package patch.
Unpacking patch (from .../archives/patch_2.6-2_i386.deb) ...
Selecting previously deselected package tcpd.
Unpacking tcpd (from .../tcpd_7.6.q-19_i386.deb) ...
Selecting previously deselected package aoetools.
Unpacking aoetools (from .../aoetools_30-3_i386.deb) ...
Selecting previously deselected package binutils.
Unpacking binutils (from .../binutils_2.20.1-16_i386.deb) ...
Selecting previously deselected package btrfs-tools.
Unpacking btrfs-tools (from .../btrfs-tools_0.19+20100601-3_i386.deb) ...
Selecting previously deselected package bzip2.
Unpacking bzip2 (from .../bzip2_1.0.5-6_i386.deb) ...
Selecting previously deselected package openssl.
Unpacking openssl (from .../openssl_0.9.8o-4squeeze3_i386.deb) ...
Selecting previously deselected package ca-certificates.
Unpacking ca-certificates (from .../ca-certificates_20090814+nmu3squeeze1_all.deb) ...
Selecting previously deselected package clonezilla.
Unpacking clonezilla (from .../clonezilla_2.3.58-1drb1_all.deb) ...
Selecting previously deselected package libssh2-1.
Unpacking libssh2-1 (from .../libssh2-1_1.2.6-1_i386.deb) ...
Selecting previously deselected package libcurl3.
Unpacking libcurl3 (from .../libcurl3_7.21.0-2_i386.deb) ...
Selecting previously deselected package curl.
Unpacking curl (from .../curl_7.21.0-2_i386.deb) ...
Selecting previously deselected package dialog.
Unpacking dialog (from .../dialog_1.1-20100428-1_i386.deb) ...
Selecting previously deselected package discover-data.
Unpacking discover-data (from .../discover-data_2.2010.10.18_all.deb) ...
Selecting previously deselected package libdiscover2.
Unpacking libdiscover2 (from .../libdiscover2_2.1.2-5_i386.deb) ...
Selecting previously deselected package discover.
Unpacking discover (from .../discover_2.1.2-5_i386.deb) ...
Selecting previously deselected package disktype.
Unpacking disktype (from .../archives/disktype_9-1_i386.deb) ...
Selecting previously deselected package libdmraid1.0.0.rc16.
Unpacking libdmraid1.0.0.rc16 (from .../libdmraid1.0.0.rc16_1.0.0.rc16-4.1_i386.deb) ...
Selecting previously deselected package dmraid.
Unpacking dmraid (from .../dmraid_1.0.0.rc16-4.1_i386.deb) ...
Selecting previously deselected package etherwake.
Unpacking etherwake (from .../etherwake_1.09-3_i386.deb) ...
Selecting previously deselected package ethtool.
Unpacking ethtool (from .../ethtool_1%3a2.6.34-3_i386.deb) ...
Selecting previously deselected package tcl8.5.
Unpacking tcl8.5 (from .../tcl8.5_8.5.8-2_i386.deb) ...
Selecting previously deselected package expect.
Unpacking expect (from .../expect_5.44.1.15-4_i386.deb) ...
Selecting previously deselected package fgetty.
Unpacking fgetty (from .../archives/fgetty_0.6-5_i386.deb) ...
Selecting previously deselected package freedos.
Unpacking freedos (from .../freedos_1.0-15drbl_i386.deb) ...
Selecting previously deselected package libfuse2.
Unpacking libfuse2 (from .../libfuse2_2.8.4-1.1_i386.deb) ...
Selecting previously deselected package fuse-utils.
Unpacking fuse-utils (from .../fuse-utils_2.8.4-1.1_i386.deb) ...
Selecting previously deselected package genisoimage.
Unpacking genisoimage (from .../genisoimage_9%3a1.1.11-1_i386.deb) ...
Selecting previously deselected package hdparm.
Unpacking hdparm (from .../hdparm_9.32-1_i386.deb) ...
Selecting previously deselected package hfsprogs.
Unpacking hfsprogs (from .../hfsprogs_332.25-8_i386.deb) ...
Selecting previously deselected package libhal1.
Unpacking libhal1 (from .../libhal1_0.5.14-3_i386.deb) ...
Selecting previously deselected package libhd16.
Unpacking libhd16 (from .../libhd16_16.0-2_i386.deb) ...
Selecting previously deselected package hwinfo.
Unpacking hwinfo (from .../hwinfo_16.0-2_i386.deb) ...
eSelecting previously deselected package ipxe.
Unpacking ipxe (from .../ipxe_20110811-1drbl_i386.deb) ...
Selecting previously deselected package isc-dhcp-server.
Unpacking isc-dhcp-server (from .../isc-dhcp-server_4.1.1-P1-15+squeeze3_i386.deb) ...
Selecting previously deselected package lftp.
Unpacking lftp (from .../archives/lftp_4.0.6-1_i386.deb) ...
Selecting previously deselected package libcrypt-passwdmd5-perl.
Unpacking libcrypt-passwdmd5-perl (from .../libcrypt-passwdmd5-perl_1.3-9_all.deb) ...
Selecting previously deselected package libdigest-sha1-perl.
Unpacking libdigest-sha1-perl (from .../libdigest-sha1-perl_2.13-1_i386.deb) ...
Selecting previously deselected package libntfs-3g75.
Unpacking libntfs-3g75 (from .../libntfs-3g75_1%3a2010.3.6-1_i386.deb) ...
Selecting previously deselected package libntfs10.
Unpacking libntfs10 (from .../libntfs10_2.0.0-1+b1_i386.deb) ...
Selecting previously deselected package libparted0debian1.
Unpacking libparted0debian1 (from .../libparted0debian1_2.3-5_i386.deb) ...
Selecting previously deselected package libpcap0.8.
Unpacking libpcap0.8 (from .../libpcap0.8_1.1.1-2+squeeze1_i386.deb) ...
Selecting previously deselected package libreadline5.
Unpacking libreadline5 (from .../libreadline5_5.2-7_i386.deb) ...
Selecting previously deselected package lshw.
Unpacking lshw (from .../archives/lshw_02.14-1_i386.deb) ...
Selecting previously deselected package lvm2.
Unpacking lvm2 (from .../lvm2_2.02.66-5_i386.deb) ...
Selecting previously deselected package lzip.
Unpacking lzip (from .../archives/lzip_1.10-1_i386.deb) ...
Selecting previously deselected package lzma.
Unpacking lzma (from .../archives/lzma_4.43-14_i386.deb) ...
Selecting previously deselected package lzop.
Unpacking lzop (from .../lzop_1.03-2drbl_i386.deb) ...
Selecting previously deselected package memtest86+.
Unpacking memtest86+ (from .../memtest86+_4.20-1drbl_i386.deb) ...
Selecting previously deselected package mknbi.
Unpacking mknbi (from .../mknbi_1.4.4-7_i386.deb) ...
Selecting previously deselected package mkpxeinitrd-net.
Unpacking mkpxeinitrd-net (from .../mkpxeinitrd-net_1.6.8-1drbl_i386.deb) ...
Selecting previously deselected package mtools.
Unpacking mtools (from .../mtools_4.0.12-1_i386.deb) ...
Selecting previously deselected package nfs-kernel-server.
Unpacking nfs-kernel-server (from .../nfs-kernel-server_1%3a1.2.2-4_i386.deb) ...
Selecting previously deselected package ntfs-3g.
Unpacking ntfs-3g (from .../ntfs-3g_1%3a2010.3.6-1_i386.deb) ...
Selecting previously deselected package ntfsprogs.
Unpacking ntfsprogs (from .../ntfsprogs_2.0.0-1+b1_i386.deb) ...
Selecting previously deselected package openssh-server.
Unpacking openssh-server (from .../openssh-server_1%3a5.5p1-6+squeeze1_i386.deb) ...
Selecting previously deselected package parted.
Unpacking parted (from .../archives/parted_2.3-5_i386.deb) ...
Selecting previously deselected package partimage.
Unpacking partimage (from .../partimage_0.6.8-1_i386.deb) ...
Selecting previously deselected package pbzip2.
Unpacking pbzip2 (from .../pbzip2_1.1.1-1_i386.deb) ...
Selecting previously deselected package reiserfsprogs.
Unpacking reiserfsprogs (from .../reiserfsprogs_1%3a3.6.21-1_i386.deb) ...
Selecting previously deselected package rsync.
Unpacking rsync (from .../rsync_3.0.7-2_i386.deb) ...
Selecting previously deselected package runit.
Unpacking runit (from .../runit_2.1.1-6.2_i386.deb) ...
Selecting previously deselected package sdparm.
Unpacking sdparm (from .../sdparm_1.02-1_i386.deb) ...
Selecting previously deselected package syslinux-common.
Unpacking syslinux-common (from .../syslinux-common_2%3a4.04+dfsg-2drbl1_all.deb) ...
Selecting previously deselected package syslinux.
Unpacking syslinux (from .../syslinux_2%3a4.04+dfsg-2drbl1_i386.deb) ...
Selecting previously deselected package tcpdump.
Unpacking tcpdump (from .../tcpdump_4.1.1-1_i386.deb) ...
Selecting previously deselected package tofrodos.
Unpacking tofrodos (from .../tofrodos_1.7.8.debian.1-2_i386.deb) ...
Selecting previously deselected package udpcast.
Unpacking udpcast (from .../udpcast_20100130-2_i386.deb) ...
Selecting previously deselected package ufsutils.
Unpacking ufsutils (from .../ufsutils_7.3-1+b1_i386.deb) ...
Selecting previously deselected package unzip.
Unpacking unzip (from .../archives/unzip_6.0-4_i386.deb) ...
Selecting previously deselected package vblade.
Unpacking vblade (from .../archives/vblade_20-1_i386.deb) ...
Selecting previously deselected package vblade-persist.
Unpacking vblade-persist (from .../vblade-persist_0.6-2_all.deb) ...
Selecting previously deselected package wakeonlan.
Unpacking wakeonlan (from .../wakeonlan_0.41-10_all.deb) ...
Selecting previously deselected package zip.
Unpacking zip (from .../archives/zip_3.0-3_i386.deb) ...
Selecting previously deselected package dhcp3-server.
Unpacking dhcp3-server (from .../dhcp3-server_4.1.1-P1-15+squeeze3_all.deb) ...
Selecting previously deselected package dos2unix.
Unpacking dos2unix (from .../dos2unix_5.0-2_i386.deb) ...
Selecting previously deselected package drbl-chntpw.
Unpacking drbl-chntpw (from .../drbl-chntpw_0.0.20040818-7_i386.deb) ...
Selecting previously deselected package hfsutils.
Unpacking hfsutils (from .../hfsutils_3.2.6-11_i386.deb) ...
Selecting previously deselected package kpartx.
Unpacking kpartx (from .../kpartx_0.4.8+git0.761c66f-9_i386.deb) ...
Selecting previously deselected package lbzip2.
Unpacking lbzip2 (from .../lbzip2_0.23-1_i386.deb) ...
Selecting previously deselected package mkswap-uuid.
Unpacking mkswap-uuid (from .../mkswap-uuid_0.1.1-1_i386.deb) ...
Selecting previously deselected package netcat.
Unpacking netcat (from .../netcat_1.10-38_all.deb) ...
Selecting previously deselected package partclone.
Unpacking partclone (from .../partclone_0.2.24-2drbl_i386.deb) ...
Selecting previously deselected package pigz.
Unpacking pigz (from .../archives/pigz_2.1.6-1_i386.deb) ...
Selecting previously deselected package ssh.
Unpacking ssh (from .../ssh_1%3a5.5p1-6+squeeze1_all.deb) ...
Selecting previously deselected package tftpd-hpa.
Unpacking tftpd-hpa (from .../tftpd-hpa_5.0-18_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for install-info ...
Setting up gawk (1:3.1.7.dfsg-5) ...
Setting up openssh-blacklist (0.4.1) ...
Setting up openssh-blacklist-extra (0.4.1) ...
Setting up libslp1 (1.2.1-7.8) ...
Setting up make (3.81-8) ...
Setting up libwrap0 (7.6.q-19) ...
Setting up portmap (6.0.0-2) ...
Starting portmap daemon....
Setting up nis (3.17-31) ...
Stopping NIS services: ypbind ypserv ypppasswdd ypxfrd.
Setting NIS domainname to: localdomain.
Starting NIS services:.
dpkg: version 'nis_3.17-18' has bad syntax: invalid character in version number
Setting up bc (1.06.95-2) ...
Setting up libcap2 (1:2.19-3) ...
Setting up libbsd0 (0.2.0-1) ...
Setting up libedit2 (2.11-20080614-2) ...
Setting up libevent-1.4-2 (1.4.13-stable-1) ...
Setting up libgssglue1 (0.1-4) ...
Setting up libidn11 (1.15-2) ...
Setting up libnfsidmap2 (0.23-2) ...
Setting up librpcsecgss3 (0.19-2) ...
Setting up nfs-common (1:1.2.2-4) ...

Creating config file /etc/idmapd.conf with new version

Creating config file /etc/default/nfs-common with new version
Adding system user `statd' (UID 102) ...
Adding new user `statd' (UID 102) with group `nogroup' ...
Not creating home directory `/var/lib/nfs'.
Starting NFS common utilities: statd.
Setting up openssh-client (1:5.5p1-6+squeeze1) ...
Setting up patch (2.6-2) ...
Setting up tcpd (7.6.q-19) ...
Setting up aoetools (30-3) ...
Starting AoE devices discovery and mounting AoE filesystems: not started.
Setting up binutils (2.20.1-16) ...
Setting up btrfs-tools (0.19+20100601-3) ...
Setting up bzip2 (1.0.5-6) ...
Setting up openssl (0.9.8o-4squeeze3) ...
Setting up ca-certificates (20090814+nmu3squeeze1) ...
Updating certificates in /etc/ssl/certs... WARNING: Skipping duplicate certificate ca-certificates.crt
140 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
Setting up clonezilla (2.3.58-1drb1) ...
Setting up libssh2-1 (1.2.6-1) ...
Setting up libcurl3 (7.21.0-2) ...
Setting up curl (7.21.0-2) ...
Setting up dialog (1.1-20100428-1) ...
Setting up discover-data (2.2010.10.18) ...
Setting up libdiscover2 (2.1.2-5) ...
Setting up discover (2.1.2-5) ...
Setting up disktype (9-1) ...
Setting up libdmraid1.0.0.rc16 (1.0.0.rc16-4.1) ...
Setting up dmraid (1.0.0.rc16-4.1) ...
update-initramfs: deferring update (trigger activated)
Setting up etherwake (1.09-3) ...
Setting up ethtool (1:2.6.34-3) ...
Setting up tcl8.5 (8.5.8-2) ...
update-alternatives: using /usr/bin/tclsh8.5 to provide /usr/bin/tclsh (tclsh) in auto mode.
Setting up expect (5.44.1.15-4) ...
Setting up fgetty (0.6-5) ...
Setting up freedos (1.0-15drbl) ...
Setting up libfuse2 (2.8.4-1.1) ...
Setting up fuse-utils (2.8.4-1.1) ...
creating fuse group...
Adding group `fuse' (GID 106) ...
Done.
udev active, skipping device node creation.
Setting up genisoimage (9:1.1.11-1) ...
Setting up hdparm (9.32-1) ...
Setting up hfsprogs (332.25-8) ...
Setting up libhal1 (0.5.14-3) ...
Setting up libhd16 (16.0-2) ...
Setting up hwinfo (16.0-2) ...
Setting up ipxe (20110811-1drbl) ...
Setting up isc-dhcp-server (4.1.1-P1-15+squeeze3) ...
Generating /etc/default/isc-dhcp-server...
Starting ISC DHCP server: dhcpdcheck syslog for diagnostics. ... failed!
 failed!
invoke-rc.d: initscript isc-dhcp-server, action "start" failed.
Setting up lftp (4.0.6-1) ...
Setting up libcrypt-passwdmd5-perl (1.3-9) ...
Setting up libdigest-sha1-perl (2.13-1) ...
Setting up libntfs-3g75 (1:2010.3.6-1) ...
Setting up libntfs10 (2.0.0-1+b1) ...
Setting up libparted0debian1 (2.3-5) ...
Setting up libpcap0.8 (1.1.1-2+squeeze1) ...
Setting up libreadline5 (5.2-7) ...
Setting up lshw (02.14-1) ...
Setting up lvm2 (2.02.66-5) ...
Setting up LVM Volume Groups  Reading all physical volumes.  This may take a while...
  No volume groups found
  No volume groups found
  No volume groups found
.
update-initramfs: deferring update (trigger activated)
Setting up lzip (1.10-1) ...
Setting up lzma (4.43-14) ...
Setting up lzop (1.03-2drbl) ...
Setting up memtest86+ (4.20-1drbl) ...
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-5-686
Found initrd image: /boot/initrd.img-2.6.32-5-686
Found memtest86+ image: /memtest86+.bin
Found memtest86+ multiboot image: /memtest86+_multiboot.bin
done
Setting up mknbi (1.4.4-7) ...
Setting up mkpxeinitrd-net (1.6.8-1drbl) ...
Setting up mtools (4.0.12-1) ...
Setting up nfs-kernel-server (1:1.2.2-4) ...

Creating config file /etc/exports with new version

Creating config file /etc/default/nfs-kernel-server with new version
Starting NFS common utilities: statd.
Exporting directories for NFS kernel daemon....
Starting NFS kernel daemon: nfsd mountd.
Setting up ntfs-3g (1:2010.3.6-1) ...
Setting up ntfsprogs (2.0.0-1+b1) ...
Setting up openssh-server (1:5.5p1-6+squeeze1) ...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Restarting OpenBSD Secure Shell server: sshd.
Setting up parted (2.3-5) ...
Setting up partimage (0.6.8-1) ...
Setting up pbzip2 (1.1.1-1) ...
Setting up reiserfsprogs (1:3.6.21-1) ...
Setting up rsync (3.0.7-2) ...
update-rc.d: using dependency based boot sequencing
Setting up runit (2.1.1-6.2) ...
Setting up sdparm (1.02-1) ...
Setting up syslinux-common (2:4.04+dfsg-2drbl1) ...
Setting up syslinux (2:4.04+dfsg-2drbl1) ...
Setting up tcpdump (4.1.1-1) ...
Setting up tofrodos (1.7.8.debian.1-2) ...
Setting up udpcast (20100130-2) ...
Setting up ufsutils (7.3-1+b1) ...
Setting up unzip (6.0-4) ...
Setting up vblade (20-1) ...
Setting up vblade-persist (0.6-2) ...
Setting up wakeonlan (0.41-10) ...
Setting up zip (3.0-3) ...
Setting up dhcp3-server (4.1.1-P1-15+squeeze3) ...
Setting up dos2unix (5.0-2) ...
Setting up drbl-chntpw (0.0.20040818-7) ...
Setting up hfsutils (3.2.6-11) ...
Setting up kpartx (0.4.8+git0.761c66f-9) ...
Setting up lbzip2 (0.23-1) ...
Setting up mkswap-uuid (0.1.1-1) ...
Setting up netcat (1.10-38) ...
Setting up partclone (0.2.24-2drbl) ...
Setting up pigz (2.1.6-1) ...
Setting up ssh (1:5.5p1-6+squeeze1) ...
Setting up tftpd-hpa (5.0-18) ...

tftpd-hpa directory (/tftpboot/nbi_img) already exists, doing nothing.
Starting HPA's tftpd: in.tftpd.
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.32-5-686
localepurge: Disk space freed in /usr/share/locale: 7695 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB

Total disk space freed by localepurge: 7695 KiB

*****************************************************.
*****************************************************.
如果找到新版的程序,尝试升级某些需要的程序...
*****************************************************.
在 ayo 仓库中寻找最新的  kernel ...
在 ayo 仓库中最新的内核是 linux-image-2.6.32-5-686
有两个可用的内核给客户端电脑用,您要选择哪一个?
[1]: kernel 2.6.32-5-686 i686 (来自于这台DRBL服务器)
[2]: linux-image-2.6.32-5-686 (来自于apt的仓库)
[1] 1
Clients will use the kernel 2.6.32-5-686 i686 from server.
安装这个内核可能需要一些时间,请耐心等候... 
完成!
*****************************************************.
安装客户端电脑所需的内核 ...
在 ayo 仓库中寻找最新的 kernel ...
*****************************************************.
Now run: drblsrv-offline -c -d -a -l zh_CN.UTF-8 -s 2.6.32-5-686 "" ""
Using kernel from this server for client...
*****************************************************.
您的操作系统版本: Debian 6.0.3
*****************************************************.
*****************************************************.
安装客户端电脑所需的内核 ... 
The kernel for client is copied from server.
Installing kernel 2.6.32-5-686 for clients... 
安装这个内核可能需要一些时间,请耐心等候... ...完成!
Generating modules.dep and map files for clients... done!
Preparing the kernel firmware for clients...
Found /boot/memtest86+.bin
/boot/memtest86+_multiboot.bin in this system, copying the memtest file to DRBL local repository...
Putting memtest86+ in DRBL package repository /opt/drbl/pkg/memtest86+/... 
Memtest86+ version: Memtest86  v4.20      
done!
Found /usr/lib/syslinux/pxelinux.0 in this system, copying the PXELinux files to DRBL local repository...
Putting required pxelinux files in DRBL package repository /opt/drbl/pkg/syslinux/... 
PXELinux version: PXELINUX 4.04 20110530 
done!
*****************************************************.
建立PXE网络开机的配置文件...
Copying pxelinux.0, gpxelinux.0, menu.c32, vesamenu.c32, chain.c32, mboot.c32, sanboot.c32 and memdisk to /tftpboot/nbi_img...
Copying memtest86+ to /tftpboot/nbi_img...
Copying FreeDOS files to /tftpboot/nbi_img/... 
Generating default pxelinux config (/tftpboot/nbi_img/pxelinux.cfg/default)...
Use com32 module: vesamenu.c32
Adding menus for DRBL, local boot, memtest86+, FreeDOS...
done!
*****************************************************.
*****************************************************.
产生客户端PXE与Etherboot网络开机用的文件,这可能需要几分钟...
客户端电脑使用的最新内核是 2.6.32-5-686
Running mknic-nbi --kernel 2.6.32-5-686 --all --no-modules
Will client check DHCP server name is "drbl" or not: yes
The maximum times to try to get IP address for a client: 5
The pause time after network card is up: 0
The timeout to wait for network card linked (Unit: 0.1 secs): 70
Setting port for udhcpc request to default...
Using the kernel modules from /tftpboot/node_root//lib/modules...
The selected kernel for DRBL clients is: 2.6.32-5-686
Kernel 2.6 or 3 was found, so default to use initramfs.
Creating the network boot initrd for PXE clients by: mkpxeinitrd-net -k 2.6.32-5-686 -t initramfs   -nf 
Use kernel modules from /tftpboot/node_root//lib/modules/2.6.32-5-686.
Trying to include network card firmwares if they exist in /tftpboot/node_root//lib/firmware/...
Calling hook udev...
find: `/lib64/': No such file or directory
Creating the initRAMFS image...
Initramfs, remove ramdisk_size/ramdisk_block in /tftpboot/nbi_img/pxelinux.cfg/default if exists...
Finished!
完成!
*****************************************************.
完成!
root@TeliuTe:~# 
头像
YeLee
论坛版主
帖子: 26406
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
联系:

Re: 个人操作使用记录

#21

帖子 YeLee » 2012-01-20 9:24

:em11 :em11 :em11 不错,支持一下。
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 个人操作使用记录

#22

帖子 TeliuTe » 2012-01-20 13:22

drblpush -i

代码: 全选

root@TeliuTe:~# /opt/drbl/sbin/drblpush -i
******************************************************
提示!当有yes/no选项的时候,默认的值是大写的字母。例如(y/N),默认值是"N",当您按"Enter"的时候,程序使用的值就是"N"。如果您不确认选择哪个好的时候,直接按"Enter"键是一个保险的方式。
******************************************************
正在搜索DRBL服务器中已经安装的相关程序...这可能需要几分钟...
完成寻找DRBL服务器所需的相关程序。
******************************************************
------------------------------------------------------
这是一个交互模式,在设置DRBL环境的过程中,您必须提供相关资料
------------------------------------------------------
------------------------------------------------------
请输入域名(DNS domain),例如drbl.sf.net:
[drbl.name] teliute.org
您设定的域名(DOMAIN)是 teliute.org
------------------------------------------------------
请输入NIS/YP域名:
[penguinzilla] teliute
您设定的域名(DOMAIN)是 teliute
------------------------------------------------------
请输入客户端主机名称的前缀:
这个前缀是用来自动生成客户端主机名称的,如果您有部分或者全部机器不使用这个自动产生的主机名称,您想自己指定用户主机名称,现在可以按Ctrl-C退出这个程序,编辑/opt/drbl/conf/client-ip-hostname后,再执行这个程序。
[TeliuTe] st-
您设定的客户端计算机的主机名称的前缀是 st-
------------------------------------------------------
eth1: IP address 10.0.2.15, netmask 255.255.255.0
在您的系统上找到已经设置好的以太网卡有: eth1 
------------------------------------------------------
没有找到这台服务器的公开IP地址,
哪个网卡是这台服务器用来连接到互联网的,而不是给DRBL环境使用的?
这台服务器有的以太网卡:
eth1 (10.0.2.15), 
[eth1] 
您所选择连接到广域网的以太网卡是: eth1
///警告/// 在这台机器上只有找到一个设置好的网卡,我们不建议您这样做。因为这台DRBL服务器将会提供DHCP服务,只有一个网卡可能会扰乱您现有的网络环境,特别是您一竟有一个现存的DHCP服务和这个网卡通过网络交换机连接在一起。建议您至少使用两个网卡来避免这个问题。
您确认要继续执行?
[y/N] y
******************************************************
Found class A or B private IP "10.0.2.15" in eth1 for your DRBL system! 如果您要在再生龙中使用多播(multicast),您一定要使用C类的私有IP地址(192.168.*.*)!要不然多播效果会非常的差!
******************************************************
按"Enter"键来继续... 
******************************************************
******************************************************
现在我们可以收集客户端计算机网卡的MAC地址(MAC Address)!
通过这个收集的步骤可以帮助您的DRBL环境让客户端计算机每次开机都可以取得相同的IP,
如果您没有客户端计算机网卡的MAC地址存档时,您现在就应该做!
如果您已经有客户端计算机网卡的MAC地址存档时,您也可以把那些MAC地址排序分组后,一行一行地填在文件中(文件的数量就是您DRBL分流网卡的个数),那么,这个步骤您就可以略过。
这个步骤就是帮您侦测MAC地址,然后保存到文件中,省去您抄录MAC地址的时间以及可能的抄写错误
客户端计算机的网卡MAC地址将会按照您客户端计算机的开机顺序被记录下来。
所收集到底网卡MAC地址将会依照客户端计算机连到DRBL服务器的网卡来给文件名,保存下来的文件名如macadr-eth1.txt、macadr-eth2.txt... 您可以在/etc/drbl/目录下找到这些文件。
请先将客户端计算机设置为网络开机(etherboot或是PXE),并依照您想要排列的顺序开机!
您是否要收集客户端计算机的网卡MAC地址?
[y/N] y
******************************************************
开始进行...
request_eth_port:eth1
Stopping isc-dhcp-server ...
Stopping ISC DHCP server: dhcpd failed!
Stopping tftpd-hpa ...
Stopping HPA's tftpd: in.tftpd.
*****************************************************.
开始监测与收集客户端的MAC address....
输入1或是按Enter键来看目前收集的状态。
输入2或是q来结束收集。
1
=======================================
Total: 0
=======================================
输入1或是按Enter键来看目前收集的状态。
输入2或是q来结束收集。
1 
=======================================
Total: 0
=======================================
输入1或是按Enter键来看目前收集的状态。
输入2或是q来结束收集。

=======================================
Total: 0
=======================================
输入1或是按Enter键来看目前收集的状态。
输入2或是q来结束收集。

=======================================
Total: 0
=======================================
输入1或是按Enter键来看目前收集的状态。
输入2或是q来结束收集。
2
*****************************************************.
收集到的客户端硬件MAC地址(由 [eth1] )个別被存在这些文件中: macadr-eth1.txt.
这些文件被报存在目录/etc/drbl中。
******************************************************
继续...
******************************************************
您是否要让DRBL服务器的DHCP服务每次都分配相同的IP给客户端计算机(要使用这个选项,您必须已经收集好客户端计算机的网卡MAC地址(如前述的步骤)并且保存在文件中),这是针对连接到DRBL服务器网卡的 eth1 ?
[y/N] y
******************************************************
请输入记录网卡MAC地址的文件名,这是针对连接到DRBL服务器网卡的 eth1.
[macadr-eth1.txt] 
Hostmin: 10.0.2.1
******************************************************
这个域的客户端计算机中,起始的IP的4组数字中,最后一组数字的起始值是(也就是IP a.b.c.d的d的起始值)?这是针对连接到DRBL服务器网卡的 eth1.
[1] 2
******************************************************
您设置的文件名是 "macadr-eth1.txt".
这个文件中客户端的计算机数量是 0.
我们将设置这些客户端计算机的IP为,这是针对连接到DRBL服务器网卡的 eth1 依据设置的网卡MAC地址记录文件,这些客户端的IP,连接到网卡 eth1 因为: 10.0.2.2 - 10.0.2.1
接受 ? [Y/n] 
******************************************************
继续...
******************************************************
您的DRBL环境配置: 
******************************************************
          NIC    NIC IP                    Clients
+-----------------------------+
|         DRBL SERVER         |
|                             |
|    +-- [eth1] 10.0.2.15 +- to WAN
|                             |
|    +-- [eth1] 10.0.2.15 +- to clients group 1 [ 0 clients, their IP 
|                             |            from 10.0.2.2 - 10.0.2.1]
+-----------------------------+
******************************************************
Total clients: 0
******************************************************
按"Enter"键来继续... 
******************************************************
------------------------------------------------------
本系统中,有3种模式可以提供无盘的Linux服务给客户端使用:
[0] 完全DRBL模式(Full DRBL mode),每个客户端都有自己的/etc和/var(基于NFS)。
[1] 单一系统映像文件模式(DRBL SSI, single system image),每个客户端都使用tmpfs(以内存来当虚拟磁盘)的/etc和/var。此模式中,Clonezilla服务器的负载和所需的硬盘空间会少一些。但是请注意!这个模式中,(a)客户端计算机的内存建议至少要256MB以上,(b)客户端计算机的系统设置并不会保存到服务器中。所有开机后的系统设置只会使用一次,关机后就会消失。此外,如果您修改过任何范本机器的设置文件(也就是位于/tftpboot/nodes下的设置文件),您要再执行/opt/drbl/sbin/drbl-gen-ssi-files来生成新的tarball范本文件于/tftpboot/node_root/drbl_ssi/中,(c)如果您要针对某些客户端设置一些特别的文件,可以参考/tftpboot/node_root/drbl_ssi/clients/00_README。
[2] 不要提供无盘Linux服务给客户端使用。
您要选择哪一个模式?
[0] 1 
要使用企鹅龙单一系统映像文件模式,较为简单快捷的模式将会被使用!
******************************************************
------------------------------------------------------
本系统中,Clonezilla再生龙有4个模式可以选择:
[0] 完全模式(Full clonezilla mode),每个客户端都有自己的/etc和/var(基于NFS)。
[1] 
[1] 再生龙盒模式(Clonezilla box mode),每个客户端都使用tmpfs(以内存来当虚拟磁盘)的/etc和/var。此模式中,Clonezilla服务器的负载和所需的硬盘空间会少一些。但是请注意!这个模式中,客户端计算机的系统设置文件并不会报存在服务器中。所有开机后的系统设置只会使用一次,然后关机后就会消失!
[2] 我不要使用再生龙。
[3] 使用Clonezilla live当作用户端做clonezilla工作时的操作系统(测试中)。
您要选择哪一个模式?
[0] 1
只要单独使用再生龙模式,简单快捷的模式将会被使用!
******************************************************
******************************************************
用户端执行Clonezilla的工作时,选用的CPU架构是: generic
------------------------------------------------------
使用再生龙的时候,您要把映像文件报存在这台机器的哪个目录中(请使用绝对路径,并且不要指定在/mnt/、/media/或者/tmp/下)?
[/home/partimag] 
Directory for clonezilla saved images: /home/partimag
------------------------------------------------------
如果您的客户端计算机有硬盘,其中有交换分区(swap partition)或者是可写的文件系统,您是否要使用该交换分区或者在上面生成一个交换文件来作虚拟内存,
以便客户端的计算机可以使用需要更多内存的程序?(这个步骤不会损坏硬盘中原有的资料)
[Y/n] y
******************************************************
确定要在客户端计算机硬盘中生成一个交换文件!
------------------------------------------------------
交换文件要使用多少硬盘空间(Megabytes)?
我们会试着按照您指定的交换文件的大小进行配置,但是如果可写的空间如果不够的话,我们只会使用可用空间的60%。
[128] 
maxswapsize=128
******************************************************
------------------------------------------------------
客户端开机后要进入哪一种模式?
"1" 图形模式(默认),
"2" 文字模式。
[1] 1
客户端开机后为图形模式。
******************************************************
------------------------------------------------------
客户端开机进入图形模式后,您可以选择登入的种类:
(0)一般登入、(1)自动登入、(2)限时登入
[0] 1
您是否要让程序使用随机数生成客户端自动登入的密码?
[Y/n] n
输入客户端自动登入帐号的密码。
客户端自动登入帐号的密码是什么(您输入的字符不会在屏幕上显示出来)?
再次输入密码(您输入的字符不会在屏幕上显示出来)。
客户端开机后自动登入。
******************************************************
[0] 帐号将会被生成,以便自动登入使用。
自动登入的帐号名称与该客户端计算机的名称相同。
所生成的帐号和密码将会被列在这个文件中 "/etc/drbl/auto_login_id_passwd.txt"
------------------------------------------------------
基于安全考虑,您是否要为客户端计算机设置管理员密码(默认为复制DRBL服务器的管理员密码给客户端计算机管理员使用)? 
[y/N] 
继续...
------------------------------------------------------
基于安全考虑,您是否要为客户端计算机设置开机密码?
[y/N] n
继续...
------------------------------------------------------
您是否要在客户端计算机开机的时候允许用户选择自己所要的操作系统?
[Y/n] 
客户端计算机开机,出现提示符时需要等待多少个0.1秒?
[70] 
继续...
------------------------------------------------------
------------------------------------------------------
您是否要在客户端计算机开机的时候使用图形背景的菜单?
注意!如果您的客户端使用图形背景无法正常开机,您可以使用"/opt/drbl/sbin/switch-pxe-bg-mode -m text"来切换成文字模式的背景。
[Y/n] 
Use graphic PXE Linux menu for the client.
------------------------------------------------------
------------------------------------------------------
您是否要让所有使用者在客户端可以使用声音、光驱、软驱、视频和移动设备(例如USB闪盘)等装置?如果回答yes,我们将会把所有使用者加到这台服务器与客户端的这些设备群组中。
[Y/n] 
继续...
------------------------------------------------------
------------------------------------------------------
使用别名方式,每台客户端计算机可以拥有2个IP,
其中一个为私有IP,用来连接到DRBL服务器,另一个公开IP使用来直接通过网卡连接到互联网使用!
您是否要为每台客户端计算机设置公开IP?
[y/N] 
------------------------------------------------------
您是否要让DRBL客户端可以选择使用终端机(Terminal)模式?也就是说,您要让客户端计算机执行DRBL服务器的远程显示(remote display) (这会大部分使用服务器的资源),请在此回答"Y"。
请注意!
0. 如果开启这个模式,客户端的环境是非常有限的,例如客户端无法直接使用USB、CD、声音、打印机等。
1. 如果您的DRBL服务器不够强,您最好在此回答"no"。
2. 如果您在此回答"yes",我们会开启XDMCP让用户来连接,
开启XDMCP永远不会是一个安全的作法,一个可行的方式是另外设置/etc/hosts.allow以及/etc/hosts.deny来让您的客户端计算机连接,但是还不是最安全的。
在防火墙中设置网卡177的规则是一个最安全的作法。
您可以阅读XDMCP的相关手册来了解相关细节。
请您自己根据您的需要来设置这些规则。
3. 如果这里回答"yes",待会儿您可能必须要重新启动X视窗的桌面环境管理程序(gdm/kdm),在关闭所有的应用程序之前请记得保存您的资料!
您是否要开放终端机(Terminal)模式给客户端选用?
[y/N] 
继续...
------------------------------------------------------
------------------------------------------------------
您是否要让DRBL服务器也能提供NAT服务(也就是一般俗称的IP共享功能)?如果不要的话,DRBL客户端计算机将无法连接到互联网。
[Y/n] n
这台DRB服务器未提供NAT服务(也就是一般俗称的IP共享功能),DRBL客户端计算机将无法连接到互联网。
******************************************************
DRBL服务器目前使用的内核支持 NFS over TCP!
【注意】如果您改变DRBL服务器目前使用的内核版本,并且不确认那个内核是否支持基于UDP或者TCP的NFS,您最好重新执行"drblpush -i"以免客户端计算机开不了机!
按"Enter"键来继续... 
------------------------------------------------------
******************************************************
The calculated NETWORK for eth1 is 10.0.2.0.
******************************************************
******************************************************
现在准备部署这些文件到系统中!
您要继续执行么?
警告!如果您继续执行,您的防火墙规则将会被改写!
原来的规则将会被备份为iptables.drblsave于系统的设置目录中(/etc/sysconfig或者/etc/default)。
[Y/n] 
******************************************************
开始进行...
------------------------------------------------------
Checking the necessary disk space... done!
Copying the config file to /etc/drbl... done!
Backup the original /etc/hosts as /etc/hosts.drblsave... done!
Generate the /etc/hosts for clients connected to eth1... done!
Cleaning the stale files of the diskless nodes if they exist... done!
Backuping the old MAC address files... done!
*****************************************************.
*****************************************************.
The version number for your GNU/Linux: DBN6.0.3
Keeping the old common root files if they exist... 
Keeping old nodes if they exist... 
Creating common root files... This might take several minutes....Generating locale en_US.UTF-8 by: localedef -f UTF-8 -i en_US en_US.UTF-8... done!
....... done!
Update the kernel for client if necessary... 
The DRBL client uses i686 kernel with version 2.6.32-5-686...
Trying to update the /tftpboot/node_root/lib/modules/2.6.32-5-686 from server's /lib/modules/... This might take several minutes...
Found kernel modules in /lib/modules/2.6.32-5-686 and its arch "i686" matches client's "i686"...
Syncing /lib/modules/2.6.32-5-686 to client's common root...
Syncing /boot/*-2.6.32-5-686* to client's common root...
Generating the /tftpboot/node_root/lib/modules/2.6.32-5-686/modules.dep
Syncing /lib/firmware/ to client's common root...
Copying the directory /etc/ to clients common root /tftpboot/node_root...
Cleaning the ssh key file ssh_host_dsa_key copied from server... done!
Cleaning the ssh key file ssh_host_dsa_key.pub copied from server... done!
Cleaning the ssh key file ssh_host_rsa_key copied from server... done!
Cleaning the ssh key file ssh_host_rsa_key.pub copied from server... done!
Commenting the TCPwrapper related file /tftpboot/node_root/etc/hosts.deny copied from server... done!
Commenting the TCPwrapper related file /tftpboot/node_root/etc/hosts.allow copied from server... done!
Warning! Unable to find the fine-tune file /opt/drbl/setup/files/DBN/DBN6.0.3/firstboot.DBN6.0.3.drbl, use /opt/drbl/setup/files/DBN/firstboot.default-DBN.drbl as /etc/init.d/firstboot for DRBL clients!
This may cause some problems to DRBL clients!
The startup services for DRBL client are:
firstboot portmap nis nfs-common ssh dbus drblthincli mkswapfile arm-wol sendsigs umountfs
Using udev for clients... The default display manager is NOT found! We can NOT set text or graphic mode for Debian DRBL client.
Deleting the accounts (except root) in the clients common root template... done!
Enabling the NIS client in the common root template... done!
Creating some necessary files in the clients common root template...... done!
Template client for DRBL SSI, Clonezilla box mode or Clonezilla live client is 
Using template host 
basename: missing operand
Try `basename --help' for more information.
Usage: /opt/drbl/sbin/drbl-gen-ssh-host-keys [OPTION] {generate|clean|regenerate} Client_IP_LIST
Options:
-v, --verbose:  verbose mode.
Ex: /opt/drbl/sbin/drbl-gen-ssh-host-keys generate 192.168.0.1 will generate the OpenSSH host keys for DRBL client 192.168.0.1.
Generating the files for DRBL single system image template... root... etc... var... opt/drbl... Root's openssh public key... done!
Modifying option diskless_client_os in drbl-ocs.conf...
Disable the password in pxelinux simple menu for all clients... 
Disabling PXE password in config file /tftpboot/nbi_img/pxelinux.cfg/default... 
done!
Now add necessary services to this DRBL server: DHCP, TFTP, NFS, NIS...
Generating the NFS exports for DRBL clients... 
Backup the original /etc/exports as /etc/exports.drblsave
Exporting to clients by IP address line-by-line...
The /etc/exports setting is ok now!
这台DRB服务器未提供NAT服务(也就是一般俗称的IP共享功能),DRBL客户端电脑将无法连到因特网网络.
Now stop the NAT service...
Now set the YP securenets...
Backup the original /etc/ypserv.securenets as /etc/ypserv.securenets.drblsave
The /etc/ypserv.securenets setting is done!
Update YP...
Now add the service:  portmap isc-dhcp-server nis nfs-common nfs-kernel-server tftpd-hpa drbl-clients-nat
Force to add portmap service in this Debian DRBL server...
Force to add isc-dhcp-server service in this Debian DRBL server...
Force to add nis service in this Debian DRBL server...
Force to add nfs-common service in this Debian DRBL server...
Force to add nfs-kernel-server service in this Debian DRBL server...
Force to add tftpd-hpa service in this Debian DRBL server...
Force to add drbl-clients-nat service in this Debian DRBL server...
Now start the service:  portmap isc-dhcp-server nis nfs-common nfs-kernel-server tftpd-hpa drbl-clients-nat
Stopping portmap daemon....
Starting portmap daemon....
Stopping ISC DHCP server: dhcpd failed!
Starting ISC DHCP server: dhcpd.
Stopping NIS services: ypbind ypserv ypppasswdd ypxfrd.
Starting NIS services: ypserv yppasswdd ypxfrd ypbind.
Stopping NFS common utilities: statd.
Starting NFS common utilities: statd.
Stopping NFS kernel daemon: mountd nfsd.
Unexporting directories for NFS kernel daemon....
Exporting directories for NFS kernel daemon....
Starting NFS kernel daemon: nfsd mountd.
Stopping HPA's tftpd: in.tftpd.
Starting HPA's tftpd: in.tftpd.
Stopping the NAT services for DRBL clients... Now stop the NAT service...
done!
Starting the NAT services for DRBL clients... done!
Turn on ip_forward now.
The GDM or KDM config file is NOT found! Skip setting the DM! Maybe you will not be able to make this DRBL server as thin client server!
Clean all the previous saved config file if they exist...done!
Turn on the boot prompt for PXE client...done!
Turn off the thin client option in PXE boot menu...done!
Modifying /tftpboot/nbi_img/pxelinux.cfg/default to let DRBL client use graphical PXE boot menu... done!
DRBL SSI mode. Set clientdir opt for label drbl in pxelinux config... 
Setting drbl_mode="drbl_ssi_mode" in /etc/drbl/drbl_deploy.conf and /etc/drbl/drblpush.conf... done!
Clonezilla box mode. Set clientdir opt for label clonezilla in pxelinux config... 
Setting clonezilla_mode="clonezilla_box_mode" in /etc/drbl/drbl_deploy.conf and /etc/drbl/drblpush.conf... done!
您必须要再执行"/opt/drbl/sbin/dcs" -> clonezilla-start来启动再生龙clonezilla服务,客户端开机的时候也才会出现再生龙的菜单
*****************************************************.
Adding normal users to group "audio cdrom plugdev floppy video"........ done!
*****************************************************.
Updating the YP/NIS for group...
注意! 如果您在DRBL服务器上新增或是移除帐号,您要记得再执行这个指令来更新这些群组(例如:plugdev)的资料:
tune-debian-dev-group-perm -g "audio cdrom plugdev floppy video" -e
*****************************************************.
Enjoy DRBL!!!
http://drbl.nchc.org.tw; http://drbl.name
NCHC Free Software Labs, Taiwan. http://free.nchc.org.tw
*****************************************************.
如果您喜欢,您可以现在把这台DRBL服务器重新开机,确认所有的程序与设定是正确的。(这个步骤不一定要做,只是一个选项供您确认)。
*****************************************************.
DRBL服务器已经就绪! 现在请设定客户端电脑由PXE或是Etherboot开机(参考4步安装法的第四步骤)。打开客户端电脑,然后开始享用DRBL吧!
注意! 如果您的客户端电脑使用Etherboot开机,Etherboot版本必须使用5.4.0或是之后的版本!
PS. drblpush存了一个配置文件在/etc/drbl/drblpush.conf。因此下次如果您要使用同样的配置文件方式来重新执行一次drblpush,可以这样执行: /opt/drbl/sbin/drblpush -c /etc/drbl/drblpush.conf
root@TeliuTe:~# 
快速写日志的
[bash]
#!/bin/bash
cd /home/teliute/log
date>>log
echo $1 >>log[/bash]
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 个人操作使用记录

#23

帖子 TeliuTe » 2012-02-05 22:58

Openbox 中的 pcmanfm 文件夹中没有图标,
只要找个Ubuntu 系统中,进入 /usr/share/icons 复制一个图标文件夹(比如gnome) 到 Openbox 所在系统的相应文件夹即可
然后到自己的主文件夹中,创建一个 .gtkrc-2.0 文件,在里面输入

代码: 全选

gtk-icon-theme-name="gnome"
解压tar文件

代码: 全选

tar -xf gnome.tar
Vbox 运行的时候可以更改网络连接方式,点“设备-更改网络连接”,选择一个确定
然后回到 Openbox 中,点右键选择“重启”

注释这一句(httpd.conf)里的,可以禁止用户访问网站目录

代码: 全选

Options Indexes FollowSymLinks ExecCGI Includes
设置短密码

代码: 全选

sudo passwd st
解锁用户

代码: 全选

sudo passwd -u st
更改用户组

代码: 全选

sudo usermod -g nogroup  st
修改当前用户的密码 

代码: 全选

passwd
修改其他用户密码 

代码: 全选

sudo passwd 用户名
上次由 TeliuTe 在 2012-02-13 17:53,总共编辑 1 次。
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 个人操作使用记录

#24

帖子 TeliuTe » 2012-02-13 12:28

记录一些突发奇想:

代码: 全选

1、学生机上要安装程序,下载安装包然后挂在校园网里让学生下载安装,比如vbox,缺点是调用软件中心非常慢,要不先下载安装 gdeb 好用
2、先vbox个xp,这个要常用些,然后把win7和w2k的iso挂到校园网里让下载了练习
3、italc如果找不到学生机就让两个先看找得到的机子
4、有可能就找个学生机装个64位的系统专门当校园网的服务器
5、用tar压缩显示输入法小键盘的脚本以保留权限,然后解压运行
6、创建用户,注销、关机、登录,调出输入法,设置输入法


代码: 全选

安装6.3的ccprox然后用6.2的来覆盖,火狐占用1080导致ccprox不能使用scock代理,后开火狐即可
下次装系统时要注意的地方

代码: 全选

创建用户的时候上面的全名可以用中文,下面的用户名不能
在新立得里设置软件库代理,可以更新系统
运行键盘小图标的白名单脚本,显示fcitx
系统还原是个问题,要同时还原 / 和 /home 两个分区
卸载 gtkqq
创建用户年份和abcd,例如 2012a、2012b、2012c,密码设好,以后删除的时候好删除
安装一个编程软件,gambas
上次由 TeliuTe 在 2012-08-12 20:10,总共编辑 8 次。
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 个人操作使用记录

#25

帖子 TeliuTe » 2012-02-14 9:58

用到的一些脚本:
github起个短的别名:

代码: 全选

 git remote add teliute git@github.com:TeliuTe/teliute.github.com.git
自动上传到github,复制到/bin:$mygit

代码: 全选

#!/bin/bash
cd /home/teliute/mygit/
git add .
git commit -a -m "`date` $1"
git push teliute master
自动与服务器同步,复制到/bin:$mypull

代码: 全选

#!/bin/bash
cd /home/teliute/mygit/
git pull teliute master

把命令行的内容,当日志添加到 log 文件里,复制到/bin:$mylog

代码: 全选

#!/bin/bash
cd /home/teliute/log
date>>log
echo $1 >>log
关机:myhalt

代码: 全选

#!/bin/bash
echo psw|sudo -S halt
#echo psw|sudo -S init 0
替换所有.html 中的一段文字,中文需要完整的,两头有分隔符:

代码: 全选

#!/bin/bash
find -name '*.html' -exec sed -i 's;http://www.laxjyj.com/teliute/TeacHtm/index.htm;http://teliute.org/sort.html;' {} \;
find -name '*.html' -exec sed -i 's;http://www.laxjyj.com/teliute;http://teliute.org;' {} \;
find -name '*.html' -exec sed -i 's;>http://www.laxjyj.com/teliute</a></font>;>http://teliute.org</a></font>;' {} \;
find -name '*.html' -exec sed -i 's;>http://www.laxjyj.com/teliute/</a></p>;>http://teliute.org/</a></p>;' {} \;
find -name '*.html' -exec sed -i 's;http://www.laxjyj.com/teliute/</a> </p>;http://teliute.org/</a> </p>;' {} \;

find -name '*.html' -exec sed -i 's;,商业用途请与作者联系;;' {} \;
find -name '*.html' -exec sed -i 's;,不得用于商业用途;;' {} \;
find -name 'index.html' -exec sed -i 's;http://teliute.laxjyj.com/TeacHtm/index.htm;http://teliute.org/sort.html;' {} \;
find -name 'index.html' -exec sed -i 's;<a href="../index.htm">在线课堂</a>;<a href="http://teliute.org/sort.html">在线课堂</a>;' {} \;
find -name '*.html' -exec sed -i 's;http://teliute.laxjyj.com/;http://teliute.org/;' {} \;
find -name '*.html' -exec sed -i 's;http://teliute.laxjyj.com;http://teliute.org;' {} \;
find -name '*.html' -exec sed -i 's;>http://teliute.laxjyj.com</a></p>;>http://teliute.org</a></p>;' {} \;
转换文件扩展名大小写的:convert -l ./mydir 或 convert -u ./mydir

代码: 全选

#!/bin/bash

############################################################
# 把目录下的所有文件和文件夹从大写转换到小写,并把文件名中的空格去掉
# 参数 convert -l ./mydir
# -u: 小写到大写
# -l: 大写到小写
# dir 目录
############################################################

hint () 
{
	echo " Usage: $0 [-l|-u] DIR1 [DIR2 DIR3...]
	-l to lowcase
	-u to upcase"
	exit 1
}

if test $# -lt 2; then
	echo "Too few arguments."
	hint
fi

while [ "$1" ]; do
	case $1 in
		-l)
				ACTION="lo"
				shift 1
				;;
		-u)
				ACTION="up"
				shift 1
				;;
		*)
			if test -d $1; then
			DIR="$DIR $1"
			else
				echo "no such directory --- $1"
				hint
			fi
			shift
			;;
	esac
done

# echo $ACTION
# echo $DIR

find $1 -name "* *" -print |
while read name; do
na=$(echo $name | sed 's/ //g')
echo $na
if [[ $name != $na ]]; then
mv "$name" $na
fi
done


FOUND=`find $DIR | sort -r`

for i in $FOUND
do
	DN=`dirname $i`
	echo "$DN"
	BS=`basename $i`
	echo "$BS"
	loBS=`echo $BS | tr '[A-Z]' '[a-z]'`
	upBS=`echo $BS | tr '[a-z]' '[A-Z]'`
	
	loDN=`echo $BS | tr '[A-Z]' '[a-z]'`
	upDN=`echo $BS | tr '[a-z]' '[A-Z]'`
	
	NAME1="$DN/$BS"

	if [ "$ACTION" = "lo" ]; then
		NAME2="$DN/$loBS"
	elif [ "$ACTION" = "up" ]; then
		NAME2="$DN/$upBS"
	fi

	if [ "$NAME1" = "$NAME2" ]; then
		echo "****: $NAME1 ---x--- $NAME2 identical!"
	else
		echo "- renaming $NAME1 --> $NAME2"
		mv  "$NAME1" "$NAME2"
	fi
done 
批量添加用户到powerdev组的脚本

代码: 全选

for i in {70..97};do  useradd -g powerdev st2-$i;done
批量修改文件名的脚本,把 *.page 改成 *.html

代码: 全选

rename 's/\.page$/.html/g' *.*
命令行退出fcitx

代码: 全选

pkill -9 fcitx
所有html扩展名的文件都要改成htm,当前文件夹和子文件夹都有html文件

代码: 全选

#!/bin/bash
for i in $(find . -name '*.html' -print)
do
        new=$(echo $i | sed 's/.$//')
        mv $i $new
done
2、所有html文件(当前文件夹和子文件夹)里面的 <br> 都要改成

代码: 全选

#!/bin/bash
for i in $(find . -name '*.html' -print)
do
        sed -i 's;<br>;
;g' $i
done
批量替换文件内容时里包含 ; 和回车换行的脚本

代码: 全选

find -name '*.html' -exec sed -i 's:text/html charset=UTF-8:text/html; charset=UTF-8:' {} \;
或
find -name '*.html' -print0 | xargs -0 sed -i 's:text/html charset=UTF-8:text/html; charset=UTF-8:'

代码: 全选

#!/bin/bash
for i in $(find . -name '*.html' -print)
do
        sed -i 's:text/html charset=UTF-8:text/html; charset=UTF-8:' $i
done

代码: 全选

 sed 的 s 命令中分隔符习惯上用 /,但是如果查找或替换的内容中包含 / 就不方便了,可以换成任何其它字符。
你上次的例子中内容中有 / 而没有分号,所以有人让你用分号,现在内容中有分号,你再挑一个符号就是了。
如果实在找不到可用的符号了(很少见),可以在内容中出现分隔符的地方在前面加反斜杠(\)。

sed -i 's:<head>:&\n<meta http-equiv="content-type" content="text/html; charset=UTF-8" />:' file.html
或
sed -i '/<head>/a<meta http-equiv="content-type" content="text/html; charset=UTF-8" />:' file.html

2. 用多行替换一行时,可以用 \n 表示换行。
临时启动本地网站,和squid代理的脚本,xxx是自己的密码

代码: 全选

#!/bin/bash
echo xxx|sudo -S ifconfig eth0 192.168.1.250 netmask 255.255.255.0
echo xxx|sudo -S squid
echo xxx|sudo -S sudo /opt/lampp/lampp start
3. 关闭 italc 的脚本

代码: 全选

#!/bin/bash
pkill -9 ica-launcher
4.删除文件中所有@开头的行

代码: 全选

sed -i 's/^@.*$//' wbx/wbpy.txt 
5.替换带有换行符的段落

代码: 全选

#!/bin/bash
find -name '*.html' -exec sed  -i 'N;N;s/201022.js">\n<noscript>/201022.js"><\/script>\n<noscript>/g' {} \;
6.替换带有换行符的段落,安装 rpl ,-R是子目录,d 是时间不变,e 是替换转义字符 -x是指定扩展名

代码: 全选

 rpl -Rde  -x'.html' '201022.js">\n<noscript>' '201022.js"></script>\n<noscript>' ./

#替换统计id的
rpl -Rd  -x'.html' '201022.js' '1132862.js' ./
rpl -Rd  -x'.html' '?201022' '?1132862' ./
rpl -Rd  -x'.html' '201022.asp' '1132862.asp' ./


转换编码为当前系统UTF-8,替换网页字符

代码: 全选

find -name '*.htm' -exec enconv {} \;
find -name '*.html' -exec enconv {} \;

find -name '*.htm' -exec sed  -i 'N;N;s/charset=gb2312/charset=UTF-8/g' {} \;
find -name '*.html' -exec sed  -i 'N;N;s/charset=gb2312/charset=UTF-8/g' {} \;

rpl -Rd  -x'.htm' '版权信息' '作者' ./
rpl -Rd  -x'.html' '版权信息' '作者' ./
批量重命名文件的扩展名,从.attach到.ods

代码: 全选

#!/bin/bash
for file in *.attach; do mv $file `basename $file .attach`.ods; done 
批量重命名,文件重命名数字逆序,修改前面的*.JPG为源文件名,后面的$i.jpg为目标文件名

代码: 全选

#!/bin/bash
#i=100; for img in `ls *.png`; do mv $img test-`printf  %.6d $i`.png; i=`expr $i - 1`; done
#Gnome-commander 批量重命名 scrot
i=99; for f in *.JPG; do mv "$f" $i.jpg; ((i--)); done
批量下载一个站点,断点续传、只下载站内文件,下载关联的文件,不下载已有的文件,除非要新

代码: 全选

wget -c -r -np -k -L -p -N http://teliute.org
备份和还原mysql数据库

代码: 全选

远程备份,需要提前开通允许远程访问,在phpmyadmin中给root用户权限中的主机从localhost改为%任意主机即可,或者用命令方式,或者修改配置文件
teliute@1-Teacher:~/bk/dzx$ /opt/lampp/bin/mysqldump -h 192.168.12.250 -P 3306 -u root -pmypsw discuzx > discuzx20131111.sql

本地还原
teliute@1-Teacher:~/bk/dzx$ /opt/lampp/bin/mysql  -u root -pmypsw discuzx < discuzx20131111.sql
远程还原
teliute@1-Teacher:~/bk/dzx$ /opt/lampp/bin/mysql -h 192.168.12.253 -P 3306 -u root -pmypsw discuzx < discuzx20131111.sql
批量修改文件名为序号,倒序排列图片,扩展名大小写更改

代码: 全选

#!/bin/bash
#i=100; for img in `ls *.png`; do mv $img test-`printf  %.6d $i`.png; i=`expr $i - 1`; done
#Gnome-commander 批量重命名 scrot
i=99; for f in *.JPG; do mv "$f" $i.jpg; ((i--)); done
~/.gtkrc-2.0

代码: 全选

gtk-icon-theme-name="Humanity"
找出文本文件中的行:

代码: 全选

最后55100行
 tail -n 55100 discuzx20140421.sql > qqfarm.sql

找出450000到5060100行
 sed -n '450000,5060100p' discuzx20140421.sql > qqfarm.sql

数一下一共有多少行
teliute@1-Teacher:~$ sed -n '$='  discuzx20140421.sql
506070
将当前文件夹中的所有html文件绝对路径列出来,存到文件中

代码: 全选

 find ./ -name "*.html" -exec ls {} \; >test.txt
查找替换指定不带扩展名文件(例如9)中的换行符后面加一个html换行标签

代码: 全选

#!/bin/bash
for i in $(find . -name '9' -print)
do
        rpl  -Rde '\n' '<br />\n' $i

done
上次由 TeliuTe 在 2013-11-11 19:04,总共编辑 16 次。
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 个人操作使用记录

#26

帖子 TeliuTe » 2012-02-15 18:00

lampp 自动运行

以 root 身份登录

进入 /etc/init.d 目录,创建 lampp 文件,写入以下内容:
#!/bin/bash
/opt/lampp/lampp start

将 /etc/init.d/lampp 的权限设置为 755

编辑 /etc/rc.d/rc.local,在最后添加
exec /etc/init.d/lampp
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 个人操作使用记录

#27

帖子 TeliuTe » 2012-03-03 12:43

校园网的修改记录
使用丛林小鸡的模板,用指法练习.swf替换,把成绩提交上去
需要把数据表改一下,调用自己的表,结构可以先不改
限制使用e04才允许提交成绩,或者专门一篇测试的
把swf最后加一个按钮,里面添加代码,成绩传给gscore,把原来的sql替换成zflx的

代码: 全选

on (press)
{
    gname = "zflx";
    gtype = "single";
    gscore = Number(strScore);
    getURL("?ac=save&fgid=36", "_self", "POST");
}

代码: 全选

/opt 没有单独挂出来,可以把后面的f盘格成reiserfs,修改fstab挂进去
若是要下载iso可以再把 ext4 的/home里的一个目录挂载到/opt的一个文件夹里

代码: 全选

serverguide
https://help.ubuntu.com/10.04/serverguide/C/index.html

代码: 全选

 铁通 DNS Servers . . . . . . . . . . . : 211.98.127.101
                                     211.98.127.102
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 个人操作使用记录

#28

帖子 TeliuTe » 2012-03-28 17:22

代码: 全选

圆明1020创建磁盘阵列
开机出现LSI扫描SCSI设备时,按提示按 Ctrl+C 进入管理面板,
列出两块磁盘,按下方向键选中第2块,跟硬盘的物理位置相同,下面的那一块硬盘
进去可以看到一列设备号,选中第一个主盘,移到后面的No上按减号出来提示,按F3保留数据
再选中第二个从盘,移到后面的No上按减号出来提示,按Delete键删除
保存返回到主面板,显示成功,第2块盘正在同步,resyncing
退出重启动,正常启动
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 个人操作使用记录

#29

帖子 TeliuTe » 2012-04-15 11:29

用12.04教学的设想

代码: 全选

1、这学期先用11.10,找几个机子把12.04装上测试,
2、安装的时候选最后一个分区,这样原先的11.10也还在,
3、但是.../home这个不好弄,原先学生建的用户都在这里,
4、所以还是得升级才行
5、一个一个的往上升级也麻烦,得创建一个本地源

1、是否需要把每个机子的系统备份一下,这样12.04不行的话还可以退回来
2、用tar来备份,找个tar的命令,把各个系统备份一下
3、但是.../home是单独分区的,退回来以后配置文件能否继续使用

1、安装gimp的时候把plugin也安装上
2、Fcitx、smplayer、flv、mp3、wmv、音频解码code2007、flashplugin、超级玛丽
leafpad、gftp、gimp、italc、gambas、新立得、星际译王、各种wqy字体、fonts-arphic-ukai、AR PL UMing、fonts-arphic-gbsn00lp、fonts-arphic-gkai00mp、添加关机脚本echo "psw"|sudo -S init 0、
修改fcitx默认配置 /usr/share/fcitx/data/config.desc 翻页键、中英文切换
安装一个wine的TM2009
magicor推木箱
tuxtype 打字的游戏
qgo 下围棋的
gpaint 画图

1、如果有可能,小游戏可以自定义开启,做完练习后就可以分别开启,而不是全班一起开关
2、忙着记录学生完成情况,不可能有时间按iP或机号去开关
3、设置一个加密的php,动态密码,或者每次课前运行后可以生成按ip加密的口令
4、或者有一个获得口令的页面,做完以后给个序列号,输入后生成口令
5、把关机的deskop文件复制到所有程序里,这样就可以在左侧栏添加按钮
6、赛车和超级玛丽:supertux, supertuxkart、bsnes

7、删除用户和添加用户,可以在/home中查看文件夹来确定哪些用户是九年级要删除的,
添加的用户没有用户全名:
root@1-A6:/home/b2# userdel -r username
root@1-A6:/home/b2# useradd a2012a -c a2012a -p password -d /home/a2012a -m
root@1-A6:/home/b2# echo 'a2012a:password' | chpasswd

8、打开终端,sudo su 切换到管理员,打开 /home 文件夹,查出要删除的文件夹(也就是用户名),运行 userdel -r username 删除九年级的帐户,运行 添加用户命令创建四个用户,用户名用a2012a,密码用年后面跟2个数字,可以是班级也可以是其他意义的,

useradd a2012a -p 201212 -d /home/a2012a -m && echo 'a2012a:201212' | chpasswd && useradd b2012b -p 201272 -d /home/b2012b -m && echo 'b2012b:201272' | chpasswd &&  useradd c2012c -p 201286 -d /home/c2012c -m && echo 'c2012c:201286' | chpasswd && useradd d2012d -p 201204 -d /home/d2012d -m && echo 'd2012d:201204' | chpasswd

删除更新下载的缓存包 rm /var/cache/apt/archives/*

9、要能建立起本地源就好了,这样只要一个机子下载了其他都可以用,或者在host文件里把源的网址指向内网服务器?

10、添加用户名的建用户命令: root@1-A6:/home/b2# useradd a2012a -c a2012a -p password -d /home/a2012a -m
root@1-A6:/home/b2# echo 'a2012a:password' | chpasswd

设置通知区域的图标显示
[bash]由于在Unity中,Ubuntu对系统托盘采取了白名单机制,只有在白名单内的程序才能在系统托盘处显示图标,这显然不符合我们的要求。因为我们还需要开启一些中国特色的软件,如WINE、AIR程序等。

1.所以需要解除这一设置:

如果你想所有的程序都可以显示,则在终端运行下面命令:

gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"

若你想自定义程序的话,运行下面的命令(YOUR_APPLICATION是程序名):

gsettings set com.canonical.Unity.Panel systray-whitelist
"['JavaEmbeddedFrame', 'Mumble', 'Wine', 'YOUR_APPLICATION']"

还原到系统默认状态:

gsettings set com.canonical.Unity.Panel systray-whitelist
"['JavaEmbeddedFrame', 'Mumble', 'Wine', 'Skype', 'hp-systray']"

2.当然你也可以安装一些工具来进行设置:

sudo apt-get install dconf-tools

然后运行:

dconf-editor

在desktop>unity>panel中把systray-whitelist的值改为['all']即可。[/bash]

[text]问题已经解决。
实际上批量添加用户在Linux中还是个挺常见的事儿。说白了Linux给我们准备了二个命令:
newusers
chpasswd
首先,按照你的passwd文件格式编辑好你的用户信息(当然,现在的系统一般使用shadow口令系统,passwd文件里是没有密码的,只有其它的用户信息)
然后使用newusers,再调用用户信息文件,一次就添加了所有的用户。
但现在这些用户是无法登录的,因为没有密码。
于是,再编辑一个密码文件,使用chpasswd一次性的把你添加用户的密码都改掉。

具体的使用,请man~~~


假设你有文件 userlist.txt ,里内容为
a1:x:2001:2001::/home/a1:/bin/bash
a2:x:2002:2002::/home/a2:/bin/bash
...


有密码文件 userpswd.txt
a1:p1
a2:p2
...

执行
$ sudo newusers userlist.txt
$ sudo chpasswd < userpswd.txt

就可以添加用户 a1 a2 ... 了
[/text]
上次由 TeliuTe 在 2013-02-28 17:50,总共编辑 18 次。
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 个人操作使用记录

#30

帖子 TeliuTe » 2012-05-06 10:51

12.04 安装笔记
1、安装时没有断网,期间会下载语言包
2、装完重启,设置软件源,
3、点“齿轮-系统设置-语言支持”安装语言包
4、点自动更新,完成后重启
5、设置火狐,安装flash插件,手势
6、安装opera,复制原来的配置文件
7、安装新立得,gdebi
8、安装fcitx,复制配置文件

代码: 全选

sudo add-apt-repository ppa:fcitx-team/nightly 
sudo apt-get update
sudo apt-get install fcitx fcitx-pinyin fcitx-googlepinyin fcitx-sunpinyin fcitx-skin-default fcitx-skin-dark
9、用2D登录,设置桌面为纯色,设置亮度、锁定时不输密码
10、安装修改版的liunxqq,这是i386的
11、安装gimp,复制配置文件
12、安装 git 复制.gitconfig和.ssh和mygit/
13、安装openbox、pcmanfm
14、设置fcitx的图标显示在通知区域
15、从fcitx换回到ibus时要重启动才能显示托盘图标
16、mb2txt 在fcitx-tools里 mb2txt wbx.mb >wbx.txt
17、txt2mb wbx.txt wbx.mb
18、系统默认设置在 /usr/share/fcitx/data/config.desc 修改翻页键、中英文切换
上次由 TeliuTe 在 2012-08-17 1:36,总共编辑 2 次。
回复