gpt4 book ai didi

ubuntu - 如何使 Ubuntu Mate headless (headless)并在 Raspberry Pi 上自动登录?

转载 作者:行者123 更新时间:2023-12-04 18:32:15 24 4
gpt4 key购买 nike

  • 我知道如何 auto login在使用 lightdbm 的图形界面启动 Raspberry Pi 时。
  • 我知道如何 make树莓派“ headless (headless)”。
  • 我知道如何在启动时运行脚本。 (~/.bashrc)

  • 我的问题是:我不知道如何制作一个在启动时运行的脚本,该脚本可以自动登录到 Raspberry Pi,同时禁用图形界面以使其 headless (headless)运行。

    找了几篇文章,大家用 /etc/inittab但该文件似乎不存在于 Ubuntu mate 版本上。我在 /etc/init/tty1 中查找了一个文件但它也不存在。

    最佳答案

    尝试这个:

    您需要更改默认目标以在 systemd 中启动。

    您可以使用以下命令启动到终端 -

    systemctl set-default multi-user.target --force
    systemctl disable lightdm.service --force
    systemctl disable graphical.target --force
    systemctl disable plymouth.service --force

    替换 disableenable如果您想再次启动到桌面。

    看看这个答案: Boot to shell with Ubuntu MATE 15.04 on raspberry pi

    有问题,深挖 here

    关于ubuntu - 如何使 Ubuntu Mate headless (headless)并在 Raspberry Pi 上自动登录?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31883961/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com