From a002dfe29ed7422ecfd724d1eb145f20b48315b7 Mon Sep 17 00:00:00 2001 From: superconvert Date: Sat, 17 Sep 2022 06:21:44 +0000 Subject: [PATCH] update scripts --- 01_build_src.sh | 8 ++++++++ mk_xfce.sh | 1 + 2 files changed, 9 insertions(+) diff --git a/01_build_src.sh b/01_build_src.sh index 1372daf..eabd57a 100755 --- a/01_build_src.sh +++ b/01_build_src.sh @@ -1,5 +1,13 @@ #!/bin/sh +if [ -f "/usr/bin/apt" ]; then + apt -y install gcc g++ make gawk bison libelf-dev bridge-utils +fi + +if [ -f "/usr/bin/yum" ]; then + yum -y install gcc gcc-c++ make gawk bison elfutils-libelf bridge-utils +fi + #----------------------------------------------- # # 导入公共变量 diff --git a/mk_xfce.sh b/mk_xfce.sh index 98e3117..688d84b 100755 --- a/mk_xfce.sh +++ b/mk_xfce.sh @@ -917,6 +917,7 @@ if [ "${with_xfce_test}" = true ]; then # 4. 在 ssh 的终端里 # export DISPLAY=:10 # LD_LIBRARY_PATH="${libpath}:${libjpegdir}" xfce4-session + # 5. 这样虚拟机里面就会出现真正的窗口系统 fi