* Edit {{ic|/usr/share/mc/extfs/extfs.ini}} and add a new line at the bottom:

−

ifp

+

ifpline

−

* Save changes to extfs.ini

+

* Save changes to {{ic|extfs.ini}}

−

* run midnight commander

+

* Start Midnight Commander, and in its command line, enter:

−

$ mc

+

cd /#ifpline

−

* In Midnight Commanders command line type:

+

−

cd /#ifp

+

You should now have full access to your iRiver directories via Midnight Commander.

+

You will be able to copy and delete music tracks as you wish.

+

+

====Setting up udev to automatically assign permissions====

+

Put the following into the file {{ic|/etc/udev/rules.d/ifpdev.rules}}:

+

{{hc|/etc/udev/rules.d/ifpdev.rules|<nowiki>

+

# udev rules file for supported ifp devices

+

#

+

# To add an USB ifp device, add a rule to the list below between the SUBSYSTEM...

+

# and LABEL... lines.

+

#

+

# To run a script when your ifp is plugged in, add RUN="/path/to/script"

+

# to the appropriate rule.

+

#

+

+

SUBSYSTEM!="usb_device", ACTION!="add", GOTO="libifp_rules_end"

+

+

# ifp-1xx

+

SYSFS{idVendor}=="4102", SYSFS{idProduct}=="1001", GROUP="storage"

+

# ifp-3xx

+

SYSFS{idVendor}=="4102", SYSFS{idProduct}=="1003", GROUP="storage"

+

# ifp-5xx

+

SYSFS{idVendor}=="4102", SYSFS{idProduct}=="1005", GROUP="storage"

+

# ifp-7xx

+

SYSFS{idVendor}=="4102", SYSFS{idProduct}=="1007", GROUP="storage"

+

# ifp-8xx

+

SYSFS{idVendor}=="4102", SYSFS{idProduct}=="1008", GROUP="storage"

+

# ifp-9xx

+

SYSFS{idVendor}=="4102", SYSFS{idProduct}=="1009", GROUP="storage"

+

# ifpdev

+

SYSFS{idVendor}=="4102", SYSFS{idProduct}=="1010", GROUP="storage"

+

# The N10

+

SYSFS{idVendor}=="4102", SYSFS{idProduct}=="1011", GROUP="storage"

+

+

LABEL="libifp_rules_end"

+

</nowiki>}}

+

+

And add the user you want to have permissions to the storage [[Users and Groups|group]]:

+

# gpasswd -a username storage

−

You should now have full access to your iRiver directories via midnight commander.

+

===Notes===

−

You will be able to copy & delete music tracks as you wish.

+

Do not delete the default folders in the {{ic|/}} directory of your iRiver&mdash;it may cause issues!

−

----

+

Midnight Commander, by default, preserves file permissions when copying files. Because these file permissions cannot be written to your iRiver, an error message will be displayed after each file copy. To prevent these messages from appearing, uncheck the "preserve attributes" checkbox on Midnight Commander's copy dialog.

−

===Notes:===

+

If you frequently copy directories to your iRiver rather than individual tracks, then select the directory to copy & check the "Dive into subdir if exists" checkbox.

−

Do not delete the default folders in the / directory of your iRiver -it may cause issues!<br>

−

Midnight Commander (by default) copies files preserving their file permissions. Because these file permissions cannot be written to your iRiver, an error message will be displayed after each file copy.<br>

−

To prevent these messages from appearing, UNCHECK the 'preserve attributes' checkbox on midnight commanders copy dialog.<br>

−

<br>

−

If you frequently copy directories to your iRiver rather than individual tracks, then select the directory to copy & check the 'Dive into subdir if exists' checkbox.

−

<br>

−

The ifp commands can easily be incorporated into your own bash scripts to make the management of your iRiver even faster !

+

The {{ic|ifpline}} commands can easily be incorporated into your own shell scripts to make the management of your iRiver even easier! Run {{ic|ifpline}} for a list of all supported commands.

−

See the man page for more !

−

====Upgrading Firmware====

+

====Upgrading firmware====

−

#get the firmware for the manager version and name it IFP-3XXT.HEX

+

#Get the firmware for the manager version and name it {{ic|IFP-3XXT.HEX}}

−

#run ifp firmupdate ./IFP-3XXT.HEX

+

#Run {{ic|ifpline firmupdate ./IFP-3XXT.HEX}}

−

#wait for player to do its thing, concluding in a poweroff

+

#Wait for the device to update, concluding in a power-off

−

#unplug everything, turn on player, and plug back in

+

#Unplug everything, turn on the player, and plug it back in

−

#run ifp ls / to see some files, ensure it is working

+

#Run {{ic|ifpline ls /}} to see some files and ensure it is working

−

<br>

Revision as of 23:04, 21 October 2012

This article or section is out of date.

Reason: The kernel modules section might be irrelevant. The udev rules section is out-of-date. Other sections may be out-of-date as well. (Discuss in Talk:IRiver iFP Audio Players#)

Description

libifp, which provides the ifpline command, lets you manage your iRiver MP3 music player acting in "Manager Mode" ONLY.
If your player is using "UMS Mode", then you do not need this program; it will appear as a new drive when you plug it in.
At the time of writing, only Manager Mode can play Ogg Vorbis format files.

libifp can upload and download files and directories, delete and create directories on the device, format the device, and upgrade your firmware.
It effectively manages most of the tasks performed by the iRiver software provided for Windows, while being faster and more stable.

It is recommended that it is used in conjunction with Midnight Commander to help manage your music files more effectively.

Notes

Do not delete the default folders in the / directory of your iRiver—it may cause issues!

Midnight Commander, by default, preserves file permissions when copying files. Because these file permissions cannot be written to your iRiver, an error message will be displayed after each file copy. To prevent these messages from appearing, uncheck the "preserve attributes" checkbox on Midnight Commander's copy dialog.

If you frequently copy directories to your iRiver rather than individual tracks, then select the directory to copy & check the "Dive into subdir if exists" checkbox.

The ifpline commands can easily be incorporated into your own shell scripts to make the management of your iRiver even easier! Run ifpline for a list of all supported commands.