• よくある質問と答え (Frequently Asked Questions and Answer)

    固定IPアドレスを設定したい
    I want to set a static IP address

    設定を変更する前に、ルーターの設定を確認して、DHCPが割り当てられていないIPアドレスを特定する必要があります。

    Before changing the static IP address, you should check the router settings to get the address that is not assigned to DHCP.

    sudo nano /boot/eth0.network
    

    で設定ファイルを開き、

    Open the configuration file.

    • DHCP=yes

    の行頭に「#」を追加してコメントアウトしてください。

    Comment out by adding "#" to the beginning of the line.

    • Address
    • Gateway
    • DNS

    の3行については行頭の「#」をはずし、IPアドレス・ネットマスク、デフォルトゲートウェイ、DNSサーバをお使いの環境に合わせて設定してください。

    Remove the "#" at the beginning of each line and set the IP address, netmask, default gateway, and DNS server according to your environment.

    Ctrl-o Enter Ctrl-x
    

    でファイルを保存し、

    Save the file, and then click

    sudo reboot
    

    で再起動してください。
    Please restart.

  • NAS接続先をIPv6でアドレス指定したい
    I want to specify the NAS destination with IPv6 address


    mikeさんがNASの接続先をIPv6アドレスで指定する際の設定方法を検証してくださいました。

    mike has verified how to set the connection destination of NAS by IPv6 address.

    English version is here,


    みなさま、

    パパリウスさまの「DirettaがIPv6を採用した理由」のご報告に刺激され、ここ2~3日
    SMPD 0.8.19 での ipv6 接続トライをしておりました。
    結論は簡単に接続できる、ですが、その手順と指定内容を簡単にご報告いたします。

    NASには浮いていた、Tinker Board S にDebian と Samba をインストールして使いました。
    SMPD 0.8.19 はすでに ipv6 のモジュールが動作しており、ifconfig で ipv4 と ipv6 の
    link:gloval、link:local のアドレスが確認できました。
    NASも同様の確認を行い全く同じように ipv4 と ipv6 が併存していることを確認しました。

    そして、http://[SMPDのipv4アドレス]/音楽ディレトリー名 と指定し、
    SMPD のympd へアクセスし、きちんと表示することを確認しました。

    SMPDの NAS setting に、//NAS ipv6 link:local アドレス@eth0/音楽ディレクトリー名 
    と指定
    し、ユーザー名とパスワードも入力し、nasの確認に入りました。

    少し時間がかかったように思います無事 success と表示され、reboot 指示が出ました。

    リブート後はいつもどおりに曲やplaylistの指定ができ、同じように再生しました。

    音質は変わりません。良くもなりませんし悪くもならないようです。

    ただ、数時間再生を続けていると稀に瞬断することがありました。

    私の環境は一つのNASを使い同時に複数のプレイヤーで再生しているため、 ipv4 と ipv6 とで
    競合が起きているのかもしれませんが本当のところはわかりません。

    ipv4 を停止させる方法をちょっとだけ探しましたが見つからなかったのであきらめて現在は
    ipv4 接続に戻しています。

    ipv6 接続するさいに気をつけることは、http:// 接続の際は、ipv6 アドレスを [] で囲むこと、
    そして、nas の音楽ディレクリトー指定のときに、ipv6 のポート名を @ につづいて指定することです。

    Debian/Raspbian の場合は、ポートは、eth0 なので、@eth0 を ipv6 の link:local アドレスに続いて記述する必要があります。
    Windows の場合は、数字で指定するようです。(ex. @8)

    以上ご報告まで。


    I want to specify the NAS destination with IPv6 address

    Hi,

    I was inspired by Paparius's report on the reason why Diretta adopted IPv6, and I have been trying ipv6 connection with SMPD 0.8.19 for the last couple of days. The conclusion is "Easy to connect", so I will briefly report the procedure and specified contents.

    I installed Debian and Samba on Tinker Board S which is not used for NAS.
    In SMPD 0.8.19, the ipv6 module is already running, and the ipv4 and ipv6 link: gloval and link: local addresses were confirmed by ifconfig.
    The same confirmation was made on the NAS, and it was confirmed that ipv4 and ipv6 coexist in exactly the same way.

    Then, I specified http: // [SMPD ipv4 address] / music directory name, and confirmed that the SMPD ympd was accessed and displayed properly.

    In the NAS setting of SMPD, specify // NAS ipv6 link: local address @ eth0 / music directory name, enter the user name and password, and enter nas confirmation.

    I think it took a while. The message "successful" was displayed and the reboot instruction was issued.

    After rebooting, you can specify songs and playlists as usual and play them in the same way.

    The sound quality does not change. It doesn't get better or worse.

    However, there were rare occasions when the playback continued for several hours.

    Since my environment uses a single NAS and plays with multiple players at the same time, there may be a conflict between ipv4 and ipv6, but I don't know the truth.

    I just searched for a way to stop ipv4, but since I couldn't find it, I gave up and now revert to ipv4 connection.

    When connecting to ipv6, please note that when http: // is connected, enclose the ipv6 address in \[\], and when specifying the music directory of nas, follow the port name of ipv6 with @. Is to specify.

    For Debian / Raspbian, the port is eth0, so you need to write @ eth0 following the link: local address of ipv6.
    For Windows, it seems to specify numbers. (ex. @ 8)

    That's all.

    by mike at2019-07-12 14:35

  • 有線LANのLEDを消灯したい
    Turn off the wired LAN LED


    LEDの操作に使うツールをダウンロードします。

    Download the tool used to operate the LEDs.

    wget -O llctl "https://drive.google.com/uc?id=0B-6zmEDJwxZEbmJkU3g2MlhMQWs&export=download"
    chmod +x llctl
    

    次に
    Next

    sudo nano /etc/rc.local
    

    で設定ファイルを開き末尾のexit 0より上に下記の1行を追加してください

    Open the configuration file and add the following line above the exit 0 at the end

    sudo /home/pi/llctl f0 l0 d0
    
    Ctrl-o Enter Ctrl-x
    

    でファイルを保存します。
    Save the file.


    RPi3B+ではconfig.txtに下記を設定することで消灯可能です。(sunatomoさん、情報提供ありがとうございます)

    RPi3B + can be turned off by setting the following in config.txt. (thank you. sunatomo-san for the information.)

    dtparam=eth_led0=14

    dtparam=eth_led1=14

  • DSD再生(PCM変換)でノイズが聞こえる
    Noise is heard during DSD playback (PCM Conversion)


    DSDのPCM変換再生時のホワイトノイズですが

    White noise during PCM conversion of DSD

    /etc/mpd.conf

    samplerate_converter "soxr very high" 
    

    を有効にすると解消するという報告をいただきました。
    ご参考になさってください。

    I received a report that it will be resolved if you enable.
    Please refer to it.

  • 再生した曲がキューから消えていく
    The song you played disappears from the cue.

    MPD画面の最下部に「Consume」というボタンがあります。

    このボタンががONになっていると、再生された曲がキューから削除されていきます。

    There is a "Consume" at the bottom of the Settings screen.

    When this button is ON, the played songs are deleted from the queue.

  • 曲が再生されない。動作が不安定。
    The song does not play. The operation is unstable.


    Windowsの共有フォルダをNASとして利用している場合など、特定の条件で下記のような現象が報告されています。

    The following symptoms have been reported under certain conditions, such as using Windows Shared Folders as NAS:.

    • 曲名は正常に表示されるが、再生ボタンを押しても曲が再生されない。

    • The song title is displayed correctly, but the song does not play when the play button is pressed.

    この現象は、Direct I/Oを無効にすることで改善するケースがあります。
    Disabling Direct I/O may improve this behavior.


    sshでログインし、

    Login ssh

    sudo nano /etc/mpd.conf
    でmpdの設定ファイルを開いて

    Open the mpd configuration file
    direct_io "yes"
    の行を、#でコメントアウトしてください。

    Comment out the line with #.

    ファイルの保存は、Ctrl+o を押した後、Enterで確定してください。
    エディタの終了はCtrl+xです。
    To save the file, press Ctrl + o, and then press Enter to confirm.
    Exit the editor with Ctrl + x.

    設定ファイルの編集が完了したら、

    When you have finished editing the configuration file, click
    sudo systemctl restart mpd
    でmpdを再起動してください。
    (sudo rebootでラズパイを再起動してもOKです)
    Restart mpd.
    (You can also reboot with sudo reboot.)

  • Windows PCからRaspberry PiにSSHでリモートアクセスしたい
    I want to remotely access the Raspberry Pi from a Windows PC via SSH


    ここではTeraTermを実例に挙げて説明します。 TeraTerm起動後、下図のようなパネルが表示されます。

    Here, TeraTerm is used as an example for explanation.
    After starting TeraTerm, the following panel will be displayed.



    Tera_Term_01.png


    “ホスト(T)”に“smpd.local”と入力します。
    Raspberry Piを固定IPアドレスで運用している場合は、設定したIPアドレスを入力します。

    Enter "smpd.local" for "Host (T)".
    If a static IP address is set for the Raspberry Pi, enter the set IP address.



    Tera_Term_02.png


    “ユーザー名(N)”に“pi”を、“パスフレーズ(P)”には“raspberry”と入力します。

    Enter “pi” for “User Name (N)” and “raspberry” for “Passphrase (P)”.


    Tera_Term_03.png


    Raspberry Piとの接続が完了すると、以下の様な画面に変わります。

    When the connection with the Raspberry Pi is completed, the following screen will appear.


    Tera_Term_04.png


    画面上のカーソルの位置からコマンドを入力します。

    Enter a command from the cursor position on the screen.

  • MacからRaspberry PiにSSHでリモートアクセスしたい
    I want to remotely access the Raspberry Pi from a Mac via SSH


    Mac OS Xには標準で“ターミナル”が備わっています。格納場所は“アプリケーション”フォルダ内の “ユーティリティ”フォルダです。Macからのリモートアクセスには、この“ターミナル”を使用します。 下図は“ターミナル”起動後のウィンドウです。

    Mac OS X has a “terminal” as standard. The storage location is in the “Utilities” folder in the “Applicatios”. Use this “Terminal” for remote access from a Mac.
    The figure below shows the window after starting “Terminal”.



    Terminal_01.png
    以下を入力します。

    Enter the following:

    ssh pi@smpd
    

    Terminal_02.png

    Raspberry Piに固定IPアドレスを設定している場合は、設定したIPアドレスを入力します。図は一例です。

    If a static IP address has been set for the Raspberry Pi, enter the set IP address. The figure is an example.

    Terminal_03.png

    “パスワード”の入力を求めてくるので、“raspberry”と入力します。
    入力される文字は表示されません。

    Enter "raspberry" when prompted for the "password".
    The entered characters are not displayed.

    Terminal_04.png

    以上でRaspberry Piとのリモートアクセスが成立します。

    This establishes remote access with the Raspberry Pi.

    Terminal_05.png

    画面上のカーソルの位置からコマンドを入力します。

    Enter a command from the cursor position on the screen.

  • WindowsユーザーのためのSSHとの付き合い方
    Introductions of SSH for Windows Users


    Windows10ではコンマンドプロンプトからSSHを使うことができます。初めての方はとりあえず、これで動かしてみると良いでしょう。しかし、操作性は良いとはいえないので、本格的にSMPDの内部を弄り回すためにはWindows専用のSSHプログラムを使うとよいでしょう。日本語ならTeraTerm、海外の方にはPuttyがお勧めです。使い方はそれぞれのリンク先を参照して下さい。

    ここではWindows10のコンマンドプロンプトからのSSHの使い方についてご紹介します。


    You can use SSH from a command prompt in Windows 10.
    If you're new to SSH on Windows, it's a good place to start from here. However, the usability isn't great, so you might want to use a SSH client program for Windows to setup the deep internals of SMPD. I recommend TeraTerm for Japanese and Putty for foreigners. Please refer to the previous link for how to use it.


    This section describes how to use SSH from a Windows 10 command prompt.

    下記のどちらかの方法で「ファイル名を指定して実行」画面を表示させます。

    • 画面左下のWindowsボタンを右クリックして、「ファイル名を指定して実行」を選択
    • Windowsキーと"R"キーを同時打鍵

    Open the "Run As" screen using one of the following methods.

    • Right-click the Windows button at the bottom left of the screen and select "Run As"
    • simultaneous typing of Windows key and "R" key


    「cmd」と入力すれば、起動出来ます。

    You can start command prompt by entering "cmd".


    これは起動直後のコマンドプロンプト画面です。

    This is the command prompt screen immediately after starting.


    「ssh -l pi ipアドレス」と入力し、Windowsのsshクライアントプログラムを起動します。piというのはSMPDのユーザ名です。

    Type "ssh-l pi ip_address" to start the Windows ssh client program. pi is the SMPD user name.


    初めてSMPDと接続する時はこのような警告メッセージが表示されます。yesと入力します。

    When you connect to SMPD for the first time, a warning message like this will be displayed. Enter "yes” like this.


    パスワード画面です。

    Password screen


    "raspberry"とパスワードを入力します(""の間のraspberryだけ入力して下さい)。

    Enter the password as "raspberry" (Please enter only raspberry between "").


    これでSMPDのSSHホスト機能が使えるようになりました。試しに、ls(ファイル、ディレクトリの表示機能)と入力してみて下さい。

    You can now use the SSH host feature of SMPD. Try typing "ls" (Command to view files and directories).

    SSH8.PNG


    おめでとうございます。後はお好きにSMPDを弄り回しましょう。

    Congratulations. Let's play with SMPD as you like.

  • WindowsユーザーのためのSSHの基本:WindowsでSSHクライアント「PuTTy」を使用してsymphonic-mpdに接続する方法
    SSH essentials for Windows : How to connect to symphonic-mpd using SSH client “PuTTy” on Windows


    Windowsからsymphonic-mpdにリモートアクセスするには、PuTTYなどのSSHクライアントソフトウェアをWindowsにインストールする必要があります。 “https://www.putty.org”からPuTTYをダウンロードしてインストールできます。 PuTTYを使用してsymphonic-mpdに接続する手順は次のとおりです。

    For remote access to symphonic-mpd from Windows, you need to install a SSH client software such as PuTTY on Windows. You can download and install PuTTY from “https://www.putty.org”.

    Here are steps to connect to symphonic-mpd using PuTTY.

    注:これは一例であり、任意のSSHクライアントソフトウェアを使用できます。

    Note : This is just an example and you can use any SSH client software you like.


    (1) PuTTYの起動 (Launch PuTTY)


    putty.exeまたはデスクトップのショートカットをダブルクリックして、PuTTYを起動します。 すると、下図のようなPuTTYの設定ウィンドウが表示されます。

    Launch PuTTY by double-clicking the putty.exe program or the desktop shortcut. Then, PuTTY configuration Windows below appears.


    PuTTy_01_Launch_PuTTY.png


    (2) symphonic-mpdへの接続 (Connect to symphonic-mpd)


    ホスト名として「smpd.local」(またはsymphonic-mpdがインストールされているraspberry piの固定IPアドレス)を入力し、「Open」ボタンをクリックします。 他の設定を変更する必要はありません。

    Enter “smpd.local” (or IP address of the raspberry pi where symphonic-mpd is installed) as Host Name then click “Open”. You don’t need to change other settings.


    PuTTy_02_Connect_to_symphonic-mpd.png


    「smpd.local」への初回接続時のみ、下図のウィンドウが表示されます。 「Yes」をクリックしてください。

    When you try to connect to “smpd.local” first time, the following Windows is shown. Just click “Yes”.


    PuTTy_03_Just click Yes.png


    (3) symphonic-mpdへのログイン (Login to symphonic-mpd)


    ユーザー名とパスワードを入力し、symphonic-mpdにログインします。

    Login to symphonic-mpd by entering the following user and password.

    User : pi
    Password : raspberry



    PuTTy_04_Login_to_symphonic-mpd.png


    接続が確立されると、プロンプトからコマンドを入力できるようになります。

    Once the connection is established, you can type commands at the prompt.


    PuTTy_05_Login_to_symphonic-mpd.png

  • WiFiを使用するには(How to Enable WiFi on Raspberry Pi 3)

    ラズパイ内蔵の無線LAN機能はS/N低下が顕著なため、
    symphonic-mpdでは無効化しております。
    有線LAN経由で混入するノイズが多い環境では
    利便性を優先して内蔵無線LANを使うというのもアリだと思います。

    1. config.txtの編集(edit config.txt)
      sudo nano /boot/config.txt
      wifiを無効化している以下の行をコメントアウトします
    dtoverlay=pi3-disable-wifi
    ↓
    #dtoverlay=pi3-disable-wifi
    
    1. WiFiの設定を編集する(edit wifi setting)
      WiFiの設定が格納されている以下のファイルを編集します
      sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
      ⇨ edit your ssid and passwd

    2. wlan0.networkを新規作成(create wlan0.network as new file)
      sudo nano /boot/wlan0.network

    [Match]
    Name=wlan0
    [Network]
    DHCP=both
    
    1. 先に作成したwlan0.networkのリンクを作成(create link to /boot)
    sudo ln -s /boot/wlan0.network /etc/systemd/network/wlan0.network