cd /tmp
wget http://ftp.kddilabs.jp/infosystems/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
tar xzvf apache-maven-3.6.3-bin.tar.gz
sudo mv apache-maven-3.6.3 /opt
echo "export PATH=/opt/apache-maven-3.6.3/bin:$PATH" >> ~/.profile
source ~/.profile
そして、実行するのですが、下のようなエラーが出ました。
Caused by: java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
at application.Main.initWindowInfo(Main.java:154)
at application.Main.<init>(Main.java:88)
The latest version of the JavaFX Embedded SDK port, available from http://gluonhq.com/open-source/javafxports/downloads. Unzip the downloaded JavaFX Embedded SDK and copy the following files into the JDK 8 installation directory:
But RPi is using "pi", so I can not login RPi. cause I have already logged in RPi.
<LANケーブルの設定>
</etc/network/interfaces>
#eth0を固定値でIPアドレスを設定する → これは接続できませんでした。
#Can not access RPi when I tried as bellow
iface eth0 inet static
address 192.168.XXX.XXX # 自分は192.168.88.88と設定しました。
netmask 255.255.255.0
gateway 192.168.XXX.254 # "XXX"は「address」と同じものにします。
#eth0をDHCPで設定する Using "eth0" for DHCP
iface eth0 inet dhcp →これは繋がった I can connect RPi
sudo ifup eth0で"eth0"を起動します。※eth0を定義していない場合
if you did not set "eth0" then you write like this.
3.ユーザーがすでにログインしているユーザーのみだった
3."pi" user have been already logged in RPi.
ユーザーを新たに作成する。
create user on RPi.
ユーザー追加
sudo adduser "ユーザー名"
ユーザーパスワード(sudo権限あり)
sudo gpasswd -a "ユーザー名"
改めて接続する Try again connect RPi
>ssh pi@192.168.XXX.XXX
以下の様な文言が出ました。赤字は隠した部分です。
The authenticity of host '192.168.XX.XX (192.168.XX.XX)' can't be established.ECDSA key fingerprint is SHA256:KXxaXjFgIEb7I6KP5+kkGJUcYizlE8uaLUgV/z7wlK4.Are you sure you want to continue connecting (yes/no)? yPlease type 'yes' or 'no': yes
<<「yes」と入力 >>
Warning: Permanently added '192.168.XX.XX' (ECDSA) to the list of known hosts.takunoji@192.168.XX.XX's password:
<<パスワードを入力(input password)>>
Linux raspberrypi 4.14.66+ #1137 Fri Aug 24 16:31:57 BST 2018 armv6lThe programs included with the Debian GNU/Linux system are free software;the exact distribution terms for each program are described in theindividual files in /usr/share/doc/*/copyright.Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extentpermitted by applicable law.SSH is enabled and the default password for the 'pi' user has not been changed.This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.