proxmox VE minimal 配置openbox自启动

本文介绍了如何在Proxmox VE最小化环境中配置Openbox窗口管理器,并设置Google Chrome浏览器作为自启动应用。首先通过添加Google Chrome的源和密钥进行安装,然后安装Openbox和Chrome。接着,通过脚本`start_chrome.sh`实现Chrome无sandbox模式启动。同时,还提供了自动以root用户登录和配置自启动应用的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  1. 添加源 :
    deb http://dl.google.com/linux/chrome/deb/ stable main
    添加key :
    wget https://dl-ssl.google.com/linux/linux_signing_key.pub
    apt-key add linux_signing_key.pub
    更新并安装:
    apt update
  2. 安装openbox
    apt install xorg openbox
  3. 安装chrome
    apt  install google-chrome-stable
    1. 配置root自动登陆
      https://superuser.com/questions/969923/automatic-root-login-in-debian-8-0-console-only

      The file /etc/inittab is not used under systemd any longer. If you wanted, you could install systemv and you would find yourself a brand new inittab, but this would mean walking backward like crabs.

      You can instead edit the file /lib/systemd/system/getty@.service and change the line

        ExecStart=-/sbin/agetty --noclear %I $TERM
      

      to

        ExecStart=-/sbin/agetty --noclear -a root %I $TERM
      

      This just follows from the agetty manual page, which states, among other things:

      -a, --autologin username

      Log the specified user automatically in without asking for a login name and password. The -f username option is added to the /bin/login command line by default. The --login-options option changes this default behavior and then only \u is replaced by the username and no other option is added to the login command line.


    2. 配置自启动应用程序
      修改 root/.profile
      加入以下内容

    if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
        startx /usr/bin/openbox --startup /root/start_chrome.sh&>/dev/null
    fi
          
    start_chrome.sh

    #!/bin/bash
    google-chrome-stable --no-sandbox



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值