用strace跟踪debian installer的运行过程

最大的社区版本,Ubuntu的发源地
回复
科学之子
帖子: 2284
注册时间: 2013-05-26 6:58
系统: Debian 9

用strace跟踪debian installer的运行过程

#1

帖子 科学之子 » 2016-04-06 1:18

用strace跟踪debian installer的运行过程
我折腾时网上搜索了一堆cpio制作initrd的方法,本帖介绍不是很详细的可以参考网上各种cpio制作initrd的方法
gunzip -k -d把initrd.gz解压出来后就cpio -idm再解压出来
然后'type strace'得知strace命令的位置,把文件复制到解压出来的系统路径中
然后检查strace的依赖.

代码: 全选

dpkg -L strace依赖包   | cpio --no-absolute-filenames -H newc -o >临时文件
也可以直接用管道复制到解压出来的系统文件目录,不过我懒得折腾了,用最笨的临时文件方法.
在解压出来的文件系统中修改其中的/etc/inittab.
把debian-installer那行修改为:

代码: 全选

#::respawn:/sbin/reopen-console /usr/bin/strace -s 1024 -f -e trace=execve -o /var/log/debian-installer_log /sbin/debian-installer
然后照着网上方法用cpio把文件系统打包为单个文件
接着用打包出来的文件引导,就可以用strace跟踪debian installer了.
如果出来的无用内容太多:
sed删除匹配行:http://blog.sina.com.cn/s/blog_4ba5b45e0102e7l2.html
匹配那些包含+++或---删除就好
Pinkjobd
帖子: 8
注册时间: 2016-04-26 7:57

strace debian installer

#2

帖子 Pinkjobd » 2016-04-30 2:31

I did a test install just after the release of this installer and the default desktop was gnome.
Just to be clear, if I install Debian with the new installer as of now will the default desktop be xfce?
科学之子
帖子: 2284
注册时间: 2013-05-26 6:58
系统: Debian 9

Re: strace debian installer

#3

帖子 科学之子 » 2016-04-30 20:44

Pinkjobd 写了:I did a test install just after the release of this installer and the default desktop was gnome.
Just to be clear, if I install Debian with the new installer as of now will the default desktop be xfce?
Are you sure not do confuse that installer?
What is exact real step and tiny difference for you doing?

Some other:
Why you use English?
Use English for me be hard.
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: strace debian installer

#4

帖子 vickycq » 2016-04-30 20:52

科学之子 写了:
Pinkjobd 写了:I did a test install just after the release of this installer and the default desktop was gnome.
Just to be clear, if I install Debian with the new installer as of now will the default desktop be xfce?
Are you sure not do confuse that installer?
What is exact real step and tiny difference for you doing?

Some other:
Why you use English?
Use English for me be hard.
是机器人。看他发帖历史。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
科学之子
帖子: 2284
注册时间: 2013-05-26 6:58
系统: Debian 9

Re: strace debian installer

#5

帖子 科学之子 » 2016-04-30 21:12

vickycq 写了:
科学之子 写了:
Pinkjobd 写了:I did a test install just after the release of this installer and the default desktop was gnome.
Just to be clear, if I install Debian with the new installer as of now will the default desktop be xfce?
Are you sure not do confuse that installer?
What is exact real step and tiny difference for you doing?

Some other:
Why you use English?
Use English for me be hard.
是机器人。看他发帖历史。
让我想起如果我在百度知道提问,会在百度贴吧的相关贴吧出现相同提问,但id却不是我的.
那这个是怎么回事?知道这个机器人出现的原因吗?
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: strace debian installer

#6

帖子 vickycq » 2016-04-30 21:19

科学之子 写了:那这个是怎么回事?知道这个机器人出现的原因吗?
一种可能性是水军
水军的日常工作就是到各类网络社区注册账号,有任务时倾巢出动
为了制造该账号为正常用户的假象,需要经常发帖。
为了使发言看上去更有相关性,提取主贴的关键字 - 自动搜索相关内容 - 发帖

以上为猜测
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
回复