-->

Wednesday, December 3, 2014

[How-To] Connect an Android device using MTP in Ubuntu 14.04 LTS (Solved)

0 comments

After much looking around I was never able to find a how-to guide(or should I
Connect an Android device using MTP in Ubuntu 14.04 LTS
Connect an Android device using MTP in Ubuntu 14.04 LTS
say the ones that did never worked)on how to connect my android tablet/phone to Ubuntu for file transfers, sure there's other means of doing it wireless via your LAN, but truth be told MTP and Ubuntu don't exactly see eye to eye and as such I hope the following guide I put together saves someone a lot of time and effort. This was performed on Ubuntu 14.04 LTS

STEP 1
Firstly we're going to need to install some of the common MTP apps that will be needed. Open up a terminal and type the following two lines one after the other.

Code:
sudo apt-get install libmtp-common mtp-tools libmtp-dev libmtp-runtime libmtp9
Code:
sudo apt-get dist-upgrade
STEP 2
Then we're going to amend the fuse.conf file. FUSE is an application that aims to provide a secure method for non privileged users to create and mount their own file system implementations. This option overrides the security measure restricting file access to the user mounting the file system. So all users (including root) can access the files. This option is by default only allowed to root, but this restriction can be removed with a change to the aforementioned fuse.conf file as follows:

At the terminal type

Code:
sudo nano /etc/fuse.conf
We want to remove the # from the below line of code for user_allow_other, like so...

Code:
#/etc/fuse.conf - Configuration file for Filesystem in Userspace (FUSE)

#Set the maximum number of FUSE mounts allowed to non-root users.
#The default is 1000.
#mount_max = 1000

# Allow non-root users to specify the allow_other or allow_root mount options.
user_allow_other

Now save the file by pressing Ctrl+x, press Y and then Enter.

STEP 3

We now need to set up some rules for our device that we plan on connecting, but before we do that we need to find out both the vendor and product id

Connect your device via an available usb port and from terminal enter

Code:
lsusb
This should bring up an output similar to the following

Code:
Bus 002 Device 003: ID 0fce:01b1 Sony Ericsson Mobile Communications AB 
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 006: ID 0461:4d65 Primax Electronics, Ltd 
Bus 001 Device 005: ID 0846:9020 NetGear, Inc. WNA3100(v1) Wireless-N 300 [Broadcom BCM43231]
You need to look for your device, in this instance my Sony Tablet is at the top of the list, the vendor id is 0fce and product id is 01b1

STEP 4
We're then going to amend the mtp udev rules as follows, from a terminal type

Code:
sudo nano /lib/udev/rules.d/69-mtp.rules
Then add the below line of code

Code:
# Sony Xperia Z2 Tablet
ATTR{idVendor}=="0fce", ATTR{idProduct}=="01b1", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
Remember what you're changing here is the device name next to the #, this can be whatever you want, the # comments out the code, but for clarity and reference later I would choose the name of your tablet/phone and also the vendor id and product id, they should match what was seen when you issued the lsusb command earlier.

Once done, save the file.

STEP 5
The next step would also be to add a line of code to the 51 android rules file, again from a terminal type

Code:
sudo nano /etc/udev/rules.d/51-android.rules
Then add the following line of code

Code:
ATTR{idVendor}=="0fce", ATTR{idProduct}=="01b1", MODE=”0666"
Remember what I have highlighted in red needs to be changed to your device product id and vendor id.

Once that is done and the file is saved, remove any usb device currently connected and issue the following commands

STEP 6

Code:
sudo service udev restart
Then save any other remaining work you may have open and reboot the system.

STEP 7
Code:
sudo reboot
Once rebooted you should now be able to plug your Android device in(making sure the screen is unlocked) and VIOLA!!(or at least I hope) You will now be able to transfer data to/from your Android device via the much quicker and much more reliable MTP

All feedback gladly welcome, would like to know if this has worked for this others too.

Tuesday, April 1, 2014

3 simple ways to fix WAMP and Skype Conflict

0 comments


There is a well known issue among PHP developers regarding WampServer and Skype, You may find difficulty when using Skype and Apache server on the same computer at the same time. Your Apache server may not respond, its services may not run properly.

Both the Apache server and Skype are using port 80 for their service and hence the conflict occurs.
I have just discovered 3 simple methods to solve Wamp and Skype conflict.

Solution: 1 (from Skype)

You have to change the port number of Skype application manually  is the first method.

Just

Open Skype -> Tools -> Options -> Advanced -> Connection

Wamp Skype Conflict


And uncheck option “use port 80 and 443 as alternatives for incoming connections”, and SAVE. That’s all.


Friday, December 20, 2013

WordPress 3.8 Introduces With Smooth Interface & a Better Mobile Experience

0 comments




WordPress has just released its new version (WordPress 3.8) with a massive update to blogging software.  New version is faster than older version and they changed the colors to better usability on tablets and Smartphone.  Along with back-end updates, WordPress have released a stunning new magazine theme named ‘The Twenty Fourteen’ as the default one for you to try.

 
At first glance itself you can feel below changes:
  • It’s responsive and the Smartphone/tablet view is far more usable than before.
  • A modern flat design is used throughout.
  • Default font is ‘Open Sans’— it looks less cluttered and clearer.
  • Eight administration colour themes can be selected in your profile…
  • Scalable, fast-loading webfont icons are used in preference to images.

 

Friday, September 27, 2013

Facebook Now Lets Users to Edit Posts

0 comments

For the first time, Facebook is now letting the users to edit their posts after the posting. 

Before,  the user can only able to edit the posts which are attached with any photos.

For now the change will be available only to some people on the web and will be implemented to every users soon.

We can edit the posts by click on the arrow of the top right of every post and can change it easily.

This will be more useful to the user if we found grammatical or spelling mistakes.. 



Saturday, August 3, 2013

How to Read Malayalam,Tamil and Other Languages in Your Android Phone or Facebook

0 comments

Few days before I got a good trick regarding reading other languages in our android smartphone, you can use this simple trick for reading languages like Malayalam,Hindi,Tamil etc

1) First install Opera mini from android store (This trick will only works on Opera browser)

2) Next open opera mini browser on  phone

3) Next type opera:config or about:config in your opera mini browser. This will open the browser’s option page.

Wednesday, January 16, 2013

Mingle Forum Search Not Working [Resolved]

0 comments


Today I faced a wired issue while using Mingle Forum WordPress plugin, Mingle Forum plugin is a best plugin that can be used for creating
forum in our site. All worked but except the forum search functionality !!!

I searched a lot in their support forums and googled a lot and finally found a simple solution to solve this searching issue. Let me write the solution below,

Actually this problem is coming because of some database issue, Mingle Forum search will only work if the table supports FULLTEXT indexing,
so we have to enable FULLTEXT indexing to solve this issue, just use below mysql script to resolve this issue.


Friday, December 21, 2012

Getting Ordered Items and their Detail from Order ID in Magento

0 comments

Here is a small snippet of code, yet useful, to get ordered items and its details using the order id. Sometimes we need to access product Id, Product SKU, product name and the categories of those products by using the order number,

Please use below code for this,


Tuesday, December 18, 2012

GoDaddy Buy One Get One Christmas Special Discounts on Domains

0 comments

Hi friends,

Here is a great news from GoDaddy, They are just offered lot of new discount on domain names and renewal of existing domain names.








Get your Website. 25% off New Orders!


And of course all these offers are just because of Marry Christmas, The offers includes discounts like "buy one get one free" discounts too..

I just brought a .com domain and got a .info domain name entirely  free !!!

 

Recent Posts

Recent Comments

| Learn Web Tips - A Blog For Learn And Discuss Web Tricks And Tips © 2012. All Rights Reserved | Template Style by My Blogger Tricks .com | Design by Brian Gardner | | Back To Top |