我的博客

onecloud-armbian

目录
  1. 编译安装 Python 3.9
  2. xrdp(来源)
    1. 配置
    2. 配置openbox

/etc/update-motd.d/30-armbian-sysinfo 显示温度,负载,存储,网络等信息的脚本。来源

编译安装 Python 3.9

1
2
3
4
5
6
7
8
9
10
11
12
wget https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tgz
tar -xzvf Python-3.9.0.tgz
cd Python-3.9.0/
sudo apt build-dep python3 # https://devguide.python.org/setup/#build-dependencies
sudo apt install zlib1g.dev # zlib
sudo apt install libffi-dev # ctypes
sudo apt install libsqlite3-dev # sqlite3
./configure --enable-optimizations --enable-shared --disable-profiling # –-prefix=/usr/local
make -j2
sudo make install
sudo ldconfig
sudo ln /usr/local/bin/python3.9 /usr/local/bin/py -s
1
2
sudo update-alternatives --display x-window-manager
sudo update-alternatives --config x-window-manager

xrdp(来源

1
sudo apt install openbox tint2 xrdp xserver-xorg-core  xorgxrdp tightvncserver fonts-wqy-microhei pcmanfm

配置

编辑/etc/xrdp/startwm.sh文件,把

最后两行注释掉,

1
2
#test -x /etc/X11/Xsession && exec /etc/X11/Xsession
#exec /bin/sh /etc/X11/Xsession

然后增加

1
exec openbox-session

配置openbox

创建openbox自启目录:

1
mkdir ~/.config/openbox

创建启动脚本:

1
touch ~/.config/openbox/autostart

在里面添加下面内容:

1
tint2

评论无需登录,可以匿名,欢迎评论!