技術メモと投資&お小遣い稼ぎ!

主に技術メモ、システムトレードメモ、更にお小遣い稼ぎのブログです。

FXでは敷居の高いアービトラージ(裁定取引)は仮想通貨市場で通用するか研究中です。
あとマイニングも研究中です。

Ubuntu16.04へリモートデスクトップ接続する方法

下記のホームページが詳しかった
Ubuntu16.04 LTSをリモートデスクトップで接続できるようにする方法 | WEB Clip


私の環境ubuntu16.04.3では下記のように正常に動かなかった。
-----------------------------------------------------------------------------------------------------------
cannot build devel branch with sudo ./X11rdp-o-matic.sh --branch devel --justdoit


Downloading xrdp source from the GIT repository...
Cloning into '/home/lc/tmp/X11RDP-o-Matic/work/xrdp'...
remote: Counting objects: 502, done.
remote: Compressing objects: 100% (445/445), done.
remote: Total 502 (delta 119), reused 177 (delta 44), pack-reused 0
Receiving objects: 100% (502/502), 1.90 MiB | 0 bytes/s, done.
Resolving deltas: 100% (119/119), done.
Checking connectivity... done.
patching file buildx.sh
Hunk #1 FAILED at 250.
1 out of 1 hunk FAILED -- saving rejects to file buildx.sh.rej
-----------------------------------------------------------------------------------------------------------


下記既知の不具合ページを参照してコマンドを変更する(赤文字が追記した所)
#sudo ./X11rdp-o-matic.sh --branch devel --justdoit --nocpuoptimize


うーん、まだ下記configureエラーが出る・・・
------------------------------------------------
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking CFLAGS for maximum warnings... -Wall
checking whether C compiler accepts -Wwrite-strings... yes
checking if we have SIMD optimisations for cpu type... yes (x86_64)
checking for nasm... no
checking for nasmw... no
checking for yasm... no
configure: error: no nasm (Netwide Assembler) found
configure: error: ./configure failed for librfxcodec
------------------------------------------------


このコマンドを実行後、再度リトライ
$sudo apt-get install nasm


出来た!
--------------------------------------------
Email-Address : root@unknown
License : apache
Package Name : xrdp
Maintainer Name : root
Version : 0.9.4+devel
Package Type : single
Date : Wed, 27 Dec 2017 20:25:43 +0900
Done. Please edit the files in the debian/ subdirectory now.


cp: cannot stat '../readme.txt': No such file or directory
ubuntu04:~/X11RDP-o-Matic$
--------------------------------------------