Personal computing discussed

Moderators: SecretSquirrel, notfred

 
notfred
Maximum Gerbil
Topic Author
Posts: 4174
Joined: Tue Aug 10, 2004 10:10 am
Location: Ottawa, Canada

Syncing music to Blackberry Z10 or Playbook on Linux

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
sudo apt-get install cifs-utils winbind

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

Find the line beginning hosts and add wins in the line so it becomes
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
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
sudo gedit /etc/fstab

Add the following to the end of the file
//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
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
cd ~/Music
rsync --progress -xa * /bb/z10-media/music

And unmount
umount /bb/z10-media

Who is online

Users browsing this forum: No registered users and 1 guest