我想安装libpq-dev
在我的 Vagrant 机器上。我安装它
$ apt-get install -y libpq-dev
Run Code Online (Sandbox Code Playgroud)
在安装过程中会出现一个提示,询问是否允许自动重新启动某些服务。这个提示打破了我的 Vagrant 规定。如何禁用此提示?
文本:
当某些库(例如 libpam、libc 和 libssl)升级时,系统上安装了需要重新启动的服务。由于这些重新启动可能会导致系统服务中断,因此每次升级时通常都会提示您选择要重新启动的服务列表。您可以选择此选项以避免被提示;相反,所有必要的重启都将自动为您完成,因此您可以避免在每次库升级时被问到问题。
****编辑 ****
感谢帕特里克的回答和这个问题我修复了它。现在我的 Vagrantfile 包含:
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y libpq-dev
Run Code Online (Sandbox Code Playgroud) 在启动时,我的笔记本电脑说:
fsck died with status code 4
Run Code Online (Sandbox Code Playgroud)
手册页告诉我:
fsck 返回的退出代码是以下条件的总和:
[..]
4 - 文件系统错误未得到纠正
当我尝试以 root 身份修复错误时,fsck 说我的磁盘是干净的:
$ fsck /dev/sda1
/dev/sda1, clean [and some things about available blocks]
Run Code Online (Sandbox Code Playgroud)
如何修复我的磁盘?
我一直在努力让我的三星 ATIV BOOK 9 Lite暂停和休眠工作几个小时。当我尝试恢复屏幕时,电源指示灯亮起,但屏幕保持黑色。按下大写锁定键时大写锁定指示灯没有反应,因此使用 Fn 键增加屏幕亮度也不起作用。
我使用了内核版本 3.11 和 3.12rc5,pm 日志不会告诉我太多信息。
$ uname --all
Linux wiske 3.11-2-amd64 #1 SMP Debian 3.11.10-1 (2013-12-04) x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)
我的硬件:
$ lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] Family 16h Processor Root Complex
00:01.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Device 983d
00:01.1 Audio device: Advanced Micro Devices [AMD] nee ATI Device 9840
00:02.0 Host bridge: Advanced Micro Devices [AMD] Family 16h Processor Function 0
00:02.3 PCI bridge: …
Run Code Online (Sandbox Code Playgroud) 我正在尝试让 2 个以太网适配器工作。第一个,eth0,开箱即用。第二个,eth1,表现得很奇怪。该端口使用LAN9512。这是我的/etc/network/interfaces
文件:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.0.0.195
netmask 255.255.255.0
hwaddress ether 40:D8:55:1D:D0:B1
auto eth1
iface eth1 inet static
address 10.0.0.196
netmask 255.255.255.0
hwaddress ether 40:D8:55:1D:D0:B2
Run Code Online (Sandbox Code Playgroud)
当我使用插入两个以太网适配器的电缆启动硬件时,这是引导日志的相关部分:
macb f802c000.ethernet (unnamed net_device) (uninitialized): invalid hw address, using random
libphy: MACB_mii_bus: probed
macb f802c000.ethernet eth0: Cadence MACB rev 0x0001010c at 0xf802c000 irq 35 (42:8a:61:6e:a2:bb)
macb f802c000.ethernet eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=f802c000.etherne:01, irq=-1)
[...]
usbcore: registered new interface …
Run Code Online (Sandbox Code Playgroud) 我有一堆 ARM 设备。它们在硬件上没有区别。我可以在不使用 MAC 地址的情况下以某种方式为每个设备获取一个唯一的 ID 吗?即使我使用新内核和 rootfs 刷新 NAND,此 ID 也必须保持不变。其硬件基于 Atmel AT91SAM9。
OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 178.xxx.xxx.xxx [178.xxx.xxx.xxx] port 22.
debug1: Connection established.
debug1: identity file /home/orangetux/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/orangetux/.ssh/id_rsa-cert type -1
debug1: identity file /home/orangetux/.ssh/id_dsa type -1
debug1: identity file /home/orangetux/.ssh/id_dsa-cert type -1
debug1: identity file /home/orangetux/.ssh/id_ecdsa type -1
debug1: identity file /home/orangetux/.ssh/id_ecdsa-cert type -1 …
Run Code Online (Sandbox Code Playgroud) 我有一个带有 Debian 的可启动 USB。通常我用 克隆磁盘dd
,将图像写入新的 USB 磁盘,将此磁盘安装在我的文件系统上并编辑一些文件。是否可以在不将图像写入 USB 并安装 USB 的情况下编辑图像上的文件?我试过 ISO Master,但这会引发一个错误:Failed to read volume info: 'Failed to read expected number of bytes'
.
我尝试使用 Docker 使用 Buildroot 构建 Linux 内核。我创建了一个简单的 Docker 镜像:
FROM debian:7
MAINTAINER OrangeTux
RUN apt-get update && \
apt-get install -y \
build-essential \
bash \
bc \
binutils \
build-essential \
bzip2 \
cpio \
g++ \
gcc \
git \
gzip \
make \
libncurses5-dev \
patch \
perl \
python \
rsync \
sed \
tar \
unzip \
wget
WORKDIR /root
RUN git clone git://git.buildroot.net/buildroot
WORKDIR /root/buildroot
CMD ["/bin/bash"]
Run Code Online (Sandbox Code Playgroud)
我想保留dl/
并且output/build/
当容器停止时,所以我不必每次都下载和编译所有依赖项。我还想要我的主机上的构建产品。因此,我像这样启动容器:
$ docker …
我有一个未连接到互联网的远程服务器,但我可以通过 VPN 隧道通过 SSH 连接到它。在这个客户端上,我上网了。是否可以通过 VPN 连接从客户端“获取互联网”?服务器是 Debian 7 机器。