有没有一种方法,列出所有non-free
,并contrib
通过安装在Debian的软件apt
?
/etc/apt/sources.list
如下
deb http://ftp.us.debian.org/debian/ wheezy main non-free contrib
deb-src http://ftp.us.debian.org/debian/ wheezy main non-free contrib
deb http://security.debian.org/ wheezy/updates main non-free contrib
deb-src http://security.debian.org/ wheezy/updates main non-free contrib
# wheezy-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ wheezy-updates main
deb-src http://ftp.us.debian.org/debian/ wheezy-updates main
Run Code Online (Sandbox Code Playgroud)
我在几年前添加了non-free
,contrib
因为我的视频卡需要一个非免费驱动程序,现在已被不需要非免费驱动程序的新驱动程序所取代。我想摆脱非自由的东西,但恐怕多年来我可能安装了其他我无法卸载的非自由软件。
我已经使用树莓派的 buildroot 的默认配置完成了最小安装。我还从 menuconfig 中选择了 openssh 和 openssl:
Package Selection for the target --->
[*] Networking --->
[*] openssh
[*] Library -->
Crypto -->
-*- openssl
[*] openssl binary
[ ] openssl additional engines
Run Code Online (Sandbox Code Playgroud)
我将 Pi 分配给了192.168.0.14
,但无法通过 ssh 连接到它。nmap 显示 Pi 的所有端口都已关闭,有时根本不显示 Pi,我觉得这很奇怪——每当 nmap 扫描它时,LINK LED 就会闪烁,所以我猜它连接得很好。
我通常使用update-rc.d
或管理启动服务systemctl
,但是我只能通过 ssh 连接到 Pi - 我没有 HDMI 或串行端口。我不确定如何手动设置。/etc/init.d/S50sshd
存在于 Pi 中,所以它应该在启动后启动 ssh,不是吗?
相关配置文件:/etc/ssh/sshd_config
, /etc/init.d/S50sshd
.
我在 SD 卡中找不到任何相关日志。
编辑:
根据 X Tian 从评论中提出的建议,我能够获得日志。唯一记录的是/var/log/messages …
我在 HP Pavilion dv7 笔记本电脑上运行 Debian Wheezy,它时不时地死机,需要重新启动。有一次它甚至没有加载操作系统,但不是我在使用它,所以我不知道显示了什么错误。在以前的 Windows 7 安装中,它经常无法加载 Windows,让用户进入“尝试修复”屏幕,这会在几分钟内执行某些操作,然后说 Windows 无法解决问题。
这让我认为存在硬件问题,我想知道是否有什么/var/log
地方或其他地方可以提供有关正在发生的事情的一些信息,或者是否可以运行任何测试以及我应该寻找什么。
我发出
grep -i "error" /var/log
Run Code Online (Sandbox Code Playgroud)
完整的输出在这里。我能理解的唯一一条线,我认为可能与问题有关的是
/var/log/dmesg.0:[ 11.632723] [drm:radeon_pci_probe] *ERROR* radeon kernel modesetting for R600 or later requires firmware-linux-nonfree.
Run Code Online (Sandbox Code Playgroud)
但
lspci | grep -i vga
Run Code Online (Sandbox Code Playgroud)
退货
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Whistler XT [AMD Radeon HD 6700M Series]
Run Code Online (Sandbox Code Playgroud)
并且正在使用System > …
我在 Debian 6.0.5 (squeeze) 上,我时不时地在 GNOME2 面板的通知区域看到以下图标: 但黑色而不是红色。它显示包管理器正在工作。通常它只在几秒钟后显示红色,即可用更新,所以我认为它只是在寻找更新。但有时情况并非如此。我没有自动安装更新的选项,所以可能不是这样,所以我想知道是否有办法查看哪个包管理器正在运行。
单击它只会打开 Synaptic Package Manager,但它不会说明正在运行的内容。
gnome administration debian notifications package-management
我最近在一台新计算机上安装了我的硬盘,经过一番摆弄之后,我注意到我的 iptables 规则出于某种原因丢弃了 DNS 响应,结果它们被配置为允许 eth0 上的东西,但是这台计算机中使用了 eth8,一切都在丢弃(不仅仅是 DNS 查询)。无论如何,我同时使用 Wireshark 来查看 DNS 服务器是否响应查询并发现它们响应了。但我刚刚注意到 iptables 正在丢弃上述数据包。如果数据包被丢弃,Wireshark 怎么能看到这些数据包?
用于生成规则集的脚本:
# Flush all rules
iptables -F
iptables -X
# Allow unlimited traffic on loopback
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
# Allow incomming traffic from estabilished and related connections
iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
# Policy: Allow outgoing, deny incoming and forwarding
iptables -P OUTPUT ACCEPT
iptables -P …
Run Code Online (Sandbox Code Playgroud)