我有一个arch Linux盒,它显示了一些非常奇怪的行为。在引导时,我有一个脚本被调用来启动接口&根据我的需要配置它们。即:
ip link add link eth0 name mgt10 type vlan id 10
ip link add link eth0 name guest20 type vlan id 20
ip link set mgt10 up
ip addr add 10.10.0.1/24 dev mgt10
ip link set guest20 up
ip addr add 10.20.0.1/24 dev guest20
在调用此脚本后,我看到接口已
我有领事作为名称服务器,从服务的两个实例中解析地址。通过dig interface.http.service.consul提供的DNS信息:
...
interface.http.service.consul. 0 IN A 10.0.0.85
interface.http.service.consul. 0 IN A 10.0.1.22
...
ping将在两个地址之间交替使用:
while true; do ping -c 1 interface.http.service.consul | grep PING; sleep 1; done
PING interfac
我的笔记本电脑有一个以太网端口和一个Realtek以太网控制器:
$ ip -brief addr
lo UNKNOWN 127.0.0.1/8 ::1/128
enp2s0f0 DOWN
enp5s0 UP 192.168.50.83/24 fe80::3af3:abff:fe0c:886f/64
wlp3s0 UP 192.168.50.127/24 fe80::6dc5:4c36:33c3:2795/64
$ lsp
我遵循了一个教程来安装Linux 16肉桂,它运行得非常好,目前使用它来发布这个问题。但是,当grub加载我得到的三个选项时,它们是Linux、Linux (兼容性模式)和系统启动。我的电脑已经预装了windows 8,恢复和windows分区在磁盘使用分析器上仍然可见。当我安装Linux时,我打开了遗留模式,但是如果我关闭它,Linux仍然可以正常工作。
我尝试过"sudo update-grub“命令,它如下所示
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.11.0-12-generic
Found init
我有一台台式机和一台膝上型电脑,每台都配有运行Arch的无线和有线(eth0)网络适配器。我所在的无线网络(S)阻止笔记本电脑看到台式机。我想做的是使用有线适配器,这样我就可以从笔记本电脑到台式机。桌面上的有线适配器目前没有任何用途,但是笔记本电脑通过DHCP连接到各种有线网络。我可以手动安装在台式机和笔记本电脑通过网络电缆连接,但我有问题的自动设置。
对于手动情况,如果我首先用网络电缆将台式机连接到膝上型计算机,那么当我运行时一切都正常:
# ip link set down dev eth0
# ip addr add 192.168.1.1/24 dev eth0
# ip link s
过去的三天,我经历了随机的冰冻。如果我看到youtube,当这种情况发生时,音频继续播放,但屏幕是冻结的,键盘或光标不做任何事情。
我试着在sudo journalctl中寻找,这就是我发现的:
led 04 10:44:02 arch-thinkpad kernel: i915 0000:00:02.0: [drm] *ERROR* Atomic update failure on pipe C (start=113031 end=113032) time 340 us, min 1073, max 1079, scanline start 1062, end 1085
led 04 11:
我需要用GPGME错误来解决这个问题。我不能升级或安装任何东西。这就是我在航站楼得到的信息:
sudo pacman -Syyu
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases...
core 1424.0 B 0.00B/s 00:00 [######################] 100%
core.sig 1424.0
我正在尝试自动化一个需要从文件中检索依赖项列表的构建过程,然后将这些依赖项编成一个命令。我有一个循环来自动下载我正在构建的包,但是我需要读取一个文件并获得一个依赖项列表。我想做的是:
cd ${pkg}
then read this line from a file called PKGBUILD: depends=('dep1' 'dep2')
paru -S dep1 dep2
有办法这样做吗?我刚开始使用bash,但我已经(复制)了这段代码:这段代码的问题是它不像AUR中那样检索一些依赖项,所以makepkg不会自动检索它们。
build_pkgs ()
我正在使用最新的Arch Linux。但是,每当我启动我的电脑,它有时会得到一个IP地址,但大多数时候,它会给我压力。我很困惑,怎么才能确定它真的是在设置DHCP IP呢?
这就是我所拥有的:
在rc.conf中:
DAEMONS=( ... network dhcpcd )
我在~/.xinitrc中的系统引导
ip link set dev eth0 up
ip link set dev eht1 up
dhcpcd -t 100
但是现在,我已经重新启动了10次,而且我没有任何IP地址。
昨天,我有接口eth0,eth1,lo。在这个奇怪的IP问题之后,现在我用相同的配置成功地引导回我的
我正在运行内核版本4.0.7-2的Arch,我无法挂载任何ISO映像。我下载了Arch实时映像和命令
mount archlinux-2015.08.01-dual.iso /media/iso
给出以下错误:
mount: wrong fs type, bad option, bad superblock on /dev/loop1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg
情况如下:我配置了我的Raspberry Pi /etc/dhcpcd.conf文件,以便使用带有静态ip地址的静态配置文件。
# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.
# Allow users of this group to interact with dhcpcd via the control socket.
#controlgroup wheel
# Inform the DHCP server of our hostname for DDNS.
alarm_host
# Us
当我使用netctl连接到我的有线网络时,连接会在几秒钟后自动下降。它同时发生在DHCP和静态配置中,但是同一个网络上的wifi连接工作得很好。
真正困扰我的是日志中绝对没有任何内容,journalctl的输出在网络启动期间是绝对正常的,当网络断开时也不会发生任何事情。
Aug 22 18:34:37 dimension polkitd[5127]: Registered Authentication Agent for unix-process:7050:2995548 (system bus name :1.66 [/usr/bin/pkttyagent --notify-fd 5 --f
我正在运行bash脚本:
#!/bin/bash
touch archlinux_log.txt
touch packages_not_in_archlinux.txt
while read line; do
if pacman -Q --info $line ; then
pacman -Q --info $line >> archlinux_log.txt
else
echo "No Package info for $line"
$line >> packages_not_in_ar