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