首页 > 其他分享 >loongnix下guacamole-server编译安装

loongnix下guacamole-server编译安装

时间:2023-02-23 09:25:41浏览次数:58  
标签:guacamole no server yum install yes devel loongnix

1、代码获取

官网地址:https://guacamole.apache.org/doc/gug/troubleshooting.html

代码获取地址:https://github.com/apache/guacamole-server/tags

本地编译的版本:1.5.0

代码获取后直接解压,即可:

cd /opt/guacamole-server-1.5.0/
autoreconf -fi

2、基础组件安装

基础组件比较多,先执行一下configure配置一下缺什么组件:

./configure --with-init-dir=/etc/init.d/
结果最终如下:
------------------------------------------------
guacamole-server version 1.5.0
------------------------------------------------

   Library status:

     freerdp2 ............ yes
     pango ............... yes
     libavcodec .......... no
     libavformat.......... no
     libavutil ........... no
     libssh2 ............. yes
     libssl .............. yes
     libswscale .......... no
     libtelnet ........... yes
     libVNCServer ........ yes
     libvorbis ........... yes
     libpulse ............ yes
     libwebsockets ....... yes
     libwebp ............. yes
     wsock32 ............. no
   Protocol support:
      Kubernetes .... yes
      RDP ........... yes
      SSH ........... yes
      Telnet ........ yes
      VNC ........... yes
   Services / tools:
      guacd ...... yes
      guacenc .... no
      guaclog .... yes
   FreeRDP plugins: /usr/lib64/freerdp2
   Init scripts: /etc/init.d/
   Systemd units: no

应该是有很多时是"no", 安装以下组件在执行configure:

yum install libpng -y
yum install libpng-devel -y
yum install cairo -y
yum install cairo-devel -y
yum install openssl -y
yum install openssl-devel -y
yum install pangu -y
yum install pango -y
yum install pango-devel -y
yum install uuid -y
yum install uuid-devel -y
yum install libvorbis -y
yum install libvorbis-devel -y
yum install make -y
yum install libjpeg -y
yum install libjpeg-devel -y
yum install gcc
yum install libvncserver -y
yum install libvncserver-devel -y
yum install libwebsockets -y
yum install libwebsockets-devel -y
yum install libwebp -y
yum install libwebp-devel -y
yum install pulseaudio-libs -y
yum install pulseaudio-libs-devel -y
yum install cmake -y
yum install libtool -y
yum install xinetd -y
yum install libgcrypt-devel -y
yum install telnet-server
yum install telnet
yum install freerdp -y
yum install freerdp-devel -y

其中有两个组件:

libtelnet的编译请查看:https://www.cnblogs.com/silent2012/p/17143595.html

libssh2的编译请查看:https://www.cnblogs.com/silent2012/p/17143422.html

freerdp的安装先需要安装soxr,在本地可以直接安装,8.3的base镜像如果安装有问题,请直接在 http://pkg.loongnix.cn/loongnix-server/8.3/epel/loongarch64/release/Everything/Packages/ 下载rpm包安装即可

3、编译安装

make
make install
ldconfig

4、编译完成后默认在/usr/local/sbin下

cd /usr/local/sbin
./guacd  -b 0.0.0.0 -L info_LEVEL -f
#本地可以直接在/etc/inid.d/guacd start 启动

5、docker镜像制作

可以直接拉取lshxb/loongnix-server-base:8.3 ,然后在容器中执行以上步骤,导出镜像即可

也可以将以上步骤写到Dockerfile中直接建立镜像,镜像内启动服务命令:

EXPOSE 4822
CMD /usr/local/sbin/guacd -b 0.0.0.0 -L info -f

 

标签:guacamole,no,server,yum,install,yes,devel,loongnix
From: https://www.cnblogs.com/silent2012/p/17145309.html

相关文章