- 添加源 :
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 - 安装openbox
apt install xorg openbox
- 安装chrome
apt install google-chrome-stable -
- 配置root自动登陆
https://superuser.com/questions/969923/automatic-root-login-in-debian-8-0-console-only
The file
/etc/inittab
is not used undersystemd
any longer. If you wanted, you could installsystemv
and you would find yourself a brand newinittab
, but this would mean walking backward like crabs.You can instead edit the file
/lib/systemd/system/getty@.service
and change the lineExecStart=-/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.
- 配置自启动应用程序
修改 root/.profile
加入以下内容
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; thenstartx /usr/bin/openbox --startup /root/start_chrome.sh&>/dev/nullfistart_chrome.sh
#!/bin/bashgoogle-chrome-stable --no-sandbox
- 配置root自动登陆
proxmox VE minimal 配置openbox自启动
最新推荐文章于 2025-01-21 10:38:32 发布