debian安装最小桌面,适合vnc使用
apt -y update
apt -y upgrade
# 安装中文
apt -y install aptitude
aptitude install locales
dpkg-reconfigure locales
nano /etc/default/locale
apt install -y xfonts-intl-chinese xfonts-wqy ttf-wqy-zenhei
apt install -y fcitx fcitx-googlepinyin
apt install -y ibus ibus-gtk ibus-pinyin
# 安装桌面、VNC 和 xrdp
# Install X, LXDE programs
apt install -y xorg lxde-core vnc4server
# Start VNC to create config file xtigervncviewer
vncserver :0
# Then stop VNC
vncserver -kill :0
# Edit config file to start session with LXDE:
nano ~/.vnc/xstartup
# Add this at the bottom of the file:
lxterminal &
/usr/bin/lxsession -s LXDE &
# Restart VNC
vncserver :0
----------------------------------
apt install -y xrdp
service xrdp restart
远程桌面没有正确关闭,导致xrdp登陆失败
nano /etc/xrdp/sesman.ini
[Sessions]
X11DisplayOffset=10
MaxSessions=50
KillDisconnected=1
IdleTimeLimit=0
DisconnectedTimeLimit=0
将最大会话限制该大 MaxSessions= 50
将断开连接时关闭会话进程 KillDisconnected =1
service xrdp restart
----------------------------------
# 安装浏览器
# apt install -y iceweasel
cd /opt
wget https://releases.mozilla.org/pub/firefox/releases/105.0.2/linux-x86_64/zh-CN/firefox-105.0.2.tar.bz2
wget https://releases.mozilla.org/pub/firefox/releases/111.0/linux-x86_64/zh-CN/firefox-111.0.tar.bz2
tar -jxvf firefox-105.0.2.tar.bz2
ln -s /opt/firefox/firefox /usr/bin/firefox
https://www.google.com/chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
apt install -y ./google-chrome-stable_current_amd64.deb