AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-345005

Ben's questions

Martin Hope
Ben
Asked: 2019-05-06 11:16:24 +0800 CST

如何从实时 USB 密钥安装 yay?

  • 1

我知道如何安装耶:

git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

我想要做的是从我的 live USB 安装程序安装它。

我确实创建了自己的 archiso,并使用安装脚本从头开始安装 Arch 并根据我的喜好对其进行自定义。

但是,安装脚本以 root 身份执行,root 无法调用 makepkg。我已经使用以下方法在目标系统上创建了我的用户帐户:

arch-chroot /mnt useradd -m -g users -s /bin/bash -G wheel,uucp "$user"

如果我su $user执行 makepkg,我的用户将无法识别,因为它是目标系统用户而不是实时用户。

我可以创建一个实时用户并使用它进行编译,将 PKGDESK 更改为 /mnt/usr/bin,但我不确定这是否可行(wrt 文件权限)。

在实时 ISO 中安装 AUR 有更好的方法吗?

arch-linux
  • 1 个回答
  • 410 Views
Martin Hope
Ben
Asked: 2019-05-03 22:44:06 +0800 CST

无法在 virtualbox 中启动 X

  • 0

我已经开始创建自己的 archiso,因为安装 arch 很有趣,但自动化它更有趣 ;-)。

在我的计算机上实际使用它进行全新安装之前,我正在虚拟机上对其进行测试。

这显然是一项正在进行的工作,但可以在这里找到源文件:https ://gitlab.com/neopium/archlinux

这不应该是通用的,它只应该在我的电脑上工作。例如,我希望我的系统使用 GB 英语,但我使用的是 azerty 法语键盘,这是硬编码的,因为它可能不会在我的设置中改变。

所以,我主要有两个我定制的脚本。

第一个是https://gitlab.com/neopium/archlinux/blob/master/archlive/airootfs/root/customize_airootfs.sh。

它用于创建 ISO 本身。没有什么花哨的,真的。

第二个更有趣:它是我正在执行的脚本,用于在运行实时 ISO 时自动安装我的最小设置:https ://gitlab.com/neopium/archlinux/blob/master/archlive/airootfs/root/install -arch.sh

同样,这是一项正在进行的工作。有些东西仍然是硬编码的。例如,它假定分区已经创建,/boot 在 /dev/sda1 上,/ 在 /dev/sda2 上。

如果你想使用这个脚本要小心,它会格式化 /dev/sda1 和 /dev/sda2 分区!

我检索主机名、用户名和密码,格式化磁盘,安装一些基本包(列表尚未确定),安装 grub,设置语言环境和时区,创建用户并将其添加到 sudoers,最后激活互联网.

这是安装软件包的命令:

pacstrap -i /mnt base base-devel git curl wget openssh zsh zsh-completions networkmanager btrfs-progs ntfs-3g grub \
    os-prober xorg xorg-xinit xorg-apps xf86-video-fbdev mesa bspwm sxhkd xf86-video-intel xf86-input-synaptics nvidia \
    nvidia-utils lib32-nvidia-utils kitty rofi neovim alsa-utils pulseaudio dunst

我还有第三个脚本,它安装仅与虚拟盒相关的软件包:https ://gitlab.com/neopium/archlinux/blob/master/archlive/airootfs/root/additional-virtualbox.sh

arch-chroot /mnt pacman -S virtualbox-guest-modules-arch
arch-chroot /mnt pacman -S virtualbox-guest-utils

然后我重新启动我的 virtualbox,使用我的用户帐户登录。但是当我输入 startx 时,它不起作用。

这是 Xorg.0.log 文件:https ://pastebin.com/raw/4RmxbDN8

我想我错过了安装/配置 xorg 的一步,但我不知道是哪一步。

我有两条错误消息:

(EE) Failed to load module "vboxvideo" (module does not exist, 0)
(EE) modeset(0): glamor initialization failed

仅供参考,我已经在archlinux 论坛上交叉发布了这个问题,但是在考虑之后,我的问题可能不是特定于 arch 的问题,而更多的是与 virtual box / xorg 相关。如有必要,我将更新这两个帖子。

编辑:

我意识到我的 virtualbox 添加配置不正确,所以在主机上,我运行:

sudo systemctl enable vboxservice.service
sudo systemctl restart vboxservice.service

执行lsmod给出:

Module                  Size  Used by
vboxsf                 40960  0
intel_powerclamp       20480  0
vboxvideo              40960  1
crct10dif_pclmul       16384  1
crc32_pclmul           16384  0
ttm                   114688  1 vboxvideo
ghash_clmulni_intel    16384  0
aesni_intel           372736  0
drm_kms_helper        208896  1 vboxvideo
aes_x86_64             20480  1 aesni_intel
snd_intel8x0           49152  0
crypto_simd            16384  1 aesni_intel
cryptd                 28672  3 crypto_simd,ghash_clmulni_intel,aesni_intel
glue_helper            16384  1 aesni_intel
drm                   499712  4 drm_kms_helper,vboxvideo,ttm
snd_ac97_codec        151552  1 snd_intel8x0
ac97_bus               16384  1 snd_ac97_codec
intel_rapl_perf        16384  0
snd_pcm               135168  2 snd_intel8x0,snd_ac97_codec
psmouse               172032  0
joydev                 28672  0
mousedev               24576  0
pcspkr                 16384  0
input_leds             16384  0
snd_timer              40960  1 snd_pcm
snd                   102400  4 snd_intel8x0,snd_timer,snd_ac97_codec,snd_pcm
intel_agp              24576  0
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
evdev                  24576  3
intel_gtt              24576  1 intel_agp
ac                     16384  0
mac_hid                16384  0
agpgart                53248  4 intel_agp,intel_gtt,ttm,drm
sysimgblt              16384  1 drm_kms_helper
soundcore              16384  1 snd
fb_sys_fops            16384  1 drm_kms_helper
vboxguest              45056  2 vboxsf
i2c_piix4              28672  0
ip_tables              32768  0
x_tables               49152  1 ip_tables
ext4                  749568  1
hid_generic            16384  0
crc32c_generic         16384  0
crc16                  16384  1 ext4
mbcache                16384  1 ext4
jbd2                  131072  1 ext4

同样在 xorg 方面,我在 /etc/X11 中没有 xorg.conf 文件。所以我创建了一个:

Xorg :1 -configure

X 仍然没有启动,但错误不一样:https ://pastebin.com/raw/e8FwRbVf

vbox% grep "(EE)" .local/share/xorg/Xorg.0.log 
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    41.117] (EE) modeset(0): glamor initialization failed


vbox% grep "(WW)" .local/share/xorg/Xorg.0.log 
[    40.566] (WW) Failed to open protocol names file lib/xorg/protocol.txt
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    40.591] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/misc".
[    40.591] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[    40.591] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[    40.591] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[    40.594] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/misc".
[    40.594] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[    40.594] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[    40.594] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[    40.594] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[    40.594] (WW) Disabling Mouse0
[    40.594] (WW) Disabling Keyboard0
[    40.601] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    40.629] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
arch-linux xorg
  • 1 个回答
  • 2055 Views
Martin Hope
Ben
Asked: 2019-04-04 23:38:52 +0800 CST

i3 中是否有可定制的垂直侧边栏?

  • 1

我目前使用 Polybar 作为 i3 的主要和唯一工具栏。

我喜欢它的地方在于它是高度可定制的:

  • 外观和感觉可以随意定制,具有光滑和现代的外观
  • 我几乎可以拥有任何基于脚本的监控工具(CPU、GPU 活动、RAM 等)
  • 该栏是交互式的:我可以单击它来更改工作区、注销、锁定屏幕等。

但是,据我所知,该栏只能放置在桌面的顶部或底部。当您使用 16/9 显示器时,垂直空间非常宝贵。

有没有办法在侧面显示栏?如果没有,是否还有其他类似于 polybar 的可自定义栏来做到这一点?

i3 toolbar
  • 1 个回答
  • 1934 Views
Martin Hope
Ben
Asked: 2019-04-03 00:43:54 +0800 CST

如何在文本编辑器中使用图标字体?

  • 5

我目前正在玩Polybar,并且正在尝试自定义此处提供的精美主题。

为了在栏上显示漂亮的图标,上述主题使用Material Icons,通过设置:

content =  <- here is the character icon

正如您在上面看到的,stackoverflow 无法正确呈现字符。

我的问题有两个:

  • 我的文本编辑器也不能正确渲染字体(我使用 SublimeText 3 和 Vim):我看到的是正方形或空白。不启动 Polybar 不容易知道设置的图标是什么。
  • 如果我想使用一个新图标,我不知道如何输入它。我应该复制/粘贴它吗?从哪里?我应该使用CharMap之类的工具吗?然后,如何在文本编辑器中插入 unicode?

上面显示的人物信息

U+E1BD  - No such unicode character name in database
UTF-8: ee 86 bd  UTF-16BE: e1bd  Decimal: &#57789;
 ()
Uppercase: U+E1BD
Category: Co (Other, Private Use)
Bidi: L (Left-to-Right)

图标可以在这里找到: https ://material.io/tools/icons/?icon=widgets&style=baseline


我在用

  • 操作系统:Antergos -> Arch
  • vim:在 urxvt 终端中
fonts icons
  • 1 个回答
  • 3669 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve