Исходная система: Distributor ID: ALT Description: ALT Server 11.0 (Mendelevium) Release: 11.0 Codename: Mendelevium
-
Установить пакеты
1apt–get install guacamole–server tomcat tomcat–webapps tomcat–admin–webapps tomcat–guacamole–webapps -
Сгенерировать пароль
Создать пустой файл:
|
1 |
touch md5_passgen.sh |
Добавить следующие строки:
|
1 2 3 |
#!/bin/bash pass=password echo –n $pass | openssl md5 > passgen_output.txt |
|
1 2 |
chmod +x md5_passgen.sh ./md5_passgen.sh |
|
1 2 |
[root@vs–gcml specnix]# cat passgen_output.txt MD5(stdin)= 5f4dcc3b5aa765d61d8327deb882cf99 |
03 Настроить Guacamole на работу по протоколу XRDP Отредактировать файл: /etc/guacamole/user-mapping.xml
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<?xml version=“1.0” encoding=“UTF-8”?> <user–mapping> <!— Per–user authentication and config information —> <!— A user using md5 to hash the password example below uses the md5 hash of “PASSWORD”)—> <authorize username=“admin” password=“5f4dcc3b5aa765d61d8327deb882cf99” encoding=“md5”> <connection name=“RDP_XFCE”> <protocol>rdp</protocol> <param name=“hostname”>localhost</param> <param name=“port”>3389</param> <param name=“ignore-cert”>true</param> </connection> </authorize> </user–mapping> |
|
1 2 |
systemctl enable guacd.service —now systemctl enable tomcat.service —now |
- Установить XFCE
1234apt–get install xfce4–full xrdpusermod –aG tsusers specnixpkill xrdpsystemctl enable —now xrdp