HOME
  Security
   Software
    Hardware
  
FPGA
  CPU
   Android
    Raspberry Pi
  
nLite
  Xcode
   etc.
    ALL
  
LINK
BACK
 

[NEW] 2021/09/20

Windowsパソコンから「リモートデスクトップ接続」で Raspberry Piの GUIに接続する方法 Windowsパソコンから「リモートデスクトップ接続」で Raspberry Piの GUIに接続する方法

(Raspberry Piで Windowsのリモートデスクトップ サーバ機能をインストールして Windowsから簡単に GUI操作をする方法)

Tags: [Raspberry Pi], [電子工作]




●以前(2016年)にも同じ記事を書いたのを忘れていた!(笑)

2016/06/09
Raspberry Pi3の X-Window Systemに Windowsのリモートデスクトップから接続する方法
Raspberry Pi3の X-Window Systemに Windowsのリモートデスクトップから接続する方法

  ラズパイ3に xrdpをインストールして Windowsから RDPで X-Window Systemを操作する方法


● Windowsパソコンから「リモートデスクトップ接続」で Raspberry Piの GUIに接続する方法

 Windows 10(Client) → ラズパイ(Host)

 Raspberry Piで Windowsのリモートデスクトップ サーバ機能をインストールして Windowsから簡単に GUI操作をする方法。

 xrdpをインストールしたら完了。すごく簡単!

xrdp
 an open-source Remote Desktop Protocol server

sudo apt install xrdp

● xrdpを自分でビルドする方法(上級者向け)

# Uninstall
sudo apt remove -y xrdp

xrdp Building from sources
xrdp Building on Debian 8

# Dependencies
sudo apt-get install -y \
    git autoconf libtool pkg-config gcc g++ make  libssl-dev libpam0g-dev \
    libjpeg-dev libx11-dev libxfixes-dev libxrandr-dev  flex bison libxml2-dev \
    intltool xsltproc xutils-dev python-libxml2 g++ xutils libfuse-dev \
    libmp3lame-dev nasm libpixman-1-dev xserver-xorg-dev

# Build & Install xrdp
XRDP_SRC_DIR="${PWD}"/xrdp
wget https://github.com/neutrinolabs/xrdp/releases/download/v0.9.17/xrdp-0.9.17.tar.gz
tar xvzf xrdp-0.9.17.tar.gz
mv xrdp-0.9.17 "${XRDP_SRC_DIR}"

cd
git clone https://github.com/neutrinolabs/xrdp --depth 1 -b v0.9.17
cd xrdp

./bootstrap
./configure --enable-fuse --enable-mp3lame --enable-pixman
make -j

# Install the xrdp server on your system
sudo make install
sudo ln -s /usr/local/sbin/xrdp{,-sesman} /usr/sbin

# Build & Install xorgxrdp
cd
git clone https://github.com/neutrinolabs/xorgxrdp --depth 1 -b v0.2.17
cd xorgxrdp
./bootstrap
./configure
make -j

sudo make install

# Start xrdp
sudo systemctl enable xrdp
sudo service xrdp start

● xrpd Failed to enable unit: Unit file /etc/systemd/system/xrdp.service is masked

systemctl unmask xrdp
systemctl unmask xrdp-sesman

pi@raspberrypi:~/xorgxrdp $ sudo systemctl enable xrdp
Synchronizing state of xrdp.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable xrdp
Failed to enable unit: Unit file /etc/systemd/system/xrdp.service is masked.

pi@raspberrypi:~/xorgxrdp $ sudo service xrdp start
Failed to start xrdp.service: Unit xrdp.service is masked.

pi@raspberrypi:~/xorgxrdp $ systemctl unmask xrdp
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files ===
Authentication is required to manage system service or unit files.
Authenticating as: ,,, (pi)
Password:
==== AUTHENTICATION COMPLETE ===
Removed /etc/systemd/system/xrdp.service.
==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ===
Authentication is required to reload the systemd state.
Authenticating as: ,,, (pi)
Password:
==== AUTHENTICATION COMPLETE ===

# Failed to start xrdp.service: Unit xrdp-sesman.service is masked.
systemctl unmask xrdp-sesman


● X11rdpは v0.8までの存在(現在は存在しない)
https://github.com/neutrinolabs/xrdp/tree/v0.8/xorg
# Compilation of X11rdp
cd
cd xrdp
cd ./xorg/X11R7.6
./buildx.sh /opt/X11rdp
sudo ln -s /opt/X11rdp/bin/X11rdp /usr/bin


● ラズパイに FreeRDPをインストールして Windows 10の GUIに接続する

 ラズパイ(Client) → Windows 10(Host)

FreeRDP
 FreeRDP A Remote Desktop Protocol Implementation

sudo apt-get update -y

sudo apt-get install -y \
  ninja-build build-essential git-core debhelper cdbs \
  dpkg-dev autotools-dev cmake pkg-config xmlto libssl-dev \
  docbook-xsl xsltproc libxkbfile-dev libx11-dev libwayland-dev \
  libxrandr-dev libxi-dev libxrender-dev libxext-dev libxinerama-dev \
  libxfixes-dev libxcursor-dev libxv-dev libxdamage-dev libxtst-dev \
  libcups2-dev libpcsclite-dev libasound2-dev libpulse-dev libjpeg-dev \
  libgsm1-dev libusb-1.0-0-dev libudev-dev libdbus-glib-1-dev uuid-dev \
  libxml2-dev \
  libfaad-dev

sudo apt-get install -y \
  libgstreamer1.0-dev \
  libgstreamer-plugins-base1.0-dev

sudo apt-get install -y \
  libgstreamer0.10-dev \
  libgstreamer-plugins-base0.10-dev

sudo apt-get install -y \
  libfaac-dev

sudo apt-get install -y \
  git cmake \
  cdbs zlib1g-dev libssl-dev libglib2.0-dev libxml2-dev \
  libxext-dev libsystemd-dev libwayland-dev libxkbcommon-dev \
  libasound2-dev libpulse-dev libcups2-dev libpcsclite-dev \
  libavcodec-dev libavutil-dev libavresample-dev libswresample-dev \
  libxkbfile-dev libxinerama-dev libxcursor-dev libxv-dev libxi-dev \
  libxrandr-dev docbook-xsl libcairo2-dev xsltproc libusb-1.0-0-dev

cd
git clone git://github.com/FreeRDP/FreeRDP.git -b 2.4.0 --depth 1
cd FreeRDP
git checkout -b 2.4.0

cmake -DTARGET_ARCH=ARM -DWITH_X11=ON
make -j

sudo make install

$ ls -l /usr/local/bin/*freerdp
-rwxr-xr-x 1 root root  41764 Sep  5 10:13 /usr/local/bin/wlfreerdp
-rwxr-xr-x 1 root root 445852 Sep  5 10:13 /usr/local/bin/xfreerdp
# */

WINDOWS_IP=192.168.1.1
WINDOWS_USER=hogehoge
WINDOWS_PASSWORD=password
xfreerdp /v:$WINDOWS_IP /u:$WINDOWS_USER /p:$WINDOWS_PASSWORD /f

$ xfreerdp /?

FreeRDP - A Free Remote Desktop Protocol Implementation
See www.freerdp.com for more information

Usage: xfreerdp [file] [options] [/v:<server>[:port]]

Syntax:
    /flag (enables flag)
    /option:<value> (specifies option with value)
    +toggle -toggle (enables or disables toggle, where '/' is a synonym of '+')

    /a:<addin>[,<options>]            Addin
    /action-script:<file-name>        Action script
    /admin                            Admin (or console) session
    +aero                             Enable desktop composition
    /app:<path> or ||<alias>          Remote application program
    /app-cmd:<parameters>             Remote application command-line parameters
    /app-file:<file-name>             File to open with remote application
    /app-guid:<app-guid>              Remote application GUID
    /app-icon:<icon-path>             Remote application icon for user interface
    /app-name:<app-name>              Remote application name for user interface
    /app-workdir:<workspace path>     Remote application workspace path
    /assistance:<password>            Remote assistance password
    /auto-request-control             Automatically request remote assistance
                                      input control
    +async-channels                   Enable Asynchronous channels
                                      (experimental)
    +async-input                      Enable Asynchronous input
    +async-update                     Enable Asynchronous update
    /audio-mode:<mode>                Audio output mode
    +auth-only                        Enable Authenticate only
    -authentication                   Disable Authentication (experimental)
    +auto-reconnect                   Enable Automatic reconnection
    /auto-reconnect-max-retries:<retries>
                                      Automatic reconnection maximum retries, 0
                                      for unlimited [0,1000]
    +bitmap-cache                     Enable bitmap cache
    /bpp:<depth>                      Session bpp (color depth)
    /buildconfig                      Print the build configuration
    /cert:[deny,ignore,name:<name>,tofu,fingerprint:<hash>:<hash as hex>
          [,fingerprint:<hash>:<another hash>]]
                                      Certificate accept options. Use with care!
                                      * deny         ... Automatically abort
                                      connection if the certificate does not
                                      match, no user interaction.           *
                                      ignore       ... Ignore the certificate
                                      checks altogether (overrules all other
                                      options)                           * name
                                             ... Use the alternate <name>
                                      instead of the certificate subject to
                                      match locally stored certificates * tofu
                                            ... Accept certificate
                                      unconditionally on first connect and deny
                                      on subsequent connections if the
                                      certificate does not match * fingerprints
                                      ... A list of certificate hashes that are
                                      accepted unconditionally for a connection
    /cert-deny                        [deprecated, use /cert:deny] Automatically
                                      abort connection for any certificate that
                                      can not be validated.
    /cert-ignore                      [deprecated, use /cert:ignore] Ignore
                                      certificate
    /cert-name:<name>                 [deprecated, use /cert:name:<name>]
                                      Certificate name
    /cert-tofu                        [deprecated, use /cert:tofu] Automatically
                                      accept certificate on first connect
    /client-build-number:<number>     Client Build Number sent to server
                                      (influences smartcard behaviour, see
                                      [MS-RDPESC])
    /client-hostname:<name>           Client Hostname to send to server
    -clipboard[:[use-selection:<atom>]]
                                      Disable Redirect clipboard.
                                      * use-selection:<atom>  ... (X11) Specify
                                      which X selection to access. Default is
                                      CLIPBOARD. PRIMARY is the X-style
                                      middle-click selection.
    /codec-cache:[rfx|nsc|jpeg]       Bitmap codec cache
    -compression                      Disable compression
    /compression-level:<level>        Compression level (0,1,2)
    +credentials-delegation           Enable credentials delegation
    /d:<domain>                       Domain
    -decorations                      Disable Window decorations
    /disp                             Display control
    /drive:<name>,<path>              Redirect directory <path> as named share
                                      <name>. Hotplug support is enabled with
                                      /drive:hotplug,*. This argument provides
                                      the same function as "Drives that I plug
                                      in later" option in MSTSC.
    +drives                           Enable Redirect all mount points as shares
    /dvc:<channel>[,<options>]        Dynamic virtual channel
    /dynamic-resolution               Send resolution updates when the window is
                                      resized
    /echo                             Echo channel
    -encryption                       Disable Encryption (experimental)
    /encryption-methods:[40,][56,][128,][FIPS]
                                      RDP standard security encryption methods
    /f                                Fullscreen mode (<Ctrl>+<Alt>+<Enter>
                                      toggles fullscreen)
    -fast-path                        Disable fast-path input/output
    +fipsmode                         Enable FIPS mode
    /floatbar[:sticky:[on|off],default:[visible|hidden],show:
               [always|fullscreen||window]]
                                      floatbar is disabled by default (when
                                      enabled defaults to sticky in fullscreen
                                      mode)
    -fonts                            Disable smooth fonts (ClearType)
    /frame-ack:<number>               Number of frame acknowledgement
    /from-stdin[:force]               Read credentials from stdin. With <force>
                                      the prompt is done before connection,
                                      otherwise on server request.
    /g:<gateway>[:<port>]             Gateway Hostname
    /gateway-usage-method:[direct|detect]
                                      Gateway usage method
    /gd:<domain>                      Gateway domain
    /gdi:sw|hw                        GDI rendering
    /geometry                         Geometry tracking channel
    +gestures                         Enable Consume multitouch input locally
    /gfx[:[[RFX|AVC420|AVC444],mask:<value>]]
                                      RDP8 graphics pipeline
    /gfx-h264[:[[AVC420|AVC444],mask:<value>]
               [DEPRECATED] use /gfx:avc420 instead]
                                      RDP8.1 graphics pipeline using H264 codec
    +gfx-progressive                  Enable RDP8 graphics pipeline using progressive
                                      codec
    +gfx-small-cache                  Enable RDP8 graphics pipeline using small cache
                                      mode
    +gfx-thin-client                  Enable RDP8 graphics pipeline using thin client
                                      mode
    +glyph-cache                      Enable Glyph cache (experimental)
    /gp:<password>                    Gateway password
    -grab-keyboard                    Disable Grab keyboard
    /gt:[rpc|http[,no-websockets]|auto[,no-websockets]]
                                      Gateway transport type
    /gu:[[<domain>\]<user>|<user>[@<domain>]]
                                      Gateway username
    /gat:<access token>               Gateway Access Token
    /h:<height>                       Height
    -heartbeat                        Disable Support heartbeat PDUs
    /help                             Print help
    +home-drive                       Enable Redirect user home as share
    /ipv6                             Prefer IPv6 AAA record over IPv4 A record
    /kbd:0x<id> or <name>             Keyboard layout
    /kbd-lang:0x<id>                  Keyboard active language identifier
    /kbd-fn-key:<value>               Function key value
    /kbd-list                         List keyboard layouts
    /kbd-lang-list                    List keyboard languages
    /kbd-remap:List of <key>=<value>,... pairs to remap scancodes
                                      Keyboard scancode remapping
    /kbd-subtype:<id>                 Keyboard subtype
    /kbd-type:<id>                    Keyboard type
    /load-balance-info:<info-string>  Load balance info
    /log-filters:<tag>:<level>[,<tag>:<level>[,...]]
                                      Set logger filters, see wLog(7) for
                                      details
    /log-level:[OFF|FATAL|ERROR|WARN|INFO|DEBUG|TRACE]
                                      Set the default log level, see wLog(7) for
                                      details
    /max-fast-path-size:<size>        Specify maximum fast-path update size
    /max-loop-time:<time>             Specify maximum time in milliseconds spend
                                      treating packets
    +menu-anims                       Enable menu animations
    /microphone[:[sys:<sys>,][dev:<dev>,][format:<format>,][rate:<rate>,]
                 [channel:<channel>]] Audio input (microphone)
    /monitor-list                     List detected monitors
    /monitors:<id>[,<id>[,...]]       Select monitors to use
    -mouse-motion                     Disable Send mouse motion
    /multimon[:force]                 Use multiple monitors
    +multitouch                       Enable Redirect multitouch input
    +multitransport                   Enable Support multitransport protocol
    -nego                             Disable protocol security negotiation
    /network:[modem|broadband|broadband-low|broadband-high|wan|lan|auto]
                                      Network connection type
    /nsc                              NSCodec support
    +offscreen-cache                  Enable offscreen bitmap cache
    /orientation:[0|90|180|270]       Orientation of display in degrees
    +old-license                      Enable Use the old license workflow (no CAL and
                                      hwId set to 0)
    /p:<password>                     Password
    /parallel[:<name>[,<path>]]       Redirect parallel device
    /parent-window:<window-id>        Parent window id
    +password-is-pin                  Enable Use smart card authentication with
                                      password as smart card PIN
    /pcb:<blob>                       Preconnection Blob
    /pcid:<id>                        Preconnection Id
    /pheight:<height>                 Physical height of display (in
                                      millimeters)
    /play-rfx:<pcap-file>             Replay rfx pcap file
    /port:<number>                    Server port
    -suppress-output                  Disable suppress output when minimized
    +print-reconnect-cookie           Enable Print base64 reconnect cookie after
                                      connecting
    /printer[:<name>[,<driver>]]      Redirect printer device
    /proxy:[<proto>://][<user>:<password>@]<host>:<port>
                                      Proxy settings: override env. var (see
                                      also environment variable below). Protocol
                                      "socks5" should be given explicitly where
                                      "http" is default.
    /pth:<password-hash>              Pass the hash (restricted admin mode)
    /pwidth:<width>                   Physical width of display (in millimeters)
    /rdp2tcp:<executable path[:arg...]>
                                      TCP redirection
    /reconnect-cookie:<base64-cookie> Pass base64 reconnect cookie to the
                                      connection
    /redirect-prefer:<FQDN|IP|NETBIOS>,[...]
                                      Override the preferred redirection order
    /relax-order-checks               Do not check if a RDP order was announced
                                      during capability exchange, only use when
                                      connecting to a buggy server
    /restricted-admin                 Restricted admin mode
    /rfx                              RemoteFX
    /rfx-mode:[image|video]           RemoteFX mode
    /scale:[100|140|180]              Scaling factor of the display
    /scale-desktop:<percentage>       Scaling factor for desktop applications
                                      (value between 100 and 500)
    /scale-device:100|140|180         Scaling factor for app store applications
    /sec:[rdp|tls|nla|ext]            Force specific protocol security
    +sec-ext                          Enable NLA extended protocol security
    -sec-nla                          Disable NLA protocol security
    -sec-rdp                          Disable RDP protocol security
    -sec-tls                          Disable TLS protocol security
    /serial[:<name>[,<path>[,<driver>[,permissive]]]]
                                      Redirect serial device
    /shell:<shell>                    Alternate shell
    /shell-dir:<dir>                  Shell working directory
    /size:<width>x<height> or <percent>%[wh]
                                      Screen size
    /smart-sizing[:<width>x<height>]  Scale remote desktop to window size
    /smartcard[:<str>[,<str>...]]     Redirect the smartcard devices containing
                                      any of the <str> in their names.
    /smartcard-logon                  Activates Smartcard Logon authentication.
                                      (EXPERIMENTAL: NLA not supported)
    /sound[:[sys:<sys>,][dev:<dev>,][format:<format>,][rate:<rate>,]
            [channel:<channel>,][latency:<latency>,][quality:<quality>]]
                                      Audio output (sound)
    /span                             Span screen over multiple monitors
    /spn-class:<service-class>        SPN authentication service class
    /ssh-agent                        SSH Agent forwarding channel
    /t:<title>                        Window title
    -themes                           Disable themes
    /timeout:<time in ms>             Advanced setting for high latency links:
                                      Adjust connection timeout, use if you
                                      encounter timeout failures with your
                                      connection
    /tls-ciphers:[netmon|ma|ciphers]  Allowed TLS ciphers
    /tls-seclevel:<level>             TLS security level - defaults to 1
    -toggle-fullscreen                Disable Alt+Ctrl+Enter to toggle
                                      fullscreen
    /tune:<setting:value>,<setting:value>
                                      [experimental] directly manipulate freerdp
                                      settings, use with extreme caution!
    /tune-list                        Print options allowed for /tune
    /u:[[<domain>\]<user>|<user>[@<domain>]]
                                      Username
    +unmap-buttons                    Enable Let server see real physical pointer
                                      button
    /usb:[dbg,][id:<vid>:<pid>#...,][addr:<bus>:<addr>#...,][auto]
                                      Redirect USB device
    /v:<server>[:port]                Server hostname
    /vc:<channel>[,<options>]         Static virtual channel
    /version                          Print version
    /video                            Video optimized remoting channel
    /vmconnect[:<vmid>]               Hyper-V console (use port 2179, disable
                                      negotiation)
    /w:<width>                        Width
    -wallpaper                        Disable wallpaper
    +window-drag                      Enable full window drag
    /window-position:<xpos>x<ypos>    window position
    /wm-class:<class-name>            Set the WM_CLASS hint for the window
                                      instance
    /workarea                         Use available work area

Examples:
    xfreerdp connection.rdp /p:Pwd123! /f
    xfreerdp /u:CONTOSO\JohnDoe /p:Pwd123! /v:rdp.contoso.com
    xfreerdp /u:JohnDoe /p:Pwd123! /w:1366 /h:768 /v:192.168.1.100:4489
    xfreerdp /u:JohnDoe /p:Pwd123! /vmconnect:C824F53E-95D2-46C6-9A18-23A5BB403532 /v:192.168.1.100

Clipboard Redirection: +clipboard

Drive Redirection: /drive:home,/home/user
Smartcard Redirection: /smartcard:<device>
Serial Port Redirection: /serial:<name>,<device>,[SerCx2|SerCx|Serial],[permissive]
Serial Port Redirection: /serial:COM1,/dev/ttyS0
Parallel Port Redirection: /parallel:<name>,<device>
Printer Redirection: /printer:<device>,<driver>
TCP redirection: /rdp2tcp:/usr/bin/rdp2tcp

Audio Output Redirection: /sound:sys:oss,dev:1,format:1
Audio Output Redirection: /sound:sys:alsa
Audio Input Redirection: /microphone:sys:oss,dev:1,format:1
Audio Input Redirection: /microphone:sys:alsa

Multimedia Redirection: /video
USB Device Redirection: /usb:id:054c:0268#4669:6e6b,addr:04:0c

For Gateways, the https_proxy environment variable is respected:
    export https_proxy=http://proxy.contoso.com:3128/
    xfreerdp /g:rdp.contoso.com ...

More documentation is coming, in the meantime consult source files

CMake Error at /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES
  OPENSSL_INCLUDE_DIR)

sudo apt-get install -y libssl-dev
-- Finding required feature XShm for X11 shared memory (X11 shared memory extension)
CMake Error at /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
  Could NOT find XShm (missing: XSHM_LIBRARY XSHM_INCLUDE_DIR)

sudo apt-get install -y libxext-dev
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBUSB_1_INCLUDE_DIR

sudo apt-get install -y libusb-1.0-0-dev


● ラズパイに VNCサーバ RealVNCをインストールする
# VNCサーバ RealVNCをインストールする
# (Raspberry Pi OSが Light版等の Desktop版以外の場合にインストールが必要)
sudo apt update
sudo apt install realvnc-vnc-server realvnc-vnc-viewer

# VNCを有効にする
sudo raspi-config nonint do_vnc 0
# VNCの状態を確認する
sudo raspi-config nonint get_vnc
Unit vncserver-x11-serviced.service could not be found.
1
※ 0は有効
※ 1は無効

# VNCを有効にする
sudo raspi-config nonint do_vnc 0
※ 0は有効

# VNCを無効にする。
sudo raspi-config nonint do_vnc 1
※ 1は無効

# RealVNCが無い場合
pi@raspberrypi:~ $ sudo raspi-config nonint get_vnc
Unit vncserver-x11-serviced.service could not be found.
1


● ラズパイを AirPlayサーバーにして macOSや iPhoneのサブ画面にする方法

 macOS(Client) → ラズパイ(macOSのセカンドディスプレイ化)

 ラズパイに RPiPlayをインストールします。

 macOS Big Surの MacBook Airから接続して画面のミラーリングや第二画面として使用できる事を確認済み。

FD- / RPiPlay
 An open-source AirPlay mirroring server for the Raspberry Pi. Supports iOS 9 and up .

sudo apt-get update -y

cd
git clone https://github.com/FD-/RPiPlay.git
cd RPiPlay

sudo apt-get install -y cmake
sudo apt-get install -y libavahi-compat-libdnssd-dev
sudo apt-get install -y libssl-dev

mkdir build
cd build
cmake ..
make -j

# gstreamer
https://gstreamer.freedesktop.org/documentation/installing/on-linux.html


-- Checking for modules 'gstreamer-1.0>=1.4;gstreamer-sdp-1.0>=1.4;gstreamer-video-1.0>=1.4;gstreamer-app-1.0>=1.4'
--   No package 'gstreamer-1.0' found
--   No package 'gstreamer-sdp-1.0' found
--   No package 'gstreamer-video-1.0' found
--   No package 'gstreamer-app-1.0' found
-- GStreamer not found, skipping compilation of GStreamer renderer
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:

sudo apt-get install -y \
  libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-pulseaudio
# gstreamer1.0-qt5

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBPLIST
    linked by target "airplay" in directory /home/pi/RPiPlay/lib

-- Configuring incomplete, errors occurred!

sudo apt-get install libplist-dev

ls -l ./build/
./rpiplay -h

sudo apt-get install -y cmake
sudo apt-get install -y libavahi-compat-libdnssd-dev
sudo apt-get install -y libplist-dev
sudo apt-get install -y libssl-dev
mkdir build
cd build
cmake ..
make -j

sudo make install

$ ls -l
-rw-r--r-- 1 pi pi   22967 Sep  5 10:56 CMakeCache.txt
drwxr-xr-x 5 pi pi    4096 Sep  5 10:57 CMakeFiles
-rw-r--r-- 1 pi pi    2752 Sep  5 10:56 cmake_install.cmake
drwxr-xr-x 5 pi pi    4096 Sep  5 10:56 lib
-rw-r--r-- 1 pi pi    9854 Sep  5 10:56 Makefile
drwxr-xr-x 5 pi pi    4096 Sep  5 10:57 renderers
-rwxr-xr-x 1 pi pi 3183420 Sep  5 10:57 rpiplay

$ ./rpiplay -h
RPiPlay 1.2: An open-source AirPlay mirroring server for Raspberry Pi
Usage: ./rpiplay [-n name] [-b (on|auto|off)] [-r (90|180|270)] [-l] [-a (hdmi|analog|off)] [-vr renderer] [-ar renderer]
Options:
-n name               Specify the network name of the AirPlay server
-b (on|auto|off)      Show black background always, only during active connection, or never
-r (90|180|270)       Specify image rotation in multiples of 90 degrees
-f (horiz|vert|both)  Specify image flipping (horiz = horizontal, vert = vertical, both = both)
-l                    Enable low-latency mode (disables render clock)
-a (hdmi|analog|off)  Set audio output device
-vr renderer          Set video renderer to use. Available renderers:
    rpi: Raspberry Pi OpenMAX accelerated H.264 renderer [Default]
    gstreamer: GStreamer H.264 renderer
    dummy: Dummy renderer; does not actually display video
-ar renderer          Set audio renderer to use. Available renderers:
    rpi: AAC renderer using fdk-aac for decoding and OpenMAX for rendering [Default]
    gstreamer: GStreamer audio renderer
    dummy: Dummy renderer; does not actually play audio
-d                    Enable debug logging
-v/-h                 Displays this help and version information



Tags: [Raspberry Pi], [電子工作]

●関連するコンテンツ(この記事を読んだ人は、次の記事も読んでいます)

【メモリ8GB】Raspberry Pi 4 Model B 8GBを KSYで最安値で購入。ベンチマークレビュー
【メモリ8GB】Raspberry Pi 4 Model B 8GBを KSYで最安値で購入。ベンチマークレビュー

  【技適取得】ラズパイ4B 8GBモデルを入手。従来の Pi3、Pi3B+と速度比較

【Vulkan】Raspberry Pi 4 Model Bで Vulkanドライバをビルドして 3Dグラフィックのデモを動かす
【Vulkan】Raspberry Pi 4 Model Bで Vulkanドライバをビルドして 3Dグラフィックのデモを動かす

  【v3dv】ラズパイ4Bで Vulkan APIを動かす、VK_ICD_FILENAMES broadcom_icd.armv7l.json

Raspberry Pi 4 Model Bに標準搭載の Boot用 EEPROM、ファームウェアのアップデート手順
Raspberry Pi 4 Model Bに標準搭載の Boot用 EEPROM、ファームウェアのアップデート手順

  Raspberry Pi 4 Model Bから新規搭載の Boot用 EEPROMのファームを更新する方法、起動しない場合の復旧方法

NVIDIA Jetson Nano 開発者キットを買ってみた。メモリ容量 4GB LPDDR4 RAM
NVIDIA Jetson Nano 開発者キットを買ってみた。メモリ容量 4GB LPDDR4 RAM

  Jetson Nanoで TensorFlow PyTorch Caffe/Caffe2 Keras MXNet等を GPUパワーで超高速で動かす!

PIP機能付きの 4K対応の 4入力 1出力の HDMIセレクターを買ってみた、HDMI機器が複数有る場合に便利
PIP機能付きの 4K対応の 4入力 1出力の HDMIセレクターを買ってみた、HDMI機器が複数有る場合に便利

  ピクチャ イン ピクチャ機能付き 4K入力対応の 4入力 1出力 HDMI切り換え機 HDSFX0401P

EDID保持機能付きの 4K対応の 4入力 2出力の マトリックス切り替え HDMIセレクター、液晶画面 2台と使用で最強
EDID保持機能付きの 4K対応の 4入力 2出力の マトリックス切り替え HDMIセレクター、液晶画面 2台と使用で最強

  TESmart HMA0402A30 マトリックス切り替えで液晶画面 2台に接続できて更に EDID保持の便利機能付き HDMI切り換え機




[HOME] | [BACK]
リンクフリー(連絡不要、ただしトップページ以外は Web構成の変更で移動する場合があります)
Copyright (c) 2021 FREE WING,Y.Sakamoto
Powered by 猫屋敷工房 & HTML Generator

http://www.neko.ne.jp/~freewing/raspberry_pi/raspberry_pi_xrdp_windows_remote_desktop/