Syncing music to Blackberry Z10 or Playbook on Linux

Where Penguins and Daemons chill together in the warmth of the Sun.

Moderators: SecretSquirrel, notfred

Syncing music to Blackberry Z10 or Playbook on Linux

Postposted on Tue Feb 19, 2013 9:16 pm

Just got this going and thought I'd write it up for others who use Linux with these Blackberry devices.

First configure the device to share over USB.
For the Z10:
Settings->Storage and Access:
USB Connection->Connect to Mac
Access using Wifi: On (We will connect over USB but this needs to be on for the login to work)
Set a sharing password in the popup box.
Find the device name and username in "Identification on Network" screen.

For the PlayBook:
Settings->Storage and Sharing:
USB Connections->Connect to Mac
Network Identification->Properties set device name and username
File Sharing On
Wi-Fi Sharing Off
Password Protect On
Change Password to set the password

On Linux (this is Ubuntu 12.04 LTS) install the needed packages
Code: Select all
sudo apt-get install cifs-utils winbind

Set it so that Linux can resolve CIFS names
Code: Select all
gksudo gedit /etc/nsswitch.conf

Find the line beginning hosts and add wins in the line so it becomes
Code: Select all
hosts:          files wins mdns4_minimal [NOTFOUND=return] dns mdns4

Save the file and exit the editor. To verify the change, plug in the device and try "ping DEVICENAME" to see if it is working.

Create some directories for the mount points
Code: Select all
sudo mkdir -p /bb/z10-media
sudo mkdir -p /bb/z10-certs
sudo mkdir -p /bb/z10-sd
sudo mkdir -p /bb/pb-media
sudo mkdir -p /bb/pb-certs

Make the entries in the fstab to allow user mounts
Code: Select all
sudo gedit /etc/fstab

Add the following to the end of the file
Code: Select all
//Z10_DEVICENAME/media   /bb/z10-media   cifs   user,mapchars,user=UserName 0   0
//Z10_DEVICENAME/certs   /bb/z10-certs   cifs   user,mapchars,user=UserName   0   0
//Z10_DEVICENAME/removable_SDCARD   /bb/z10-sd   cifs   user,mapchars,user=UserName   0   0
//PB_DEVICENAME/media   /bb/pb-media   cifs   user,mapchars,user=UserName 0   0
//PB_DEVICENAME/certs   /bb/pb-certs   cifs   user,mapchars,user=UserName   0   0

Congratulations, you are all done with the setup!

Now You can mount the directories as a normal user
Code: Select all
mount /bb/z10-media

When it asks for the password it is the one that you set on the device for sharing.

Copy your music across
Code: Select all
cd ~/Music
rsync --progress -xa * /bb/z10-media/music

And unmount
Code: Select all
umount /bb/z10-media
notfred
Grand Gerbil Poohbah
 
Posts: 3750
Joined: Tue Aug 10, 2004 10:10 am
Location: Ottawa, Canada

Return to Linux, Unix, and Assorted Madness

Who is online

Users browsing this forum: Bing [Bot] and 1 guest