proxmox VE minimal 配置openbox自启动

  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/[email protected] 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



你可能感兴趣的:(proxmox VE minimal 配置openbox自启动)