Asset UPnP is now available on the Raspberry pi, this cheap $25 computer is ideal to run a lightweight UPnP server that is totally silent, pair with a USB flash disk

We have tested against Raspbian, on the Model B pi.

Installation details

Code:
Log-in to the pi (login: pi   password: raspberry)

Create a folder for Asset: 

cd /usr/bin
sudo mkdir asset
sudo chmod 777 asset
cd asset

Download asset Premium:

wget http://secure.dbpoweramp.com/downloadorder.aspx?ordernum=123456789 -O asset.tar.gz

(where 123456789 is your actual order number)

or download asset free:

wget http://www.dbpoweramp.com/install/Asset-RaspberryPi.tar.gz

extract it:

tar -zxvf *.gz
rm *.gz

Run Asset:

cd /usr/bin/asset/bin
./AssetUPnP

Once running it will show Presentation URL   type this into a web browser on any computer on the same network, example:

http://192.168.1.13:45537

Then click 'configure' to specify the options
Setting Asset to start automatically

Code:
crontab -e
press the down arrow until the cursor is right at the bottom (on a blank line, press enter if not on a blank line)
type:

@reboot /usr/bin/asset/bin/AssetUPnP

Press keys CTRL + X   choose Y to save, press enter

restart system:  

sudo reboot

The web log-in will be the same as when run manually, if at a later date you cannot find this address (or port), log into the pi and type:

ifconfig

this will show on the inet addr   for eth0, take the shown ip address and:

http://x.x.x.x:45537

Where x.x.x.x is the address shown



To find the port asset is using:

sudo netstat -pln

look for the lines with AssetUPnP on the end, it should be shown as 0.0.0.0.0:45537  (for configuration)  (as well as 0.0.0.0.0:26125 which is used by UPnP devices  and 0.0.0.0.0:1900 for broadcast)
Mounting a USB Flash disk

Code:
Look for the drive:

sudo fdisk -l

It will most likely be called sda1

Make a folder for this drive:

sudo mkdir /media/usbflash

and mount:

sudo mount -t vfat -o rw /dev/sda1 /media/usbflash/

Check files can be read:

ls -l /media/usbflash/

Then on Asset configuration page set the path as /media/usbflash/

To make so this flash disc is automatically added on reboot:

sudo nano /etc/fstab 

and add the line:

/dev/sda1      /media/usbflash     vfat   defaults   0     0

(to save CTRL + X, Y to save)
Mounting a CIFS (SMB / Windows) Network Share

Code:
To mount a share, you need 1) the server address (can be a ip address, such as 192.168.1.31 or a computer name such as BobsComputer), 2) the share name on the server you are mounting, normally will be the same as the folder you have shared. 3) if the share can be accessed through a guest, or needs a user name and password.

Log into the Pi through SSH, and create a location on the Pi to mount the share:

cd /home/pi
sudo mkdir nas
sudo chmod 777 nas

Now we set the share parameters:

sudo nano /etc/fstab

Add a line:

//192.168.1.31/music /home/pi/nas cifs guest,_netdev,sec=ntlm 0 0

Where the server has the address 192.168.1.31, the share is called music and the share is accessed with the guest account.

or use the computers name:

//BobsComputer/music /home/pi/nas cifs guest,_netdev,sec=ntlm 0 0

Should a password and username be required:

//192.168.1.31/music /home/pi/nas cifs username=user123,password=pass123,_netdev,sec=ntlm 0 0

Where user123 and pass123 would be replaced with the real values.

On some networks the network speed can limit HD track playback, to remove or minimise specify an rsize value, such as:

//192.168.1.31/music /home/pi/nas cifs cifs rsize=3843360,guest,_netdev,sec=ntlm 0 0

(to save CTRL + X, Y to save)

Then reboot to mount the share:

sudo reboot

After restart you would open Asset configuration page set the library path as:

/home/pi/nas
The configuration files for Asset are stored: ~/.dBpoweramp