[How-To] Set up udev rules on Ubuntu 10.10
- Jerry HildenbrandSpace CowboyThese instructions only work for Ubuntu 10.10 (Maverick). You need to edit the systems udev rules to allow your Android device to connect, or use root to start and run adb. Udev rules are preferred, because running things as root when it isn't necessary is never a good thing.
It can all be done from the terminal:
Warning -- this is all being done as root. Be carefulmake sure the file 51-android.rules is listed.Code:sudo su password touch /etc/udev/rules.d/51-android.rules ls /etc/udev/rules.d
enter the following line, exactly as written:Code:nano -w /etc/udev/rules.d/51-android.rules
The {idVendor} in this case (0bb4) is for HTC devices. You can add more than one vendor, but can only have one per line. To add a second device, copy a new line but substitute the vendor ID with the correct id for your device manufacturer. Get a list of vendor ID's right here.Code:SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"
Control+X, then say Y when asked to save the file.
Now give the file the right permissions, restart udev to read the new rules, and relinquish the root shell:Now that you're back to your normal shell, you need to add the vendor id(s) to the ~/.android/adb_usb.ini file:Code:chmod a+r /etc/udev/rules.d/51-android.rules service udev restart exit
Now you shouldn't have to run adb as root any longer.Code:echo $VENDOR_ID >> ~/.android/adb_usb.ini
01-30-2011 12:30 AMLike 0 -
- Hi I am using Ubuntu 10.10 & I have device HTC Desire C. Your solution didn't work for me.Please help01-01-2013 07:36 AMLike 0

- Forum
- Android Central Community
- The Android Central Lounge
- Linux
[How-To] Set up udev rules on Ubuntu 10.10
« How to install a linux distro( for newbies)
|
Linux 12/Ubuntu 11.10 using CAC Reader with Firefox to access DOD »
LINK TO POST COPIED TO CLIPBOARD


