Showing posts with label How To Transfer Files in Linux. Show all posts
Showing posts with label How To Transfer Files in Linux. Show all posts

Friday, 14 October 2011

Transfer Files in Linux (Samsung Galaxy)


Works on 32bit and 64bit Linux. Just a quick guide on how to configure Linux for file transfers using MTP. The instructions and config is intended for Ubuntu Natty 32bit and 64bit, though the same process will work on other platforms - the only real difference being the package manager commands and possibly the config file locations.
The attached files are for the Galaxy Tab 10.1v but should work for the 10.1g / 10.1 as well. See the end of the post to learn how to modify this config to work for other devices.

How to configure for gMTP and other Media Sync tools

1) Install aptitude
sudo apt-get install aptitude
2) Install mtp-tools and mtpfs
sudo aptitude install mtpfs mtp-tools
3) Download this  file: 98-gtab.zip for 32bit Linux or 98-gtab.rules-AMD64.zip for 64bit Linux to your desktop.
4) Extract the 98-gtab.rules file to your desktop
5) Copy the rules file to /etc/udev/rules.d/
sudo cp ~/Desktop/98-gtab.rules /etc/udev/rules.d
6) Reboot
7) Connect your Tab
8) Run the following command to confirm it is working:
ls /dev | grep gtab
This command  should return "gtab" if successful. If not, follow the "Modifying" guide below.
9) Download / install gMTP
sudo apt-get install gmtp
10) Open gMTP and select "connect" from the menu

Setting up for Automount (Optional, but recommended)

Before follow these instructions, you must have completed Steps 1-8 above.
1) Edit your fstab file to add your gtab:
sudo gedit /etc/fstab
2) Add this to the end of the file:
#gtab
mtpfs /media/gtab fuse user,noauto,allow_other 0 0
3) Save and exit
4) Open fuse.conf for editing:
sudo gedit /etc/fuse.conf
5) Find the following line and remove the #
#user_allow_other
6) Save and exit
7) Open and edit the groups file:
sudo gedit /etc/group
8) Find the details for the group 'fuse' and append your username to the end of the line eg.
fuse:x:104:
9) Save and exit
10) Create the folder to mount your Tab:
sudo mkdir /media/gtab
11) Take ownership of the folder:
sudo chown :users /media/gtab
12) Reboot
13) Plug in your Tab.
14) Click on the Places menu and click gtab.
15) You're in business!

Modifying for other devices

If the above doesn't work immediately on the 10.1g / 10.1 (I have only tested on the 10.1v), you can easily edit the rules file to support your device.
1) Install lsusb
sudo apt-get install lsusb
2) Run lsusb
lsusb
3) Check the output of this command to find your device. The 10.1v is shown like this:
Bus 001 Device 010: ID 04e8:6860 Samsung Electronics Co., Ltd
4) Make a note of the Vendor and Product IDs. In the example above, the vendor ID is 04e8 and device ID is 6860 (note 04e8:6860 in the output).
5) Open the rules file for editing (if it's not already in /etc/udev/rules.d, copy it there now)
sudo gedit /etc/udev/rules.d/98-gtab.rules
6) Find this line
ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="6860", MODE="0666" SYMLINK+="gtab"
7) Replace the Vendor ID (04e8) and Product ID (6860) with the ones that you got from step 3 above.
8) Save and exit
9) Reboot
10) Follow step 7 onward in the first guide above

32bit RULES FILE:

ACTION!="add", GOTO="gtab_rules_end"
SUBSYSTEM!="usb|usb_device", GOTO="gtab_usb_end"
ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="6860", MODE="0666" SYMLINK+="gtab"
LABEL="gtab_usb_end"
LABEL="gtab_rules_end"

64bit RULES FILE:

ACTION!="add", GOTO="gtab_rules_end"
SUBSYSTEM!="usb|usb_device", GOTO="gtab_usb_end"
ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="6860", MODE="0777" SYMLINK+="gtab"
LABEL="gtab_usb_end"
LABEL="gtab_rules_end"
READ MORE - Transfer Files in Linux (Samsung Galaxy)

Monday, 3 October 2011

Galaxy 7 and General Tips

I bought a Verizon Samsung Galaxy Tab on the first day they went on sale, and the next morning I left on a one week vacation with only the Tab, no laptop.  Here are some tips and tricks and other things I have learned:
  1. Menu key (bottom left) use it to get to settings and other options
  2. Home key use to exit out of any application.
  3. Back key (a bent arrow) to go back one screen.
  4. Press and hold on things to get more options, i.e. on fields to get a choice of keyboard to enter data.
  5. Turn OFF roaming, it is on by default and even works with maritime roaming when at sea on a cruise (don't ask, it is painful how much that mistake cost me).
  6. Flash on demand.  I recomend in the browser to use the on demand setting for Flash: use the menu key -> settings -> Enable plug-ins -> On demand.  This will cause the browser to not download a flash object unless you click on it.  (faster and less data hungery)
  7. Learn Swype for faster keyboard entry, you can get a tutorial under the Settings application -> Language and keyboard -> Swype settings -> Tutorial.
  8. Manage downloads in the browser: use the menu key -> download manager.
  9. Verizon Support knows nothing about the Tab, in fact most of Verizon is setup to support just cell phones.  If you have enough trouble they will give the support the Samsung support number: 1-888-987-4357.  I tried calling once but they were closed for the night.
  10. Configure your WiFi before installing applications from the Market: Settings Application -> Wireless and network -> Wi-Fi Settings.
  11. Setup email and calendar accounts, you can use the wizard: Setup application -> Setup Wizard.  Later you can adjust settings under Setup -> Accounts and sync.
  12. Market (Android Market Place) use this to download applications, start with: Market application -> Apps -> All applications -> Top free (See Recomended Apps Below)
  13. Good games: WordUp! Angry Birds, Mahjong.
  14. Reviews and recomendations for more Apps, check out The Hottest Android Apps Site
  15. For those who are real techies you can get to the Linux Shell of your tab by installing Android Terminal Emulator.  Note that many commands are disabled unless you root your Tab, but it is still cool if you already know Linux.
  16. If you pinch the home page you will get thumbnails of all your screens.
  17. At first some of my application only used a small part of the center of the screen.  This is because by default Android comes with a hidden setting for backwards compatability turned on.  I have found by turning this off 98% of my applications will run full screen on my Galaxy Tab and at full resolution (not streched out as the IPad does). To gain access to the hidden setting follow these steps.
    • Download “Spare Parts” application from Android Market and install it. If you visit us from the Galaxy Tab, follow this link : Spare Parts
    • Launch “Spare Parts”  and scroll down to “Compability Mode”. Un-tick the box and tick it back.
    • Reboot the Galaxy Tab.
    • Launch “Spare Parts” again, scroll down to “Compatibility Mode” and un-tick the box.
    • Reboot the Galaxy Tab.
    • Congratulations. Your apps are displayed in full screen! Note: a few old games don't work with compatability off.
  18. Update: April 11, 2011 got a system update from Verizon which makes email and browser faster on my Galaxy Tab
  19. You can get a free application of the day from the Amazon App Store for Android.  Some of the Apps I have purchased I could have gotten free.
  20. Update- Here are some more apps I have discovered that I like: GPS Test, ColorNote, BSA Quick Guide, Andy-85, Pulse news, Stocks, TweetDeck, WeatherBug, Wifi Analyzer, PicSay, Google Sky Map, 3G Watchdog, and for fun Androidify, 2 Player Reactor, Alchemy, Bubble Blast 2, Tank Hero, Wheel to Riches Lite, Amazon Kindle.
  21. More tips

Recommended Apps

Download this from the Market: File Manager, Universal Password Manager, RealCalc Scientific Calculator, Google Maps, Adobe Reader, AndroidZip File Manager
Update- Here are some more apps I have discovered that I like: AndSMB, GPS Test, ColorNote, BSA Quick Guide, Andy-85, Pulse news, Stocks, TweetDeck, WeatherBug, Wifi Analyzer, PicSay, Google Sky Map, 3G Watchdog, and for fun Androidify, 2 Player Reactor, Alchemy, Bubble Blast 2, Tank Hero, Wheel to Riches Lite, Amazon Kindle.
READ MORE - Galaxy 7 and General Tips