Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO setup Rioutil for use with non-root users
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
l33tmmx
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2005
Posts: 91
Location: Pirkkala, Finland

PostPosted: Tue Aug 02, 2005 7:36 pm    Post subject: HOWTO setup Rioutil for use with non-root users Reply with quote

Rioutil is a command-line utility designed for interfacing with Rio's portable mp3 players: Rio600, -800, -900, S-Series, Riot, psa[play, Fuse, Chiba and Cali. It has been traditionally rather messy to set up for use with users other than root. However, because of the recent advances in Linux kernel and hotplug system, it is now much easier.

This HOWTO assumes that you are using 2.6 series kernel with udev, and the user who is going to use rioutil already belongs to the group 'usb'. If not, add him/her with:
Code:
gpasswd -a <username> usb

If you have not already done it, install hotplug and rioutil:
Code:
emerge -av hotplug rioutil

After it is done, create a new file /etc/hotplug/usb/rio and copy the following text there,
Code:
#!/bin/sh
#
# This script changes the permissions and ownership of a USB device under
# /proc/bus/usb to grant access to this device to users in the usb group.
#
# Ownership is set to root:usb, permissions are set to 0660.

if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then
    chown root:usb "$DEVICE"
    chmod 0660 "$DEVICE"
fi

and make it executable:
Code:
chmod a+x /etc/hotplug/usb/rio

Then, create another file /etc/hotplug/usb/rio.usermap and copy the following data to it.
Code:
# Rio 600
rio 0x0003 0x045a 0x5001 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
# Rio 800
rio 0x0003 0x045a 0x5002 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
# Nike psa[play
rio 0x0003 0x045a 0x5003 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
# Rio S10
rio 0x0003 0x045a 0x5005 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
# Rio S50
rio 0x0003 0x045a 0x5006 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
# Rio S35s
rio 0x0003 0x045a 0x5007 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
# Rio 900
rio 0x0003 0x045a 0x5008 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
# Rio S30s
rio 0x0003 0x045a 0x5009 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
# Fuse
rio 0x0003 0x045a 0x500d 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
# Chiba
rio 0x0003 0x045a 0x500e 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
# Cali
rio 0x0003 0x045a 0x500f 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
# Rio S11
rio 0x0003 0x045a 0x5010 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
# Rio Riot
rio 0x0003 0x045a 0x5202 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0

When you now plug your Rio player in, you should be able to run
Code:
rioutil -i

as a normal user.

There is another utility called Rio600, which allows you to use some features of rioutil via KDE's Konqueror. Unfortunately there are no ebuild for it (not yet :wink: ), but it is easy enough to install with:
Code:
./configure --prefix=/usr/kde/3.4
make
make install

You should now be able to access your Rio player by typing rio600:/ as an URL. It is possible to copy & paste mp3's to the player, and delete them. Drag & drop doesn't work, though.
_________________
"Trust me, I know what I'm doing!"
- Sledge Hammer

Follow me on Twitter
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum