You can check if your device is already using a label by looking in /dev/disk/by-label (or you can use the UUID in which case look in /dev/disk/by-uuid/ snippet.bash ls -l /dev /disk /by-label / You can make life a little easier by using labels which ] recognises and uses, as this avoids inconsistencies with device names when you plug things in in different orders. The thing to note is that you have to configure MPD to look for music in the location they are mounted (see MPD configuration below), for this I'm going with /var/lib/mpd/music.Ĭonnect your USB drive and check its detected by looking for /dev/sd* devices…īrw-rw- 1 root disk 8, 0 Feb 13 11:03 /dev /sdaīrw-rw- 1 root disk 8, 1 Feb 13 11:03 /dev /sda1 I'm somewhat familiar with the later so opted for that. There are two approaches to achieving this autofs or using systemd to automount based entries in /etc/fstab or you can let ] handle it. To this end it is useful to ensure that connected devices (USB drives and/or network mounts) are always mounted at a location MPD can find them. That location might have symbolic links to other directories containing music, but MPD won't scan your whole file system looking for media. MPD looks in one place and one place only for music files. To check that you have configured this correctly plug some speakers into your DAC+ and issue… You need to use the name as its reported (in this case IQaudIODAC) in /etc/nf (see here for more on setting the default soundcard)… The two card 0 items are the on-board sound and sound out through HDMI, the final one is the iQAudio DAC+. Snippet.bash cat /proc /asound /card */ id Or you can use cat /proc/asound/card*/id… Snippet.bash aplay -l **** List of PLAYBACK Hardware Devices ****Ĭard 0: ALSA, device 0: bcm2835 ALSA Ĭard 0: ALSA, device 1: bcm2835 ALSA Ĭard 1: IQaudIODAC, device 0: IQaudIO DAC HiFi pcm512x-hifi- 0 If you want to set this globally you need to create a custom configuration for ALSA in /etc/nf.įirst look up what the iQAudio DAC+ is detected as… The configuration section below instructs you how to configure mpd to use the DAC+. To get audio routed out through the DAC+ you have two options, you can either set the default sound card to the DAC+ or you can tell individual applications to use the DAC+. This loads the kernel modules so that the hardware works, but ALSA is by default using the Raspberry Pi2 on-board sound card bcm2835. Pretty easy with i2select snippet.bash i2select I wanted to use the iQaudio DAC+ I'd purchased and attached to the Raspberry Pi 2. Thats it, you should be able to poweroff, unplug ethernet and restart the Pi and connect over Wifi. Tx excessive retries: 0 Invalid misc: 0 Missed beacon: 0įinally to ensure that the interface is bought up on reboot you need to enable it… Rx invalid nwid: 0 Rx invalid crypt: 0 Rx invalid frag: 0 Wlan0 IEEE 802.11bgn ESSID: "mynetwork" Nickname: "" Once its configured try connecting manually with… #Security=wep Key= 'mywifipassword' ESSID= 'mynetwork' # Uncomment below if your ssid is hidden #Hidden=yes IP=dhcp My configuration file (which in this example is called mynetwork) looks like… You may well use passwords on your network in which case you will have to modify this file to add your password. Scan for wifi networks using the widi-menu -o command and select your home network, this should automatically create a configuration file for the network in /etc/netctl/ (use ls -l /etc/netctl/ to look for it you should be able to find it as it will have current date as the last time it was accessed). Snippet.bash pacman -Sy iw wpa_supplicant dialog Ultimately though I wanted the device on WiFi, the default image of ArchLinux for Raspberry Pi2 doesn't include wpa_supplicant which provides the tools for configuring your WiFi devices, first things first install them…
0 Comments
Leave a Reply. |