본문 바로가기
AndroidOverLinux

Apache Guacamole 1.0.0 설치하기 (debian9)

by ㅋㅋ잠자 2019. 6. 4.
반응형

안녕하세요? 


guacamole remote 를 설치해 보겠습니다. 설치과정이 복잡해짐에 따라 아래의 스크립트를 만들어 준 분이 계셔서 쉽게 설치가 가능합니다.


https://github.com/MysticRyuujin/guac-install





1. 이전 설치 게시글 모음


https://blog.djjproject.com/240

https://blog.djjproject.com/233

https://blog.djjproject.com/204

https://blog.djjproject.com/173

https://blog.djjproject.com/171

https://blog.djjproject.com/150

https://blog.djjproject.com/148

https://blog.djjproject.com/131

https://blog.djjproject.com/124





2. 수정된 스크립트


상기 스크립트를 참고하여 아래의 스크립트를 만들었습니다.


https://github.com/djjproject/guac-install/raw/master/guac-install.sh


sysv init 을 사용하고 계정 권한 및 tomcat8 java 바이너리를 수정합니다. 추가적으로 totp 모듈을 삭제합니다.

특히 tomcat이 데비안 저장소의 openjdk 를 사용할 경우 성능이 많이 떨어집니다. 그래서 임베디드 jdk 로 교체하여 실행하는 부분을 추가하였습니다.


root@AOL-Debian:~# wget https://github.com/djjproject/guac-install/raw/master/guac-install.sh

--2019-06-04 10:25:18--  https://github.com/djjproject/guac-install/raw/master/guac-install.sh

Resolving github.com (github.com)... 52.78.231.108

Connecting to github.com (github.com)|52.78.231.108|:443... connected.

HTTP request sent, awaiting response... 302 Found

Location: https://raw.githubusercontent.com/djjproject/guac-install/master/guac-install.sh [following]

--2019-06-04 10:25:18--  https://raw.githubusercontent.com/djjproject/guac-install/master/guac-install.sh

Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...

Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.

HTTP request sent, awaiting response... 200 OK

Length: 9392 (9.2K) [text/plain]

Saving to: ‘guac-install.sh’


guac-install.sh              100%[==============================================>]   9.17K  --.-KB/s    in 0.001s  


2019-06-04 10:25:19 (6.10 MB/s) - ‘guac-install.sh’ saved [9392/9392]


root@AOL-Debian:~# chmod a+x guac-install.sh 

root@AOL-Debian:~# ./guac-install.sh 


# mysql 을 이미 사용중이라면 해당 비번 입력, 아니면 사용하고 싶은 비번 입력

Enter a MySQL ROOT Password: 

Confirm MySQL ROOT Password: 


# guacamole 이 사용할 db 입력

Enter a Guacamole User Database Password: 

Confirm Guacamole User Database Password: 


Installing dependencies. This might take a few minutes...


Adding user `mysql' to group `aid_inet' ...

Adding user mysql to group aid_inet

Done.

[ ok ] Stopping MariaDB database server: mysqld.

[ ok ] Starting MariaDB database server: mysqld.

OK

Downloading Files...

guacamole-server-1.0.0.tar.g 100%[==============================================>] 894.45K  --.-KB/s    in 0.1s    

Downloaded guacamole-server-1.0.0.tar.gz

guacamole-1.0.0.war          100%[==============================================>]   8.85M  5.10MB/s    in 1.7s    

Downloaded guacamole-1.0.0.war

guacamole-auth-jdbc-1.0.0.ta 100%[==============================================>]  12.99M  20.0MB/s    in 0.6s    

Downloaded guacamole-auth-jdbc-1.0.0.tar.gz

guacamole-auth-totp-1.0.0.ta 100%[==============================================>]   3.67M  12.9MB/s    in 0.3s    

Downloaded guacamole-auth-totp-1.0.0.tar.gz

Downloading complete.

Building Guacamole with GCC 6.3.0 

Configuring. This might take a minute...

OK

Running Make. This might take a few minutes...

OK
Running Make Install...
OK
Restarting tomcat...
[ ok ] Starting Tomcat servlet engine: tomcat8.
OK
Adding db tables...
OK
Starting guacd: guacd[3437]: INFO: Guacamole proxy daemon (guacd) version 1.0.0 started
SUCCESS
Cleanup install files...
OK
Adding user `tomcat8' to group `aid_inet' ...
Adding user tomcat8 to group aid_inet
Done.
--2019-06-04 11:12:21--  http://u5pvr.djjproject.com/jdk-8u131-linux-arm32-vfp-hflt.tar.gz
Resolving u5pvr.djjproject.com (u5pvr.djjproject.com)... 58.123.71.137
Connecting to u5pvr.djjproject.com (u5pvr.djjproject.com)|58.123.71.137|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 81648626 (78M) [application/x-gzip]
Saving to: ‘jdk-8u131-linux-arm32-vfp-hflt.tar.gz’

jdk-8u131-linux-arm32-vfp-hf 100%[==============================================>]  77.87M  9.59MB/s    in 10s     

2019-06-04 11:12:32 (7.47 MB/s) - ‘jdk-8u131-linux-arm32-vfp-hflt.tar.gz’ saved [81648626/81648626]

Stopping guacd: SUCCESS
Starting guacd: guacd[3535]: INFO: Guacamole proxy daemon (guacd) version 1.0.0 started
SUCCESS
[ ok ] Stopping Tomcat servlet engine: tomcat8.
[ ok ] Starting Tomcat servlet engine: tomcat8.
Installation Complete
http://localhost:8080/guacamole/
Default login guacadmin:guacadmin
Be sure to change the password.


설치가 완료 되었습니다.





3. 실행해보기


http://u5ipaddr:8080/guacamole


초기 아이디 비밀번호는 guacadmin 입니다.



기본적으로 계정을 관리자로 하나 더 만들어주신 다음에 guacadmin 계정을 삭제하시면 무방합니다.


일단 테스트라서 그냥 진행해 봅니다.



SSH 연결을 생성하고 로컬호스트에 연결해 보았습니다. 잘 작동합니다.



윈도우 RDP 연결은 아래와 같이 작동합니다.




감사합니다.








반응형

댓글