差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
linux:xrdp [2013/01/31 00:26] – [XRDP sesman.ini の設定] ともやん | linux:xrdp [2019/05/18 02:23] (現在) – 外部編集 非ログインユーザー | ||
---|---|---|---|
行 1: | 行 1: | ||
====== XRDP(Open source remote desktop protocol(RDP) server) ====== | ====== XRDP(Open source remote desktop protocol(RDP) server) ====== | ||
- | < | ||
- | $ sudo yum install xrdp | ||
- | Loaded plugins: fastestmirror | ||
- | Loading mirror speeds from cached hostfile | ||
- | * base: ftp.jaist.ac.jp | ||
- | * epel: ftp.jaist.ac.jp | ||
- | * extras: ftp.jaist.ac.jp | ||
- | * rpmforge: fr2.rpmfind.net | ||
- | * rpmfusion-free-updates: | ||
- | * rpmfusion-free-updates-testing: | ||
- | * rpmfusion-nonfree-updates: | ||
- | * rpmfusion-nonfree-updates-testing: | ||
- | * updates: ftp.jaist.ac.jp | ||
- | Setting up Install Process | ||
- | Resolving Dependencies | ||
- | --> Running transaction check | ||
- | ---> Package xrdp.x86_64 0: | ||
- | --> Finished Dependency Resolution | ||
- | Dependencies Resolved | + | ===== XRDP のインストール ===== |
- | ================================================================================================= | + | ==== CentOS 7.1 - X11RDP-RH-Matic のインストール |
- | Package | + | git コマンドをインストールする。 |
- | ================================================================================================= | + | < |
- | Installing: | + | $ sudo yum install git -y |
- | xrdp | + | </ |
- | Transaction Summary | + | github から X11RDP-RH-Matic を取得する。 |
- | ================================================================================================= | + | < |
- | Install | + | $ mkdir ~/work |
- | Upgrade | + | $ cd ~/work |
+ | $ git clone --depth | ||
+ | </ | ||
+ | < | ||
+ | Cloning into ' | ||
+ | remote: Counting objects: 20, done. | ||
+ | remote: Compressing objects: 100% (20/20), done. | ||
+ | remote: Total 20 (delta | ||
+ | Unpacking objects: 100% (20/20), done. | ||
+ | </ | ||
- | Total download size: 279 k | + | < |
- | Is this ok [y/N]: y | + | $ cd X11RDP-RH-Matic |
- | Downloading Packages: | + | $ ./X11RDP-RH-Matic.sh |
- | xrdp-0.5.0-0.13.el5.x86_64.rpm | + | </ |
- | Running rpm_check_debug | + | < |
- | Running Transaction Test | + | Allow X11RDP-RH-Matic to gain root privileges. |
- | Finished Transaction Test | + | Type your password if required. |
- | Transaction Test Succeeded | + | [sudo] password for tomoyan: <- sudo のパスワードを入力 |
- | Running Transaction | + | </code> |
- | Installing | + | |
- | Installed: | + | === 参考文献 === |
- | xrdp.x86_64 0:0.5.0-0.13.el5 | + | [[https://xrdp.vmeta.jp/X11RDP-RH-Matic|X11RDP-RH-Matic - 日本 xrdp ユーザ会]]\\ |
- | Complete! | + | ==== Fedora ==== |
+ | < | ||
+ | $ sudo yum install xrdp | ||
</ | </ | ||
===== ファイヤーウォールの設定 ===== | ===== ファイヤーウォールの設定 ===== | ||
- | tcp | + | tcp の 3389 ポートを許可するように設定する。 |
+ | ==== Fedora ==== | ||
+ | < | ||
+ | $ sudo firewall-cmd --permanent --add-port=3389/ | ||
+ | $ sudo firewall-cmd --reload | ||
+ | </ | ||
===== サービスの自動起動設定 ===== | ===== サービスの自動起動設定 ===== | ||
+ | |||
+ | ==== CentOS ==== | ||
< | < | ||
$ sudo chkconfig xrdp on | $ sudo chkconfig xrdp on | ||
+ | </ | ||
+ | |||
+ | ==== Fedora ==== | ||
+ | < | ||
+ | $ sudo systemctl enable xrdp.service | ||
+ | $ sudo systemctl enable xrdp-sesman.service | ||
+ | </ | ||
+ | ===== 日本語キーマップ設定 ===== | ||
+ | [[http:// | ||
+ | {{: | ||
+ | < | ||
+ | $ cd /etc/xrdp | ||
+ | $ sudo curl -O http:// | ||
+ | $ sudo ln -s km-e0010411.ini km-0411.ini | ||
+ | $ sudo ln -s km-e0010411.ini km-e0200411.ini | ||
+ | $ sudo ln -s km-e0010411.ini km-e0210411.ini | ||
+ | $ sudo service xrdp restart | ||
</ | </ | ||
行 70: | 行 86: | ||
※CentOS 6.3 では、これを記述しないと error - problem connecting 、または、Connection Log が表示された後にブラックスクリーンのまま、何も表示されない現象が発生していた。 | ※CentOS 6.3 では、これを記述しないと error - problem connecting 、または、Connection Log が表示された後にブラックスクリーンのまま、何も表示されない現象が発生していた。 | ||
===== サービスの起動 ===== | ===== サービスの起動 ===== | ||
+ | |||
+ | ==== CentOS ==== | ||
< | < | ||
$ sudo service xrdp start | $ sudo service xrdp start | ||
</ | </ | ||
+ | |||
+ | ==== Fedora ==== | ||
+ | < | ||
+ | $ sudo systemctl start xrdp.service | ||
+ | $ sudo systemctl start xrdp-sesman.service | ||
+ | </ | ||
+ | |||
+ | ==== xrdpログイン画面のModule項目をカスタマイズ ==== | ||
+ | <code ini> | ||
+ | [globals] | ||
+ | bitmap_cache=yes | ||
+ | bitmap_compression=yes | ||
+ | port=3389 | ||
+ | crypt_level=high | ||
+ | channel_code=1 | ||
+ | |||
+ | [xrdp1] | ||
+ | name=sesman-Xvnc | ||
+ | lib=libvnc.so | ||
+ | username=ask | ||
+ | password=ask | ||
+ | ip=127.0.0.1 | ||
+ | port=-1 | ||
+ | |||
+ | [xrdp2] | ||
+ | name=console | ||
+ | lib=libvnc.so | ||
+ | ip=127.0.0.1 | ||
+ | port=5900 | ||
+ | username=na | ||
+ | password=ask | ||
+ | |||
+ | [xrdp3] | ||
+ | name=vnc-any | ||
+ | lib=libvnc.so | ||
+ | ip=ask172.16.77.70 | ||
+ | port=ask5900 | ||
+ | username=na | ||
+ | password=ask | ||
+ | |||
+ | [xrdp4] | ||
+ | name=sesman-any | ||
+ | lib=libvnc.so | ||
+ | ip=ask | ||
+ | port=-1 | ||
+ | username=ask | ||
+ | password=ask | ||
+ | |||
+ | [xrdp5] | ||
+ | name=rdp-any | ||
+ | lib=librdp.so | ||
+ | ip=ask | ||
+ | port=ask3389 | ||
+ | |||
+ | [xrdp6] | ||
+ | name=sesman-X11rdp | ||
+ | lib=libxup.so | ||
+ | username=ask | ||
+ | password=ask | ||
+ | ip=127.0.0.1 | ||
+ | port=-1 | ||
+ | </ | ||
+ | ===== トラブルシューティング ===== | ||
+ | ==== 接続しても、ブラックスクリーンのまま何も表示されない場合 ==== | ||
+ | リモートデスクトップ クライアント の設定でドメインを空にして接続し直す。 | ||
+ | |||
+ | ===== 参考文献 ===== | ||
+ | [[http:// | ||
+ | [[http:// | ||
+ |