树莓派使用入门：通过树莓派和 kali Linux 学习计算机安全
树莓派 安全

> 
> 树莓派是学习计算机安全的一个好方法。在我们这个系列的第十一篇文章中会进行学习。
> 
> 
> 


![](/data/attachment/album/201904/07/101619kih62112t3hggt22.png)


在技术方面是否有比保护你的计算机更热门的话题？一些专家会告诉你，没有绝对安全的系统。他们开玩笑说，如果你想要你的服务器或者应用程序真正的安全，就关掉你的服务器，从网络上断线，然后把它放在一个安全的地方。但问题是显而易见的：没人能用的应用程序或者服务器有什么用？


这是围绕安全的一个难题，我们如何才能在保证安全性的同时，让服务器或应用程序依然可用且有价值？我无论如何都不是一个安全专家，虽然我希望有一天我能是。因此，分享可以用树莓派来做些什么以学习计算机安全的知识，我认为是有意义的。


我要提示一下，就像本系列中其他写给树莓派初学者的文章一样，我的目标不是深入研究，而是起个头，让你有兴趣去了解更多与这些主题相关的东西。


### Kali Linux


当我们谈到“做一些安全方面的事”的时候，出现在脑海中的一个 Linux 发行版就是 [Kali Linux](https://www.kali.org/)。Kali Linux 的开发主要集中在调查取证和渗透测试方面。它有超过 600 个已经预先安装好了的用来测试你的计算机的安全性的[渗透测试工具](https://en.wikipedia.org/wiki/Kali_Linux#Development)，还有一个[取证模式](https://docs.kali.org/general-use/kali-linux-forensics-mode)，它可以避免自身接触到被检查系统的内部的硬盘驱动器或交换空间。


![](/data/attachment/album/201904/07/101622se78jqrnn87tze08.png)


就像 Raspbian 一样，Kali Linux 基于 Debian 的发行版，你可以在 Kali 的主要[文档门户](https://docs.kali.org/kali-on-arm/install-kali-linux-arm-raspberry-pi)的网页上找到将它安装在树莓派上的文档。如果你已经在你的树莓派上安装了 Raspbian 或者是其它的 Linux 发行版。那么你装 Kali 应该是没问题的，Kali 的创造者甚至将[培训、研讨会和职业认证](https://www.kali.org/penetration-testing-with-kali-linux/)整合到了一起，以此来帮助提升你在安全领域内的职业生涯。


### 其他的 Linux 发行版


大多数的标准 Linux 发行版，比如 Raspbian、Ubuntu 和 Fedora 这些，在它们的仓库里同样也有[很多可用的安全工具](https://linuxblog.darkduck.com/2019/02/9-best-linux-based-security-tools.html)。一些很棒的探测工具你可以试试，包括 [Nmap](https://nmap.org/)、[Wireshark](https://www.wireshark.org/)、[auditctl](https://linux.die.net/man/8/auditctl)，和 [SELinux](https://opensource.com/article/18/7/sysadmin-guide-selinux)。


### 项目


你可以在树莓派上运行很多其他的安全相关的项目，例如[蜜罐](https://trustfoundry.net/honeypi-easy-honeypot-raspberry-pi/)，[广告拦截器](https://pi-hole.net/)和 [USB 清洁器](https://www.circl.lu/projects/CIRCLean/)。花些时间了解它们！




---


via: <https://opensource.com/article/19/3/computer-security-raspberry-pi>


作者：[Anderson Silva](https://opensource.com/users/ansilva) 选题：[lujun9972](https://github.com/lujun9972) 译者：[hopefully2333](https://github.com/hopefully2333) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
Is there a hotter topic in technology than securing your computer? Some experts will tell you that there is no such thing as perfect security. They joke that if you want your server or application to be truly secure, then turn off your server, unplug it from the network, and put it in a safe somewhere. The problem with that should be obvious: What good is an app or server that nobody can use?

That's the conundrum around security. How can we make something secure enough and still usable and valuable? I am not a security expert by any means, although I hope to be one day. With that in mind, I thought it would make sense to share some ideas about what you can do with a Raspberry Pi to learn more about security.

I should note that, like the other articles in this series dedicated to Raspberry Pi beginners, my goal is not to dive in deep, rather to light a fire of interest for you to learn more about these topics.

## Kali Linux

When it comes to "doing security things," one of the Linux distributions that comes to mind is [Kali Linux](https://www.kali.org/). Kali's development is primarily focused on forensics and penetration testing. It has more than 600 preinstalled [penetration-testing programs](https://en.wikipedia.org/wiki/Kali_Linux#Development) to test your computer's security, and a [forensics mode](https://docs.kali.org/general-use/kali-linux-forensics-mode), which prevents it from touching the internal hard drive or swap space of the system being examined.

![Kali Linux x86 boot screen Kali Linux x86 boot screen](https://opensource.com/sites/default/files/uploads/raspberrypi_11_kali.png)

Like Raspbian, Kali Linux is based on the Debian distribution, and you can find directions on installing it on the Raspberry Pi in its main [documentation portal](https://docs.kali.org/kali-on-arm/install-kali-linux-arm-raspberry-pi). If you installed Raspbian or another Linux distribution on your Raspberry Pi, you should have no problem installing Kali. Kali Linux's creators have even put together [training, workshops, and certifications](https://www.kali.org/penetration-testing-with-kali-linux/) to help boost your career in the security field.

## Other Linux distros

Most standard Linux distributions, like Raspbian, Ubuntu, and Fedora, also have [many security tools available](https://linuxblog.darkduck.com/2019/02/9-best-linux-based-security-tools.html) in their repositories. Some great tools to explore include [Nmap](https://nmap.org/), [Wireshark](https://www.wireshark.org/), [auditctl](https://linux.die.net/man/8/auditctl), and [SELinux](https://opensource.com/article/18/7/sysadmin-guide-selinux).

## Projects

There are many other security-related projects you can run on your Raspberry Pi, such as [Honeypots](https://trustfoundry.net/honeypi-easy-honeypot-raspberry-pi/), [Ad blockers](https://pi-hole.net/), and [USB sanitizers](https://www.circl.lu/projects/CIRCLean/). Take some time and learn about them!

## Comments are closed.